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AasF,QAAAA,GAAAA,KAAAA,IAAAA,EAAbtF,KAAAA,EAAAA,EAAuBwF,gBACpCC,IAAKzF,OAAAA,CAAAA,EAAAA,EAAQqF,GAAAA,GAARrF,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,OAAAA,CAAAA,EAAAA,EAAasF,QAAAA,GAAAA,KAAAA,IAAAA,EAAbtF,KAAAA,EAAAA,EAAuB0F,aAC5BC,OAAQ,CACJ,CACIF,IAAKlH,EACLO,IAAKkB,OAAAA,CAAAA,EAAAA,EAAQqF,GAAAA,GAARrF,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,OAAAA,CAAAA,EAAAA,EAAasF,QAAAA,GAAAA,KAAAA,IAAAA,EAAbtF,KAAAA,EAAAA,EAAuB4F,YAChC,EACH,CAET,CACA,MAAO,CAAC,CACZ,WAyCAP,EAvCsB,KAKlB,GAAM,CAAE9G,mBAAAA,CAAAA,CAAoB,CAAGD,EACzB,CAAEuH,KAAM7F,CAAAA,CAAS,CAAG8F,IACpBR,EAAWF,EAAiB7G,EAAoByB,GAEtD,MACI,GAAAZ,EAAAC,GAAA,EAAC0G,EAAAA,EAAMA,CAACC,SAAUV,WACd,GAAAlG,EAAAC,GAAA,EAAC4G,EAAOA,CAACjG,QAASA,EAAS1B,SAAUA,KAGjD,qBCjDA4H,EAAAC,QAAA,CAAkB","sources":["webpack://_N_E/?d9f8","webpack://_N_E/./utils/queries/hooks/useFaqData.ts","webpack://_N_E/./utils/mockData/faqMocks.ts","webpack://_N_E/./components/faq/FaqIcon.tsx","webpack://_N_E/./components/faq/FaqList.tsx","webpack://_N_E/./components/faq/FaqBody.tsx","webpack://_N_E/./pages/faq.tsx","webpack://_N_E/./styles/faq/FaqList.module.scss","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/faq\",\n function () {\n return require(\"private-next-pages/faq.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/faq\"])\n });\n }\n ","import { useQuery } from \"@tanstack/react-query\";\nimport { getFaqData } from \"..\";\n\nconst useFaqData = () => {\n return useQuery({\n queryKey: [\"faq-data\"],\n queryFn: () => getFaqData(),\n refetchOnWindowFocus: false,\n });\n};\n\nexport default useFaqData;\n","import {\n HeadSectionContent,\n SectionsTitleText,\n} from \"../../models/common/common\";\nimport colors from \"../../styles/colors.module.scss\";\n\nconst headTitle: SectionsTitleText[] = [\n {\n text: \"Find every answer here\",\n color: colors.textWhiteLight,\n fontWeight: \"fw-bold\",\n newLine: true,\n },\n];\n\nconst headSubTitle: SectionsTitleText[] = [\n {\n text: \"\",\n color: colors.textWhiteLight,\n fontWeight: \"fw-bold\",\n newLine: false,\n },\n];\n\nexport const headData: HeadSectionContent = {\n backgroundImageUrl:\n \"https://images.unsplash.com/photo-1633613286848-e6f43bbafb8d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80\",\n title: headTitle,\n subTitle: headSubTitle,\n};\n\nexport const faqListTitle: SectionsTitleText[] = [\n {\n text: \"Frequently\",\n color: colors.textPrimary,\n fontWeight: \"fw-bold\",\n newLine: false,\n },\n {\n text: \"Asked Questions\",\n color: colors.textBlack,\n fontWeight: \"fw-bold\",\n newLine: false,\n },\n];\n\nexport const faqListSubTitle: SectionsTitleText[] = [\n {\n text: \"We created a set of Frequently Asked Questions to satisfy any of your curiosities or doubts.\",\n color: colors.textBlackThree,\n fontWeight: \"\",\n newLine: true,\n },\n {\n text: \"We hope we’ve been helpful!\",\n color: colors.textBlackThree,\n fontWeight: \"\",\n newLine: false,\n },\n];\n","import { MDBCol } from \"mdb-react-ui-kit\";\nimport { FC, useState } from \"react\";\nimport Image from \"next/image\";\n\nconst FaqIcon: FC<{ src: string; alt: string; className?: string }> = ({\n src,\n alt,\n className = \"\",\n}) => {\n const [imageError, setImageError] = useState(false);\n\n return (\n \n {\n setImageError(true);\n }}\n />\n \n );\n};\n\nexport default FaqIcon;\n","import {\n MDBAccordion,\n MDBAccordionItem,\n MDBCol,\n MDBContainer,\n MDBListGroup,\n MDBListGroupItem,\n MDBRow,\n MDBTabs,\n MDBTabsContent,\n MDBTabsLink,\n MDBTabsPane,\n} from \"mdb-react-ui-kit\";\nimport { useState } from \"react\";\nimport styles from \"@/styles/faq/FaqList.module.scss\";\nimport { QuillDeltaToHtmlConverter } from \"quill-delta-to-html\";\nimport { IFaqData } from \"@/models/faq\";\nimport { ISectionTitle } from \"../../models/common/common\";\nimport { useIsMD } from \"../../utils/hooks/useWindowSizes\";\nimport { faqListSubTitle, faqListTitle } from \"../../utils/mockData/faqMocks\";\nimport userInterfaceSvg from \"../../utils/svg-icon/userInterface\";\nimport SectionTitle from \"../common/SectionTitle\";\nimport FaqIcon from \"./FaqIcon\";\n\nconst FaqList = ({ faqData }: { faqData?: IFaqData }) => {\n // const { data: faqData } = useFaqData();\n const [basicActive, setBasicActive] = useState(\n faqData?.faqs?.at(0)?.faqCategoryName || \"\"\n );\n\n const [showSelection, setShowSelection] = useState(false);\n\n const zeroPad = (num: number, places: number) =>\n String(num).padStart(places, \"0\");\n\n const handleBasicClick = (value: string) => {\n if (showSelection) {\n setShowSelection(false);\n }\n\n if (value === basicActive) return;\n\n setBasicActive(value);\n };\n\n const hasSelectedActiveTab = (tab: string) => {\n return basicActive === tab;\n };\n\n const title: ISectionTitle = {\n title: faqListTitle,\n subTitle: faqListSubTitle,\n titleColumnSize: 12,\n spaceBetween: 2,\n alignment: \"justify-content-start text-start\",\n classNameContainer: \"py-3\",\n };\n\n return (\n \n \n \n \n \n \n \n \n \n {useIsMD() && (\n \n
\n

