%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/100.08c34046.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[100],{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),l=a(8),n=a(11),r=a(15),d=a(31),o=a(1145),j=a(1135),b=i.forwardRef((function(e,t){var a,n,d=e.align,b=void 0===d?"inherit":d,m=e.classes,h=e.className,p=e.component,x=e.padding,O=e.scope,f=e.size,u=e.sortDirection,g=e.variant,y=Object(c.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),v=i.useContext(o.a),N=i.useContext(j.a),w=N&&"head"===N.variant;p?(n=p,a=w?"columnheader":"cell"):n=w?"th":"td";var C=O;!C&&w&&(C="col");var A=x||(v&&v.padding?v.padding:"normal"),I=f||(v&&v.size?v.size:"medium"),S=g||N&&N.variant,k=null;return u&&(k="asc"===u?"ascending":"descending"),i.createElement(n,Object(s.a)({ref:t,className:Object(l.a)(m.root,m[S],h,"inherit"!==b&&m["align".concat(Object(r.a)(b))],"normal"!==A&&m["padding".concat(Object(r.a)(A))],"medium"!==I&&m["size".concat(Object(r.a)(I))],"head"===S&&v&&v.stickyHeader&&m.stickyHeader),"aria-sort":k,role:a,scope:C},y))}));t.a=Object(n.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(d.j)(Object(d.a)(e.palette.divider,1),.88):Object(d.b)(Object(d.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"})(b)},1220:function(e,t,a){"use strict";var c=a(7),s=a(2),i=a(0),l=a(8),n=a(11),r=a(1145),d="table",o=i.forwardRef((function(e,t){var a=e.classes,n=e.className,o=e.component,j=void 0===o?d:o,b=e.padding,m=void 0===b?"normal":b,h=e.size,p=void 0===h?"medium":h,x=e.stickyHeader,O=void 0!==x&&x,f=Object(c.a)(e,["classes","className","component","padding","size","stickyHeader"]),u=i.useMemo((function(){return{padding:m,size:p,stickyHeader:O}}),[m,p,O]);return i.createElement(r.a.Provider,{value:u},i.createElement(j,Object(s.a)({role:j===d?null:"table",ref:t,className:Object(l.a)(a.root,n,O&&a.stickyHeader)},f)))}));t.a=Object(n.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"})(o)},1221:function(e,t,a){"use strict";var c=a(2),s=a(7),i=a(0),l=a(8),n=a(11),r=a(1135),d={variant:"head"},o="thead",j=i.forwardRef((function(e,t){var a=e.classes,n=e.className,j=e.component,b=void 0===j?o:j,m=Object(s.a)(e,["classes","className","component"]);return i.createElement(r.a.Provider,{value:d},i.createElement(b,Object(c.a)({className:Object(l.a)(a.root,n),ref:t,role:b===o?null:"rowgroup"},m)))}));t.a=Object(n.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),l=a(8),n=a(11),r=a(1135),d=a(31),o=i.forwardRef((function(e,t){var a=e.classes,n=e.className,d=e.component,o=void 0===d?"tr":d,j=e.hover,b=void 0!==j&&j,m=e.selected,h=void 0!==m&&m,p=Object(s.a)(e,["classes","className","component","hover","selected"]),x=i.useContext(r.a);return i.createElement(o,Object(c.a)({ref:t,className:Object(l.a)(a.root,n,x&&{head:a.head,footer:a.footer}[x.variant],b&&a.hover,h&&a.selected),role:"tr"===o?null:"row"},p))}));t.a=Object(n.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(d.a)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(o)},1223:function(e,t,a){"use strict";var c=a(2),s=a(7),i=a(0),l=a(8),n=a(11),r=a(1135),d={variant:"body"},o="tbody",j=i.forwardRef((function(e,t){var a=e.classes,n=e.className,j=e.component,b=void 0===j?o:j,m=Object(s.a)(e,["classes","className","component"]);return i.createElement(r.a.Provider,{value:d},i.createElement(b,Object(c.a)({className:Object(l.a)(a.root,n),ref:t,role:b===o?null:"rowgroup"},m)))}));t.a=Object(n.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(j)},2703:function(e,t,a){"use strict";a.r(t);var c=a(163),s=a(1102),i=a(1090),l=a(1028),n=a(133),r=a(1118),d=a(0),o=a(6),j=a(194),b=a(1);var m=function(e){let{className:t,selected:a}=e;const c=a.location.split(">");return Object(b.jsx)(j.a,{className:t,children:c.map(((e,t)=>Object(b.jsxs)("span",{className:"flex items-center",children:[Object(b.jsx)("span",{children:e}),c.length-1!==t&&Object(b.jsx)(i.a,{children:"chevron_right"})]},t)))})},h=a(1094),p=a(1072),x=a(1095),O=a(5),f=a(19),u=a(50),g=a.n(u);const y=Object(f.b)("fileManagerApp/files/getFiles",(async()=>{const e=await g.a.get("/api/file-manager-app/files");return await e.data})),v=Object(f.c)({}),{selectAll:N,selectEntities:w,selectById:C}=v.getSelectors((e=>e.fileManagerApp.files)),A=Object(f.d)({name:"fileManagerApp/files",initialState:v.getInitialState({selectedItemId:"1"}),reducers:{setSelectedItem:(e,t)=>{e.selectedItemId=t.payload}},extraReducers:{[y.fulfilled]:v.setAll}}),{setSelectedItem:I}=A.actions;var S=A.reducer;const k=Object(p.a)({table:{"& th":{padding:"16px 0"}},typeIcon:{"&.folder:before":{content:"'folder'",color:"#FFB300"},"&.document:before":{content:"'insert_drive_file'",color:"#1565C0"},"&.spreadsheet:before":{content:"'insert_chart'",color:"#4CAF50"}}});var z=function(e){const t=Object(o.c)((e=>C(e,e.fileManagerApp.files.selectedItemId))),a=k();return t?Object(b.jsxs)(r.a.div,{initial:{y:50,opacity:.8},animate:{y:0,opacity:1,transition:{delay:.3}},className:"file-details p-16 sm:p-24",children:[Object(b.jsx)("div",{className:"preview h-128 sm:h-256 file-icon flex items-center justify-center",children:Object(b.jsx)(r.a.div,{initial:{scale:0},animate:{scale:1,transition:{delay:.3}},children:Object(b.jsx)(i.a,{className:Object(O.a)(a.typeIcon,t.type,"text-48")})})}),Object(b.jsx)(h.a,{className:"offline-switch",control:Object(b.jsx)(x.a,{checked:t.offline,"aria-label":"Available Offline"}),label:"Available Offline"}),Object(b.jsx)(j.a,{variant:"subtitle1",className:"py-16",children:"Info"}),Object(b.jsx)("table",{className:Object(O.a)(a.table,"w-full text-justify"),children:Object(b.jsxs)("tbody",{children:[Object(b.jsxs)("tr",{className:"type",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Type"}),Object(b.jsx)("td",{children:t.type})]}),Object(b.jsxs)("tr",{className:"size",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Size"}),Object(b.jsx)("td",{children:""===t.size?"-":t.size})]}),Object(b.jsxs)("tr",{className:"location",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Location"}),Object(b.jsx)("td",{children:t.location})]}),Object(b.jsxs)("tr",{className:"owner",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Owner"}),Object(b.jsx)("td",{children:t.owner})]}),Object(b.jsxs)("tr",{className:"modified",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Modified"}),Object(b.jsx)("td",{children:t.modified})]}),Object(b.jsxs)("tr",{className:"opened",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Opened"}),Object(b.jsx)("td",{children:t.opened})]}),Object(b.jsxs)("tr",{className:"created",children:[Object(b.jsx)("th",{className:"font-semibold",children:"Created"}),Object(b.jsx)("td",{children:t.created})]})]})})]}):null};var M=function(e){const t=Object(o.c)((e=>C(e,e.fileManagerApp.files.selectedItemId)));return t?Object(b.jsxs)("div",{className:"flex flex-col justify-between h-full p-4 sm:p-12",children:[Object(b.jsxs)("div",{className:"toolbar flex align-center justify-end",children:[Object(b.jsx)(r.a.div,{initial:{scale:0},animate:{scale:1,transition:{delay:.2}},children:Object(b.jsx)(l.a,{children:Object(b.jsx)(i.a,{children:"delete"})})}),Object(b.jsx)(r.a.div,{initial:{scale:0},animate:{scale:1,transition:{delay:.2}},children:Object(b.jsx)(l.a,{children:Object(b.jsx)(i.a,{children:"cloud_download"})})}),Object(b.jsx)(l.a,{children:Object(b.jsx)(i.a,{children:"more_vert"})})]}),Object(b.jsxs)("div",{className:"p-12",children:[Object(b.jsx)(r.a.div,{initial:{scale:0},animate:{scale:1,transition:{delay:.2}},children:Object(b.jsx)(j.a,{variant:"subtitle1",className:"mb-8 font-semibold",children:t.name})}),Object(b.jsx)(r.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.3}},children:Object(b.jsxs)(j.a,{variant:"caption",className:"font-medium",children:[Object(b.jsx)("span",{children:"Edited"}),Object(b.jsxs)("span",{children:[": ",t.modified]})]})})]})]}):null},R=a(1121),H=a(1220),_=a(1223),E=a(1199),T=a(1221),F=a(1222);const L=Object(p.a)({typeIcon:{"&.folder:before":{content:"'folder'",color:"#FFB300"},"&.document:before":{content:"'insert_drive_file'",color:"#1565C0"},"&.spreadsheet:before":{content:"'insert_chart'",color:"#4CAF50"}}});var B=function(e){const t=Object(o.b)(),a=Object(o.c)(N),c=Object(o.c)((e=>{let{fileManagerApp:t}=e;return t.files.selectedItemId})),s=L();return Object(b.jsx)(r.a.div,{initial:{y:50,opacity:.8},animate:{y:0,opacity:1,transition:{delay:.3}},children:Object(b.jsxs)(H.a,{className:"simple borderless",children:[Object(b.jsx)(T.a,{children:Object(b.jsxs)(F.a,{children:[Object(b.jsx)(E.a,{className:"max-w-64 w-64 p-0 text-center",children:" "}),Object(b.jsx)(E.a,{children:"Name"}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:"Type"}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:"Owner"}),Object(b.jsx)(E.a,{className:"text-center hidden sm:table-cell",children:"Size"}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:"Modified"})]})}),Object(b.jsx)(_.a,{children:a.map((a=>Object(b.jsxs)(F.a,{hover:!0,onClick:e=>t(I(a.id)),selected:a.id===c,className:"cursor-pointer h-64",children:[Object(b.jsx)(E.a,{className:"max-w-64 w-64 p-0 text-center",children:Object(b.jsx)(i.a,{className:Object(O.a)(s.typeIcon,a.type)})}),Object(b.jsx)(E.a,{className:"font-medium",children:a.name}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:a.type}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:a.owner}),Object(b.jsx)(E.a,{className:"text-center hidden sm:table-cell",children:""===a.size?"-":a.size}),Object(b.jsx)(E.a,{className:"hidden sm:table-cell",children:a.modified}),Object(b.jsx)(R.a,{lgUp:!0,children:Object(b.jsx)(E.a,{children:Object(b.jsx)(l.a,{onClick:t=>e.pageLayout.current.toggleRightSidebar(),"aria-label":"open right sidebar",children:Object(b.jsx)(i.a,{children:"info"})})})})]},a.id)))})]})})},$=a(1033),D=a(1034),J=a(1112),P=a(1103);var W=function(){return Object(b.jsxs)($.a,{component:"nav",children:[Object(b.jsxs)(D.a,{button:!0,dense:!0,children:[Object(b.jsx)(J.a,{className:"min-w-40",children:Object(b.jsx)(i.a,{className:"text-20",children:"folder"})}),Object(b.jsx)(P.a,{primary:"My Files"})]}),Object(b.jsxs)(D.a,{button:!0,dense:!0,children:[Object(b.jsx)(J.a,{className:"min-w-40",children:Object(b.jsx)(i.a,{className:"text-20",children:"star"})}),Object(b.jsx)(P.a,{primary:"Starred"})]}),Object(b.jsxs)(D.a,{button:!0,dense:!0,children:[Object(b.jsx)(J.a,{className:"min-w-40",children:Object(b.jsx)(i.a,{className:"text-20",children:"folder_shared"})}),Object(b.jsx)(P.a,{primary:"Sharred with me"})]}),Object(b.jsxs)(D.a,{button:!0,dense:!0,children:[Object(b.jsx)(J.a,{className:"min-w-40",children:Object(b.jsx)(i.a,{className:"text-20",children:"access_time"})}),Object(b.jsx)(P.a,{primary:"Recent"})]}),Object(b.jsxs)(D.a,{button:!0,dense:!0,children:[Object(b.jsx)(J.a,{className:"min-w-40",children:Object(b.jsx)(i.a,{className:"text-20",children:"not_interested"})}),Object(b.jsx)(P.a,{primary:"Offline"})]})]})};var U=function(){return Object(b.jsxs)("div",{className:"flex items-center h-full p-12",children:[Object(b.jsx)(i.a,{component:r.a.span,initial:{scale:0},animate:{scale:1,transition:{delay:.2}},className:"text-24 md:text-32",children:"folder"}),Object(b.jsx)(j.a,{component:r.a.span,initial:{x:-20},animate:{x:0,transition:{delay:.2}},delay:300,className:"text-16 md:text-24 mx-12 font-semibold",children:"File Manager"})]})},V=a(112);var q=Object(V.c)({files:S});t.default=Object(n.a)("fileManagerApp",q)((function(){const e=Object(o.b)(),t=Object(o.c)((e=>C(e,e.fileManagerApp.files.selectedItemId))),a=Object(d.useRef)(null);return Object(d.useEffect)((()=>{e(y())}),[e]),Object(b.jsx)(c.a,{classes:{root:"",header:"h-96 min-h-96 sm:h-160 sm:min-h-160",sidebarHeader:"h-96 min-h-96 sm:h-160 sm:min-h-160",rightSidebar:"w-320"},header:Object(b.jsxs)("div",{className:"flex flex-col flex-1 p-8 sm:p-12 relative",children:[Object(b.jsxs)("div",{className:"flex items-center justify-between",children:[Object(b.jsx)(l.a,{onClick:e=>{a.current.toggleLeftSidebar()},"aria-label":"open left sidebar",children:Object(b.jsx)(i.a,{children:"menu"})}),Object(b.jsx)(r.a.div,{initial:{scale:0},animate:{scale:1,transition:{delay:.2}},children:Object(b.jsx)(l.a,{"aria-label":"search",children:Object(b.jsx)(i.a,{children:"search"})})})]}),Object(b.jsxs)("div",{className:"flex flex-1 items-end",children:[Object(b.jsx)(s.a,{component:r.a.div,initial:{scale:0},animate:{scale:1,transition:{delay:.6}},color:"secondary","aria-label":"add",className:"absolute bottom-0 ltr:left-0 rtl:right-0 mx-16 -mb-28 z-999",children:Object(b.jsx)(i.a,{children:"add"})}),Object(b.jsx)(r.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.6}},children:t&&Object(b.jsx)(m,{selected:t,className:"flex flex-1 ltr:pl-72 rtl:pr-72 pb-12 text-16 sm:text-24 font-semibold"})})]})]}),content:Object(b.jsx)(B,{pageLayout:a}),leftSidebarVariant:"temporary",leftSidebarHeader:Object(b.jsx)(U,{}),leftSidebarContent:Object(b.jsx)(W,{}),rightSidebarHeader:Object(b.jsx)(M,{}),rightSidebarContent:Object(b.jsx)(z,{}),ref:a,innerScroll:!0})}))}}]);