PageSourceSearch

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

js mpstats.io collected 2026-10-01 13:06:27 UTC 8,416 bytes, 1 lines download raw bytes

1import{o as be}from"./BNNRdYrd.js";import{w as Se}from"./cuyG0F5-.js";import{t as he}from"./DO2LzrW8.js";import{W as Z,p as Ce}from"./DlXDTFIU.js";import{Il as De,Ll as ye}from"./D-nchjvc.js";import{t as Oe}from"./BCfIMhEt.js";import{t as K}from"./CZcTXDXR.js";import{t as b}from"./BfQ2-vvd.js";import{$ as Me,A as j,Bt as i,D as N,F as u,J as we,Jt as o,L as G,O as Ne,P as D,St as Y,Tt as Q,Y as Ee,Z as Re,b as Te,gt as xe,k as _,rt as f,s as F,ut as ze,xt as S,yt as B}from"./Lt2xSFvm.js";import{t as ee}from"./K9rsuiWd.js";import{t as Le}from"./DTl-FRk4.js";import{t as w}from"./hSZj3kD4.js";import{t as We}from"./TPYUBE0e2.js";import{O as Ae,l as ke}from"./MzGk9v7b.js";import{t as Be}from"./BSkl2582.js";import{t as Ge}from"./BehnLFca.js";import{t as Fe}from"./BB9JGYHu.js";import{n as Ie,t as He}from"./C5ZELAor.js";import{t as te}from"./BjQp8F4r2.js";import{l as ae}from"./Bx6Sdt7Y2.js";import{t as Pe}from"./D_XP8c7I2.js";import{a as Ve,f as $e,i as Ue,t as Ze,u as Ke}from"./CsyZSz-d2.js";import{t as je}from"./D1koXZGF2.js";import{n as X,t as Xe}from"./DfuPQKZo2.js";import{i as q}from"./CwJXUaHz2.js";import{n as qe,t as Je}from"./vByyUoSy2.js";import{t as Ye}from"./DJ1kwthL.js";import{t as J}from"./BcSEj4Pu.js";import{t as I}from"./BPtbFq3W.js";F();var Qe=G({__name:"WbOzonMatchingSellersChart",props:{additionalSeries:{}},setup(z){const g=z,{sendMetriks:d}=te(ae.NICHES),h=I(),e=i({datasets:[],labels:[]}),c=i([]),l=i([]),n=xe("chartRef"),v=Xe({seriesData:N(()=>e.value.datasets),isShowGain:!1}),E=()=>[...c.value.map(a=>({...a,label:`${a.label}_${a.compareGroup||Z.wb}`})),...l.value.map(a=>({...a,label:`${a.label}_${a.compareGroup||Z.oz}`}))],y=i([]),L=()=>
1{if(!y.value.length)return;const a=y.value,{labels:r}=$e(a);c.value=Ve(a),l.value=Ue(a),e.value.datasets=E(),e.value.labels=r},W=a=>{c.value=a,O(),d("переключение показателей на графике WB")},R=a=>{l.value=a,O(),d("переключение показателей на графике OZON")},O=()=>{if(!n.value)return;const a=E();e.value.datasets=a;const r={};a.forEach(T=>{r[T.label]=!T.isHidden}),n.value.updateSeriesVisibility(r)};return B(()=>g.additionalSeries,async a=>{y.value=a,await we(),L()},{immediate:!0}),(a,r)=>(f(),_(o(b),{direction:"col"},{default:S(()=>[Y(Ne("div",null,[u(o(b),{direction:"col",gap:"g8"},{default:S(()=>[c.value.length?(f(),_(X,{key:0,"legend-data":c.value,onUpdateSeries:W},null,8,["legend-data"])):j("",!0),r[0]||(r[0]=D()),l.value.length&&!o(h).isOnlyWb?(f(),_(X,{key:1,title:"Ozon","legend-data":l.value,"only-border":"",onUpdateSeries:R},null,8,["legend-data"])):j("",!0)]),_:1}),r[1]||(r[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(Ze)},null,8,["chart-data","custom-tooltip-composable","axis-label-formatter"])],512),[[Te,g.additionalSeries.length]])]),_:1}))}}),et=Qe;F();var k=be(Se()),tt=G({__name:"WbOzonMatchingSellersGrid",emits:["select-node","is-filter-change"],setup(z,{expose:g,emit:d}){const h=d,e=I(),c=De(),l=ye(),{showError:n}=he(),{sendMetriks:v}=te(ae.NICHES),{columnDefs:E,rowSelection:y,selectionColumnDef:L}=Ye(e),{isShowNoData:W,hasFilterModel:R,noDataDescription:O,checkNoDataClientSide:a,resetFilterNoDataClientSide:r,onFilterChangedNoDataClientSide:T}=Fe(),{hiddenColumnsCount:oe,onColumnVisibilityChanged:se,countHiddenColumns:ne,toggleColumnsSidebar:le}=je(),m=i(),H=i([]),C=i(!1),x=i([]),re=i({groupHeaderHeight:30,headerHeight:60,floatingFiltersHeight:32}),ie=N(()=>({title:()=>"Нет данных",description:()=>O.value,buttonText:()=>R.value?"Сбросить":"Новый отчет",buttonFn:()=>{R.value?r():U()}})),ue=i({...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(()=>ke("Сравнение WB + OZON - Сводный отчет по нише - Продавцы -",e.periodRange));Ee(()=>{C.value=!0}),Me(()=>{C.value=!1});const me=async()=>{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=x.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);x.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=Ke(t);h("select-node",s)},V=()=>{_e(),$(x.value)},$=t=>{H.value=Je({data:t,periodDiff:e.periodDiff,totalField:"position",fieldsArray:{wb:q,oz:q},isNestedStructure:!0,isNestedTotalField:!0,totalsExcludeKey:Ae})},ge=t=>{const s=[];t.api.forEachNode(M=>{M.displayed&&s.push(M.data)}),$(s),T(),h("is-filter-change")},U=()=>{l.push({name:w.WB_OZON_MATCHING_INDEX})},ve=()=>{J(m.value,e.byMarketplace)};return B(()=>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)),B(()=>e.byMarketplace,(0,k.default)(()=>{C.value&&(J(m.value,e.byMarketplace),e.loadData(w.WB_OZON_MATCHING_SELLERS))})),Re(()=>{He(m.value,v)}),g({NoDataRenderer:Ge}),(t,s)=>o(W)?(f(),_(o(b),{key:0,padding:"p20",bg:"default"},{default:S(()=>[u(We,{title:"Нет данных",description:o(O),class:Q(t.$style.noData),"button-text":"Ð
1Ð¾Ð²Ñ‹Ð¹ отчет","button-fn":U},null,8,["description","class"])]),_:1})):(f(),_(o(b),{key:1,width:"wfull",direction:"col"},{default:S(()=>[u(Pe,{count:o(oe),onToggleColumnsSidebar:s[0]||(s[0]=M=>o(le)(m.value))},null,8,["count"]),s[1]||(s[1]=D()),u(Be,{class:"w35 ag-grid-header-normal","column-defs":o(E),"row-data":x.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(L),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}))}}),at="RhkhVhVu",ot={noData:at},st={$style:ot},nt=ee(tt,[["__cssModules",st]]);F();var lt=G({__name:"WbOzonMatchingSellers",setup(z){const g=I(),d=i([]),h=l=>{d.value=l},e=()=>d.value=[],c=N(()=>d.value.length&&g.isLoadedSellers);return(l,n)=>{const v=ze("animated-loader");return f(),_(o(b),{direction:"col",gap:"g20"},{default:S(()=>[c.value?(f(),_(et,{key:1,"additional-series":d.value},null,8,["additional-series"])):Y((f(),_(o(b),{key:0,direction:"col","justify-content":"center","align-items":"center",gap:"g8",class:Q(l.$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(nt,{onSelectNode:h,onIsFilterChange:e})]),_:1})}}}),rt="s74waGHU",it={chartContainer:rt},ut={$style:it},Vt=ee(lt,[["__cssModules",ut]]);export{Vt 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.