import{d as D,r as o,ay as b,G as l,E as A,ai as p,o as s,c,a as u,U as m,O as R,F as g,a8 as y,M as C,u as U,D as j,I as F,T as N,Q as O}from"./vue.adf17aba.js";import{_ as $}from"./TopFilter.vue_vue_type_script_setup_true_lang.35214640.js";import E from"./index.5362f293.js";import G from"./index.44c101b7.js";import K from"./index.199c9ed4.js";import M from"./index.4c71f512.js";import z from"./index.30823900.js";import L from"./index.28728d1a.js";import Q from"./index.0e3c1129.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import{a as H,u as J}from"./index.ad3efb29.js";import{a as W}from"./api.7e8ee3c4.js";import{e as X}from"./emitter.bff31cdd.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./PopoverFilter.c3f0e511.js";import"./api.419aab55.js";import"./PopoverFilterTable.6859dc3f.js";import"./echarts.72dc8373.js";import"./PopoverFilterParent.19920a1d.js";import"./crud.f9064ec3.js";import"./api.5436d480.js";import"./commonTabColumn.c5d53eee.js";import"./dataTendency.69ca86c9.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./api.8b835e6e.js";import"./index.04a874bc.js";import"./crud.ce5d35c6.js";import"./adStruct.760d4669.js";import"./dropdowndisable.88660b16.js";import"./crud.04898035.js";import"./api.3faa3eba.js";import"./adStruct.1c16a85f.js";import"./crud.0d480366.js";import"./api.fa968e5b.js";import"./adStruct.cf5641e5.js";import"./crud.d34faba3.js";import"./crud.e50b3f1c.js";import"./crud.32a529f5.js";import"./api.0c2b52c8.js";import"./adStruct.64288315.js";const Z={class:"asj-container"},ee={class:"public-search"},oe={class:"asj-tabs"},te=["onClick"],ae=D({__name:"index",setup(le){const P=H(),d=o([]),_=o([]),{dateRange:r}=b(P);l("dateRange",r);const x=J(),{profile:V}=b(x);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"}],T={Campaigns:G,Keywords:K,Targets:Q,AdvertisedProducts:E,PurchasedOtherProducts:z,SearchTerm:L,Placement:M};return A(async()=>{const a=await W();_.value=a.data}),(a,t)=>{const k=p("el-input"),w=p("el-option"),B=p("el-select");return s(),c("div",Z,[u("div",ee,[m(k,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),onChange:I,style:{width:"500px"},placeholder:"请输入搜索内容"},null,8,["modelValue"]),m($),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(q,{modelValue:U(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(S,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(O(T[i.value])))])}}});const Je=Y(ae,[["__scopeId","data-v-462c77f0"]]);export{Je as default};
