PageSourceSearch

https://mpstats.io/assets-spa/CUqcNvtq.js

js mpstats.io collected 2026-09-24 10:15:02 UTC 8,393 bytes, 1 lines download raw bytes

1import{o as be}from"./BNNRdYrd.js";import{C as Se}from"./kOoWQD43.js";import{t as he}from"./CuvD9EDf.js";import{W as Z,p as Ce}from"./BCzGyk2Y.js";import{Il as De,Ll as ye}from"./Cki3c1zC.js";import{t as Oe}from"./Bh2tyknX.js";import{t as K}from"./Kmw5iuSP.js";import{t as b}from"./GB6FVngY.js";import{$ as Me,A as _,F as D,I as u,J as we,O as N,R as B,Y as Ne,Z as Ee,bt as S,j,k as Re,qt as o,rt as f,s as I,ut as xe,vt as G,wt as J,x as ze,xt as Q,zt as l}from"./CyBclcCi.js";import{t as ee}from"./K9rsuiWd.js";import{t as Le}from"./D3tue66j.js";import{t as w}from"./hSZj3kD4.js";import{t as Te}from"./DWcVBdfB2.js";import{O as We,l as Ae}from"./CcRd9mt_.js";import{t as ke}from"./DX2A5vwT.js";import{t as Ge}from"./k_c67e6-2.js";import{t as Be}from"./B2kvWwzh2.js";import{n as Ie,t as Fe}from"./C5ZELAor2.js";import{t as te}from"./TONaY2VB.js";import{l as ae}from"./CibVrh5k.js";import{t as He}from"./DqPlG5Im.js";import{a as Pe,f as Ve,i as $e,t as Ue,u as Ze}from"./CDAFEDK-2.js";import{t as Ke}from"./BixEjmL_2.js";import{n as q,t as je}from"./C3D5iCpc2.js";import{i as X}from"./CwJXUaHz2.js";import{n as qe,t as Xe}from"./BPSzjgO72.js";import{t as Ye}from"./CVsMdg7V2.js";import{t as Y}from"./CEt2ThhR2.js";import{t as F}from"./Al2Ubxat.js";I();var Je=B({__name:"WbOzonMatchingSellersChart",props:{additionalSeries:{}},setup(L){const g=L,{sendMetriks:d}=te(ae.NICHES),h=F(),e=l({datasets:[],labels:[]}),c=l([]),r=l([]),n=l(),v=je({seriesData:N(()=>e.value.datasets),isShowGain:!1}),E=()=>[...c.value.map(a=>({...a,label:`${a.label}_${a.compareGroup||Z.wb}`})),...r.value.map(a=>({...a,label:`${a.label}_${a.compareGroup||Z.oz}`}))],y=l([]),T=()=>{if(!y.value.length)return;const a=y.value,{labels:i}=Ve(a);c.value=Pe(a),r.value=$e(a),e.value.datasets=E(),e.value.labels=i},W=a=>{c.value=a,O(),d("переключение показателей на графике WB")},R=a=>{r.value=a,O(),d("переключение показателей на графике OZON")},O=()=>{if(!n.value)return;const a=E();e.value.datasets=a;const i={};a.forEach(x=>{i[x.label]=!x.isHidden}),n.value.updateSeriesVisibility(i)};return G(()=>g.additionalSeries,async a=>{y.value=a,await we(),T()},{immediate:!0}),(a,i)=>(f(),_(o(b),{direction:"col"},{default:S(()=>[Q(Re("div",null,[u(o(b),{direction:"col",gap:"g8"},{default:S(()=>[c.value.length?(f(),_(q,{key:0,"legend-data":c.value,onUpdateSeries:W},null,8,["legend-data"])):j("",!0),i[0]||(i[0]=D()),r.value.length&&!o(h).isOnlyWb?(f(),_(q,{key:1,title:"Ozon","legend-data":r.value,"only-border":"",onUpdateSeries:R},null,8,["legend-data"])):j("",!0)]),_:1}),i[1]||(i[1]=D()),u(Le,{ref_key:"chartRef",ref:n,"chart-data":e.value,"grid-bottom":120,"local-storage-id":"Echarts-wb-ozon-matching-sellers-chart","hide-legend":"","custom-tooltip-composable":o(v),"axis-label-formatter":o(Ue)},null,8,["chart-data","custom-tooltip-composable","axis-label-formatter"])],512),[[ze,g.additionalSeries.length]])]),_:1}))}}),Qe=Je;I();var k=be(Se()),et=B({__name:"WbOzonMatchingSellersGrid",emits:["select-node","is-filter-change"],setup(L,{expose:g,emit:d}){const h=d,e=F(),c=De(),r=ye(),{showError:n}=he(),{sendMetriks:v}=te(ae.NICHES),{columnDefs:E,rowSelection:y,selectionColumnDef:T}=Ye(e),{isShowNoData:W,hasFilterModel:R,noDataDescription:O,checkNoDataClientSide:a,resetFilterNoDataClientSide:i,onFilterChangedNoDataClientSide:x}=Be(),{hiddenColumnsCount:oe,onColumnVisibilityChanged:se,countHiddenColumns:ne,toggleColumnsSidebar:le}=Ke(),m=l(),H=l([]),C=l(!1),z=l([]),re=l({groupHeaderHeight:30,headerHeight:60,floatingFiltersHeight:32}),ie=N(()=>({title:()=>"Нет данных",description:()=>O.value,buttonText:()=>R.value?"Сбросить":"Новый отчет",buttonFn:()=>{R.value?i():U()}})),ue=l({...y.value,headerCheckbox:!1}),de=N(()=>({ExportButtonsComponent:{statusPanel:"ExportButtonsComponent",align:"left",statusPanelParams:{newButton:!0,sendMetriks:(0,k.default)(()=>v(Ce.GRID_EXPORT_METRIKA))}}})),ce=N(()=>Ae("Сравнение WB + OZON - Сводный отчет по нише - Продавцы -",e.periodRange));Ne(()=>{C.value=!0}),Me(()=>{C.value=!1});const me=async()=>
1{if(e.isLoadingSellers)return;m.value.setGridOption("loading",!0),m.value.clearCellSelection();const t={api:m.value,description:"Товары для отчета не найдены. Измените период отчета, фильтры или выберите другую нишу"};try{await e.getWbOzonMatchingSellers(String(c.query.id)),V(),t.data=z.value}catch(s){n(s,"Произошла ошибка")}t.status=e.sellersStatus,a(t),m.value.setGridOption("loading",!1),C.value=!0},pe=({api:t})=>{m.value=t,ne({api:t}),e.loadData(w.WB_OZON_MATCHING_SELLERS),Ie(t,v)};e.setDataLoadCallback(me,w.WB_OZON_MATCHING_SELLERS);const _e=()=>{const t=e.sellersData,s=t.reduce((p,A)=>p+(A.wb?.sales||0),0),M=t.reduce((p,A)=>p+(A.oz?.sales||0),0);z.value=t.map(p=>({...p,wb:{...p.wb,sales_percent_client:P(p.wb?.sales,s)},oz:{...p.oz,sales_percent_client:P(p.oz?.sales,M)}}))},P=(t,s=0)=>typeof t!="number"||t<0||!s?"—":parseFloat((t/s*100).toFixed(2)),fe=t=>{const s=Ze(t);h("select-node",s)},V=()=>{_e(),$(z.value)},$=t=>{H.value=Xe({data:t,periodDiff:e.periodDiff,totalField:"position",fieldsArray:{wb:X,oz:X},isNestedStructure:!0,isNestedTotalField:!0,totalsExcludeKey:We})},ge=t=>{const s=[];t.api.forEachNode(M=>{M.displayed&&s.push(M.data)}),$(s),x(),h("is-filter-change")},U=()=>{r.push({name:w.WB_OZON_MATCHING_INDEX})},ve=()=>{Y(m.value,e.byMarketplace)};return G(()=>e.chosenNiches,(0,k.default)(t=>{C.value&&(e.isOnlyWb=!t.length,e.isOnlyWb?(e.setOnlyWbData(),V(),C.value=!0):e.loadData(w.WB_OZON_MATCHING_SELLERS))},2e3)),G(()=>e.byMarketplace,(0,k.default)(()=>{C.value&&(Y(m.value,e.byMarketplace),e.loadData(w.WB_OZON_MATCHING_SELLERS))})),Ee(()=>{Fe(m.value,v)}),g({NoDataRenderer:Ge}),(t,s)=>o(W)?(f(),_(o(b),{key:0,padding:"p20",bg:"default"},{default:S(()=>[u(Te,{title:"Нет данных",description:o(O),class:J(t.$style.noData),"button-text":"Новый отчет","button-fn":U},null,8,["description","class"])]),_:1})):(f(),_(o(b),{key:1,width:"wfull",direction:"col"},{default:S(()=>[u(He,{count:o(oe),onToggleColumnsSidebar:s[0]||(s[0]=M=>o(le)(m.value))},null,8,["count"]),s[1]||(s[1]=D()),u(ke,{class:"w35 ag-grid-header-normal","column-defs":o(E),"row-data":z.value,"grid-options":re.value,"status-panel-components":de.value,pagination:!1,"no-init-auto-size":"","animate-rows":"","allow-filter-preset":!1,"export-file-name":ce.value,"enable-browser-tooltips":"","suppress-row-click-selection":"","row-selection":ue.value,"selection-column-def":o(T),prefix:"/am",postfix:"wb-ozon-matching-sellers",version:1,"no-rows-overlay-component":"NoDataRenderer","no-rows-overlay-component-params":ie.value,"get-row-style":o(qe),"pinned-bottom-row-data":H.value,onGridReady:pe,onSelectionChanged:fe,onFilterChanged:ge,onFirstDataRendered:ve,onColumnsVisibilityChanged:o(se)},null,8,["column-defs","row-data","grid-options","status-panel-components","export-file-name","row-selection","selection-column-def","no-rows-overlay-component-params","get-row-style","pinned-bottom-row-data","onColumnsVisibilityChanged"])]),_:1}))}}),tt="RhkhVhVu",at={noData:tt},ot={$style:at},st=ee(et,[["__cssModules",ot]]);I();var nt=B({__name:"WbOzonMatchingSellers",setup(L){const g=F(),d=l([]),h=r=>{d.value=r},e=()=>d.value=[],c=N(()=>d.value.length&&g.isLoadedSellers);return(r,n)=>{const v=xe("animated-loader");return f(),_(o(b),{direction:"col",gap:"g20"},{default:S(()=>[c.value?(f(),_(Qe,{key:1,"additional-series":d.value},null,8,["additional-series"])):Q((f(),_(o(b),{key:0,direction:"col","justify-content":"center","align-items":"center",gap:"g8",class:J(r.$style.chartContainer)},{default:S(()=>[u(o(Oe),{name:"bar-chart",color:"var(--color-icon-muted)",size:24}),n[1]||(n[1]=D()),u(o(b),{"justify-content":"center","align-items":"center",direction:"col"},{default:S(()=>[u(o(K),{appearance:"header-md",text:"Чтобы сравнить продавцов на графике,"}),n[0]||(n[0]=D()),u(o(K),{appearance:"header-md",text:"отметьте их галочками в таблице"})]),_:1})]),_:1},8,["class"])),[[v,o(g).isLoadingSellers]]),n[2]||(n[2]=D()),u(st,{onSelectNode:h,onIsFilterChange:e})]),_:1})}}}),lt="s74waGHU",rt={chartContainer:lt},it={$style:rt},Pt=ee(nt,[["__cssModules",it]]);export{Pt 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.