1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7308],{47759:t=>{t.exports={chart_tooltip:"chart_chart_tooltip__HPjzX",chart_tooltip_group:"chart_chart_tooltip_group__8hx2F"}},54927:(t,r,e)=>{"use strict";e.r(r),e.d(r,{EAdminDashboardChartGranularity:()=>m,default:()=>k,formatMoneyTick:()=>_});var s=e(37876),i=e(13587),o=e(31462),a=e(4069),n=e(25493),l=e(40570),c=e(49990),d=e(38376),u=e(58069),h=e(47759),p=e.n(h),x=e(40637),j=e(62130);let m={HOUR:"HOUR",DAY:"DAY",MONTH:"MONTH"};function k(t){var r,e;let{data:u}=t,h=null!=(r=null==u?void 0:u.granularity)?r:m.DAY,p=(null!=(e=null==u?void 0:u.points)?e:[]).map(t=>({date:new Date(t.bucket),value:Math.max(0,(0,x.mW)(Number(t.total.profitAmount))),meta:t}));return(0,s.jsx)("div",{style:{height:"300px"},children:(0,s.jsx)(i.u,{width:"100%",height:"100%",children:(0,s.jsxs)(o.Q,{data:p,margin:{top:8,right:24,bottom:0,left:0},children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"chartAreaFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#4E75FF",stopOpacity:.18}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#4E75FF",stopOpacity:.02})]})}),(0,s.jsx)(a.d,{stroke:"#7E818B",strokeOpacity:.4,strokeDasharray:"1 6"}),(0,s.jsx)(n.h,{tickMargin:10,stroke:"#7e818b",axisLine:!1,tickLine:!1,width:60,domain:[0,"auto"],allowDecimals:!1,tickFormatter:t=>_(t)}),(0,s.jsx)(l.W,{dataKey:"date",tickMargin:10,stroke:"#7e818b",axisLine:!1,tickLine:!1,niceTicks:"auto",interval:(0,j.J)(h,p.length),tickFormatter:t=>(0,j.l7)(t,h)}),(0,s.jsx)(c.m,{content:t=>(0,s.jsx)(f,{...t,granularity:h}),cursor:{stroke:"#4E75FF",strokeOpacity:.3}}),(0,s.jsx)(d.Gk,{dataKey:"value",type:"monotone",stroke:"#4E75FF",strokeWidth:2,fill:"url(#chartAreaFill)",activeDot:{r:4,fill:"#4E75FF",stroke:"#fff",strokeWidth:2}})]})})})}let f=t=>{var r,e,i;let{active:o,payload:a,granularity:n}=t,l=null==a||null==(e=a[0])||null==(r=e.payload)?void 0:r.meta;if(!o||!l)return null;let c=n===m.HOUR;return(0,s.jsxs)("div",{className:p().chart_tooltip,children:[(0,s.jsxs)("div",{className:p().chart_tooltip_group,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"ÐаÑа: "}),(0,j.zV)(l.bucket,c)]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"ÐбÑÐ°Ñ Ð¿ÑибÑлÑ: "}),g(l.total.profitAmount)]})]}),(0,s.jsxs)("div",{className:p().chart_tooltip_group,children:[(0,s.jsx)("div",{children:"ÐаказÑ"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"ÐбоÑоÑ: "}),g(l.groups.orders.grossAmount)]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"ÐÑибÑлÑ: "}),g(new u.A(l.groups.orders.profitAmount).plus(null!=(i=l.groups.orders.extraFeeAmount)?i:0).toString())]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"Сделки: "}),v(l.groups.orders.ordersCount)]})]}),(0,s.jsxs)("div",{className:p().chart_tooltip_group,children:[(0,s.jsx)("div",{children:"ÐÑводÑ"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"ÐÑибÑлÑ: "}),g(l.groups.payouts.profitAmount)]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"Ðол-во: "}),v(l.groups.payouts.payoutsCount)]})]})]})};function g(t){return(0,x.mW)(Number(t)).toLocaleString("ru-RU")+" â½"}function v(t){return Number(t).toLocaleString("ru-RU")}function _(t){return t>=1e6?Math.round(t/1e5)/10+"M â½":t>=1e3?Math.round(t/100)/10+"k â½":t+" â½"}}}]);
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.