(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7917],{88441:function(t,e,s){"use strict";var r=s(63366),a=s(87462),i=s(67294),o=s(86010),n=s(58510),l=s(70917),c=s(41796),d=s(98216),h=s(2734),x=s(90948),p=s(71657),b=s(28962),m=s(85893);let u=["className","color","value","valueBuffer","variant"],_=t=>t,g,f,y,j,Z,v,k=(0,l.F4)(g||(g=_`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),w=(0,l.F4)(f||(f=_`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),C=(0,l.F4)(y||(y=_`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),useUtilityClasses=t=>{let{classes:e,variant:s,color:r}=t,a={root:["root",`color${(0,d.Z)(r)}`,s],dashed:["dashed",`dashedColor${(0,d.Z)(r)}`],bar1:["bar",`barColor${(0,d.Z)(r)}`,("indeterminate"===s||"query"===s)&&"bar1Indeterminate","determinate"===s&&"bar1Determinate","buffer"===s&&"bar1Buffer"],bar2:["bar","buffer"!==s&&`barColor${(0,d.Z)(r)}`,"buffer"===s&&`color${(0,d.Z)(r)}`,("indeterminate"===s||"query"===s)&&"bar2Indeterminate","buffer"===s&&"bar2Buffer"]};return(0,n.Z)(a,b.E,e)},getColorShade=(t,e)=>"inherit"===e?"currentColor":t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:"light"===t.palette.mode?(0,c.$n)(t.palette[e].main,.62):(0,c._j)(t.palette[e].main,.5),S=(0,x.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:s}=t;return[e.root,e[`color${(0,d.Z)(s.color)}`],e[s.variant]]}})(({ownerState:t,theme:e})=>(0,a.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:getColorShade(e,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})),P=(0,x.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{let{ownerState:s}=t;return[e.dashed,e[`dashedColor${(0,d.Z)(s.color)}`]]}})(({ownerState:t,theme:e})=>{let s=getColorShade(e,t.color);return(0,a.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:`radial-gradient(${s} 0%, ${s} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,l.iv)(j||(j=_`
    animation: ${0} 3s infinite linear;
  `),C)),I=(0,x.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{let{ownerState:s}=t;return[e.bar,e[`barColor${(0,d.Z)(s.color)}`],("indeterminate"===s.variant||"query"===s.variant)&&e.bar1Indeterminate,"determinate"===s.variant&&e.bar1Determinate,"buffer"===s.variant&&e.bar1Buffer]}})(({ownerState:t,theme:e})=>(0,a.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(e.vars||e).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .4s linear"},"buffer"===t.variant&&{zIndex:1,transition:"transform .4s linear"}),({ownerState:t})=>("indeterminate"===t.variant||"query"===t.variant)&&(0,l.iv)(Z||(Z=_`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),k)),z=(0,x.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{let{ownerState:s}=t;return[e.bar,e[`barColor${(0,d.Z)(s.color)}`],("indeterminate"===s.variant||"query"===s.variant)&&e.bar2Indeterminate,"buffer"===s.variant&&e.bar2Buffer]}})(({ownerState:t,theme:e})=>(0,a.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(e.vars||e).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:getColorShade(e,t.color),transition:"transform .4s linear"}),({ownerState:t})=>("indeterminate"===t.variant||"query"===t.variant)&&(0,l.iv)(v||(v=_`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),w)),B=i.forwardRef(function(t,e){let s=(0,p.Z)({props:t,name:"MuiLinearProgress"}),{className:i,color:n="primary",value:l,valueBuffer:c,variant:d="indeterminate"}=s,x=(0,r.Z)(s,u),b=(0,a.Z)({},s,{color:n,variant:d}),g=useUtilityClasses(b),f=(0,h.Z)(),y={},j={bar1:{},bar2:{}};if(("determinate"===d||"buffer"===d)&&void 0!==l){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let t=l-100;"rtl"===f.direction&&(t=-t),j.bar1.transform=`translateX(${t}%)`}if("buffer"===d&&void 0!==c){let t=(c||0)-100;"rtl"===f.direction&&(t=-t),j.bar2.transform=`translateX(${t}%)`}return(0,m.jsxs)(S,(0,a.Z)({className:(0,o.Z)(g.root,i),ownerState:b,role:"progressbar"},y,{ref:e},x,{children:["buffer"===d?(0,m.jsx)(P,{className:g.dashed,ownerState:b}):null,(0,m.jsx)(I,{className:g.bar1,ownerState:b,style:j.bar1}),"determinate"===d?null:(0,m.jsx)(z,{className:g.bar2,ownerState:b,style:j.bar2})]}))});e.Z=B},28962:function(t,e,s){"use strict";s.d(e,{E:function(){return getLinearProgressUtilityClass}});var r=s(1977),a=s(8027);function getLinearProgressUtilityClass(t){return(0,a.ZP)("MuiLinearProgress",t)}let i=(0,r.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);e.Z=i},93289:function(t,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ui/cards/statistics",function(){return s(96076)}])},15439:function(t,e,s){"use strict";var r=s(85893),a=s(66242),i=s(87918),o=s(15861),n=s(44267),l=s(11431),c=s(67632),d=s(13004);e.Z=t=>{let{sx:e,stats:s,title:h,chipText:x,subtitle:p,avatarIcon:b,avatarSize:m=44,iconSize:u="1.75rem",chipColor:g="primary",avatarColor:f="primary"}=t,y="default"===g?i.Z:c.Z;return(0,r.jsx)(a.Z,{sx:{...e},children:(0,r.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,r.jsx)(d.Z,{skin:"light",variant:"rounded",color:f,sx:{mb:3.5,width:m,height:m},children:(0,r.jsx)(l.Z,{icon:b,fontSize:u})}),(0,r.jsx)(o.Z,{variant:"h5",sx:{mb:1},children:h}),(0,r.jsx)(o.Z,{variant:"body2",sx:{mb:1,color:"text.disabled"},children:p}),(0,r.jsx)(o.Z,{sx:{mb:3.5,color:"text.secondary"},children:s}),(0,r.jsx)(y,{size:"small",label:x,color:g,..."default"===g?{sx:{borderRadius:"4px",color:"text.secondary"}}:{rounded:!0,skin:"light"}})]})})}},36107:function(t,e,s){"use strict";var r=s(85893),a=s(66242),i=s(2734),o=s(15861),n=s(44267),l=s(11431),c=s(13004),d=s(94744);e.Z=t=>{let{sx:e,stats:s,title:h,avatarIcon:x,chartSeries:p,avatarSize:b=42,chartColor:m="primary",avatarColor:u="primary",avatarIconSize:g="1.625rem"}=t,f=(0,i.Z)(),y={chart:{parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},tooltip:{enabled:!1},dataLabels:{enabled:!1},stroke:{width:2.5,curve:"smooth"},grid:{show:!1,padding:{top:2,bottom:17}},fill:{type:"gradient",gradient:{opacityTo:0,opacityFrom:1,shadeIntensity:1,stops:[0,100],colorStops:[[{offset:0,opacity:.4,color:f.palette[m].main},{offset:100,opacity:.1,color:f.palette.background.paper}]]}},theme:{monochrome:{enabled:!0,shadeTo:"light",shadeIntensity:1,color:f.palette[m].main}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};return(0,r.jsxs)(a.Z,{sx:{...e},children:[(0,r.jsxs)(n.Z,{sx:{pb:0,display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,r.jsx)(c.Z,{skin:"light",color:u,sx:{mb:2.5,width:b,height:b},children:(0,r.jsx)(l.Z,{icon:x,fontSize:g})}),(0,r.jsx)(o.Z,{variant:"h5",children:s}),(0,r.jsx)(o.Z,{variant:"body2",children:h})]}),(0,r.jsx)(d.Z,{type:"area",height:110,options:y,series:p})]})}},94744:function(t,e,s){"use strict";var r=s(5152),a=s.n(r);let i=a()(()=>Promise.all([s.e(4814),s.e(7229)]).then(s.bind(s,47229)),{loadableGenerated:{webpack:()=>[47229]},ssr:!1});e.Z=i},52784:function(t,e,s){"use strict";var r=s(90948);let a=(0,r.ZP)("div")(t=>{let{theme:e}=t;return{"& .apexcharts-canvas":{"& line[stroke='transparent']":{display:"none"},"& .apexcharts-tooltip":{boxShadow:e.shadows[3],borderColor:e.palette.divider,background:e.palette.background.paper,"& .apexcharts-tooltip-title":{fontWeight:600,borderColor:e.palette.divider,background:e.palette.background.paper},"&.apexcharts-theme-light":{color:e.palette.text.primary},"&.apexcharts-theme-dark":{color:e.palette.common.white},"& .apexcharts-tooltip-series-group:first-of-type":{paddingBottom:0},"& .bar-chart":{padding:e.spacing(2,2.5)}},"& .apexcharts-xaxistooltip":{borderColor:e.palette.divider,background:"light"===e.palette.mode?e.palette.grey[50]:e.palette.customColors.bodyBg,"&:after":{borderBottomColor:"light"===e.palette.mode?e.palette.grey[50]:e.palette.customColors.bodyBg},"&:before":{borderBottomColor:e.palette.divider}},"& .apexcharts-yaxistooltip":{borderColor:e.palette.divider,background:"light"===e.palette.mode?e.palette.grey[50]:e.palette.customColors.bodyBg,"&:after":{borderLeftColor:"light"===e.palette.mode?e.palette.grey[50]:e.palette.customColors.bodyBg},"&:before":{borderLeftColor:e.palette.divider}},"& .apexcharts-xaxistooltip-text, & .apexcharts-yaxistooltip-text":{color:e.palette.text.primary},"& .apexcharts-yaxis .apexcharts-yaxis-texts-g .apexcharts-yaxis-label":{textAnchor:"rtl"===e.direction?"start":void 0},"& .apexcharts-text, & .apexcharts-tooltip-text, & .apexcharts-datalabel-label, & .apexcharts-datalabel, & .apexcharts-xaxistooltip-text, & .apexcharts-yaxistooltip-text, & .apexcharts-legend-text":{fontFamily:"".concat(e.typography.fontFamily," !important")},"& .apexcharts-pie-label":{filter:"none",fill:e.palette.common.white},"& .apexcharts-marker":{boxShadow:"none"}}}});e.Z=a},96076:function(t,e,s){"use strict";s.r(e),s.d(e,{__N_SSG:function(){return T},default:function(){return statistics}});var r=s(85893),a=s(86886),i=s(99226),o=s(66242),n=s(2734),l=s(15861),c=s(44267),d=s(94744),h=s(53772);let x=[{data:[77,55,23,43,77,55,89]}];var statistics_CardStatisticsOrder=()=>{let t=(0,n.Z)(),e={chart:{type:"bar",stacked:!1,parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},tooltip:{enabled:!1},legend:{show:!1},dataLabels:{enabled:!1},colors:[(0,h.E)(t.palette.primary.main,1)],states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},plotOptions:{bar:{borderRadius:4,horizontal:!1,columnWidth:"30%",endingShape:"rounded",startingShape:"rounded",colors:{backgroundBarRadius:5,backgroundBarColors:[t.palette.customColors.trackBg,t.palette.customColors.trackBg,t.palette.customColors.trackBg,t.palette.customColors.trackBg,t.palette.customColors.trackBg]}}},grid:{show:!1,padding:{top:16,left:-8,right:0,bottom:16}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1},responsive:[{breakpoint:1350,options:{plotOptions:{bar:{columnWidth:"45%"}}}},{breakpoint:t.breakpoints.values.lg,options:{plotOptions:{bar:{columnWidth:"20%"}}}},{breakpoint:t.breakpoints.values.sm,options:{plotOptions:{bar:{columnWidth:"30%"}}}}]};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{variant:"h5",children:"Order"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Last Week"}),(0,r.jsx)(d.Z,{type:"bar",height:97,series:x,options:e}),(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h4",children:"124k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"success.main"},children:"+12.6%"})]})]})})};let p=[{data:[40,20,65,50]}];var statistics_CardStatisticsSales=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},tooltip:{enabled:!1},dataLabels:{enabled:!1},stroke:{width:2,curve:"smooth"},grid:{show:!1,padding:{top:5,bottom:20}},fill:{type:"gradient",gradient:{opacityTo:0,opacityFrom:1,shadeIntensity:1,stops:[0,100],colorStops:[[{offset:0,opacity:.4,color:t.palette.success.main},{opacity:0,offset:100,color:t.palette.background.paper}]]}},theme:{monochrome:{enabled:!0,shadeTo:"light",shadeIntensity:1,color:t.palette.success.main}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};return(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(c.Z,{sx:{pb:0},children:[(0,r.jsx)(l.Z,{variant:"h5",children:"Sales"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Last Year"})]}),(0,r.jsx)(d.Z,{type:"area",height:97,series:p,options:e}),(0,r.jsx)(c.Z,{sx:{pt:0},children:(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h4",children:"175k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"error.main"},children:"-17.3%"})]})})]})},b=s(11431),m=s(13004),card_stats_square=t=>{let{sx:e,icon:s,stats:a,title:i,iconSize:n=24,avatarSize:d=42,avatarColor:h="primary"}=t;return(0,r.jsx)(o.Z,{sx:{...e},children:(0,r.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:[(0,r.jsx)(m.Z,{skin:"light",color:h,sx:{mb:2,width:d,height:d},children:(0,r.jsx)(b.Z,{icon:s,fontSize:n})}),(0,r.jsx)(l.Z,{variant:"h5",sx:{mb:2},children:a}),(0,r.jsx)(l.Z,{variant:"body2",children:i})]})})},statistics_CardStatisticsSquare=t=>{let{data:e}=t,s=e?e.map((t,e)=>(0,r.jsx)(a.ZP,{item:!0,xs:6,children:(0,r.jsx)(card_stats_square,{...t})},e)):null;return(0,r.jsx)(a.ZP,{container:!0,spacing:6,children:s})};let u=[{data:[0,19,7,27,15,40]}];var statistics_CardStatisticsProfit=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1}},stroke:{width:2},tooltip:{enabled:!1},colors:[(0,h.E)(t.palette.info.main,1)],markers:{size:3.5,strokeWidth:3,strokeColors:"transparent",colors:[t.palette.info.main],discrete:[{size:5,seriesIndex:0,strokeColor:t.palette.info.main,fillColor:t.palette.background.paper,dataPointIndex:u[0].data.length-1}]},grid:{strokeDashArray:6,borderColor:t.palette.divider,xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}},padding:{top:-13,left:-4,right:8,bottom:2}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{labels:{show:!1}}};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{variant:"h5",children:"Profit"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Last Month"}),(0,r.jsx)(d.Z,{type:"line",height:97,series:u,options:e}),(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h4",children:"684k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"success.main"},children:"+8.35%"})]})]})})},statistics_CardStatisticsExpenses=()=>{let t=(0,n.Z)(),e={chart:{sparkline:{enabled:!0}},stroke:{lineCap:"round"},colors:[(0,h.E)(t.palette.warning.main,1)],states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},plotOptions:{radialBar:{endAngle:90,startAngle:-90,hollow:{size:"64%"},track:{strokeWidth:"40%",background:(0,h.E)(t.palette.customColors.trackBg,1)},dataLabels:{name:{show:!1},value:{offsetY:-3,fontWeight:600,color:t.palette.text.primary,fontFamily:t.typography.fontFamily,fontSize:t.typography.h4.fontSize}}}},grid:{padding:{bottom:15}},responsive:[{breakpoint:t.breakpoints.values.lg,options:{chart:{height:200}}},{breakpoint:960,options:{chart:{height:160}}},{breakpoint:t.breakpoints.values.md,options:{chart:{height:190}}},{breakpoint:660,options:{chart:{height:160}}},{breakpoint:t.breakpoints.values.sm,options:{chart:{height:150}}},{breakpoint:425,options:{chart:{height:130}}}]};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{variant:"h5",children:"82.5k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Expenses"}),(0,r.jsx)(d.Z,{type:"radialBar",height:157,series:[78],options:e}),(0,r.jsx)(l.Z,{variant:"body2",sx:{textAlign:"center",color:"text.disabled"},children:"$21k Expenses more than last month"})]})})};let g=[{name:"Earning",data:[29,18,44,28,16]},{name:"Expense",data:[-17,-22,-17,-11,-22]}];var statistics_CardStatisticsSessions=()=>{let t=(0,n.Z)(),e={chart:{stacked:!0,parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},legend:{show:!1},dataLabels:{enabled:!1},colors:[(0,h.E)(t.palette.primary.main,1),(0,h.E)(t.palette.success.main,1)],stroke:{width:1,curve:"smooth",colors:[t.palette.background.paper]},plotOptions:{bar:{borderRadius:6,columnWidth:"30%",endingShape:"rounded",startingShape:"rounded"}},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},grid:{padding:{top:-4,right:1,left:-8,bottom:-3},yaxis:{lines:{show:!1}}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{labels:{show:!1}},responsive:[{breakpoint:t.breakpoints.values.xl,options:{plotOptions:{bar:{columnWidth:"40%"}}}},{breakpoint:1300,options:{plotOptions:{bar:{columnWidth:"50%"}}}},{breakpoint:t.breakpoints.values.lg,options:{plotOptions:{bar:{columnWidth:"20%"}}}},{breakpoint:t.breakpoints.values.md,options:{plotOptions:{bar:{columnWidth:"18%"}}}},{breakpoint:t.breakpoints.values.sm,options:{plotOptions:{bar:{columnWidth:"30%"}}}}]};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{variant:"h5",children:"Sessions"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"This Month"}),(0,r.jsx)(d.Z,{type:"bar",height:97,series:g,options:e}),(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h4",children:"45.1k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"success.main"},children:"+9.41%"})]})]})})},f=s(15439),statistics_CardStatisticsVertical=t=>{let{data:e}=t,s=e?e.map((t,e)=>(0,r.jsx)(a.ZP,{item:!0,xs:6,children:(0,r.jsx)(f.Z,{...t})},e)):null;return(0,r.jsx)(a.ZP,{container:!0,spacing:6,children:s})},card_stats_horizontal=t=>{let{sx:e,icon:s,stats:a,title:n,avatarSize:d=42,iconSize:h="1.625rem",avatarColor:x="primary"}=t;return(0,r.jsx)(o.Z,{sx:{...e},children:(0,r.jsxs)(c.Z,{sx:{gap:3,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,r.jsx)(l.Z,{variant:"h5",sx:{mb:.5},children:a}),(0,r.jsx)(l.Z,{variant:"body2",children:n})]}),(0,r.jsx)(m.Z,{skin:"light",color:x,sx:{width:d,height:d},children:(0,r.jsx)(b.Z,{icon:s,fontSize:h})})]})})},statistics_CardStatisticsHorizontal=t=>{let{data:e}=t,s=e?e.map((t,e)=>(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,r.jsx)(card_stats_horizontal,{...t})},e)):null;return(0,r.jsx)(a.ZP,{container:!0,spacing:6,children:s})};let y=[{name:"Income",data:[3350,3350,4800,4800,2950,2950,1800,1800,3750,3750,5700,5700]}];var statistics_CardStatisticsImpression=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},stroke:{width:3,curve:"straight"},colors:[(0,h.E)(t.palette.error.main,1)],grid:{yaxis:{lines:{show:!1}},padding:{top:15,right:2,bottom:5}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{labels:{show:!1}}};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{variant:"h5",children:"Impression"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"This Week"}),(0,r.jsx)(d.Z,{type:"line",height:97,series:y,options:e}),(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h4",children:"26.1k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"error.main"},children:"-24.5%"})]})]})})},j=s(78445);let Z=[{stats:"230k",title:"Sales",color:"primary",icon:"tabler:chart-pie-2"},{color:"info",stats:"8.549k",title:"Customers",icon:"tabler:users"},{color:"error",stats:"1.423k",title:"Products",icon:"tabler:shopping-cart"},{stats:"$9745",color:"success",title:"Revenue",icon:"tabler:currency-dollar"}],renderStats=()=>Z.map((t,e)=>(0,r.jsx)(a.ZP,{item:!0,xs:6,md:3,children:(0,r.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(m.Z,{skin:"light",color:t.color,sx:{mr:4,width:42,height:42},children:(0,r.jsx)(b.Z,{icon:t.icon,fontSize:"1.5rem"})}),(0,r.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,{variant:"h5",children:t.stats}),(0,r.jsx)(l.Z,{variant:"body2",children:t.title})]})]},e)},e));var statistics_CardStatisticsStatistics=()=>(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(j.Z,{title:"Statistics",sx:{"& .MuiCardHeader-action":{m:0,alignSelf:"center"}},action:(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Updated 1 month ago"})}),(0,r.jsx)(c.Z,{sx:{pt:t=>"".concat(t.spacing(2.5)," !important")},children:(0,r.jsx)(a.ZP,{container:!0,spacing:6,children:renderStats()})})]}),v=s(67720),k=s(88441),statistics_CardStatisticsOrderVisits=()=>(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{sx:{p:t=>"".concat(t.spacing(5)," !important")},children:[(0,r.jsxs)(i.Z,{sx:{gap:2,mb:7,display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Sales Overview"}),(0,r.jsx)(l.Z,{variant:"h4",children:"$42.5k"})]}),(0,r.jsx)(l.Z,{sx:{fontWeight:500,color:"success.main"},children:"+18.2%"})]}),(0,r.jsxs)(i.Z,{sx:{mb:7,gap:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsxs)(i.Z,{sx:{py:2.25,display:"flex",flexDirection:"column"},children:[(0,r.jsxs)(i.Z,{sx:{mb:2.5,display:"flex",alignItems:"center"},children:[(0,r.jsx)(m.Z,{skin:"light",color:"info",variant:"rounded",sx:{mr:1.5,height:24,width:24},children:(0,r.jsx)(b.Z,{icon:"tabler:shopping-cart",fontSize:"1.125rem"})}),(0,r.jsx)(l.Z,{sx:{color:"text.secondary"},children:"Order"})]}),(0,r.jsx)(l.Z,{variant:"h5",children:"62.2%"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"6,440"})]}),(0,r.jsx)(v.Z,{flexItem:!0,sx:{m:0},orientation:"vertical",children:(0,r.jsx)(m.Z,{skin:"light",color:"secondary",sx:{height:24,width:24,fontSize:"0.6875rem",color:"text.secondary"},children:"VS"})}),(0,r.jsxs)(i.Z,{sx:{py:2.25,display:"flex",alignItems:"flex-end",flexDirection:"column"},children:[(0,r.jsxs)(i.Z,{sx:{mb:2.5,display:"flex",alignItems:"center"},children:[(0,r.jsx)(l.Z,{sx:{mr:1.5,color:"text.secondary"},children:"Visits"}),(0,r.jsx)(m.Z,{skin:"light",variant:"rounded",sx:{height:24,width:24},children:(0,r.jsx)(b.Z,{icon:"tabler:link",fontSize:"1.125rem"})})]}),(0,r.jsx)(l.Z,{variant:"h5",children:"25.5%"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"12,749"})]})]}),(0,r.jsx)(k.Z,{value:65,color:"info",variant:"determinate",sx:{height:10,"&.MuiLinearProgress-colorInfo":{backgroundColor:"primary.main"},"& .MuiLinearProgress-bar":{borderTopRightRadius:0,borderBottomRightRadius:0}}})]})}),w=s(67632);let C=[{data:[32,52,72,94,116,94,72]}];var statistics_CardStatisticsRevenueGrowth=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1}},plotOptions:{bar:{borderRadius:6,distributed:!0,columnWidth:"42%",endingShape:"rounded",startingShape:"rounded"}},legend:{show:!1},tooltip:{enabled:!1},dataLabels:{enabled:!1},colors:[(0,h.E)(t.palette.success.main,.16),(0,h.E)(t.palette.success.main,.16),(0,h.E)(t.palette.success.main,.16),(0,h.E)(t.palette.success.main,.16),(0,h.E)(t.palette.success.main,1),(0,h.E)(t.palette.success.main,.16),(0,h.E)(t.palette.success.main,.16)],states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},grid:{show:!1,padding:{top:-4,left:-10,right:-8,bottom:-12}},xaxis:{categories:["M","T","W","T","F","S","S"],axisTicks:{show:!1},axisBorder:{show:!1},tickPlacement:"on",labels:{style:{colors:t.palette.text.disabled,fontFamily:t.typography.fontFamily,fontSize:t.typography.body2.fontSize}}},yaxis:{show:!1}};return(0,r.jsx)(o.Z,{children:(0,r.jsx)(c.Z,{children:(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",alignItems:"stretch",justifyContent:"space-between"},children:[(0,r.jsxs)(i.Z,{sx:{gap:3,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z,{variant:"h5",sx:{mb:2},children:"Revenue Growth"}),(0,r.jsx)(l.Z,{variant:"body2",children:"Weekly Report"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z,{variant:"h3",sx:{mb:2},children:"$4,673"}),(0,r.jsx)(w.Z,{rounded:!0,size:"small",skin:"light",color:"success",label:"+15.2%"})]})]}),(0,r.jsx)(d.Z,{type:"bar",width:160,height:170,series:C,options:e})]})})})},S=s(36107),statistics_CardStatisticsWithAreaChart=t=>{let{data:e}=t,s=e?e.map((t,e)=>(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,r.jsx)(S.Z,{...t})},e)):null;return(0,r.jsx)(a.ZP,{container:!0,spacing:6,children:s})};let P=[32,41,41,70];var statistics_CardStatisticsGeneratedLeads=()=>{let t=(0,n.Z)(),e={colors:[t.palette.success.main,(0,h.E)(t.palette.success.main,.7),(0,h.E)(t.palette.success.main,.5),(0,h.E)(t.palette.success.main,.16)],stroke:{width:0},legend:{show:!1},tooltip:{enabled:!1},dataLabels:{enabled:!1},labels:["Electronic","Sports","Decor","Fashion"],states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},grid:{padding:{top:-22,bottom:-18}},plotOptions:{pie:{customScale:.8,expandOnClick:!1,donut:{size:"73%",labels:{show:!0,name:{offsetY:25,color:t.palette.text.secondary,fontFamily:t.typography.fontFamily},value:{offsetY:-15,fontWeight:500,formatter:t=>"".concat(t),color:t.palette.text.primary,fontFamily:t.typography.fontFamily,fontSize:t.typography.h2.fontSize},total:{show:!0,label:"Total",color:t.palette.text.secondary,fontFamily:t.typography.fontFamily,fontSize:t.typography.h5.fontSize}}}}}};return(0,r.jsx)(o.Z,{children:(0,r.jsx)(c.Z,{children:(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",alignItems:"stretch",justifyContent:"space-between"},children:[(0,r.jsxs)(i.Z,{sx:{gap:3,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z,{variant:"h5",sx:{mb:.75},children:"Generated Leads"}),(0,r.jsx)(l.Z,{variant:"body2",children:"Monthly Report"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z,{variant:"h3",sx:{mb:.75},children:"4,350"}),(0,r.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center","& svg":{mr:1,color:"success.main"}},children:[(0,r.jsx)(b.Z,{icon:"tabler:chevron-up",fontSize:"1.25rem"}),(0,r.jsx)(l.Z,{variant:"h6",sx:{color:"success.main"},children:"15.8%"})]})]})]}),(0,r.jsx)(d.Z,{type:"donut",width:150,height:175,series:P,options:e})]})})})};let I=[{data:[40,53,66,79,92,105,118]}];var statistics_CardStatisticsAvgDailyTraffic=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1}},plotOptions:{bar:{borderRadius:6,columnWidth:"25%",endingShape:"rounded",startingShape:"rounded"}},legend:{show:!1},tooltip:{enabled:!1},dataLabels:{enabled:!1},colors:[(0,h.E)(t.palette.warning.main,1)],states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},grid:{show:!1,padding:{top:-20,left:-5,right:-8,bottom:-12}},xaxis:{categories:["01","02","03","04","05","06","07"],axisTicks:{show:!1},axisBorder:{show:!1},tickPlacement:"on",labels:{style:{colors:t.palette.text.disabled,fontFamily:t.typography.fontFamily,fontSize:t.typography.body2.fontSize}}},yaxis:{show:!1}};return(0,r.jsx)(o.Z,{children:(0,r.jsxs)(c.Z,{children:[(0,r.jsxs)(i.Z,{sx:{gap:2,display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:[(0,r.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,r.jsx)(l.Z,{variant:"h3",children:"2.84k"}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"Avg Daily Traffic"})]}),(0,r.jsx)(w.Z,{rounded:!0,size:"small",skin:"light",color:"success",label:"+15%"})]}),(0,r.jsx)(d.Z,{type:"bar",height:148,series:I,options:e})]})})};let z=[{data:[40,20,65,50]}];var statistics_CardStatisticsAverageDailySales=()=>{let t=(0,n.Z)(),e={chart:{parentHeightOffset:0,toolbar:{show:!1},sparkline:{enabled:!0}},tooltip:{enabled:!1},dataLabels:{enabled:!1},stroke:{width:2,curve:"smooth"},grid:{show:!1,padding:{bottom:20}},fill:{type:"gradient",gradient:{opacityTo:0,opacityFrom:1,shadeIntensity:1,stops:[0,100],colorStops:[[{offset:0,opacity:.4,color:t.palette.success.main},{opacity:0,offset:100,color:t.palette.background.paper}]]}},theme:{monochrome:{enabled:!0,shadeTo:"light",shadeIntensity:1,color:t.palette.success.main}},xaxis:{labels:{show:!1},axisTicks:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};return(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(c.Z,{sx:{p:5,pb:0},children:[(0,r.jsx)(l.Z,{variant:"h5",sx:{mb:2.5},children:"Average Daily Sales"}),(0,r.jsx)(l.Z,{variant:"body2",children:"Total Sales This Month"}),(0,r.jsx)(l.Z,{variant:"h4",children:"$28,450"})]}),(0,r.jsx)(d.Z,{type:"area",height:148,series:z,options:e})]})},B=s(81223);let O=[{progress:85,chipText:"+92k",chipColor:"success",title:"Subscribers Gained",subtitle:"1.2k new subscriber"},{progress:65,chipText:"+38k",chipColor:"success",progressColor:"info",title:"Orders Received",subtitle:"2.4k new orders"}];var statistics_CardStatisticsSubscribersOrders=()=>{let t=O.map((t,e)=>(0,r.jsxs)(i.Z,{sx:{...e!==O.length-1&&{mb:7}},children:[(0,r.jsxs)(i.Z,{sx:{mb:2,gap:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{variant:"h6",children:t.title}),(0,r.jsx)(w.Z,{rounded:!0,size:"small",skin:"light",color:t.chipColor,label:t.chipText})]}),(0,r.jsxs)(i.Z,{sx:{gap:2,mb:.5,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(l.Z,{sx:{color:"text.secondary"},children:t.subtitle}),(0,r.jsx)(l.Z,{variant:"body2",sx:{color:"text.disabled"},children:"".concat(t.progress,"%")})]}),(0,r.jsx)(k.Z,{variant:"determinate",value:t.progress,color:t.progressColor,sx:{height:8}})]},e));return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(j.Z,{title:"Statistics",action:(0,r.jsx)(B.Z,{options:["Refresh","Share","Update"],iconButtonProps:{size:"small",className:"card-more-options",sx:{color:"text.disabled"}}})}),(0,r.jsx)(c.Z,{children:t})]})},E=s(52784),T=!0,statistics=t=>{let{apiData:e}=t;return(0,r.jsx)(E.Z,{children:(0,r.jsxs)(a.ZP,{container:!0,spacing:6,children:[(0,r.jsx)(a.ZP,{item:!0,xs:12,md:8,children:(0,r.jsx)(statistics_CardStatisticsStatistics,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,md:4,children:(0,r.jsx)(statistics_CardStatisticsSquare,{data:e.statsSquare})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsOrder,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsSales,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsProfit,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsSessions,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsExpenses,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:6,md:4,lg:2,children:(0,r.jsx)(statistics_CardStatisticsImpression,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,children:(0,r.jsx)(statistics_CardStatisticsHorizontal,{data:e.statsHorizontal})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,children:(0,r.jsx)(statistics_CardStatisticsWithAreaChart,{data:e.statsWithAreaChart})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,r.jsx)(statistics_CardStatisticsAverageDailySales,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,r.jsx)(statistics_CardStatisticsOrderVisits,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,r.jsx)(statistics_CardStatisticsAvgDailyTraffic,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,r.jsx)(statistics_CardStatisticsSubscribersOrders,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,r.jsx)(statistics_CardStatisticsVertical,{data:e.statsVertical})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,r.jsx)(statistics_CardStatisticsRevenueGrowth,{})}),(0,r.jsx)(a.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,r.jsx)(statistics_CardStatisticsGeneratedLeads,{})})]})})}}},function(t){t.O(0,[1686,9774,2888,179],function(){return t(t.s=93289)}),_N_E=t.O()}]);