"use strict";(self.webpackChunkForest_Rangers_System=self.webpackChunkForest_Rangers_System||[]).push([[9384],{79384:function(t,e,a){a.r(e),a.d(e,{default:function(){return v}});var r=a(19860),s=a(70178),i=a(9019),n=a(47313),o=a(1738),c=a(21996),l=a(1229),d=a(50177),h=a(22227),m=a(12087),x=a(19453),u=a(46417);function v(){var t=(0,l.Z)().user,e=(0,o.I0)(),a=(0,o.v9)((function(t){return t.dashboard})),v=a.dashboard;a.isLoading;(0,n.useEffect)((function(){e((0,c.L)())}),[e]);var p=(0,r.Z)(),f=(0,d.Z)().themeStretch;return(0,u.jsx)(h.Z,{title:"Dashboard ",children:(0,u.jsx)(s.Z,{maxWidth:!f&&"xl",children:(0,u.jsxs)(i.ZP,{container:!0,spacing:3,children:[(0,u.jsx)(i.ZP,{item:!0,xs:12,md:6,children:(0,u.jsx)(m.E0,{title:"Welcome back\u270c\ud83c\udffe \n ".concat(null===t||void 0===t?void 0:t.displayName),description:"Below is an overview of what is going on in your world of football.",img:(0,u.jsx)(x.XI,{sx:{p:3,width:360,margin:{xs:"auto",md:"inherit"}}})})}),(0,u.jsx)(i.ZP,{item:!0,xs:12,md:6,children:(0,u.jsx)(m.if,{list:v.upcomingMatches})}),(0,u.jsx)(i.ZP,{item:!0,xs:12,md:4,children:(0,u.jsx)(m.xq,{title:"Total Registered Fans",percent:2.6,total:v.fans,chartColor:p.palette.primary.main,chartData:[5,18,12,51,68,11,39,37,27,20]})}),(0,u.jsx)(i.ZP,{item:!0,xs:12,md:4,children:(0,u.jsx)(m.xq,{title:"Earnings From Last Match (ZMW)",percent:.2,total:v.earnings,chartColor:p.palette.chart.blue[0],chartData:[20,41,63,33,28,35,50,46,11,26]})}),(0,u.jsx)(i.ZP,{item:!0,xs:12,md:4,children:(0,u.jsx)(m.xq,{title:"Tickets Sold from Last Match",percent:-.1,total:v.lastTotal,chartColor:p.palette.chart.red[0],chartData:[8,9,31,8,16,37,8,33,46,31]})}),(0,u.jsx)(i.ZP,{item:!0,xs:12,md:12,lg:12,children:(0,u.jsx)(m.mu,{title:"Overview of Ticket Sales this Season (ZMW)",chartLabels:["Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar","Apr","May"],chartData:[{year:"2019",data:[{name:"North",data:v.overview.north},{name:"East",data:v.overview.east},{name:"South",data:v.overview.south},{name:"West",data:v.overview.west},{name:"VIP",data:v.overview.vip}]}]})})]})})})}}}]);