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.65d9dadc.js";import{_ as z}from"./TopFilter.vue_vue_type_script_setup_true_lang.d38433e9.js";import E from"./index.20b44c91.js";import G from"./index.7601a9f5.js";import K from"./index.c0f3bc50.js";import L from"./index.4811a862.js";import M from"./index.e7ddccac.js";import O from"./index.05c6f950.js";import q from"./index.ed28d01b.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import{a as J,u as Q}from"./index.373e4c1e.js";import{a as W}from"./api.8949c93c.js";import{e as X}from"./emitter.ca07dcc1.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.c5b0e04f.js";import"./PopoverFilter.6a50dcdc.js";import"./api.0d0b7677.js";import"./PopoverFilterTable.bb489811.js";import"./echarts.72dc8373.js";import"./PopoverFilterParent.a9d36852.js";import"./crud.ebbd7b99.js";import"./api.097cf638.js";import"./commonTabColumn.a4869ec6.js";import"./dataTendency.8b63de20.js";import"./enum.b537673d.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";import"./api.05e3fd61.js";import"./index.74ced524.js";import"./crud.101ae102.js";import"./adStruct.6b077b4b.js";import"./dropdowndisable.88660b16.js";import"./crud.393886b9.js";import"./api.8bd8c44f.js";import"./adStruct.d1c4099c.js";import"./crud.ca156fdd.js";import"./api.281d3e39.js";import"./adStruct.8378b0c7.js";import"./crud.cbe9b0d8.js";import"./crud.084cf408.js";import"./crud.809e5a21.js";import"./api.7771f169.js";import"./adStruct.251a6a5f.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};
