1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[303],{53033:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tables/ozon",function(){return a(44564)}])},29880:function(t,e,a){"use strict";var n=a(85893);a(67294);var r=a(87357);e.Z=()=>(0,n.jsx)(r.Z,{sx:{px:{xs:2,md:"20%"},mt:2,height:500},children:(0,n.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/Xv4dPP_Q1_g?si=Uyp23qu3U3s6PJHk",title:"YouTube video player",style:{border:"none"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})},76149:function(t,e,a){"use strict";a.d(e,{Z:function(){return s}});var n=a(37887),r=a(87328);let o=t=>t.map(c),c=t=>{var e,a;let n=t.totalCount?t.redeemedCount/t.totalCount:0,o=n>t.product.redeemRateExpected||(0,r.Z)().diff(t.date,"days")>18?n:t.product.redeemRateExpected,c=n>o||(0,r.Z)().diff(t.date,"days")>25?n:o,i=t.avgPrice*t.totalCount*c,d=null!==(e=t.product.tax)&&void 0!==e?e:t.ozAccount.tax,s=null!==(a=t.product.additionalExpensePercent)&&void 0!==a?a:t.ozAccount.additionalExpensePercent,u=t.avgDirectLogistic+(t.avgReturnLogistic+t.avgReturnProcessing)*(1-o),l=i-o*t.product.cost*t.totalCount-i*t.avgCommission/100-t.totalCount*u-i*d/100-i*s/100-t.advCost-t.advCost2;return{id:t.id,date:t.date,article:t.product.name||t.article,mpArticle:t.article,sku:t.product.sku,avgPrice:t.avgPrice,sumPrice:t.avgPrice*t.totalCount,avgRealPrice:t.avgPrice,avgCoinvest:0,avgCommission:t.avgCommission,totalCount:t.totalCount,redeemedCount:t.redeemedCount,returnedCount:t.returnedCount,cancelledCount:t.cancelledCount,redeemRateCurrent:100*n,redeemRateExpected:100*o,returnedCountExpected:t.totalCount*(1-o),avgDirectLogistic:t.avgDirectLogistic,avgReturnLogistic:t.avgReturnLogistic,avgReturnProcessing:t.avgReturnProcessing,avgAllLogistic:u,revenue:i,netProfit:l,profitability:i?100*l/i:0,plan:t.plan,avgCost:t.product.cost,advCost:t.advCost,advCost2:t.advCost2,advCostPerOrder:t.totalCount?(t.advCost+t.advCost2)/t.totalCount:0,advCostRate:i?(t.advCost+t.advCost2)*100/i:0,tax:d,stock:t.stock,additionalExpensePercent:s,img:t.product.img||null,url:t.product.url,mpAccountId:t.ozAccount.id,mpAccountName:t.ozAccount.name||t.ozAccount.id.toString(),mpName:"Ozon",marketplace:"oz"}};var i=a(47705);let d=(0,i.BX)("\n query OzSalesAnalytics($dateStart: String!, $dateEnd: String!) {\n ozSalesAnalytics(dateStart: $dateStart, dateEnd: $dateEnd) {\n id\n ozAccountId\n date\n article\n avgPrice\n avgCommission\n totalCount\n redeemedCount\n returnedCount\n cancelledCount\n avgReturnProcessing\n avgDirectLogistic\n avgReturnLogistic\n plan\n advCost\n advCost2\n stock\n ozAccount {\n id\n name\n tax\n additionalExpensePercent\n }\n product {\n id\n sku\n name\n ozonName\n img\n cost\n tax\n additionalExpensePercent\n redeemRateExpected\n url\n }\n }\n }");var s=t=>{let{loading:e,data:a,error:r,refetch:c}=(0,n.a)(d,{variables:{dateStart:t[0],dateEnd:t[1]},fetchPolicy:"no-cache"}),i=a?o(a.ozSalesAnalytics):[];return{loading:e,error:r,rows:i,refetch:c}}},44564:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return w}});var n=a(85893);a(67294);var r=a(37887),o=a(29880),c=a(87357),i=a(15861),d=a(98167),s=a(95985),u=a(14024),l=a(40525),v=a(65845),g=a(76149),m=a(72873);let p=[m.hT.create(),m.xS.create(),m.lv.create(),m.nc.create(),m.HQ.create(),m.Y2.create(),m.KP.create(),m.B_.create(),m.gF.create(),m.G5.create(),m.Dm.create(),m.WH.create(),m.p$.create(),m.Ve.create(),m.t9.create(),m.ht.create(),m.q9.create(),m.mN.create(),m.m9.create(),m.qT.create(),m.JK.create(),m.l8.create(),m.Lf.create(),m.fq.create(),m.B6.create(),m.s9.create(),m.YS.create(),m.rk.create()];var C=a(81593);let x=[C.KP,C.B_,C.gF,C.G5,C.Dm,C.WH,C.Ve,C.t9,C.mN,C.JK,C.l8,C.Lf,C.fq],f="ozAnalytics";var h=()=>{let[t,e]=(0,v.Z)(f),{loading:a,rows:r,error:o}=(0,g.Z)(t);return(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(i.Z,{variant:"h4",gutterBottom:!0,mb:2,children:"Ozon"}),(0,n.jsx)(d.Z,{defaultDateRange:t,onChange:e}),o&&(0,n.jsx)(l.Z,{errors:[o]}),!!r.length&&(0,n.jsx)(c.Z,{sx:{mt:2},children:(0,n.jsx)(u.Z,{rows:r,type:"ozon",possibleCharts:x})}),(0,n.jsx)(s.Z,{loading:a,rows:r,columns:p,tableId:f})]})},P=a(57626),z=a(20137),y=a(24036),Z=a(45023),A=a(95395);let E=()=>{let{data:t,error:e,loading:a}=(0,r.a)(y.Y);if(a||!t)return(0,n.jsx)(P.Z,{});if(e)return(0,n.jsx)(l.Z,{errors:[e]});let c=t.ozAccounts.length>0;return c?(0,n.jsx)(h,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(z.Z,{platformType:"oz"}),(0,n.jsx)(o.Z,{})]})};E.authorize=[A.u.ADMIN,A.u.ANALYST],E.Layout=Z.Z;var w=E}},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=53033)}),_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.