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EAAG1F,WAA6C,QAA/B2F,EAAK7T,EAAQ2L,oBAAiC,IAAPkI,OAAgB,EAASA,EAAG3F,WAAasG,EAAoB5G,SAAWnL,GAAMgS,EAAsBhS,EAAEuS,cAAc9G,YAChb,gBAAoB,IAAa,CAAE7N,IAAKL,EAASM,KAAM,uBAAwBG,KAAM,WAAY4M,SAAUlN,OAAOuK,eAAgBzK,UAAW,qCAAsC8N,iBAAiB,EAAMC,kBAAmBrB,IAAiD,QAAnCmH,EAAK9T,EAAQ+U,wBAAqC,IAAPjB,OAAgB,EAASA,EAAG5F,WAA6C,QAA/B6F,EAAK/T,EAAQ2L,oBAAiC,IAAPoI,OAAgB,EAASA,EAAG7F,WAAawG,EAAQ9G,SAAWnL,GAAMkS,EAAUlS,EAAEuS,cAAc9G,WACnc,gBAAoB,IAAK,CAAEjO,UAAW,yCAA2CF,EAAE,kCACnF,gBAAoB,IAAa,CAAEM,IAAKL,EAASM,KAAM,yBAA0BG,KAAM,WAAY4M,SAAUlN,OAAOuK,eAAgBzK,UAAW,uCAAwC8N,iBAAiB,EAAMC,kBAAmBrB,IAAiD,QAAnCqH,EAAKhU,EAAQ+U,wBAAqC,IAAPf,OAAgB,EAASA,EAAG9F,WAA6C,QAA/B+F,EAAKjU,EAAQ2L,oBAAiC,IAAPsI,OAAgB,EAASA,EAAG/F,WAAa0G,EAAUhH,SAAWnL,GAAMoS,EAAYpS,EAAEuS,cAAc9G,WAC3c,gBAAoB,IAAK,CAAEjO,UAAW,mCAAqCF,EAAE,oCAAqC,C","sources":["webpack:///./assets/common/src/components/account/NewsletterSection.tsx","webpack:///./assets/common/src/components/account/ProfileNameFields.tsx","webpack:///./assets/common/src/components/account/linesignin/LineSigninButton.tsx","webpack:///./assets/common/src/components/applesignin/AppleSigninButton.tsx","webpack:///./assets/common/src/components/common/ErrorBox.tsx","webpack:///./assets/common/src/components/login/LoginOrRegisterSocial.tsx","webpack:///./assets/common/src/components/login/RegisterForm.tsx","webpack:///./assets/common/src/components/login/SocialButton.tsx","webpack:///./assets/common/src/ui/button/Button.tsx","webpack:///./assets/common/src/ui/formfield/DwFormFieldPhoneWithPrefix.tsx","webpack:///./assets/common/src/utils/stringUtils.ts","webpack:///./assets/moncler/src/components/newsletter/MonclerCollectionCheckbox.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport MonclerCollectionCheckbox from '@moncler/components/newsletter/MonclerCollectionCheckbox';\nconst NewsletterSection = (props) => {\n const { t } = useTranslation();\n if (!props.formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"register_form__subtitle mt-16\" }, t('register.newsletterchoice')),\n React.createElement(\"div\", { className: \"newsletter-flag registration mt-28\" },\n React.createElement(MonclerCollectionCheckbox, { formdef: props.formdef, formInstance: props.formInstance }))));\n};\nexport default NewsletterSection;\n","import DwFormField from '@ui/formfield/DwFormField';\nimport React from 'react';\nconst ProfileNameFields = (props) => {\n const { formdef } = props;\n if (window.country == 'JP') {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"lastname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"firstname\", autocomplete: \"given-name\", validTick: true }))),\n React.createElement(\"div\", { className: \"row align-bottom\" },\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localsurname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localname\", autocomplete: \"given-name\", validTick: true })))));\n }\n if (window.country == 'HK') {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-4\" },\n React.createElement(DwFormField, { def: formdef, name: \"title\", type: \"select\", autocomplete: \"honorific-prefix\" })),\n React.createElement(\"div\", { className: \"col-md-8\" },\n React.createElement(DwFormField, { def: formdef, name: \"lastname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"firstname\", autocomplete: \"given-name\", validTick: true }))),\n React.createElement(\"div\", { className: \"row align-bottom kr-name-field\" },\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localsurname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localname\", autocomplete: \"given-name\", validTick: true })))));\n }\n if (window.country == 'KR') {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: props.isRegisterForm ? 'row' : 'row kr-name-field' },\n React.createElement(\"div\", { className: \"col-lg-4 col-4\" },\n React.createElement(DwFormField, { def: formdef, name: \"title\", type: \"select\", autocomplete: \"honorific-prefix\" })),\n React.createElement(\"div\", { className: \"col-lg-4 col-md-4 col-8\" },\n React.createElement(DwFormField, { def: formdef, name: \"lastname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-lg-4 col-md-4 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"firstname\", autocomplete: \"given-name\", validTick: true }))),\n React.createElement(\"div\", { className: \"row kr-name-field\" },\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localsurname\", autocomplete: \"family-name\", validTick: true })),\n React.createElement(\"div\", { className: \"col-md-6 col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"localname\", autocomplete: \"given-name\", validTick: true })))));\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-4\" },\n React.createElement(DwFormField, { def: formdef, name: \"title\", type: \"select\", autocomplete: \"honorific-prefix\" })),\n React.createElement(\"div\", { className: \"col-8\" },\n React.createElement(DwFormField, { def: formdef, name: \"firstname\", autocomplete: \"given-name\", validTick: true }))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"lastname\", autocomplete: \"family-name\", validTick: true })))));\n};\nexport default ProfileNameFields;\n","import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport SocialButton from '@components/login/SocialButton';\nconst LineSigninButton = (props) => {\n const { t } = useTranslation();\n const [showModal, setShowModal] = useState(false);\n if (window.country !== 'JP') {\n return React.createElement(React.Fragment, null);\n }\n // Line OpenID Connect demands the previous user consent in order to get the user's email, so we need to show the modal (implemented but not used)\n return (\n // <>\n // {\n // // send analytics social btn clicked\n // props.from === 'wishlist'\n // ? analytics.socialLoginGeneric({ event: 'popup', eventCategory: 'popup', eventAction: 'line-login', eventLabel: 'open' })\n // : analytics.socialLoginGeneric({ eventAction: 'line-login' });\n // setShowModal(true);\n // }}\n // className={classNames('button social-button', `button--${props.secondary ? 'secondary' : 'link'}`)}\n // >\n // <>\n //
\n // {props.register ? t('signup.line') : t('signin.line')}\n // \n // \n // {\n // showModal && (\n // setShowModal(false)}\n // >\n // <>\n //

