%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/117.1559433a.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[117],{1201:function(e,a,t){"use strict";var n=t(0),i=n.createContext({});a.a=i},1383:function(e,a,t){"use strict";var n=t(2),i=t(7),r=t(0),s=t(8),o=t(221),c=t(1028),d=t(11),l=t(1201),u=r.forwardRef((function(e,a){var t=e.children,d=e.classes,u=e.className,p=e.expandIcon,b=e.focusVisibleClassName,m=e.IconButtonProps,x=void 0===m?{}:m,f=e.onClick,h=Object(i.a)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),j=r.useContext(l.a),O=j.disabled,g=void 0!==O&&O,v=j.expanded,y=j.toggle;return r.createElement(o.a,Object(n.a)({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":v,className:Object(s.a)(d.root,u,g&&d.disabled,v&&d.expanded),focusVisibleClassName:Object(s.a)(d.focusVisible,d.focused,b),onClick:function(e){y&&y(e),f&&f(e)},ref:a},h),r.createElement("div",{className:Object(s.a)(d.content,v&&d.expanded)},t),p&&r.createElement(c.a,Object(n.a)({className:Object(s.a)(d.expandIcon,v&&d.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},x),p))}));a.a=Object(d.a)((function(e){var a={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],a),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],a),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",a),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(u)},1384:function(e,a,t){"use strict";var n=t(2),i=t(7),r=t(0),s=t(8),o=t(11),c=r.forwardRef((function(e,a){var t=e.classes,o=e.className,c=Object(i.a)(e,["classes","className"]);return r.createElement("div",Object(n.a)({className:Object(s.a)(t.root,o),ref:a},c))}));a.a=Object(o.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(c)},1455:function(e,a,t){"use strict";var n=t(2),i=t(390),r=t(389),s=t(235),o=t(391);var c=t(64),d=t(7),l=t(0),u=(t(139),t(8)),p=t(1106),b=t(193),m=t(11),x=t(1201),f=t(104),h=l.forwardRef((function(e,a){var t,m=e.children,h=e.classes,j=e.className,O=e.defaultExpanded,g=void 0!==O&&O,v=e.disabled,y=void 0!==v&&v,N=e.expanded,C=e.onChange,R=e.square,k=void 0!==R&&R,w=e.TransitionComponent,E=void 0===w?p.a:w,$=e.TransitionProps,q=Object(d.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),B=Object(f.a)({controlled:N,default:g,name:"Accordion",state:"expanded"}),S=Object(c.a)(B,2),T=S[0],I=S[1],A=l.useCallback((function(e){I(!T),C&&C(e,!T)}),[T,C,I]),P=l.Children.toArray(m),V=(t=P,Object(i.a)(t)||Object(r.a)(t)||Object(s.a)(t)||Object(o.a)()),M=V[0],L=V.slice(1),H=l.useMemo((function(){return{expanded:T,disabled:y,toggle:A}}),[T,y,A]);return l.createElement(b.a,Object(n.a)({className:Object(u.a)(h.root,j,T&&h.expanded,y&&h.disabled,!k&&h.rounded),ref:a,square:k},q),l.createElement(x.a.Provider,{value:H},M),l.createElement(E,Object(n.a)({in:T,timeout:"auto"},$),l.createElement("div",{"aria-labelledby":M.props.id,id:M.props["aria-controls"],role:"region"},L)))}));a.a=Object(m.a)((function(e){var a={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],a),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],a)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(h)},2660:function(e,a,t){"use strict";t.r(a);var n=t(52),i=t(1455),r=t(1384),s=t(1383),o=t(1090),c=t(548),d=t(193),l=t(1072),u=t(194),p=t(50),b=t.n(p),m=t(5),x=t(1118),f=t(0),h=t(1);const j=Object(l.a)((e=>({header:{background:"linear-gradient(to right, ".concat(e.palette.primary.dark," 0%, ").concat(e.palette.primary.main," 100%)"),color:e.palette.primary.contrastText},panel:{margin:0,border:"none","&:before":{display:"none"},"&:first-child":{borderRadius:"20px 20px 0 0"},"&:last-child":{borderRadius:"0 0 20px 20px"},"&$expanded":{margin:"auto"}},expanded:{}})));a.default=function(){const e=j(),[a,t]=Object(f.useState)([]),[l,p]=Object(f.useState)([]),[O,g]=Object(f.useState)(null),[v,y]=Object(f.useState)("");return Object(f.useEffect)((()=>{b.a.get("/api/faq").then((e=>{t(e.data)}))}),[]),Object(f.useEffect)((()=>{var e,t;p((e=a,0===(t=v).length?e:n.a.filterArrayByString(e,t)))}),[a,v]),Object(h.jsxs)("div",{className:"w-full flex flex-col flex-auto",children:[Object(h.jsxs)("div",{className:Object(m.a)(e.header,"flex flex-col flex-shrink-0 items-center justify-center text-center p-16 sm:p-24 h-200 sm:h-360"),children:[Object(h.jsx)(x.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.3}},children:Object(h.jsx)(u.a,{variant:"subtitle1",color:"inherit",className:"opacity-75 mt-8 sm:mt-16 mx-auto max-w-512 font-medium",children:"Frequently asked questions"})}),Object(h.jsx)(x.a.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0,transition:{delay:.1}},children:Object(h.jsx)(u.a,{color:"inherit",className:"text-32 sm:text-56 font-bold tracking-tight",children:"We're here to help"})}),Object(h.jsxs)(d.a,{className:"flex flex-shrink-0 items-center h-56 w-full max-w-md mt-16 sm:mt-32 rounded-16 shadow",children:[Object(h.jsx)(o.a,{color:"action",className:"mx-16",children:"search"}),Object(h.jsx)(c.a,{placeholder:"Search in faqs...",className:"",disableUnderline:!0,fullWidth:!0,inputProps:{"aria-label":"Search"},value:v,onChange:function(e){y(e.target.value)}})]})]}),Object(h.jsxs)("div",{className:"flex flex-col flex-1 flex-shrink-0 max-w-xl w-full mx-auto px-16 sm:px-24 py-24 sm:py-32",children:[0===l.length&&Object(h.jsx)("div",{className:"flex flex-auto items-center justify-center w-full h-full",children:Object(h.jsx)(u.a,{color:"textSecondary",variant:"h5",children:"There are no faqs!"})}),Object(f.useMemo)((()=>{const a={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return l.length>0&&Object(h.jsx)(x.a.div,{variants:{show:{transition:{staggerChildren:.05}}},initial:"hidden",animate:"show",className:"shadow rounded-20",children:l.map((t=>{return Object(h.jsxs)(i.a,{component:x.a.div,variants:a,classes:{root:Object(m.a)(e.panel,"shadow-0"),expanded:e.expanded},expanded:O===t.id,onChange:(n=t.id,(e,a)=>{g(!!a&&n)}),children:[Object(h.jsx)(s.a,{expandIcon:Object(h.jsx)(o.a,{children:"expand_more"}),children:Object(h.jsxs)("div",{className:"flex items-center py-4",children:[Object(h.jsx)(o.a,{color:"action",children:"help_outline"}),Object(h.jsx)(u.a,{className:"px-12 font-medium",children:t.question})]})}),Object(h.jsx)(r.a,{children:Object(h.jsx)(u.a,{className:"text-14 px-32 pb-8 -mt-8",children:t.answer})})]},t.id);var n}))})}),[l,e,O])]})]})}}}]);