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AAA,iCAAyC,GAAG5M,EAAM2O,wBAAyBlE,EAAQR,EAAgB4B,YAAY+C,cAAgB,IAAM9O,EAAE,iDAAiD8O,cAAc,GACrM9O,EAAE,0CACf,gBAAoB+O,EAAA,EAAU,CAAEhF,OAAQA,SA1D7C,gBAAoB,WAAgB,KA0D0B,ECtL7E,MAZ2B7J,IACvB,MAAM,EAAEF,IAAM,EAAAqI,EAAA,MACP2G,EAAUC,IAAe,IAAA5O,UAASe,OAAO8B,UAChD,OAAQ,gBAAoBgM,EAAA,EAAa,CAAEC,YAAY,EAAMC,WAAW,EAAMC,OAAQnP,EAAMmP,OAAQC,eAAgBpP,EAAMoP,eAAgB5P,UAAW,0DAA2D6P,aAAcvP,EAAE,4BAC5N,gBAAoB,MAAO,CAAEN,UAAW,2BACpC,gBAAoB,MAAO,CAAEA,UAAW,0BAA2BC,MAAO,CAAEC,gBAAiB,OAAOM,EAAMsP,iBAC1G,gBAAoB,MAAO,CAAE9P,UAAW,0CAA4CsP,EAAY,gBAAoB,EAAkB/H,OAAOC,OAAO,CAAEnG,KAAM,SAAWb,IAAY,gBAAoB,WAAgB,KACnN,gBAAoB,KAAM,CAAER,UAAW,iBAAmBM,EAAE,4BAC5D,gBAAoB,OAAQ,CAAEN,UAAW,oBAAsBM,EAAE,+BACjE,gBAAoB,MAAO,CAAEN,UAAW,SACxC,gBAAoB+P,EAAA,EAAuB,CAAEnN,iBAAiB,EAAMM,YAAY,EAAMV,cAAehC,EAAMgC,cAAeC,mBAAoBjC,EAAMiC,mBAAoBjB,WAAY,IAAMhB,EAAMoP,eAAgBjN,oBAAqB,IAAM4M,GAAY,GAAOpM,eAAgB,IAAMoM,GAAY,QAAc,C","sources":["webpack:///./assets/common/src/components/login/LoginOrRegisterColumn.tsx","webpack:///./assets/common/src/components/login/LoginOrRegisterHeader.tsx","webpack:///./assets/common/src/components/login/RegistrationSuccessful.tsx","webpack:///./assets/common/src/components/storelocator/StoreAddress.tsx","webpack:///./assets/common/src/components/storelocator/StoreGetDirections.tsx","webpack:///./assets/common/src/utils/brandDiffsUtils.ts","webpack:///./assets/common/src/utils/useQueryString.ts","webpack:///./assets/moncler/src/components/appointments/LiveBoutiqueConfirmationModal.tsx","webpack:///./assets/moncler/src/components/appointments/LiveBoutiqueForm.tsx","webpack:///./assets/moncler/src/components/appointments/LiveBoutiqueModal.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport LoginEmailForm from '@components/login/LoginEmailForm';\nimport LoginPasswordForm from '@components/login/LoginPasswordForm';\nimport LoginSocial from '@components/login/LoginSocial';\nimport RegisterForm from '@components/login/RegisterForm';\nimport LoginJoinMoncler from '@components/login/LoginJoinMoncler';\nimport LoginOrRegisterSocial from './LoginOrRegisterSocial';\nimport LoginOrRegisterHeader from './LoginOrRegisterHeader';\nimport RegistrationSuccessful from './RegistrationSuccessful';\nimport classNames from 'classnames';\nimport OtherLoginMethods from './OtherLoginMethods';\nimport RegisteredInStore from '@components/login/RegisteredInStore';\nimport RegisteredInStoreSendEmail from '@components/login/RegisteredInStoreSendEmail';\nimport WalletConnectBtn from '@moncler/components/nft/WalletConnectBtn';\nconst hero = {\n    title: 'My Moncler',\n    background: '/on/demandware.static/-/Library-Sites-library-global/default/menu/myaccount-hero.jpg',\n};\nconst HeroBanner = () => {\n    return (React.createElement(\"div\", { className: \"myaccount-hero\", style: { backgroundImage: `url(${hero.background})` } },\n        React.createElement(\"h2\", { className: \"myaccount-hero__title\" }, hero.title)));\n};\nconst WishlistButtonDesktop = ({ wishlistUrl, wishlistCount }) => {\n    const { t } = useTranslation();\n    return (React.createElement(\"a\", { className: \"wishlist-desktop-button bold border-bottom border-top primary-s mt-32\", href: wishlistUrl },\n        t('bag.wishlist'),\n        wishlistCount > 0 && (React.createElement(React.Fragment, null,\n            ' ',\n            \"(\",\n            React.createElement(\"span\", { className: \"wishlist-count\" }, wishlistCount),\n            \")\"))));\n};\nconst LoginOrRegisterColumn = (props) => {\n    const { t } = useTranslation();\n    const [loginStep, setLoginStep] = useState(props.defaultRegister ? 'register' : 'email');\n    const [loginEmail, setLoginEmail] = useState();\n    const [loginMethods, setLoginMethods] = useState([]);\n    return (React.createElement(React.Fragment, null,\n        React.createElement(\"div\", { className: \"wrapper-header-modal\" },\n            loginStep != 'registration-successful' && props.inModal && ((props.inAccountMenu && loginStep != 'email') || !props.inAccountMenu) && (React.createElement(LoginOrRegisterHeader, { onBack: () => {\n                    if (loginStep == 'email') {\n                        (props === null || props === void 0 ? void 0 : props.onBack) && props.onBack();\n                    }\n                    else {\n                        setLoginStep('email');\n                    }\n                }, step: loginStep })),\n            props.inModal && (React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.close'), className: classNames('modal__close', { invert: loginStep == 'email' && props.inAccountMenu }), onClick: props.closeModal }))),\n        loginStep == 'email' && (React.createElement(React.Fragment, null,\n            props.inAccountMenu && React.createElement(HeroBanner, null),\n            React.createElement(LoginEmailForm, { setLoginStep: setLoginStep, setLoginEmail: setLoginEmail, setLoginMethods: setLoginMethods, analyticsKey: props.inModal ? 'modal' : props.analyticsKey }),\n            !window.isClothing && window.sociallogin && window.enabledSocials.length > 0 && (React.createElement(LoginOrRegisterSocial, { from: props.from, reloadUrl: props.reloadAfterSocialLogin || props.linkreload || location.href, analyticsKey: props.analyticsKey })),\n            React.createElement(LoginJoinMoncler, { inModal: props.inModal }),\n            props.inAccountMenu && (React.createElement(React.Fragment, null,\n                React.createElement(WishlistButtonDesktop, { wishlistCount: props.wishlistCount, wishlistUrl: props.wishlistUrl }),\n                React.createElement(WalletConnectBtn, { btnClass: \"wallet-connect__btn\", analyticsCategory: \"menu\", analyticsAction: \"wallet connect\" }))))),\n        loginStep == 'password' && (React.createElement(LoginPasswordForm, { setLoginStep: setLoginStep, loginEmail: loginEmail, rememberme: props.rememberme, privacypolicy: props.privacypolicy, forgotpasswordform: props.forgotpasswordform, singleColumn: true, linkreload: props.linkreload, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent })),\n        loginStep == 'social-login' && React.createElement(LoginSocial, { setLoginStep: setLoginStep, loginEmail: loginEmail, socialUsed: loginMethods[0].ID, singleColumn: true }),\n        !window.isClothing && ((loginStep == 'password' && loginMethods.length > 1) || loginStep == 'social-login') && (React.createElement(\"div\", { className: \"mt-32 border-top pt-24\" },\n            React.createElement(OtherLoginMethods, { loginMethods: loginMethods, setLoginStep: setLoginStep, loginStep: loginStep }))),\n        loginStep == 'register' && (React.createElement(RegisterForm, { loginEmail: loginEmail, setLoginStep: setLoginStep, setForceReload: props.setForceReload, pageContext: props.pageContext, reloadComponent: props.reloadRegisterComponent })),\n        loginStep == 'registration-successful' && React.createElement(RegistrationSuccessful, { reloadPage: props.reloadPage, updateLoggeedStatus: props.updateLoggedin, closeModal: props.closeModal }),\n        loginStep == 'registeredInStore' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store\" },\n            React.createElement(RegisteredInStore, { rememberme: true, loginEmail: loginEmail, setLoginStep: setLoginStep, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent, linkreload: props.linkreload, reloadPageRegisteredInStore: props.reloadPageRegisteredInStore }))),\n        loginStep == 'registeredInStoreSendEmail' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store-send-email\" },\n            React.createElement(RegisteredInStoreSendEmail, { fromMinicart: true, loginEmail: loginEmail, setLoginStep: setLoginStep })))));\n};\nexport default LoginOrRegisterColumn;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst LoginOrRegisterHeader = (props) => {\n    const { t } = useTranslation();\n    return (React.createElement(\"div\", { className: \"login-register-header\" },\n        React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.back'), className: \"modal__back\", onClick: props.onBack }),\n        React.createElement(\"h2\", { className: \"mt-20\" }, props.step == 'email' ? t('login.loginregister') : props.step == 'register' ? t('login.registertomymoncler') : t('login.logintomymoncler'))));\n};\nexport default LoginOrRegisterHeader;\n","import customEventBus from '@common/scripts/libs/eventBus';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst RegistrationSuccessful = (props) => {\n    const { t } = useTranslation();\n    return (React.createElement(\"div\", { className: classNames('login-registration__registration-successful', props.classNames) },\n        React.createElement(\"h2\", { className: \"mt-64 mb-8 primary-m\" }, t('modal.loginregister.successfull')),\n        React.createElement(\"p\", { className: \"primary-xs\" }, t('modal.loginregister.thankyou1')),\n        React.createElement(\"p\", { className: \"mb-24 primary-xs\" }, t('modal.loginregister.thankyou2')),\n        React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.close'), className: \"button button--primary primary-xs\", onClick: () => {\n                if (props.reloadPage && !props.reloadComponent) {\n                    window.location.reload();\n                }\n                else if (props.reloadComponent) {\n                    props.updateLoggeedStatus(true);\n                    window.loggedin = true;\n                    customEventBus.emit('account:update', {});\n                }\n                else {\n                    props.closeModal();\n                }\n            } }, t('modal.loginregister.keepbrowsing'))));\n};\nexport default RegistrationSuccessful;\n","import { getId } from '@common/utils/brandDiffsUtils';\nimport StoreGetDirections from '@components/storelocator/StoreGetDirections';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst StoreAddress = (props) => {\n    var _a, _b, _c, _d;\n    const { t } = useTranslation();\n    const brandId = getId();\n    const { store, hidename, showphone, showmail, showdirections, showHours } = props;\n    if (!store) {\n        return React.createElement(React.Fragment, null);\n    }\n    return (React.createElement(\"address\", { className: \"store-details\", \"data-boutiqueid\": store.ID },\n        !hidename && React.createElement(\"span\", { className: \"name\" }, store.name),\n        brandId === 'MO' ? (React.createElement(React.Fragment, null,\n            store.countryCode.value != 'JP' && React.createElement(\"span\", { className: \"address\" }, `${store.address1 || ''} ${store.address2 || ''} `),\n            React.createElement(\"span\", { className: \"address2\" },\n                store.postalCode,\n                \" \",\n                store.countryCode.value === 'JP' ? (_a = store.countryCode) === null || _a === void 0 ? void 0 : _a.displayValue : '',\n                \" \",\n                store.city,\n                ' ',\n                store.countryCode.value === 'US' || store.countryCode.value === 'CA' ? store === null || store === void 0 ? void 0 : store.stateCode : '',\n                \" \",\n                store.countryCode.value != 'JP' ? (_b = store.countryCode) === null || _b === void 0 ? void 0 : _b.displayValue : ''),\n            store.countryCode.value === 'JP' && React.createElement(\"span\", { className: \"address\" }, `${store.address1 || ''} ${store.address2 || ''} `))) : (React.createElement(React.Fragment, null,\n            React.createElement(\"span\", { className: \"address\" },\n                React.createElement(React.Fragment, null,\n                    store.countryCode.value != 'JP' && `${store.address1 || ''} ${store.address2 || ''} `,\n                    props.split && React.createElement(\"br\", null),\n                    store.postalCode,\n                    \" \",\n                    store.countryCode.value === 'JP' ? (_c = store.countryCode) === null || _c === void 0 ? void 0 : _c.displayValue : '',\n                    \" \",\n                    store.city,\n                    ' ',\n                    store.countryCode.value === 'US' || store.countryCode.value === 'CA' ? store === null || store === void 0 ? void 0 : store.stateCode : '',\n                    ' ',\n                    store.countryCode.value != 'JP' ? (_d = store.countryCode) === null || _d === void 0 ? void 0 : _d.displayValue : '')))),\n        showphone && store.phone && (React.createElement(\"a\", { href: `tel:${store.phone}`, className: \"telephone\" }, store.phone)),\n        showmail && store.email && (React.createElement(\"a\", { target: \"_blank\", rel: \"noreferrer\", href: `mailto:${store.email}`, className: \"email\" }, store.email)),\n        showdirections && React.createElement(StoreGetDirections, { store: store }),\n        showHours && store.storeHours && (React.createElement(\"div\", { className: \"store-details__hours\" },\n            React.createElement(\"span\", { className: \"store-details__title\" }, t('label.storeHours')),\n            React.createElement(\"dl\", null, store.storeHours.map((sh) => (React.createElement(React.Fragment, { key: sh.day },\n                React.createElement(\"dt\", null, sh.day),\n                React.createElement(\"dd\", null, sh.text)))))))));\n};\nexport default StoreAddress;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst StoreGetDirections = (props) => {\n    const { t } = useTranslation();\n    const { store, className, trackingAction } = props;\n    return (React.createElement(\"a\", { href: `https://www.google.com/maps/dir/?api=1&destination=${store.latitude},${store.longitude}`, target: \"_blank\", rel: \"noreferrer\", className: classNames('get-directions', className), onClick: trackingAction ? trackingAction : undefined },\n        React.createElement(\"span\", null, t('button.getdirections'))));\n};\nexport default StoreGetDirections;\n","import classNames from 'classnames';\nconst gridClassMultiplier = {\n    MO: 1,\n    ST: 2,\n};\nconst getGridColNumber = (colnumnber) => {\n    return colnumnber * (gridClassMultiplier[getId()] || gridClassMultiplier.MO);\n};\nconst getId = () => {\n    return window.brandId;\n};\nconst getName = () => {\n    return window.brand;\n};\nconst is = (brandId) => {\n    return getId() === brandId;\n};\nconst nameIs = (brand) => {\n    return getName() === brand;\n};\nconst autoChooseClassnames = (classesObj, commonclasses) => {\n    return classNames(classesObj[getId()], commonclasses);\n};\nconst gridClassname = (monclerColumn = 12, brackpoint, type, commonclasses) => {\n    let result = [(type || 'col')];\n    brackpoint && result.push(brackpoint);\n    result.push(getGridColNumber(monclerColumn) + '');\n    return result.join('-');\n};\nconst gridClassnames = (configs, commonclasses) => {\n    return (configs\n        .map((args) => {\n        return gridClassname.apply(this, [...args]);\n    })\n        .join(' ') + (commonclasses ? ' ' + commonclasses : ''));\n};\nconst autoChooseComponent = (componentsObj) => {\n    return componentsObj[getId()];\n};\nconst autoChooseProps = (props) => {\n    return props[getId()];\n};\nexport { autoChooseClassnames, autoChooseComponent, autoChooseProps, getGridColNumber, getId, getName, gridClassname, gridClassnames, is, nameIs };\n","import qs from 'query-string';\nimport { useCallback, useState } from 'react';\nfunction useQueryString(key, initialValue, isboolean) {\n    const setQueryStringWithoutPageReload = (qsValue) => {\n        const newurl = window.location.protocol + '//' + window.location.host + window.location.pathname + (qsValue ? '?' + qsValue : '');\n        window.history.pushState({ path: newurl }, '', newurl);\n    };\n    const getQueryStringValue = (key) => {\n        const values = qs.parse(window.location.search);\n        let value = values[key];\n        return isboolean ? !!value : value;\n    };\n    function setQueryStringValue(key, value) {\n        const values = qs.parse(window.location.search);\n        const newvalues = Object.assign(Object.assign({}, values), { [key]: value });\n        if (isboolean && !value) {\n            delete newvalues[key];\n        }\n        const newQsValue = qs.stringify(newvalues);\n        setQueryStringWithoutPageReload(newQsValue);\n    }\n    const onSetValue = useCallback((newValue) => {\n        let newvaltyped = isboolean ? !!newValue || undefined : newValue;\n        setValue(newvaltyped);\n        setQueryStringValue(key, newvaltyped);\n    }, [key]);\n    const [value, setValue] = useState(getQueryStringValue(key) || initialValue);\n    return [value, onSetValue];\n}\nexport default useQueryString;\n","import formutils from '@utils/formutils';\nimport { calculateDateforJP } from '@utils/stringUtils';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst LiveBoutiqueConfirmationModal = (props) => {\n    var _a, _b, _c, _d, _e, _f, _g;\n    const { t } = useTranslation();\n    const { requestSent, formdef, days } = props;\n    return (React.createElement(React.Fragment, null,\n        React.createElement(\"div\", { className: \"modal__header-sticky no-border\" },\n            React.createElement(\"h1\", { className: \"dialog__title text-uppercase\" }, t('bookanappointment.bookingcomplete'))),\n        React.createElement(\"div\", { className: \"product-reserve__detail__reserve-review\" },\n            React.createElement(\"h2\", { className: \"primary-m\" }, t('bookanappointment.thankyou', { name: requestSent === null || requestSent === void 0 ? void 0 : requestSent.firstname })),\n            React.createElement(\"p\", { className: \"mt-12 mb-24\", dangerouslySetInnerHTML: { __html: t('bookanappointment.confirmation') } }),\n            React.createElement(\"div\", { className: \"row\" },\n                React.createElement(\"div\", { className: \"col-6\" },\n                    React.createElement(\"dt\", { className: \"text-uppercase mb-16\" }, t('bookanappointment.bookingnumber')),\n                    React.createElement(\"dd\", null, (_b = (_a = props.appointmentresponse) === null || _a === void 0 ? void 0 : _a.booking) === null || _b === void 0 ? void 0 : _b.code)),\n                React.createElement(\"div\", { className: \"col-6\" },\n                    React.createElement(\"dt\", { className: \"text-uppercase mb-16\" }, t('label.type')),\n                    React.createElement(\"dd\", null, t('bookanappointment.liveboutique')))),\n            React.createElement(\"div\", { className: \"product-reserve__detail__review\" },\n                React.createElement(\"div\", { className: \"divider \" }),\n                React.createElement(\"div\", { className: \"row mt-24\" },\n                    React.createElement(\"div\", { className: \"col-6\" },\n                        React.createElement(\"h4\", { className: \"text-uppercase mb-16\" }, t('findinboutique.storeinfo')),\n                        React.createElement(\"p\", { className: \"mb-8\" }, (_c = props.store) === null || _c === void 0 ? void 0 : _c.name),\n                        React.createElement(\"p\", { className: \"mb-8\" },\n                            props.store.address1,\n                            \" \",\n                            props.store.address2,\n                            \" \",\n                            props.store.city),\n                        ((_d = props.store) === null || _d === void 0 ? void 0 : _d.phone) && (React.createElement(\"p\", { className: \"mb-8\" },\n                            React.createElement(\"a\", { href: `tel:${props.store.phone}` }, props.store.phone))),\n                        ((_e = props.store) === null || _e === void 0 ? void 0 : _e.email) && (React.createElement(\"p\", null,\n                            React.createElement(\"a\", { target: \"_blank\", rel: \"noreferrer\", href: `mailto:${props.store.email}` }, props.store.email)))),\n                    React.createElement(\"div\", { className: \"col-6\" },\n                        React.createElement(\"h4\", { className: \"text-uppercase mb-16\" }, t('findinboutique.customerinfo')),\n                        React.createElement(\"p\", { className: \"mb-8\" },\n                            formutils.labelByValue(requestSent === null || requestSent === void 0 ? void 0 : requestSent.title, formdef === null || formdef === void 0 ? void 0 : formdef.title),\n                            \" \", requestSent === null || requestSent === void 0 ? void 0 :\n                            requestSent.firstname,\n                            \" \", requestSent === null || requestSent === void 0 ? void 0 :\n                            requestSent.lastname),\n                        React.createElement(\"p\", { className: \"mb-8\" }, requestSent === null || requestSent === void 0 ? void 0 : requestSent.email),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.phone) && (React.createElement(\"p\", { className: \"mb-8\" }, requestSent === null || requestSent === void 0 ? void 0 :\n                            requestSent.phonePrefix,\n                            \" \", requestSent === null || requestSent === void 0 ? void 0 :\n                            requestSent.phone)),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.email) && React.createElement(\"p\", null, requestSent === null || requestSent === void 0 ? void 0 : requestSent.email))),\n                React.createElement(\"div\", { className: \"divider \" }),\n                React.createElement(\"div\", { className: \"row mt-24\" },\n                    React.createElement(\"div\", { className: \"col-6\" },\n                        React.createElement(\"h4\", { className: \"text-uppercase mb-16\" }, t('bookanappointment.appointmentdetails')),\n                        React.createElement(\"p\", { className: \"mt-8\" },\n                            t('label.date'),\n                            \": \",\n                            calculateDateforJP(requestSent === null || requestSent === void 0 ? void 0 : requestSent.date)),\n                        React.createElement(\"p\", { className: \"mt-8\" },\n                            t('label.hour'),\n                            \": \", (_g = (_f = days[requestSent === null || requestSent === void 0 ? void 0 : requestSent.date]) === null || _f === void 0 ? void 0 : _f.find((p) => p.value == requestSent.hour)) === null || _g === void 0 ? void 0 :\n                            _g.label)),\n                    React.createElement(\"div\", { className: \"col-6\" },\n                        React.createElement(\"h4\", { className: \"text-uppercase mb-16\" }, t('bookanappointment.livereason')),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) && (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250000 && t('bookanappointment.reason.discovercollection'),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) && (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250001 && t('bookanappointment.reason.specialoccasion'),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) && (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250002 && t('bookanappointment.reason.ski'),\n                        (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) && (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250003 && t('bookanappointment.reason.a')))))));\n};\nexport default LiveBoutiqueConfirmationModal;\n","import ErrorBox from '@components/common/ErrorBox';\nimport classNames from 'classnames';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport { BAA } from '@utils/constants';\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 { useTranslation } from 'react-i18next';\nimport Tooltip from '@ui/tooltip/Tooltip';\nimport LiveBoutiqueConfirmationModal from './LiveBoutiqueConfirmationModal';\nimport BookAnAppointmentDateSelection from './BookAnAppointmentDateSelection';\nimport BookAnAppointmentReasonMessage from './BookAnAppointmentReasonMessage';\nimport DwFormFieldPhoneWithPrefix from '@ui/formfield/DwFormFieldPhoneWithPrefix';\nconst focusOnError = createDecorator(); // must be outside the component\nconst LiveBoutiqueForm = (props) => {\n    const { t } = useTranslation();\n    const [requestSent, setRequestSent] = useState();\n    const [appointmentresponse, setAppointmentresponse] = useState();\n    const [formdef, setFormdef] = useState();\n    const [initialValues, setInitialValues] = useState();\n    const [errors, setErrors] = useState([]);\n    const [days, setDays] = useState({});\n    const [store, setStore] = useState(props.store);\n    const [appointmentType, setAppointmentType] = useState(BAA.APPOINTMENT.VIRTUAL);\n    const [collections, setCollections] = useState([]);\n    const [profile, setProfile] = useState();\n    const appointmentSection = useRef(null);\n    const tabsMap = {\n        '552250000': t('bookanappointment.appointmentinstoreanalytics'),\n        '552250001': t('bookanappointment.virtualappointmentanalytics'),\n    };\n    useEffect(() => {\n        var _a;\n        api.searchStoreDetails((_a = props.store) === null || _a === void 0 ? void 0 : _a.ID).then((data) => {\n            setStore(data);\n        });\n    }, [props.store]);\n    useEffect(() => {\n        let isMounted = true;\n        let val = {};\n        api.getForm('bookanappointment', val, true).then((data) => {\n            var _a;\n            if (!val.appointmenttype) {\n                val.appointmenttype = BAA.APPOINTMENT.VIRTUAL;\n            }\n            if (props.type == 'mbm' && !val.reason) {\n                val.reason = BAA.REASONS.PERSONALIZATION;\n            }\n            // filtra la personalization reason in base alla global preference activateMbmReasonContact\n            if (!window.mbmContactReason) {\n                data.reason.options = data.reason.options.filter((o) => o.value != BAA.REASONS.PERSONALIZATION);\n            }\n            // store without personalization room, filter it out from reasons\n            if (props.type == 'modal' && !((_a = store === null || store === void 0 ? void 0 : store.storeServices) === null || _a === void 0 ? void 0 : _a.personalizationRoom)) {\n                data.reason.options = data.reason.options.filter((o) => o.value != BAA.REASONS.PERSONALIZATION);\n            }\n            if (isMounted) {\n                if (appointmentType != val.appointmenttype) {\n                    setAppointmentType(val.appointmenttype);\n                }\n                setInitialValues(val);\n                setFormdef(data);\n            }\n        });\n        api.getProfile().then((data) => {\n            setProfile(data);\n        });\n        return () => {\n            isMounted = false;\n        };\n    }, []);\n    useEffect(() => {\n        if (store) {\n            api.bookAnAppointmentSlots(store === null || store === void 0 ? void 0 : store.ID, appointmentType).then((data) => {\n                setDays(data.days);\n                if (props.type != 'mbm') {\n                    api.bookAnAppointmentCollections(store === null || store === void 0 ? void 0 : store.ID).then((data) => {\n                        setCollections(data);\n                    });\n                }\n            });\n        }\n    }, [store, appointmentType]);\n    const prefillValues = (values) => {\n        values.storeid = store === null || store === void 0 ? void 0 : store.ID;\n        if (window.loggedin) {\n            values.privacyFlag = true;\n            values.email = profile.email;\n            values.firstname = profile.firstName;\n            values.lastname = profile.lastName;\n            if (profile.phone) {\n                values.phone = profile.phone.toString();\n            }\n        }\n        if (values.appointmenttype == BAA.APPOINTMENT.VIRTUAL && values.reason == BAA.REASONS.PERSONALIZATION) {\n            values.reason = undefined;\n        }\n    };\n    const validate = async (values) => {\n        prefillValues(values);\n        return await formutils.validateForm(values, formdef, 'bookanappointment');\n    };\n    const onSubmit = async (values) => {\n        setErrors([]);\n        let err = await validate(values);\n        if (err && Object.keys(err).length > 0) {\n            return err;\n        }\n        await api.bookAnAppointmentSubmit(values, formdef).then((data) => {\n            // console.log('after submit: ' + JSON.stringify(data, null, 2));\n            if (typeof data === 'undefined') {\n                // -- setShowOverlay(false) if same appointment ?\n                return;\n            }\n            if (data.error && data.error.length > 0) {\n                setErrors(data.error);\n                return;\n            }\n            // https://jira.industries-group.com/browse/MOM-3264\n            // let errors: models.ValidationErrors = {};\n            // if (!formutils.checkValidationAfterSubmit(data, errors)) {\n            //   return errors;\n            // }\n            if (props.type != 'mbm') {\n                // -- not mbm\n                // analytics.bookAppointmentSubmit(props.product?.masterId);\n                analytics.storelocatorBookAppointment(['modal', 'mbm'].includes(props.type) ? 'storelocator' : 'footer', `submit-moncler ${store.name}`);\n            }\n            setRequestSent(values);\n            setAppointmentresponse(data);\n            document.querySelector('.myaccount-hero').scrollIntoView({ behavior: 'smooth', inline: 'end' });\n        });\n    };\n    if (formdef && store && requestSent && appointmentresponse) {\n        return React.createElement(LiveBoutiqueConfirmationModal, { store: store, formdef: formdef, requestSent: requestSent, appointmentresponse: appointmentresponse, days: days });\n    }\n    if (!formdef || !initialValues || !store || !profile) {\n        return React.createElement(React.Fragment, null);\n    }\n    return (React.createElement(React.Fragment, null,\n        React.createElement(\"div\", { className: \"modal__header-sticky\" },\n            React.createElement(\"h1\", { className: \"dialog__title\" }, t('bookanappointment.title')),\n            React.createElement(\"h2\", { className: \"mt-24\" }, t('bookanappointment.liveboutique'))),\n        React.createElement(\"div\", { className: classNames('mt-24 mb-12') },\n            React.createElement(\"div\", { className: \"live-boutique-selected-store\" },\n                store.liveBoutique && (React.createElement(\"div\", { className: \"live-boutique\" },\n                    React.createElement(\"span\", { className: \"primary-xxs\" }, t('bookanappointment.liveboutique').toUpperCase()),\n                    !store.liveBoutique && (React.createElement(Tooltip, { ariaLabel: t('label.info'), checkout: true, id: `${store.ID}-live-boutique-info`, icon: \"info\", className: \"live-boutique-info\", text: t('bookanappointment.liveboutiquetoltip', { 0: window.liveBoutiqueUrl }) })))),\n                React.createElement(\"p\", { className: \"name bold primary-s\" }, store.name),\n                React.createElement(\"p\", { className: \"content\" },\n                    store.address1,\n                    \" \",\n                    store.address2,\n                    \" \",\n                    store.city))),\n        React.createElement(\"div\", { ref: appointmentSection, className: \"product-reserve__detail__form mb-32\" },\n            React.createElement(Form, { initialValues: initialValues, onSubmit: onSubmit, validate: validate, decorators: [focusOnError], mutators: { global: formutils.globalMutator,\n                    resetHours: (args, state, utils) => {\n                        utils.changeValue(state, 'hour', () => null);\n                    } }, render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n                    React.createElement(\"div\", { className: \"ReserveForm\" },\n                        React.createElement(BookAnAppointmentDateSelection, { formdef: formdef, form: form, days: days, values: values, fullWidth: true }),\n                        React.createElement(\"div\", { className: \"row\" },\n                            React.createElement(\"div\", { className: 'col-12' },\n                                React.createElement(DwFormField, { def: formdef, name: \"reason\", type: \"select\", options: values.appointmenttype != BAA.APPOINTMENT.VIRTUAL\n                                        ? formdef.reason.options\n                                        : formdef.reason.options.filter((o) => o.value != BAA.REASONS.PERSONALIZATION) })),\n                            values.reason == BAA.REASONS.DISCOVERCOLLECTION && (collections === null || collections === void 0 ? void 0 : collections.length) > 0 && (React.createElement(\"div\", { className: 'col-12' },\n                                React.createElement(DwFormField, { def: formdef, name: \"collectionCode\", type: \"select\", options: [{ value: '', label: t('label.select') }].concat(collections) || [] })))),\n                        React.createElement(BookAnAppointmentReasonMessage, { formdef: formdef, values: values }),\n                        React.createElement(\"div\", { className: \"row profile mt-32 mb-24\" },\n                            React.createElement(\"div\", { className: \"col-12 mb-16\" },\n                                React.createElement(\"h4\", { className: \"label text-uppercase mb-8\" }, t('profile.namesurname')),\n                                React.createElement(\"p\", { className: \"bold primary-s\" },\n                                    profile.firstName,\n                                    \" \",\n                                    profile.lastName)),\n                            React.createElement(\"div\", { className: \"col-12 mb-16\" },\n                                React.createElement(\"h4\", { className: \"label text-uppercase mb-8\" }, t('bookanappointment.email')),\n                                React.createElement(\"p\", { className: \"bold primary-s\" }, profile.email)),\n                            profile.phone ? (React.createElement(\"div\", { className: \"col-12\" },\n                                React.createElement(\"h4\", { className: \"label text-uppercase mb-8\" }, t('bookanappointment.phone')),\n                                React.createElement(\"p\", { className: \"bold\" },\n                                    profile.phonePrefix,\n                                    \" \",\n                                    profile.phone))) : (React.createElement(\"div\", { className: \"form-number\" },\n                                React.createElement(\"div\", { className: \"mb-12\" },\n                                    React.createElement(\"span\", { className: \"primary-xs\" }, t('profile.additionalinfo'))),\n                                React.createElement(DwFormFieldPhoneWithPrefix, { def: formdef, uniqueLabel: t('profile.phonenumber') })))),\n                        store.countryCode.value !== window.country && (React.createElement(\"div\", { className: \"row\" },\n                            React.createElement(\"p\", { className: \"disclaimer mt-12 mb-12\" }, t('liveboutique.disclaimer'))))),\n                    React.createElement(\"div\", { className: \"product-reserve__detail__form__submit\" },\n                        React.createElement(Button, { type: \"submit\", disabled: submitting, cls: ['button--primary'], onClick: () => {\n                                analytics.clientServiceRedesignAnalytics(`${props.pagetitleforanalytics}`, tabsMap[appointmentType.toString()].toLowerCase() + '-' + t('bookanappointment.confirmappointmentanalytics').toLowerCase());\n                            } }, t('bookanappointment.confirmappointment'))),\n                    React.createElement(ErrorBox, { errors: errors }))) }))));\n};\nexport default LiveBoutiqueForm;\n","import LoginOrRegisterColumn from '@components/login/LoginOrRegisterColumn';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport LiveBoutiqueForm from './LiveBoutiqueForm';\nconst LiveBoutiqueModal = (props) => {\n    const { t } = useTranslation();\n    const [loggedIn, setLoggedIn] = useState(window.loggedin);\n    return (React.createElement(ModalDialog, { hideHeader: true, noPadding: true, isOpen: props.isOpen, onRequestClose: props.onRequestClose, className: \"modal--minheight bookanappointment modal--live-boutique\", contentLabel: t('bookanappointment.title') },\n        React.createElement(\"div\", { className: \"bookanappointment__body\" },\n            React.createElement(\"div\", { className: \"bookanappointment__left\", style: { backgroundImage: `url(${props.modalimage})` } }),\n            React.createElement(\"div\", { className: \"bookanappointment__right live-boutique\" }, loggedIn ? (React.createElement(LiveBoutiqueForm, Object.assign({ type: \"modal\" }, props))) : (React.createElement(React.Fragment, null,\n                React.createElement(\"h1\", { className: \"dialog__title\" }, t('bookanappointment.title')),\n                React.createElement(\"span\", { className: \"dialog__subtitle\" }, t('bookanappointment.subtitle')),\n                React.createElement(\"div\", { className: \"line\" }),\n                React.createElement(LoginOrRegisterColumn, { reloadComponent: true, reloadPage: true, privacypolicy: props.privacypolicy, forgotpasswordform: props.forgotpasswordform, closeModal: () => props.onRequestClose, updateLoggeedStatus: () => setLoggedIn(true), updateLoggedin: () => setLoggedIn(true) })))))));\n};\nexport default LiveBoutiqueModal;\n"],"names":["hero","HeroBanner","className","style","backgroundImage","WishlistButtonDesktop","wishlistUrl","wishlistCount","t","href","props","loginStep","setLoginStep","useState","defaultRegister","loginEmail","setLoginEmail","loginMethods","setLoginMethods","inModal","inAccountMenu","onBack","step","type","invert","onClick","closeModal","analyticsKey","window","isClothing","sociallogin","enabledSocials","length","from","reloadUrl","reloadAfterSocialLogin","linkreload","location","btnClass","analyticsCategory","analyticsAction","rememberme","privacypolicy","forgotpasswordform","singleColumn","updateLoggeedStatus","reloadComponent","socialUsed","ID","setForceReload","pageContext","reloadRegisterComponent","reloadPage","updateLoggedin","reloadPageRegisteredInStore","fromMinicart","classNames","reload","loggedin","_a","_b","_c","_d","brandId","store","hidename","showphone","showmail","showdirections","showHours","name","countryCode","value","address1","address2","postalCode","displayValue","city","stateCode","split","phone","email","target","rel","storeHours","map","sh","key","day","text","trackingAction","latitude","longitude","undefined","gridClassMultiplier","MO","ST","getId","is","autoChooseClassnames","classesObj","commonclasses","gridClassname","monclerColumn","brackpoint","result","push","join","gridClassnames","configs","args","apply","autoChooseComponent","componentsObj","autoChooseProps","initialValue","isboolean","setQueryStringValue","values","search","newvalues","Object","assign","qsValue","newurl","protocol","host","pathname","history","pushState","path","setQueryStringWithoutPageReload","onSetValue","useCallback","newValue","newvaltyped","setValue","getQueryStringValue","_e","_f","_g","useTranslation","requestSent","formdef","days","firstname","dangerouslySetInnerHTML","__html","appointmentresponse","booking","code","formutils","title","lastname","phonePrefix","date","find","p","hour","label","reason","focusOnError","setRequestSent","setAppointmentresponse","setFormdef","initialValues","setInitialValues","errors","setErrors","setDays","setStore","appointmentType","setAppointmentType","collections","setCollections","profile","setProfile","appointmentSection","useRef","tabsMap","useEffect","api","then","data","isMounted","val","appointmenttype","mbmContactReason","options","filter","o","storeServices","personalizationRoom","validate","async","storeid","privacyFlag","firstName","lastName","toString","prefillValues","liveBoutique","toUpperCase","Tooltip","ariaLabel","checkout","id","icon","liveBoutiqueUrl","ref","onSubmit","err","keys","error","analytics","includes","document","querySelector","scrollIntoView","behavior","inline","decorators","mutators","global","resetHours","state","utils","changeValue","render","handleSubmit","form","submitting","pristine","BookAnAppointmentDateSelection","fullWidth","DwFormField","def","concat","BookAnAppointmentReasonMessage","DwFormFieldPhoneWithPrefix","uniqueLabel","country","Button","disabled","cls","pagetitleforanalytics","toLowerCase","ErrorBox","loggedIn","setLoggedIn","ModalDialog","hideHeader","noPadding","isOpen","onRequestClose","contentLabel","modalimage","LoginOrRegisterColumn"],"sourceRoot":""}