PageSourceSearch

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

js mpstats.io collected 2026-09-24 10:15:05 UTC 7,521 bytes, 1 lines download raw bytes

1import{o as ae}from"./BNNRdYrd.js";import{C as re}from"./kOoWQD43.js";import{t as oe}from"./CuvD9EDf.js";import{W as X,p as S}from"./BCzGyk2Y.js";import{Il as ne,Ll as se}from"./Cki3c1zC.js";import{t as b}from"./GB6FVngY.js";import{$ as ie,A as d,F as E,I as p,O as R,R as W,Y as le,Z as ue,bt as C,j as I,k as ce,qt as a,rt as m,s as A,vt as M,wt as G,x as de,xt as me,zt as u}from"./CyBclcCi.js";import{t as z}from"./K9rsuiWd.js";import{t as pe}from"./C31AM8Le2.js";import{t as _e}from"./D3tue66j.js";import{t as v}from"./hSZj3kD4.js";import{t as ge}from"./DWcVBdfB2.js";import{D as fe,l as ve}from"./CcRd9mt_.js";import{t as Se}from"./DX2A5vwT.js";import{t as Me}from"./k_c67e6-2.js";import{t as be}from"./B2kvWwzh2.js";import{n as Ee,t as Ce}from"./C5ZELAor2.js";import{t as F}from"./TONaY2VB.js";import{l as B}from"./CibVrh5k.js";import{c as he,l as De,m as Oe,t as Pe}from"./CDAFEDK-2.js";import{n as j,t as Ne}from"./C3D5iCpc2.js";import{n as Y}from"./CwJXUaHz2.js";import{n as ye,t as Re}from"./BPSzjgO72.js";import{t as Te}from"./CkoICgRU2.js";import{t as we}from"./RuQBXHJ42.js";import{t as k}from"./Al2Ubxat.js";A();var Ie=W({__name:"WbOzonMatchingPriceSegmentChart",setup(L){const{sendMetriks:c}=F(B.NICHES),e=k(),i=u({datasets:[],labels:[]}),s=u([]),o=u([]),l=u(),_=Ne({seriesData:R(()=>i.value.datasets),isShowGain:!0}),h=()=>[...s.value.map(t=>({...t,label:`${t.label}_${t.compareGroup||X.wb}`})),...o.value.map(t=>({...t,label:`${t.label}_${t.compareGroup||X.oz}`}))],D=()=>{const t=e.priceSegmentData,{labels:r}=Oe(t);s.value=De(t),o.value=he(t),i.value.datasets=h(),i.value.labels=r},O=t=>{s.value=t,P(),c("переключение показателей на графике WB")},T=t=>{o.value=t,P(),c("переключение показателей на графике OZON")},P=()=>{if(!l.value)return;const t=h();i.value.datasets=t;const r={};t.forEach(N=>{r[N.label]=!N.isHidden}),l.value.updateSeriesVisibility(r)};return M(()=>e.priceSegmentData,()=>D()),(t,r)=>(m(),d(a(b),{direction:"col"},{default:C(()=>[a(e).isLoadingPriceSegment?(m(),d(a(b),{key:0,class:G(t.$style.loader)},{default:C(()=>[p(a(pe))]),_:1},8,["class"])):I("",!0),r[2]||(r[2]=E()),me(ce("div",null,[p(a(b),{direction:"col",gap:"g8"},{default:C(()=>[s.value.length?(m(),d(j,{key:0,"legend-data":s.value,onUpdateSeries:O},null,8,["legend-data"])):I("",!0),r[0]||(r[0]=E()),o.value.length&&!a(e).isOnlyWb?(m(),d(j,{key:1,title:"Ozon","legend-data":o.value,"only-border":"",onUpdateSeries:T},null,8,["legend-data"])):I("",!0)]),_:1}),r[1]||(r[1]=E()),p(_e,{ref_key:"chartRef",ref:l,"chart-data":i.value,"grid-bottom":100,"local-storage-id":"Echarts-wb-ozon-matching-price-segment-chart","hide-legend":"","custom-tooltip-composable":a(_),"axis-label-formatter":a(Pe)},null,8,["chart-data","custom-tooltip-composable","axis-label-formatter"])],512),[[de,a(e).isLoadedPriceSegment]])]),_:1}))}}),xe="_5xaFZ5Xx",We="gk0XwPse",Ae={loader:xe,chart:We},Ge={$style:Ae},ze=z(Ie,[["__cssModules",Ge]]);A();var x=ae(re()),Fe=W({__name:"WbOzonMatchingPriceSegmentGrid",setup(L,{expose:c}){const e=k(),i=ne(),s=se(),{showError:o}=oe(),{sendMetriks:l}=F(B.NICHES),{columnDefs:_}=Te(),{isShowNoData:h,hasFilterModel:D,noDataDescription:O,checkNoDataClientSide:T,resetFilterNoDataClientSide:P,onFilterChangedNoDataClientSide:t}=be(),r=u(),N=u({groupHeaderHeight:30,headerHeight:60,floatingFiltersHeight:32}),q=R(()=>({ExportButtonsComponent:{statusPanel:"ExportButtonsComponent",align:"left",statusPanelParams:{sendMetriks:(0,x.default)(()=>l(S.GRID_EXPORT_METRIKA))}}})),y=u([]),H=u([]),g=u(!1),w=u(!1),Q=R(()=>ve("Сравнение WB + OZON - Сводный отчет по нише - Ценовая сегментация -",e.periodRange)),J=R(()=>({title:()=>"Нет данных",description:()=>O.value,buttonText:()=>D.value?"Сбросить":"Новый отчет",buttonFn:()=>{D.value?P():$()}})),$=()=>{s.push({name:v.WB_OZON_MATCHING_INDEX})};le(()=>{g.value=!0}),ie(()=>{g.value=!1});const K=async()=>{if(w.value)return;w.value=!0,r.value.clearCellSelection(),r.value.setGridOption("loading",!0);const n={api:r.value,description:"Товары для отчета не найдены. Измените период отчета, фильтры или выберите другую нишу"};try{await e.getWbOzonMatchingPriceSegment(String(i.query.id)),U(),n.data=y.value}catch(f){o(f,"Произошла ошибка")}n.status=e.priceSegmentStatus,T(n),r.value.setGridOption("loading",!1),w.value=!1,g.value=!0},U=()=>{y.value=e.priceSegmentData,Z(y.value)},ee=({api:n})=>{r.value=n,e.loadData(v.WB_OZON_MATCHING_PRICE_SEGMENT),Ee(n,l)},Z=n=>
1{H.value=Re({data:n,periodDiff:e.periodDiff,totalField:"min_range_price",fieldsArray:{wb:Y,oz:Y},totalsExcludeKey:fe,isNestedStructure:!0})},te=n=>{const f=[];n.api.forEachNode(V=>{V.displayed&&f.push(V.data)}),Z(f),t()};return M(()=>[e.periodRange,i.query.fbs],()=>{e.resetCachedPages()}),M(()=>e.byDaysPeriods,(0,x.default)(()=>{K()})),M(()=>e.chosenNiches,(0,x.default)(n=>{g.value&&(e.isOnlyWb=!n.length,e.isOnlyWb?(e.setOnlyWbData(),U(),g.value=!0):e.loadData(v.WB_OZON_MATCHING_PRICE_SEGMENT))},2e3)),M(()=>[e.priceSegmentRangeCurrentMin,e.priceSegmentRangeCurrentMax,e.priceSegmentSegmentsCount,e.priceSegmentPriceStep],()=>{e.isPriceSegmentFilterSet&&e.loadData(v.WB_OZON_MATCHING_PRICE_SEGMENT)}),ue(()=>{Ce(r.value,l)}),c({NoDataRenderer:Me}),e.setDataLoadCallback(K,v.WB_OZON_MATCHING_PRICE_SEGMENT),(n,f)=>a(h)?(m(),d(a(b),{key:0,padding:"p20",bg:"default"},{default:C(()=>[p(ge,{title:"Нет данных",description:a(O),class:G(n.$style.noData),"button-text":"Новый отчет","button-fn":$},null,8,["description","class"])]),_:1})):(m(),d(Se,{key:1,class:"w35 ag-grid-header-normal","column-defs":a(_),"row-data":y.value,"grid-options":N.value,"status-panel-components":q.value,pagination:!1,"no-init-auto-size":"","animate-rows":"","allow-filter-preset":!1,"export-file-name":Q.value,"enable-browser-tooltips":"",prefix:"/am",postfix:"wb-ozon-matching-price-segment",version:4,"no-rows-overlay-component":"NoDataRenderer","no-rows-overlay-component-params":J.value,"pinned-bottom-row-data":H.value,"get-row-style":a(ye),onGridReady:ee,onFilterChanged:te},null,8,["column-defs","row-data","grid-options","status-panel-components","export-file-name","no-rows-overlay-component-params","pinned-bottom-row-data","get-row-style"]))}}),Be="jbYRaF3F",ke={noData:Be},Le={$style:ke},He=z(Fe,[["__cssModules",Le]]);A();var $e=W({__name:"WbOzonMatchingPriceSegment",setup(L){const{sendMetriks:c}=F(B.NICHES),e=k(),i=({min:s,max:o,segmentsCount:l,priceStep:_})=>{e.priceSegmentRangeCurrentMin!==s&&c(S.PRICE_SEGMENT_MIN_METRIKA),e.priceSegmentRangeCurrentMax!==o&&c(S.PRICE_SEGMENT_MAX_METRIKA),e.priceSegmentSegmentsCount!==l&&c(S.PRICE_SEGMENT_COUNT_METRIKA),e.priceSegmentPriceStep!==_&&c(S.PRICE_STEP_METRIKA),e.priceSegmentRangeCurrentMin=s,e.priceSegmentRangeCurrentMax=o,e.priceSegmentSegmentsCount=l,e.priceSegmentPriceStep=_};return(s,o)=>(m(),d(a(b),{direction:"col",gap:"g20"},{default:C(()=>[p(ze),o[0]||(o[0]=E()),p(we,{class:G(s.$style.filter),min:a(e).priceSegmentRangeMin,max:a(e).priceSegmentRangeMax,"segments-count":a(e).priceSegmentSegmentsCount,"price-step":a(e).priceSegmentPriceStep,disabled:a(e).isLoadingPriceSegment,onApplyFilterParams:i},null,8,["class","min","max","segments-count","price-step","disabled"]),o[1]||(o[1]=E()),p(He)]),_:1}))}}),Ke="NTjCQnJQ",Ue={filter:Ke},Ze={$style:Ue},ht=z($e,[["__cssModules",Ze]]);export{ht 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.