{basicActive}

\n \n setShowSelection(!showSelection)\n }\n >\n {showSelection ? (\n \n ) : (\n \n )}\n \n
\n {showSelection ? (\n \n \n {faqData?.faqs?.map(el => (\n \n handleBasicClick(\n el.faqCategoryName\n )\n }\n >\n

\n {el.faqCategoryName}\n

\n \n ))}\n \n \n ) : null}\n
\n )}\n {!useIsMD() && (\n \n \n \n {faqData?.faqs?.map(el => (\n \n \n handleBasicClick(\n el.faqCategoryName\n )\n }\n style={{\n padding: \"16px 24px\",\n }}\n >\n \n \n \n {el.faqCategoryName}\n \n
\n \n \n ))}\n \n \n \n )}\n\n \n \n {faqData?.faqs?.map(el => (\n \n \n {el.faqs.map((item, id) => {\n const convertedAnswer =\n new QuillDeltaToHtmlConverter(\n item.answerDelta?.ops ??\n []\n );\n const convertedQuestion =\n new QuillDeltaToHtmlConverter(\n item.questionDelta\n ?.ops ?? []\n );\n\n const htmlAnswer =\n convertedAnswer.convert();\n\n const htmlQuestion =\n convertedQuestion.convert();\n\n return (\n \n \n {zeroPad(\n id + 1,\n 2\n )}\n \n \n {!!convertedQuestion &&\n item\n .questionDelta\n ?.ops ? (\n \n ) : (\n

\n {\n item.question\n }\n

\n )}\n \n \n }\n className={\n styles.accordionItem\n }\n >\n {!!convertedAnswer &&\n item.answerDelta\n ?.ops ? (\n \n ) : (\n

{item.answer}

\n )}\n \n );\n })}\n \n \n ))}\n \n \n \n \n \n
\n );\n};\n\nexport default FaqList;\n","import { IFaqData } from \"@/models/faq\";\n// import useFaqData from \"../../utils/queries/hooks/useFaqData\";\nimport { HeadSectionContent } from \"@/models/common/common\";\nimport HeadSection from \"../common/HeadSection\";\nimport Brochures from \"../home/brochures/Brochures\";\nimport Help from \"../playWithUs/Help\";\nimport FaqList from \"./FaqList\";\n\nconst FaqBody = ({\n faqData,\n headData,\n}: {\n faqData?: IFaqData;\n headData: HeadSectionContent;\n}) => {\n // const { data: faqData } = useFaqData();\n // const { backgroundImageUrl } = headData;\n\n return (\n
\n \n \n \n \n
\n );\n};\n\nexport default FaqBody;\n","import { dehydrate, DehydratedState, QueryClient } from \"@tanstack/react-query\";\nimport type { GetServerSideProps, NextPage } from \"next\";\nimport { ESeoPage } from \"@/utils/mockData/metaMocks\";\nimport {\n getBrochureData,\n getFaqData,\n getNavBarData,\n getSeoInfo,\n} from \"@/utils/queries\";\nimport useFaqData from \"@/utils/queries/hooks/useFaqData\";\nimport { OpenGraph } from \"next-seo/lib/types\";\nimport { IFaqData } from \"@/models/faq\";\nimport FaqBody from \"../components/faq/FaqBody\";\nimport Layout from \"../components/common/Layout\";\nimport { headData } from \"../utils/mockData/faqMocks\";\n\nconst getOpenGraphData = (\n backgroundImageUrl: string,\n faqData?: IFaqData\n): OpenGraph => {\n if (faqData) {\n return {\n title: faqData.faq?.metadata?.title,\n description: faqData.faq?.metadata?.metaDescription,\n url: faqData.faq?.metadata?.urlCanonical,\n images: [\n {\n url: backgroundImageUrl,\n alt: faqData.faq?.metadata?.altHeadImage,\n },\n ],\n };\n }\n return {};\n};\n\nconst Faq: NextPage = () => {\n // const { data: metaTags } = useQuery({\n // queryKey: [\"metaTags\", ESeoPage.FAQ],\n // queryFn: () => getSeoInfo(ESeoPage.FAQ),\n // });\n const { backgroundImageUrl } = headData;\n const { data: faqData } = useFaqData();\n const metadata = getOpenGraphData(backgroundImageUrl, faqData);\n\n return (\n \n \n \n );\n};\n\nexport const getServerSideProps: GetServerSideProps = async (): Promise<{\n props: {\n dehydratedState: DehydratedState;\n };\n}> => {\n const queryClient = new QueryClient();\n\n await Promise.all([\n await queryClient.prefetchQuery([\"navBar\"], getNavBarData),\n await queryClient.prefetchQuery([\"brochures\"], getBrochureData),\n await queryClient.prefetchQuery([\"metaTags\", ESeoPage.FAQ], () =>\n getSeoInfo(ESeoPage.FAQ)\n ),\n await queryClient.prefetchQuery([\"faq-data\"], () => getFaqData()),\n ]);\n\n return {\n props: {\n dehydratedState: dehydrate(queryClient),\n },\n };\n};\n\nexport default Faq;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"accordionItem\":\"FaqList_accordionItem__1GF4M\",\"collapsed\":\"FaqList_collapsed__7FgRp\",\"accordionNumber\":\"FaqList_accordionNumber__xyQqP\",\"listGroupActive\":\"FaqList_listGroupActive__qEnTm\",\"listGroup\":\"FaqList_listGroup__BLYyz\",\"sortingOptionContainer\":\"FaqList_sortingOptionContainer___heFG\",\"sortingOptionInnerContainer\":\"FaqList_sortingOptionInnerContainer__E5_WG\",\"sortingOption\":\"FaqList_sortingOption__87wJ9\",\"sortingOptionSelected\":\"FaqList_sortingOptionSelected__muxgY\",\"sortingSelect\":\"FaqList_sortingSelect__kWktg\"};"],"names":["window","__NEXT_P","push","__webpack_require__","hooks_useFaqData","useQuery","queryKey","queryFn","getFaqData","refetchOnWindowFocus","headTitle","text","color","colors","fontWeight","newLine","headSubTitle","headData","backgroundImageUrl","title","subTitle","faqListTitle","faqListSubTitle","faq_FaqIcon","src","alt","className","param","imageError","setImageError","useState","jsx_runtime","jsx","MDBCol","size","center","style","height","Image","fill","objectFit","onError","faq_FaqList","faqData","basicActive","setBasicActive","faqs","at","faqCategoryName","showSelection","setShowSelection","zeroPad","num","places","String","padStart","handleBasicClick","value","hasSelectedActiveTab","tab","jsxs","MDBContainer","fluid","MDBRow","md","lg","SectionTitle","sectionTitle","titleColumnSize","spaceBetween","alignment","classNameContainer","useIsMD","div","styles","p","span","onClick","userInterfaceSvg","ArrowUpSimpleLine","ArrowDownSimpleLine","map","el","concat","faqCategoryIcon","xl","MDBListGroup","light","small","MDBTabs","MDBListGroupItem","id","action","active","noBorders","MDBTabsLink","padding","FaqIcon","textTransform","MDBTabsContent","MDBTabsPane","show","MDBAccordion","alwaysOpen","item","convertedAnswer","QuillDeltaToHtmlConverter","answerDelta","ops","convertedQuestion","questionDelta","htmlAnswer","convert","htmlQuestion","MDBAccordionItem","collapseId","headerTitle","dangerouslySetInnerHTML","__html","question","answer","faq_FaqBody","HeadSection","content","FaqList","Help","Brochures","getOpenGraphData","faq","metadata","description","metaDescription","url","urlCanonical","images","altHeadImage","data","useFaqData","Layout","metaTags","FaqBody","module","exports"],"sourceRoot":""}