import{d as A,r as o,ak as b,x as l,v as D,a8 as p,o as s,c,a as u,M as m,G as R,F as g,$ as y,E as C,u as $,t as j,z as F,L as N,I as U}from"./vue.95e072e2.js";import{_ as z}from"./TopFilter.vue_vue_type_script_setup_true_lang.6c9812e0.js";import E from"./index.2985b60a.js";import G from"./index.26801106.js";import K from"./index.8749c441.js";import L from"./index.e3e8c69e.js";import M from"./index.46422d07.js";import O from"./index.651d3939.js";import q from"./index.aebfc985.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import{a as J,u as Q}from"./index.8a64ecdf.js";import{a as W}from"./api.0100ebbc.js";import{e as X}from"./emitter.c997c4ad.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.58179425.js";import"./PopoverFilter.8cbb8fcc.js";import"./api.b9c9f63f.js";import"./PopoverFilterTable.ec6c3e14.js";import"./echarts.72dc8373.js";import"./PopoverFilterParent.04aac68c.js";import"./crud.4d37b20c.js";import"./api.b3169660.js";import"./commonTabColumn.00155e2b.js";import"./dataTendency.ab62b4f1.js";import"./enum.b537673d.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./api.77b99954.js";import"./index.eed780e8.js";import"./crud.dbf9a1e8.js";import"./adStruct.ce85cb97.js";import"./dropdowndisable.88660b16.js";import"./crud.42a2641b.js";import"./api.2903c78d.js";import"./adStruct.88880ec0.js";import"./crud.78fc81bd.js";import"./api.7acd4c79.js";import"./adStruct.2f3e4789.js";import"./crud.cef7917c.js";import"./crud.8b544e8e.js";import"./crud.f530888b.js";import"./api.278ed1c8.js";import"./adStruct.62c6fbb9.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"),k=[{label:"广告活动",name:"Campaigns"},{label:"关键词投放",name:"Keywords"},{label:"商品投放",name:"Targets"},{label:"推广商品",name:"AdvertisedProducts"},{label:"购买的其他商品",name:"PurchasedOtherProducts"},{label:"搜索词",name:"SearchTerm"},{label:"广告位",name:"Placement"}],S={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:$(r),"onUpdate:modelValue":t[2]||(t[2]=e=>j(r)?r.value=e:null)},null,8,["modelValue"])]),u("div",oe,[(s(),c(g,null,y(k,e=>u("div",{key:e.name,class:F(["asj-tab",{active:i.value===e.name}]),onClick:se=>i.value=e.name},N(e.label),11,te)),64))]),(s(),C(U(S[i.value])))])}}});const Qe=Y(ae,[["__scopeId","data-v-462c77f0"]]);export{Qe as default};
