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