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.3f733908.js";import{_ as z}from"./TopFilter.vue_vue_type_script_setup_true_lang.11619e9c.js";import E from"./index.bfd29ffe.js";import G from"./index.fe29edcf.js";import K from"./index.5c4aacda.js";import L from"./index.3e735d39.js";import M from"./index.6e35f033.js";import O from"./index.1946c0ad.js";import q from"./index.d908ffe1.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.d1494dfe.js";import{a as J,u as Q}from"./index.0d411246.js";import{a as W}from"./api.526e9af5.js";import{e as X}from"./emitter.9d098494.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./PopoverFilter.7134382f.js";import"./api.6fe6d864.js";import"./PopoverFilterTable.04c2dc13.js";import"./echarts.72dc8373.js";import"./PopoverFilterParent.9829c2fa.js";import"./crud.9e56cd37.js";import"./api.7faed010.js";import"./commonTabColumn.9973d424.js";import"./dataTendency.dec8f4f1.js";import"./enum.b537673d.js";import"./index.69303a66.js";import"./index.8a84e60c.js";import"./api.fa5f2989.js";import"./index.1c622692.js";import"./crud.838ecfa8.js";import"./adStruct.3178f17a.js";import"./dropdowndisable.88660b16.js";import"./crud.bbed7ff7.js";import"./api.1750d01e.js";import"./adStruct.53303c3a.js";import"./crud.f48201a9.js";import"./api.a1851569.js";import"./adStruct.7f155842.js";import"./crud.660ce83a.js";import"./crud.0dc35003.js";import"./crud.959126d2.js";import"./api.89728bf9.js";import"./adStruct.69976566.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};
