%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/110.2f801ad9.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[110],{1276:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return n}));var c=a(19),s=a(50),l=a.n(s),i=a(45);const r=Object(c.b)("academyApp/course/getCourse",(async e=>{const t=await l.a.get("/api/academy-app/course",{params:e});return await t.data})),n=Object(c.b)("academyApp/course/updateCourse",(async(e,t)=>{let{getState:a,dispatch:c}=t;const{id:s}=a().academyApp.course,r=await l.a.post("/api/academy-app/course/update",{id:s,...e}),n=await r.data;return c(Object(i.c)({message:"Course Saved"})),n})),o=Object(c.d)({name:"academyApp/course",initialState:null,reducers:{},extraReducers:{[r.fulfilled]:(e,t)=>t.payload,[n.fulfilled]:(e,t)=>({...e,...t.payload})}});t.a=o.reducer},1277:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n}));var c=a(19),s=a(50),l=a.n(s);const i=Object(c.b)("academyApp/categories/getCourses",(async()=>{const e=await l.a.get("/api/academy-app/courses");return await e.data})),r=Object(c.c)({}),{selectAll:n,selectById:o}=r.getSelectors((e=>e.academyApp.courses)),d=Object(c.d)({name:"academyApp/courses",initialState:r.getInitialState({}),reducers:{},extraReducers:{[i.fulfilled]:r.setAll}});t.a=d.reducer},1278:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n}));var c=a(19),s=a(50),l=a.n(s);const i=Object(c.b)("academyApp/categories/getCategories",(async()=>{const e=await l.a.get("/api/academy-app/categories");return await e.data})),r=Object(c.c)({}),{selectAll:n,selectById:o}=r.getSelectors((e=>e.academyApp.categories)),d=Object(c.d)({name:"academyApp/categories",initialState:r.getInitialState({}),reducers:{},extraReducers:{[i.fulfilled]:r.setAll}});t.a=d.reducer},1310:function(e,t,a){"use strict";var c=a(112),s=a(1276),l=a(1277),i=a(1278);const r=Object(c.c)({categories:i.a,courses:l.a,course:s.a});t.a=r},1311:function(e,t,a){"use strict";var c=a(2),s=a(7),l=a(0),i=a(8),r=a(11),n=l.forwardRef((function(e,t){var a=e.disableSpacing,r=void 0!==a&&a,n=e.classes,o=e.className,d=Object(s.a)(e,["disableSpacing","classes","className"]);return l.createElement("div",Object(c.a)({className:Object(i.a)(n.root,o,!r&&n.spacing),ref:t},d))}));t.a=Object(r.a)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(n)},2524:function(e,t,a){"use strict";a.r(t);var c=a(10),s=a(1098),l=a(1109),i=a(1311),r=a(1116),n=a(1035),o=a(1090),d=a(1038),u=a(1091),p=a(1092),m=a(1045),j=a(1044),f=a(1072),b=a(43),x=a(1096),h=a(194),y=a(133),O=a(5),g=a(1118),w=a(0),v=a(6),N=a(28),S=a(1310),A=a(1278),C=a(1277),k=a(1);const I=Object(f.a)((e=>({header:{background:"linear-gradient(to right, ".concat(e.palette.primary.dark," 0%, ").concat(e.palette.primary.main," 100%)"),color:e.palette.getContrastText(e.palette.primary.main)},headerIcon:{position:"absolute",top:-64,left:0,opacity:.04,fontSize:512,width:512,height:512,pointerEvents:"none"}})));t.default=Object(y.a)("academyApp",S.a)((function(e){const t=Object(v.b)(),a=Object(v.c)(C.c),f=Object(v.c)(A.c),y=I(e),S=Object(b.a)(),[E,L]=Object(w.useState)(null),[R,B]=Object(w.useState)(""),[J,M]=Object(w.useState)("all");function P(e){switch(e.activeStep){case e.totalSteps:return"Completed";case 0:return"Start";default:return"Continue"}}return Object(w.useEffect)((()=>{t(Object(A.b)()),t(Object(C.b)())}),[t]),Object(w.useEffect)((()=>{a&&L(0===R.length&&"all"===J?a:c.a.filter(a,(e=>("all"===J||e.category===J)&&e.title.toLowerCase().includes(R.toLowerCase()))))}),[a,R,J]),Object(k.jsxs)("div",{className:"flex flex-col flex-auto flex-shrink-0 w-full",children:[Object(k.jsxs)("div",{className:Object(O.a)(y.header,"relative overflow-hidden flex flex-shrink-0 items-center justify-center h-200 sm:h-288"),children:[Object(k.jsxs)("div",{className:"flex flex-col max-w-2xl mx-auto w-full p-24 sm:p-32",children:[Object(k.jsx)(g.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:0}},children:Object(k.jsx)(h.a,{color:"inherit",className:"text-24 sm:text-44 font-bold tracking-tight",children:"Welcome to Academy"})}),Object(k.jsx)(g.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.3}},children:Object(k.jsx)(h.a,{color:"inherit",className:"text-12 sm:text-14 mt-8 sm:mt-16 opacity-75 leading-tight sm:leading-loose",children:"Our courses will step you through the process of building a small application, or adding a new feature to an existing application. Our courses will step you through the process of building a small application, or adding a new feature to an existing application."})})]}),Object(k.jsx)(o.a,{className:y.headerIcon,children:" school "})]}),Object(k.jsxs)("div",{className:"flex flex-col flex-1 max-w-2xl w-full mx-auto px-8 sm:px-16 py-24",children:[Object(k.jsxs)("div",{className:"flex flex-col flex-shrink-0 sm:flex-row items-center justify-between py-24",children:[Object(k.jsx)(x.a,{label:"Search for a course",placeholder:"Enter a keyword...",className:"flex w-full sm:w-320 mb-16 sm:mb-0 mx-16",value:R,inputProps:{"aria-label":"Search"},onChange:function(e){B(e.target.value)},variant:"outlined",InputLabelProps:{shrink:!0}}),Object(k.jsxs)(n.a,{className:"flex w-full sm:w-320 mx-16",variant:"outlined",children:[Object(k.jsx)(d.a,{htmlFor:"category-label-placeholder",children:" Category "}),Object(k.jsxs)(j.a,{value:J,onChange:function(e){M(e.target.value)},input:Object(k.jsx)(m.a,{labelWidth:72,name:"category",id:"category-label-placeholder"}),children:[Object(k.jsx)(p.a,{value:"all",children:Object(k.jsx)("em",{children:" All "})}),f.map((e=>Object(k.jsx)(p.a,{value:e.value,children:e.label},e.id)))]})]})]}),Object(w.useMemo)((()=>{const e={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return E&&(E.length>0?Object(k.jsx)(g.a.div,{className:"flex flex-wrap py-24",variants:{show:{transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:E.map((t=>{const a=f.find((e=>e.value===t.category));return Object(k.jsx)(g.a.div,{variants:e,className:"w-full pb-24 sm:w-1/2 lg:w-1/3 sm:p-16",children:Object(k.jsxs)(l.a,{className:"flex flex-col h-256 shadow",children:[Object(k.jsxs)("div",{className:"flex flex-shrink-0 items-center justify-between px-24 h-64",style:{background:a.color,color:S.palette.getContrastText(a.color)},children:[Object(k.jsx)(h.a,{className:"font-medium truncate",color:"inherit",children:a.label}),Object(k.jsxs)("div",{className:"flex items-center justify-center opacity-75",children:[Object(k.jsx)(o.a,{className:"text-20 mx-8",color:"inherit",children:"access_time"}),Object(k.jsxs)("div",{className:"text-14 font-medium whitespace-nowrap",children:[t.length,"min"]})]})]}),Object(k.jsxs)(r.a,{className:"flex flex-col flex-auto items-center justify-center",children:[Object(k.jsx)(h.a,{className:"text-center text-16 font-medium",children:t.title}),Object(k.jsx)(h.a,{className:"text-center text-13 mt-8 font-normal",color:"textSecondary",children:t.updated})]}),Object(k.jsx)(i.a,{className:"justify-center pb-24",children:Object(k.jsx)(s.a,{to:"/apps/academy/courses/".concat(t.id,"/").concat(t.slug),component:N.a,className:"justify-start px-32",color:"primary",variant:"outlined",children:P(t)})}),Object(k.jsx)(u.a,{className:"w-full",variant:"determinate",value:100*t.activeStep/t.totalSteps,color:"secondary"})]})},t.id)}))}):Object(k.jsx)("div",{className:"flex flex-1 items-center justify-center",children:Object(k.jsx)(h.a,{color:"textSecondary",className:"text-24 my-24",children:"No courses found!"})}))}),[E,f,S.palette])]})]})}))}}]);