1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e7a0c69-d4a7-4aec-a2e5-c8affe3b8406",e._sentryDebugIdIdentifier="sentry-dbid-2e7a0c69-d4a7-4aec-a2e5-c8affe3b8406")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1188],{85860:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/faqs",function(){return s(5548)}])},83118:function(e,t,s){"use strict";var a=s(85893),r=s(11163),l=s(89583),i=s(5434),n=s(96225);let d=(e,t,s,a)=>{let r={...e,isToggled:e.id===a&&!e.isToggled},l=t.map(e=>({...e,isToggled:!1})),i={...s,main:r,sub:l};return i},c=(e,t,s)=>{let a=e.map(e=>({...e,isToggled:e.id===s?!e.isToggled:e.isToggled})),r={...t,sub:a};return r},o=e=>{let{faqs:t,setFaqs:s}=e,o=(0,r.useRouter)(),u=(e,a)=>{let r=Object.values(t).map(t=>{let{main:s,sub:r}=t,l="main"===a?d(s,r,t,e):c(r,t,e);return l});s(r)},m=(e,t)=>{if(!t)return(0,a.jsx)("div",{className:"max-h-0 opacity-0"});let s=e.map(e=>{let{id:t,slug:s,question:r}=e;return(0,a.jsxs)("div",{className:"group text-[0.9rem] font-medium flex items-start gap-3 px-10 pt-2 pb-4",children:[(0,a.jsx)(n.kqj,{size:20,className:"text-gray-500 group-hover:text-gray-800 min-w-[18px] mt-[1px]"}),(0,a.jsx)("span",{className:"cursor-pointer underline text-gray-500 group-hover:text-gray-800",onClick:()=>o.push("/faqs/".concat(s)),children:r})]},t)});return(0,a.jsx)("div",{className:"h-full opacity-100 transition-all origin-top duration-500 pb-4",children:s})},x=(e,t)=>{if(!t)return(0,a.jsx)("div",{className:"max-h-0 opacity-0"});let s=e.map(e=>{let t=!0===e.isToggled,s=(0,a.jsx)(l.$Pg,{size:20,className:"min-w-[20px]"}),r=(0,a.jsx)(l.iUH,{size:20,className:"min-w-[20px]"});return(0,a.jsxs)("div",{className:"text-md font-medium border-t",children:[(0,a.jsxs)("aside",{className:"flex items-center justify-between gap-3 cursor-pointer text-gray-600 pl-5 pr-8 md:pl-8 md:pr-8 py-4",onClick:()=>u(e.id,"sub"),children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)(i.VKw,{size:20,className:"min-w-[20px] mt-[2px]"}),e.title]}),!1===t?s:r]}),m(e.questions,t)]},e.id)});return(0,a.jsx)("div",{className:"h-full opacity-100 transition-all origin-top duration-500",children:s})};return(0,a.jsx)("div",{className:"mx-auto table rounded-md overflow-hidden shadow-md w-full max-w-3xl divide-y-2",children:(e=>{let t=Object.values(e).map(e=>{let t=e.main,s=e.sub,r=!0===t.isToggled,i=(0,a.jsx)(l.$Pg,{size:20,className:"min-w-[20px]"}),n=(0,a.jsx)(l.iUH,{size:20,className:"min-w-[20px]"}),d=!1===t.isToggled?i:n;return(0,a.jsxs)("div",{className:"bg-white",children:[(0,a.jsxs)("aside",{className:"flex items-center justify-between cursor-pointer px-5 py-5 font-bold hover:bg-gray-50 gap-3",onClick:()=>u(t.id,"main"),children:[t.title," ",d]}),x(s,r)]},t.id)});return(0,a.jsx)(a.Fragment,{children:t})})(t)})};t.Z=o},11425:function(e,t,s){"use strict";var a=s(85893),r=s(11163),l=s(47516);let i=e=>{let{searchKey:t,setSearchKey:s,resetSearch:i}=e,n=(0,r.useRouter)(),d=!!(t&&t.length>0),c=()=>{let e=t.toLowerCase().trim().replace(/\s+/g,"-");n.push("faqs/search/".concat(e))},o=e=>{s(e.target.value)},u=e=>{"Enter"===e.key&&(e.preventDefault(),d?c():i())};return(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("div",{className:"relative grow group flex items-stretch gap-2",children:[(0,a.jsx)("input",{type:"text",value:t,onChange:o,onKeyDown:u,placeholder:"Type a question, topic or issue",className:"".concat(d?"border-2 border-black":"border-2 border-gray-400"," bg-white w-full h-[50px] focus:outline-none focus:border-black pl-[40px] pr-3 text-[14px] md:text-[16px] rounded-md")}),(0,a.jsx)("div",{className:"absolute left-0 top-0 max-w-[45px] h-full w-full p-[0.5rem] rounded-sm flex items-center justify-center",children:(0,a.jsx)(l.Goc,{size:22,color:"gray"})})]})})};t.Z=i},13564:function(e,t,s){"use strict";var a=s(85893);let r=e=>{let{children:t,className:s,isHeader:r=!1}=e,l="relative md:container md:mx-auto ".concat(r?"py-3":"py-10"," px-3 md:px-5"),i=s&&s.length>0,n=i?l.concat(" ".concat(s)):l;return(0,a.jsx)("div",{className:n,children:t})};t.Z=r},5548:function(e,t,s){"use strict";s.r(t);var a=s(85893),r=s(67294),l=s(13564),i=s(83118),n=s(11425);let d=()=>{let[e,t]=(0,r.useState)(null),[s,d]=(0,r.useState)(!1),[c,o]=(0,r.useState)(""),u=()=>{o(""),t(null)},m=async()=>{try{d(!0);let e=await fetch("/api/home/list/faqs"),s=await e.json();(200===e.status||304===e.status)&&(t(s),d(!1))}finally{d(!1)}};return(0,r.useEffect)(()=>{m()}
1,[]),(0,a.jsx)("div",{className:"bg-gray-200 md:min-h-[60vh] flex items-center justify-center",children:(0,a.jsx)(l.Z,{children:(0,a.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,a.jsx)("div",{className:"font-extrabold text-2xl md:text-3xl text-center",children:"HOW CAN WE HELP?"}),(0,a.jsx)("div",{className:"text-gray-800 mt-3 text-center",children:"Answers to our most frequently asked questions are just one click away."}),(e=>{let r=e&&Object.values(e)&&Object.values(e).length>0;if(s){let e=Array.from({length:5}).map((e,t)=>(0,a.jsxs)("div",{className:"px-5 py-5 bg-white flex justify-between",children:[(0,a.jsx)("div",{className:"w-1/3 h-5 bg-gray-100 animate-pulse rounded-md"}),(0,a.jsx)("div",{className:"w-5 h-5 bg-gray-100 animate-pulse rounded-md"})]},t));return(0,a.jsx)("div",{className:"mt-5 md:mt-8 mx-auto table rounded-md overflow-hidden shadow-md w-full divide-y-2",children:e})}return r?(0,a.jsxs)("div",{className:"mt-5 md:mt-8 mb-10 md:mb-20 space-y-12",children:[(0,a.jsx)(n.Z,{searchKey:c,setSearchKey:o,resetSearch:u}),(0,a.jsx)(i.Z,{faqs:e,setFaqs:t})]}):(0,a.jsxs)("div",{className:"mt-5 flex min-h-[20vh] bg-gray-50 border flex-col items-center justify-center gap-2 rounded-xl p-5 text-center md:mt-8",children:[(0,a.jsx)("div",{className:"text-base font-bold text-gray-700",children:"There are no FAQs yet"}),(0,a.jsx)("div",{className:"text-gray-500",children:"Please come back later"})]})})(e)]})})})};t.default=d}},function(e){e.O(0,[1228,3874,7627,9774,2888,179],function(){return e(e.s=85860)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.