PageSourceSearch

https://www.diggersfactory.com/_next/static/chunks/pages/project/dashboard-d46149c18ce66016.js

js diggersfactory.com collected 2026-10-02 04:35:16 UTC 32,073 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="84b7fb79-e6ac-4e00-b12b-b86ffb0f385c",e._sentryDebugIdIdentifier="sentry-dbid-84b7fb79-e6ac-4e00-b12b-b86ffb0f385c")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1738],{4629:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=(0,s(47824).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},8159:(e,a,s)=>{"use strict";s.d(a,{h:()=>r});var t=s(66162),d=s(53187),i=s.n(d),l=s(44922);let r=e=>{let[a,s]=(0,l.useState)(!1),d=(0,l.useRef)(),r=(0,l.useRef)();return(0,t.jsxs)("div",{className:"jsx-14aff3e6c820cf3a popover relative",children:[(0,t.jsxs)("div",{ref:d,className:"jsx-14aff3e6c820cf3a "+"\n          popover-bubble ".concat(e.className,"\n          ").concat(e.position,"\n          ").concat(a?"on":"off","\n        "),children:[(0,t.jsx)("div",{className:"jsx-14aff3e6c820cf3a popover-arrow top"}),(0,t.jsxs)("div",{id:e.id,className:"jsx-14aff3e6c820cf3a popover-message",children:[(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.html},className:"jsx-14aff3e6c820cf3a"}),e.message,void 0!==e.content&&e.content]}),(0,t.jsx)("div",{className:"jsx-14aff3e6c820cf3a popover-arrow bottom"})]}),(0,t.jsx)("div",{ref:r,onMouseEnter:()=>{let a=r.current.getBoundingClientRect(),t=d.current;t.style.visibility="hidden",t.style.display="block";let i=t.getBoundingClientRect();t.removeAttribute("style");let l=i.width/2-a.width/2,c=0;"bottom"===e.position?(c=a.height+10,c="".concat(c,"px")):(c=i.height+10,c="-".concat(c,"px")),t.style.marginTop=c,t.style.marginLeft="-".concat(l,"px"),s(!0)},onClick:()=>{a?s(!1):s(!0)},onMouseLeave:()=>{s(!1)},className:"jsx-14aff3e6c820cf3a popover-children",children:e.children}),(0,t.jsx)(i(),{id:"14aff3e6c820cf3a",children:'div.popover.jsx-14aff3e6c820cf3a{display:inline-block}div.popover.jsx-14aff3e6c820cf3a div.popover-children.jsx-14aff3e6c820cf3a{display:inline-block}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a{margin-top:-53px;position:absolute;z-index:100;font-size:13px;width:max-content}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.on.jsx-14aff3e6c820cf3a{animation:enter ease.5s}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.off.jsx-14aff3e6c820cf3a{display:none}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a div.popover-message.jsx-14aff3e6c820cf3a{background:#fff;color:#000;border-radius:10px;padding:15px;box-shadow:rgb(255,255,255)0px 0px 0px 0px,rgba(0,0,0,.05)0px 0px 0px 1px,rgba(0,0,0,.1)0px 10px 15px -3px,rgba(0,0,0,.05)0px 4px 6px -2px;max-width:400px;min-width:100px;font-weight:500;text-align:left;line-height:20px;white-space:normal;text-transform:none}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a div.popover-message.jsx-14aff3e6c820cf3a span.label.jsx-14aff3e6c820cf3a{color:#407a93;text-transform:none;letter-spacing:1px;font-weight:400;font-size:9px;letter-spacing:0px;font-family:"Lato"}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.large.jsx-14aff3e6c820cf3a div.popover-message.jsx-14aff3e6c820cf3a{min-width:600px}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a div.popover-arrow.jsx-14aff3e6c820cf3a{margin:0 auto;margin-top:-5px;width:10px;height:10px;background:#fff;border-right:1px solid#00000040;border-bottom:1px solid#00000040;transform:rotate(45deg)}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a div.popover-arrow.top.jsx-14aff3e6c820cf3a{transform:rotate(-135deg);margin-bottom:-5px;margin-top:0px;display:none}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.bottom.jsx-14aff3e6c820cf3a div.popover-arrow.top.jsx-14aff3e6c820cf3a{display:block}div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.bottom.jsx-14aff3e6c820cf3a div.popover-arrow.bottom.jsx-14aff3e6c820cf3a{display:none}@media screen and (max-width:500px){div.popover.jsx-14aff3e6c820cf3a div.popover-bubble.jsx-14aff3e6c820cf3a{left:10px;right:10px;margin-left:0!important}}@keyframes enter{from{transform:translatey(-10px)}50%{transform:none}}'})]})}},14004:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>N});var t=s(66162),d=s(53187),i=s.n(d),l=s(24335),r=s.n(l),c=s(4629),n=s(47910),o=s(14221),x=s.n(o),p=s(72624),j=s.n(p),m=s(44922),f=s(67392),u=s(8159),b=s(45484),h=s(35673),v=s(25312),g=s(15260);let y=x()(()=>Promise.all([s.e(8285),s.e(2314)]).then(s.bind(s,12314)),{loadableGenerated:{webpack:()=>[12314]},ssr:!1}),_=e=>{let{projects:a}=e,s=(0,v.Pj)(),{t:d,d:l,country:n,lang:o}=(0,v.Bd)("dashboard"),x=(0,v.rd)(),p=m.useRef(),[j,_]=m.useReducer((e,a)=>({...e,...a}),{laoding:!1,stats:null,project:null,t_selected:"all",q_selected:"all",t_data:[],q_data:[],t_tab:"all",q_tab:"all",period:x.query.period||"all_time",outstanding:!1,start:x.query.start||null,end:x.query.end||null,income:!1,costs:!1}),N=m.createRef(),k=m.createRef(),{stats:w}=j,q=m.useRef();m.useEffect(()=>{var e;(null==(e=s.auth.data)?void 0:e.id)&&a&&A({init:!0,period:j.period,start:j.start,end:j.end})},[s.auth.data]),m.useEffect(()=>{k.current&&k.current.reload()},[x.query]);let A=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===a.length)return;let t=e.u||x.query.u||"",d=e.project_id||x.query.p||"",i=e&&"all"===e.project_id,l=!i,r=!1;if(e.project_id||a.some(e=>e.send_statement)||(i=!0,e.project_id="all"),e.init||d&&"all"!==e.project_id&&"cashable"!==e.project_id){if(d){var c;r=null==(c=a.find(e=>e.id===+d))?void 0:c.send_statement,t=""}}else d="",t=s.auth.isMun?a[0].user_id:s.auth.data.id,r=!i,s.app.redirect("/dashboard?u=".concat(t).concat(i?"&all":""));_({laoding:!0}),t?r=a.some(e=>e.send_statement):d&&s.app.redirect("/dashboard?p=".concat(d)),q.current={user_id:t,project_id:d,cashable:l,all:i,period:e.period||j.period,outstanding:r,start:e.start||"",end:e.end||"",only_verified_statements:!0};let n=await s.app.api("projects/dashboard",{loading:!0,params:q.current});n.quantity&&_({laoding:!1,period:e.period||j.period,stats:n,outstanding:r,t_data:E(n,"income","all"),q_data:E(n,"quantity","all")})},E=(e,a,s)=>e[a]?Object.entries(s?e[a][s].dates:e[a].dates).map(e=>{let[a,s]=e;return{x:a,y:s.toFixed(2)}}):null,R={chart:{id:"chart2",type:"area",foreColor:"#ccc",toolbar:{autoSelected:"pan",show:!1}},colors:["#ffcf00"],stroke:{width:3},grid:{borderColor:"#555",clipMarkers:!1,yaxis:{lines:{show:!1}}},dataLabels:{enabled:!1},fill:{gradient:{enabled:!0,opacityFrom:.55,opacityTo:0}},markers:{size:5,colors:["#000000"],strokeColor:"#ffcf00",strokeWidth:3},tooltip:{theme:"dark",custom2:function(e){let{series:a,seriesIndex:s,dataPointIndex:t,w:d}=e;return a[s][t]}},xaxis:{labels:{formatter:function(e){return l(e,{day:"days"===w.periodicity})}}},yaxis:{tickAmount:4,labels:{formatter:function(e){return(0,h.q9)(e,w.currency,o)}}}},C=async()=>
1{let e={id:x.query.p||"all",user_id:x.query.u||"",start:w.start,end:w.end,size:999999},a=await s.api("projects/".concat(e.id,"/orders/export"),{responseType:"arraybuffer",loading:!0,params:e});r().saveAs(new Blob([a],{type:"application/octet-stream"}),"Orders.xlsx")};return 0!==a.length||s.auth.isMun?(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 page",children:[(0,t.jsx)(f.p3,{title:d("common:dashboard"),lang:o}),(0,t.jsx)(f.Ej,{id:"top",children:(0,t.jsx)(f.hE,{h1:!0,children:d("common:dashboard")})}),(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 container",children:[(0,t.jsx)(f.lV,{ref:N,onValid:A,children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 filter",children:[(0,t.jsx)("div",{style:{width:"80%"},className:"jsx-1e66802252a5dd49",children:(0,t.jsx)(f.pd,{name:"project_id",type:"Select",output:e=>e.value,defaultValue:void 0!==x.query.all?"all":x.query.p&&"cashable"!==x.query.p?+x.query.p:"cashable",data:[...a.some(e=>e.send_statement)?[{value:"cashable",name:d("common:all_projects")}]:[],...a.some(e=>!e.send_statement)?[{value:"all",name:d("common:all_projects")}]:[],...a.map(e=>({value:e.id,name:"".concat(e.artist_name," - ").concat(e.name),send_statement:e.send_statement,picture:"".concat((0,h._K)("STORAGE_URL"),"/projects/").concat(e.picture,"/mini.jpg")}))],display:e=>(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 flex gap-2 items-center",children:["all"===e.value||"cashable"===e.value?(0,t.jsx)(f.In,{type:"icon-music"}):(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 w-6 h-6 rounded-full overflow-hidden",children:(0,t.jsx)(f._V,{src:e.picture,alt:e.name,srcError:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/project_placeholder.png")})}),(0,t.jsx)("span",{className:"jsx-1e66802252a5dd49",children:e.name}),e.send_statement||"cashable"===e.value?(0,t.jsx)(f.vw,{color:"green",style:{margin:"-3px"},children:d("dashboard:cashable")}):(0,t.jsx)(f.vw,{color:"yellow",style:{margin:"-3px"},children:d("dashboard:in_progress")})]})})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 bt",children:(0,t.jsx)(f.$n,{button:!0,type:"submit",className:"primary",children:d("common:filter")})})]})}),w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 row",children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 "+"col-xs-".concat(j.outstanding?4:6),children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 number",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label",children:[d("quantity"),(0,t.jsx)(u.h,{html:d("help.quantity"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.quantity.all.total})]})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 "+"col-xs-".concat(j.outstanding?4:6),children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 number",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label ",children:[d("sales"),(0,t.jsx)(u.h,{html:d("help.sales"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.all.total,w.currency,o)})]})}),j.outstanding?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 "+"col-xs-".concat(j.outstanding?4:3),children:(0,t.jsx)("a",{href:"#costs",className:"jsx-1e66802252a5dd49",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 number",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label",children:[d("costs"),(0,t.jsx)(u.h,{html:d("help.costs"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.costs.all.total,w.currency,o)})]})})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 "+"col-xs-".concat(j.outstanding?4:3),children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 "+"number ".concat(!j.outstanding&&"primary"),children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label",children:[d("margin"),(0,t.jsx)(u.h,{html:d("help.margin"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.balance.total,w.currency,o)})]})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-4",children:(0,t.jsx)("a",{href:"#payments",className:"jsx-1e66802252a5dd49",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 number",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label",children:[d("payments"),(0,t.jsx)(u.h,{html:d("help.payments"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.payments.all.total,w.currency,o)})]})})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-4",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 number primary",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 label",children:[d("outstanding"),
1(0,t.jsx)(u.h,{html:d("help.outstanding"),children:(0,t.jsx)(f.In,{type:"icon-help-circle"})})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.outstanding.total,w.currency,o)})]})})]}):null]}),(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 main-chart dark",children:[(0,t.jsxs)("div",{style:{marginBottom:-30},className:"jsx-1e66802252a5dd49 chart",children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 title",children:(0,t.jsxs)(f.hE,{children:[d("sales")," ",d(j.t_selected).toLocaleLowerCase()]})}),(0,t.jsx)(y,{type:"area",options:R,series:[{name:j.t_selected,data:j.t_data}],width:"100%",height:320})]}),(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 list",children:[(0,t.jsxs)("div",{onClick:()=>_({t_selected:"all",t_data:E(j.stats,"income","all")}),className:"jsx-1e66802252a5dd49 "+("all"===j.t_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("all")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.all.total,w.currency,o)})]}),(0,t.jsxs)("div",{onClick:()=>_({t_selected:"site",t_data:E(j.stats,"income","site")}),className:"jsx-1e66802252a5dd49 "+("site"===j.t_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("site")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.site.total,w.currency,o)})]}),(0,t.jsxs)("div",{onClick:()=>_({t_selected:"distrib",t_data:E(j.stats,"income","distrib")}),className:"jsx-1e66802252a5dd49 "+("distrib"===j.t_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("distrib")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.distrib.total,w.currency,o)})]}),w.income.digital.all>0&&(0,t.jsxs)("div",{onClick:()=>_({t_selected:"digital",t_data:E(j.stats,"income","digital")}),className:"jsx-1e66802252a5dd49 "+("digital"===j.t_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("digital")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.digital.total,w.currency,o)})]}),w.income.box.all>0&&(0,t.jsxs)("div",{onClick:()=>_({t_selected:"box",t_data:E(j.stats,"income","box")}),className:"jsx-1e66802252a5dd49 "+("box"===j.t_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("box")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:(0,h.q9)(w.income.box.total,w.currency,o)})]})]})]}),(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 main-chart",children:[(0,t.jsxs)("div",{style:{marginBottom:-50},className:"jsx-1e66802252a5dd49 chart",children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 title",children:(0,t.jsxs)(f.hE,{children:[d("common:quantity")," ",d(j.q_selected).toLocaleLowerCase()]})}),(0,t.jsx)(y,{type:"area",options:{...R,chart:{type:"area",foreColor:"#000",toolbar:{autoSelected:"pan",show:!1}},markers:{size:5,colors:["#FFF"],strokeColor:"#ffcf00",strokeWidth:3},tooltip:{theme:"light"},yaxis:{tickAmount:4,labels:{formatter:function(e){return e}}}},series:[{name:j.q_selected,data:j.q_data}],width:"100%",height:330})]}),(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 list",children:[(0,t.jsxs)("div",{onClick:()=>_({q_selected:"all",q_data:E(j.stats,"quantity","all")}),className:"jsx-1e66802252a5dd49 "+("all"===j.q_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("all")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.quantity.all.total})]}),(0,t.jsxs)("div",{onClick:()=>_({q_selected:"site",q_data:E(j.stats,"quantity","site")}),className:"jsx-1e66802252a5dd49 "+("site"===j.q_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("site")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.quantity.site.total+w.quantity.site_return.total})]}),(0,t.jsxs)("div",{onClick:()=>_({q_selected:"distrib",q_data:E(j.stats,"quantity","distrib")}),className:"jsx-1e66802252a5dd49 "+("distrib"===j.q_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("distrib")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.quantity.distrib.total})]}),w.quantity.box.all>0&&(0,t.jsxs)("div",{onClick:()=>_({q_selected:"box",q_data:E(j.stats,"quantity","box")}),className:"jsx-1e66802252a5dd49 "+("box"===j.q_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("box")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.quantity.box.total})]}),w.download.site.total>0&&(0,t.jsxs)("div",{onClick:()=>_({q_selected:"download",q_data:E(j.stats,"download","site")}),className:"jsx-1e66802252a5dd49 "+("download"===j.q_selected&&"active"||""),children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 name",children:d("download")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 value",children:w.download.site.total})]})]})]}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 row",children:(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-12",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 block dark top",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 tabs",children:[(0,t.jsx)("a",{onClick:()=>{_({t_tab:"all"})},className:"jsx-1e66802252a5dd49 "+("all"===j.t_tab&&"active"||""),children:d("all")})," ","/",(0,t.jsx)("a",{onClick:()=>{_({t_tab:"site"})},className:"jsx-1e66802252a5dd49 "+("site"===j.t_tab&&"active"||""),children:d("site")})," ","/",(0,t.jsx)("a",{onClick:()=>{_({t_tab:"box"})},className:"jsx-1e66802252a5dd49 "+("box"===j.t_tab&&"active"||""),children:d("box")})," ","/",(0,t.jsx)("a",{onClick:()=>{_({t_tab:"distrib"})},className:"jsx-1e66802252a5dd49 "+("distrib"===j.t_tab&&"active"||""),children:d("distrib")})]}),!j.laoding&&(0,t.jsx)(b.A,{data:Object.entries(w.income[j.t_tab].countries).sort((e,a)=>{let[s,t]=e,[d,i]=a;return i-t}).map(e=>{let[a,s]=e;return{country:a,value:s,quantity:w.quantity[j.t_tab].countries[a],payback:w.income[j.t_tab].countries[a]/w.quantity[j.t_tab].countries[a],pourcent:(0,h.LI)(100*s/w.income[j.t_tab].all,2)}}
1),pagination:!0,size:10,columns:[{title:"",name:"",sortable:!0,filterable:!0,value:e=>"null"!==e.country&&(0,t.jsx)("img",{alt:e.country,src:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/flags/").concat(e.country,".png"),className:"jsx-1e66802252a5dd49 country"})},{title:d("common:customer.country"),sortable:!0,filterable:!0,value:e=>"null"===e.country?d("n/a"):n(e.country)},{title:d("common:quantity"),sortable:!0,filterable:!0,value:e=>e.quantity},{title:d("common:turnover"),sortable:!0,filterable:!0,value:e=>(0,h.q9)(e.value,w.currency,o)},{title:"Payback",sortable:!0,filterable:!0,value:e=>(0,h.q9)(e.payback,w.currency,o)},{title:"%",sortable:!0,filterable:!0,value:e=>(0,t.jsxs)("strong",{className:"jsx-1e66802252a5dd49",children:[e.pourcent," %"]})}]})]})})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 row",children:(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-12",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 block dark top",children:[(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 tabs",children:(0,t.jsx)("a",{className:"jsx-1e66802252a5dd49 active",children:d("stocks")})}),!j.laoding&&(0,t.jsx)(b.A,{data:Object.entries(w.stocks.all.countries).sort((e,a)=>{let[s,t]=e,[d,i]=a;return i-t}).map(e=>{let[a,s]=e;return{country:a,value:s,pourcent:(0,h.LI)(100*s/w.income[j.t_tab].all,2)}}),pagination:!0,size:10,columns:[{title:"",name:"",sortable:!0,filterable:!0,value:e=>"ALL"!==e.country&&"null"!==e.country&&(0,t.jsx)("img",{alt:e.country,src:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/flags/").concat(e.country,".png"),className:"jsx-1e66802252a5dd49 country"})},{title:d("common:customer.country"),sortable:!0,filterable:!0,value:e=>"ALL"===e.country?d("all"):"null"===e.country?d("n/a"):n(e.country)},{title:d("site"),sortable:!0,filterable:!0,value:e=>w.stocks.site.countries[e.country]||0},{title:d("distribution"),sortable:!0,filterable:!0,value:e=>w.stocks.distrib.countries[e.country]||0},{title:d("all"),sortable:!0,filterable:!0,value:e=>(0,t.jsx)("strong",{className:"jsx-1e66802252a5dd49",children:e.value})}]})]})})}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-12",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 block top",children:[(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 title orders",children:[(0,t.jsx)(f.hE,{children:d("common:orders")}),(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49",children:(0,t.jsxs)("button",{onClick:C,className:"jsx-1e66802252a5dd49",children:[(0,t.jsx)(c.A,{size:13}),d("common:orders_export")]})})]}),(0,t.jsx)(b.A,{ref:k,fetch:e=>(e={id:x.query.p||"all",user_id:x.query.u||"",start:w.start,end:w.end,...e},s.project.getOrders(e)),filterable:!0,size:15,pagination:!0,columns:[{title:"Project",sortable:!0,filterable:!0,name:"project.name",value:e=>e.project_name,display:e=>(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 country",children:[(0,t.jsx)(f._V,{src:"".concat((0,h._K)("STORAGE_URL"),"/projects/").concat(e.picture||e.project_id,"/mini.jpg"),srcError:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/project_placeholder.png"),className:"thumbnail"}),e.item?e.item:e.project_name]})},{title:d("common:user"),name:"user.name",sortable:!0,filterable:!0,value:e=>e.user},{title:d("common:customer.country"),name:"country.name",sortable:!0,filterable:!0,value:e=>e.country_id,display:e=>(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 country",children:[(0,t.jsx)("img",{src:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/flags/").concat(e.country_id,".png"),className:"jsx-1e66802252a5dd49 country cc"}),n(e.country_id)]})},{title:d("common:date"),name:"order_shop.created_at",sortable:!0,filterable:!0,value:e=>e.created_at,display:e=>(0,t.jsx)(f.vw,{children:l(e.created_at)})},{title:d("qty"),name:"quantity",sortable:!0,filterable:!0,value:e=>(0,t.jsx)("span",{className:"jsx-1e66802252a5dd49 quantity",children:e.quantity})},{title:d("common:before_fee"),value:e=>e.total,display:e=>(0,h.q9)(e.total,e.currency,o)},{title:d("common:tax"),value:e=>e.tax,display:e=>(0,h.q9)(e.tax,e.currency,o)},{title:d("common:fee"),value:e=>e.fee,display:e=>(0,h.q9)(e.fee,e.currency,o)},{title:d("common:net"),value:e=>e.net,display:e=>(0,t.jsx)("strong",{className:"jsx-1e66802252a5dd49",children:(0,h.q9)(e.net,e.currency,o)})}]})]})}),w.costs.list.length>0&&(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-12",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 block top",children:[(0,t.jsx)("div",{id:"costs",className:"jsx-1e66802252a5dd49 title orders",children:(0,t.jsx)(f.hE,{children:d("costs")}
1)}),(0,t.jsx)(b.A,{ref:p,data:w.costs.list.reverse(),filterable:!0,sortable:!0,size:5,pagination:!0,columns:[{sortable:!0,filterable:!0,title:d("common:date"),value:e=>e.date,display:e=>l(e.date+"-01",{day:!1})},{title:"Project",sortable:!0,filterable:!0,name:"name",value:e=>{let s=a.find(a=>a.id===e.project_id);return s&&s.name},display:e=>{let s=a.find(a=>a.id===e.project_id);return s?(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49",children:[(0,t.jsx)(f._V,{src:"".concat((0,h._K)("STORAGE_URL"),"/projects/").concat(s.picture||s.project_id,"/mini.jpg"),srcError:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/project_placeholder.png"),className:"thumbnail"}),s.name]}):null}},{sortable:!0,filterable:!0,title:d("common:type"),value:e=>e.type,display:e=>d(e.type)},{sortable:!0,filterable:!0,title:d("amount"),value:e=>e.amount,display:e=>(0,t.jsx)("strong",{className:"jsx-1e66802252a5dd49",children:(0,h.q9)(e.amount,w.currency,o)})}]})]})}),w.payments.list.length>0&&(0,t.jsx)("div",{className:"jsx-1e66802252a5dd49 col-xs-12",children:(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49 block top",children:[(0,t.jsx)("div",{id:"payments",className:"jsx-1e66802252a5dd49 title orders",children:(0,t.jsx)(f.hE,{children:d("payments")})}),(0,t.jsx)(b.A,{ref:p,data:w.payments.list.reverse(),filterable:!0,size:5,pagination:!0,columns:[{sortable:!0,filterable:!0,title:d("common:date"),value:e=>e.date,display:e=>l(e.date+"-01",{day:!1})},{title:"Project",sortable:!0,filterable:!0,name:"name",value:e=>e.project,display:e=>(0,t.jsxs)("div",{className:"jsx-1e66802252a5dd49",children:[(0,t.jsx)(f._V,{src:"".concat((0,h._K)("STORAGE_URL"),"/projects/").concat(e.picture||e.project_id,"/mini.jpg"),srcError:"".concat((0,h._K)("STORAGE_URL"),"/assets/images/project_placeholder.png"),className:"thumbnail",alt:e.project}),e.project]})},{sortable:!0,filterable:!0,title:d("common:type"),value:e=>e.type,display:e=>d("payment_".concat(e.type))},{title:d("amount"),sortable:!0,filterable:!0,value:e=>e.amount,display:e=>(0,t.jsx)("strong",{className:"jsx-1e66802252a5dd49",children:(0,h.q9)(e.amount,e.currency,o)})}]})]})})]})]}),(0,t.jsx)(i(),{id:"1e66802252a5dd49",children:'.page.jsx-1e66802252a5dd49{padding-bottom:40px}.block.jsx-1e66802252a5dd49{margin:20px 10px}.filter.jsx-1e66802252a5dd49{margin-bottom:20px;background:#fff;border-radius:10px;padding:20px;margin:20px 15px;text-align:center;padding:20px 20px;justify-content:center;align-items:center;display:flex}.filter.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49{flex-shrink:1;flex-grow:1;width:300px}.filter.jsx-1e66802252a5dd49>div.bt.jsx-1e66802252a5dd49{width:inherit}select.jsx-1e66802252a5dd49{font-size:20px;appearance:none;padding:10px 30px 10px 25px;border:2px solid#b0b0b0;border-radius:20px;margin-top:-15px;margin-bottom:10px;width:100%;max-width:500px}.bts.jsx-1e66802252a5dd49{margin-top:0;margin-bottom:20px}.main-chart.jsx-1e66802252a5dd49{margin:30px 15px;background:rgb(143,133,133);background:linear-gradient(#fff,#f5f5f5);box-shadow:#cccccc91 1px 0px 20px;padding:30px;border-radius:10px;display:flex}.main-chart.dark.jsx-1e66802252a5dd49{background:linear-gradient(#222,#000);box-shadow:rgb(94 93 93/57%)1px 0px 20px}.quantity.jsx-1e66802252a5dd49{font-size:13px;font-weight:bold}.quantity.jsx-1e66802252a5dd49::before{content:"x"}.chart.jsx-1e66802252a5dd49{flex:1;max-width:1e3px;position:relative}.main-chart.jsx-1e66802252a5dd49 .title.jsx-1e66802252a5dd49{text-align:center;left:0;right:0;top:-25px;position:absolute}.main-chart.dark.jsx-1e66802252a5dd49 .title.jsx-1e66802252a5dd49{color:#fff}.main-chart.dark.jsx-1e66802252a5dd49 .t1{color:#fff}.main-chart.dark.jsx-1e66802252a5dd49 .t1:before{background:#545454}.title.orders.jsx-1e66802252a5dd49{position:absolute;display:flex;justify-content:center;align-items:center;gap:10px}.title.orders.jsx-1e66802252a5dd49 button.jsx-1e66802252a5dd49{text-decoration:underline;display:flex;gap:3px;justify-content:center;align-items:center}.title.orders.jsx-1e66802252a5dd49 .title{margin:4px 5px}.title.orders.jsx-1e66802252a5dd49 .title .t1{font-size:20px}.title.orders.jsx-1e66802252a5dd49 .title .t1:before{bottom:2px;height:5px}.list.jsx-1e66802252a5dd49{flex:.22;display:flex;flex-direction:column;margin:-10px;margin-left:30px;margin-right:-30px}.list.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49{color:#fff;font-weight:bold;border-radius:5px;
1display:flex;flex-direction:column;padding:10px 15px;flex:1;text-align:left;margin:5px 0;cursor:pointer;background:#f0f0f020;border-left:4px solid#ffffff50;background:linear-gradient(90deg,#f0f0f020,transparent);transition:.3s ease}.list.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49{color:#000;border-left:4px solid#ccc;background:linear-gradient(90deg,#f0f0f0,transparent)}.list.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49:hover{border-left:4px solid#ffd21e}.list.jsx-1e66802252a5dd49>div.active.jsx-1e66802252a5dd49{border-left:4px solid#000}.dark.jsx-1e66802252a5dd49 .list.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49{color:#fff;border-left:4px solid#ffffff50;background:linear-gradient(90deg,#f0f0f020,transparent)}.dark.jsx-1e66802252a5dd49 .list.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49:hover{border-left:4px solid#fff}.dark.jsx-1e66802252a5dd49 .list.jsx-1e66802252a5dd49>div.active.jsx-1e66802252a5dd49{border-left:4px solid#ffd21e}.list.jsx-1e66802252a5dd49 .name.jsx-1e66802252a5dd49{opacity:.5}.list.jsx-1e66802252a5dd49 .value.jsx-1e66802252a5dd49{margin-top:5px;font-size:25px}.list.jsx-1e66802252a5dd49 .detail.jsx-1e66802252a5dd49{opacity:.9;text-align:right;font-size:13px}.list.jsx-1e66802252a5dd49 .detail.jsx-1e66802252a5dd49 .bt.jsx-1e66802252a5dd49{text-align:right;padding-top:5px;font-size:13px}.list.jsx-1e66802252a5dd49 .detail.jsx-1e66802252a5dd49 .bt.jsx-1e66802252a5dd49{opacity:.9}.list.jsx-1e66802252a5dd49 .detail.jsx-1e66802252a5dd49 .bt.jsx-1e66802252a5dd49:hover{opacity:1}.list.jsx-1e66802252a5dd49 .details.jsx-1e66802252a5dd49{display:none}.list.jsx-1e66802252a5dd49 .visible.jsx-1e66802252a5dd49 i:before{transition:.3s ease}.list.jsx-1e66802252a5dd49 .visible.jsx-1e66802252a5dd49 i:before{transform:rotate(180deg)}.list.jsx-1e66802252a5dd49 .visible.jsx-1e66802252a5dd49 .details.jsx-1e66802252a5dd49{border-top:1px solid#ffffff20;display:block;font-weight:500;padding-top:4px;margin-top:4px}.list.jsx-1e66802252a5dd49 .visible.jsx-1e66802252a5dd49 .details.jsx-1e66802252a5dd49>div.jsx-1e66802252a5dd49{padding:1px 0}.list.jsx-1e66802252a5dd49 .visible.jsx-1e66802252a5dd49 .details.jsx-1e66802252a5dd49 span.jsx-1e66802252a5dd49{opacity:1;font-weight:600}div.jsx-1e66802252a5dd49 .select_project{text-align:left;display:flex;align-items:center;text-overflow:ellipsis}div.jsx-1e66802252a5dd49 .select_project span{text-overflow:ellipsis;overflow:hidden;padding-right:15px}div.jsx-1e66802252a5dd49 .select_project img{width:20px;height:20px;margin-right:10px;border-radius:3px}div.jsx-1e66802252a5dd49 .select_project i{font-size:16px;margin-right:10px}.number.jsx-1e66802252a5dd49{color:#fff;text-align:left;position:relative;background:#fff;background:linear-gradient(#343434,#000);box-shadow:rgb(94 93 93/57%)1px 0px 20px;margin:10px;padding:15px 25px;border-radius:10px}.number.primary.jsx-1e66802252a5dd49{color:#000;background:linear-gradient(#ffd21e,#fc0);box-shadow:rgb(255 208 20/37%)0px 10px 20px}.number.jsx-1e66802252a5dd49 .label.jsx-1e66802252a5dd49{color:#ffffff90;text-transform:uppercase;font-size:13px;font-weight:bold;margin-bottom:5px}.number.jsx-1e66802252a5dd49 .label.jsx-1e66802252a5dd49 i{margin-left:5px}.number.primary.jsx-1e66802252a5dd49 .label.jsx-1e66802252a5dd49{color:#00000090}.number.jsx-1e66802252a5dd49 .value.jsx-1e66802252a5dd49{font-size:30px;font-weight:bold}.tabs.jsx-1e66802252a5dd49{font-weight:bold;color:#ffffff70;list-style:none;position:absolute;margin-top:5px}.tabs.jsx-1e66802252a5dd49 a.jsx-1e66802252a5dd49{color:#fff;padding:0px 0px}.tabs.jsx-1e66802252a5dd49 a.active.jsx-1e66802252a5dd49{border-bottom:3px solid#ffd21e}.tabs.jsx-1e66802252a5dd49 li.jsx-1e66802252a5dd49{display:inline-block}.top.jsx-1e66802252a5dd49{padding:20px}div.country.jsx-1e66802252a5dd49{display:flex}div.country.jsx-1e66802252a5dd49 img{border-radius:3px;width:20px!important;margin-right:7px}img.country.jsx-1e66802252a5dd49{border-radius:3px;width:20px!important}'})]}):(0,t.jsx)(g.default,{type:"page_not_found"})};_.propTypes={projects:j().array},_.getInitialProps=(0,v.ru)(async e=>{let{store:a,query:s,auth:t}=e,d=await a.user.fetchMyProjects({user_id:s.u||"",project_id:s.p||"",sort:"project"});return{projects:d.error?[]:d,auth:t}});let N=(0,n.PA)(_)},70202:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=(0,s(47824).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},85915:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=(0,s(47824).A)("chevron-first",[["path",{d:"m17 18-6-6 6-6",key:"1yerx2"}],["path",{d:"M7 6v12",key:"1p53r6"}]])},86495:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=(0,s(47824).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},92476:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/dashboard",function(){return s(14004)}])}},e=>{e.O(0,[5484,636,6593,8792],()=>e(e.s=92476)),_N_E=e.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.