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,IAAGW,EAAM,EAANA,OAClB,OACE,UAAChB,MAAG,C,WACF,SAACA,MAAG,CAACC,UAAWC,IAAAA,U,SACbc,EAAOQ,KAAI,SAACC,G,OACX,SAACzB,MAAG,CAAgBC,UAAWC,IAAAA,MAAce,GAAIQ,EAAMR,G,SACpDQ,EAAMP,WADCO,EAAMR,UAKpB,SAACjB,MAAG,CAACC,UAAWC,IAAAA,c,SACbc,EAAOQ,KAAI,SAACC,G,OACX,SAACzB,MAAG,CAAgBC,UAAWC,IAAAA,KAArBuB,EAAMR,c,kBCtB1BS,EAAOC,QAAU,CAAC,UAAY,sC,kBCA9BD,EAAOC,QAAU,CAAC,SAAW,2B,kBCA7BD,EAAOC,QAAU,CAAC,UAAY,4BAA4B,MAAQ,wBAAwB,cAAgB,gCAAgC,IAAM,wB,kBCAhJD,EAAOC,QAAU,CAAC,gBAAkB,+BAA+B,eAAiB,8BAA8B,MAAQ,qBAAqB,gBAAkB,+BAA+B,YAAc","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/./src/components/Auth/Announcements/AnnouncementBody/index.tsx","webpack://_N_E/./src/components/Auth/Announcements/CollectionsAnnouncement/Slides/Slide1/index.tsx","webpack://_N_E/./src/components/Auth/Announcements/CollectionsAnnouncement/index.tsx","webpack://_N_E/./src/components/dls/Carousel/Slide/index.tsx","webpack://_N_E/./src/components/dls/Carousel/index.tsx","webpack://_N_E/./src/components/Auth/Announcements/AnnouncementBody/AnnouncementBody.module.scss","webpack://_N_E/./src/components/Auth/Announcements/CollectionsAnnouncement/Slides/Slide1/Slide1.module.scss","webpack://_N_E/./src/components/dls/Carousel/Carousel.module.scss","webpack://_N_E/./src/components/dls/Carousel/Slide/Slide.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","import React from 'react';\n\nimport styles from './AnnouncementBody.module.scss';\n\ntype Props = {\n children: React.ReactNode;\n};\n\nconst AnnouncementBody: React.FC = ({ children }) => {\n return
{children}
;\n};\n\nexport default AnnouncementBody;\n","import React from 'react';\n\nimport Trans from 'next-translate/Trans';\nimport useTranslation from 'next-translate/useTranslation';\n\nimport styles from './Slide1.module.scss';\n\nimport Button from '@/dls/Button/Button';\nimport Slide from '@/dls/Carousel/Slide';\n\ntype Props = {\n onComplete: () => void;\n};\n\nconst Slide1: React.FC = ({ onComplete }) => {\n const { t } = useTranslation('common');\n return (\n {t('announcements.auth-onboarding.slide-3.action')}\n }\n titleKey=\"common:announcements.collections-announcement.slide-1.title\"\n description={\n , li:
  • , ul:
      }}\n i18nKey=\"common:announcements.collections-announcement.slide-1.description\"\n />\n }\n />\n );\n};\n\nexport default Slide1;\n","import React from 'react';\n\nimport AnnouncementBody from '../AnnouncementBody';\n\nimport Slide1 from './Slides/Slide1';\n\nimport Carousel from '@/dls/Carousel';\nimport { logCarouselSlideCompletion } from '@/utils/eventLogger';\n\ntype Props = {\n onCompleted: () => void;\n};\n\nconst CollectionsAnnouncement: React.FC = ({ onCompleted }) => {\n const onLastSlideCompleted = () => {\n logCarouselSlideCompletion('collections_announcement', 1);\n onCompleted();\n };\n\n return (\n \n ,\n },\n ]}\n />\n \n );\n};\n\nexport default CollectionsAnnouncement;\n","import React from 'react';\n\nimport Trans from 'next-translate/Trans';\n\nimport styles from './Slide.module.scss';\n\ntype Props = {\n action: React.ReactNode;\n header?: React.ReactNode;\n titleKey?: string;\n description?: React.ReactNode;\n};\n\nconst Slide: React.FC = ({ action, titleKey, description, header }) => {\n return (\n
      \n {header &&
      {header}
      }\n {titleKey && (\n

      \n }} i18nKey={titleKey} />\n

      \n )}\n
      \n

      {description}

      \n
      \n
      {action}
      \n
      \n );\n};\n\nexport default Slide;\n","import { ReactNode } from 'react';\n\nimport styles from './Carousel.module.scss';\n\ntype CarouselProps = {\n slides: {\n id: string;\n component: ReactNode;\n }[];\n};\n\nconst Carousel = ({ slides }: CarouselProps) => {\n return (\n
      \n
      \n {slides.map((slide) => (\n
      \n {slide.component}\n
      \n ))}\n
      \n
      \n {slides.map((slide) => (\n
      \n ))}\n
      \n
      \n );\n};\n\nexport default Carousel;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"AnnouncementBody_container__OiKxT\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"listItem\":\"Slide1_listItem__n6a76\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"Carousel_container__9fIDj\",\"slide\":\"Carousel_slide__lRwf2\",\"dotsContainer\":\"Carousel_dotsContainer__sTvrs\",\"dot\":\"Carousel_dot__ac4r_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"actionContainer\":\"Slide_actionContainer__83vSs\",\"slideContainer\":\"Slide_slideContainer___Bsts\",\"title\":\"Slide_title__BFmI9\",\"headerContainer\":\"Slide_headerContainer__gs4cj\",\"description\":\"Slide_description__pirC_\"};"],"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","div","className","styles","onComplete","Slide","action","Button","onClick","titleKey","description","br","li","ul","onCompleted","AnnouncementBody","Carousel","slides","id","component","Slide1","logCarouselSlideCompletion","header","h2","p","map","slide","module","exports"],"sourceRoot":""}