PageSourceSearch

https://cabinet.gdeprofit.ru/_next/static/chunks/pages/tables/wildberries-a5ce0db2fc14e7cf.js

js gdeprofit.ru collected 2026-10-07 15:40:20 UTC 5,394 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6576],{26555:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tables/wildberries",function(){return n(2818)}])},29389:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(37887),a=n(87328);let c=t=>t.map(o),o=t=>{var e,n,r,c,o,i,s;let u=t.avgPriceWithDisc>0?1-t.avgForPay/t.avgPriceWithDisc:0,d=t.saleIsBoundCount,l=t.totalCount?t.saleIsBoundCount/t.totalCount:0,g=(null===(e=t.product)||void 0===e?void 0:e.redeemRate)||1,v=l>g||(0,a.Z)().diff(t.date,"days")>18?l:g,p=t.product.avgDirectLogistic||t.avgLogisticsPrice||0,m=t.product.avgReturnLogistic||t.avgReturnLogisticsPrice||t.avgProbableReturnLogisticsPrice||0,C=t.avgPriceWithDisc,b=t.avgFinishedPrice,P=C>0?1-b/C:0,f=b*t.totalCount*v,h=Number.isFinite(t.product.cost)?(t.cost+t.product.cost*(t.totalCount-t.costIsSetCount))/t.totalCount:t.costIsSetCount?t.cost/t.costIsSetCount:0,w=t.advCost||0,x=t.advCost2||0,A=(null!==(r=null!==(n=t.product.tax)&&void 0!==n?n:t.wbAccount.tax)&&void 0!==r?r:0)/100,R=(null!==(o=null!==(c=t.product.additionalExpensePercent)&&void 0!==c?c:t.wbAccount.additionalExpensePercent)&&void 0!==o?o:0)/100,I=null!==(s=null!==(i=t.product.storagePrice)&&void 0!==i?i:t.wbAccount.storagePrice)&&void 0!==s?s:0,E=p+m*(1-v),S=f-v*h*t.totalCount-I*t.totalCount-(u-P)*v*C*t.totalCount-t.totalCount*E-f*A-f*R-w-x;return{id:t.id,date:t.date,article:t.product.name||t.product.supplierArticle,mpArticle:t.product.supplierArticle,sku:t.product.nmId,avgPrice:C,sumPrice:b*t.totalCount,avgRealPrice:b,avgCoinvest:100*P,avgCommission:100*u,totalCount:t.totalCount,redeemedCount:d,returnedCount:0,cancelledCount:0,redeemRateCurrent:100*l,redeemRateExpected:100*v,returnedCountExpected:t.totalCount*(1-v),avgDirectLogistic:p,avgReturnLogistic:m,avgReturnProcessing:0,avgAllLogistic:E,revenue:f,avgCost:h,advCost:w,advCost2:x,advCostPerOrder:t.totalCount?(w+x)/t.totalCount:0,advCostRate:f?(w+x)*100/f:0,tax:100*A,additionalExpensePercent:100*R,netProfit:S,profitability:f?100*S/f:0,plan:t.plan,stock:t.stock||0,img:t.product.img||null,url:t.product.url,mpAccountId:t.wbAccount.id,mpAccountName:t.wbAccount.name||t.wbAccount.id.toString(),mpName:"Wildberries",marketplace:"wb"}};var i=n(47705);let s=(0,i.BX)("\n  query GetWbAnalytics($dateStart: String!, $dateEnd: String!, $wbAccountId: Int) {\n    wbOrdersAnalytics(dateStart: $dateStart, dateEnd: $dateEnd, wbAccountId: $wbAccountId) {\n      id\n      nmId\n      date\n      avgPriceWithDisc\n      avgFinishedPrice\n      avgForPay\n      avgLogisticsPrice\n      avgReturnLogisticsPrice\n      avgProbableReturnLogisticsPrice\n      cost\n      costIsSetCount\n      saleIsBoundCount\n      totalCount\n      stock\n      isRefinedCount\n      additionalPaymentsSum\n      plan\n      product {\n        id\n        nmId\n        img\n        supplierArticle\n        name\n        cost\n        storagePrice\n        defectiveRate\n        tax\n        additionalExpensePercent\n        redeemRate\n        url\n        avgDirectLogistic\n        avgReturnLogistic\n      }\n      advCost\n      advCost2\n      wbAccount {\n        id\n        name\n        defectiveRate\n        tax\n        additionalExpensePercent\n        storagePrice\n      }\n    }\n  }\n");var u=t=>{let{loading:e,data:n,error:a,refetch:o}=(0,r.a)(s,{variables:{dateStart:t[0],dateEnd:t[1]},fetchPolicy:"no-cache"}),i=n?c(n.wbOrdersAnalytics):[];return{loading:e,error:a,rows:i,refetch:o}}},2818:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return I}});var r=n(85893);n(67294);var a=n(37887),c=n(87357),o=n(15861),i=n(98167),s=n(95985),u=n(14024),d=n(40525),l=n(65845),g=n(29389),v=n(72873);let p=[v.hT.create(),v.xS.create(),v.lv.create(),v.nc.create(),v.HQ.create(),v.Y2.create(),v.KP.create(),v.B_.create(),v.gF.create(),v.G5.create(),v.Dm.create(),v.WH.create(),v.p$.create(),v.Ve.create(),v.t9.create(),v.R0.create({headerName:"Цена с СПП",description:"Цена с учетом скидки покупателя (СПП) на маркетплейсе."}),v.zW.create({headerName:"СПП",description:"Размер скидки покупателя (СПП) на маркетплейсе."}),v.ht.create(),v.q9.create(),v.mN.create(),v.m9.create(),v.JK.create(),v.l8.create(),v.Lf.create(),v.fq.create(),v.B6.create(),v.s9.create(),v.YS.create(),v.rk.create()];var m=n(81593);let C=[m.KP,m.B_,m.gF,m.G5,m.Dm,m.WH,m.Ve,m.t9,m.mN,m.JK,m.l8,m.R0,m.ht,m.zW,m.Lf,m.fq],b="wbAnalytics";var P=()=>{let[t,e]=(0,l.Z)(b),{loading:n,rows:a,error:v}=(0,g.Z)(t);return(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(o.Z,{variant:"h4",gutterBottom:!0,mb:2,children:"Wildberries"}),(0,r.jsx)(i.Z,{defaultDateRange:t,onChange:e}),v&&(0,r.jsx)(d.Z,{errors:[v]}),!!a.length&&(0,r.jsx)(c.Z,{sx:{mt:2},children:(0,r.jsx)(u.Z,{rows:a,type:"wildberries",possibleCharts:C})}),(0,r.jsx)(s.Z,{loading:n,rows:a,columns:p,tableId:b})]})},f=n(57626),h=n(20137),w=n(24036),x=n(45023),A=n(95395);let R=()=>{let{data:t,error:e,loading:n}=(0,a.a)(w.Y);if(n||!t)return(0,r.jsx)(f.Z,{});if(e)return(0,r.jsx)(d.Z,{errors:[e]});let c=t.wbAccounts.length>0;return c?(0,r.jsx)(P,{}):(0,r.jsx)(h.Z,{platformType:"wb"})};R.authorize=[A.u.ADMIN,A.u.ANALYST],R.Layout=x.Z;var I=R}},function(t){t.O(0,[1962,4138,8584,6395,6692,34,2173,674,2115,4072,5023,7705,6458,5169,9774,2888,179],function(){return t(t.s=26555)}),_N_E=t.O()}]);

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.