import{d as A,r as o,al as b,x as l,v as D,a9 as p,o as s,c,a as u,M as m,G as R,F as g,a0 as y,E as C,u as j,t as F,z as N,L as U,I as $}from"./vue.6daa721c.js";import{_ as z}from"./TopFilter.vue_vue_type_script_setup_true_lang.649882b8.js";import E from"./index.1eee4eb6.js";import G from"./index.c47f899d.js";import K from"./index.88fe160c.js";import L from"./index.dbad0670.js";import M from"./index.07ca79c9.js";import O from"./index.4167142c.js";import q from"./index.2bb468c9.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import{a as J,u as Q}from"./index.ae7ce77b.js";import{a as W}from"./api.b34c9308.js";import{e as X}from"./emitter.d780df30.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.346c766a.js";import"./PopoverFilter.963b9056.js";import"./api.90b028d8.js";import"./PopoverFilterTable.101e79ea.js";import"./echarts.72dc8373.js";import"./PopoverFilterParent.a6d421ce.js";import"./crud.851f8cf5.js";import"./api.3a3c3d35.js";import"./commonTabColumn.9307c435.js";import"./dataTendency.14ea91e8.js";import"./enum.b537673d.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";import"./api.0f886666.js";import"./index.1b30f184.js";import"./crud.a661014c.js";import"./adStruct.d11fd172.js";import"./dropdowndisable.88660b16.js";import"./crud.8f567d4c.js";import"./api.7343f50a.js";import"./adStruct.3b034792.js";import"./crud.fb2d7991.js";import"./api.cee22ac8.js";import"./adStruct.0684900f.js";import"./crud.d39fc6ed.js";import"./crud.5c805dd0.js";import"./crud.02156297.js";import"./api.d91e4325.js";import"./adStruct.49731027.js";const Z={class:"asj-container"},ee={class:"public-search"},oe={class:"asj-tabs"},te=["onClick"],ae=A({__name:"index",setup(le){const x=J(),d=o([]),_=o([]),{dateRange:r}=b(x);l("dateRange",r);const P=Q(),{profile:V}=b(P);l("profile",V);const f=o(""),n=o("");l("searchItem",f);function I(){f.value=n.value}X.on("PopoverFilter-allSkus",a=>{v.value=a.allSkus.value,h.value=a.searchType.value});const v=o([]),h=o("");l("topSearchItem",v),l("searchType",h);const i=o("Campaigns"),S=[{label:"广告活动",name:"Campaigns"},{label:"关键词投放",name:"Keywords"},{label:"商品投放",name:"Targets"},{label:"推广商品",name:"AdvertisedProducts"},{label:"购买的其他商品",name:"PurchasedOtherProducts"},{label:"搜索词",name:"SearchTerm"},{label:"广告位",name:"Placement"}],k={Campaigns:G,Keywords:K,Targets:q,AdvertisedProducts:E,PurchasedOtherProducts:M,SearchTerm:O,Placement:L};return D(async()=>{const a=await W();_.value=a.data}),(a,t)=>{const T=p("el-input"),w=p("el-option"),B=p("el-select");return s(),c("div",Z,[u("div",ee,[m(T,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),onChange:I,style:{width:"500px"},placeholder:"请输入搜索内容"},null,8,["modelValue"]),m(z),m(B,{modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=e=>d.value=e),placeholder:"广告组合",clearable:"",multiple:"",style:{width:"200px"},"collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":3,disabled:!0},{default:R(()=>[(s(!0),c(g,null,y(_.value,e=>(s(),C(w,{label:e.name,value:e.portfolioId},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]),m(H,{modelValue:j(r),"onUpdate:modelValue":t[2]||(t[2]=e=>F(r)?r.value=e:null)},null,8,["modelValue"])]),u("div",oe,[(s(),c(g,null,y(S,e=>u("div",{key:e.name,class:N(["asj-tab",{active:i.value===e.name}]),onClick:se=>i.value=e.name},U(e.label),11,te)),64))]),(s(),C($(k[i.value])))])}}});const Qe=Y(ae,[["__scopeId","data-v-462c77f0"]]);export{Qe as default};
