import{r as d,d as F,ak as g,x as _,p as N,a8 as n,o as f,c as x,a,M as t,G as p,u as e,F as b,$ as q,E as A,K as P,L as M,A as R,ap as W,aq as G}from"./vue.95e072e2.js";import{k as K,l as U,m as $,n as z}from"./api.0f1d95f8.js";import{_ as j}from"./DataTable.vue_vue_type_script_setup_true_lang.b954b3d0.js";import H from"./index.5539db94.js";import J from"./ProductDialog.e5a730f3.js";import O from"./ProductSelectCard.7180ffc7.js";import Q from"./TopFilter.442d05db.js";import{p as X}from"./enum.5c541b34.js";import{u as Y,a as Z}from"./index.8a64ecdf.js";import{e as u}from"./emitter.c997c4ad.js";import{_ as tt}from"./_plugin-vue_export-helper.c27b6911.js";import"./DataTableCell.6efcf125.js";import"./DataTableCellFooter.9ee572bc.js";import"./echarts.72dc8373.js";import"./index.1e615130.js";import"./mCard.29ac29c7.js";import"./index.df979911.js";import"./elementPlus.58179425.js";import"./enum.b537673d.js";import"./ProductDialogList.129abc55.js";import"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";function et(){const o=["产品线","父ASIN","ASIN","SKU"],s=d("产品线"),r={color:"#3a83f7",backgroundColor:"#ebeef5"};function m(c){s.value=c}return{buttons:o,activeButton:s,activeStyle:r,handleClickBtn:m}}const ot=o=>(W("data-v-239d6437"),o=o(),G(),o),nt={class:"outer-container"},at={class:"table-tips"},st=ot(()=>a("p",{class:"prompt-words"},"商品中心广告数据统计不包含SB广告",-1)),rt={class:"pl-and-asin-tables"},ct={class:"asin-table-container"},it={class:"xp-radio-group-wrapper"},lt=F({__name:"index",setup(o){const s=d("ALL");u.on("TopFilters-selectValue",i=>{s.value=i.selectValue});const r=d("");u.on("TopFilters-searchItem",i=>{r.value=i.searchItem});const m=Y(),{profile:c}=g(m),k=Z(),{dateRange:h}=g(k),y=d({profileId:c.value.profile_id,dateRange:h,productlineId:s,searchItem:r});_("dateRange",h),_("profile",c);const{buttons:C,activeButton:v,activeStyle:I,handleClickBtn:S}=et();_("activeButton",v);function B(){u.emit("open-productLine-dialog",{isVisible:!0})}return N(()=>{u.all.clear()}),(i,pt)=>{const L=n("Warning"),D=n("el-icon"),w=n("el-card"),T=n("vxe-button"),V=n("el-button"),E=n("el-button-group");return f(),x(b,null,[a("div",nt,[t(Q),a("div",at,[t(D,null,{default:p(()=>[t(L)]),_:1}),st]),t(w,null,{default:p(()=>[t(H,{metricEnum:e(X),query:y.value,fetchCard:e(K),fetchLine:e(U),"fetch-line-month":e($),"fetch-line-week":e(z)},null,8,["metricEnum","query","fetchCard","fetchLine","fetch-line-month","fetch-line-week"])]),_:1})]),t(O),a("div",rt,[a("div",ct,[t(T,{class:"custom-button",type:"text",status:"primary",content:"创建产品线",icon:"vxe-icon-add",onClick:B}),a("div",it,[t(E,null,{default:p(()=>[(f(!0),x(b,null,q(e(C),l=>(f(),A(V,{bg:"",text:"",key:l,style:R(e(v)===l?e(I):{}),onClick:()=>e(S)(l)},{default:p(()=>[P(M(l),1)]),_:2},1032,["style","onClick"]))),128))]),_:1})]),t(j)])]),t(J)],64)}}});const Et=tt(lt,[["__scopeId","data-v-239d6437"]]);export{Et as default};
