"use strict";exports.id=5287,exports.ids=[5287],exports.modules={47080:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var n=s(20997),r=s(89699),i=s.n(r),l=s(13153),o=s(34483),d=s(81392),c=s(60802),h=s(57987),g=e([h]);h=(g.then?(await g)():g)[0];let __WEBPACK_DEFAULT_EXPORT__=({isLoading:e,faqs:t,loadMore:s,hasMore:a,isLoadingMore:r})=>{let{t:g}=(0,h.useTranslation)();return n.jsx(n.Fragment,{children:e?n.jsx("div",{className:"py-32",children:n.jsx(o.wY,{showText:!1})}):i()(t)?n.jsx("div",{className:"py-32",children:n.jsx(l.Z,{title:"No help found \uD83D\uDE14",message:""})}):(0,n.jsxs)(n.Fragment,{children:[t?.map(e=>n.jsx(d.Z,{items:e},`${e?.faq_title}-${e.id}`)),a&&n.jsx("div",{className:"mt-8 grid place-content-center md:mt-10",children:n.jsx(c.Z,{onClick:s,disabled:r,isLoading:r,children:g("text-loadmore")})})]})})};a()}catch(e){a(e)}})},86998:(e,t,s)=>{s.d(t,{V:()=>ChevronRightNew,_:()=>ChevronRight});var a=s(20997);let ChevronRight=e=>a.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),ChevronRightNew=e=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:a.jsx("path",{d:"M5.849 5c0 .18-.069.358-.205.495l-4.3 4.3a.7.7 0 11-.99-.99L4.157 5 .354 1.196a.7.7 0 01.99-.99l4.3 4.299A.698.698 0 015.849 5z",fill:"currentColor"})})},32758:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{c:()=>useFAQs});var n=s(54574),r=s(77649),i=s(11163),l=s(61175),o=e([n]);function useFAQs(e){let{locale:t}=(0,i.useRouter)(),s={...e,language:t},{data:a,isLoading:o,error:d,fetchNextPage:c,hasNextPage:h,isFetchingNextPage:g}=(0,l.useInfiniteQuery)([r.P.FAQS,s],({queryKey:e,pageParam:t})=>n.Z.faqs.all(Object.assign({},e[1],t)),{getNextPageParam:({current_page:e,last_page:t})=>t>e&&{page:e+1}});return{faqs:a?.pages.flatMap(e=>e.data)??[],paginatorInfo:Array.isArray(a?.pages)?a?.pages[a.pages.length-1]:null,hasNextPage:h,isLoadingMore:g,isLoading:o,error:d,loadMore:function(){c()}}}n=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})}};