PageSourceSearch

https://www.nosho.app/_next/static/chunks/pages/reports-da43bd2e451e1b56.js

js nosho.app collected 2026-10-04 23:12:21 UTC 49,051 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2766,4769],{21447:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>G});var t=n(37876),i=n(20502),o=n(15630),s=n(83455),r=n(16832),a=n(82001),x=n.n(a),d=n(18847),c=n.n(d),p=n(14232);let h=c()(()=>Promise.all([n.e(7144),n.e(1756)]).then(n.bind(n,69375)),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),g=e=>(null==e?void 0:e.length)<=8?x()(e,"MM-YYYY",!0).valueOf():x()(e,"DD-MM-YYYY",!0).valueOf(),u=e=>{let{graphData:l}=e,{isScreenAtLeast1200px:n,isScreenAtLeast1440px:i}=(0,o.yL)(),a=(0,s.A)(e=>e.breakpoints.up("md")),d=(0,p.useMemo)(()=>((null==l?void 0:l.date)||[]).map((e,l)=>{let n=g(e);return n?{ts:n,index:l,raw:e}:null}).filter(Boolean),[null==l?void 0:l.date]),c=(0,p.useMemo)(()=>new Map(d.map(e=>[e.ts,e.raw])),[d]),u=(0,p.useMemo)(()=>d.map(e=>e.ts).sort((e,l)=>e-l),[d]),f=u[0],m=u[u.length-1],v=(0,p.useCallback)(e=>d.map(l=>{let{ts:n,index:t}=l,i=null==e?void 0:e[t];return Number.isFinite(i)?{x:n,y:i}:null}).filter(Boolean),[d]),j=(0,p.useMemo)(()=>[{name:"Deposits secured",data:v((null==l?void 0:l.deposit_count)||[])},{name:"Slots filled",data:v((null==l?void 0:l.total_booking)||[])},{name:"Clients waiting",data:v((null==l?void 0:l.waitlist)||[])}],[v,l]),C=(0,p.useMemo)(()=>{let e=[...(null==l?void 0:l.deposit_count)||[],...(null==l?void 0:l.total_booking)||[],...(null==l?void 0:l.waitlist)||[]];return e.length?Math.max(...e):0},[l]),w=(0,p.useMemo)(()=>({chart:{type:"area",zoom:{enabled:!1},toolbar:{show:!1},height:i?300:n?340:440},colors:["#00F6C4","#F600DD","#19EDFB"],stroke:{curve:"straight",width:3.1},dataLabels:{enabled:!1},xaxis:{min:f,max:m,labels:{show:!0,rotate:0,style:{fontSize:a?"16px":"13px",fontWeight:"500",colors:"#9C9C9C",fontFamily:'Plus Jakarta Sans", sans-serif'},formatter:e=>{let l=1>Math.abs(e-f),n=1>Math.abs(e-m);return l||n?x()(e).format("MMM D, YY"):""}},tooltip:!1},yaxis:{min:0,max:C,labels:{style:{fontSize:a?"18px":"13px",fontWeight:"500",colors:"#9C9C9C",fontFamily:'Plus Jakarta Sans", sans-serif'},formatter:e=>0===e||e===C?e:""}},legend:{show:!1},tooltip:{enabled:!0,shared:!0,followCursor:!0,intersect:!1,custom:function(e){let{series:l,dataPointIndex:n,w:t}=e,i=t.globals.seriesX[0][n],o=x()(i).format("DD-MM-YY"),s=l[0][n],r=l[1][n],a=l[2][n];return'\n         <div style="      \n              font-family: var(--font-jakarta), \'Plus Jakarta Sans\', sans-serif;\n              font-size: 13px;\n              line-height: 1.2;\n              height:fit-content !important;\n              width:200px !important;\n              display: flex; \n              flex-direction: column; \n              gap:21px;\n              position: relative;\n            ">\n              <div style="\n              border-bottom: 1px solid #373737;\n               color: #BDBDBD !important; \n               padding-bottom: 10px; \n               padding-left:5px;\n               padding-right:10px;\n               font-weight: 500; \n               font-size:14px;">\n                '.concat(o,'\n              </div>\n              <div style="\n        display: flex; \n        flex-direction: column; \n        gap: 24px;   /* space between rows */\n      ">\n        \n        <div style="display: flex; justify-content: space-between; align-items: center;">\n          <div style="font-size: 14px; font-weight: 500;  color: #FFFFFF;">Deposits secured</div>\n          <div style="font-size: 14px; font-weight: 700; color:#00F6C4;">').concat(s,'</div>\n        </div>\n      \n        <div style="display: flex; justify-content: space-between; align-items: center;">\n           <div style="font-size: 14px; font-weight: 500;  color: #FFFFFF;">Slots filled</div>\n          <div style="font-size: 14px;font-weight: 700; color:#F600DD;">').concat(r,'</div>\n        </div>\n      \n        <div style="display: flex; justify-content: space-between; align-items: center;">\n           <div style="font-size: 14px; font-weight: 500;  color: #FFFFFF;">Clients waiting</div>\n          <div style="font-size: 14px;font-weight: 700; color: #19EDFB;">').concat(a,"</div>\n        </div>\n      </div>\n      ")},x:{show:!1}},grid:{borderColor:"#373737",yaxis:{lines:{show:!0}}}}),[n,i,f,m,C,c]);return(0,t.jsx)(r.A,{sx:{width:"100%"},children:(0,t.jsx)(h,{options:w,series:j,type:"area",height:i?500:n?340:350})})};var f=n(38516),m=n(37281),v=n(78205),j=n(52766),C=n(71751);let w=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M4.625 1.23535V2.25098H8.28125V1.23535C8.28125 0.905273 8.53516 0.625977 8.89062 0.625977C9.2207 0.625977 9.5 0.905273 9.5 1.23535V2.25098H10.5156C11.4043 2.25098 12.1406 2.9873 12.1406 3.87598V4.28223V5.50098V12.001C12.1406 12.915 11.4043 13.626 10.5156 13.626H2.39062C1.47656 13.626 0.765625 12.915 0.76
15625 12.001V5.50098V4.28223V3.87598C0.765625 2.9873 1.47656 2.25098 2.39062 2.25098H3.40625V1.23535C3.40625 0.905273 3.66016 0.625977 4.01562 0.625977C4.3457 0.625977 4.625 0.905273 4.625 1.23535ZM1.98438 5.50098V6.92285H4.01562V5.50098H1.98438ZM1.98438 8.1416V9.7666H4.01562V8.1416H1.98438ZM5.23438 8.1416V9.7666H7.67188V8.1416H5.23438ZM8.89062 8.1416V9.7666H10.9219V8.1416H8.89062ZM10.9219 6.92285V5.50098H8.89062V6.92285H10.9219ZM10.9219 10.9854H8.89062V12.4072H10.5156C10.7188 12.4072 10.9219 12.2295 10.9219 12.001V10.9854ZM7.67188 10.9854H5.23438V12.4072H7.67188V10.9854ZM4.01562 10.9854H1.98438V12.001C1.98438 12.2295 2.16211 12.4072 2.39062 12.4072H4.01562V10.9854ZM7.67188 6.92285V5.50098H5.23438V6.92285H7.67188Z",fill:o})})},A=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 17 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M14.168 2.00684L13.584 1.42285C13.3301 1.19434 13.3301 0.813477 13.584 0.584961C13.8125 0.331055 14.1934 0.331055 14.4219 0.584961L16.0469 2.20996C16.1738 2.31152 16.2246 2.46387 16.2246 2.6416C16.2246 2.79395 16.1738 2.94629 16.0469 3.07324L14.4219 4.69824C14.1934 4.92676 13.8125 4.92676 13.584 4.69824C13.3301 4.44434 13.3301 4.06348 13.584 3.83496L14.168 3.25098H12.5176L4.0625 3.22559V3.63184C4.0625 4.5459 3.32617 5.25684 2.4375 5.25684H2.03125V7.64355L1.26953 8.37988L0.8125 8.8623V3.63184C0.8125 2.74316 1.52344 2.00684 2.4375 2.00684H9.72461H9.75H14.168ZM14.2188 8.50684V6.14551L14.9551 5.40918L15.4375 4.92676V10.1318C15.4375 11.0459 14.7012 11.7568 13.8125 11.7568H3.70703H2.05664L2.64062 12.3408C2.89453 12.5947 2.89453 12.9756 2.64062 13.2041C2.41211 13.458 2.03125 13.458 1.80273 13.2041L0.177734 11.5791C0.0507812 11.4775 0 11.3252 0 11.1475C0 10.9951 0.0507812 10.8428 0.177734 10.7158L1.80273 9.09082C2.03125 8.8623 2.41211 8.8623 2.64062 9.09082C2.89453 9.34473 2.89453 9.72559 2.64062 9.9541L2.05664 10.5381H6.5H12.1875V10.1318C12.1875 9.24316 12.8984 8.50684 13.8125 8.50684H14.2188ZM8.125 4.44434C8.98828 4.44434 9.77539 4.92676 10.2324 5.66309C10.6641 6.4248 10.6641 7.36426 10.2324 8.10059C9.77539 8.8623 8.98828 9.31934 8.125 9.31934C7.23633 9.31934 6.44922 8.8623 5.99219 8.10059C5.56055 7.36426 5.56055 6.4248 5.99219 5.66309C6.44922 4.92676 7.23633 4.44434 8.125 4.44434Z",fill:o})})},y=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 16 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M13.7656 2.12256H2.39062C2.16211 2.12256 1.98438 2.32568 1.98438 2.52881V3.34131H14.1719V2.52881C14.1719 2.32568 13.9688 2.12256 13.7656 2.12256ZM14.1719 5.77881H1.98438V10.6538C1.98438 10.8823 2.16211 11.0601 2.39062 11.0601H13.7656C13.9688 11.0601 14.1719 10.8823 14.1719 10.6538V5.77881ZM2.39062 0.903809H13.7656C14.6543 0.903809 15.3906 1.64014 15.3906 2.52881V10.6538C15.3906 11.5679 14.6543 12.2788 13.7656 12.2788H2.39062C1.47656 12.2788 0.765625 11.5679 0.765625 10.6538V2.52881C0.765625 1.64014 1.47656 0.903809 2.39062 0.903809ZM3.8125 8.62256H5.03125C5.36133 8.62256 5.64062 8.90186 5.64062 9.23193C5.64062 9.5874 5.36133 9.84131 5.03125 9.84131H3.8125C3.45703 9.84131 3.20312 9.5874 3.20312 9.23193C3.20312 8.90186 3.45703 8.62256 3.8125 8.62256ZM7.0625 8.62256H9.90625C10.2363 8.62256 10.5156 8.90186 10.5156 9.23193C10.5156 9.5874 10.2363 9.84131 9.90625 9.84131H7.0625C6.70703 9.84131 6.45312 9.5874 6.45312 9.23193C6.45312 8.90186 6.70703 8.62256 7.0625 8.62256Z",fill:o})})};var b=n(49371);let _=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.07812 1.65723C6.40234 1.65723 5.05664 2.41895 4.01562 3.38379C3.02539 4.29785 2.36523 5.36426 2.00977 6.12598C2.36523 6.8877 3.02539 7.97949 4.01562 8.89355C5.05664 9.8584 6.40234 10.5947 8.07812 10.5947C9.72852 10.5947 11.0742 9.8584 12.1152 8.89355C13.1055 7.97949 13.791 6.8877 14.1211 6.12598C13.791 5.36426 13.1055 4.29785 12.1406 3.38379C11.0742 2.41895 9.72852 1.65723 8.07812 1.65723ZM3.17773 2.49512C4.37109 1.37793 6.02148 0.438477 8.07812 0.438477C10.1094 0.438477 11.7598 1.37793 12.9531 2.49512C14.1465 3.6123 14.9336 4.90723 15.3145 5.82129C15.3906 6.02441 15.3906 6.25293 15.3145 6.45605C14.9336 7.34473 14.1465 8.66504 12.9531 9.78223C11.7598 10.8994 10.1094 
111.8135 8.07812 11.8135C6.02148 11.8135 4.37109 10.8994 3.17773 9.78223C1.98438 8.66504 1.19727 7.34473 0.816406 6.45605C0.740234 6.25293 0.740234 6.02441 0.816406 5.82129C1.19727 4.90723 1.98438 3.58691 3.17773 2.49512ZM8.07812 8.15723C9.19531 8.15723 10.1094 7.26855 10.1094 6.12598C10.1094 5.00879 9.19531 4.09473 8.07812 4.09473C8.05273 4.09473 8.02734 4.09473 8.02734 4.09473C8.05273 4.24707 8.07812 4.37402 8.07812 4.50098C8.07812 5.41504 7.3418 6.12598 6.45312 6.12598C6.30078 6.12598 6.17383 6.12598 6.04688 6.0752C6.04688 6.10059 6.04688 6.12598 6.04688 6.12598C6.04688 7.26855 6.93555 8.15723 8.07812 8.15723ZM8.07812 2.87598C9.2207 2.87598 10.2871 3.51074 10.8711 4.50098C11.4551 5.5166 11.4551 6.76074 10.8711 7.75098C10.2871 8.7666 9.2207 9.37598 8.07812 9.37598C6.91016 9.37598 5.84375 8.7666 5.25977 7.75098C4.67578 6.76074 4.67578 5.5166 5.25977 4.50098C5.84375 3.51074 6.91016 2.87598 8.07812 2.87598Z",fill:o})})},D=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M7.71875 4.13184C7.71875 3.4209 7.3125 2.76074 6.70312 2.37988C6.06836 2.02441 5.28125 2.02441 4.67188 2.37988C4.03711 2.76074 3.65625 3.4209 3.65625 4.13184C3.65625 4.86816 4.03711 5.52832 4.67188 5.90918C5.28125 6.26465 6.06836 6.26465 6.70312 5.90918C7.3125 5.52832 7.71875 4.86816 7.71875 4.13184ZM2.4375 4.13184C2.4375 2.98926 3.04688 1.92285 4.0625 1.33887C5.05273 0.754883 6.29688 0.754883 7.3125 1.33887C8.30273 1.92285 8.9375 2.98926 8.9375 4.13184C8.9375 5.2998 8.30273 6.36621 7.3125 6.9502C6.29688 7.53418 5.05273 7.53418 4.0625 6.9502C3.04688 6.36621 2.4375 5.2998 2.4375 4.13184ZM1.24414 12.6631H10.1055C9.87695 11.0635 8.50586 9.81934 6.83008 9.81934H4.51953C2.84375 9.81934 1.47266 11.0635 1.24414 12.6631ZM0 13.1455C0 10.6318 2.00586 8.60059 4.51953 8.60059H6.83008C9.34375 8.60059 11.375 10.6318 11.375 13.1455C11.375 13.5518 11.0195 13.8818 10.6133 13.8818H0.736328C0.330078 13.8818 0 13.5518 0 13.1455Z",fill:o})})},z=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 17 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1.21875 2.22168V6.69043C1.21875 7.0459 1.47266 7.2998 1.82812 7.2998H3.04688C3.37695 7.2998 3.65625 7.5791 3.65625 7.90918V8.41699L5.12891 7.40137C5.23047 7.35059 5.35742 7.2998 5.48438 7.2998H8.73438C9.06445 7.2998 9.34375 7.0459 9.34375 6.69043V2.22168C9.34375 1.8916 9.06445 1.6123 8.73438 1.6123H1.82812C1.47266 1.6123 1.21875 1.8916 1.21875 2.22168ZM1.82812 0.393555H8.73438C9.72461 0.393555 10.5625 1.23145 10.5625 2.22168V6.69043C10.5625 7.70605 9.72461 8.51855 8.73438 8.51855H5.66211L3.37695 10.042C3.19922 10.1689 2.94531 10.1943 2.74219 10.0928C2.53906 9.96582 2.4375 9.7627 2.4375 9.53418V8.51855H1.82812C0.8125 8.51855 0 7.70605 0 6.69043V2.22168C0 1.23145 0.8125 0.393555 1.82812 0.393555ZM6.5 9.94043V9.33105H7.71875V9.94043C7.71875 10.2959 7.97266 10.5498 8.32812 10.5498H10.7656C10.8672 10.5498 10.9941 10.6006 11.0957 10.6514L12.5938 11.667V11.1592C12.5938 10.8291 12.8477 10.5498 13.2031 10.5498H14.4219C14.752 10.5498 15.0312 10.2959 15.0312 9.94043V5.47168C15.0312 5.1416 14.752 4.8623 14.4219 4.8623H11.375V3.64355H14.4219C15.4121 3.64355 16.25 4.48145 16.25 5.47168V9.94043C16.25 10.9561 15.4121 11.7686 14.4219 11.7686H13.8125V12.7842C13.8125 13.0127 13.6855 13.2158 13.4824 13.3428C13.2793 13.4443 13.0508 13.4189 12.8477 13.292L10.5625 11.7686H8.32812C7.3125 11.7686 6.5 10.9561 6.5 9.94043Z",fill:o})})},S=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6.6875 0.137695C7.11914 0.137695 7.5 0.518555 7.5 0.950195V1.45801C9.35352 1.81348 10.75 3.46387 10.75 5.41895V6.0791C10.75 7.22168 11.1309 8.33887 11.8418 9.25293L12.2227 9.70996C12.375 9.91309 12.4004 10.167 12.2988 10.3701C12.1973 10.5732 11.9941 10.7002 11.7656 10.7002H1.60938C1.35547 10.7002 1.15234 10.5732 1.05078 10.3701C0.949219 10.167 0.974609 9.91309 1.12695 9.70996L1.50781 9.25293C2.21875 8.33887 2.625 7.22168 2.625 6.0791V5.41895C2.625 3.46387 4.02148 1.81348 5.875 1.45801V0.950195C5.875 0.518555 6.23047 0.137695 6.6875 0.137695ZM6.6875 2.5752C5.11328 2.5752 3.84375 3.87012 3.84375 5.41895V6.0791C3.84375 7.29785 3.48828 8.46582 2.82812 9.48145H10.5215C9.86133 8.46582 9.53125 7.29785 9.53125 6.0791V5.41895C9.53125 3.87012 8.23633 2.5752 6.6875 2.5752ZM8.3125 11.5127C8.3125 11.9443 8.13477 12.376 7.83008 12.6807C7.52539 12.9854 7.11914 13.1377 6.6875 13.1377C6.25586 13.1377 5.82422 12.9854 5.51953 12.6807C5.21484 12.376 5.0625 11.9443 5.0625 11.5127H6.6875H8.3125Z",fill:o})})};var W=n(60964),H=n(61428),F=n(27481),k=n(86378),E=n(26678),M=n(89099),B=n(25121),V=n(31777);let R={src:"/_next/static/media/analyticsCalendar.fb88e281.svg",height:17,width:14,blurWidth:0,blurHeight:0},I={src:"/_next/static/media/analyticsEye.9fd86bee.svg",height:15,width:19,blurWidth:0,blurHeight:0},Z={src:"/_next/static/media/analyticsMsg.b0b4ff6c.svg",height:17,width:20,blurWidth:0,blurHeight:0},L={src:"/_next/static/media/analyticsNotification.9567b46e.svg",height:17,width:16,blurWidth:0,blurHeight:0},N={src:"/_next/static/media/analyticsRate.1d844895.svg",height:17,width:20,blurWidth:0,blurHeight:0},P={src:"/_next/static/media/analyticsUser.35d3c397.svg",height:17,width:14,blurWidth:0,blurHeight:0},Y={src:"/_next/static/media/deposit.755bdbba.svg",height:15,width:18,blurWidth:0,blurHeight:0},O={src:"/_next/static/media/revenue.0d3c9750.svg",height:15,width:20,blurWidth:0,blurHeight:0},T=c()(()=>Promise.all([n.e(4173),n.e(521),n.e(9524),n.e(9821)]).then(n.bind(n,79524)),{loadableGenerated:{webpack:()=>[79524]},ssr:!1}),G=()=>{var e,l,n,a,d,c,h,g,G,U,J,X,q,K,Q,$,ee,el,en,et,ei,eo,es,er,ea,ex,ed,ec,ep,eh,eg,eu,ef,em,ev,ej,eC,ew,eA,ey,eb,e_,eD,ez,eS,eW,eH,eF,ek,eE,eM,eB,eV,eR,eI,eZ,eL,eN,eP,eY,eO,eT,eG,eU,eJ,eX,eq,eK,eQ,e$,e0,e1,e2,e5,e8,e6,e3,e4,e7,e9,le,ll,ln,lt,li,lo,ls,lr,la,lx,ld,lc,lp,lh,lg,lu,lf,lm,lv,lj,lC,lw,lA,ly,lb,l_,lD,lz,lS,lW,lH,lF,lk;let lE=(0,M.useRouter)(),lM=(0,W.A)(),lB=(0,V.wA)(),lV=(0,s.A)(e=>e.breakpoints.up("md")),[lR,lI]=(0,p.useState)(!1),[lZ,lL]=(0,p.useState)(!0),{isPremiumUser:lN}=(0,V.d4)(e=>e.account),{analyticsReport:lP,isAnalyticsReport:lY}=(0,V.d4)(e=>
1e.analytics),[lO,lT]=(0,p.useState)(null),{openPlans:lG}=(0,V.d4)(e=>null==e?void 0:e.miscellaneous),{timezoneDetails:lU,accountDetail:lJ}=(0,V.d4)(e=>null==e?void 0:e.account),[lX,lq]=(0,p.useState)(!1),lK=async()=>{var e;await (0,o.mc)("".concat(window.location.origin,"/").concat(null==lJ?void 0:lJ.user_name),null==lJ||null==(e=lJ.company_details)?void 0:e.company_name)||lq(!0)},[lQ,l$]=(0,p.useState)([{startDate:null==(a=x()())||null==(n=a.tz(null==lU?void 0:lU.timezone))||null==(l=n.subtract(1,"month"))||null==(e=l.startOf("day"))?void 0:e.toDate(),endDate:null==(h=x()())||null==(c=h.tz(null==lU?void 0:lU.timezone))||null==(d=c.endOf("day"))?void 0:d.toDate(),key:"selection"}]),l0=(e,l)=>{lB((0,j.A)({start_date:e,end_date:l}))};(0,p.useEffect)(()=>{var e,l,n,t,i,o,s,r;if(lU&&lZ&&(null==lJ||null==(e=lJ.preferences)?void 0:e.date_format)&&(null==lQ?void 0:lQ.length)>0){let e=null==(t=x()())||null==(n=t.tz(null==lU?void 0:lU.timezone))||null==(l=n.subtract(1,"month"))?void 0:l.startOf("day"),a=null==(o=x()())||null==(i=o.tz(null==lU?void 0:lU.timezone))?void 0:i.endOf("day");l$([{startDate:null==e?void 0:e.toDate(),endDate:null==a?void 0:a.toDate(),key:"selection"}]),l0(null==e||null==(s=e.utc())?void 0:s.valueOf(),null==a||null==(r=a.utc())?void 0:r.valueOf()),lL(!1)}},[null==lU?void 0:lU.timezone,null==lJ||null==(g=lJ.preferences)?void 0:g.date_format]),(0,p.useEffect)(()=>{let e=()=>{lT(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let l1=()=>null==lU?void 0:lU.symbol,l2=()=>{var e;return(0,t.jsx)(r.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.6px",borderRadius:"16px",background:"linear-gradient(89.96deg, #F600DD -2.95%, #19EDFB 35.4%, #00F6C4 101.49%)",width:"100%",marginTop:"24px"},children:(0,t.jsxs)(r.A,{sx:{background:"radial-gradient(68.58% 218.85% at 50% 227.87%, rgba(13, 83, 75, 0.9) 0%, rgb(0 0 0 / 90%) 84.13%)",display:"flex",flexDirection:lV?"row":"column",backdropFilter:"blur(4px)",justifyContent:"space-between",alignItems:lV?"center":"",gap:"16px",width:"100%",borderRadius:"16px",padding:"16px"},children:[(0,t.jsxs)(r.A,{sx:{gap:"8px",display:"flex",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"18px",fontWeight:"700"},children:"⚡ Fill last minute slots faster"}),(0,t.jsx)(H.A,{sx:{fontSize:"13px",color:lM.palette.grey[200]},children:"The bigger your waitlist, the more clients we can notify when you add availability."})]}),(0,t.jsx)(F.A,{disabled:(null==lJ||null==(e=lJ.user_name)?void 0:e.length)==0,onClick:lK,variant:"contained",sx:{width:"fit-content",height:"44px",borderRadius:"16px",color:"#000000",fontSize:"13px",fontWeight:"700",textTransform:"none",background:"linear-gradient(102.27deg, #00F6C4 -5.91%, #19EDFB 61.11%)","&.Mui-disabled":{background:lM.palette.grey[300],color:lM.palette.grey[600]}},children:"Share your profile"})]})})};return(0,t.jsxs)(t.Fragment,{children:[lV?(0,t.jsxs)(r.A,{className:"analyticsPageScroll",sx:{height:"calc(100vh - 128px) !important",overflow:"auto",overflowY:"auto",scrollbarWidth:"none",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},children:[(0,t.jsx)(r.A,{className:"analyticsPageScroll",sx:{display:"flex",flexDirection:"column",gap:"24px",padding:"32px 42px"},children:(0,t.jsxs)(r.A,{className:"analyticsPageScroll",sx:{display:"flex",width:"100%",borderRadius:"24px",boxShadow:"0px 4px 30px 0px #00000066",padding:"42px 24px 24px 24px",backgroundColor:"#1D1D1D",border:"1px solid #373737",flexDirection:"column"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",width:"100%",marginBottom:"24px",gap:"16px"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"32px",fontWeight:"bold",lineHeight:"100%"},children:"Performance"}),(0,t.jsx)(H.A,{sx:{fontSize:"13px",color:lM.palette.grey[300],fontWeight:"500",borderBottom:"1px solid #373737",paddingBottom:"21px",marginBottom:"8px"},children:"How your availability is performing."}),(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:"24px"},children:[(0,t.jsx)(T,{MobileDate:lQ,setMobileDate:l$,type:o.Rc.isAnalytics,filters:!1,isDisabled:!1}),(0,t.jsxs)(H.A,{sx:{fontSize:"16px",fontWeight:"500"},children:["NoSho filled ",(0,t.jsx)("strong",{style:{fontWeight:"700"},children:"".concat(null==lP||null==(G=lP.total_bookings)?void 0:G.count," ").concat((null==lP||null==(U=lP.total_bookings)?void 0:U.count)>2?"slots":"slot")})," that would have gone unbooked."]})]})]}),(0,t.jsxs)(r.A,{sx:{backgroundColor:"#111111",padding:"16px",borderRadius:"16px",border:"1px solid #373737",marginBottom:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"16px",width:"100%",marginBottom:"16
1px"},children:[(0,t.jsxs)(r.A,{sx:{width:"25%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",marginBottom:"24px",flexDirection:"column"},children:[(0,t.jsx)(i.A,{src:O,alt:"RevenueImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Revenue recovered"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",width:"100%",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):"".concat(l1()).concat(null==lP||null==(J=lP.estimated_revenue)?void 0:J.count)}),lY?null:(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(X=lP.estimated_revenue)?void 0:X.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(q=lP.estimated_revenue)?void 0:q.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"700",color:(null==lP||null==(K=lP.estimated_revenue)?void 0:K.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(Q=lP.estimated_revenue)?void 0:Q.percentage_change)<=0?"":"+").concat(null==lP||null==($=lP.estimated_revenue)?void 0:$.percentage_change,"%")})]}):null]}),(null==lP||null==(ee=lP.estimated_revenue)?void 0:ee.platform_fees)&&(null==lP||null==(el=lP.estimated_revenue)?void 0:el.platform_fees)>0?(0,t.jsxs)(H.A,{sx:{fontSize:"14px",color:lM.palette.grey[300]},children:["Platform fee: ",l1(),null==lP||null==(en=lP.estimated_revenue)?void 0:en.platform_fees]}):null]})]}),(0,t.jsxs)(r.A,{sx:{width:"25%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",marginBottom:"24px",flexDirection:"column"},children:[(0,t.jsx)(i.A,{src:Y,alt:"DepositImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Deposits secured"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",width:"100%",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):null==lP||null==(et=lP.deposits)?void 0:et.count}),lY?null:(0,t.jsx)(t.Fragment,{children:(null==lP||null==(ei=lP.deposits)?void 0:ei.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(eo=lP.deposits)?void 0:eo.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"700",color:(null==lP||null==(es=lP.deposits)?void 0:es.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(er=lP.deposits)?void 0:er.percentage_change)<=0?"":"+").concat(null==lP||null==(ea=lP.deposits)?void 0:ea.percentage_change,"%")})]}):null})]})]}),(0,t.jsxs)(r.A,{sx:{width:"25%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",marginBottom:"24px",flexDirection:"column"},children:[(0,t.jsx)(i.A,{src:R,alt:"AnalyticsBookingImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Slots filled"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",width:"100%",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):null==lP||null==(ex=lP.total_bookings)?void 0:ex.count}),lY?null:(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(ed=lP.total_bookings)?void 0:ed.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(ec=lP.total_bookings)?void 0:ec.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"700",color:(null==lP||null==(ep=lP.total_bookings)?void 0:ep.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(eh=lP.total_bookings)?void 0:eh.percentage_change)<=0?"":"+").concat(null==lP||null==(eg=lP.total_bookings)?void 0:eg.percentage_change,"%")})]}):null]})]})]}),(0,t.jsxs)(r.A,{sx:{width:"25%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",marginBottom:"24px",flexDirection:"column"},children:[(0,t.jsx)(i.A,{src:L,alt:"AnalyticsNotifyImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Clients waiting"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",width:"100%",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):null==lP||null==(eu=lP.waitlist)?void 0:eu.count}),lY?null:(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(ef=lP.waitlist)?void 0:ef.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(em=lP.waitlist)?void 0:em.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"700",color:(null==lP||null==(ev=lP.waitlist)?void 0:ev.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(ej=lP.waitlist)?void 0:ej.percentage_change)<=0?"":"+").concat(null==lP||null==(eC=lP.waitlist)?void 0:eC.percentage_change,"%")})]}):null]})]})]})]}),(0,t.jsx)(u,{graphData:null==lP?void 0:lP.graph_data})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",flexDirection:"column",justifyContent:"space-between"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px"},children:[(0,t.jsxs)(r.A,{sx:{width:"49%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",alignItems:"center",marginBottom:"24px"},children:[(0,t.jsx)(i.A,{src:P,alt:"AnalyticsUserImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Repeat clients"})]}),(0,t.jsx)(r.A,{sx:{display:"flex",width:"100%"},children:(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}
1):"".concat(null==lP||null==(ew=lP.repeat_clients)?void 0:ew.percentage_change,"%")})})]}),(0,t.jsxs)(r.A,{sx:{width:"49%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",alignItems:"center",marginBottom:"24px"},children:[(0,t.jsx)(i.A,{src:I,alt:"AnalyticsEyeImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Profile views"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):null==lP||null==(eA=lP.profile_views)?void 0:eA.count}),lY?null:(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(ey=lP.profile_views)?void 0:ey.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(eb=lP.profile_views)?void 0:eb.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"400",color:(null==lP||null==(e_=lP.profile_views)?void 0:e_.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(eD=lP.profile_views)?void 0:eD.percentage_change)<=0?"":"+").concat(null==lP||null==(ez=lP.profile_views)?void 0:ez.percentage_change,"%")})]}):null]})]})]})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px"},children:[(0,t.jsxs)(r.A,{sx:{width:"49%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",alignItems:"center",marginBottom:"24px"},children:[(0,t.jsx)(i.A,{src:N,alt:"AnalyticsRateImg"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:"Conversion rate"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",lineHeight:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):"".concat(null==lP||null==(eS=lP.conversion_rate)?void 0:eS.percentage,"%")}),lY?null:(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(eW=lP.conversion_rate)?void 0:eW.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(eH=lP.conversion_rate)?void 0:eH.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"16px",fontWeight:"400",color:(null==lP||null==(eF=lP.conversion_rate)?void 0:eF.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(ek=lP.conversion_rate)?void 0:ek.percentage_change)<=0?"":"+").concat(null==lP||null==(eE=lP.conversion_rate)?void 0:eE.percentage_change,"%")})]}):null]})]})]}),(0,t.jsxs)(r.A,{sx:{width:"49%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"16px",padding:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"8px",alignItems:"center"},children:[(0,t.jsx)(i.A,{src:Z,alt:"AnalyticsMsgImg"}),(0,t.jsxs)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"16px",fontWeight:"500"},children:["Reminders sent ",(0,t.jsx)("span",{children:lN?"(".concat(null==lP||null==(eM=lP.sms)?void 0:eM.total,"/mo)"):""})]})]}),(0,t.jsx)(r.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.6px",borderRadius:"16px",background:lM.palette.customColors.headerBgGradient},onClick:()=>{lE.push("/account"),lB((0,C.Lh)("".concat(o.YD.MESSAGING)))},children:(0,t.jsx)(F.A,{variant:"outlined",sx:{textTransform:"none",borderRadius:"14px",color:lM.palette.primary.main,fontSize:"11px",backgroundColor:"#1D1D1D",border:"none",fontWeight:"700",minWidth:0,padding:"5px 15px"},children:(0,t.jsx)(H.A,{sx:{fontWeight:700,fontSize:"11px",textWrap:"nowrap"},children:"Top-up"})})})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"24px",width:"100%"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",color:(null==lP||null==(eB=lP.sms)?void 0:eB.sent)&&(null==lP||null==(eV=lP.sms)?void 0:eV.sent)===0?lM.palette.grey[300]:lM.palette.common.white,lineHeight:"100%",width:lY?"100%":"auto"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%"}}):null==lP||null==(eR=lP.sms)?void 0:eR.sent}),lY?null:lN?(0,t.jsx)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:(0,t.jsx)(H.A,{sx:{cursor:"pointer",color:(null==lP||null==(eI=lP.sms)?void 0:eI.remaining)<=(null==lP||null==(eZ=lP.sms)?void 0:eZ.alert_limit)&&(null==lP||null==(eL=lP.sms)?void 0:eL.total)>0?"#EE4266":"#00F6C4",fontSize:"18px",fontWeight:"500"},children:(null==lP||null==(eN=lP.sms)?void 0:eN.remaining)<=(null==lP||null==(eP=lP.sms)?void 0:eP.alert_limit)&&(null==lP||null==(eY=lP.sms)?void 0:eY.total)>0?"".concat(null==lP||null==(eO=lP.sms)?void 0:eO.alert_message):"".concat(null==lP||null==(eT=lP.sms)?void 0:eT.remaining," remaining")})}):(0,t.jsx)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:(0,t.jsx)(H.A,{onClick:()=>{lE.push("/account"),lB((0,C.Lh)("".concat(o.YD.SUBSCRIPTION)))},sx:{cursor:"pointer",color:"#00F6C4",fontSize:"18px",fontWeight:"500"},children:"Upgrade to send alerts"})})]})]})]})]}),l2()]})}),(0,t.jsxs)(H.A,{textAlign:"end",sx:{marginBottom:"20px",paddingRight:"40px",fontSize:"11px",width:"100%",color:lM.palette.grey[500]},children:["Powered by ",(0,t.jsx)("span",{style:{fontWeight:"700"}
1,children:"NoSho\xae"})]})]}):(0,t.jsx)(m.A,{children:(0,t.jsx)(r.A,{sx:{display:"flex",flexDirection:"column",gap:"24px"},children:(0,t.jsxs)(r.A,{sx:{display:"flex",width:"100%",boxShadow:"0px 4px 30px 0px #00000066",padding:"24px 16px",backgroundColor:"#1D1D1D",border:"0.91px solid #373737",flexDirection:"column"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",width:"100%",marginBottom:"24px",flexDirection:"column",gap:"8px"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"bold"},children:"Performance"}),(0,t.jsx)(H.A,{sx:{fontSize:"13px",color:lM.palette.grey[300],fontWeight:"500",borderBottom:"1px solid #373737",paddingBottom:"16px",marginBottom:"8px"},children:"How your availability is performing."}),(0,t.jsx)(T,{MobileDate:lQ,setMobileDate:l$,type:o.Rc.isAnalytics,filters:!1,isDisabled:!1}),(0,t.jsxs)(H.A,{sx:{fontSize:"13px",fontWeight:"500",marginTop:"8px"},children:["NoSho filled ",(0,t.jsx)("strong",{style:{fontWeight:"700"},children:"".concat(null==lP||null==(eG=lP.total_bookings)?void 0:eG.count," ").concat((null==lP||null==(eU=lP.total_bookings)?void 0:eU.count)>2?"slots":"slot")})," that would have gone unbooked."]})]}),(0,t.jsxs)(E.A,{container:!0,spacing:"10px",size:{xs:12},sx:{background:"#111111",borderRadius:"16px",padding:"8px",border:"1px solid #373737",marginBottom:"24px"},children:[(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(b.L,{width:17,height:13,color:"#C4C4C4"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Revenue recovered"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):"".concat(l1()).concat(null==lP||null==(eJ=lP.estimated_revenue)?void 0:eJ.count)}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(eX=lP.estimated_revenue)?void 0:eX.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(eq=lP.estimated_revenue)?void 0:eq.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(eK=lP.estimated_revenue)?void 0:eK.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(eQ=lP.estimated_revenue)?void 0:eQ.percentage_change)<0?"":"+").concat(null==lP||null==(e$=lP.estimated_revenue)?void 0:e$.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(y,{width:15,height:13,color:"#00F6C4"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Deposits secured"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"22px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):null==lP||null==(e0=lP.deposits)?void 0:e0.count}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(e1=lP.deposits)?void 0:e1.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(e2=lP.deposits)?void 0:e2.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(e5=lP.deposits)?void 0:e5.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(e8=lP.deposits)?void 0:e8.percentage_change)<0?"":"+").concat(null==lP||null==(e6=lP.deposits)?void 0:e6.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(w,{width:12,height:13,color:"#F600DD"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Slots filled"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):null==lP||null==(e3=lP.total_bookings)?void 0:e3.count}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(e4=lP.total_bookings)?void 0:e4.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(e7=lP.total_bookings)?void 0:e7.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(e9=lP.total_bookings)?void 0:e9.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(le=lP.total_bookings)?void 0:le.percentage_change)<0?"":"+").concat(null==lP||null==(ll=lP.total_bookings)?void 0:ll.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{width:"100%",height:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(S,{width:12,height:13,color:"#19EDFB"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Clients waiting"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):null==lP||null==(ln=lP.waitlist)?void 0:ln.count}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(lt=lP.waitlist)?void 0:lt.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(li=lP.waitlist)?void 0:li.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(lo=lP.waitlist)?void 0:lo.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(ls=lP.waitlist)?void 0:ls.percentage_change)<=0?"":"+").concat(null==lP||null==(lr=lP.waitlist)?void 0:lr.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(u,{graphData:null==lP?void 0:lP.graph_data})]}),(0,t.jsxs)(E.A,{container:!0,spacing:"10px",size:{xs:12},children:[(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{width:"100%",height:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(D,{width:12,height:13,color:"#C4C4C4"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Repeat clients"})]}),(0,t.jsx)(r.A,{sx:{display:"flex",width:"100%"},children:(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",width:"100%"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):"".concat(null==lP||null==(la=lP.repeat_clients)?void 0:la.percentage_change,"%")})})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(_,{width:15,height:13,color:"#C4C4C4"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Profile views"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):null==lP||null==(lx=lP.profile_views)?void 0:lx.count}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(ld=lP.profile_views)?void 0:ld.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(lc=lP.profile_views)?void 0:lc.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(lp=lP.profile_views)?void 0:lp.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(lh=lP.profile_views)?void 0:lh.percentage_change)<0?"":"+").concat(null==lP||null==(lg=lP.profile_views)?void 0:lg.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(A,{width:17,height:13,color:"#C4C4C4"}),(0,t.jsx)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:"Conversion rate"})]}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700"},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):"".concat(null==lP||null==(lu=lP.conversion_rate)?void 0:lu.percentage,"%")}),lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsx)(t.Fragment,{children:(null==lP||null==(lf=lP.conversion_rate)?void 0:lf.percentage_change)!==0?(0,t.jsxs)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:[(null==lP||null==(lm=lP.conversion_rate)?void 0:lm.percentage_change)<0?(0,t.jsx)(B.r8x,{color:"#EE4266",size:12,style:{transform:"rotate(180deg)"}}):(0,t.jsx)(B.r8x,{color:"#00F6C4",size:12}),(0,t.jsx)(H.A,{sx:{marginBottom:"-4px",fontSize:"13px",fontWeight:"700",color:(null==lP||null==(lv=lP.conversion_rate)?void 0:lv.percentage_change)<0?"#EE4266":"#00F6C4"},children:"".concat((null==lP||null==(lj=lP.conversion_rate)?void 0:lj.percentage_change)<=0?"":"+").concat(null==lP||null==(lC=lP.conversion_rate)?void 0:lC.percentage_change,"%")})]}):null})]})]})}),(0,t.jsx)(E.A,{size:{xs:6},children:(0,t.jsxs)(r.A,{sx:{height:"100%",width:"100%",backgroundColor:"#1D1D1D",border:"1px solid #373737",borderRadius:"14.51px",padding:"14.51px 21.77px"},children:[(0,t.jsx)(r.A,{children:(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"7.26px",marginBottom:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(z,{width:17,height:13,color:"#C4C4C4"}),(0,t.jsxs)(H.A,{sx:{color:lM.palette.grey[200],fontSize:"13px",fontWeight:"500"},children:["Messages ",(0,t.jsx)("span",{children:lN?"(".concat(null==lP||null==(lw=lP.sms)?void 0:lw.total,"/mo)"):""})]})]})}),(0,t.jsxs)(r.A,{sx:{display:"flex",gap:"21.77px",flexDirection:"column"},children:[(0,t.jsx)(H.A,{sx:{fontSize:"22px",fontWeight:"700",color:(null==lP||null==(lA=lP.sms)?void 0:lA.sent)&&(null==lP||null==(ly=lP.sms)?void 0:ly.sent)===0?lM.palette.grey[300]:lM.palette.common.white},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px"}}):null==lP||null==(lb=lP.sms)?void 0:lb.sent}),lN?(0,t.jsx)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px",width:"100%"},children:(0,t.jsx)(H.A,{sx:{width:"100%",cursor:"pointer",lineHeight:"110%",color:(null==lP||null==(l_=lP.sms)?void 0:l_.remaining)<=(null==lP||null==(lD=lP.sms)?void 0:lD.alert_limit)&&(null==lP||null==(lz=lP.sms)?void 0:lz.total)>0?"#EE4266":"#00F6C4",fontSize:"13px",fontWeight:700},children:lY?(0,t.jsx)(k.A,{sx:{width:"100%",maxWidth:"200px",transform:"none",height:"22px"}}):(0,t.jsxs)(t.Fragment,{children:[" ",(null==lP||null==(lS=lP.sms)?void 0:lS.remaining)<=(null==lP||null==(lW=lP.sms)?void 0:lW.alert_limit)&&(null==lP||null==(lH=lP.sms)?void 0:lH.total)>0?"".concat(null==lP||null==(lF=lP.sms)?void 0:lF.alert_message):"".concat(null==lP||null==(lk=lP.sms)?void 0:lk.remaining," remaining")]})})}):(0,t.jsx)(r.A,{sx:{display:"flex",alignItems:"end",gap:"5px"},children:(0,t.jsx)(H.A,{onClick:()=>{lE.push("/account"),lB((0,C.Lh)("".concat(o.YD.SUBSCRIPTION)))},sx:{cursor:"pointer",color:"#00F6C4",fontSize:"13px",fontWeight:"500"},children:"Upgrade to send alerts"})}),(0,t.jsx)(r.A,{sx:{width:"100%",display:"flex",justifyContent:"flex-start"},children:(0,t.jsx)(r.A,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"1.6px",borderRadius:"16px",background:lM.palette.customColors.headerBgGradient},children:(0,t.jsx)(F.A,{onClick:()=>{lE.push("/account"),lB((0,C.Lh)("".concat(o.YD.MESSAGING)))},variant:"outlined",sx:{textTransform:"none",borderRadius:"14px",color:lM.palette.primary.main,fontSize:"11px",backgroundColor:"#1D1D1D",border:"none",fontWeight:"700",padding:"5px 15px",width:"100%"},children:(0,t.jsx)(H.A,{sx:{fontWeight:700,fontSize:"13px",textWrap:"nowrap"},children:"Top-up"})})})})]})]})})]}),l2()]})})}),lV&&lR||!lV&&lG&&(0,t.jsx)(f.Ay,{selectedTab:lV?1:2,...lV?{open:lR,handleClose:()=>{lI(!1)}}:{}}),lX?(0,t.jsx)(v.Ay,{open:lX,handleClose:()=>lq(!1)}):null]})}},49371:(e,l,n)=>{"use strict";n.d(l,{L:()=>i});var t=n(37876);let i=e=>{let{size:l=22,width:n=l,height:i=l,color:o="currentColor"}=e;return(0,t.jsx)("svg",{width:n,height:i,viewBox:"0 0 18 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M15.3906 2.12256H4.82812C4.59961 2.12256 4.42188 2.32568 4.42188 2.52881V8.21631C4.42188 8.44482 4.59961 8.62256 4.82812 8.62256H15.3906C15.5938 8.62256 15.7969 8.44482 15.7969 8.21631V2.52881C15.7969 2.32568 15.5938 2.12256 15.3906 2.12256ZM4.82812 0.903809H15.3906C16.2793 0.903809 17.0156 1.64014 17.0156 2.52881V8.21631C17.0156 9.13037 16.2793 9.84131 15.3906 9.84131H4.82812C3.91406 9.84131 3.20312 9.13037 3.20312 8.21631V2.52881C3.20312 1.64014 3.91406 0.903809 4.82812 0.903809ZM12.1406 5.37256C12.1406 6.10889 11.7344 6.76904 11.125 7.1499C10.4902 7.50537 9.70312 7.50537 9.09375 7.1499C8.45898 6.76904 8.07812 6.10889 8.07812 5.37256C8.07812 4.66162 8.45898 4.00146 9.09375 3.62061C9.70312 3.26514 10.4902 3.26514 11.125 3.62061C11.7344 4.00146 12.1406 4.66162 12.1406 5.37256ZM1.98438 3.13818V9.23193C1.98438 10.2476 2.79688 11.0601 3.8125 11.0601H13.9688C14.2988 11.0601 14.5781 11.3394 14.5781 11.6694C14.5781 12.0249 14.2988 12.2788 13.9688 12.2788H3.8125C2.11133 12.2788 0.765625 10.9331 0.765625 9.23193V3.13818C0.765625 2.80811 1.01953 2.52881 1.375 2.52881C1.70508 2.52881 1.98438 2.80811 1.98438 3.13818Z",fill:o})})}},52766:(e,l,n)=>{"use strict";n.d(l,{A:()=>r});var t=n(76707),i=n(99410),o=n(27956),s=n(74330);let r=e=>async l=>{try{l((0,s.Xf)());let r=await (0,o.Jt)(t.M.analyticsReport,e);if((0,i.Y)(r).success){var n;l((0,s.BB)(null==r||null==(n=r.data)?void 0:n.data))}else l((0,s.ll)(r.error))}catch(e){l((0,s.ll)(e.message))}}},91433:(e,l,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reports",function(){return n(21447)}])}},e=>{var l=l=>e(e.s=l);e.O(0,[713,1627,1408,6678,7504,7888,4465,6220,8230,3240,8205,636,6593,8792],()=>l(91433)),_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.