%PDF- %PDF-
Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/ |
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/99.8f3ee3c0.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[99],{1135:function(e,t,a){"use strict";var c=a(0),s=c.createContext();t.a=s},1145:function(e,t,a){"use strict";var c=a(0),s=c.createContext();t.a=s},1199:function(e,t,a){"use strict";var c=a(7),s=a(2),i=a(0),n=a(8),l=a(11),r=a(15),o=a(31),d=a(1145),j=a(1135),m=i.forwardRef((function(e,t){var a,l,o=e.align,m=void 0===o?"inherit":o,x=e.classes,b=e.className,h=e.component,u=e.padding,p=e.scope,f=e.size,O=e.sortDirection,g=e.variant,w=Object(c.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),v=i.useContext(d.a),N=i.useContext(j.a),y=N&&"head"===N.variant;h?(l=h,a=y?"columnheader":"cell"):l=y?"th":"td";var S=p;!S&&y&&(S="col");var C=u||(v&&v.padding?v.padding:"normal"),k=f||(v&&v.size?v.size:"medium"),R=g||N&&N.variant,E=null;return O&&(E="asc"===O?"ascending":"descending"),i.createElement(l,Object(s.a)({ref:t,className:Object(n.a)(x.root,x[R],b,"inherit"!==m&&x["align".concat(Object(r.a)(m))],"normal"!==C&&x["padding".concat(Object(r.a)(C))],"medium"!==k&&x["size".concat(Object(r.a)(k))],"head"===R&&v&&v.stickyHeader&&x.stickyHeader),"aria-sort":E,role:a,scope:S},w))}));t.a=Object(l.a)((function(e){return{root:Object(s.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(o.j)(Object(o.a)(e.palette.divider,1),.88):Object(o.b)(Object(o.a)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(m)},1220:function(e,t,a){"use strict";var c=a(7),s=a(2),i=a(0),n=a(8),l=a(11),r=a(1145),o="table",d=i.forwardRef((function(e,t){var a=e.classes,l=e.className,d=e.component,j=void 0===d?o:d,m=e.padding,x=void 0===m?"normal":m,b=e.size,h=void 0===b?"medium":b,u=e.stickyHeader,p=void 0!==u&&u,f=Object(c.a)(e,["classes","className","component","padding","size","stickyHeader"]),O=i.useMemo((function(){return{padding:x,size:h,stickyHeader:p}}),[x,h,p]);return i.createElement(r.a.Provider,{value:O},i.createElement(j,Object(s.a)({role:j===o?null:"table",ref:t,className:Object(n.a)(a.root,l,p&&a.stickyHeader)},f)))}));t.a=Object(l.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(s.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(d)},1221:function(e,t,a){"use strict";var c=a(2),s=a(7),i=a(0),n=a(8),l=a(11),r=a(1135),o={variant:"head"},d="thead",j=i.forwardRef((function(e,t){var a=e.classes,l=e.className,j=e.component,m=void 0===j?d:j,x=Object(s.a)(e,["classes","className","component"]);return i.createElement(r.a.Provider,{value:o},i.createElement(m,Object(c.a)({className:Object(n.a)(a.root,l),ref:t,role:m===d?null:"rowgroup"},x)))}));t.a=Object(l.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(j)},1222:function(e,t,a){"use strict";var c=a(2),s=a(7),i=a(0),n=a(8),l=a(11),r=a(1135),o=a(31),d=i.forwardRef((function(e,t){var a=e.classes,l=e.className,o=e.component,d=void 0===o?"tr":o,j=e.hover,m=void 0!==j&&j,x=e.selected,b=void 0!==x&&x,h=Object(s.a)(e,["classes","className","component","hover","selected"]),u=i.useContext(r.a);return i.createElement(d,Object(c.a)({ref:t,className:Object(n.a)(a.root,l,u&&{head:a.head,footer:a.footer}[u.variant],m&&a.hover,b&&a.selected),role:"tr"===d?null:"row"},h))}));t.a=Object(l.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(o.a)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(d)},1223:function(e,t,a){"use strict";var c=a(2),s=a(7),i=a(0),n=a(8),l=a(11),r=a(1135),o={variant:"body"},d="tbody",j=i.forwardRef((function(e,t){var a=e.classes,l=e.className,j=e.component,m=void 0===j?d:j,x=Object(s.a)(e,["classes","className","component"]);return i.createElement(r.a.Provider,{value:o},i.createElement(m,Object(c.a)({className:Object(n.a)(a.root,l),ref:t,role:m===d?null:"rowgroup"},x)))}));t.a=Object(l.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(j)},2697:function(e,t,a){"use strict";a.r(t);var c=a(163),s=a(1108),i=a(1072),n=a(1117),l=a(1119),r=a(133),o=a(10),d=a(0),j=a(6),m=a(1124),x=a(1121),b=a(1090),h=a(1028),u=a(536),p=a(1092),f=a(65),O=a(194),g=a(5),w=a(19),v=a(50),N=a.n(v);const y=Object(w.b)("projectDashboardApp/projects/getProjects",(async()=>(await N.a.get("/api/project-dashboard-app/projects")).data)),S=Object(w.c)({}),{selectAll:C,selectEntities:k,selectById:R}=S.getSelectors((e=>e.projectDashboardApp.projects));var E=Object(w.d)({name:"projectDashboardApp/projects",initialState:S.getInitialState(),reducers:{},extraReducers:{[y.fulfilled]:S.setAll}}).reducer;const A=Object(w.b)("projectDashboardApp/widgets/getWidgets",(async()=>{const e=await N.a.get("/api/project-dashboard-app/widgets");return await e.data})),L=Object(w.c)({}),{selectEntities:H,selectById:M}=L.getSelectors((e=>e.projectDashboardApp.widgets));var T=Object(w.d)({name:"projectDashboardApp/widgets",initialState:L.getInitialState(),reducers:{},extraReducers:{[A.fulfilled]:L.setAll}}).reducer,D=a(1);const z=Object(i.a)((e=>({selectedProject:{background:Object(f.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"16px 0 0 0"},projectMenuButton:{background:Object(f.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"0 16px 0 0",marginLeft:1}})));var P=function(e){const{pageLayout:t}=e,a=z(e),c=Object(j.b)(),s=(Object(j.c)(H),Object(j.c)(C)),i=Object(j.c)((e=>{let{auth:t}=e;return t.user})),[n,l]=Object(d.useState)({id:1,menuEl:null});return Object(d.useEffect)((()=>{c(y())}),[c]),o.a.isEmpty(s)?null:Object(D.jsxs)("div",{className:"flex flex-col justify-between flex-1 min-w-0 px-24 pt-24",children:[Object(D.jsxs)("div",{className:"flex justify-between items-center",children:[Object(D.jsxs)("div",{className:"flex items-center min-w-0",children:[i.data.photoURL?Object(D.jsx)(m.a,{className:"w-52 h-52 sm:w-64 sm:h-64",alt:"user photo",src:i.data.photoURL}):Object(D.jsx)(m.a,{className:"w-52 h-52 sm:w-64 sm:h-64",children:i.data.displayName[0]}),Object(D.jsxs)("div",{className:"mx-12 min-w-0",children:[Object(D.jsxs)(O.a,{className:"text-18 sm:text-24 md:text-32 font-bold leading-none mb-8 tracking-tight",children:["Welcome back, ",i.data.displayName,"!"]}),Object(D.jsxs)("div",{className:"flex items-center opacity-60 truncate",children:[Object(D.jsx)(b.a,{className:"text-14 sm:text-24",children:"notifications"}),Object(D.jsx)(O.a,{className:"text-12 sm:text-14 font-medium mx-4 truncate",children:"You have 2 new messages and 15 new tasks"})]})]})]}),Object(D.jsx)(x.a,{lgUp:!0,children:Object(D.jsx)(h.a,{onClick:e=>t.current.toggleRightSidebar(),"aria-label":"open left sidebar",color:"inherit",children:Object(D.jsx)(b.a,{children:"menu"})})})]}),Object(D.jsx)("div",{className:"flex items-end",children:Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)("div",{className:Object(g.a)(a.selectedProject,"flex items-center h-40 px-16 text-13 sm:text-16"),children:o.a.find(s,["id",n.id]).name}),Object(D.jsx)(h.a,{className:Object(g.a)(a.projectMenuButton,"h-40 w-40 p-0"),"aria-owns":n.menuEl?"project-menu":void 0,"aria-haspopup":"true",onClick:function(e){l({id:n.id,menuEl:e.currentTarget})},children:Object(D.jsx)(b.a,{children:"more_horiz"})}),Object(D.jsx)(u.a,{id:"project-menu",anchorEl:n.menuEl,open:Boolean(n.menuEl),onClose:function(){l({id:n.id,menuEl:null})},children:s&&s.map((e=>Object(D.jsx)(p.a,{onClick:t=>{var a;a=e.id,l({id:a,menuEl:null})},children:e.name},e.id)))})]})})]})},B=a(1118),U=a(193),_=a(165);function I(){const[e,t]=Object(d.useState)(new Date),a=Object(d.useRef)();function c(){t(new Date)}return Object(d.useEffect)((()=>(a.current=setInterval(c,1e3),()=>{clearInterval(a.current)}))),Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsx)(O.a,{className:"text-16 px-16 font-medium tracking-tighter",color:"textSecondary",children:Object(_.a)(e,"eee, HH:mm:ss")}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"text-center px-20 pt-20 pb-32",children:[Object(D.jsx)(O.a,{className:"text-24 leading-tight font-normal",color:"textSecondary",children:Object(_.a)(e,"MMMM")}),Object(D.jsx)(O.a,{className:"text-72 leading-tight font-medium tracking-tighter",color:"textSecondary",children:Object(_.a)(e,"d")}),Object(D.jsx)(O.a,{className:"mt-8 text-20 leading-tight font-semibold tracking-tighter",color:"textSecondary",children:Object(_.a)(e,"Y")})]})]})}var W=Object(d.memo)(I);function $(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsxs)("div",{className:"flex items-center px-16",children:[Object(D.jsx)(b.a,{color:"action",children:"location_on"}),Object(D.jsx)(O.a,{className:"text-16 mx-8 font-medium",color:"textSecondary",children:e.widget.locations[e.widget.currentLocation].name})]}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"flex items-center justify-center p-20 pb-32",children:[Object(D.jsx)(b.a,{className:"meteocons text-40 ltr:mr-8 rtl:ml-8",color:"action",children:e.widget.locations[e.widget.currentLocation].icon}),Object(D.jsx)(O.a,{className:"text-44 mx-8 font-medium tracking-tighter",color:"textSecondary",children:e.widget.locations[e.widget.currentLocation].temp[e.widget.tempUnit]}),Object(D.jsx)(O.a,{className:"text-48",color:"textSecondary",children:"\xb0"}),Object(D.jsx)(O.a,{className:"text-44",color:"textSecondary",children:"C"})]}),Object(D.jsx)(s.a,{}),Object(D.jsxs)("div",{className:"flex justify-between items-center p-16",children:[Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(b.a,{className:"meteocons text-14",color:"action",children:"windy"}),Object(D.jsx)(O.a,{className:"mx-4 font-semibold",children:e.widget.locations[e.widget.currentLocation].windSpeed[e.widget.speedUnit]}),Object(D.jsx)(O.a,{color:"textSecondary",children:e.widget.speedUnit})]}),Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(b.a,{className:"meteocons text-14",color:"action",children:"compass"}),Object(D.jsx)(O.a,{className:"mx-4 font-semibold",children:e.widget.locations[e.widget.currentLocation].windDirection})]}),Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(b.a,{className:"meteocons text-14",color:"action",children:"rainy"}),Object(D.jsx)(O.a,{className:"mx-4 font-semibold",children:e.widget.locations[e.widget.currentLocation].rainProbability})]})]}),Object(D.jsx)(s.a,{}),Object(D.jsx)("div",{className:"w-full py-16",children:e.widget.locations[e.widget.currentLocation].next5Days.map((t=>Object(D.jsxs)("div",{className:"flex items-center justify-between w-full py-16 px-24",children:[Object(D.jsx)(O.a,{className:"text-15 font-medium",children:t.name}),Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(b.a,{className:"meteocons text-24 ltr:mr-16 rtl:ml-16",color:"action",children:t.icon}),Object(D.jsx)(O.a,{className:"text-20 font-medium tracking-tighter",children:t.temp[e.widget.tempUnit]}),Object(D.jsx)(O.a,{className:"text-20",color:"textSecondary",children:"\xb0"}),Object(D.jsx)(O.a,{className:"text-20",color:"textSecondary",children:e.widget.tempUnit})]})]},t.name)))})]})}var J=Object(d.memo)($);var Y=function(){const e=Object(j.c)(H),t={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return Object(D.jsxs)(B.a.div,{className:"w-full",variants:{hidden:{opacity:1},show:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:[Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full p-12",children:Object(D.jsx)(W,{})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full p-12",children:Object(D.jsx)(J,{widget:e.weatherWidget})})]})},q=a(112);var F=Object(q.c)({widgets:T,projects:E}),G=a(1220),K=a(1223),Q=a(1199),V=a(1221),X=a(1222);function Z(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow overflow-hidden",children:[Object(D.jsx)("div",{className:"flex items-center justify-between p-20 h-64",children:Object(D.jsx)(O.a,{className:"text-16 font-medium",children:e.widget.title})}),Object(D.jsx)("div",{className:"table-responsive",children:Object(D.jsxs)(G.a,{className:"w-full min-w-full",children:[Object(D.jsx)(V.a,{children:Object(D.jsx)(X.a,{children:e.widget.table.columns.map((e=>Object(D.jsx)(Q.a,{children:Object(D.jsx)(O.a,{color:"textSecondary",className:"font-semibold whitespace-nowrap",children:e.title})},e.id)))})}),Object(D.jsx)(K.a,{children:e.widget.table.rows.map((e=>Object(D.jsx)(X.a,{className:"h-64",children:e.cells.map((e=>{switch(e.id){case"budget_type":return Object(D.jsx)(Q.a,{component:"th",scope:"row",children:Object(D.jsx)(O.a,{className:Object(g.a)(e.classes,"inline text-11 font-500 px-8 py-4 rounded-4"),children:e.value})},e.id);case"spent_perc":return Object(D.jsx)(Q.a,{component:"th",scope:"row",children:Object(D.jsxs)(O.a,{className:Object(g.a)(e.classes,"flex items-center font-medium"),children:[e.value,Object(D.jsx)(b.a,{className:"text-14 mx-4",children:e.icon})]})},e.id);default:return Object(D.jsx)(Q.a,{component:"th",scope:"row",children:Object(D.jsx)(O.a,{className:e.classes,children:e.value})},e.id)}}))},e.id)))})]})})]})}var ee=Object(d.memo)(Z),te=a(43),ae=a(1161),ce=a.n(ae);function se(e){const t=o.a.merge({},e.widget),a=Object(te.a)();return o.a.setWith(t,"mainChart.options.theme.monochrome.color",a.palette.primary.main),Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow",children:[Object(D.jsx)("div",{className:"flex items-center justify-between p-20 h-64",children:Object(D.jsx)(O.a,{className:"text-16 font-medium",children:t.title})}),Object(D.jsx)("div",{className:"h-400 w-full",children:Object(D.jsx)(ce.a,{options:t.mainChart.options,series:t.mainChart.series,type:t.mainChart.options.chart.type,height:t.mainChart.options.chart.height})})]})}var ie=Object(d.memo)(se),ne=a(1044);function le(e){const[t,a]=Object(d.useState)(e.widget.currentRange),c=o.a.merge({},e.widget),i=Object(te.a)();return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between p-20 h-64",children:[Object(D.jsx)(O.a,{className:"text-16 font-medium",children:c.title}),Object(D.jsx)(ne.a,{native:!0,value:t,onChange:function(e){a(e.target.value)},inputProps:{name:"currentRange"},className:"font-medium opacity-75",disableUnderline:!0,children:Object.entries(c.ranges).map((e=>{let[t,a]=e;return Object(D.jsx)("option",{value:t,children:a},t)}))})]}),["weeklySpent","totalSpent","remaining"].map((e=>Object(D.jsxs)("div",{className:"flex flex-wrap items-center w-full p-12",children:[Object(D.jsxs)("div",{className:"flex flex-col w-full sm:w-1/2 p-8",children:[Object(D.jsx)(O.a,{className:"text-13 font-semibold",color:"textSecondary",children:c[e].title}),Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(O.a,{className:"text-32 font-normal",color:"textSecondary",children:"$"}),Object(D.jsx)(O.a,{className:"text-32 mx-4 font-medium tracking-tighter",children:c[e].count[t]})]})]}),Object(D.jsx)("div",{className:"flex w-full sm:w-1/2",children:Object(D.jsx)("div",{className:"h-64 w-full",children:Object(D.jsx)(ce.a,{options:{...c[e].chart.options,colors:[i.palette.secondary.main]},series:c[e].chart[t].series,type:c[e].chart.options.chart.type,height:c[e].chart.options.chart.height})})})]},e))),Object(D.jsx)(s.a,{}),Object(D.jsxs)("div",{className:"flex flex-col w-full p-20",children:[Object(D.jsx)(O.a,{className:"text-13 font-semibold",color:"textSecondary",children:c.totalBudget.title}),Object(D.jsxs)("div",{className:"flex items-center",children:[Object(D.jsx)(O.a,{className:"text-32 font-normal",color:"textSecondary",children:"$"}),Object(D.jsx)(O.a,{className:"text-32 mx-4 font-medium tracking-tighter",children:c.totalBudget.count})]})]})]})}var re=Object(d.memo)(le);var oe=function(){const e=Object(j.c)(H),t={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return Object(D.jsxs)(B.a.div,{className:"flex flex-wrap",variants:{show:{transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:[Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 p-12",children:Object(D.jsx)(ie,{widget:e.widget8})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 p-12",children:Object(D.jsx)(re,{widget:e.widget9})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full p-12",children:Object(D.jsx)(ee,{widget:e.widget10})})]})};function de(e){const[t,a]=Object(d.useState)(e.widget.currentRange);return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsx)(ne.a,{native:!0,className:"mx-16",classes:{root:"py-8 font-medium opacity-75"},value:t,onChange:function(e){a(e.target.value)},inputProps:{name:"currentRange"},disableUnderline:!0,variant:"standard",children:Object.entries(e.widget.ranges).map((e=>{let[t,a]=e;return Object(D.jsx)("option",{value:t,children:a},t)}))}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"text-center py-12",children:[Object(D.jsx)(O.a,{className:"text-72 font-semibold leading-none text-blue tracking-tighter",children:e.widget.data.count[t]}),Object(D.jsx)(O.a,{className:"text-18 text-blue-800 font-normal",children:e.widget.data.name})]}),Object(D.jsxs)(O.a,{className:"p-20 pt-0 h-56 flex justify-center items-end text-13 font-medium",color:"textSecondary",children:[Object(D.jsx)("span",{className:"truncate",children:e.widget.data.extra.name}),":",Object(D.jsx)("b",{className:"px-8",children:e.widget.data.extra.count[t]})]})]})}var je=Object(d.memo)(de);function me(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsx)(O.a,{className:"text-16 px-16 font-medium",color:"textSecondary",children:e.widget.title}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"text-center py-12",children:[Object(D.jsx)(O.a,{className:"text-72 font-semibold leading-none text-red tracking-tighter",children:e.widget.data.count}),Object(D.jsx)(O.a,{className:"text-18 font-normal text-red-800",children:e.widget.data.name})]}),Object(D.jsxs)(O.a,{className:"p-20 pt-0 h-56 flex justify-center items-end text-13 font-medium",color:"textSecondary",children:[Object(D.jsx)("span",{className:"truncate",children:e.widget.data.extra.name}),":",Object(D.jsx)("b",{className:"px-8",children:e.widget.data.extra.count})]})]})}var xe=Object(d.memo)(me);function be(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsx)(O.a,{className:"text-16 px-16 font-medium",color:"textSecondary",children:e.widget.title}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"text-center py-12",children:[Object(D.jsx)(O.a,{className:"text-72 font-semibold leading-none text-orange tracking-tighter",children:e.widget.data.count}),Object(D.jsx)(O.a,{className:"text-18 font-normal text-orange-800",children:e.widget.data.name})]}),Object(D.jsxs)(O.a,{className:"p-20 pt-0 h-56 flex justify-center items-end text-13 font-medium",color:"textSecondary",children:[Object(D.jsx)("span",{className:"truncate",children:e.widget.data.extra.name}),":",Object(D.jsx)("b",{className:"px-8",children:e.widget.data.extra.count})]})]})}var he=Object(d.memo)(be);function ue(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow flex flex-col justify-between",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between px-4 pt-8",children:[Object(D.jsx)(O.a,{className:"text-16 px-16 font-medium",color:"textSecondary",children:e.widget.title}),Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})]}),Object(D.jsxs)("div",{className:"text-center py-12",children:[Object(D.jsx)(O.a,{className:"text-72 font-semibold leading-none text-green tracking-tighter",children:e.widget.data.count}),Object(D.jsx)(O.a,{className:"text-18 font-normal text-green-800",children:e.widget.data.name})]}),Object(D.jsxs)(O.a,{className:"p-20 pt-0 h-56 flex justify-center items-end text-13 font-medium",color:"textSecondary",children:[Object(D.jsx)("span",{className:"truncate",children:e.widget.data.extra.name}),":",Object(D.jsx)("b",{className:"px-8",children:e.widget.data.extra.count})]})]})}var pe=Object(d.memo)(ue);function fe(e){const t=Object(te.a)(),[a,c]=Object(d.useState)(!0),[i,r]=Object(d.useState)(0),j=o.a.merge({},e.widget),m=Object.keys(j.ranges)[i];return o.a.setWith(j,"mainChart.options.colors",[t.palette.primary.main,t.palette.secondary.main]),Object(d.useEffect)((()=>{c(!1)}),[]),a?null:Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between p-20",children:[Object(D.jsx)(O.a,{className:"text-16 font-medium",children:j.title}),Object(D.jsx)(l.a,{value:i,onChange:(e,t)=>r(t),indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",className:"-mx-4 min-h-40",classes:{indicator:"flex justify-center bg-transparent w-full h-full"},TabIndicatorProps:{children:Object(D.jsx)(s.a,{className:"w-full h-full rounded-full opacity-50"})},children:Object.entries(j.ranges).map((e=>{let[t,a]=e;return Object(D.jsx)(n.a,{className:"text-14 font-semibold min-h-40 min-w-64 mx-4",disableRipple:!0,label:a},t)}))})]}),Object(D.jsxs)("div",{className:"flex flex-row flex-wrap",children:[Object(D.jsx)("div",{className:"w-full md:w-1/2 p-16 min-h-420 h-420",children:Object(D.jsx)(ce.a,{options:j.mainChart.options,series:j.mainChart[m].series,type:j.mainChart.options.chart.type,height:j.mainChart.options.chart.height})}),Object(D.jsx)("div",{className:"flex w-full md:w-1/2 flex-wrap p-8",children:Object.entries(j.supporting).map((e=>{let[a,c]=e;return Object(D.jsxs)("div",{className:"w-full sm:w-1/2 p-12",children:[Object(D.jsx)(O.a,{className:"text-12 font-semibold whitespace-nowrap",color:"textSecondary",children:c.name}),Object(D.jsx)(O.a,{className:"text-32 font-semibold tracking-tighter",children:c.count[m]}),Object(D.jsx)("div",{className:"h-64 w-full overflow-hidden",children:Object(D.jsx)(ce.a,{options:{...c.chart.options,colors:[t.palette.secondary.main]},series:c.chart[m].series,type:c.chart.options.chart.type,height:c.chart.options.chart.height})})]},a)}))})]})]})}var Oe=Object(d.memo)(fe);function ge(e){const[t,a]=Object(d.useState)(e.widget.currentRange),[c,s]=Object(d.useState)(!0),i=o.a.merge({},e.widget),n=Object(te.a)();return o.a.setWith(i,"mainChart.options.theme.monochrome.color",n.palette.secondary.main),Object(d.useEffect)((()=>{s(!1)}),[]),c?null:Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between p-20 h-64 ",children:[Object(D.jsx)(O.a,{className:"text-16 font-medium",children:i.title}),Object(D.jsx)(ne.a,{native:!0,value:t,onChange:function(e){a(e.target.value)},inputProps:{name:"currentRange"},className:"font-medium opacity-75",disableUnderline:!0,children:Object.entries(i.ranges).map((e=>{let[t,a]=e;return Object(D.jsx)("option",{value:t,children:a},t)}))})]}),Object(D.jsx)("div",{className:"h-400 w-full",children:Object(D.jsx)(ce.a,{options:i.mainChart.options,series:i.mainChart.series[t],type:i.mainChart.options.chart.type,height:i.mainChart.options.chart.height})}),Object(D.jsxs)("div",{className:"flex items-center p-8 border-t-1",children:[Object(D.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-16 border-r-1",children:[Object(D.jsx)(O.a,{className:"text-32 font-medium mb-8 leading-none tracking-tighter",children:i.footerLeft.count[t]}),Object(D.jsx)(O.a,{className:"text-13 font-normal",color:"textSecondary",children:i.footerLeft.title})]}),Object(D.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-16",children:[Object(D.jsx)(O.a,{className:"text-32 font-medium mb-8 leading-none tracking-tighter",children:i.footerRight.count[t]}),Object(D.jsx)(O.a,{className:"text-13 font-normal",color:"textSecondary",children:i.footerRight.title})]})]})]})}var we=Object(d.memo)(ge),ve=a(1033),Ne=a(1034),ye=a(1113),Se=a(1103);function Ce(e){const[t,a]=Object(d.useState)(e.widget.currentRange);return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between p-20 h-64 ",children:[Object(D.jsx)(O.a,{className:"text-16 font-medium",children:e.widget.title}),Object(D.jsx)(ne.a,{native:!0,value:t,onChange:function(e){a(e.target.value)},inputProps:{name:"currentRange"},className:"font-medium opacity-75",disableUnderline:!0,children:Object.entries(e.widget.ranges).map((e=>{let[t,a]=e;return Object(D.jsx)("option",{value:t,children:a},t)}))})]}),Object(D.jsx)(ve.a,{className:"py-0",children:e.widget.schedule[t].map((e=>Object(D.jsxs)(Ne.a,{children:[Object(D.jsx)(Se.a,{classes:{root:"px-8",primary:"font-medium text-16"},primary:e.title,secondary:e.time}),Object(D.jsx)(ye.a,{children:Object(D.jsx)(h.a,{"aria-label":"more",children:Object(D.jsx)(b.a,{children:"more_vert"})})})]},e.id)))})]})}var ke=Object(d.memo)(Ce);var Re=function(){const e=Object(j.c)(H),t={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return Object(D.jsxs)(B.a.div,{className:"flex flex-wrap",variants:{show:{transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:[Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 md:w-1/4 p-12",children:Object(D.jsx)(je,{widget:e.widget1})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 md:w-1/4 p-12",children:Object(D.jsx)(xe,{widget:e.widget2})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 md:w-1/4 p-12",children:Object(D.jsx)(he,{widget:e.widget3})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 md:w-1/4 p-12",children:Object(D.jsx)(pe,{widget:e.widget4})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full p-12",children:Object(D.jsx)(Oe,{widget:e.widget5})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 p-12",children:Object(D.jsx)(we,{widget:e.widget6})}),Object(D.jsx)(B.a.div,{variants:t,className:"widget flex w-full sm:w-1/2 p-12",children:Object(D.jsx)(ke,{widget:e.widget7})})]})};function Ee(e){return Object(D.jsxs)(U.a,{className:"w-full rounded-20 shadow overflow-hidden",children:[Object(D.jsxs)("div",{className:"flex items-center justify-between p-20 h-64",children:[Object(D.jsx)(O.a,{className:"text-16 font-medium",children:e.widget.title}),Object(D.jsx)(O.a,{className:"text-11 font-500 rounded-4 text-white bg-blue px-8 py-4",children:"".concat(e.widget.table.rows.length," Members")})]}),Object(D.jsx)("div",{className:"table-responsive",children:Object(D.jsxs)(G.a,{className:"w-full min-w-full",size:"small",children:[Object(D.jsx)(V.a,{children:Object(D.jsx)(X.a,{children:e.widget.table.columns.map((e=>"avatar"===e.id?Object(D.jsx)(Q.a,{className:"whitespace-nowrap p-8 px-16",children:e.title},e.id):Object(D.jsx)(Q.a,{children:Object(D.jsx)(O.a,{color:"textSecondary",className:"font-semibold whitespace-nowrap p-8 px-16",children:e.title})},e.id)))})}),Object(D.jsx)(K.a,{children:e.widget.table.rows.map((e=>Object(D.jsx)(X.a,{className:"h-64",children:e.cells.map((e=>{switch(e.id){case"avatar":return Object(D.jsx)(Q.a,{component:"th",scope:"row",className:"px-16",children:Object(D.jsx)(m.a,{src:e.value})},e.id);case"name":return Object(D.jsx)(Q.a,{component:"th",scope:"row",className:"truncate font-semibold",children:e.value},e.id);default:return Object(D.jsx)(Q.a,{component:"th",scope:"row",className:"truncate",children:e.value},e.id)}}))},e.id)))})]})})]})}var Ae=Object(d.memo)(Ee);var Le=function(){const e=Object(j.c)(H);return Object(D.jsx)(B.a.div,{className:"flex flex-wrap",variants:{show:{transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:Object(D.jsx)(B.a.div,{variants:{hidden:{opacity:0,y:20},show:{opacity:1,y:0}},className:"widget flex w-full p-12",children:Object(D.jsx)(Ae,{widget:e.widget11})})})};const He=Object(i.a)((e=>({content:{"& canvas":{maxHeight:"100%"}}})));t.default=Object(r.a)("projectDashboardApp",F)((function(e){const t=Object(j.b)(),a=Object(j.c)(H),i=He(e),r=Object(d.useRef)(null),[m,x]=Object(d.useState)(0);return Object(d.useEffect)((()=>{t(A())}),[t]),o.a.isEmpty(a)?null:Object(D.jsx)(c.a,{classes:{header:"min-h-160 h-160 lg:ltr:rounded-br-20 lg:rtl:rounded-bl-20 lg:ltr:mr-12 lg:rtl:ml-12",toolbar:"min-h-56 h-56 items-end",rightSidebar:"w-288 border-0 py-12",content:i.content},header:Object(D.jsx)(P,{pageLayout:r}),contentToolbar:Object(D.jsxs)(l.a,{value:m,onChange:function(e,t){x(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",className:"w-full px-24 -mx-4 min-h-40",classes:{indicator:"flex justify-center bg-transparent w-full h-full"},TabIndicatorProps:{children:Object(D.jsx)(s.a,{className:"w-full h-full rounded-full opacity-50"})},children:[Object(D.jsx)(n.a,{className:"text-14 font-semibold min-h-40 min-w-64 mx-4",disableRipple:!0,label:"Home"}),Object(D.jsx)(n.a,{className:"text-14 font-semibold min-h-40 min-w-64 mx-4",disableRipple:!0,label:"Budget Summary"}),Object(D.jsx)(n.a,{className:"text-14 font-semibold min-h-40 min-w-64 mx-4",disableRipple:!0,label:"Team Members"})]}),content:Object(D.jsxs)("div",{className:"p-12 lg:ltr:pr-0 lg:rtl:pl-0",children:[0===m&&Object(D.jsx)(Re,{}),1===m&&Object(D.jsx)(oe,{}),2===m&&Object(D.jsx)(Le,{})]}),rightSidebarContent:Object(D.jsx)(Y,{}),ref:r})}))}}]);