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AAQ,gBAAoB,WAAgB,KACxC,gBAAoB,SAAU,CAAE,iBAAkBxD,EAAMyD,UAAW,gBAAiB,SAAUzC,UAAW,wBAAyBoB,QAAS,KAbvIkB,EACIC,OAAOG,SACPH,OAAOG,SAASC,oBAGhBC,QAAQC,MAAM,8BAIlBZ,GAAa,EAImJ,GAChK,gBAAoB,OAAQ,KAAMjD,EAAM8D,SAC3CR,GAAgB,gBAAoB,UAAc,CAAErB,WAAYiB,EAAcjB,WAAYf,UAAWA,EAAWG,QAAS,KAClH4B,GAAa,EAAM,EACpBX,SAAU,KACTW,GAAa,EAAM,IAChB,C,yDCbnB,UAb0BjD,IACtB,MAAMkC,EAAOlC,EAAMU,KAAKwB,KAAK6B,cAAcC,QAAQ,KAAM,KACnDC,EAAoB,uBAAT/B,EACjB,IAAImB,EAAU,CACVpB,WAAYjC,EAAMkE,OAAOC,WAEzBC,EAAgBjB,KAAKkB,UAAUhB,GACnC,MAAMiB,EAAS,CACXC,wBAAyBvE,EAAMkE,OAAOM,SACtCC,aAAczE,EAAMkE,OAAOQ,YAE/B,OAAQ,gBAAoB,WAAgB,KAAMT,EAAY,gBAAoB,UAAkB,CAAEZ,QAASe,EAAeN,MAAO9D,EAAMU,KAAKoD,MAAOL,UAAW,gEAAgEzD,EAAMU,KAAKiE,iBAAmB3E,EAAMU,KAAKoD,YAAiB,gBAAoB,IAAK,CAAEc,KAAMN,EAAOpC,GAAO,uBAAwBlC,EAAMU,KAAKmE,gBAAkB7E,EAAMU,KAAKoD,MAAO9C,UAAW,kCAAoChB,EAAMU,KAAKoD,OAAS,C","sources":["webpack:///./assets/common/src/components/common/CookieCenter.tsx","webpack:///./assets/moncler/src/components/footer/CookieCenterLink.tsx","webpack:///./assets/moncler/src/components/footer/FooterItemCustom.tsx"],"sourcesContent":["import Button from '@ui/button/Button';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport React, { useState } from 'react';\nimport cookie from 'react-cookies';\nimport { useTranslation } from 'react-i18next';\nconst CookieCenter = (props) => {\n const { t } = useTranslation();\n const [functionalCookies, setFunctionalCookies] = useState(false);\n const [analyticalCookies, setAnalyticalCookies] = useState(false);\n const [profilingCookies, setProfilingCookies] = useState(false);\n const setDefaultCheckes = () => {\n const acceptedCookies = cookie.load('TC_PRIVACY_CENTER');\n if (acceptedCookies) {\n acceptedCookies.split(',').forEach((element) => {\n switch (element) {\n case '1':\n setProfilingCookies(true);\n break;\n case '2':\n setAnalyticalCookies(true);\n break;\n case '3':\n setFunctionalCookies(true);\n break;\n default:\n setProfilingCookies(false);\n setAnalyticalCookies(false);\n setFunctionalCookies(false);\n }\n });\n }\n };\n const saveCookies = (data) => {\n cookie.save('TC_PRIVACY_CENTER', decodeURIComponent(data.tcCookieCenterValue), { path: '/' });\n analytics.cookieConsent(data.eventCategory);\n };\n const handleSubmit = (e) => {\n e.preventDefault();\n api.allowPersonalizedTracking(new FormData(e.target)).then((data) => {\n saveCookies(data);\n props.onSubmit();\n });\n };\n const subtitle = () => {\n return (React.createElement(\"div\", { className: \"dialog__description\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.sub', { link: props.cookiepage }) } }),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-md-6\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.info', { link: props.cookiepage }) } })),\n React.createElement(\"div\", { className: \"col-md-6\" },\n React.createElement(Button, { type: 'button', cls: ['button--primary'], onClick: () => {\n api.allowTracking().then((data) => {\n saveCookies(data);\n props.onSubmit();\n });\n } }, t('legal.cookiecenter.agree'))))));\n };\n const switchOnOff = () => {\n return (React.createElement(\"div\", { className: \"yes-or-no\" },\n React.createElement(\"span\", { className: \"yes\" }, t('legal.cookiecenter.on')),\n React.createElement(\"span\", { className: \"divisor\", \"aria-hidden\": \"true\" }, \"|\"),\n React.createElement(\"span\", { className: \"no\", \"aria-hidden\": \"true\" }, t('legal.cookiecenter.off'))));\n };\n return (React.createElement(ModalDialog, { isOpen: props.showModal, contentLabel: t('legal.cookiecenter.title'), onRequestClose: () => props.onClose(), onAfterOpen: () => setDefaultCheckes(), className: 'cookie-center', overlayClassName: 'cookie-overlay', buttonInHeader: true },\n subtitle(),\n React.createElement(\"form\", { className: \"cookie-center__form\", onSubmit: handleSubmit },\n React.createElement(\"div\", { className: \"cookie-center__columns\" },\n React.createElement(\"div\", { className: \"cookie-center__column\" },\n React.createElement(\"div\", { className: \"cookie-item\" },\n React.createElement(\"h3\", { className: \"primary-s\" }, t('legal.cookiecenter.technical')),\n React.createElement(\"label\", { className: \"cookie-switch\" },\n React.createElement(\"span\", null, t('legal.cookiecenter.switch')),\n React.createElement(\"input\", { type: \"checkbox\", name: \"technicalCookies\", id: \"technicalCookies\", checked: true, readOnly: true, tabIndex: -1 })),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.technicaldesc', { link: props.cookiepage }) } })),\n React.createElement(\"div\", { className: \"cookie-item\" },\n React.createElement(\"h3\", { className: \"primary-s\" }, t('legal.cookiecenter.functional')),\n React.createElement(\"label\", { className: \"cookie-switch\" },\n React.createElement(\"input\", { type: \"checkbox\", name: \"functionalCookies\", id: \"functionalCookies\", checked: functionalCookies, onChange: (e) => setFunctionalCookies(e.target.checked) }),\n switchOnOff()),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.functionaldesc', { link: props.cookiepage }) } }))),\n React.createElement(\"div\", { className: \"cookie-center__column\" },\n React.createElement(\"div\", { className: \"cookie-item\" },\n React.createElement(\"h3\", { className: \"primary-s\" }, t('legal.cookiecenter.profiling')),\n React.createElement(\"label\", { className: \"cookie-switch\" },\n React.createElement(\"input\", { type: \"checkbox\", name: \"profilingCookies\", id: \"profilingCookies\", checked: profilingCookies, onChange: (e) => setProfilingCookies(e.target.checked) }),\n switchOnOff()),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.profilingdesc', { link: props.cookiepage }) } })),\n React.createElement(\"div\", { className: \"cookie-item\" },\n React.createElement(\"h3\", { className: \"primary-s\" }, t('legal.cookiecenter.analytical')),\n React.createElement(\"label\", { className: \"cookie-switch\" },\n React.createElement(\"input\", { type: \"checkbox\", name: \"analyticalCookies\", id: \"analyticalCookies\", checked: analyticalCookies, onChange: (e) => setAnalyticalCookies(e.target.checked) }),\n switchOnOff()),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.analyticaldesc', { link: props.cookiepage }) } })))),\n React.createElement(\"div\", { className: \"cookie-row\" },\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('legal.cookiecenter.contentagree', { link: props.cookiepage }) } })),\n React.createElement(\"div\", { className: \"buttons-wrapper\" },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-md-6\" },\n React.createElement(Button, { type: \"button\", onClick: () => api.rejectTracking().then((data) => {\n saveCookies(data);\n props.onSubmit();\n }) }, t('legal.cookiecenter.reject'))),\n React.createElement(\"div\", { className: \"col-md-6\" },\n React.createElement(Button, { type: \"submit\" }, t('legal.cookiecenter.save'))))))));\n};\nexport default CookieCenter;\n","import CookieCenter from '@components/common/CookieCenter';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst CookieCenterLink = (props) => {\n const { t } = useTranslation();\n const [showModal, setShowModal] = useState(false);\n const parsedOptions = JSON.parse(props.options);\n const hasOneTrust = window.cookiePolicy === 'OneTrust';\n const showCookieCenter = () => {\n if (hasOneTrust) {\n if (window.OneTrust) {\n window.OneTrust.ToggleInfoDisplay();\n }\n else {\n console.error('OneTrust object not found!');\n }\n }\n else {\n setShowModal(true);\n }\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"button\", { \"data-analytics\": props.analytics, \"aria-haspopup\": \"dialog\", className: \"footer-menu__menuitem\", onClick: () => showCookieCenter() },\n React.createElement(\"span\", null, props.title)),\n !hasOneTrust && (React.createElement(CookieCenter, { cookiepage: parsedOptions.cookiepage, showModal: showModal, onClose: () => {\n setShowModal(false);\n }, onSubmit: () => {\n setShowModal(false);\n } }))));\n};\nexport default CookieCenterLink;\n","import React from 'react';\nimport CookieCenterLink from './CookieCenterLink';\nconst FooterItemCustom = (props) => {\n const type = props.data.type.toLowerCase().replace(/ /g, '_');\n const isCookie = type === 'cookie_center_link';\n let options = {\n cookiepage: props.custom.cookieurl,\n };\n let optionsString = JSON.stringify(options);\n const urlMap = {\n login_registration_link: props.custom.loginurl,\n my_area_link: props.custom.accounturl,\n };\n return (React.createElement(React.Fragment, null, isCookie ? (React.createElement(CookieCenterLink, { options: optionsString, title: props.data.title, analytics: `{\"event\": \"footer\",\"eventCategory\": \"footer\",\"eventAction\": \"${props.data.title_analytics || props.data.title}\"}` })) : (React.createElement(\"a\", { href: urlMap[type], \"data-title-analytics\": props.data.titleanalytics || props.data.title, className: \"footer-menu__section__menuitem\" }, props.data.title))));\n};\nexport default FooterItemCustom;\n"],"names":["props","t","functionalCookies","setFunctionalCookies","useState","analyticalCookies","setAnalyticalCookies","profilingCookies","setProfilingCookies","saveCookies","data","decodeURIComponent","tcCookieCenterValue","path","eventCategory","switchOnOff","className","isOpen","showModal","contentLabel","onRequestClose","onClose","onAfterOpen","acceptedCookies","split","forEach","element","setDefaultCheckes","overlayClassName","buttonInHeader","dangerouslySetInnerHTML","__html","link","cookiepage","type","cls","onClick","then","onSubmit","e","preventDefault","FormData","target","name","id","checked","readOnly","tabIndex","onChange","setShowModal","parsedOptions","JSON","parse","options","hasOneTrust","window","cookiePolicy","analytics","OneTrust","ToggleInfoDisplay","console","error","title","toLowerCase","replace","isCookie","custom","cookieurl","optionsString","stringify","urlMap","login_registration_link","loginurl","my_area_link","accounturl","title_analytics","href","titleanalytics"],"sourceRoot":""}