1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1109],{101109:function(e,t,l){l.r(t),l.d(t,{default:function(){return D}});var r=l(298948),a=l(205192),o=l(804968),n=l(522674),i=l(767074),s=l(626925),d=l(230680),u=l(275995),c=l(195097),v=l(196205),p=l(987243),m=l(640902),h=l(273615),x=l(232428),w=l(810612),_=e=>(0,r.jsx)("svg",{...e,width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M9.99343 5.14918L9.7967 4.95246L6.59998 1.7459C6.43277 1.57869 6.21638 1.5 5.99998 1.5C5.78359 1.5 5.55736 1.58852 5.39015 1.7459L2.19343 4.94262L1.9967 5.13934C1.82949 5.30656 1.74097 5.52295 1.74097 5.73934C1.74097 5.84754 1.76064 5.96557 1.80982 6.07377C1.81966 6.10328 1.83933 6.13279 1.84916 6.1623C1.9967 6.43771 2.28195 6.59508 2.5967 6.59508H3.80654V9.83115C3.80654 10.1852 4.10162 10.4803 4.45572 10.4803H7.51474C7.86884 10.4803 8.16392 10.1852 8.16392 9.83115V6.60492H9.37375C9.69834 6.60492 9.97375 6.43771 10.1213 6.17213C10.141 6.14262 10.1508 6.11311 10.1606 6.08361C10.2 5.98525 10.2197 5.88689 10.2295 5.78852C10.2393 5.77869 10.2393 5.76885 10.2492 5.76885C10.259 5.54262 10.1606 5.31639 9.99343 5.14918Z",fill:"currentColor"})}),g=l(485121),b=l(154902),C=l(750409),f=e=>{let{option:t}=e,{value:l,num:a,title:o,rate:n=0,tip:i,selectable:s=!0}=t,{isZH:d}=(0,b.Z)(),u=n<0,c=(0,r.jsxs)("div",{className:"h-[129px] min-w-[130px] flex flex-col justify-between p-4 ",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1 ",children:[(0,r.jsx)("p",{className:"font-bold text-[22px]",children:a}),(0,r.jsxs)("div",{className:"text-sm flex gap-1 items-center ".concat(d?u?"text-[#01A79A]":"text-[#FE2062]":u?"text-[#FE2062]":"text-[#01A79A]"),children:[(0,r.jsx)(_,{className:"text-xs ".concat(u?"rotate-180":"")}),n,"%"]})]}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("p",{className:"font-medium text-[#667D98] text-sm",children:o}),i&&(0,r.jsx)(g.Z,{placement:"top",title:i,tipClassName:"text-sm"})]})]});return s?(0,r.jsx)(C.K,{"aria-label":l,value:l,classNames:{base:"relative p-0 m-0 border-solid border-1 border-[#FAFAFA] flex-grow max-w-none rounded-2xl data-[selected=true]:bg-[#FFF2F3] data-[selected=true]:border-[#FFC1C1] bg-[#FAFAFA] hover:bg-[#FFF2F3] hover:border-solid hover:border-1 hover:border-[#FFC1C1] opacity-100",wrapper:"absolute top-2 right-[8px] text-xl z-10",icon:"text-[#fff] font-semibold"},children:c}):(0,r.jsx)("div",{className:"relative p-0 m-0 border-solid border-1 border-[#FAFAFA] flex-grow max-w-none rounded-2xl bg-[#FAFAFA] opacity-100",children:c})},y=e=>{let{value:t,options:l,onChange:a}=e;return(0,r.jsx)("div",{children:(0,r.jsx)(w.X,{className:"min-h-[131px]",value:t,orientation:"horizontal",onChange:e=>{let t=new Set(l.filter(e=>!1!==e.selectable).map(e=>e.value)),r=e.filter(e=>t.has(e));0!==r.length&&(r.length>1&&r.shift(),a&&a(r))},classNames:{base:"w-full",wrapper:"grid grid-cols-4 gap-4"},children:null==l?void 0:l.map(e=>(0,r.jsx)(f,{option:e},e.value))})})},j=l(163954),k=l(487104),F=e=>{let t=(0,n.useTranslations)(),{title:l,countKey:o,popKey:i,showKey:s}=e.card||{},d=(0,a.useRef)(null),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var r;if((null===(r=e.data)||void 0===r?void 0:r.length)!==0&&d.current){let r=k.init(d.current);u.current=r;let{barData:a,lineData:n,categoryData:c}=(null==e?void 0:e.data)&&Array.isArray(e.data)&&o&&i&&s?e.data.reduce((e,t)=>(e.categoryData.push(t.date),e.barData.push({value:t[o],display:t[s]}),e.lineData.push({value:t[i],display:t[i]+"%"}),e),{barData:[],lineData:[],categoryData:[]}):{barData:[],lineData:[],categoryData:[]},v={title:{show:!1,text:"éå®é¢",left:"2%",top:"2%",textStyle:{fontWeight:"bold",fontSize:16}},tooltip:{trigger:"axis",borderWidth:0,backgroundColor:"rgba(0, 0, 0, 0.7)",borderRadius:12,formatter:e=>{let[r,a]=e,o=null==r?void 0:r.data.display,n=null==a?void 0:a.data.display;return'\n <div style="color: white; padding: 5px; border-radius: 12px;">\n <div style="font-size: 12px;">'.concat(r.axisValueLabel,'</div>\n <div style="margin-top: 5px; font-size: 12px;">
1\n <span style="display: inline-block; width: 12px; height: 12px; margin-right: 5px; background: #13DCCC; border-radius: 50%"></span>\n <span>').concat(l,": ").concat(o,'</span>\n </div>\n <div style="margin-top: 5px; font-size: 12px;">\n <span style="display: inline-block; width: 12px; height: 12px; margin-right: 5px; background: #FE2062; border-radius: 50%"></span>\n <span>').concat(t("market.GrowthRate"),": ").concat(n,"</span>\n </div>\n </div>\n ")}},legend:{top:"2%",right:"2%",icon:"circle"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:c}],yAxis:[{type:"value",position:"left",axisLabel:{formatter:e=>(0,j.HN)(e)}},{type:"value",position:"right",axisLabel:{formatter:function(e){return e+"%"}},splitLine:{show:!1}}],series:[{name:l,type:"bar",data:a,itemStyle:{borderRadius:[3,3,0,0],color:"#13DCCC"},barGap:"0%",barCategoryGap:"65%",symbol:"none",symbolSize:0},{name:t("market.GrowthRate"),type:"line",data:n,yAxisIndex:1,symbol:"none",itemStyle:{borderRadius:[3,3,0,0],color:"#FE2062"},lineStyle:{color:"#FE2062",width:2}}]};null==r||r.setOption(v);let p=new ResizeObserver(()=>{var e;null===(e=u.current)||void 0===e||e.resize()});return null==p||p.observe(d.current),()=>{if(p&&d.current)try{p.unobserve(d.current),p.disconnect()}catch(e){console.error("ResizeObserver cleanup error:",e)}r.off("mousemove"),r.isDisposed()||r.dispose(),delete window.handleTooltipClick}}},[null==e?void 0:e.data,l,o,i,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{ref:d,style:{width:"100%",height:"400px"},className:"bg-[#FAFAFA] mt-[24px] rounded-[10px]"})})},N=l(280453),A=l(664291),P=l(745566),O=l(488459);function K(){return(0,r.jsxs)(s.w,{children:[(0,r.jsxs)(A.u,{className:"flex flex-col gap-4 items-start",children:[(0,r.jsx)(O.X,{className:"h-6 w-1/6 rounded mt-2 mb-2"}),(0,r.jsx)(d.j,{}),(0,r.jsx)(O.X,{className:"h-4 w-1/12 rounded"}),(0,r.jsx)("div",{className:"w-full grid grid-rows-2 grid-cols-3 gap-4",children:Array.from({length:6}).map((e,t)=>(0,r.jsx)(O.X,{className:"h-[129px] rounded-lg"},t))})]}),(0,r.jsx)(P.G,{children:(0,r.jsx)(O.X,{className:"h-[400px] rounded-lg"})})]})}let S=e=>{let t={page_id:x.uZ.marketPulseOverview,page_name:x.q.marketPulseOverview,type:x.hi.Click};switch(e){case"1":return{...t,id:x.uY.marketPulseOverviewUnitsSold,btn_id:x.gw.marketPulseOverviewUnitsSold,btn_name:x.BT.marketPulseOverviewUnitsSold};case"2":return{...t,id:x.uY.marketPulseOverviewSellingProduct,btn_id:x.gw.marketPulseOverviewSellingProduct,btn_name:x.BT.marketPulseOverviewSellingProduct};case"3":return{...t,id:x.uY.marketPulseOverviewNewProduct,btn_id:x.gw.marketPulseOverviewNewProduct,btn_name:x.BT.marketPulseOverviewNewProduct};case"4":return{...t,id:x.uY.marketPulseOverviewCreators,btn_id:x.gw.marketPulseOverviewCreators,btn_name:x.BT.marketPulseOverviewCreators};case"5":return{...t,id:x.uY.marketPulseOverviewVideos,btn_id:x.gw.marketPulseOverviewVideos,btn_name:x.BT.marketPulseOverviewVideos};case"6":return{...t,id:x.uY.marketPulseOverviewLives,btn_id:x.gw.marketPulseOverviewLives,btn_name:x.BT.marketPulseOverviewLives}}};var D=e=>{var t,l;let{request:x,onchange:w}=e,_=(0,n.useTranslations)(),g=(0,i.useSearchParams)(),[[b]]=(0,m.useAuthStore)(e=>[e.userInfo]),{detailPanel:C,checkDetailCode:f}=(0,v.G)({t:_}),[j,k]=(0,a.useState)(["1"]),{data:A}=x,P=(0,a.useMemo)(()=>{var e;return null==A?void 0:null===(e=A.data)||void 0===e?void 0:e.summary},[null==A?void 0:null===(t=A.data)||void 0===t?void 0:t.summary]),O=(0,a.useMemo)(()=>{var e,t,l;return(null==A?void 0:null===(e=A.data)||void 0===e?void 0:e.list)&&(null==A?void 0:null===(t=A.data)||void 0===t?void 0:t.list.length)>0?null==A?void 0:null===(l=A.data)||void 0===l?void 0:l.list:[]},[null==A?void 0:null===(l=A.data)||void 0===l?void 0:l.list]),{ref:D,inView:Z}=(0,o.YD)({triggerOnce:!0,threshold:.1});(0,a.useEffect)(()=>{let e=(0,h.X4)(g.toString());Z&&!e.example&&x.run()},[Z,g,null==b?void 0:b.uid,null==b?void 0:b.level]);let L=[{value:"1",num:null==P?void 0:P.sold_count_show,title:_("monitor.detail.sales"),rate:null==P?void 0:P.sold_count_pop,countKey:"sold_count",popKey:"sold_count_pop",showKey:"sold_count_show"},{value:"2",num:null==P?void 0:P.sold_product_count_show,title:_("market.productgmv"),rate:null==P?void 0:P.sold_product_count_pop,countKey:"sold_product_count",popKey:"sold_product_count_pop",showKey:"sold_product_count_show"},{value:"3",num:null==P?void 0:P.new_product_count_show,title:_("market.newProNum"),rate:null==P?void 0:P.new_product_count_pop,countKey:"new_product_count",popKey:"new_product_count_pop",showKey:"new_product_count_show"},{value:"7",num:null==P?void 0:P.avg_sale_amount_show,title:_("market.marketAvaragePrice"),rate:null==P?void 0:P.avg_category_sale_price_mom_rate,selectable:!1},{value:"4",num:null==P?void 0:P.author_cnt_show,title:_("market.creators"),rate:null==P?void 0:P.author_cnt_pop,countKey:"author_cnt",popKey:"author_cnt_pop",showKey:"author_cnt_show"},{value:"5",num:null==P?void 0:P.video_cnt_show,title:_("market.video"),rate:null==P?void 0:P.video_cnt_pop,countKey:"video_cnt",popKey:"video_cnt_pop",showKey:"video_cnt_show"},{value:"6",num:null==P?void 0:P.live_cnt_show,title:_("common.goods.liveCount"),rate:null==P?void 0:P.live_cnt_pop,countKey:"live_cnt",popKey:"live_cnt_pop",showKey:"live_cnt_show"},{value:"8",num:null==P?void 0:P.market_concentration_percent,title:_("market.marketAggrevateRate"),rate:null==P?void 0:P.market_concentration_mom_percent,selectable:!1,tip:_("market.marketAvarageTip")}];return P?(0,r.jsx)("div",{ref:D,children:(0,r.jsxs)(s.w,{className:"px-4 py-6 mb-[24px]",id:"overview",children:[(0,r.jsx)(u.Z,{}),(0,r.jsx)("div",{className:"flex items-center mb-6",children:(0,r.jsx)("h2",{className:"text-[22px] text-[#1F283C] font-[600] ",children:_("creator.overview")})}),(0,r.jsx)(d.j,{}),(0,r.jsx)(N.Z,{}),(0,r.jsxs)(c.Z,{loading:x.loading,filter:f(null==A?void 0:A.code),filterView:C(null==A?void 0:A.code,{action:(null==b?void 0:b.level)?void 0:"login",reload:()=>{null==w||w()}}),children:[(0,r.jsx)(y,{value:j,options:L,onChange:e=>{k([...e]);let t=S(null==e?void 0:e[0]);t&&(0,p.U9)(t)}}),(0,r.jsx)(F,{data:O,card:L.find(e=>e.value===j[0])})]})]})}):(0,r.jsx)("div",{ref:D,children:(0,r.jsx)(K,{})})}},485121:function(e,t,l){l.d(t,{Z:function(){return i}});var r=l(298948),a=l(761127),o=l(713100),n=e=>{let{className:t}=e;return(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,r.jsx)("path",{d:"M6 12C2.68612 12 0 9.31388 0 6C0 2.68612 2.68612 0 6 0C9.31388 0 12 2.68612 12 6C12 9.31388 9.31388 12 6 12ZM6 9.375C6.22238 9.375 6.40276 9.30301 6.5415 9.15937C6.68025 9.01538 6.75 8.83726 6.75 8.625C6.75 8.41274 6.68063 8.238 6.5415 8.10112C6.40275 7.96388 6.22238 7.88887 6 7.875C5.70825 7.88888 5.493 8.019 5.35425 8.26536C5.2155 8.51212 5.2155 8.7585 5.35425 9.00525C5.493 9.25163 5.70825 9.375 6 9.375ZM6.5745 6.92512C6.5745 6.88201 6.5595 6.75825 6.56137 6.77588C6.546 6.61988 6.56663 6.48112 6.65213 6.34726C6.71438 6.24938 6.81075 6.1575 6.95476 6.07238C7.8015 5.57213 8.11125 5.01487 8.09362 4.43512C8.06739 3.56662 7.42763 2.71425 6.04013 2.70187C4.88024 2.691 4.11787 3.25125 3.93751 4.30313C3.91622 4.44839 3.95256 4.59622 4.03879 4.71505C4.12501 4.83388 4.25427 4.91429 4.39898 4.9391C4.54368 4.96392 4.69235 4.93118 4.81324 4.84788C4.93413 4.76457 5.01766 4.6373 5.046 4.49325C5.12813 4.017 5.39475 3.82088 6.02962 3.8265C6.72599 3.83288 6.95962 4.14412 6.96938 4.4685C6.97179 4.52428 6.95685 4.57944 6.92662 4.62637C6.849 4.76587 6.68062 4.92788 6.38288 5.10375C6.08849 5.27738 5.86199 5.49338 5.703 5.74313C5.45
1587 6.13126 5.40189 6.51525 5.44388 6.90562C5.45024 6.9645 5.44951 6.957 5.44951 6.92513C5.44915 6.99923 5.46343 7.07267 5.49154 7.14123C5.51965 7.20979 5.56102 7.27212 5.61329 7.32464C5.66556 7.37716 5.72769 7.41884 5.79611 7.44728C5.86454 7.47572 5.93791 7.49036 6.012 7.49036C6.0861 7.49036 6.15947 7.47572 6.22789 7.44728C6.29632 7.41884 6.35845 7.37716 6.41072 7.32464C6.46298 7.27212 6.50436 7.20979 6.53247 7.14123C6.56058 7.07267 6.57486 6.99922 6.5745 6.92512Z",fill:"#D4D9E0"})})},i=e=>{let{title:t,tipClassName:l="",className:i,tipsProps:s,...d}=e;return(0,r.jsx)(a.Z,{title:t,className:i,...s,...d,children:(0,r.jsx)("span",{children:(0,r.jsx)(n,{className:(0,o.Z)("cursor-pointer ml-2",l)})})})}}}]);
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.