1import{P as Ft,u as Ve,b as Dt,O as wt,_ as me,l as je,L as xt,Z as et,$ as tt,a0 as Et,a1 as Lt,p as St,v as Tt,a2 as Bt}from"./main.7695cc3d.js";/* empty css */import{d as de,c as Q,j as E,o as at,v as At,C as n,D as v,G as o,aN as w,bH as We,aM as f,b7 as ie,a_ as Ne,a$ as qe,aZ as U,b0 as q,b6 as p,be as Z,u as X,aF as $,aS as Mt,aO as oe,b3 as Ee,b4 as ot,aE as N,bf as It,bu as Vt,E as J,bc as Le,w as _e,F as Je,bh as Nt,bO as qt,b9 as st,bg as Ut,bP as Gt,bj as lt,bQ as Rt,bm as Pt,bR as Ot,bS as zt,aG as De,aX as Se,aY as Te,bT as Ht,bi as Ue,bk as Kt,r as ce,n as we,b as nt,aJ as ve,e as Yt,aP as Wt}from"./arco.e89e57ea.js";import{r as Jt,g as Qt}from"./good-dict.42b37140.js";import{t as Xt,G as Qe,a as Zt,S as jt}from"./track-goods.ffdc7d52.js";import{g as ea,a as it}from"./index.ff4e1dab.js";import{g as ta,u as aa}from"./vue.a629e9e3.js";import{k as he,c as ut,a as oa,K as sa,b as la}from"./kuaishou.4543e0a4.js";import{A as rt}from"./index.e40cf036.js";import{_ as na}from"./index.vue_vue_type_script_setup_true_lang.39142db1.js";/* empty css */import"./address-manage.958b83b2.js";/* empty css *//* empty css */import{l as Ie,L as ia}from"./chart.0d464786.js";import{c as xe,g as ge}from"./index.f2947168.js";import{o as Xe,s as ua}from"./navbar.a58b5e6c.js";import{w as ra}from"./index.039c7b25.js";import{t as ca}from"./index.646d8a5d.js";import{_ as da}from"./stock_icon.e7f905f5.js";import{f as pa}from"./date.04a87ee0.js";import"./track-events.generated.f08dd6b7.js";import"./account-authorization.f3edb9ce.js";import"./getScreenShot.9a15f84b.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./douyin-authorization.cb37971b.js";import"./common.c150f1a4.js";import"./tool.741d9cf8.js";import"./index.d7315667.js";/* empty css */import"./common.14cca1b9.js";import"./account-authorization.e7027ba4.js";import"./area.dc0a78c8.js";import"./track-kefu.6fab7728.js";import"./LV7.471d2c07.js";/* empty css */import"./moment.eb690af4.js";import"./double-commission.80c91b9a.js";const va={class:"goods-search-bar"},_a=["onClick"],ma=o("span",null,"\u641C\u7D22",-1),fa=["onClick"],ya={key:0,class:"search-loading"},ha={class:"result-head"},ga={class:"text-red"},ba={class:"text-red"},Ca={class:"result-list customize-scrollbar"},ka=["onClick"],$a={class:"list-item-main"},Fa=["innerHTML"],Da={class:"list-item-data"},wa={class:"data-price"},xa={class:"data-sale"},Ea={key:0,class:"shortcut-box"},La={key:0,class:"img-icon-hot"},Sa={key:1,class:"ks-hot-text"},Ta=["onClick"],Ba=o("span",{class:"img-icon-class"},null,-1),Aa=["onClick"],Ma=de({__name:"index",props:{filterParams:{type:Object,default:()=>{}},disabledInputBlur:{type:Boolean,default:!1}},emits:["searchHandler","clickClass"],setup(e,{expose:y,emit:F}){const i=e,d=Ft(),M=Q(()=>d.apptype),I=Ve(),L=Q(()=>({...I.userInfo})),B=E([]),D=E([]),P=E(!1),V=E(!1),k=E(""),g=E([]),A=()=>{},S=()=>{const u=new RegExp(/(http|https):\/\/\S*/),c={query_type:"title",q:k.value.trim()};return u.test(c.q)&&(c.query_type="link"),c},G=()=>{V.value=!1},z=()=>{const u=S();console.log(S(),62735263),F("searchHandler",u),u.q&&it({user_id:L.value.company_id,type:1,keyword:u.q})},H=u=>{k.value=u.trim()},W=u=>{H(u),z()},_=u=>{F("clickClass",u)},s=()=>{F("searchHandler","")},a=()=>{i.disabledInputBlur&&z(),G()},r=u=>{window.open(`/douyin/goods/goods-item?activity_goods_id=${u.activity_goods_id}`,"_blank")};return at(()=>{window.addEventListener("click",G),ea({type:1,page:1,paginate:6}).then(u=>{B.value=u.list})}),At(()=>{window.removeEventListener("click",G)}),y({setSearchValue:H}),(u,c)=>{const C=Mt,T=oe("icon-search"),R=Ee,Y=ot;return n(),v("div",va,[o("div",{class:"search-box",onClick:ie(A,["stop"])},[w(C,{class:"input-serach",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0\u6216\u5546\u54C1ID","allow-clear":"","input-attrs":{tabindex:"-1"},modelValue:k.value,"onUpdate:modelValue":c[0]||(c[0]=K=>k.value=K),onClear:s,onKeyup:We(a,["enter"])},null,8,["modelValue","onKeyup"]),w(R,{type:"primary",class:"btn-serach",tabindex:"-1",onClick:ie(a,["stop"]),onKeyup:We(a,["enter"])},{icon:f(()=>[w(T)]),default:f(()=>[ma]),_:1},8,["onClick","onKeyup"])],8,_a),Ne(o("div",{class:"search-result-box",onClick:ie(A,["stop"])},[P.value?(n(),v("div",ya,[w(Y,{dot:""})])):(n(),v(U,{key:1},[o("div",ha,[q(" \u4E3A\u60A8\u641C\u7D22\u5230 "),o("span",ga,p(g.value.length),1),q(" \u6761\u5173\u4E8E"),o("span",ba,"\u201C"+p(k.value)+"\u201D",1),q("\u7684\u4EA7\u54C1\u6807\u9898\u641C\u7D22\u7ED3\u679C\uFF1A ")]),o("div",Ca,[(n(!0),v(U,null,Z(g.value,(K,ee)=>(n(),v("div",{class:"list-item",key:ee,onClick:ie(ue=>r(K),["stop"])},[w(na,{imgUrl:K.coverImg,avatarProps:{size:40,shape:"square"},ErrorUrl:"https://image.doulaoban.com/applet/image/1690862760424_not-image.png"},null,8,["imgUrl"]),o("div",$a,[o("div",{class:"list-item-title",innerHTML:K.titleText}
1,null,8,Fa),o("div",Da,[o("span",wa,"\uFFE5"+p(K.priceText),1),o("span",xa,"\u9500\u552E\u989D: "+p(K.salesText),1)])])],8,ka))),128))])],64))],8,fa),[[qe,V.value&&k.value]]),B.value.length||D.value.length?(n(),v("div",Ea,[B.value.length?(n(),v(U,{key:0},[X(M)==="douyin"?(n(),v("span",La)):X(M)==="kuaishou"?(n(),v("span",Sa,"\u5927\u5BB6\u90FD\u5728\u641C")):$("",!0),(n(!0),v(U,null,Z(B.value,(K,ee)=>(n(),v("span",{class:"shortcut-item-label",key:`word_${ee}`,onClick:ue=>W(K.keyword)},p(K.keyword),9,Ta))),128))],64)):$("",!0),D.value.length?(n(),v(U,{key:1},[Ba,(n(!0),v(U,null,Z(D.value,(K,ee)=>(n(),v("span",{class:"shortcut-item-label",key:`class_${ee}`,onClick:ue=>_(K.catId)},p(K.keyword),9,Aa))),128))],64)):$("",!0)])):$("",!0)])}}});const Fe=({rows:e=[],value:y="value",label:F="name"})=>{const i=[];return e.forEach(d=>{const M={value:d[y],label:d[F]};i.push(M)}),i};function Ze(e){return Dt({method:"get",url:"/api/kuaishou_product_channel/v1/category/list",params:e})}function Ia(){return wt.get("/youshu/v1/author/tag_list")}const Va=de({name:"filter-check",props:{dict:{type:Array,require:!0},value:{type:Array||-1,require:!0}},setup(e,y){return{selectData:Q({get(){return e.value?e.value:[]},set(d){let M=-1;d&&d.length&&(M=d),y.emit("update:value",M)}}),clearSelect:()=>{y.emit("update:value",-1),y.emit("change")}}}});function Na(e,y,F,i,d,M){const I=Le,L=It,B=Vt;return n(),N(B,{style:{"max-height":"300px",overflow:"auto"}},{default:f(()=>[w(L,{modelValue:e.selectData,"onUpdate:modelValue":y[1]||(y[1]=D=>e.selectData=D)},{default:f(()=>[(n(!0),v(U,null,Z(e.dict,D=>(n(),v("div",{class:"item",key:D.value},[D.value===-1?(n(),v("div",{key:0,class:J({active:!e.value||!e.value.length}),onClick:y[0]||(y[0]=(...P)=>e.clearSelect&&e.clearSelect(...P))},p(D.label),3)):(n(),N(I,{key:1,value:D.value},{default:f(()=>[q(p(D.label),1)]),_:2},1032,["value"]))]))),128))]),_:1},8,["modelValue"])]),_:1})}const qa=me(Va,[["render",Na],["__scopeId","data-v-3feb148f"]]),Ua=de({name:"filter-radio",props:{dict:{type:Array,require:!0},value:{type:[Array,String,Number],require:!0},child:{type:Object,defaule(){return{}}}},setup(e,y){const F=E(void 0),i=E(void 0),d=E(1),M=E(!0),I=Q({get(){return e.value||!0},set(g){const A=e.dict.find(G=>G.value===g);let S=g;g===!0&&(S=void 0),y.emit("update:value",S),y.emit("change",S,e.child,F.value,i.value,A,d.value,g===void 0?M.value:!0)}});_e(()=>e.value,g=>{g===void 0&&(F.value=void 0,i.value=void 0)},{immediate:!0});const L=Q(()=>e.dict),B=()=>{M.value=!0,F.value=void 0,i.value=void 0},D=()=>{M.value=!0,I.value=void 0},P=g=>{d.value=g;const A=e.dict.find(S=>S.value===void 0);M.value=!1,I.value=void 0,F.value=void 0,i.value=void 0,y.emit("change",void 0,e.child,F.value,i.value,A,d.value,M.value)},V=g=>{var A,S,G,z;if((A=e.child)!=null&&A.isNoDot){if(g.includes("."))return g.replace(".","")}else if((S=e.child)!=null&&S.dot){if(g.includes(".")){const H=g.split(".");if(H[1].length>((G=e.child)==null?void 0:G.dot)){const W=H[1].substring(0,(z=e.child)==null?void 0:z.dot);return`${H[0]}.${W}`}}return g}return g},k=Q(()=>{var g,A,S,G,z;return(g=e.child)!=null&&g.selectBtmType?((A=e.child.selectBtmType)==null?void 0:A.includes("max"))&&((S=e.child.selectBtmType)==null?void 0:S.includes("min"))?i.value!==void 0&&F.value!==void 0?F.value>i.value:!0:!(((G=e.child.selectBtmType)==null?void 0:G.includes("min"))&&F.value!==void 0||((z=e.child.selectBtmType)==null?void 0:z.includes("max"))&&i.value!==void 0):!0});return{selectData:I,dictList:L,min:F,max:i,levelType:d,handleRadioChange:B,handleEnter:D,enterDisable:k,handleLevelTypeChange:P,formatter:V}}});const Ga={key:0,class:"left-wrap"},Ra=["onClick"],Pa={class:"right-wrap"},Oa={key:0,style:{margin:"0 4px"}},za={key:2,style:{margin:"0 4px",color:"#8c93a2"}};function Ha(e,y,F,i,d,M){const I=Ut,L=Nt,B=qt,D=Ee,P=st;return n(),N(P,null,{default:f(()=>{var V;return[e.child.selectLevel>1?(n(),v("div",Ga,[(n(!0),v(U,null,Z(e.child.leftSelect,k=>(n(),v("div",{onClick:g=>e.handleLevelTypeChange(k.value),class:J(["left-item",{"left-item-active":e.levelType===k.value}]),key:k.value},p(k.label),11,Ra))),128))])):$("",!0),o("div",Pa,[w(L,{style:{width:"100%"},class:"list-wrap",modelValue:e.selectData,"onUpdate:modelValue":y[0]||(y[0]=k=>e.selectData=k),onChange:e.handleRadioChange},{default:f(()=>[(n(!0),v(U,null,Z(e.dictList,k=>(n(),v("div",{class:"item",key:k.value},[w(I,{style:{width:"100%"},value:k.value},{default:f(()=>[q(p(k.label),1)]),_:2},1032,["value"])]))),128))]),_:1},8,["modelValue","onChange"]),(V=e.child.selectBtmType)!=null&&V.length?(n(),N(P,{key:0,wrap:!1,align:"center",justify:"space-between",class:"bottom-wrap"},{default:f(()=>{var k,g,A,S,G;return[e.child.selectBtmType.length===1&&((k=e.child.selectBtmType)==null?void 0:k.includes("min"))?(n(),v("span",Oa,"\u2265")):$("",!0),(g=e.child.selectBtmType)!=null&&g.includes("min")?(n(),N(B,{key:1,modelValue:e.min,"onUpdate:modelValue":y[1]||(y[1]=z=>e.min=z),"hide-button":"","model-event":"input",size:"small",style:Je([{width:"52px","font-size":"12px",padding:"0 4px"},e.min<e.child.minLength||e.min>e.child.maxLength||e.max<e.min?"border-color: red":""]),placeholder:"\u6700\u5C0F\u503C",formatter:e.child.isNoDot||e.child.dot?e.formatter:null,min:e.child.minLength,max:e.child.maxLength},null,8,["modelValue","formatter","style","min","max"])):$("",!0),((A=e.child.selectBtmType)==null?void 0:A.includes("min"))&&((S=e.child.selectBtmType)==null?void 0:S.includes("max"))?(n(),v("span",za,"~")):$("",!0),(G=e.child.selectBtmType)!=null&&G.includes("max")?(n(),N(B,{key:3,modelValue:e.max,"onUpdate:modelValue":y[2]||(y[2]=z=>e.max=z),"model-event":"input","hide-button":"",size:"small",style:Je([{width:"52px","font-size":"12px",padding:"0 4px"},e.max<e.child.minLength||e.max>e.child.maxLength||e.max<e.min?"border-color: red":""]),formatter:e.child.isNoDot||e.child.dot?e.formatter:null,placeholder:"\u6700\u5927\u503C",min:e.child.minLength,max:e.child.maxLength},null,8,["modelValue","formatter","style","min","max"])):$("",!0),w(D,{disabled:e.enterDisable||e.max<e.child.minLength||e.max>e.child.maxLength||e.min<e.child.minLength||e.min>e.child.maxLength,onClick:ie(e.handleEnter,["stop"]),style:{"margin-left":"8px"},size:"small",type:"primary"},{default:f(()=>[q("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]}),_:1})):$("",!0)])]}),_:1})}const Ka=me(Ua,[["render",Ha],["__scopeId","data-v-c3c30abc"]]),Ya=de({name:"index",components:{FilterCheck:qa,FilterRadio:Ka},emits:["change","selectChange","update:headerValue","update:filterForm"],props:{title:{type:String,default(){return"\u7B5B\u9009\u6761\u4EF6"}},showHeaderCheckbox:{type:Boolean,default(){return!0}},headerLabel:{type:String},headerValue:{type:[String,Boolean,Number]},headerTip:{type:String},filtersMap:{type:Array,require:!0},dictMap:{type:Object,require:!0},filterForm:{type:Object,require:!0},loading:{type:Boolean,default(){return!1}}},setup(e,y){const F=Q({get(){return e.headerValue},set(a){y.emit("update:headerValue",a)}}),i=Q(()=>e.filtersMap.find(a=>a.type==="child"?a.childInfo.find(u=>e.filterForm[u.prop]!==void 0):e.filterForm[a.prop]!==void 0)),d=ta(e,"filterForm",y.emit),M=Q(()=>{let a="",r="",u="",c="";return e.dictMap.category_id&&e.dictMap.category_id.length&&e.dictMap.category_id.forEac
1h(C=>{C.value===d.value.category_id&&(a=C.label,r="",u="",d.value.product_main_type!==-1&&C.children&&C.children.length&&C.children.forEach(T=>{T.value===d.value.product_main_type?r=T.label:r||T.children&&T.children.length&&T.children.forEach(R=>{R.value===d.value.product_main_type&&(r=T.label,u=R.label)})}))}),c=a,r&&(c=c+" - "+r),u&&(c=c+" - "+u),"\u5E26\u8D27\u5206\u7C7B-"+c}),I=Q(()=>{let a="",r="";return e.dictMap.fans_city&&e.dictMap.fans_city.length&&e.dictMap.fans_city.forEach(u=>{u.children&&u.children.length&&u.children.forEach(c=>{c.name===d.value.fans_city&&(a=u.name,r=c.name)})}),`${a}-${r}`}),L=Q(()=>{let a="",r="";return e.dictMap.author_city&&e.dictMap.author_city.length&&e.dictMap.author_city.forEach(u=>{u.children&&u.children.length&&u.children.forEach(c=>{c.city_code===d.value.author_city&&(a=u.name,r=c.name)})}),`${a}-${r}`}),B=async()=>{const a=await Ia();if(!a.code){const r=Fe({rows:a.data,value:"id",label:"name"});r.unshift({label:"\u5168\u90E8",value:-1});const u={sell_label:r};y.emit("update:dictMap",{...e.dictMap,...u})}},D=async a=>{var u,c;const r=e.dictMap.category_id&&((u=e.dictMap.category_id)==null?void 0:u.find(C=>C.value===a))&&((c=e.dictMap.category_id)==null?void 0:c.find(C=>C.value===a).children);if(!(r&&r.length)){const C=await Ze({channel_id:a});if(!C.code)if(a===0){const T=Fe({rows:C.data,value:"cat_id",label:"text"});T.unshift({label:"\u5168\u90E8",value:-1});const R={category_id:T};y.emit("update:dictMap",{...e.dictMap,...R})}else{const T=Fe({rows:C.data,value:"cat_id",label:"text"}),R=e.dictMap.category_id;R.forEach(K=>{K.value===a&&(K.children=T)});const Y={category_id:R};y.emit("update:dictMap",{...e.dictMap,...Y})}}},P=a=>{a.value!==-1&&D(a.value)},V=a=>{console.log(a,"MethodName ==> propItem"),a.value===-1?(d.value.product_main_type=-1,d.value.category_id=-1):(d.value.product_main_type=a.value,d.value.category_id=a.value),y.emit("change")},k=async(a,r)=>{const u=await Ze({cat_id:a.value});if(!u.code){const c=Fe({rows:u.data,value:"cat_id",label:"text"});c.forEach(R=>{R.isLeaf=!0});const C=e.dictMap.category_id;
1C.forEach(R=>{R.children&&R.children.length&&R.children.forEach(Y=>{Y.value===a.value&&(Y.children=c)})});const T={category_id:C};y.emit("update:dictMap",{...e.dictMap,...T}),r(c)}return!1},g=a=>(d.value.category_id="",e.dictMap.category_id.forEach(r=>{r.children&&r.children.length&&r.children.forEach(u=>{u.value===a?d.value.category_id=r.value:d.value.category_id||u.children&&u.children.length&&u.children.forEach(c=>{c.value===a&&(d.value.category_id=r.value)})})}),y.emit("change"),!1),A=(a,r)=>{var u;return r.multiple&&d.value[r.prop]!==-1?(u=d.value[r.prop])==null?void 0:u.split(",").includes(a.value.toString()):!1},S=a=>{const r=d.value[a.prop].split(",").map(c=>e.dictMap[a.prop].map(C=>{if(C.value===c)return C.label}).filter(C=>C)[0]);return console.log(r,"MethodName ==> res"),r.join(",")},G=(a,r)=>{var C;const u=r.prop;if(console.log(a.value,r,d.value,"MethodName ==> propItem.value,item"),!r.multiple||a.value===-1)return d.value[u]=a.value,y.emit("change"),!1;d.value[u]===-1&&(d.value[u]="");const c=(C=d.value[u])==null?void 0:C.split(",");c.includes(a.value.toString())?d.value[u]=c.filter(T=>T!==a.value.toString()).join(","):d.value[u]+=d.value[u]?`,${a.value}`:a.value,console.log(d.value,"MethodName ==> filterForm.value"),y.emit("change")},z=(a,r,u)=>{if(a.type==="tag")d.value[a.prop]=void 0,a.prop==="category_id"&&(d.value.category_id=void 0);else if(a.type==="child"){const c=a.childInfo[r];c.type==="radio"&&(d.value[c.prop]=void 0,d.value[`${c.prop}_low`]=void 0,d.value[`${c.prop}_up`]=void 0,c.selectLevel===2&&(d.value[`${c.prop}_1d`]=void 0,d.value[`${c.prop}_1d_up`]=void 0,d.value[`${c.prop}_7d`]=void 0,d.value[`${c.prop}_7d_up`]=void 0,d.value[`${c.prop}_30d`]=void 0,d.value[`${c.prop}_30d_up`]=void 0))}y.emit("change")},H=(a,r,u,c,C,T,R)=>{!r&&!u&&!c&&!C&&!T&&!R||R!==!1&&(r&&(r.visible=!1),y.emit("selectChange",a,r,u,c,C,T))},W=E(),_=()=>{e.filtersMap.forEach(a=>{a.type==="tag"?d.value[a.prop]=void 0:a.type==="child"&&a.childInfo.forEach(r=>{r.selectLevel===1?(d.value[`${r.prop}_low`]=void 0,d.value[`${r.prop}_up`]=void 0):r.selectLevel===2&&(d.value[`${r.prop}_1d`]=void 0,d.value[`${r.prop}_1d_up`]=void 0,d.value[`${r.prop}_7d`]=void 0,d.value[`${r.prop}_7d_up`]=void 0,d.value[`${r.prop}_30d`]=void 0,d.value[`${r.prop}_30d_up`]=void 0),d.value[r.prop]=void 0})}),console.log(W.value,1231232),W.value.forEach(a=>{a.min=void 0,a.max=void 0}),y.emit("change")};return _e(()=>e.filtersMap,a=>{a!=null&&a.find(r=>r.prop==="category_id")&&D(0),a!=null&&a.find(r=>r.prop==="sell_label")&&B()},{immediate:!0,deep:!0}),{headerV:F,getTags:A,getTagsLable:S,selectTag:G,hoverCat:P,selectCat:V,categoryText:M,fansCityText:I,authorCityText:L,loadMoreCat:k,handleCatChange:g,handleCloseTag:z,handleUpdate1:H,handleClear:_,handlePopupChange:()=>{},filterRadioRef:W,isSelect:i}}});const Ge=e=>(Se("data-v-60cc17bd"),e=e(),Te(),e),Wa={class:"headerExtra"},Ja=Ge(()=>o("i",{class:"iconfont icon-zhushi toolicon"},null,-1)),Qa={key:0,style:{"padding-bottom":"16px"}},Xa={class:"filters-content"},Za={class:"label"},ja=["onClick"],eo={class:"cat-box"},to=["onClick"],ao=["onClick"],oo=["onClick"],so={style:{"white-space":"pre-line"}},lo=Ge(()=>o("i",{class:"iconfont icon-zhushi toolicon"},null,-1)),no={class:"box scrollbar"},io=["onClick"],uo={key:0,class:"select-box"},ro=Ge(()=>o("span",{class:"label"},"\u5DF2\u9009",-1)),co={class:"slected-bar"},po={key:0},vo={key:0},_o={key:1},mo={key:1},fo={key:0},yo={key:0},ho={key:1},go={key:1},bo={class:"filters-show"};function Co(e,y,F,i,d,M){const I=Le,L=lt,B=Rt,D=Pt,P=Ot,V=Ht,k=Ue,g=oe("icon-down"),A=oe("filter-check"),S=oe("filter-radio"),G=oe("icon-up-circle"),z=oe("icon-down-circle"),H=Kt,W=zt;return n(),N(W,{title:e.title},Gt({default:f(()=>[e.loading?(n(),v("div",Qa,[w(P,{animation:!0},{default:f(()=>[w(D,{direction:"vertical",style:{width:"100%"},size:"large"},{default:f(()=>[w(B,{rows:e.filtersMap&&e.filtersMap.length+1,"line-height":"18","line-spacing":"26"},null,8,["rows"])]),_:1})]),_:1})])):(n(),v(U,{key:1},[o("div",Xa,[(n(!0),v(U,null,Z(e.filtersMap,_=>(n(),v("div",{key:_.prop,class:J(["filters-item",{wrap:_.wrap,showAll:_.showAll,tagType:_.type==="tag"}])},[o("span",Za,p(_.label),1),_.type==="tag"?(n(),N(D,{key:0,wrap:_.wrap,size:"large"},{default:f(()=>[_.prop==="category_id"?(n(!0),v(U,{key:0},Z(e.dictMap[_.prop],s=>(n(),v(U,{key:s.value},[s.value!==-1?(n(),N(k,{key:0,trigger:"hover","unmount-on-close":!1,position:"bl","animation-name":"zoom
1-in-fade-out","popup-translate":[-12,10],onShow:a=>e.hoverCat(s)},{content:f(()=>[o("div",eo,[w(V,{modelValue:e.filterForm.product_main_type,"onUpdate:modelValue":y[1]||(y[1]=a=>e.filterForm.product_main_type=a),options:s.children,"load-more":e.loadMoreCat,"expand-trigger":"hover","check-strictly":"",onChange:e.handleCatChange,loading:!(s.children&&s.children.length)},null,8,["modelValue","options","load-more","onChange","loading"])])]),default:f(()=>[o("span",{class:J(["tag",{active:!e.filterForm[_.prop]&&s.value===void 0||e.filterForm[_.prop]===s.value}]),onClick:a=>e.selectCat(s)},p(s.label),11,ja)]),_:2},1032,["onShow"])):(n(),v("span",{key:1,class:J(["tag",{active:!e.filterForm[_.prop]&&s.value===-1||e.filterForm[_.prop]===s.value}]),onClick:a=>e.selectCat(s)},p(s.label),11,to))],64))),128)):(n(!0),v(U,{key:1},Z(e.dictMap[_.prop],s=>(n(),v("span",{key:s.value,class:J(["tag",{active:!e.filterForm[_.prop]&&s.value===-1||e.filterForm[_.prop]===s.value||e.getTags(s,_)}]),onClick:a=>e.selectTag(s,_)},p(s.label),11,ao))),128))]),_:2},1032,["wrap"])):$("",!0),_.type==="child"?(n(),N(D,{key:1,size:"large",wrap:_.wrap},{default:f(()=>[(n(!0),v(U,null,Z(_.childInfo,s=>(n(),v("div",{key:s.prop},[s.type==="tag"?(n(),v("span",{key:0,class:J(["tag childTag",{active:e.filterForm[s.prop]===1}]),onClick:a=>e.handleUpdate(e.filterForm,s.prop)},p(s.label),11,oo)):s.type==="checkbox"?(n(),N(I,{key:1,modelValue:e.filterForm[s.prop],"onUpdate:modelValue":a=>e.filterForm[s.prop]=a,value:s.value,disabled:!!(s.prop==="is_bind_push"&&e.filterForm.is_add),onChange:e.handleUpdate},{default:f(()=>[q(p(s.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","value","disabled","onChange"])):(n(),N(k,{key:2,trigger:"click","unmount-on-close":!1,"popup-visible":s.visible,"onUpdate:popup-visible":a=>s.visible=a,position:"bottom","auto-fit-position":"","animation-name":"zoom-in-fade-out","popup-translate":[0,8],onPopupVisibleChange:a=>e.handlePopupChange(a,s)},{content:f(()=>[o("div",no,[s.type==="check"?(n(),N(A,{key:0,dict:e.dictMap[s.prop],value:e.filterForm[s.prop],"onUpdate:value":a=>e.filterForm[s.prop]=a,onChange:e.handleUpdate},null,8,["dict","value","onUpdate:value","onChange"])):$("",!0),s.type==="radio"?(n(),N(S,{key:1,dict:e.dictMap[s.prop],value:e.filterForm[s.prop],"onUpdate:value":a=>e.filterForm[s.prop]=a,child:s,ref_for:!0,ref:"filterRadioRef",onChange:e.handleUpdate1},null,8,["dict","value","onUpdate:value","child","onChange"])):$("",!0),s.type==="slot"?De(e.$slots,s.slotName,{key:2},void 0,!0):$("",!0)])]),default:f(()=>[o("span",{class:J(["childItem",{active:e.filterForm[s.prop]!==-1&&(e.filterForm[s.prop]||e.filterForm[s.prop]===0)}])},[q(p(s.label)+" ",1),w(g,{style:{"margin-left":"4px"}}),s.tip?(n(),N(L,{key:0,content:s.tip,"content-style":{maxWidth:"500px"},"background-color":"#484C64"},{content:f(()=>[o("div",so,p(s.tip),1)]),default:f(()=>[lo]),_:2},1032,["content"])):$("",!0)],2)]),_:2},1032,["popup-visible","onUpdate:popup-visible","onPopupVisibleChange"]))]))),128))]),_:2},1032,["wrap"])):$("",!0),_.wrap?(n(),v("span",{key:2,class:"filters-show",onClick:s=>_.showAll=!_.showAll},[o("span",null,p(_.showAll?"\u6536\u8D77":"\u5C55\u5F00"),1),_.showAll?(n(),N(G,{key:0})):(n(),N(z,{key:1}))],8,io)):$("",!0)],2))),128))]),e.isSelect?(n(),v("div",uo,[ro,o("div",co,[(n(!0),v(U,null,Z(e.filtersMap,_=>(n(),v(U,{key:_.prop},[_.type==="child"?(n(!0),v(U,{key:0},Z(_.childInfo,(s,a)=>(n(),v(U,{key:s.prop},[s.type&&s.type==="radio"?(n(),v(U,{key:0},[e.filterForm[s.prop]&&e.filterForm[s.prop]!==void 0&&e.filterForm[s.prop]!=="custom"?(n(),N(H,{key:0,color:"#F5F7FA",onClose:r=>e.handleCloseTag(_,a),closable:""},{default:f(()=>{var r,u,c,C;return[s.selectLevel!==2?(n(),v("span",po,[s.selectBtmType.length>1?(n(),v("span",vo,p(s.label)+" "+p(e.dictMap[s.prop]&&((u=(r=e.dictMap[s.prop])==null?void 0:r.find(T=>T.value===e.filterForm[s.prop]))==null?void 0:u.label)),1)):(n(),v("span",_o,p(s.label)+" \u2265 "+p(e.filterForm[`${s.prop}_text`]),1))])):(n(),v("span",mo,p(s.dayText)+p(s.label)+" "+p(e.dictMap[s.prop]&&((C=(c=e.dictMap[s.prop])==null?void 0:c.find(T=>
1T.value===e.filterForm[s.prop]))==null?void 0:C.label)),1))]}),_:2},1032,["onClose"])):e.filterForm[s.prop]&&e.filterForm[s.prop]==="custom"?(n(),N(H,{key:1,color:"#F5F7FA",onClose:r=>e.handleCloseTag(_,a),closable:""},{default:f(()=>[s.selectLevel===1?(n(),v("span",fo,[s.selectBtmType.length===2?(n(),v("span",yo,p(s.label)+" "+p(e.filterForm[`${s.prop}_low_text`])+p(s.unit||"")+" ~ "+p(e.filterForm[`${s.prop}_up_text`])+p(s.unit||""),1)):(n(),v("span",ho,p(s.label)+" \u2265"+p(e.filterForm[`${s.prop}_text`]),1))])):s.selectLevel===2?(n(),v("span",go,p(s.dayText)+p(s.label)+" "+p(e.filterForm[`${s.prop}_${s.day}_text`])+p(s.unit||"")+" ~ "+p(e.filterForm[`${s.prop}_${s.day}_up_text`])+p(s.unit||""),1)):$("",!0)]),_:2},1032,["onClose"])):$("",!0)],64)):$("",!0)],64))),128)):_.type==="tag"&&(e.filterForm[_.prop]||e.filterForm[_.prop]===void 0||e.filterForm[_.prop]===0)?(n(),v(U,{key:1},[_.prop==="category_id"&&e.filterForm[_.prop]&&e.filterForm[_.prop]!==void 0?(n(),N(H,{color:"#F5F7FA",key:_.prop,onClose:s=>e.handleCloseTag(_),closable:""},{default:f(()=>[q(p(e.categoryText),1)]),_:2},1032,["onClose"])):(n(),v(U,{key:1},[e.filterForm[_.prop]!==void 0?(n(),N(H,{color:"#F5F7FA",key:_.prop,onClose:s=>e.handleCloseTag(_),closable:""},{default:f(()=>{var s,a;return[_.multiple?(n(),v(U,{key:1},[q(p(_.label)+" "+p(e.getTagsLable(_)),1)],64)):(n(),v(U,{key:0},[q(p(_.label)+" "+p(((s=e.dictMap[_.prop])==null?void 0:s.find(r=>r.value===e.filterForm[_.prop]))&&((a=e.dictMap[_.prop])==null?void 0:a.find(r=>r.value===e.filterForm[_.prop]).label)),1)],64))]}),_:2},1032,["onClose"])):$("",!0)],64))],64)):$("",!0)],64))),128))]),o("span",bo,[o("span",{class:"text-btn",onClick:y[2]||(y[2]=(..._)=>e.handleClear&&e.handleClear(..._))},"\u6E05\u7A7A")])])):$("",!0)],64))]),_:2},[e.showHeaderCheckbox?{name:"extra",fn:f(()=>[o("div",Wa,[e.headerLabel?(n(),N(I,{key:0,modelValue:e.headerV,"onUpdate:modelValue":y[0]||(y[0]=_=>e.headerV=_),value:"222",onChange:e.handleUpdate},{default:f(()=>[q(p(e.headerLabel),1)]),_:1},8,["modelValue","onChange"])):$("",!0),e.headerTip?(n(),N(L,{key:1,content:e.headerTip,"background-color":"#484C64"},{default:f(()=>[Ja]),_:1},8,["content"])):$("",!0)])]),key:"0"}:void 0]),1032,["title"])}const ko=me(Ya,[["render",Co],["__scopeId","data-v-60cc17bd"]]);function $o(){return[{prop:"catId",label:"\u5546\u54C1\u7C7B\u76EE",type:"tag",wrap:!0,params:{roles:-1}},{prop:"extendInfo",label:"\u63A8\u5E7F\u4FE1\u606F",type:"child",childInfo:[{prop:"commission_rate",label:"\u4F63\u91D1\u7387",type:"radio",num:100,unit:"%",isNoDot:!0,minLength:0,maxLength:100,visible:!1,selectLevel:1,selectBtmType:["min","max"]},{prop:"sold_count",label:"\u9500\u91CF",type:"radio",dayText:"\u6628\u65E5",day:"1d",isNoDot:!0,minLength:0,maxLength:1e6,visible:!1,selectLevel:2,selectBtmType:["min","max"],leftSelect:[{label:"\u6628\u65E5\u9500\u91CF",value:1},{label:"7\u65E5\u9500\u91CF",value:7},{label:"30\u65E5\u9500\u91CF",value:30}]},{prop:"pv",label:"\u6D4F\u89C8\u91CF",type:"radio",selectLevel:2,dayText:"\u6628\u65E5",day:"1d",minLength:0,isNoDot:!0,maxLength:1e6,visible:!1,selectBtmType:["min","max"],leftSelect:[{label:"\u6628\u65E5\u6D4F\u89C8\u91CF",value:1},{label:"7\u65E5\u6D4F\u89C8\u91CF",value:7},{label:"30\u65E5\u6D4F\u89C8\u91CF",value:30}]},{prop:"promoter",label:"\u63A8\u5E7F\u8FBE\u4EBA",type:"radio",selectLevel:2,dayText:"\u6628\u65E5",day:"1d",visible:!1,minLength:0,isNoDot:!0,maxLength:1e6,selectBtmType:["min","max"],leftSelect:[{label:"\u6628\u65E5\u63A8\u5E7F\u6570",value:1},{label:"7\u65E5\u63A8\u5E7F\u6570",value:7},{label:"30\u65E5\u63A8\u5E7F\u6570",value:30}]}]},{prop:"other",label:"\u5546\u54C1\u4FE1\u606F",type:"child",childInfo:[{prop:"price",label:"\u4EF7\u683C",type:"radio",num:100,visible:!1,isNoDot:!0,selectLevel:1,selectBtmType:["min","max"],minLength:0,maxLength:1e5},{prop:"shop_score",label:"\u5546\u5BB6\u4F53\u9A8C\u5206",type:"radio",num:100,dot:1,visible:!1,selectLevel:1,minLength:0,selectBtmType:["min"],maxLength:5}]}]}function Fo(){return{catId:[],has_douin_goods_tag:[{value:-1,label:"\u5168\u90E8"},{value:1,label:"\u6296in\u597D\u7269"},{value:"is_assured",label:"\u5B89\u5FC3\u8D2D"},{value:"has_sxt",label:"\u968F\u5FC3\u63A8"}],tags:[],commission_rate:[{value:void 0,label:"\u4E0D\u9650",min:void 0,max:void 0},{value:1,label:"0%~5%",type:"radio",min:0,max:500,min_text:"0%",max_text:"5%"},{value:2,label:"5%~10%",min:500,max:1e3,min_text:"5%",max_text:"10%"},{value:3,label:"10%~20%",min:1e3,max:2e3,min_text:"10%",max_text:"20%"},{value:4,label:"20%~30%",min:2e3,max:3e3,min_text:"20%",max_text:"30%"},{value:5,label:"30%~40%",min:3e3,max:4e3,min_text:"30%",max_text:"40%"},{value:6,label:"40%~50%",min:4e3,max:5e3,min_text:"40%",max_text:"50%"}],sold_count:[{value:void 0,label:"\u4E0D\u9650",min:void 0,max:void 0},{value:1,label:"\u2265 100",min:100,max:void 0},{value:2,label:"\u2265300",min:300,max:void 0},{value:3,label:"\u2265500",min:500,max:void 0},{value:4,label:"\u22651000",min:1e3,max:void 0},{value:5,label:"\u22653000",min:3e3,max:void 0},{value:6,label:"\u22655000",min:5e3,max:void 0},{value:7,label:"\u22651w",min:1e4,max:void 0},{value:8,label:"\u22653w",min:3e4,max:void 0},{value:9,label:"\u22655w",min:5e4,max:void 0}],price:[{value:void 0,label:"\u4E0D\u9650",min:void 0,max:void 0},{value:1,label:"0~10",min:0,max:1e3,min_text:"0",max_text:"10"},{value:2,label:"10~20",min:1e3,max:2e3,min_text:"10",max_text:"20"},{value:3,label:"20~50",min:2e3,max:5e3,min_text:"20",max_text:"50"}
1,{value:4,label:"50~100",min:5e3,max:1e4,min_text:"50",max_text:"100"},{value:5,label:"100~200",min:1e4,max:2e4,min_text:"100",max_text:"200"}],shop_score:[{value:void 0,label:"\u4E0D\u9650"},{value:500,label:"5.0"},{value:490,label:"\u22654.9"},{value:480,label:"\u22654.8"},{value:470,label:"\u22654.7"},{value:460,label:"\u22654.6"}],pv:[{value:void 0,label:"\u4E0D\u9650",min:void 0,max:void 0},{value:1,label:"\u2265500",min:500,max:void 0},{value:2,label:"\u22651000",min:1e3,max:void 0},{value:3,label:"\u22653000",min:3e3,max:void 0},{value:4,label:"\u22655000",min:5e3,max:void 0},{value:5,label:"\u22651w",min:1e4,max:void 0},{value:6,label:"\u22653w",min:3e4,max:void 0}],promoter:[{value:void 0,label:"\u4E0D\u9650",min:void 0,max:void 0},{value:1,label:"\u2265100",min:100,max:void 0},{value:2,label:"\u2265300",min:300,max:void 0},{value:3,label:"\u2265500",min:500,max:void 0},{value:4,label:"\u22651000",min:1e3,max:void 0},{value:5,label:"\u22653000",min:3e3,max:void 0}],fans:[{value:-1,label:"\u5168\u90E8"},{value:1e4,label:"<1w"},{value:5e4,label:"<5w"},{value:1e5,label:"<10w"},{value:2e5,label:"<20w"},{value:5e5,label:"<50w"}],score:[{value:null,label:"\u5168\u90E8"},{value:4.9,label:"\u22654.9"},{value:4.8,label:"\u22654.8"},{value:4.7,label:"\u22654.7"},{value:4.6,label:"\u22654.6"}],sales:[{value:-1,label:"\u5168\u90E8"},{value:500,label:"<500"},{value:1e3,label:"<1000"},{value:3e3,label:"<3000"},{value:5e3,label:"<5000"},{value:1e4,label:"<1w"},{value:2e4,label:"<2w"},{value:3e4,label:"<3w"}],is_sample:[{value:null,label:"\u5168\u90E8"},{value:"0",label:"\u4E0D\u652F\u6301\u514D\u8D39\u9886\u6837"},{value:"1",label:"\u652F\u6301\u514D\u8D39\u9886\u6837"}]}}function Do(){return[{title:"\u5546\u54C1",dataIndex:"commodity",ellipsis:!0,tooltip:!0,width:260,slotName:"commodity"},{title:"\u4EF7\u683C",dataIndex:"price",width:80,slotName:"price"},{title:"\u4F63\u91D1\u7387",dataIndex:"commission_rate",ellipsis:!0,width:80,slotName:"commission_rate"},{title:"\u4F63\u91D1",dataIndex:"commission_amount",ellipsis:!0,width:100,slotName:"commission_amount"},{title:"7\u65E5\u9500\u91CF",dataIndex:"sold_count_7d",ellipsis:!0,width:100,slotName:"sold_count_7d"},{title:"7\u65E5\u63A8\u5E7F\u8FBE\u4EBA",dataIndex:"promoter_7d",ellipsis:!0,width:100,slotName:"promoter_7d"},{title:"\u8FD130\u5929\u9500\u91CF\u8D8B\u52BF",dataIndex:"sale30d_count",ellipsis:!0,slotName:"trend",width:140},{title:"\u64CD\u4F5C",dataIndex:"operate",ellipsis:!0,slotName:"operate",fixed:"right",width:150}]}const se=e=>(Se("data-v-fc53097a"),e=e(),Te(),e),wo=["onClick"],xo={key:0,class:"add-cart-img",src:"https://image.doulaoban.com/web/images/xpin-cart.png",alt:""},Eo={key:1,class:"add-cart-img",src:"https://image.doulaoban.com/web/images/xpin-cart-active.png",alt:""},Lo={class:"card-cover-box"},So=["src"],To={class:"card-cover-context"},Bo={class:"card-context"},Ao=["title"],Mo=se(()=>o("img",{class:"icon-kuaishou",src:"https://image.doulaoban.com/images/ks_icon.png"},null,-1)),Io={class:"card-money1"},Vo={class:"info top"},No={class:"card-money-price"},qo=se(()=>o("i",{class:"icon-yuan",style:{"font-size":"12px","font-weight":"600"}},"\uFFE5",-1)),Uo={class:"text"},Go={class:"num-count"},Ro={class:"info num"},Po={class:"card-money-bounty"},Oo={class:"text"},zo={class:"card-money-price-tag"},Ho={class:"text"},Ko={class:"card-popover"},Yo={class:"card-popover-content"},Wo=se(()=>o("div",{class:"card-line"},null,-1)),Jo=se(()=>o("div",{class:"sell-total-all mt-8"},"\u9500\u91CF ",-1)),Qo={class:"sell-count mt-8"},Xo={class:"sell-count-item"},Zo={class:"num"},jo=se(()=>o("p",{class:"text"},"\u6628\u65E5",-1)),es={class:"sell-count-item"},ts={class:"num"},as=se(()=>o("p",{class:"text"},"7\u65E5",-1)),os={class:"sell-count-item"},ss={class:"num"},ls=se(()=>o("p",{class:"text"},"30\u65E5",-1)),ns={class:"score-box"},is={class:"score-icon"},us={class:"shop-score"},rs={class:"shop-score-item"},cs={class:"num"},ds=se(()=>o("p",{class:"text"},"\u5546\u54C1\u4F53\u9A8C",-1)),ps={class:"shop-score-item"},vs={class:"num"},_s=se(()=>o("p",{class:"text"},"\u7269\u6D41\u4F53\u9A8C",-1)),ms={class:"shop-score-item"},fs={class:"num"},ys=se(()=>o("p",{class:"text"},"\u552E\u540E\u670D\u52A1",-1)),hs=de({__name:"index",props:{cardData:{type:Object,default:()=>({})},productFocusId:{type:Number||String,default:0},isGoodsList:{type:Boolean,default:()=>!1},type:{type:String,default:""},columnsFilter:{type:Array,default:()=>[]},listType:{type:String,default:()=>"1"},isSelect:{type:Boolean,default:()=>!1}},emits:["check","cartChange"],setup(e,{emit:y}){const F=e,i=L=>{let B="",D="";
1return L===2?(B="cenetr",D="\u4E2D"):L===3?(B="min",D="\u4F4E"):(B="max",D="\u9AD8"),{code:B,label:D}},d=L=>{Xt(L==null?void 0:L.currentTarget),window.open(`/kuaishou/goods/ks-goods-item?activity_id=${F.cardData.activity_id}&product_id=${F.cardData.product_id}&pre_activity_id=${F.cardData.pre_activity_id}`,"_blank")},M=()=>{y("cartChange")},I=L=>{y("check",L)};return(L,B)=>{var P,V,k,g,A,S,G,z,H;const D=Le;return n(),v("div",{class:"goods-card",onClick:d},[e.isSelect?(n(),v("div",{key:0,class:"check-box",onClick:B[1]||(B[1]=ie(()=>{},["stop"]))},[w(D,{onChange:I,modelValue:e.cardData.check,"onUpdate:modelValue":B[0]||(B[0]=W=>e.cardData.check=W)},null,8,["modelValue"])])):$("",!0),o("div",{class:"add-cart-icon",onClick:ie(M,["stop"])},[e.cardData.cart_id?$("",!0):(n(),v("img",xo)),e.cardData.cart_id?(n(),v("img",Eo)):$("",!0)],8,wo),o("div",Lo,[o("img",{class:"card-cover-img",src:e.cardData.cover||"https://image.doulaoban.com/applet/image/1690862760424_not-image.png"},null,8,So),De(L.$slots,"stock-info",{cardData:e.cardData},void 0,!0),o("div",To,[De(L.$slots,"card-cover",{cardData:e.cardData},void 0,!0)])]),o("div",Bo,[o("div",{class:"card-title",title:e.cardData.title},[Mo,o("span",null,p(e.cardData.title),1)],8,Ao),o("div",Io,[o("div",Vo,[o("div",No,[qo,o("span",Uo,p(e.cardData.price/100),1)]),o("div",Go,"7\u65E5\u9500\u91CF\uFF1A"+p(X(he)(e.cardData.sold_count_7d)),1)]),o("div",Ro,[o("div",Po,[q(" \u9AD8\u4F63 "),o("span",Oo,p(e.cardData.commission_rate/100)+"%",1)]),o("div",zo,[q(" \u8D5A "),o("span",Ho,"\uFFE5"+p(e.cardData.commission_amount/100),1)])])])]),o("div",Ko,[o("div",Yo,[Wo,Jo,o("div",Qo,[o("div",Xo,[o("p",Zo,p(X(he)(e.cardData.sold_count_1d)),1),jo]),o("div",es,[o("p",ts,p(X(he)(e.cardData.sold_count_7d)),1),as]),o("div",os,[o("p",ss,p(X(he)(e.cardData.sold_count_30d)),1),ls])]),o("p",ns,[q(p(e.cardData.shop_title)+" ",1),o("span",is,p(e.cardData.shop_score/100),1)]),o("div",us,[o("div",rs,[o("p",cs,[q(p(((P=e.cardData.shop)==null?void 0:P.product_score)/100)+" ",1),o("span",{class:J(["score-icon",i((V=e.cardData.shop)==null?void 0:V.product_level).code])},p(i((k=e.cardData.shop)==null?void 0:k.product_level).label),3)]),ds]),o("div",ps,[o("p",vs,[q(p(((g=e.cardData.shop)==null?void 0:g.logistics_score)/100)+" ",1),o("span",{class:J(["score-icon",i((A=e.cardData.shop)==null?void 0:A.logistics_level).code])},p(i((S=e.cardData.shop)==null?void 0:S.logistics_level).label),3)]),_s]),o("div",ms,[o("p",fs,[q(p(((G=e.cardData.shop)==null?void 0:G.serve_score)/100)+" ",1),o("span",{class:J(["score-icon",i((z=e.cardData.shop)==null?void 0:z.serve_level).code])},p(i((H=e.cardData.shop)==null?void 0:H.serve_level).label),3)]),ys])])])]),De(L.$slots,"card-extra",{cardData:e.cardData},void 0,!0)])}}});const gs=me(hs,[["__scopeId","data-v-fc53097a"]]),bs=de({emits:["trailer","update:commodityList"],props:{commodityList:{type:Array,default:()=>[]},exposeListType:{type:String,default:"selection_library"},exposeSearchQuery:{type:String,default:""},productFocusId:{type:Number||String,default:0},isGoodsList:{type:Boolean,default:()=>!1},notDataUrl:{type:Boolean,default:()=>!1},isSelect:{type:Boolean,default:!1},selectData:{type:Array,default(){return[]}}},components:{trailerDialog:ca,ApplicationDialog:rt,KsGoodsCard:gs},setup(e,y){const F=je(),i=Ve(),d=ce([{label:"\u5B9D\u8D1D\u63CF\u8FF0",value:"desc_score",level:"desc_level"},{label:"\u5356\u5BB6\u670D\u52A1",value:"logistics_score",level:"logistics_level"},{label:"\u7269\u6D41\u670D\u52A1",value:"service_score",level:"service_level"}]),M=ce({1:[{label:"\u5546\u54C1\u4F53\u9A8C",value:"desc_score",level:"desc_level"},{label:"\u5546\u5BB6\u670D\u52A1",value:"service_score",level:"service_level"},{label:"\u7269\u6D41\u4F53\u9A8C",value:"logistics_score",level:"logistics_level"}],5:[{label:"\u8BC4\u4EF7",value:"desc_score",level:"desc_level"},{label:"\u7269\u6D41",value:"logistics_score",level:"logistics_level"},{label:"\u552E\u540E",value:"service_score",level:"service_level"}],100:d,101:d}),I=a=>ut(a),L=a=>I(a)?"\u590D\u5236\u53E3\u4EE4":"\u590D\u5236ID",B=async a=>{if(!I(a)){xe(a.product_id)&&ve.success("\u5546\u54C1ID\u590D\u5236\u6210\u529F");return}if(!i.id){ge();return}const r=await et({activity_id:a.activity_id,product_id:a.product_id,pre_activity_id:a.pre_activity_id});if(!r.code){xe(r.data.share_token)&&ve.success("\u590D\u5236\u6210\u529F\uFF0C\u6253\u5F00\u5FEB\u624BAPP\u6DF
1B\u52A0\u5546\u54C1");const u={activity_id:a.activity_id,product_id:a.product_id,pre_activity_id:a.pre_activity_id};tt({app_id:2,event_id:1,event_position:1,event_data:JSON.stringify(u)})}},D=E(!1),P=E(!1),V=E(""),k=E({}),g=a=>{if(!i.id){ge();return}y.emit("trailer",a)},A=async a=>{await Tt({activity_goods_id:a.activity_goods_id}),k.value=a,P.value=!0},S=async a=>{if(!i.id){ge();return}a.is_unlimited===0&&a.stock<=0?ra({title:"\u7533\u6837\u63D0\u793A",message:"\u5F53\u524D\u5546\u54C1\u5E93\u5B58\u5DF2\u4E0D\u8DB3\uFF0C\u7533\u6837\u540E\u6709\u98CE\u9669\u53D1\u8D27\u5468\u671F\u8F83\u957F\u6216\u88AB\u62D2\u7EDD\u53D1\u8D27\uFF0C\u786E\u8BA4\u7EE7\u7EED\u7533\u6837\u5417\uFF1F",props:{okText:"\u7EE7\u7EED\u7533\u6837",cancelText:"\u53D6\u6D88"},onOk:()=>{A(a)}}):A(a)},G=a=>{D.value=a,P.value=a},z=(a,r)=>{we(()=>{console.log(a,r,"echartsData");const u=document.getElementById("echarts_basic_id_"+r),c=a.map(Y=>Y.order_num),C=a.map(Y=>Y.date);console.log(c,C);const T=Ie(u),R={tooltip:{trigger:"axis",formatter:Y=>{const K=Y.find(te=>te.seriesName==="\u9500\u91CF");let ee;K&&(ee=a.find(te=>te.date===K.name));let ue="";const Be=`<div>${Y[0].name}</div>`;return Y.forEach(function(te){const{seriesName:Ce}=te,{value:ke}=te,{color:Ae}=te;ue+=` 2 <div style="display:flex;align-items: center;justify-content:space-between"> 3 <div style="display:flex;align-items: center;"> 4 <div style="width: 8px;height:8px;flex-shrink: 0;margin-right: 4px;border-radius:50%;background: ${Ae}"></div> 5 ${Ce} 6 </div> 7 <span style="margin-left: 20px">${Ce==="\u9500\u91CF"?ee.order_num_format:ke}</span> 8 </div>`}),Be+""+ue}},legend:{data:["\u9500\u91CF"],bottom:10},grid:{top:40,bottom:46,left:20,containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:C},yAxis:{type:"value"},series:[{name:"\u9500\u91CF",type:"line",stack:"Total",data:c,color:"#2361FF"}]};T.setOption(R)})},H=(a,r)=>{r&&e.selectData.length>=20?a.check=!1:(a.check=r,y.emit("update:commodityList",e.commodityList))},W=async a=>{if(a.cart_id)await Et({id:[a.cart_id]}),a.cart_id="",ve.success("\u79FB\u51FA\u9009\u54C1\u8F66\u6210\u529F");else{const r=await Lt({product_id:a.product_id,pre_activity_id:a.pre_activity_id,activity_id:a.activity_id});a.cart_id=r.cart_id,ve.success("\u52A0\u5165\u9009\u54C1\u8F66\u6210\u529F")}F.getXpinCarData()},_=E(null);let s=null;return _e(()=>e.commodityList,()=>{we(()=>{const a=St();!a||!_.value||(s||(s=new xt(a)),s.observeAll(_.value))})},{immediate:!0}),nt(()=>s==null?void 0:s.disconnect()),{shopRating:M,echartsShow:z,copyLink:B,copyActionText:L,trailer:g,trailerShow:D,activityGoodsId:V,setShow:G,YhuoDialog:S,showYhuoDialog:P,goodsInfo:k,canShowCopyLink:I,handleCheckChange:H,handleCartChange:W,exposeContainerRef:_}}});const be=e=>(Se("data-v-b79ebea0"),e=e(),Te(),e),Cs={class:"commodity_box"},ks={class:"none_box"},$s=be(()=>o("div",null,[o("img",{style:{width:"200px"},src:"https://image.doulaoban.com/kabuda-oa/empty.png",alt:""}),o("div",{style:{color:"#737e97","text-align":"center","margin-top":"-10px"}},"\u6682\u65E0\u6570\u636E")],-1)),Fs=[$s],Ds=["data-expose-list","data-expose-search-query"],ws={class:"buttons"},xs=be(()=>o("span",null,"\u6DFB\u52A0\u8D27\u67B6",-1)),Es={class:"icon-two-text right"},Ls=be(()=>o("div",{class:"goods-trend"},"\u9500\u552E\u8D8B\u52BF",-1)),Ss={class:"trend_echarts_box"},Ts=["id"],Bs={key:1,class:"stock-text"},As=be(()=>o("img",{class:"img",src:da,alt:""},null,-1)),Ms=be(()=>o("div",null,"\u5E93\u5B58\u7D27\u5F20",-1)),Is=[As,Ms];function Vs(e,y,F,i,d,M){const I=Ee,L=Ue,B=oe("KsGoodsCard"),D=oe("trailerDialog"),P=oe("ApplicationDialog");return n(),v("div",Cs,[Ne(o("div",ks,Fs,512),[[qe,e.commodityList==0]]),o("div",{class:"goods-list",ref:"exposeContainerRef","data-expose-list":e.exposeListType,"data-expose-search-query":e.exposeSearchQuery,"data-expose-target-platform":"kuaishou"},[(n(!0),v(U,null,Z(e.commodityList,(V,k)=>(n(),N(B,{"is-goods-list":"",key:k,isSelect:e.isSelect,"card-data":V,"product-focus-id":e.productFocusId,"data-expose-goods-id":V.product_id,"data-expose-position":k+1,onCheck:g=>e.handleCheckChange(V,g),onCartChange:g=>e.handleCartChange(V)},{"card-cover":f(({cardData:g})=>[o("div",ws,[w(I,{class:"link",onClick:ie(A=>e.copyLink(g),["stop"]),type:"primary"},{default:f(()=>[o("span",null,p(e.copyActionText(g)),1)]),_:2}
8,1032,["onClick"]),w(I,{type:"primary",style:{padding:"0 26px"},onClick:ie(A=>e.trailer(g),["stop"])},{default:f(()=>[xs]),_:2},1032,["onClick"])])]),"card-extra":f(({cardData:g})=>{var A;return[o("div",Es,[(A=g.goods_trend)!=null&&A.length?(n(),N(L,{key:0,position:"bottom","auto-fit-position":"","unmount-on-close":!1,"popup-translate":[0,8],onShow:S=>e.echartsShow(g.goods_trend,g.activity_goods_id)},{content:f(()=>{var S;return[o("div",Ss,[(S=g.goods_trend)!=null&&S.length?(n(),v("div",{key:0,id:"echarts_basic_id_"+g.activity_goods_id,style:{width:"486px",height:"324px"}},null,8,Ts)):$("",!0)])]}),default:f(()=>[Ls]),_:2},1032,["onShow"])):$("",!0),g.is_unlimited===0&&g.stock<=10?(n(),v("div",Bs,Is)):$("",!0)])]}),_:2},1032,["isSelect","card-data","product-focus-id","data-expose-goods-id","data-expose-position","onCheck","onCartChange"]))),128))],8,Ds),w(D,{ref:"trailerCom",activityGoodsId:e.activityGoodsId,visible:e.trailerShow,onFlagFn:e.setShow,productFocusId:e.productFocusId},null,8,["activityGoodsId","visible","onFlagFn","productFocusId"]),w(P,{visible:e.showYhuoDialog,"onUpdate:visible":y[0]||(y[0]=V=>e.showYhuoDialog=V),goodsInfo:e.goodsInfo,onFlagFn:e.setShow,onOpenCC:e.trailer,productFocusId:e.productFocusId},null,8,["visible","goodsInfo","onFlagFn","onOpenCC","productFocusId"])])}const Ns=me(bs,[["render",Vs],["__scopeId","data-v-b79ebea0"]]),Re=e=>(Se("data-v-5844c060"),e=e(),Te(),e),qs={class:"actual_box"},Us={class:"header"},Gs={class:"filter"},Rs={class:"data_tab"},Ps=Re(()=>o("div",{class:"line"},null,-1)),Os={class:"set_box"},zs={key:0,class:"table-box"},Hs={class:"commodity_box_table"},Ks=["onClick","src"],Ys=["onClick"],Ws=Re(()=>o("i",{class:"iconfont icon-dianpu1"},null,-1)),Js={class:"shop-name"},Qs={style:{"font-family":"'PingFang SC'","font-size":"14px","font-style":"normal","font-weight":"500","line-height":"20px",color:"#f53f3f"}},Xs={class:"godds_trend_box"},Zs={key:0},js={key:1,class:"trend_box"},el=["id"],tl={class:"trend_echarts_box"},al=["id"],ol={key:0,class:"footer-check-wrap"},sl={key:0,class:"num-wrap"},ll={key:1,class:"num-wrap"},nl=Re(()=>o("div",{style:{height:"18px"}},null,-1)),il=de({__name:"index",setup(e){const y=je(),F=ce({cursor:"",paginate:50}),i=ce({q:"",recommend:1,category_id:void 0,price_low:void 0,price_up:void 0,commission_rate_low:void 0,commission_rate_up:void 0,sold_count_1d:void 0,sold_count_7d:void 0,sold_count_30d:void 0,promoter_1d:void 0,promoter_7d:void 0,promoter_30d:void 0,pv_1d:void 0,pv_7d:void 0,pv_30d:void 0,order_rate_7d:void 0,order_key:"recommend",order_value:"desc",shop_score:void 0}),d=E(!1),M=E(!1),I=E(!1),L=E("one"),B=Ve(),D=Q(()=>({...B.userInfo})),P=E(),V=ce(Fo()),k=E(!1),g=E(!1),A=E(""),S=E(""),G=E(),z=E({}),H=E(),W=E($o()),_=async()=>{const{list:l}=await Jt();V.catId=l.map(t=>({label:t.channel_name,value:t.channel_id})),V.catId.unshift({value:void 0,label:"\u5168\u90E8"})},s=async()=>{var t;const{data:{product_tag:l}}=await Qt({types:"product_tag",is_system:"0,2"});V.tags=l==null?void 0:l.map(b=>({label:b.name,value:b.id})),(t=V.tags)==null||t.unshift({value:-1,label:"\u5168\u90E8"})};_(),s();const a=aa(),r=ce(Do());E(0);const u=E(!0),c=ce({dataList:[],shopLoading:!0,shopList:[],sortData:[{text:"\u4F63\u91D1\u7387",type:"commission_rate"},{text:"\u4F63\u91D1",type:"commission_amount"},{text:"\u4EF7\u683C",type:"price"},{text:"7\u65E5\u9500\u91CF",type:"sold_count_7d"},{text:"7\u65E5\u63A8\u5E7F\u8FBE\u4EBA",type:"promoter_7d"}],filterData:[{text:"\u4ECA\u65E5\u4E0A\u65B0",type:"today_new"}],filterDataVal:[],q:""}),C=E([]),T=Q(()=>c.shopList.filter(t=>t.check)),R=Q(()=>C.value.length?c.dataList.filter(t=>{var b;return(b=C.value)==null?void 0:b.find(x=>x===t.product_id)}):[]),Y=E([]);_e(()=>T.value,l=>{u.value&&(l.length===0?(M.value=!1,I.value=!1):l.length===c.shopList.length?(M.value=!0,I.value=!1):(M.value=!1,I.value=!0))},{immediate:!0,deep:!0}),_e(()=>R.value,l=>{u.value||(l.length===0?(M.value=!1,I.value=!1):l.length===c.shopList.length?(M.value=!0,I.value=!1):(M.value=!1,I.value=!0))},{immediate:!0,deep:!0});const K=l=>{k.value=l,g.value=l},ee=l=>ut(l),ue=l=>
8ee(l)?"\u590D\u5236\u53E3\u4EE4":"\u590D\u5236ID",Be=async l=>{if(!ee(l)){xe(l.product_id)&&ve.success("\u5546\u54C1ID\u590D\u5236\u6210\u529F");return}const t=await et({activity_id:l.activity_id,product_id:l.product_id,pre_activity_id:l.pre_activity_id});if(!t.code){xe(t.data.share_token)&&ve.success("\u590D\u5236\u6210\u529F\uFF0C\u6253\u5F00\u5FEB\u624BAPP\u6DFB\u52A0\u5546\u54C1");const b={activity_id:l.activity_id,product_id:l.product_id,pre_activity_id:l.pre_activity_id};tt({app_id:2,event_id:1,event_position:1,event_data:JSON.stringify(b)})}},te=l=>{if(!B.id){ge();return}L.value="one",A.value=l.activity_id,S.value=l,k.value=!0},Ce=(l,t)=>{L.value=t,t==="one"?S.value=l.card:Y.value=l.map(b=>b.card),k.value=!0},ke=()=>{if(!B.id){ge();return}u.value?Y.value=T.value:Y.value=R.value,Y.value.length&&(L.value="all",k.value=!0)},Ae=(l,t)=>{const b=document.getElementById(l),x=Ie(b),h={xAxis:{type:"category",data:t,show:!1},yAxis:{type:"value",show:!1},grid:{left:0,right:0,bottom:0,top:0},series:[{data:t,type:"line",smooth:!0,color:"#2361FF",symbol:"none",areaStyle:{color:new ia(0,0,0,1,[{offset:0,color:"rgba(35, 97, 255, 0.5)"},{offset:1,color:"rgba(35, 97, 255, 0)"}])}}]};x.setOption(h)},ct=(l,t)=>{we(()=>{const b=document.getElementById("ks_echarts_basic_id"+t),x=l.map(m=>m.sold_count),h=l.map(m=>m.pv),le=l.map(m=>pa(m.date,!0)),ne=Math.ceil(Math.max(...x)/6),O=Math.ceil(Math.max(...h)/6),j=Ie(b);j.clear();const ye={tooltip:{trigger:"axis"},legend:{data:["\u5546\u54C1\u8BA2\u5355\u91CF","\u5546\u54C1\u6D4F\u89C8\u91CF"],bottom:10},xAxis:{type:"category",boundaryGap:!0,data:le},yAxis:[{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:m=>m>1e3&&m<1e4?(m/1e3).toFixed(2)+"K":m>1e4?(m/1e4).toFixed(2)+"w":m},splitLine:{lineStyle:{type:"dashed",color:"#E9E9E9"}},min:0,max:ne*8,splitNumber:6,interval:ne},{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{formatter:m=>m>1e3&&m<1e4?(m/1e3).toFixed(2)+"K":m>1e4?(m/1e4).toFixed(2)+"w":m},splitLine:{lineStyle:{type:"dashed",color:"#E9E9E9"}},min:0,max:O*8,splitNumber:6,interval:O}],series:[{name:"\u5546\u54C1\u8BA2\u5355\u91CF",type:"line",data:x,yAxisIndex:0,symbol:"circle",color:"#5C4DFF",smooth:!0},{name:"\u5546\u54C1\u6D4F\u89C8\u91CF",type:"line",data:h,color:"#F98523",symbol:"circle",yAxisIndex:1,smooth:!0}]};j.setOption(ye)})},ae={loading:!1,hasMore:!0,page:1},$e=()=>{H.value&&clearTimeout(H.value),H.value=setTimeout(()=>{Pe(),pe()},300)},Pe=()=>{ae.loading=!1,ae.hasMore=!0,c.shopList=[],c.dataList=[]},pe=async()=>{var b;c.shopLoading=!0,ae.loading=!0;const l={...i,...F,category_id:i.catId};u.value?l.cursor?l.paginate=15:l.paginate=25:l.cursor?l.paginate=10:l.paginate=30;const t=await Bt(l).finally(()=>{ae.loading=!1,c.shopLoading=!1});t.list.forEach(x=>{x.check=!1}),l.current===""?(c.shopList=t.list,c.dataList=t.list,Zt({query:i.q,searchType:jt.goods,resultCount:((b=t.list)==null?void 0:b.length)||0})):(c.shopList=c.shopList.concat(t.list),c.dataList=c.dataList.concat(t.list)),u.value||c.dataList.forEach(x=>{if(x.trend.length>0){const h=x.trend.map(le=>le.sold_count);we(()=>{Ae("ks_trend_echarts"+x.product_id,h)})}}),F.cursor=t.next_cursor,ae.hasMore=t.next_cursor},fe=l=>{const t=l.toString();if(t.includes(".")){const b=t.split("."),x=b[0]+b[1][0]+(b[1][1]||"0"),h=b[1].slice(2);return console.log(x+"."+h),Number(h?x+"."+h:x)}else return l*100},Me=()=>{i.recommend=0,i.order_text="\u4F63\u91D1\u7387",i.order_key="commission_rate"},dt=(l,t,b,x,h,le)=>{if(t&&t.selectBtmType.length>1){let ne={};if(W.value.forEach(O=>{if(O.type==="child"){const j=O.childInfo.find(ye=>ye.prop===t.prop);j&&(ne=j)}}),(t==null?void 0:t.selectLevel)===1)!l&&(b||x)?(i[`${t==null?void 0:t.prop}_low`]=fe(b),i[`${t==null?void 0:t.prop}_up`]=fe(x),i[`${t==null?void 0:t.prop}_low_text`]=b,i[`${t==null?void 0:t.prop}_up_text`]=x,i[t==null?void 0:t.prop]="custom"):(i[`${t==null?void 0:t.prop}_low`]=h==null?void 0:h.min,i[`${t==null?void 0:t.prop}_up`]=h==null?void 0:h.max,i[`${t==null?void 0:t.prop}_low_text`]=(h==null?void 0:h.min_text)||(h==null?void 0:h.min),i[`${t==null?void 0:t.prop}_up_text`]=(h==null?void 0:h.max_text)||(h==null?void 0:h.max));else if((t==null?void 0:t.selectLevel)===2){let O="",j="";le===1&&(O="1d",j="\u6628\u65E5"),le===7&&(O="7d",j="7\u65E5"),le===30&&(O="30d",j="30\u65E5"),ne&&(ne.dayText=j,ne.day=O),i[`${t==null?void 0:t.prop}_1d`]=void 0,i[`${t==null?void 0:t.prop}_1d_up`]=void 0,i[`${t==null?void 0:t.prop}_7d`]=void 0,i[`${t==null?void 0:t.prop}_7d_up`]=void 0,i[`${t==null?void 0:t.prop}_30d`]=void 0,i[`${t==null?void 0:t.prop}_30d_up`]=void 0,!l&&(b||x)?(t.num?(i[`${t==null?void 0:t.prop}_${O}`]=fe(b),i[`${t==null?void 0:t.prop}_${O}_up`]=fe(x),i[`${t==null?void 0:t.prop}_${O}_text`]=b,i[`${t==null?void 0:t.prop}_${O}_up_text`]=x):(i[`${t==null?void 0:t.prop}_${O}`]=b,i[`${t==null?void 0:t.prop}_${O}_up`]=x,i[`${t==null?void 0:t.prop}_${O}_text`]=b,i[`${t==null?void 0:t.prop}_${O}_up_text`]=x),i[t==null?void 0:t.prop]="custom"):(i[`${t==null?void 0:t.prop}_${O}`]=h==null?void 0:h.min,i[`${t==null?void 0:t.prop}_${O}_up`]=h==null?void 0:h.max,i[`${t==null?void 0:t.prop}_${O}_text`]=(h==null?void 0:h.min_text)||(h==null?void 0:h.min),i[`${t==null?void 0:t.prop}_${O}_up_text`]=(h==null?void 0:h.max_text)||(h==null?void 0:h.max))}}else t&&(l?(i[t==null?void 0:t.prop]=l,i[`${t==null?void 0:t.prop}_text`]=l/100):b&&(t.num?(i[t==null?void 0:t.prop]=fe(b),i[`${t==null?void 0:t.prop}_text`]=b):(i[t==null?void 0:t.prop]=b,i[`${t==null?void 0:t.prop}_text`]=b)));F.cursor="",ae.hasMore=!0,Me(),$e()},pt=()=>{F.cursor="",ae.hasMore=!0,Me(),$e()},Oe=l=>{if(i.order_key!==l.type)return F.cursor="",ae.hasMore=!0,l.type==="recommend"?i.recommend=1:i.recommend=0,i.order_text=l.text,i.order_key=l.type,i.order_value="desc",$e(),!1},vt=l=>{F.page=l,pe()},_t=l=>{F.paginate=l,pe()},mt=(l,t)=>{if(l.length>20){const b=l.indexOf(t);b!==-1&&l.splice(b,1)}},ze=()=>{const l=document.documentElement.scrollTop||document.body.scrollTop;document.body.scrollHeight-document.documentElement.offsetHeight-l<100&&!ae.loading&&ae.hasMore&&pe()},He=l=>{d.value=!1,l==="table"?u.value=!1:u.value=!0,localStorage.setItem("ksShowListType",JSON.stringify(u.value)),F.cursor="",c.dataList=[],Pe(),pe()},ft=()=>{const{query:l}=a;let t=0;Object.keys(l).forEach(b=>{var x;b!=="tags"&&b!=="q"&&b!=="query_type"&&(l[b]*=1),l.is_sample=(x=l.is_sample)==null?void 0:x.toString(),i[b]=l[b],t+=1}),i.q&&P.value.setSearchValue(i.q),t||pe()},yt=l=>{var b;const t=(b=V.catId.find(x=>x.value===l))==null?void 0:b.label;t&&it({user_id:D.value.company_id,type:2,keyword:t})},ht=l=>{u.value?T.value.length>=20?c.shopList.forEach(t=>t.check=!1):c.shopList.forEach(t=>{T.value.length<20&&(t.check||(t.check=!0))}):C.value.length>=20?C.value=[]:c.dataList.forEach(t=>{C.value.length<20&&C.value.push(t.product_id)})},gt=E(null);E(0),at(()=>{u.value=localStorage.getItem("ksShowListType")?JSON.parse(localStorage.getItem("ksShowListType")):u.value,window.addEventListener("scroll",Xe),window.addEventListener("scroll",ze),ft(),y.getXpinCarData()});const bt=()=>{y.getXpinCarData()};nt(()=>{window.removeEventListener("scroll",Xe),window.removeEventListener("scroll",ze),ua(!1)});const Ke=l=>{window.open(`/kuaishou/goods/ks-goods-item?activity_id=${l.activity_id}&product_id=${l.product_id}&pre_activity_id=${l.pre_activity_id}`,"_blank")};_e(()=>i,l=>{i.cat_id!==l.catId&&(i.cat_id=l.catId,yt(l.catId))},{deep:!0});const Ct=l=>{F.cursor="",i.q=l.q,Me(),$e()},kt=Q(()=>i.q?Qe.search:Qe.selectionLibrary),Ye=()=>{d.value=!d.value,c.shopList.forEach(l=>l.check=!1),C.value=[]},$t=l=>{l&&(i.catId=l)};return(l,t)=>{const b=oe("icon-caret-down"),x=st,h=Ee,le=lt,ne=Ue,O=Wt,j=ot,ye=Le;return n(),v("div",qs,[o("div",Us,[w(Ma,{ref_key:"GoodsSearchBarRef",ref:P,disabledInputBlur:"",onSearchHandler:Ct,onClickClass:$t},null,512),o("div",Gs,[w(ko,{headerValue:i.name,"onUpdate:headerValue":t[0]||(t[0]=m=>i.name=m),filtersMap:W.value,dictMap:V,title:"\u6570\u636E\u7B5B\u9009",filterForm:i,"onUpdate:filterForm":t[1]||(t[1]=m=>Yt(i)?i.value=m:null),onSelectChange:dt,onChange:pt},null,8,["headerValue","filtersMap","dictMap","filterForm"])])]),o("div",{class:J(["data_list",u.value?"":"active"])},[o("div",Rs,[o("p",{class:J(["recommend-item",{"recommend-item-active":i.order_key==="recommend"}]),onClick:t[2]||(t[2]=m=>Oe({text:"\u63A8\u8350",type:"recommend"}))},"\u63A8\u8350",2),Ps,(n(!0),v(U,null,Z(c.sortData,m=>(n(),N(x,{align:"center",class:J([{"sort-item-active":m.type===i.order_key},"sort-item"]),onClick:re=>Oe(m),key:m.type},{default:f(()=>[o("span",null,p(m.text),1),w(b,{class:"icon-caret-down"})]),_:2},1032,["class","onClick"]))),128)),o("div",Os,[o("i",{class:J(["iconfont icon-changjingguanli-xuanzhong",u.value?"activeIcon":""]),onClick:t[3]||(t[3]=m=>He("shop"))},null,2),o("i",{class:J(["iconfont icon-liebiao",u.value?"":"activeIcon"]),onClick:t[4]||(t[4]=m=>He("table"))},null,2),d.value?$("",!0):(n(),N(h,{key:0,onClick:Ye,style:{"margin-left":"18px"},type:"primary"},{default:f(()=>[q("\u6279\u91CF\u6DFB\u52A0\u8D27\u67B6")]),_:1})),d.value?(n(),N(h,{key:1,onClick:Ye,style:{"margin-left":"18px"},type:"outline"},{default:f(()=>[q("\u9000\u51FA\u6279\u91CF\u64CD\u4F5C")]),_:1})):$("",!0)])]),Ne(w(Ns,{type:"goodsList",commodityList:c.shopList,"onUpdate:commodityList":t[5]||(t[5]=m=>c.shopList=m),exposeListType:X(kt),exposeSearchQuery:i.q||"","is-goods-list":"",isSelect:d.value,selectData:X(T),onTrailer:te},null,8,["commodityList","exposeListType","exposeSearchQuery","isSelect","selectData"]),[[qe,u.value]]),u.value?$("",!0):(n(),v("div",zs,[w(j,{loading:c.shopLoading,tip:"\u52A0\u8F7D\u4E2D",style:{width:"100%"}},{default:f(()=>[w(O,{columns:r,data:c.dataList,onPageChange:vt,onPageSizeChange:_t,ref_key:"tableRef",ref:gt,pagination:!1,"selected-keys":C.value,"onUpdate:selected-keys":t[6]||(t[6]=m=>C.value=m),"row-key":"product_id","row-selection":d.value?{type:"checkbox"}:!1,onSelect:mt},{commodity:f(({record:m})=>[o("div",Hs,[o("img",{style:{cursor:"pointer"},onClick:re=>Ke(m),src:m.cover,alt:""},null,8,Ks),o("div",null,[w(le,{content:m.title},{default:f(()=>[o("p",{class:"commodity_title",onClick:re=>Ke(m)},p(m.title),9,Ys)]),_:2},1032,["content"]),w(x,{align:"center",wrap:!1},{default:f(()=>
8[Ws,o("div",Js,p(m.shop_title),1),o("span",Qs,p(m.shop_score/100)+"\u5206",1)]),_:2},1024)])])]),commission_rate:f(({record:m})=>[o("div",null,p(m.commission_rate/100)+"%",1)]),price:f(({record:m})=>[o("div",null,p(m.price/100),1)]),commission_amount:f(({record:m})=>[o("div",null,p(m.commission_amount/100),1)]),trend:f(({record:m})=>{var re;return[o("div",Xs,[((re=m.trend)==null?void 0:re.length)<=1?(n(),v("div",Zs,"--")):(n(),v("div",js,[w(ne,{position:"bottom","auto-fit-position":"","unmount-on-close":!1,onShow:ul=>ct(m.trend,m.product_id)},{content:f(()=>[o("div",tl,[o("div",{id:"ks_echarts_basic_id"+m.product_id,style:{width:"486px",height:"324px"}},null,8,al)])]),default:f(()=>[o("div",{id:"ks_trend_echarts"+m.product_id,style:{width:"100px",height:"40px"}},null,8,el)]),_:2},1032,["onShow"])]))])]}),operate:f(({record:m})=>[w(x,{align:"center"},{default:f(()=>[w(h,{type:"text",onClick:re=>te(m)},{default:f(()=>[q("\u6DFB\u52A0\u8D27\u67B6")]),_:2},1032,["onClick"]),w(h,{class:"copy-btn",type:"text",onClick:re=>Be(m)},{default:f(()=>[q(p(ue(m)),1)]),_:2},1032,["onClick"])]),_:2},1024)]),sold_count_7d:f(({record:m})=>[q(p(X(he)(m.sold_count_7d)),1)]),promoter_7d:f(({record:m})=>[q(p(X(oa)(m.promoter_7d)),1)]),_:1},8,["columns","data","selected-keys","row-selection"])]),_:1},8,["loading"])])),w(sa,{ref_key:"trailerCom",ref:G,activityGoodsId:A.value,type:L.value,visible:k.value,productData:S.value,productDataList:Y.value,onFlagFn:K},null,8,["activityGoodsId","type","visible","productData","productDataList"]),w(rt,{visible:g.value,"onUpdate:visible":t[7]||(t[7]=m=>g.value=m),goodsInfo:z.value,onFlagFn:K,onOpenCC:te},null,8,["visible","goodsInfo"])],2),d.value?(n(),v("div",ol,[w(x,{align:"center"},{default:f(()=>[w(ye,{class:"check-box",onChange:ht,"model-value":M.value,indeterminate:I.value},{default:f(()=>[q("\u5168\u9009")]),_:1},8,["model-value","indeterminate"]),u.value?(n(),v("div",sl,p(X(T).length)+"/"+p(c.shopList.length>20?20:c.shopList.length),1)):$("",!0),u.value?$("",!0):(n(),v("div",ll,p(X(R).length)+"/"+p(c.dataList.length>20?20:c.dataList.length),1))]),_:1}),u.value?(n(),N(h,{key:0,class:"btn-wrap",shape:"round",disabled:!X(T).length,type:"primary",onClick:ke},{default:f(()=>[q("\u6DFB\u52A0\u5230\u8D27\u67B6")]),_:1},8,["disabled"])):$("",!0),u.value?$("",!0):(n(),N(h,{key:1,class:"btn-wrap",shape:"round",disabled:!X(R).length,type:"primary",onClick:ke},{default:f(()=>[q("\u6DFB\u52A0\u5230\u8D27\u67B6")]),_:1},8,["disabled"]))])):$("",!0),w(la,{onTrailer:Ce,onChange:bt}),nl])}}});const Ql=me(il,[["__scopeId","data-v-5844c060"]]);export{Ql as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.