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kCAAkC,KAAO,0BAA0B,WAAa,mC","sources":["webpack://_N_E/./node_modules/next-translate/lib/esm/formatElements.js","webpack://_N_E/./node_modules/next-translate/lib/esm/Trans.js","webpack://_N_E/?c14e","webpack://_N_E/./src/components/NextSeoWrapper.tsx","webpack://_N_E/./src/components/PageContainer/index.tsx","webpack://_N_E/./src/pages/privacy.tsx","webpack://_N_E/./src/utils/string.ts","webpack://_N_E/./src/components/PageContainer/PageContainer.module.scss","webpack://_N_E/./src/pages/contentPage.module.scss"],"sourcesContent":["import React, { cloneElement, Fragment } from 'react';\nvar tagRe = /<(\\w+)>(.*?)<\\/\\1>|<(\\w+)\\/>/;\nvar nlRe = /(?:\\r\\n|\\r|\\n)/g;\nfunction getElements(parts) {\n if (!parts.length)\n return [];\n var _a = parts.slice(0, 4), paired = _a[0], children = _a[1], unpaired = _a[2], after = _a[3];\n return [\n [(paired || unpaired), children || '', after],\n ].concat(getElements(parts.slice(4, parts.length)));\n}\nexport default function formatElements(value, elements) {\n if (elements === void 0) { elements = []; }\n var parts = value.replace(nlRe, '').split(tagRe);\n if (parts.length === 1)\n return value;\n var tree = [];\n var before = parts.shift();\n if (before)\n tree.push(before);\n getElements(parts).forEach(function (_a, realIndex) {\n var key = _a[0], children = _a[1], after = _a[2];\n var element = elements[key] || React.createElement(Fragment, null);\n tree.push(cloneElement(element, { key: realIndex }, children ? formatElements(children, elements) : element.props.children));\n if (after)\n tree.push(after);\n });\n return tree;\n}\n","import { useMemo } from 'react';\nimport useTranslation from './useTranslation';\nimport formatElements from './formatElements';\nexport default function Trans(_a) {\n var i18nKey = _a.i18nKey, values = _a.values, components = _a.components, fallback = _a.fallback, defaultTrans = _a.defaultTrans, ns = _a.ns;\n var _b = useTranslation(ns), t = _b.t, lang = _b.lang;\n var result = useMemo(function () {\n var text = t(i18nKey, values, { fallback: fallback, default: defaultTrans });\n if (!components || components.length === 0)\n return text;\n return formatElements(text, components);\n }, [i18nKey, values, components, lang]);\n return result;\n}\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/privacy\",\n function () {\n return require(\"private-next-pages/privacy.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/privacy\"])\n });\n }\n ","import React from 'react';\n\nimport { NextSeo } from 'next-seo';\n\nimport { SEOProps } from '@/utils/seo';\nimport { truncateString } from '@/utils/string';\n\ninterface Props extends SEOProps {\n url?: string;\n image?: string;\n imageAlt?: string;\n imageWidth?: number;\n imageHeight?: number;\n}\n\nconst NextSeoWrapper: React.FC<Props> = (props) => {\n const { url, image, imageAlt, imageHeight, imageWidth, openGraph, description, ...rest } = props;\n const openGraphParams = {\n ...(openGraph && { openGraph }),\n ...(url && { url }),\n ...(image && {\n images: [{ url: image, width: imageWidth, height: imageHeight, alt: imageAlt }],\n }),\n };\n const params = {\n ...rest,\n ...(description && { description: truncateString(description, 150) }),\n };\n return <NextSeo {...params} openGraph={openGraphParams} />;\n};\n\nexport default NextSeoWrapper;\n","import { ReactNode, FC } from 'react';\n\nimport styles from './PageContainer.module.scss';\n\ntype Props = {\n children: ReactNode | ReactNode[];\n};\n\nconst PageContainer: FC<Props> = ({ children }) => {\n return <div className={styles.container}>{children}</div>;\n};\n\nexport default PageContainer;\n","/* eslint-disable jsx-a11y/anchor-has-content */\n/* eslint-disable jsx-a11y/control-has-associated-label */\nimport { NextPage } from 'next';\nimport Trans from 'next-translate/Trans';\nimport useTranslation from 'next-translate/useTranslation';\n\nimport styles from './contentPage.module.scss';\n\nimport NextSeoWrapper from '@/components/NextSeoWrapper';\nimport PageContainer from '@/components/PageContainer';\nimport { getLanguageAlternates } from '@/utils/locale';\nimport { getCanonicalUrl } from '@/utils/navigation';\n\nconst PATH = '/privacy';\nconst PrivacyPage: NextPage = (): JSX.Element => {\n const { t, lang } = useTranslation('privacy');\n\n return (\n <>\n <NextSeoWrapper\n title={t('privacy-header')}\n url={getCanonicalUrl(lang, PATH)}\n languageAlternates={getLanguageAlternates(PATH)}\n />\n <PageContainer>\n <div className={styles.contentPage}>\n <h1>{t('privacy-header')}</h1>\n <p>{t('main-privacy-desc')}</p>\n <h2>{t('info-collection.title')}</h2>\n <p>\n <Trans\n components={{\n br: <br />,\n underline: <span className={styles.underline} />,\n }}\n i18nKey=\"privacy:info-collection.desc\"\n />\n </p>\n <h2>{t('personal-info-use.title')}</h2>\n <p>\n <Trans\n components={{\n br: <br />,\n li: <li />,\n underline: <span className={styles.underline} />,\n }}\n i18nKey=\"privacy:personal-info-use.desc\"\n />\n </p>\n <h2>{t('log-data.title')}</h2>\n <p>{t('log-data.desc')}</p>\n <h2>{t('communication.title')}</h2>\n <p>{t('communication.desc')}</p>\n <h2>{t('data-protection.title')}</h2>\n <p>\n <Trans\n components={{\n br: <br />,\n boldSpan: <span key={2} className={styles.bold} />,\n }}\n i18nKey=\"privacy:data-protection.desc\"\n />\n </p>\n <h2>{t('data-security.title')}</h2>\n <p>{t('data-security.desc')}</p>\n <h2>{t('data-sharing.title')}</h2>\n <p>{t('data-sharing.desc')}</p>\n <h2>{t('data-analysis.title')}</h2>\n <p>{t('data-analysis.desc')}</p>\n <h2>{t('data-deletion.title')}</h2>\n <p>{t('data-deletion.desc')}</p>\n <h2>{t('cookies.title')}</h2>\n <p>\n <Trans\n components={{\n br: <br />,\n li: <li />,\n subLi: <li className={styles.subListItem} />,\n underline: <span className={styles.underline} />,\n }}\n i18nKey=\"privacy:cookies.desc\"\n />\n </p>\n <h2>{t('contact-us.title')}</h2>\n <p>\n <Trans\n components={{\n br: <br />,\n li: <li />,\n underline: <span className={styles.underline} />,\n 0: (\n <a key={0} href=\"mailto:info@quran.foundation\" target=\"_blank\" rel=\"noreferrer\" />\n ),\n }}\n i18nKey=\"privacy:contact-us.desc\"\n />\n </p>\n </div>\n </PageContainer>\n </>\n );\n};\n\nexport default PrivacyPage;\n","/**\n * Shorten a text by setting the maximum number of characters\n * by the value of the parameter and adding \"...\" at the end.\n *\n * @param {string} rawString\n * @param {number} length\n * @param {string} suffix\n * @returns {string}\n */\nexport const truncateString = (rawString: string, length: number, suffix = '...'): string => {\n const characters = rawString.split('', length);\n let shortenedText = '';\n for (let index = 0; index < characters.length; index += 1) {\n const character = characters[index];\n if (shortenedText.length === length - 1) {\n shortenedText = `${shortenedText}${character}${suffix}`;\n break;\n }\n shortenedText = `${shortenedText}${character}`;\n }\n return shortenedText;\n};\n\n/**\n * Strip HTML tags from a string.\n *\n * @param {string} rawString\n * @returns {string}\n */\nexport const stripHTMLTags = (rawString: string): string => rawString.replace(/(<([^>]+)>)/gi, '');\n\n/**\n * Convert a slugified collection id to collection id only after\n * removing the slug.\n *\n * @param {string} slugifiedCollectionId\n * @returns {string}\n */\nexport const slugifiedCollectionIdToCollectionId = (slugifiedCollectionId: string): string => {\n if (!slugifiedCollectionId) {\n return '';\n }\n const splits = slugifiedCollectionId.split('-');\n // if there is no slug in the url (collections with a name that cannot be slugified e.g. emoticons)\n if (splits.length === 1) {\n return splits[0];\n }\n return splits[splits.length - 1];\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"PageContainer_container__1TUET\",\"fullWidth\":\"PageContainer_fullWidth__RU5GM\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contentPage\":\"contentPage_contentPage__GtoGM\",\"heading\":\"contentPage_heading__COCGv\",\"italicLarge\":\"contentPage_italicLarge__JVHhO\",\"image\":\"contentPage_image__Vgw2Y\",\"list\":\"contentPage_list__yuDCq\",\"underline\":\"contentPage_underline__1hrK7\",\"subListItem\":\"contentPage_subListItem__jozHS\",\"ctaContainer\":\"contentPage_ctaContainer__WdRQb\",\"section\":\"contentPage_section__mOqj2\",\"subSection\":\"contentPage_subSection__Crmto\",\"innerSection\":\"contentPage_innerSection__K7hW3\",\"bold\":\"contentPage_bold___v0J7\",\"subHeading\":\"contentPage_subHeading__kNRWM\"};"],"names":["tagRe","nlRe","getElements","parts","length","_a","slice","paired","children","unpaired","concat","formatElements","value","elements","replace","split","tree","before","shift","push","forEach","realIndex","key","after","element","Fragment","cloneElement","props","Trans","i18nKey","values","components","fallback","defaultTrans","ns","_b","useTranslation","t","lang","useMemo","text","default","window","__NEXT_P","url","image","imageAlt","imageHeight","imageWidth","openGraph","description","rest","openGraphParams","images","width","height","alt","params","truncateString","NextSeo","div","className","styles","PATH","NextSeoWrapper","title","getCanonicalUrl","languageAlternates","getLanguageAlternates","PageContainer","h1","p","h2","br","underline","span","li","boldSpan","subLi","a","href","target","rel","rawString","suffix","characters","shortenedText","index","character","stripHTMLTags","slugifiedCollectionIdToCollectionId","slugifiedCollectionId","splits","module","exports"],"sourceRoot":""}