\n React.createElement(SocialButton, { social: \"line\", analyticsKey: \"earlyAccess\", from: props.from, register: props.register, secondary: props.secondary, reloadTarget: props.reloadTarget, reloadUrl: props.reloadUrl, setIsLoading: props.setIsLoading })\n // \n // \n // )}\n // \n );\n};\nexport default LineSigninButton;\n","import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport api from '@utils/api';\nimport classNames from 'classnames';\nimport analytics from '@utils/analytics';\nimport cookie from 'react-cookies';\nimport { appPostStructuredMessage } from '@common/utils/appUtils';\nconst AppleSigninButton = (props) => {\n const { t } = useTranslation();\n const [appleConfInit, setAppleConfInit] = useState(null);\n useEffect(() => {\n try {\n api.getAppleSigninConfiguration().then((data) => {\n var _a, _b;\n if ((_a = data === null || data === void 0 ? void 0 : data.configuration) === null || _a === void 0 ? void 0 : _a.enabled) {\n const _appleConfInit = {\n clientId: data.configuration.clientId,\n redirectURI: data.configuration.redirectURI,\n scope: 'email name',\n nonce: '',\n state: data.configuration.state,\n usePopup: true,\n };\n setAppleConfInit(_appleConfInit);\n (_b = window.AppleID) === null || _b === void 0 ? void 0 : _b.auth.init(_appleConfInit);\n }\n props.setIsLoading && props.setIsLoading(false);\n });\n }\n catch (e) {\n console.log('Apple Signin Error: ' + e);\n props.setIsLoading && props.setIsLoading(false);\n }\n }, []);\n const signInSuccess = () => {\n document.addEventListener('AppleIDSignInOnSuccess', (event) => {\n // Handle successful response.\n let authorizationResponse = {\n authorization: {\n code: event.detail.authorization.code,\n id_token: event.detail.authorization.id_token,\n state: event.detail.authorization.state,\n },\n user: {\n email: event.detail.user && event.detail.user.email ? event.detail.user.email : '',\n name: {\n firstName: event.detail.user && event.detail.user.name ? event.detail.user.name.firstName : '',\n lastName: event.detail.user && event.detail.user.name ? event.detail.user.name.lastName : '',\n },\n },\n };\n if (authorizationResponse.authorization.state !== appleConfInit.state) {\n console.log('During AppleIDSignInOnSuccess authorization.state was corrupted');\n return React.createElement(React.Fragment, null);\n }\n props.setIsLoading && props.setIsLoading(true);\n // props.register currently means we are in the register page, so it does not reload the page, it just valorize data.values, if we want a consinstent behavior we should redirect also here (or handle all async)\n api.appleSignInSuccess(authorizationResponse.authorization.id_token, authorizationResponse.user, props.register).then((data) => {\n if (data.success) {\n if (data.login) {\n // login successful executed, reload page\n analytics.socialLoginGeneric({ event: 'my moncler', eventCategory: 'my moncler', eventAction: 'apple-login', eventLabel: 'login' }); // send analytics if effective social login\n // Sent to BE information to redirect the user to the wishlist if he comes from it\n if (props.from === 'wishlist') {\n cookie.save('fromWishlist', 'true', { path: '/', maxAge: 600 });\n }\n else {\n cookie.remove('fromWishlist');\n }\n window.location.reload();\n }\n else if (data.register) {\n // redirect from login page to register page with prefilled form information\n window.location.replace(window.registerUrl);\n }\n }\n });\n });\n };\n const signInFailure = () => {\n // Listen for authorization failures.\n document.addEventListener('AppleIDSignInOnFailure', (event) => {\n let error = event.detail.error;\n console.error(error);\n return;\n });\n };\n const appleSignin = () => {\n {\n props.from && analytics.expressCheckoutSocialLoginRegister(props.from, 'apple');\n }\n props.analyticsKey === 'earlyAccess' && analytics[props.analyticsKey]('pop-up', 'apple-login');\n window.AppleID.auth.signIn(appleConfInit);\n signInSuccess();\n signInFailure();\n };\n return (React.createElement(\"button\", { \"aria-label\": props.register ? t('signup.apple') : t('signin.apple'), type: \"button\", onClick: () => {\n // send analytics social btn clicked\n props.from === 'wishlist'\n ? analytics.socialLoginGeneric({ event: 'popup', eventCategory: 'popup', eventAction: 'apple-login', eventLabel: 'open' })\n : analytics.socialLoginGeneric({ eventAction: 'apple-login' });\n if (!window.appmode) {\n appleSignin();\n }\n else {\n appPostStructuredMessage('apple_signin', {});\n }\n // props.setIsLoading(false);\n }, className: classNames('button social-button', `button--${props.secondary ? 'secondary' : 'link'}`) },\n React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"icon--social-apple\" }),\n props.register ? t('signup.apple') : t('signin.apple'))));\n};\nexport default AppleSigninButton;\n","import classNames from 'classnames';\nimport React from 'react';\nconst ErrorBox = (props) => {\n if (!props.errors || props.errors.length === 0 || props.errors.every((err) => err === '')) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('globalerrors', 'invalid-feedback', props.className), role: \"alert\" }, props.errors.map((e, i) => (React.createElement(\"div\", { key: i }, (e || '').toString())))));\n};\nexport default ErrorBox;\n","import AppleSigninButton from '@components/applesignin/AppleSigninButton';\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport SocialButton from './SocialButton';\nimport LineSigninButton from '@components/account/linesignin/LineSigninButton';\nimport { AnimatePresence, motion } from 'framer-motion';\nconst LoginOrRegisterSocial = (props) => {\n const { t } = useTranslation();\n const [isLoading, setIsLoading] = useState(false);\n return (React.createElement(\"div\", { className: classNames('login-register-social', { 'links-view': !props.secondary }) },\n React.createElement(AnimatePresence, { exitBeforeEnter: true }, isLoading && (React.createElement(motion.div, { initial: { opacity: 1 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.2, delay: 1 }, className: \"loading-wrapper\" },\n React.createElement(\"img\", { src: window.loaderSrc, alt: \"loading\" }),\n React.createElement(\"h4\", null, t('appointments.formloading', 'Just a few moments'))))),\n React.createElement(React.Fragment, null,\n window.enabledSocials.includes('Google') && (React.createElement(SocialButton, { social: \"google\", from: props.from, register: props.register, secondary: props.secondary, reloadUrl: props.reloadUrl, analyticsKey: props.analyticsKey, setIsLoading: setIsLoading })),\n window.enabledSocials.includes('Facebook') && (React.createElement(SocialButton, { social: \"facebook\", from: props.from, register: props.register, secondary: props.secondary, reloadUrl: props.reloadUrl, analyticsKey: props.analyticsKey, setIsLoading: setIsLoading })),\n window.enabledAppleLogin && (React.createElement(AppleSigninButton, { from: props.from, register: props.register, secondary: props.secondary, analyticsKey: props.analyticsKey, setIsLoading: setIsLoading })),\n window.enabledSocials.includes('Line') && (React.createElement(LineSigninButton, { from: props.from, register: props.register, secondary: props.secondary, analyticsKey: props.analyticsKey, setIsLoading: setIsLoading })))));\n};\nexport default LoginOrRegisterSocial;\n","import ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport DwFormFieldPhoneWithPrefix from '@ui/formfield/DwFormFieldPhoneWithPrefix';\nimport FormField from '@ui/formfield/FormField';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport formutils from '@utils/formutils';\nimport classNames from 'classnames';\n// import { getFirstFocusable } from 'src/scripts/utilities/focusableElementUtils';\nimport createDecorator from 'final-form-focus';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Form } from 'react-final-form';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { useTranslation } from 'react-i18next';\nimport NewsletterSection from '../account/NewsletterSection';\nimport ProfileNameFields from '../account/ProfileNameFields';\nimport LoginOrRegisterSocial from './LoginOrRegisterSocial';\nimport customEventBus from '@common/scripts/libs/eventBus';\nconst focusOnError = createDecorator(); // must be outside the component\nconst RegisterForm = (props) => {\n const { t } = useTranslation();\n const [formdef, setFormdef] = useState();\n const [initialValues, setInitialValues] = useState();\n const [errors, setErrors] = useState([]);\n const [requiredMarketingConsent, setRequiredMarketingConsent] = useState([]);\n const registerFormRef = useRef(null);\n const [allChannelsChecked, setAllChannelsChecked] = useState(false);\n const [linkCopied, setLinkCopied] = useState(false);\n const [emailSent, setEmailSent] = useState(false);\n const [linkRegister, setLinkRegister] = useState();\n const reCaptchaRef = useRef();\n const showRecaptcha = window.recapchaCfg && JSON.parse(window.recapchaCfg).registerButton;\n const params = new URLSearchParams(window.location.search);\n useEffect(() => {\n let val = {};\n api.getForm('profile', val).then((data) => {\n if (!props.app) {\n // mandatory on FE\n // data.day.mandatory = true;\n // data.month.mandatory = true;\n // data.year.mandatory = true;\n val.webVer = '12.0';\n val.useSingleField = 'true';\n data.dateofbirthfull.mandatory = true;\n data.personalinforadio.mandatory = true;\n data.trackingbrowsingradio.mandatory = true;\n }\n if (params.get('orderNumber')) {\n api\n .getOrderDetail(params.get('orderNumber'), params.get('token'))\n .then((orderData) => {\n //@ts-ignore\n const shippingAddress = (orderData === null || orderData === void 0 ? void 0 : orderData.shipping.length) ? orderData === null || orderData === void 0 ? void 0 : orderData.shipping[0].shippingAddress : {};\n val.title = shippingAddress.title;\n val.firstname = shippingAddress.firstName;\n val.lastname = shippingAddress.lastName;\n val.phone = shippingAddress.phone;\n val.email = orderData === null || orderData === void 0 ? void 0 : orderData.orderEmail;\n val.phonePrefix = shippingAddress.phonePrefix;\n setInitialValues(val);\n setFormdef(data);\n })\n .catch(() => {\n setInitialValues(val);\n setFormdef(data);\n });\n }\n else if (window.customerData && window.customerEmail) {\n api\n .CustomerExistByEmail(props.loginEmail)\n .then((customer) => {\n val.title = customer.title;\n val.email = customer.email;\n val.firstname = customer.firstName;\n val.lastname = customer.lastName;\n val.phone = customer.phone;\n val.phonePrefix = customer.phonePrefix;\n val.title = customer === null || customer === void 0 ? void 0 : customer.title;\n //Valorizzo il field Date-Birthday e metto lo 0 davanti a quelli < 9\n let monthRight = Number(customer.month + 1);\n let month = monthRight.toString().padStart(2, '0');\n let day = customer.day.toString().padStart(2, '0');\n val.localname = customer === null || customer === void 0 ? void 0 : customer.localName;\n val.localsurname = customer === null || customer === void 0 ? void 0 : customer.localSurname;\n let gender = (customer === null || customer === void 0 ? void 0 : customer.gender) == t('label.input.gender.male')\n ? '1'\n : (customer === null || customer === void 0 ? void 0 : customer.gender) == t('label.input.gender.female')\n ? '2'\n : (customer === null || customer === void 0 ? void 0 : customer.gender) == t('label.input.gender.other')\n ? '3'\n : (customer === null || customer === void 0 ? void 0 : customer.gender) == t('label.input.gender.prefernottosay')\n ? '0'\n : '';\n val.gender = gender ? gender : '0';\n val.dateofbirthfull = customer.year + '-' + month + '-' + day;\n setInitialValues(val);\n setFormdef(data);\n })\n .catch(() => {\n setInitialValues(val);\n setFormdef(data);\n });\n }\n else {\n if (params.get('email')) {\n val.email = params.get('email');\n }\n if (props.loginEmail) {\n val.email = props.loginEmail;\n }\n if (props.firstName && props.lastName && props.inContactUs) {\n val.firstname = props.firstName;\n val.lastname = props.lastName;\n val.phone = props.phone;\n val.phonePrefix = props.phonePrefix;\n if (props.localName && props.localSurname) {\n val.localname = props.localName;\n val.localsurname = props.localSurname;\n }\n }\n setInitialValues(val);\n setFormdef(data);\n }\n });\n }, []);\n const onSubmit = async (values) => {\n setErrors([]);\n if (window.clickfromstore) {\n values.isClickFromStore = 'clickFromStore';\n if (emailSent) {\n values.sendEmail = true;\n }\n }\n if (showRecaptcha) {\n const token = await reCaptchaRef.current.executeAsync();\n values.gr3Token = token;\n }\n if (values.personalinforadio && window.country === 'US') {\n if (!values.smsChannel && !values.emailChannel && !values.letterChannel && !values.phoneChannel) {\n setRequiredMarketingConsent([t('error.consentmarketing')]);\n let inputMarketing = document.querySelector('.marketing-radio');\n if (inputMarketing) {\n inputMarketing.focus();\n return;\n }\n }\n }\n if (props.pageContext) {\n values.pageContext = props.pageContext;\n }\n let errors = await validate(values);\n if (errors && Object.keys(errors).length > 0) {\n return errors;\n }\n if (params.get('destination')) {\n values.destination = params.get('destination');\n }\n let newsletterSelection = '';\n if (values.personalinfo) {\n if (values.addtoemaillistchildren) {\n newsletterSelection += newsletterSelection != '' ? '_children' : 'children';\n }\n if (values.addtoemaillistmen) {\n newsletterSelection += newsletterSelection != '' ? '_men' : 'men';\n }\n if (values.addtoemaillistwomen) {\n newsletterSelection += newsletterSelection != '' ? '_women' : 'women';\n }\n if (values.addtoemaillistgrenoble) {\n newsletterSelection += newsletterSelection != '' ? '_grenoble' : 'grenoble';\n }\n if (values.addtoemaillistgenius) {\n newsletterSelection += newsletterSelection != '' ? '_genius' : 'genius';\n }\n }\n const redirectAfterSuccess = new URLSearchParams(window.location.search).get('redirectToPdp');\n if (window.clickfromstore && !linkRegister) {\n return api\n .loginOnBehalfRegistration(values, formdef)\n .then((data) => {\n if (data.error) {\n if (data.error.length > 0) {\n setErrors(data.error);\n }\n else {\n setErrors([data.message]);\n }\n }\n if (!formutils.checkValidationAfterSubmit(data, errors)) {\n return errors;\n }\n if (data.success) {\n setLinkRegister(data.subscriptionLink);\n if (linkCopied) {\n if (data.subscriptionLink) {\n navigator.clipboard.writeText(data.subscriptionLink);\n }\n }\n }\n })\n .catch((e) => setErrors([e]));\n }\n else {\n return api\n .register(values, formdef, redirectAfterSuccess)\n .then((data) => {\n var _a;\n if (data.error) {\n if (data.error.length > 0) {\n setErrors(data.error);\n }\n else {\n setErrors([data.message]);\n }\n }\n if (!formutils.checkValidationAfterSubmit(data, errors)) {\n return errors;\n }\n if (newsletterSelection != '')\n analytics.createAccountNl(newsletterSelection);\n initialValues.authenticationProviderID ? analytics.createAccountThree(initialValues.authenticationProviderID) : analytics.createAccountTwo();\n if (data.success) {\n // analytics.wishlistInteractionComplete('registration');\n if (props.fromPage || props.inContactUs) {\n window.location.replace(data.redirectUrl);\n }\n else {\n props.setLoginStep('registration-successful');\n if (props.reloadComponent) {\n window.loggedin = true;\n customEventBus.emit('account:update', { firstName: (_a = data.customer) === null || _a === void 0 ? void 0 : _a.firstName });\n }\n props.setForceReload(true);\n }\n }\n })\n .catch((e) => setErrors([e]));\n }\n };\n const validate = async (values) => {\n if (window.customerData && window.customerEmail && window.profiletoken) {\n values.profiletoken = window.profiletoken;\n }\n return await formutils.validateForm(values, formdef, 'profile');\n };\n const turnOnOrOffChannels = (value, mutator) => {\n mutator({\n smsChannel: value,\n emailChannel: value,\n phoneChannel: value,\n letterChannel: value,\n });\n };\n // const appleSigninRegister = (values: models.RegisterForm) => {\n // setInitialValues(values);\n // };\n const readOnlyEmail = (initialValues === null || initialValues === void 0 ? void 0 : initialValues.authenticationProviderID) === 'Line' && !(initialValues === null || initialValues === void 0 ? void 0 : initialValues.email) ? false : !!(initialValues === null || initialValues === void 0 ? void 0 : initialValues.authenticationProviderID) || Boolean(props.loginEmail);\n // const readOnlyPhone = initialValues?.authenticationProviderID === 'Line' && initialValues?.phone TODO: before implement, verify how phone info arrives from Line (with phonePrefix or not)\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('register_form', { 'register-click-from-store': window.clickfromstore }) },\n initialValues.authenticationProviderID ? (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-md-8 col-sm-9\" },\n React.createElement(\"p\", { className: \"register_form__subtitle primary-xs\" }, t('register.completesocial'))))) : (React.createElement(React.Fragment, null,\n !props.inContactUs && React.createElement(\"p\", { className: \"register_form__subtitle primary-xs\" }, t('register.subtitle')),\n window.sociallogin && !window.clickfromstore && (React.createElement(React.Fragment, null,\n React.createElement(\"h3\", { className: \"form-section-title faster-social primary-s\" }, t('login.fastersocial')),\n React.createElement(LoginOrRegisterSocial, { register: true }))))),\n !window.clickfromstore && React.createElement(\"div\", { className: \"mt-24 mb-24 border-top\" }),\n React.createElement(Form, { onSubmit: onSubmit, initialValues: initialValues, validate: validate, mutators: { global: formutils.globalMutator }, decorators: [focusOnError], render: (formprops) => {\n return (React.createElement(\"form\", { ref: registerFormRef, onSubmit: formprops.handleSubmit },\n React.createElement(\"div\", { className: \"form-section\" },\n !props.inContactUs && React.createElement(\"h3\", { className: \"form-section-title primary-s\" }, t('login.logininfo')),\n React.createElement(\"div\", { className: 'register_form__email' + (props.setLoginStep && readOnlyEmail ? '-row' : '') },\n React.createElement(\"div\", { className: classNames('register_form__input-column', { 'full-width': window.customerData && window.customerEmail }) },\n React.createElement(DwFormField, { def: formdef, name: \"email\", readonly: readOnlyEmail, disabled: readOnlyEmail, autocomplete: \"email\", validTick: true })),\n props.setLoginStep && readOnlyEmail && !window.customerData && !window.customerEmail && (React.createElement(\"div\", { className: \"register_form__edit-column\" },\n React.createElement(\"button\", { type: \"button\", onClick: () => props.setLoginStep('email'), className: \"link\" }, t('login.editemail'))))),\n !window.clickfromstore && !initialValues.authenticationProviderID && (React.createElement(\"div\", { className: \"password\" },\n React.createElement(DwFormField, { def: formdef, name: \"password\", type: \"password\", helperText: t('register.passwordcriteria'), showPassword: true, autocomplete: \"new-password\", validTick: true, requiredLabel: !initialValues.authenticationProviderID })))),\n React.createElement(\"div\", { className: \"form-section\" },\n !props.inContactUs && (React.createElement(React.Fragment, null,\n React.createElement(\"h3\", { className: \"form-section-title primary-s\" }, t('profile.personalinformation')),\n React.createElement(ProfileNameFields, { formdef: formdef, isRegisterForm: true }))),\n React.createElement(DwFormField, { def: formdef, name: \"dateofbirthfull\", type: \"date\", autocomplete: \"date-of-brith\", helperText: t('profile.birthdaymessage'), maxDate: \"9999-12-31\" }),\n React.createElement(DwFormField, { def: formdef, name: \"gender\", type: \"radio\", groupClassName: \"form-group--gender-radio\" }),\n !props.phone && !props.phonePrefix && React.createElement(DwFormFieldPhoneWithPrefix, { def: formdef, uniqueLabel: t('profile.phonenumber') })),\n !window.clickfromstore && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"form-section\" },\n React.createElement(\"h3\", { className: \"form-section-title primary-s\" }, t('login.marketingtitle')),\n React.createElement(\"div\", { className: \"flag wrapper-flag\" },\n React.createElement(DwFormField, { def: formdef, type: \"radio\", name: \"personalinforadio\", onChange: (e) => {\n // console.info(e);\n if (window.country == 'US' && e.target.value == '0') {\n turnOnOrOffChannels(false, formprops.form.mutators.global);\n setAllChannelsChecked(false);\n }\n else if (window.country != 'US') {\n turnOnOrOffChannels(e.target.value == '1', formprops.form.mutators.global);\n }\n }, groupClassName: \"form-group--gender-radio\" })),\n formprops.values.personalinforadio == '1' && (React.createElement(React.Fragment, null,\n React.createElement(NewsletterSection, { formdef: formdef, formInstance: formprops.form }),\n window.country == 'US' && (React.createElement(\"div\", { className: \"register_form__comunication-channels\" },\n React.createElement(\"p\", { className: \"register_form__info-label mt-24 primary-xs\" },\n t('register.newsletterconditions'),\n \" \"),\n React.createElement(FormField, { className: \"marketing-radio\", type: \"checkbox\", name: \"allChannels\", controlledInput: true, checkboxChecked: allChannelsChecked, label: t('label.all'), onChange: (e) => {\n setAllChannelsChecked(e.target.checked);\n turnOnOrOffChannels(e.target.checked, formprops.form.mutators.global);\n setRequiredMarketingConsent([]);\n } }),\n React.createElement(\"div\", { className: \"channel-flags newsletter-flag\" },\n React.createElement(DwFormField, { def: formdef, onChange: (e) => setRequiredMarketingConsent([]), name: \"emailChannel\", type: \"checkbox\" }),\n React.createElement(DwFormField, { def: formdef, onChange: (e) => setRequiredMarketingConsent([]), name: \"smsChannel\", type: \"checkbox\" }),\n React.createElement(DwFormField, { def: formdef, onChange: (e) => setRequiredMarketingConsent([]), name: \"phoneChannel\", type: \"checkbox\" }),\n React.createElement(DwFormField, { def: formdef, onChange: (e) => setRequiredMarketingConsent([]), name: \"letterChannel\", type: \"checkbox\" })),\n React.createElement(ErrorBox, { errors: requiredMarketingConsent })))))),\n React.createElement(\"div\", { className: \"form-section\" },\n React.createElement(\"h3\", { className: \"form-section-title primary-s\" }, t('login.trackingbrowsingtitle')),\n React.createElement(\"div\", { className: \"wrapper-flag\" },\n React.createElement(DwFormField, { def: formdef, type: \"radio\", name: \"trackingbrowsingradio\", groupClassName: \"form-group--gender-radio mb-24\" }))),\n React.createElement(DwFormField, { def: formdef, type: \"checkbox\", name: \"termsandconditions\", requiredLabel: true }))),\n React.createElement(\"div\", { className: \"register_form__label\" },\n React.createElement(\"p\", { className: \"primary-xs\" }, t('label.mandatoryfields'))),\n React.createElement(ErrorBox, { errors: errors }),\n React.createElement(\"div\", { className: \"row row-reverse-mobile\" },\n React.createElement(\"div\", { className: \"col-md-6\" }, !window.clickfromstore ? (React.createElement(React.Fragment, null, !props.inContactUs && (React.createElement(React.Fragment, null, props.setLoginStep ? (React.createElement(\"button\", { type: \"button\", onClick: props.onBack, className: \"button button--tertiary button--arrow-left min-24\" }, t('button.back'))) : (React.createElement(\"a\", { href: window.loginUrl, className: \"button button--tertiary button--arrow-left min-24\" }, t('label.login'))))))) : (React.createElement(\"button\", { type: \"submit\", onClick: (e) => {\n setLinkCopied(true);\n if (linkRegister) {\n navigator.clipboard.writeText(linkRegister);\n e.preventDefault();\n }\n setTimeout(() => {\n setLinkCopied(false);\n }, 3000);\n }, className: linkCopied ? 'button button--primary' : 'button button--secondary' }, linkCopied ? t('button.copiedlink') : t('button.copylink')))),\n React.createElement(\"div\", { className: \"col-md-6\" },\n React.createElement(Button, { type: \"submit\", disabled: formprops.submitting, onClick: (e) => {\n setEmailSent(true);\n if (linkRegister) {\n api.sendLoginOnBehalfRegistrationEmail(props.loginEmail, linkRegister);\n e.preventDefault();\n }\n setTimeout(() => {\n setEmailSent(false);\n }, 3000);\n }, cls: [emailSent ? 'button--secondary' : 'button--primary'] }, window.clickfromstore ? (emailSent ? t('button.sentsubscriptionemail') : t('button.sendsubscriptionemail')) : t('button.createaccount')))),\n showRecaptcha && React.createElement(ReCAPTCHA, { className: \"recaptcha\", sitekey: window.atob(window.recapchaData), size: \"invisible\", ref: reCaptchaRef })));\n } })));\n};\nexport default RegisterForm;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nimport { capitalizeFirstLetter } from '@utils/stringUtils';\nimport analytics from '@utils/analytics';\nimport { appPostStructuredMessage } from '@utils/appUtils';\nimport cookie from 'react-cookies';\nconst targetEndpoints = {\n account: 1,\n checkout: 2,\n preferences: 3,\n cart: 4,\n wishlist: 5,\n};\nconst SocialButton = (props) => {\n var _a, _b;\n const { t } = useTranslation();\n let redirectParams = {};\n let anchorParams;\n if (props.reloadUrl && ((_a = props.reloadUrl) === null || _a === void 0 ? void 0 : _a.indexOf('?')) > -1) {\n let url = props.reloadUrl.split('?')[1];\n let pairs = url.split('&');\n pairs.forEach(function (pair) {\n pair = pair.split('=');\n redirectParams[pair[0]] = decodeURIComponent(pair[1] || '');\n });\n }\n if (props.reloadUrl && ((_b = props.reloadUrl) === null || _b === void 0 ? void 0 : _b.indexOf('#')) > -1) {\n anchorParams = props.reloadUrl.split('#')[1];\n }\n const socialLink = (provider) => {\n var _a;\n return `${window.sociallogin}?oauthProvider=${capitalizeFirstLetter(provider)}${props.reloadTarget ? '&oauthLoginTargetEndPoint=' + targetEndpoints[props.reloadTarget] : ''}${props.reloadUrl ? '&targetReload=' + ((_a = props.reloadUrl) === null || _a === void 0 ? void 0 : _a.split(/[?#]/)[0]) : ''}${Object.keys(redirectParams).length ? '&redirectParams=' + JSON.stringify(redirectParams) : ''}${anchorParams ? '&anchorParams=' + anchorParams : ''}`;\n };\n return (React.createElement(\"a\", { onClick: (e) => {\n // send analytics\n props.setIsLoading && props.setIsLoading(true);\n props.from && analytics.expressCheckoutSocialLoginRegister(props.from, props.social.toLowerCase());\n props.analyticsKey === 'earlyAccess' && analytics[props.analyticsKey]('pop-up', `${props.social.toLowerCase()}-login`);\n props.social &&\n props.analyticsKey === 'modal' &&\n analytics.socialLoginGeneric({ event: 'popup', eventCategory: 'popup', eventAction: `${props.social.toLowerCase()}-login`, eventLabel: 'open' });\n props.social && props.analyticsKey === 'menu'\n ? analytics.socialLoginGeneric({ eventAction: `${props.social.toLowerCase()}-login`, eventLabel: 'open' })\n : analytics.socialLoginGeneric({ eventAction: `${props.social.toLowerCase()}-login`, eventLabel: 'login' });\n // Sent to BE information to redirect the user to the wishlist if he comes from it\n if (props.from === 'wishlist') {\n cookie.save('fromWishlist', 'true', { path: '/', maxAge: 600 });\n }\n else {\n cookie.remove('fromWishlist');\n }\n // send message & deactivated operation 'sign in with google' for app\n if (window.appmode) {\n props.social == 'google' && window.appmode && appPostStructuredMessage('checkout_google_signin', {});\n e.preventDefault();\n }\n }, className: classNames('button social-button', `button--${props.secondary ? 'secondary' : 'link'}`), href: socialLink(props.social) },\n React.createElement(\"div\", { className: `icon--social-${props.social}` }),\n t(props.register ? `signup.${props.social}` : `signin.${props.social}`)));\n};\nexport default SocialButton;\n","import classNames from 'classnames';\nimport React from 'react';\nconst Button = (props) => {\n const handleClick = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onClick) {\n e.preventDefault();\n }\n props.onClick && props.onClick.call(this, e);\n };\n const handleKeyDown = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onKeyDown) {\n e.preventDefault();\n }\n props.onKeyDown && props.onKeyDown.call(this, e);\n };\n return (React.createElement(\"button\", Object.assign({ ref: props.reference, onClick: handleClick, onKeyDown: handleKeyDown, disabled: props.disabled, className: classNames('button', props.cls, props.className, { loading: props.isLoading }), type: props.type, \"aria-label\": props.ariaLabel, \"aria-current\": props.ariaCurrent, \"aria-expanded\": props.ariaExpanded, \"aria-haspopup\": props.ariaHaspopup, \"aria-controls\": props.ariaControls }, (props.tabIndex ? { tabIndex: props.tabIndex } : {})), props.isLoading ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null))) : (React.createElement(\"span\", null, props.children))));\n};\nButton.defaultProps = {\n cls: ['button--primary'],\n className: '',\n};\nexport default Button;\n","import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport DwFormField from './DwFormField';\nimport { gridClassname } from '@common/utils/brandDiffsUtils';\nimport classNames from 'classnames';\nconst placeholders = {\n '+82': 'label.phoneplaceholderkr',\n};\nconst DwFormFieldPhoneWithPrefix = (props) => {\n const { t } = useTranslation();\n const [prefix, setPrefix] = useState(props.def.phonePrefix.htmlValue);\n // also handle cases where phonePrefix is not used\n return props.def.phonePrefix ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: classNames('row', 'phonewithprefix-label', { 'phonewithprefix-label--nopad': props.noPadding }) },\n React.createElement(\"div\", { className: gridClassname(12) }, props.uniqueLabel && (React.createElement(\"legend\", { className: \"form-group__label\" }, props.def.phonePrefix.mandatory || props.def.phone.mandatory ? props.uniqueLabel + '*' : props.uniqueLabel)))),\n React.createElement(\"div\", { className: \"row phonewithprefix-fields\" },\n React.createElement(\"div\", { className: gridClassname(4) },\n React.createElement(DwFormField, { def: props.def, name: \"phonePrefix\", type: \"phoneprefix\", hiddenLabel: true, disabled: props.disabled, autocomplete: \"tel-country-code\", onChange: (e) => {\n setPrefix(e.target.value);\n }, idSuffix: props === null || props === void 0 ? void 0 : props.idSuffix })),\n React.createElement(\"div\", { className: gridClassname(8) },\n React.createElement(DwFormField, { def: props.def, disabled: props.disabled, placeholder: placeholders[prefix] ? t(placeholders[prefix]) : '', name: \"phone\", type: \"text\", autocomplete: \"tel-national\", pattern: \"[0-9]*\", validTick: !props.hideValidTick, hiddenLabel: true, idSuffix: props === null || props === void 0 ? void 0 : props.idSuffix, helperText: !props.hideHelperText && (window.country == 'JP' || window.country == 'KR') ? t('label.singlebytephone') : undefined }))))) : (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: gridClassname(12) },\n React.createElement(DwFormField, { def: props.def, disabled: props.disabled, name: \"phone\", type: \"text\", autocomplete: \"tel\", validTick: !props.hideValidTick, idSuffix: props === null || props === void 0 ? void 0 : props.idSuffix }))));\n};\nexport default DwFormFieldPhoneWithPrefix;\n","export const slugify = (text) => text.toLowerCase().split(' ').join('-');\nexport const getElementFromHtmlString = (htmlString, selector) => {\n var _a;\n let textVal = null;\n let div = document.createElement('div');\n div.innerHTML = htmlString;\n textVal = (_a = div.querySelector(selector)) === null || _a === void 0 ? void 0 : _a.innerHTML;\n return textVal;\n};\n// FIXME queste cose vanno fatte a backend, non qui\nexport const calculateDateforJP = (date) => {\n if (!date)\n return;\n const splitted = date.split('.');\n const year = splitted.pop();\n const days = splitted.shift();\n if (year.length == 4 && window.country == 'JP') {\n splitted.splice(0, 0, year);\n splitted.splice(2, 0, days);\n return splitted.join('.');\n }\n else {\n return date;\n }\n};\nexport const validateEmail = (email) => {\n return /^[\\w.%+-]+@[\\w.-]+\\.[\\w]{2,6}$/.test(email);\n};\nexport const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\nexport const getZeroPadNumber = (_number, digits = 2) => {\n return _number.toString().length >= digits ? _number.toString() : _number.toString().padStart(digits, '0');\n};\n// REF :: https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color\nexport const useStringRgbContrast = (rgbCssString, dark = 'rgb(0,0,0)', light = 'rgb(255,255,255)') => {\n if (!rgbCssString)\n return dark;\n //parso la stringa RGB\n let rgb = rgbCssString.replace('rgb(', '').replace(')', '').split(',');\n if (rgb.length < 3)\n return dark;\n //trasformo rgb in srgb\n let srgb = rgb.map((n) => {\n let c = Number(n) / 255;\n if (c <= 0.04045)\n return c / 12.92;\n return Math.pow((c + 0.055) / 1.055, 2.4);\n });\n //calcolo la luminescenza\n const L = 0.2126 * srgb[0] + 0.7152 * srgb[1] + 0.0722 * srgb[2];\n //calcolo se il colore di contrasto รจ light\n const useDark = L > Math.sqrt(1.05 * 0.05) - 0.05;\n // console.log(`%c${rgbCssString}`, `background-color: ${rgbCssString}; color: ${useDark ? '#000' : '#FFF'}; padding:4px; border: solid 1px red;`, L, srgb, rgb);\n //ritorno la stringa passata come parametro\n return useDark ? dark : light;\n};\nexport const getRandomUUID = (prefix) => {\n var _a;\n let uuid = (_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID();\n if (!uuid)\n uuid = Math.random().toString(26);\n return `${prefix || ''}${uuid}`;\n};\n","import DwFormField from '@ui/formfield/DwFormField';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nimport FormField from '@ui/formfield/FormField';\nconst MonclerCollectionCheckbox = ({ formdef, formInstance }) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;\n const { t } = useTranslation();\n const [collectionCheckbox, setCollectionCheckbox] = useState(false);\n const [menCollection, setMenCollection] = useState(false);\n const [womenCollection, setWomenCollection] = useState(false);\n const [childrenCollection, setChildrenCollection] = useState(false);\n const [genius, setGenius] = useState(false);\n const [grenoble, setGrenoble] = useState(false);\n const [loggedin, setLoggedin] = useState(window.loggedin);\n useEffect(() => {\n if (!menCollection && !womenCollection && !childrenCollection && collectionCheckbox) {\n setCollectionCheckbox(false);\n }\n else if ((menCollection || womenCollection || childrenCollection) && !collectionCheckbox) {\n setCollectionCheckbox(true);\n }\n }, [menCollection, womenCollection, childrenCollection]);\n useEffect(() => {\n var _a, _b, _c, _d, _e;\n setChildrenCollection((_a = formdef.addtoemaillistchildren) === null || _a === void 0 ? void 0 : _a.checked);\n setWomenCollection((_b = formdef.addtoemaillistwomen) === null || _b === void 0 ? void 0 : _b.checked);\n setMenCollection((_c = formdef.addtoemaillistmen) === null || _c === void 0 ? void 0 : _c.checked);\n setGenius((_d = formdef.addtoemaillistgenius) === null || _d === void 0 ? void 0 : _d.checked);\n setGrenoble((_e = formdef.addtoemaillistgrenoble) === null || _e === void 0 ? void 0 : _e.checked);\n }, []);\n const toggleCollection = (e) => {\n const checked = e.currentTarget.checked;\n setCollectionCheckbox(checked);\n setMenCollection(checked);\n setWomenCollection(checked);\n setChildrenCollection(checked);\n formInstance.batch(() => {\n formInstance.change('addtoemaillistmen', checked);\n formInstance.change('addtoemaillistwomen', checked);\n formInstance.change('addtoemaillistchildren', checked);\n });\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(FormField, { type: \"checkbox\", name: \"triggerCollection\", controlledInput: true, disabled: window.clickfromstore, checkboxChecked: (!loggedin || ((_a = formdef.personalInfoFlag) === null || _a === void 0 ? void 0 : _a.checked) || ((_b = formdef.personalinfo) === null || _b === void 0 ? void 0 : _b.checked)) && collectionCheckbox, onChange: (e) => toggleCollection(e), className: \"newsletter-checkbox moncler-collection\", label: t('newsletter.monclercollection.title') }),\n React.createElement(\"p\", { className: classNames('newsletter-checkbox-description', { 'mb-16': !collectionCheckbox }) }, t('newsletter.monclercollection.description')),\n collectionCheckbox && (React.createElement(\"fieldset\", { className: \"text-normal\" },\n React.createElement(\"legend\", { className: \"visually-hidden\" }, t('newsletter.monclercollection')),\n React.createElement(DwFormField, { def: formdef, name: \"addtoemaillistmen\", type: \"checkbox\", controlledInput: true, disabled: window.clickfromstore, checkboxChecked: (!loggedin || ((_c = formdef.personalInfoFlag) === null || _c === void 0 ? void 0 : _c.checked) || ((_d = formdef.personalinfo) === null || _d === void 0 ? void 0 : _d.checked)) && menCollection, onChange: (e) => setMenCollection(e.currentTarget.checked) }),\n React.createElement(DwFormField, { def: formdef, name: \"addtoemaillistwomen\", type: \"checkbox\", controlledInput: true, disabled: window.clickfromstore, checkboxChecked: (!loggedin || ((_e = formdef.personalInfoFlag) === null || _e === void 0 ? void 0 : _e.checked) || ((_f = formdef.personalinfo) === null || _f === void 0 ? void 0 : _f.checked)) && womenCollection, onChange: (e) => {\n setWomenCollection(e.currentTarget.checked);\n } }),\n React.createElement(DwFormField, { def: formdef, name: \"addtoemaillistchildren\", type: \"checkbox\", controlledInput: true, disabled: window.clickfromstore, checkboxChecked: (!loggedin || ((_g = formdef.personalInfoFlag) === null || _g === void 0 ? void 0 : _g.checked) || ((_h = formdef.personalinfo) === null || _h === void 0 ? void 0 : _h.checked)) && childrenCollection, onChange: (e) => setChildrenCollection(e.currentTarget.checked) }))),\n React.createElement(DwFormField, { def: formdef, name: \"addtoemaillistgenius\", type: \"checkbox\", disabled: window.clickfromstore, className: \"newsletter-checkbox moncler-genius\", controlledInput: true, checkboxChecked: (!loggedin || ((_j = formdef.personalInfoFlag) === null || _j === void 0 ? void 0 : _j.checked) || ((_k = formdef.personalinfo) === null || _k === void 0 ? void 0 : _k.checked)) && genius, onChange: (e) => setGenius(e.currentTarget.checked) }),\n React.createElement(\"p\", { className: \"newsletter-checkbox-description mb-16\" }, t('newsletter.genius.description')),\n React.createElement(DwFormField, { def: formdef, name: \"addtoemaillistgrenoble\", type: \"checkbox\", disabled: window.clickfromstore, className: \"newsletter-checkbox moncler-grenoble\", controlledInput: true, checkboxChecked: (!loggedin || ((_l = formdef.personalInfoFlag) === null || _l === void 0 ? void 0 : _l.checked) || ((_m = formdef.personalinfo) === null || _m === void 0 ? void 0 : _m.checked)) && grenoble, onChange: (e) => setGrenoble(e.currentTarget.checked) }),\n React.createElement(\"p\", { className: \"newsletter-checkbox-description\" }, t('newsletter.grenoble.description'))));\n};\nexport default MonclerCollectionCheckbox;\n"],"names":["props","t","formdef","className","formInstance","window","country","def","name","autocomplete","validTick","type","isRegisterForm","showModal","setShowModal","useState","social","analyticsKey","from","register","secondary","reloadTarget","reloadUrl","setIsLoading","appleConfInit","setAppleConfInit","useEffect","then","data","_a","_b","configuration","enabled","_appleConfInit","clientId","redirectURI","scope","nonce","state","usePopup","AppleID","auth","init","e","console","log","appleSignin","signIn","document","addEventListener","event","authorizationResponse","authorization","code","detail","id_token","user","email","firstName","lastName","success","login","eventCategory","eventAction","eventLabel","path","maxAge","location","reload","replace","registerUrl","error","onClick","appmode","errors","length","every","err","role","map","i","key","toString","isLoading","exitBeforeEnter","initial","opacity","animate","exit","transition","duration","delay","src","loaderSrc","alt","enabledSocials","includes","enabledAppleLogin","focusOnError","setFormdef","initialValues","setInitialValues","setErrors","requiredMarketingConsent","setRequiredMarketingConsent","registerFormRef","useRef","allChannelsChecked","setAllChannelsChecked","linkCopied","setLinkCopied","emailSent","setEmailSent","linkRegister","setLinkRegister","reCaptchaRef","showRecaptcha","recapchaCfg","JSON","parse","registerButton","params","URLSearchParams","search","val","app","webVer","useSingleField","dateofbirthfull","mandatory","personalinforadio","trackingbrowsingradio","get","orderData","shippingAddress","shipping","title","firstname","lastname","phone","orderEmail","phonePrefix","catch","customerData","customerEmail","loginEmail","customer","month","Number","padStart","day","localname","localName","localsurname","localSurname","gender","year","inContactUs","validate","async","values","profiletoken","turnOnOrOffChannels","value","mutator","smsChannel","emailChannel","phoneChannel","letterChannel","readOnlyEmail","authenticationProviderID","Boolean","clickfromstore","sociallogin","onSubmit","isClickFromStore","sendEmail","token","current","executeAsync","gr3Token","inputMarketing","querySelector","focus","pageContext","Object","keys","destination","newsletterSelection","personalinfo","addtoemaillistchildren","addtoemaillistmen","addtoemaillistwomen","addtoemaillistgrenoble","addtoemaillistgenius","redirectAfterSuccess","message","subscriptionLink","navigator","clipboard","writeText","fromPage","redirectUrl","setLoginStep","reloadComponent","loggedin","setForceReload","mutators","global","decorators","render","formprops","ref","handleSubmit","readonly","disabled","helperText","showPassword","requiredLabel","maxDate","groupClassName","uniqueLabel","onChange","target","form","controlledInput","checkboxChecked","label","checked","preventDefault","setTimeout","onBack","href","loginUrl","submitting","cls","sitekey","atob","recapchaData","size","targetEndpoints","account","checkout","preferences","cart","wishlist","anchorParams","redirectParams","indexOf","split","forEach","pair","decodeURIComponent","toLowerCase","provider","stringify","socialLink","Button","assign","reference","undefined","usesDefault","call","onKeyDown","loading","ariaLabel","ariaCurrent","ariaExpanded","ariaHaspopup","ariaControls","tabIndex","children","defaultProps","placeholders","prefix","setPrefix","htmlValue","noPadding","hiddenLabel","idSuffix","placeholder","pattern","hideValidTick","hideHelperText","slugify","text","join","getElementFromHtmlString","htmlString","selector","textVal","div","createElement","innerHTML","calculateDateforJP","date","splitted","pop","days","shift","splice","validateEmail","test","capitalizeFirstLetter","string","charAt","toUpperCase","slice","getRandomUUID","uuid","crypto","randomUUID","Math","random","_c","_d","_e","_f","_g","_h","_j","_k","_l","_m","collectionCheckbox","setCollectionCheckbox","menCollection","setMenCollection","womenCollection","setWomenCollection","childrenCollection","setChildrenCollection","genius","setGenius","grenoble","setGrenoble","setLoggedin","personalInfoFlag","currentTarget","batch","change","toggleCollection"],"sourceRoot":""}