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H,EAC0B,QAA7BA,EAAK+Q,EAAWjI,eAA4B,IAAP9I,GAAyBA,EAAGiR,iBAAiB,cAAehJ,IAC9F,kBAAwB/B,EAAMgL,kBAAmBhL,EAAMiL,gBAAiBjL,EAAMkL,eAAe,GAC/F,GACH,CAACL,IACI,gBAAoB,WAAgB,KAAML,IAAmBxP,OAAOmH,YAAe,gBAAoB,MAAO,CAAEG,UAAW,yBAC/H,gBAAoB,cAAe,CAAEgD,IAAKuF,GACtC,gBAAoB,SAAU,CAAEM,KAAM,WAAY7I,UAAWtC,EAAMoL,SAAU7F,UAAWoF,GACpF3K,EAAMqL,MAAQ,gBAAoB,OAAQ,CAAE/I,UAAW,kCACvDrC,EAAED,EAAMsL,iBAAmB,+BAC9BtL,EAAMuL,mBAAsB,gBAAoB,SAAU,CAAEJ,KAAM,UAAW7I,UAAWtC,EAAMoL,SAAU7F,UAAWoF,GAChH3K,EAAMqL,MAAQ,gBAAoB,OAAQ,CAAE/I,UAAW,kCACvDrC,EAAE,mCAAsC,C","sources":["webpack:///./assets/common/src/components/chat/ChatUtils.ts","webpack:///./assets/common/src/components/login/LoginEmailForm.tsx","webpack:///./assets/common/src/components/login/LoginJoinMoncler.tsx","webpack:///./assets/common/src/components/login/LoginPasswordForm.tsx","webpack:///./assets/common/src/components/login/LoginSocial.tsx","webpack:///./assets/common/src/components/login/OtherLoginMethods.tsx","webpack:///./assets/common/src/components/login/RegisteredInStore.tsx","webpack:///./assets/common/src/components/login/RegisteredInStoreSendEmail.tsx","webpack:///./assets/common/src/utils/urlutils.ts","webpack:///./assets/moncler/src/components/nft/WalletConnectBtn.tsx"],"sourcesContent":["import api from '@utils/api';\nimport Smooch from 'smooch';\nconst sendMessage = (message) => {\n let conversation = Smooch.getDisplayedConversation();\n if (conversation == null || conversation == undefined) {\n Smooch.createConversation({\n messages: [message],\n }).then(() => { });\n }\n else {\n let conversationId = conversation.id;\n Smooch.sendMessage(message, conversationId);\n }\n};\nconst addStyleToChatWrapper = () => {\n let timerId = setInterval(() => {\n var _a;\n let chatWrapper = document.getElementById('web-messenger-container').contentDocument;\n if ((_a = chatWrapper === null || chatWrapper === void 0 ? void 0 : chatWrapper.head) === null || _a === void 0 ? void 0 : _a.appendChild) {\n clearTimeout(timerId);\n document.getElementById('web-messenger-container').hidden = true;\n const linkEl = document.createElement('link');\n linkEl.setAttribute('rel', 'stylesheet');\n linkEl.setAttribute('href', `${window.staticurl}chat.css`);\n linkEl.setAttribute('href', `${window.staticurl.replace('/images/', '/css/main.css')}`);\n let chatWrapper = document.getElementById('web-messenger-container').contentDocument;\n chatWrapper.head.appendChild(linkEl);\n chatWrapper.head.insertAdjacentHTML('beforeend', '');\n }\n }, 200);\n};\nexport const sendInfoJSON = (user, minicart) => {\n var _a;\n let profile = {};\n if (user.isAuthenticated) {\n profile = {\n email: user.email,\n firstName: user.firstName,\n gender: user.gender,\n lastName: user.lastName,\n phone: user.phone,\n phonePrefix: user.phonePrefix,\n preferredLocale: user.preferredLocale,\n crmID: user.dynamicsCrmID,\n };\n }\n let infoJson = {\n pageUrl: location.href,\n profile: profile,\n pageInfo: {\n country: window.datalayerdata.pageCountry,\n language: window.locale.replace('_', '-').toLowerCase(),\n pageCategory: window.datalayerdata.pageCategory,\n },\n shoppingBag: {\n items: minicart.items.map((item) => {\n var _a, _b, _c, _d, _e;\n return ({\n dimension52: (_a = item.analyticsAttributes) === null || _a === void 0 ? void 0 : _a.dimension52,\n img: (_b = item.imgs) === null || _b === void 0 ? void 0 : _b.alt,\n price: (_d = (_c = item.price) === null || _c === void 0 ? void 0 : _c.sales) === null || _d === void 0 ? void 0 : _d.formatted,\n quantity: item.quantity,\n variationAttributes: (_e = item.variationAttributes) === null || _e === void 0 ? void 0 : _e.map((variations) => {\n const selected = variations.values.find((val) => val.selected);\n return {\n displayValue: variations.displayValue,\n id: variations.id,\n productId: selected.productId,\n productUrl: selected.productUrl,\n };\n }),\n });\n }),\n totals: (_a = minicart === null || minicart === void 0 ? void 0 : minicart.totals) === null || _a === void 0 ? void 0 : _a.grandTotal,\n },\n };\n sendMessage({\n type: 'text',\n text: JSON.stringify(infoJson),\n metadata: {\n isHidden: true,\n isWebInfoJson: true,\n },\n });\n};\nexport const sendIsOnlineRequest = async (IntegrationId, LanguageCode, ConversationId) => {\n // sendMessage({\n // type: 'text',\n // text: '{isCustomerServiceOnline?}',\n // metadata: {\n // isHidden: true,\n // },\n // });\n addStyleToChatWrapper();\n return api.isWebChatAvailable(IntegrationId, LanguageCode, ConversationId);\n};\nexport const removeChatInfosFromStorage = (id) => {\n const integrationId = id || JSON.parse(localStorage.getItem('livechatid') || '{}').value;\n if (integrationId) {\n localStorage.removeItem('livechatid');\n localStorage.removeItem(`${integrationId}.sessionToken`);\n localStorage.removeItem(`${integrationId}.clientId`);\n localStorage.removeItem(`${integrationId}.appUserId`);\n }\n};\n","import ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport api from '@utils/api';\nimport formutils from '@utils/formutils';\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 analytics from '@utils/analytics';\nimport { autoChooseClassnames } from '@common/utils/brandDiffsUtils';\nimport cookie from 'react-cookies';\nconst focusOnError = createDecorator(); // must be outside the component\nconst LoginEmailForm = (props) => {\n const { t } = useTranslation();\n const [errors, setErrors] = useState([]);\n const [formdef, setFormdef] = useState();\n const [isSubmitting, setIsSubmitting] = useState(false);\n const [notValidClothing, setNotValidClothing] = useState(false);\n const [initialValues, setInitialValues] = useState();\n const reCaptchaRef = useRef();\n const showRecaptcha = window.recapchaCfg && JSON.parse(window.recapchaCfg).loginButton;\n const searchParams = new URLSearchParams(window.location.search);\n let loginAbandonedCartSubtitle = searchParams.get('abandonedcart') == 'true' ? t('login.abandonedcart.subtitle') : null;\n const toWishlistTitle = searchParams.get('towishlist') == 'true' ? t('login.wishlist.subtitle') : null;\n useEffect(() => {\n let val = {};\n api.getForm('email', val).then((data) => {\n setInitialValues(val);\n setFormdef(data);\n });\n }, []);\n useEffect(() => {\n if (props.profileForm) {\n try {\n const profileForm = JSON.parse(props.profileForm);\n const email = profileForm.customer.email.htmlValue;\n console.log('email', email);\n if (email) {\n setInitialValues({ email: email });\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n }, [props.profileForm, formdef]);\n const validate = async (values) => {\n return await formutils.validateForm(values, formdef, 'email');\n };\n const onSubmitEmail = async (values) => {\n setErrors([]);\n // Sent to BE information to redirect the user to the wishlist if he comes from it\n if (window.location.href.includes('wishlist')) {\n cookie.save('fromWishlist', 'true', { path: '/', maxAge: 600 });\n }\n else {\n cookie.remove('fromWishlist');\n }\n setIsSubmitting(true);\n if (showRecaptcha) {\n const token = await reCaptchaRef.current.executeAsync();\n values.gr3Token = token;\n }\n api\n .checkLogin(values)\n .then((data) => {\n setIsSubmitting(false);\n // analytics.login();\n props.analyticsKey === 'earlyAccess' && analytics[props.analyticsKey]('pop-up', 'login or register');\n props.analyticsKey === 'menu' && analytics.loginOrRegister('menu');\n props.analyticsKey === 'modal' && analytics.popupLogin();\n props.setDoubleOptIn && props.setDoubleOptIn(data.clothingOptIn);\n if (data.success) {\n props.setLoginEmail(values.email);\n props.isLoginOrRegisterPage && analytics.loginOrRegister('');\n // gestione clothing\n if (window.isClothing) {\n if (data.clothingEnabled) {\n setNotValidClothing(false);\n }\n else {\n setNotValidClothing(true);\n setErrors([t('error.clothingnotavailable')]);\n return;\n }\n }\n if (data.exist && data.hasAvailableLoginMethods && !data.isCreationOnBehalfIncomplete) {\n // check se la privacy policy è stata accettata dall'utente\n if (!data.privacy) {\n setErrors([t('login.error.privacy.notflagged')]);\n }\n else {\n // esiste account con questa mail\n props.setLoginMethods(data.loginMethods);\n let emailMethodExist = data.loginMethods.find((loginMethod) => loginMethod.ID == 'email');\n //check account creato in Store\n if (data.isCreatedInStore && !data.hasChangedPassword) {\n if (data.hasSentCompleteProfileEmail) {\n props.setLoginStep('registeredInStore');\n }\n else {\n props.setLoginStep('registeredInStoreSendEmail');\n }\n }\n else {\n // Se l'ultimo metodo utilizzato è l'email || su clothing l'utente è registrato con una mail\n if (data.loginMethods[0].ID == 'email' || (window.isClothing && Boolean(emailMethodExist))) {\n if (!window.isClothing || data.clothingOptIn) {\n props.setLoginStep('password');\n }\n else {\n props.setLoginStep('doubleOptIn');\n }\n }\n else if (window.isClothing && !emailMethodExist) {\n // Se l'utente abilitato al clothing è registrato con i social\n props.setLoginStep('register');\n }\n else {\n props.setLoginStep('social-login');\n }\n }\n }\n }\n else {\n // NON esiste account con questa mail\n props.setLoginStep('register');\n }\n }\n if (data.error) {\n setErrors([data.errorMessage]);\n }\n })\n .catch((e) => {\n setErrors([e]);\n setIsSubmitting(false);\n });\n };\n const widhHeading = (__text) => {\n if (!props.useHeading)\n return React.createElement(\"p\", { className: \"primary-xs\" }, __text);\n return props.useHeading === 'h2' ? React.createElement(\"h2\", null, __text) : React.createElement(\"h3\", null, __text);\n };\n const title = props.customTitle || toWishlistTitle || loginAbandonedCartSubtitle || (window.isClothing && t('login.clothing.subtitle')) || t('login.subtitle');\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(React.Fragment, null,\n widhHeading(title),\n React.createElement(Form, { onSubmit: onSubmitEmail, initialValues: initialValues, decorators: [focusOnError], validate: (values) => validate(values), render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit, className: autoChooseClassnames({\n MO: 'mt-24',\n }) },\n React.createElement(\"div\", { className: autoChooseClassnames({\n MO: 'mb-16',\n }, 'formfields') },\n React.createElement(DwFormField, { onChange: (e) => {\n setNotValidClothing(false);\n }, className: notValidClothing && 'error-input', def: formdef, name: \"email\", type: \"email\", autocomplete: \"email\" }),\n React.createElement(ErrorBox, { errors: errors })),\n showRecaptcha && React.createElement(ReCAPTCHA, { className: \"recaptcha\", sitekey: window.atob(window.recapchaData), size: \"invisible\", ref: reCaptchaRef }),\n React.createElement(Button, { type: \"submit\", disabled: isSubmitting, className: autoChooseClassnames({\n ST: 'full button-login-cta',\n }), cls: ['button--primary'], onClick: () => {\n props.isLoginOrRegisterPage ? analytics.loginOrRegister('') : '';\n } }, props.customCtaText || t('login.loginregistertomymoncler')))) })));\n};\nexport default LoginEmailForm;\n","import api from '@utils/api';\nimport classNames from 'classnames';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst LoginJoinMoncler = (props) => {\n const { t } = useTranslation();\n const [componentList, setComponentList] = useState([]);\n const [currentComponent, setCurrentComponent] = useState();\n useEffect(() => {\n api.getPageJson('benefits-box', true).then((data) => {\n var _a, _b, _c, _d, _e;\n const component = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.regions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.find((el) => el.type_id === 'component_benefits_box');\n const componentList = (_e = (_d = component === null || component === void 0 ? void 0 : component.regions) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.components;\n if (component)\n setCurrentComponent(component);\n if (componentList)\n setComponentList(componentList);\n });\n }, []);\n if (!currentComponent || !componentList) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('login-registration__join-moncler', props.classNames) },\n React.createElement(\"p\", { className: \"bold mb-16 primary-s\" }, currentComponent.data.title),\n React.createElement(\"ul\", { className: \"register-list mb-16\" }, componentList.map((component) => (React.createElement(\"li\", { className: \"primary-xxs\", key: component.id },\n React.createElement(\"img\", { src: component.custom.image, alt: \"\" }),\n component.data.title)))),\n ((currentComponent.data.link && props.inModal) || props.showCTA) && (React.createElement(\"a\", { href: currentComponent.data.link, className: \"button\" },\n currentComponent.data.linkText,\n React.createElement(\"span\", { className: \"icon--chevron-small-right\" })))));\n};\nexport default LoginJoinMoncler;\n","import customEventBus from '@common/scripts/libs/eventBus';\nimport { addURLParameter } from '@common/utils/urlutils';\nimport { removeChatInfosFromStorage } from '@components/chat/ChatUtils';\nimport ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\nimport FormField from '@ui/formfield/FormField';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport classNames from 'classnames';\nimport createDecorator from 'final-form-focus';\nimport React, { useRef } from 'react';\nimport { Form } from 'react-final-form';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { useTranslation } from 'react-i18next';\nconst focusOnError = createDecorator(); // must be outside the component\nconst LoginPasswordForm = (props) => {\n const { t } = useTranslation();\n const [errors, setErrors] = React.useState([]);\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n const reCaptchaRef = useRef();\n const showRecaptcha = window.recapchaCfg && JSON.parse(window.recapchaCfg).loginButton;\n const redirectAfterSuccess = new URLSearchParams(window.location.search).get('redirectToPdp');\n const rurl = new URLSearchParams(window.location.search).get('rurl');\n const onSubmit = async (values) => {\n setErrors([]);\n setIsSubmitting(true);\n values.loginEmail = props.loginEmail;\n if (showRecaptcha) {\n const token = await reCaptchaRef.current.executeAsync();\n values.gr3Token = token;\n }\n if (!props.doubleOptIn && window.isClothing) {\n props.setLoginStep('doubleOptIn');\n }\n else {\n api\n .login(values, redirectAfterSuccess, rurl)\n .then((data) => {\n if (data.success) {\n (props === null || props === void 0 ? void 0 : props.updateLoggeedStatus) && (props === null || props === void 0 ? void 0 : props.updateLoggeedStatus(data.authenticatedCustomer));\n removeChatInfosFromStorage();\n analytics.login();\n if (props === null || props === void 0 ? void 0 : props.linkreload) {\n window.location.href = props.linkreload;\n }\n else if (props.reloadComponent) {\n window.loggedin = true;\n customEventBus.emit('account:update', { firstName: data === null || data === void 0 ? void 0 : data.authenticatedCustomer });\n }\n else if (data.redirectUrl) {\n window.location.href = data.redirectUrl;\n }\n else {\n window.location.reload();\n }\n }\n if (data.error && data.error.length > 0) {\n if (data.error[0] == 'migration') {\n window.location.href = addURLParameter(props.forgotpasswordform, 'migration', 'true');\n }\n else {\n setErrors(data.error);\n setIsSubmitting(false);\n }\n }\n })\n .catch((e) => {\n setErrors([e]);\n setIsSubmitting(false);\n });\n }\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: props.singleColumn ? 'col-12' : 'col-12 col-sm-8' },\n React.createElement(\"p\", { className: \"primary-xs\" },\n t('account.welcomeback'),\n \" \",\n React.createElement(\"b\", null, props.loginEmail)),\n React.createElement(\"p\", { className: \"primary-xs\" }, window.isClothing ? t('login.clothing.insertpassword') : t('login.insertpassword'))),\n React.createElement(\"div\", { className: props.singleColumn ? 'col-12 mt-12' : 'col-12 col-sm-4 sm-text-right' },\n React.createElement(\"button\", { onClick: () => props.setLoginStep('email'), className: \"link primary-xs\" }, t('login.editemail')))),\n React.createElement(Form, { onSubmit: onSubmit, decorators: [focusOnError], render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit, className: \"mt-24\" },\n React.createElement(\"div\", { className: classNames('formfields', { 'has-password-error': errors.length >= 1 }) },\n React.createElement(FormField, { name: \"loginPassword\", label: t('label.password'), type: \"password\", autocomplete: \"current-password\", showPassword: true, required: true }),\n React.createElement(\"div\", { className: \"forgot-pw-error\" },\n React.createElement(\"div\", { className: \"forgot-pw-error__pw\" },\n React.createElement(\"a\", { className: classNames('button', 'forgot-pw'), href: props.forgotpasswordform || window.forgotpasswordform, onClick: () => {\n props.onForgotPassword && props.onForgotPassword();\n analytics.forgotPasswordOne();\n } }, t('login.forgottenpassword'))),\n React.createElement(\"div\", { className: \"forgot-pw-error__error\" },\n React.createElement(ErrorBox, { errors: errors }))),\n !window.clickfromstore && (React.createElement(\"div\", { className: \"remember-me\" },\n props.rememberme && React.createElement(FormField, { name: \"loginRememberMe\", label: t('label.rememberme'), type: \"checkbox\", checked: true }),\n !window.isClothing && (React.createElement(\"a\", { href: props.privacypolicy || window.privacypolicyurl, target: \"_blank\", rel: \"noreferrer\", className: \"privacy-link primary-xs\" }, t('login.privacypolicy')))))),\n showRecaptcha && React.createElement(ReCAPTCHA, { className: \"recaptcha\", sitekey: window.atob(window.recapchaData), size: \"invisible\", ref: reCaptchaRef }),\n React.createElement(Button, { type: \"submit\", disabled: isSubmitting, cls: ['button--primary'] }, t('login.logintomymoncler')))) })));\n};\nexport default LoginPasswordForm;\n","import AppleSigninButton from '@components/applesignin/AppleSigninButton';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport SocialButton from './SocialButton';\nimport LineSigninButton from '@components/account/linesignin/LineSigninButton';\nconst LoginSocial = (props) => {\n const { t } = useTranslation();\n const [isLoading, setIsLoading] = useState(false);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: props.singleColumn ? 'col-12' : 'col-12 col-sm-8' },\n React.createElement(\"p\", { className: \"primary-xs\" },\n t('account.welcomeback'),\n \" \",\n React.createElement(\"b\", null, props.loginEmail)),\n React.createElement(\"p\", { className: \"primary-xs\" }, t('login.continuesocial', { socialName: props.socialUsed }))),\n React.createElement(\"div\", { className: props.singleColumn ? 'col-12 mt-12' : 'col-12 col-sm-4 sm-text-right' },\n React.createElement(\"button\", { onClick: () => props.setLoginStep('email'), className: \"link primary-xs\" }, t('login.editemail'))),\n React.createElement(\"div\", { className: \"col-12 mt-24\" },\n isLoading && (React.createElement(\"div\", { 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 props.socialUsed == 'Google' && React.createElement(SocialButton, { social: \"google\", secondary: true, reloadUrl: location.href, setIsLoading: setIsLoading }),\n props.socialUsed == 'Facebook' && React.createElement(SocialButton, { social: \"facebook\", secondary: true, reloadUrl: location.href, setIsLoading: setIsLoading }),\n props.socialUsed == 'Apple' && React.createElement(AppleSigninButton, { secondary: true, setIsLoading: setIsLoading }),\n props.socialUsed == 'Line' && React.createElement(LineSigninButton, { secondary: true, reloadUrl: location.href, setIsLoading: setIsLoading }))))));\n};\nexport default LoginSocial;\n","import AppleSigninButton from '@components/applesignin/AppleSigninButton';\nimport Button from '@ui/button/Button';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport SocialButton from './SocialButton';\nimport LineSigninButton from '@components/account/linesignin/LineSigninButton';\nconst OtherLoginMethods = (props) => {\n const { t } = useTranslation();\n const filteredMethods = useMemo(() => {\n return props.loginMethods.filter((e, i) => {\n if (props.loginStep == 'social-login') {\n return i != 0;\n }\n else {\n return e.ID != 'email';\n }\n });\n }, [props.loginMethods, props.loginStep]);\n return props.loginStep == 'social-login' && filteredMethods.length == 0 ? (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"text-center\" }, t('label.signinwithemail')),\n React.createElement(\"div\", { className: \"other-login-methods\" },\n React.createElement(Button, { type: \"button\", onClick: () => props.setLoginStep('register'), cls: ['button--primary'] }, t('login.registerwithpassword'))))) : (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"text-center\" }, t('label.signinwithother')),\n React.createElement(\"div\", { className: \"other-login-methods\" }, filteredMethods.map((login, index) => {\n return (React.createElement(\"div\", { key: index },\n login.ID == 'Google' && React.createElement(SocialButton, { social: \"google\", secondary: true, reloadUrl: location.href }),\n login.ID == 'Facebook' && React.createElement(SocialButton, { social: \"facebook\", secondary: true, reloadUrl: location.href }),\n login.ID == 'Apple' && React.createElement(AppleSigninButton, { secondary: true }),\n login.ID == 'Line' && React.createElement(LineSigninButton, { secondary: true, reloadUrl: location.href }),\n login.ID == 'email' && (React.createElement(Button, { type: \"button\", onClick: () => props.setLoginStep('password'), cls: ['button--primary'] }, t('login.logintomymoncler')))));\n }))));\n};\nexport default OtherLoginMethods;\n","import ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\nimport api from '@utils/api';\nimport { removeChatInfosFromStorage } from '@components/chat/ChatUtils';\nimport createDecorator from 'final-form-focus';\nimport React, { useRef } from 'react';\nimport { Form } from 'react-final-form';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport FormField from '@ui/formfield/FormField';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nimport analytics from '@utils/analytics';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { addURLParameter } from '@common/utils/urlutils';\nconst focusOnError = createDecorator(); // must be outside the component\nconst RegisteredInStore = (props) => {\n const { t } = useTranslation();\n const [errors, setErrors] = React.useState([]);\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n const reCaptchaRef = useRef();\n const showRecaptcha = window.recapchaCfg && JSON.parse(window.recapchaCfg).loginButton;\n const redirectAfterSuccess = new URLSearchParams(window.location.search).get('redirectToPdp');\n const onSubmit = async (values) => {\n setErrors([]);\n setIsSubmitting(true);\n values.loginEmail = props.loginEmail;\n if (showRecaptcha) {\n const token = await reCaptchaRef.current.executeAsync();\n values.gr3Token = token;\n }\n api\n .login(values, redirectAfterSuccess)\n .then((data) => {\n if (data.success) {\n (props === null || props === void 0 ? void 0 : props.updateLoggeedStatus) && (props === null || props === void 0 ? void 0 : props.updateLoggeedStatus(data.authenticatedCustomer));\n removeChatInfosFromStorage();\n analytics.login();\n if ((props === null || props === void 0 ? void 0 : props.linkreload) && !props.reloadComponent) {\n window.location.href = props.linkreload;\n }\n else if (props.reloadComponent) {\n window.loggedin = true;\n customEventBus.emit('account:update', {});\n }\n else if (data.redirectUrl && !props.reloadPageRegisteredInStore) {\n window.location.replace(data.redirectUrl);\n }\n else {\n window.location.reload();\n }\n }\n if (data.error && data.error.length > 0) {\n if (data.error[0] == 'migration') {\n window.location.href = addURLParameter(props.forgotpasswordform, 'migration', 'true');\n }\n else {\n setErrors(data.error);\n setIsSubmitting(false);\n }\n }\n })\n .catch((e) => {\n setErrors([e]);\n setIsSubmitting(false);\n });\n };\n const sendEmail = () => {\n api.forgotPasswordSendMail(props.loginEmail);\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"primary-xs\", dangerouslySetInnerHTML: { __html: t('login.registeredinstore.title', { 0: props.loginEmail }) } }),\n React.createElement(\"div\", { className: \"row mt-24\" },\n React.createElement(\"p\", { className: \"primary-xs\" },\n t('login.clothing.sendagaintext'),\n \"\\u00A0\"),\n React.createElement(\"button\", { className: \"link primary-xs\", onClick: () => sendEmail() }, t('login.clothing.sendagain'))),\n React.createElement(\"p\", { className: \"mt-32 primary-xs\" }, t('login.registeredinstore.subtitle')),\n React.createElement(Form, { onSubmit: onSubmit, decorators: [focusOnError], render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit, className: \"mt-24\" },\n React.createElement(\"div\", { className: classNames('formfields', { 'has-password-error': errors.length >= 1 }) },\n React.createElement(FormField, { name: \"loginPassword\", label: t('label.password'), type: \"password\", autocomplete: \"current-password\", showPassword: true, required: true }),\n React.createElement(\"div\", { className: \"forgot-pw-error\" },\n React.createElement(\"div\", { className: \"forgot-pw-error__pw\" },\n React.createElement(\"a\", { className: classNames('button', 'forgot-pw'), href: props.forgotpasswordform || window.forgotpasswordform, onClick: () => analytics.forgotPasswordOne() }, t('login.forgottenpassword'))),\n React.createElement(\"div\", { className: \"forgot-pw-error__error\" },\n React.createElement(ErrorBox, { errors: errors }))),\n !window.clickfromstore && (React.createElement(\"div\", { className: \"remember-me\" },\n props.rememberme && React.createElement(FormField, { name: \"loginRememberMe\", label: t('label.rememberme'), type: \"checkbox\", checked: true }),\n React.createElement(\"a\", { href: props.privacypolicy || window.privacypolicyurl, target: \"_blank\", rel: \"noreferrer\", className: \"privacy-link\" }, t('login.privacypolicy'))))),\n showRecaptcha && React.createElement(ReCAPTCHA, { className: \"recaptcha\", sitekey: window.atob(window.recapchaData), size: \"invisible\", ref: reCaptchaRef }),\n React.createElement(Button, { type: \"submit\", disabled: isSubmitting, cls: ['button--primary'] }, t('login.logintomymoncler')))) })));\n};\nexport default RegisteredInStore;\n","import api from '@utils/api';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst RegisteredInStoreSendEmail = (props) => {\n const { t } = useTranslation();\n const sendEmail = () => {\n api.forgotPasswordSendMail(props.loginEmail);\n props.setLoginStep('registeredInStore');\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"p\", { className: !props.fromMinicart ? 'col-sm-8 primary-xs' : 'primary-xs', dangerouslySetInnerHTML: {\n __html: t('login.registeredinstore.welcomeback', { 0: props.loginEmail }),\n } }),\n React.createElement(\"button\", { onClick: () => props.setLoginStep('email'), className: classNames('link primary-xs', { 'col-sm-2': !props.fromMinicart }) }, t('login.editemail'))),\n React.createElement(\"div\", { className: \"row mt-24 send-email-registered\" },\n React.createElement(\"button\", { className: \"button button--secondary primary-xs\", onClick: () => sendEmail() }, t('login.registeredinstore.sendemail')))));\n};\nexport default RegisteredInStoreSendEmail;\n","/**\n *\n * @function updateURLParameter\n * update url parameter\n *\n * @example\n * //http://localhost:3000?category=primary&page=2\n * const urlParams = new URLSearchParams(location.search);\n * const currentPage = urlParams.get('page');\n * const nextPageUrl = updateURLParameter(location.href, 'page', currentPage++);\n * //http://localhost:3000?category=primary&page=3\n *\n * @param {string} url - url to update\n * @param param - param key\n * @param paramVal - param new value\n *\n * @returns {string} newUrl - newUrl with new value\n */\nexport const addURLParameter = (url, param, paramVal) => {\n if (url.indexOf('?') > -1) {\n return url + '&' + param + '=' + paramVal;\n }\n else {\n return url + '?' + param + '=' + paramVal;\n }\n};\nexport const addURLParameters = (baseUrl, queryParams) => {\n let newUrl = baseUrl;\n for (const [key, value] of Object.entries(queryParams)) {\n newUrl = addURLParameter(newUrl, key, value);\n }\n return newUrl;\n};\nexport const updateURLParameter = (url, param, paramVal) => {\n let newAdditionalURL = '';\n let tempArray = url.split('?');\n let baseURL = tempArray[0];\n let additionalURL = tempArray[1];\n let temp = '';\n if (additionalURL) {\n tempArray = additionalURL.split('&');\n for (let i = 0; i < tempArray.length; i++) {\n if (tempArray[i].split('=')[0] != param) {\n newAdditionalURL += temp + tempArray[i];\n temp = '&';\n }\n }\n }\n let rows_txt = temp + '' + param + '=' + paramVal;\n return baseURL + '?' + newAdditionalURL + rows_txt;\n};\n/**\n *\n * @function siteUrl\n * return the url stored as sirng in window.siteUrls if exists\n *\n * @param {string} urlName - the URL name in `siteUrls`\n *\n * @returns {string} urlString - the url or undefined if missing\n */\nexport const siteUrl = (urlName) => {\n if (!window.siteUrls)\n return undefined;\n return window.siteUrls[urlName];\n};\n","import React, { useEffect, useState, useRef } from 'react';\nimport '@arianee/arn-components'; // Register ARN web components\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { useTranslation } from 'react-i18next';\nimport analytics from '@utils/analytics';\nconst WalletConnectBtn = (props) => {\n const [arnClientReady, setArnClientReady] = useState(!!window.arnClient);\n const { t } = useTranslation();\n const [enabled, setEnabled] = useState(true);\n const connectBtn = useRef(null);\n useEffect(() => {\n customEventBus.on('arnClient:ready', (data) => {\n setArnClientReady(data.ready);\n });\n customEventBus.on('wallet:arn-button:status', (data) => {\n setEnabled(data.enabled);\n });\n }, []);\n useEffect(() => {\n var _a;\n (_a = connectBtn.current) === null || _a === void 0 ? void 0 : _a.addEventListener('connecting', (e) => {\n analytics.walletConnect(props.analyticsCategory, props.analyticsAction, props.analyticsLabel);\n });\n }, [connectBtn]);\n return (React.createElement(React.Fragment, null, arnClientReady && !window.isClothing && (React.createElement(\"div\", { className: \"account-wrapper__item\" },\n React.createElement(\"arn-connect\", { ref: connectBtn },\n React.createElement(\"button\", { slot: \"if-false\", className: props.btnClass, disabled: !enabled },\n props.icon && React.createElement(\"span\", { className: \"mr-8 icon--walletconnect-logo\" }),\n t(props.connectBtnLabel || 'walletconnect.btn.connect')),\n !props.hideDisconnectBtn && (React.createElement(\"button\", { slot: \"if-true\", className: props.btnClass, disabled: !enabled },\n props.icon && React.createElement(\"span\", { className: \"mr-8 icon--walletconnect-logo\" }),\n t('walletconnect.btn.disconnect'))))))));\n};\nexport default WalletConnectBtn;\n"],"names":["sendInfoJSON","user","minicart","_a","profile","isAuthenticated","email","firstName","gender","lastName","phone","phonePrefix","preferredLocale","crmID","dynamicsCrmID","infoJson","pageUrl","location","href","pageInfo","country","window","datalayerdata","pageCountry","language","locale","replace","toLowerCase","pageCategory","shoppingBag","items","map","item","_b","_c","_d","_e","dimension52","analyticsAttributes","img","imgs","alt","price","sales","formatted","quantity","variationAttributes","variations","selected","values","find","val","displayValue","id","productId","productUrl","totals","grandTotal","message","conversation","undefined","messages","then","conversationId","sendMessage","type","text","JSON","stringify","metadata","isHidden","isWebInfoJson","sendIsOnlineRequest","async","IntegrationId","LanguageCode","ConversationId","timerId","setInterval","chatWrapper","document","getElementById","contentDocument","head","appendChild","clearTimeout","hidden","linkEl","createElement","setAttribute","staticurl","insertAdjacentHTML","addStyleToChatWrapper","removeChatInfosFromStorage","integrationId","parse","localStorage","getItem","value","removeItem","focusOnError","props","t","errors","setErrors","useState","formdef","setFormdef","isSubmitting","setIsSubmitting","notValidClothing","setNotValidClothing","initialValues","setInitialValues","reCaptchaRef","useRef","showRecaptcha","recapchaCfg","loginButton","searchParams","URLSearchParams","search","loginAbandonedCartSubtitle","get","toWishlistTitle","useEffect","data","profileForm","customer","htmlValue","console","log","e","error","title","customTitle","isClothing","__text","useHeading","className","onSubmit","includes","path","maxAge","token","current","executeAsync","gr3Token","analyticsKey","setDoubleOptIn","clothingOptIn","success","setLoginEmail","isLoginOrRegisterPage","clothingEnabled","exist","hasAvailableLoginMethods","isCreationOnBehalfIncomplete","privacy","setLoginMethods","loginMethods","emailMethodExist","loginMethod","ID","isCreatedInStore","hasChangedPassword","hasSentCompleteProfileEmail","setLoginStep","Boolean","errorMessage","catch","decorators","validate","render","handleSubmit","form","submitting","pristine","MO","onChange","def","name","autocomplete","sitekey","atob","recapchaData","size","ref","disabled","ST","cls","onClick","customCtaText","componentList","setComponentList","currentComponent","setCurrentComponent","component","regions","components","el","type_id","classNames","key","src","custom","image","link","inModal","showCTA","linkText","redirectAfterSuccess","rurl","singleColumn","loginEmail","doubleOptIn","updateLoggeedStatus","authenticatedCustomer","linkreload","reloadComponent","loggedin","redirectUrl","reload","length","forgotpasswordform","label","showPassword","required","onForgotPassword","clickfromstore","rememberme","checked","privacypolicy","privacypolicyurl","target","rel","isLoading","setIsLoading","socialName","socialUsed","loaderSrc","social","secondary","reloadUrl","filteredMethods","useMemo","filter","i","loginStep","login","index","dangerouslySetInnerHTML","__html","reloadPageRegisteredInStore","fromMinicart","addURLParameter","url","param","paramVal","indexOf","addURLParameters","baseUrl","queryParams","newUrl","Object","entries","siteUrl","urlName","siteUrls","arnClientReady","setArnClientReady","arnClient","enabled","setEnabled","connectBtn","ready","addEventListener","analyticsCategory","analyticsAction","analyticsLabel","slot","btnClass","icon","connectBtnLabel","hideDisconnectBtn"],"sourceRoot":""}