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IACAxO,EAAMyO,SACN,IACAzO,EAAM8K,KACN,gBAAoB,KAAM,MAC1B9K,EAAMkB,SAnBP,gBAAoB,WAAgB,KAmBpB,C","sources":["webpack:///./assets/common/src/components/login/LoginModal.tsx","webpack:///./assets/common/src/ui/radioGroup/RadioGroup.tsx","webpack:///./assets/common/src/ui/radioGroup/RadioGroupItem.tsx","webpack:///./assets/common/src/utils/useClickAway.ts","webpack:///./assets/common/src/ui/tooltip/Tooltip.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentDateSelection.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentConfirmationPage.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentForm.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentReasonMessage.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentStoreSelector.tsx","webpack:///./assets/moncler/src/components/bag/BagInfoBox.tsx","webpack:///./assets/moncler/src/components/reserve/ProductBoutiqueSelected.tsx"],"sourcesContent":["import React, { lazy, Suspense } from 'react';\nimport { autoChooseComponent } from '@utils/brandDiffsUtils';\nconst StoneLoginModal = lazy(() => import('@stone/components/login/LoginModal'));\nconst MonclerLoginModal = lazy(() => import('@moncler/components/login/LoginModal'));\nconst LoginModal = (props) => {\n return (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, autoChooseComponent({\n MO: React.createElement(MonclerLoginModal, Object.assign({}, props)),\n ST: React.createElement(StoneLoginModal, Object.assign({}, props)),\n })));\n};\nexport default LoginModal;\n","import classNames from 'classnames';\nimport React, { useMemo } from 'react';\nimport RadioGroupItem from './RadioGroupItem';\nconst isRadioGroupItemComponent = (c) => {\n let isRadioGroup = !!c.props && c.props.__TYPE === 'RadioGroupItem';\n if (!isRadioGroup) {\n // console.warn('Element is not an RadioGroup item. Type name:' + c.type?.name + ' - element ', c);\n return false;\n }\n return true;\n};\nconst RadioGroup = (props) => {\n const radioGroupItems = useMemo(() => props.children.filter((c) => isRadioGroupItemComponent(c)), [props.children]);\n const printItems = () => {\n return radioGroupItems.map((c, i) => (React.createElement(RadioGroupItem, Object.assign({ selected: c.props.selected, setSelected: props.setSelected, groupId: props.id, key: i }, c.props), c.props.children)));\n };\n return (React.createElement(\"div\", { className: classNames('optionbox', props.type != '' ? `optionbox--${props.type}` : null, props.className), \"aria-labelledby\": props.labelId }, radioGroupItems.length > 0 ? printItems() : props.children));\n};\nRadioGroup.defaultProps = {\n type: '',\n};\nexport default RadioGroup;\n","import React from 'react';\nimport classNames from 'classnames';\nconst RadioGroupItem = (props) => {\n const onChange = () => {\n props.setSelected(props.id);\n (props.id === 'new' || props.id === null) && !!props.setAnalytics ? props.setAnalytics() : null;\n };\n return (React.createElement(\"label\", { className: \"optionbox__item\" },\n React.createElement(\"input\", { type: \"radio\", className: classNames('optionbox__item__radio', { 'optionbox__item__radio--centered': props.inputCentered }), disabled: props.disabled, name: props.groupId, value: props.id, onChange: onChange, checked: props.selected }),\n props.content));\n};\n// for type filtering under RadioGroup\nRadioGroupItem.defaultProps = {\n __TYPE: 'RadioGroupItem',\n};\nexport default RadioGroupItem;\n","import { useEffect } from 'react';\n/**\n * custom hook in order to watch given html element and\n * check if user click outside it\n *\n * @param {refType} ref html element to watch focus\n * @param {callbackFunction} callback callback function to fired when clicked/touched away\n *\n */\nconst useClickAway = (ref, callback) => {\n useEffect(() => {\n const listener = (event) => {\n if (!ref.current || ref.current.contains(event.target)) {\n return;\n }\n callback(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return () => {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, callback]);\n};\nexport default useClickAway;\n","import classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport whatInput from 'what-input';\nimport useClickAway from '../../utils/useClickAway';\nconst Tooltip = (props) => {\n const [showTooltip, setShowTooltip] = useState(false);\n const button = useRef();\n const tootltipRef = useRef();\n const boxRef = useRef();\n const [offset, setOffset] = useState(0);\n useEffect(() => {\n setTimeout(() => {\n var _a;\n if (((_a = props === null || props === void 0 ? void 0 : props.containerRef) === null || _a === void 0 ? void 0 : _a.current) && boxRef.current) {\n let tempOffset = 0;\n tempOffset = props.containerRef.current.getBoundingClientRect().right - boxRef.current.getBoundingClientRect().right;\n if (tempOffset < 0 && tempOffset != offset) {\n setOffset(tempOffset);\n return;\n }\n tempOffset = props.containerRef.current.getBoundingClientRect().left - boxRef.current.getBoundingClientRect().left;\n if (tempOffset > 0 && tempOffset != offset) {\n setOffset(tempOffset);\n }\n }\n }, 100);\n }, []);\n const toggleOpen = () => {\n console.info('open tooltip');\n if (window.innerWidth > window.mqObj.md && props.checkout) {\n setShowTooltip(false);\n }\n else {\n console.log(showTooltip);\n setShowTooltip(!showTooltip);\n }\n console.log(showTooltip);\n setShowTooltip(!showTooltip);\n };\n const focusOpen = () => {\n setShowTooltip(true);\n };\n const handleBlur = () => {\n // console.info('blur tooltip');\n setShowTooltip(false);\n };\n useClickAway(button, () => {\n // console.info('clickaway tooltip');\n setShowTooltip(false);\n });\n useEffect(() => {\n // OE-20308 - temporary fix to checkout HK and KR tooltip overflowing outside the viewport\n const tooltipElements = document.querySelectorAll('.checkout-packaging__options .tooltip__box');\n const lastTooltipElement = tooltipElements[tooltipElements.length - 1];\n if (lastTooltipElement && (window.country == 'HK' || window.country == 'KR')) {\n lastTooltipElement.classList.add('last-tooltip');\n }\n }, []);\n return (React.createElement(\"div\", { ref: tootltipRef, className: classNames('tooltip', props.className && props.className), onBlur: (e) => {\n // console.info('blur: ', e.relatedTarget, tootltipRef.current.contains(e.relatedTarget as Node));\n if (e.relatedTarget && !tootltipRef.current.contains(e.relatedTarget) && !e.relatedTarget.matches('[aria-modal]')) {\n whatInput.ask() == 'keyboard' ? handleBlur() : undefined;\n }\n }, style: { '--tooltip-offset': `${offset}px` } },\n React.createElement(\"button\", { type: \"button\", ref: button, onClick: toggleOpen, onFocus: () => (whatInput.ask() == 'keyboard' ? focusOpen() : undefined), onKeyDown: (e) => {\n if (e.key == 'Escape') {\n setShowTooltip(false);\n }\n }, className: `icon--${props.icon ? props.icon : 'tooltip'}`, \"aria-expanded\": showTooltip, \"aria-controls\": props.id, \"aria-label\": props.ariaLabel }),\n props.text && React.createElement(\"div\", { ref: boxRef, id: props.id, role: \"tooltip\", className: \"tooltip__box\", dangerouslySetInnerHTML: { __html: props.text } }),\n props.markup && (React.createElement(\"div\", { ref: boxRef, role: \"tooltip\", id: props.id, className: \"tooltip__box\" }, props.markup()))));\n};\nexport default Tooltip;\n","import DwFormField from '@ui/formfield/DwFormField';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nconst BookAnAppointmentDateSelection = (props) => {\n const { t } = useTranslation();\n const { formdef, days, values, form } = props;\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: classNames({ 'col-12': props.fullWidth }, { 'col-6': !props.fullWidth }) },\n React.createElement(DwFormField, { def: formdef, name: \"date\", type: \"select\", requiredLabel: true, disabled: props.disabled, options: [{ value: '', label: t('label.select') }].concat(Object.keys(days).map((d) => {\n let label = d;\n let available = days[d].find((d) => d.disabled == false);\n // console.log(days[values.date]);\n if (window.locale === 'ja_JP') {\n label = d.replace('.', '年').replace('.', '月').concat('日');\n }\n return { label: label, value: d, disabled: !available };\n })), onChange: form.mutators.resetHours })),\n React.createElement(\"div\", { className: classNames({ 'col-12': props.fullWidth }, { 'col-6': !props.fullWidth }) },\n React.createElement(DwFormField, { def: formdef, name: \"hour\", type: \"select\", requiredLabel: true, disabled: !(values === null || values === void 0 ? void 0 : values.date) || props.disabled, options: days[values.date] ? [{ value: '', label: t('label.select') }].concat(days[values.date]) : [{ value: '', label: t('label.select') }] })))));\n};\nexport default BookAnAppointmentDateSelection;\n","import StoreAddress from '@components/storelocator/StoreAddress';\nimport formutils from '@utils/formutils';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport DigitalFlagshipSmallPromoCard from '../experience/DigitalFlagshipSmallPromoCard';\nconst BookAnAppointmentConfirmationPage = (props) => {\n var _a, _b, _c, _d, _e, _f;\n const { t } = useTranslation();\n const { requestSent, formdef, days, store } = props;\n return (React.createElement(\"div\", { className: \"product-reserve__detail__reserve-review\" },\n React.createElement(\"h2\", { className: \"primary-l\" }, t('bookanappointment.bookingcomplete')),\n React.createElement(\"div\", { className: \"divider\" }),\n React.createElement(\"h3\", { className: \"primary-m mt-16\" }, t('notifyme.thankyou', { title: formutils.labelByValue(requestSent === null || requestSent === void 0 ? void 0 : requestSent.title, formdef === null || formdef === void 0 ? void 0 : formdef.title), name: requestSent === null || requestSent === void 0 ? void 0 : requestSent.firstname, surname: requestSent === null || requestSent === void 0 ? void 0 : requestSent.lastname })),\n React.createElement(\"p\", { className: \"mt-12 mb-12 primary-xs\", dangerouslySetInnerHTML: { __html: t('bookanappointment.confirmation') } }),\n React.createElement(\"div\", { className: \"row container-row\" },\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('bookanappointment.bookingnumber')),\n React.createElement(\"p\", { className: \"mt-12 primary-xs\" }, (_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-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('label.type')),\n React.createElement(\"p\", { className: \"mt-12 primary-xs\" }, ((_d = (_c = props.appointmentresponse) === null || _c === void 0 ? void 0 : _c.booking) === null || _d === void 0 ? void 0 : _d.appointmentType) == 552250001 ? t('bookanappointment.virtualappointment') : t('bookanappointment.appointmentinstore')))),\n (store === null || store === void 0 ? void 0 : store.interactiveStoreModule) && (React.createElement(\"div\", { className: \"digital-flaship-promocard\" },\n React.createElement(DigitalFlagshipSmallPromoCard, { store: store }))),\n React.createElement(\"div\", { className: \"divider\" }),\n React.createElement(\"div\", { className: \"row detail-row mt-24 container-row\" },\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('label.store')),\n React.createElement(StoreAddress, { store: store, showdirections: false, showmail: true, showphone: true })),\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('profile.personalinformation')),\n React.createElement(\"p\", { className: \"mb-4 primary-xs\" }, 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-4 primary-xs\" }, requestSent === null || requestSent === void 0 ? void 0 : requestSent.email),\n React.createElement(\"p\", { className: \"primary-xs\" }, requestSent === null || requestSent === void 0 ? void 0 :\n requestSent.phonePrefix,\n \" \", requestSent === null || requestSent === void 0 ? void 0 :\n requestSent.phone))),\n React.createElement(\"div\", { className: \"divider\" }),\n React.createElement(\"div\", { className: \"row detail-row mt-28 mb-32 container-row\" },\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('bookanappointment.appointmentdetails')),\n React.createElement(\"div\", null,\n React.createElement(\"p\", { className: \"primary-xs\" },\n t('label.date'),\n \": \", requestSent === null || requestSent === void 0 ? void 0 :\n requestSent.date),\n React.createElement(\"p\", { className: \"primary-xs\" },\n t('label.hour'),\n \": \", (_f = (_e = days[requestSent === null || requestSent === void 0 ? void 0 : requestSent.date]) === null || _e === void 0 ? void 0 : _e.find((p) => p.value == requestSent.hour)) === null || _f === void 0 ? void 0 :\n _f.label))),\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(\"h4\", { className: \"detail-title primary-xs\" }, t('label.reason')),\n React.createElement(\"div\", null,\n React.createElement(\"p\", { className: \"primary-xs\" }, (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250000\n ? t('bookanappointment.reason.discovercollection')\n : (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250001\n ? t('bookanappointment.reason.specialoccasion')\n : (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250002\n ? t('bookanappointment.reason.ski')\n : (requestSent === null || requestSent === void 0 ? void 0 : requestSent.reason) == 552250003\n ? t('bookanappointment.reason.aftersales')\n : t('bookanappointment.reason.personalizationroom'))))),\n React.createElement(\"div\", { className: \"divider\" }),\n React.createElement(\"div\", { className: \"col-12 row detail-row\" },\n React.createElement(\"div\", { className: \"col-6 offset-6 container-button\" },\n React.createElement(\"a\", { href: props.manageappointmenturl, className: \"button button--primary\" },\n React.createElement(\"span\", null, t('bookanappointment.manageappointments')))))));\n};\nexport default BookAnAppointmentConfirmationPage;\n","import ErrorBox from '@components/common/ErrorBox';\nimport ProductBoutiqueSelected from '@moncler/components/reserve/ProductBoutiqueSelected';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport DwFormFieldPhoneWithPrefix from '@ui/formfield/DwFormFieldPhoneWithPrefix';\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 BookAnAppointmentConfirmationPage from './BookAnAppointmentConfirmationPage';\nimport BookAnAppointmentDateSelection from './BookAnAppointmentDateSelection';\nimport BookAnAppointmentReasonMessage from './BookAnAppointmentReasonMessage';\nimport BookAnAppointmentStoreSelector from './BookAnAppointmentStoreSelector';\nimport BagInfoBox from '../bag/BagInfoBox';\nimport LoginModal from '@components/login/LoginModal';\nconst focusOnError = createDecorator(); // must be outside the component\nconst BookAnAppointmentForm = (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.INSTORE);\n const [collections, setCollections] = useState([]);\n const appointmentSection = useRef(null);\n const [loginOpen, setLoginOpen] = useState(false);\n const [loginEmail, setLoginEmail] = useState();\n const [firstName, setFirstName] = useState();\n const [lastName, setLastName] = useState();\n const [phone, setPhone] = useState();\n const [phonePrefix, setPhonePrefix] = useState();\n const [resetFields, setResetFields] = useState(false);\n const [isLoading, setIsloading] = useState(false);\n const [reasonSelect, setReasonSelect] = useState();\n const [availableSlotTypes, setAvailableSlotTypes] = useState();\n const tabsMap = {\n '552250000': t('bookanappointment.appointmentinstoreanalytics'),\n '552250001': t('bookanappointment.virtualappointmentanalytics'),\n };\n const lastArg = useRef();\n useEffect(() => {\n let isMounted = true;\n let val = {};\n api.getForm('bookanappointment', val, true).then((data) => {\n var _a;\n setFirstName(data.firstname.htmlValue);\n setLastName(data.lastname.htmlValue);\n setPhone(data.phone.htmlValue);\n setPhonePrefix(data.phonePrefix.htmlValue);\n setLoginEmail(data.email.htmlValue);\n if (!val.appointmenttype) {\n val.appointmenttype = BAA.APPOINTMENT.INSTORE;\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 (props.recipeid) {\n val.recipeid = props.recipeid;\n val.size = props.size;\n }\n if (!props.activeTabs) {\n api.getPageJson('bookappointment', true).then((bookData) => {\n if (bookData.data.activeTabs == 'Physical') {\n data.appointmenttype.options = data.appointmenttype.options.filter((option) => option.value == BAA.APPOINTMENT.INSTORE.toString());\n val.appointmenttype = BAA.APPOINTMENT.INSTORE;\n }\n else if (bookData.data.activeTabs == 'Virtual') {\n data.appointmenttype.options = data.appointmenttype.options.filter((option) => option.value == BAA.APPOINTMENT.VIRTUAL.toString());\n val.appointmenttype = BAA.APPOINTMENT.VIRTUAL;\n }\n });\n }\n else {\n if (props.activeTabs == 'Physical') {\n data.appointmenttype.options = data.appointmenttype.options.filter((option) => option.value == BAA.APPOINTMENT.INSTORE.toString());\n val.appointmenttype = BAA.APPOINTMENT.INSTORE;\n }\n else if (props.activeTabs == 'Virtual') {\n data.appointmenttype.options = data.appointmenttype.options.filter((option) => option.value == BAA.APPOINTMENT.VIRTUAL.toString());\n val.appointmenttype = BAA.APPOINTMENT.VIRTUAL;\n }\n }\n if (isMounted) {\n if (appointmentType != val.appointmenttype) {\n setAppointmentType(val.appointmenttype);\n }\n setInitialValues(val);\n setFormdef(data);\n }\n });\n return () => {\n isMounted = false;\n };\n }, []);\n useEffect(() => {\n var _a;\n if (store) {\n setIsloading(true);\n (_a = document.querySelector('.storelist')) === null || _a === void 0 ? void 0 : _a.classList.add('disabled');\n api\n .bookAnAppointmentSlots(store === null || store === void 0 ? void 0 : store.ID, appointmentType != BAA.APPOINTMENT.VIRTUAL ? availableSlotTypes : appointmentType, false, reasonSelect)\n .then((data) => {\n setDays(data.days);\n if (data) {\n document.querySelector('.storelist').classList.remove('disabled');\n }\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 .finally(() => {\n setIsloading(false);\n });\n }\n }, [store, appointmentType]);\n const checkHourValueInDays = (appointmentValue, form, values) => {\n if (values.date && values.hour) {\n api.bookAnAppointmentSlots(store === null || store === void 0 ? void 0 : store.ID, appointmentValue != BAA.APPOINTMENT.VIRTUAL ? availableSlotTypes : appointmentValue, false, reasonSelect).then((data) => {\n if (data.days) {\n let day = data.days[values.date];\n if (day && day.length > 0) {\n let hour = day.find((hourObj) => hourObj.value == values.hour);\n if (!hour) {\n form.mutators.global({ hour: '' });\n }\n }\n }\n });\n }\n };\n const prefillValues = (values) => {\n values.storeid = store === null || store === void 0 ? void 0 : store.ID;\n if (appointmentType != BAA.APPOINTMENT.VIRTUAL) {\n values.appointmenttype = availableSlotTypes;\n }\n if (values.appointmenttype == BAA.APPOINTMENT.VIRTUAL && values.reason == BAA.REASONS.PERSONALIZATION) {\n values.reason = undefined;\n }\n };\n const validate = async (values, onSubmit) => {\n if (window.loggedin) {\n values.privacyFlag = true;\n }\n prefillValues(values);\n // In order to keep full validation of all the form and the automatic assignment of the current country in the countrySelect, there are multiple validation calls that occour on re-renderings.\n // When the validation is called with the same values as the last one, nothing is returned. In each and every case of this specific form we will have a subsequential validation that will generate a valid response, so no problems will arise.\n // This code can address the issue described in the ticket OE-17125 only, do not use it elsewhere.\n let different = false;\n if (lastArg.current) {\n new Set([...Object.keys(lastArg.current), ...Object.keys(values)]).forEach((valKey) => {\n if ((values[valKey] || '') !== (lastArg.current[valKey] || ''))\n different = true;\n });\n }\n else {\n different = true;\n }\n if (different || onSubmit) {\n lastArg.current = values;\n return await formutils.validateForm(values, formdef, 'bookanappointment');\n }\n };\n const onSubmit = async (values) => {\n setErrors([]);\n let err = await validate(values, true);\n if (err && Object.keys(err).length > 0) {\n return err;\n }\n await api.bookAnAppointmentSubmit(values, formdef).then((data) => {\n var _a;\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 else {\n if (props.paletteName) {\n // -- configuration\n analytics.configuratorAction(props.fromContinueInStore ? 'continue in store' : 'product configuration', props.paletteName() + '-confirm appointment');\n }\n else {\n // -- pdp\n analytics.bookAppointmentSubmit((_a = props.product) === null || _a === void 0 ? void 0 : _a.masterId);\n }\n }\n setRequestSent(values);\n setAppointmentresponse(data);\n document.querySelector('.myaccount-hero').scrollIntoView({ behavior: 'smooth', inline: 'end' });\n });\n };\n if (formdef && requestSent && appointmentresponse) {\n return React.createElement(BookAnAppointmentConfirmationPage, Object.assign({ store: store, formdef: formdef, requestSent: requestSent, appointmentresponse: appointmentresponse, days: days }, props));\n }\n if (!formdef || !initialValues) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(React.Fragment, null,\n props.type == 'modal' && !requestSent && !appointmentresponse && React.createElement(\"h1\", { className: \"dialog__title\" }, t('bookanappointment.title')),\n React.createElement(\"div\", { ref: appointmentSection, className: \"product-reserve__detail__form scrollable\" },\n React.createElement(Form, { initialValues: initialValues, onSubmit: onSubmit, validate: validate, decorators: [focusOnError], mutators: {\n global: formutils.globalMutator,\n resetHours: (args, state, utils) => {\n utils.changeValue(state, 'hour', () => null);\n },\n }, render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n props.type != 'mbm' &&\n (formdef.appointmenttype.options.length == 1 ? (React.createElement(\"h2\", { className: \"tabs-single-tab-title\" }, formdef.appointmenttype.options[0].label)) : (React.createElement(DwFormField, { def: formdef, name: \"appointmenttype\", type: \"optionbox\", onChange: (e) => {\n setAppointmentType(e.target.value);\n if (tabsMap) {\n analytics.clientServiceRedesignAnalytics(`${props.pagetitleforanalytics}`.toLowerCase(), tabsMap[e.target.value].toLowerCase());\n }\n checkHourValueInDays(e.target.value, form, values);\n } }))),\n React.createElement(\"div\", { className: \"wrapper-content-scrollable\" },\n ['modal', 'mbm'].includes(props.type) && (React.createElement(ProductBoutiqueSelected, { appointmentType: values.appointmenttype, store: store, onArrowBack: props.onArrowBack })),\n React.createElement(React.Fragment, null,\n props.type == 'page' && (React.createElement(React.Fragment, null, window.loggedin ? (React.createElement(React.Fragment, null,\n values.appointmenttype === BAA.APPOINTMENT.VIRTUAL && (React.createElement(\"p\", { className: \"virtual-message\" }, t('bookanappointment.virtualappointmentmsg'))),\n values.appointmenttype && (React.createElement(BookAnAppointmentStoreSelector, Object.assign({ formdef: formdef, initialValues: initialValues }, props, { mutator: form.mutators.global, store: store, onSelect: setStore, appointmentType: values.appointmenttype, showmap: true, setReasonSelect: setReasonSelect, setAvailableSlotTypes: setAvailableSlotTypes, resetFields: resetFields, loaderSrc: props.loaderSrc }))))) : (React.createElement(\"div\", { className: \"mt-32 wrapper-box-login\" },\n React.createElement(\"p\", { className: \"primary-xs mb-40\" }, t('bookanappointment.boxloginsubtitle')),\n React.createElement(BagInfoBox, { text: t('bookanappointment.boxlogin'), noBanner: true, buttonAction: () => {\n setLoginOpen(true);\n } }))))),\n store && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"ReserveForm\" },\n React.createElement(BookAnAppointmentDateSelection, { formdef: formdef, days: days, form: form, values: values, disabled: !store.ID || isLoading }),\n React.createElement(\"div\", { className: \"row\" },\n props.type == 'modal' && (React.createElement(\"div\", { className: values.reason == BAA.REASONS.DISCOVERCOLLECTION && (collections === null || collections === void 0 ? void 0 : collections.length) > 0 ? 'col-lg-6' : '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' + (props.type == 'page' ? '' : ' col-lg-6') },\n React.createElement(DwFormField, { def: formdef, name: \"collectionCode\", type: \"select\", options: [{ value: '', label: t('label.select') }].concat(collections) || [], disabled: isLoading })))),\n React.createElement(BookAnAppointmentReasonMessage, { formdef: formdef, values: values, disabled: isLoading }),\n React.createElement(\"div\", { className: \"appointments-mandatoryField\" },\n \"*\",\n t('label.mandatoryfields')),\n React.createElement(\"div\", { className: \"wrapper-info mt-32\" },\n React.createElement(\"div\", { className: \"row mb-20 container-info-profile\" },\n React.createElement(\"span\", { className: props.type == 'modal' ? 'primary-xs-u col-12' : 'primary-xs-u col-sm-4' }, t('profile.namesurname')),\n React.createElement(\"span\", { className: props.type == 'modal' ? 'bold col-12 primary-s' : 'bold col-sm-8 primary-s' },\n firstName,\n \" \",\n lastName)),\n React.createElement(\"div\", { className: \"row mb-20 container-info-profile\" },\n React.createElement(\"span\", { className: props.type == 'modal' ? 'primary-xs-u col-12' : 'primary-xs-u col-sm-4' }, t('profile.email')),\n React.createElement(\"span\", { className: props.type == 'modal' ? 'bold col-12 primary-s' : 'bold col-sm-8 primary-s' }, loginEmail)),\n phone && (React.createElement(\"div\", { className: \"row mb-20 container-info-profile\" },\n React.createElement(\"span\", { className: props.type == 'modal' ? 'primary-xs-u col-12' : 'primary-xs-u col-sm-4' }, t('profile.phonenumber')),\n React.createElement(\"span\", { className: props.type == 'modal' ? 'bold col-12 primary-s' : 'bold col-sm-8 primary-s' },\n phonePrefix,\n \" \",\n phone))),\n !phone && (React.createElement(React.Fragment, null,\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 React.createElement(\"div\", { className: \"product-reserve__detail__form__submit row\" },\n props.type == 'page' && (React.createElement(\"div\", { className: \"col-sm-6 wrapper-button-arrow\" },\n React.createElement(Button, { cls: ['button--tertiary', 'button--arrow-left'], onClick: () => {\n setResetFields(true);\n setStore(null);\n form.reset();\n if (props.type == 'page') {\n let section = document.querySelector('#bookanappointement');\n section.scrollIntoView({ behavior: 'smooth', inline: 'start' });\n section.focus();\n }\n }, type: 'button' }, t('button.back')))),\n React.createElement(\"div\", { className: props.type == 'page' ? 'col-sm-6' : 'col-12' },\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 React.createElement(LoginModal, Object.assign({}, props, { inCart: true, reloadPage: true, reloadPageRegisteredInStore: true, modalStatus: loginOpen, analyticsKey: \"modal\", pageContext: \"bookanappointment\", updateStatus: (status) => setLoginOpen(status) })))));\n};\nexport default BookAnAppointmentForm;\n","import DwFormField from '@ui/formfield/DwFormField';\nimport { BAA } from '@utils/constants';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst BookAnAppointmentReasonMessage = (props) => {\n const { t } = useTranslation();\n const { formdef, values } = props;\n const [placeholderOverride, setPlaceholderOverride] = useState();\n const messagesReason = {\n '552250000': t('button.discovercollectionreason'),\n '552250001': t('button.specialoccasionreason'),\n '552250002': t('button.skiwearreason'),\n '552250003': t('button.aftersalessupportreason'),\n '552250004': t('button.personalizationroomreason'),\n };\n useEffect(() => {\n if (values.reason != null) {\n const reasonSelected = values.reason.toString();\n const printMsgReason = messagesReason[reasonSelected];\n setPlaceholderOverride(printMsgReason);\n }\n else {\n // Resets the message when returning to the default value\n setPlaceholderOverride(null);\n }\n }, [values.reason]);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"messageforstore\", type: \"textarea\", overridePlaceholder: values.reason == BAA.REASONS.PERSONALIZATION ? t('mbm.baamessage') : placeholderOverride ? placeholderOverride : undefined, disabled: props.disabled })))));\n};\nexport default BookAnAppointmentReasonMessage;\n","import StoreAddress from '@components/storelocator/StoreAddress';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport RadioGroup from '@ui/radioGroup/RadioGroup';\nimport RadioGroupItem from '@ui/radioGroup/RadioGroupItem';\nimport api from '@utils/api';\nimport { BAA } from '@utils/constants';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { useTranslation } from 'react-i18next';\nimport Tooltip from '@ui/tooltip/Tooltip';\nconst BookAnAppointmentStoreSelector = (props) => {\n var _a;\n const { t } = useTranslation();\n const [reasonSelect, setReasonSelect] = useState();\n const [countrySelect, setCountrySelect] = useState();\n const [citySelect, setCitySelect] = useState();\n const [storesByCity, setStoresByCity] = useState([]);\n const [mapZoom, setMapZoom] = useState(10);\n const [mapCenter, setMapCenter] = useState();\n const [stores, setStores] = useState([]);\n const [storeFilter, setStoreFilter] = useState([]);\n const [storesSlotType, setStoresSlotType] = useState([]);\n const [countries, setCountries] = useState([]);\n const [loadingCities, setLoadingCities] = useState(true);\n const mapEl = useRef();\n const cities = useMemo(() => {\n const storesFilterArray = stores.filter((store) => storeFilter.includes(store.ID));\n return [...new Set(storesFilterArray.map((store) => store.city))];\n }, [stores, storeFilter]);\n const filterStore = () => {\n return stores.filter((store) => storeFilter.includes(store.ID));\n };\n useEffect(() => {\n props.resetFields;\n }, [props.resetFields]);\n useEffect(() => {\n let personalizationReason = Number(props.initialValues.reason) == BAA.REASONS.PERSONALIZATION;\n updateCountries(personalizationReason);\n // if (!personalizationReason) {\n // onSelectReason(props.initialValues.reason);\n // }\n }, []);\n useEffect(() => {\n if (!props.liveBoutique && props.store) {\n setMapCenter(new google.maps.LatLng(props.store.latitude, props.store.longitude));\n setMapZoom(18);\n }\n }, [props.store]);\n useEffect(() => {\n if (stores.length > 0 && citySelect) {\n let storeFiltered = filterStore();\n setStoresByCity(storeFiltered.filter((store) => {\n return store.city === citySelect;\n }));\n // on city change\n selectStore(stores.filter((filteredStore) => filteredStore.city === citySelect && (storeFilter === null || storeFilter === void 0 ? void 0 : storeFilter.includes(filteredStore === null || filteredStore === void 0 ? void 0 : filteredStore.ID)))[0]);\n props.mutator({ storeid: stores.filter((store) => store.city === citySelect)[0] });\n }\n }, [citySelect, stores, storeFilter]);\n const storeFilterArray = (country, personalizationReason, reasonSelect) => {\n api.bookAnAppointmentStores(country, personalizationReason ? '861860000' : '', props.appointmentType, reasonSelect).then((data) => {\n let arr = [...storeFilter];\n arr = data.stores.map((e) => e.code);\n setStoreFilter(arr);\n setStoresSlotType(data.stores);\n });\n return storeFilter;\n };\n const updateStores = async (country, personalizationReason) => {\n setLoadingCities(true);\n if (props.liveBoutique) {\n api.getLiveBoutiqueStoresForAppointment(country).then((data) => {\n var _a;\n setStores(data.Store);\n if (props.initialValues.citySelect) {\n const initialCity = (_a = stores.find((el) => el.city == props.initialValues.citySelect)) === null || _a === void 0 ? void 0 : _a.city;\n if (initialCity)\n setCitySelect(initialCity);\n }\n }).finally(() => {\n setLoadingCities(false);\n });\n }\n else {\n api.getStoresForAppointment(country).then((data) => {\n var _a;\n setStores(data.Store);\n if (props.initialValues.citySelect) {\n const initialCity = (_a = stores.find((el) => el.city == props.initialValues.citySelect)) === null || _a === void 0 ? void 0 : _a.city;\n if (initialCity)\n setCitySelect(initialCity);\n }\n }).finally(() => {\n setLoadingCities(false);\n });\n }\n };\n const updateCountries = async (personalizationReason, reasonValue) => {\n api.getCountriesWithBAA(personalizationReason, props.liveBoutique ? true : false).then((data) => {\n setCountries(data);\n let selectedCountry = data.find((el) => el.selected);\n if (props.initialValues.countrySelect) {\n selectedCountry = data.find((el) => el.value == props.initialValues.countrySelect);\n }\n if (selectedCountry) {\n setCountrySelect(selectedCountry.value);\n props.mutator({ countrySelect: selectedCountry.value });\n storeFilterArray(countrySelect, personalizationReason, reasonValue);\n updateStores(selectedCountry.value, personalizationReason);\n }\n else {\n // mostro il messaggio che non ci sono store con BAA per la country corrente\n }\n });\n };\n const selectStore = (store) => {\n var _a;\n let availableSlotsTypes;\n let availableSlotTypes;\n if (store) {\n let storeSlotType = storesSlotType === null || storesSlotType === void 0 ? void 0 : storesSlotType.filter((e) => (e === null || e === void 0 ? void 0 : e.code) == store.ID);\n availableSlotsTypes = (_a = storeSlotType[0]) === null || _a === void 0 ? void 0 : _a.availableSlotTypes;\n if ((availableSlotsTypes === null || availableSlotsTypes === void 0 ? void 0 : availableSlotsTypes.length) > 1 && (availableSlotsTypes === null || availableSlotsTypes === void 0 ? void 0 : availableSlotsTypes.includes(BAA.APPOINTMENT.CARAVAN))) {\n availableSlotTypes = BAA.APPOINTMENT.CARAVAN;\n }\n else {\n availableSlotTypes = availableSlotsTypes[0];\n }\n }\n props.setAvailableSlotTypes && props.setAvailableSlotTypes(availableSlotTypes);\n props.onSelect && props.onSelect(store);\n };\n const onSelectCity = (city) => {\n setCitySelect(city);\n selectStore(null);\n };\n const onSelectReason = (reasonValue) => {\n props.mutator({ countrySelect: undefined, citySelect: undefined, storeid: undefined });\n setCitySelect(null);\n selectStore(null);\n setReasonSelect(reasonValue);\n props.setReasonSelect(reasonValue);\n let personalizationReason = reasonValue == BAA.REASONS.PERSONALIZATION;\n updateCountries(personalizationReason, reasonValue);\n storeFilterArray(countrySelect, personalizationReason, reasonValue);\n updateStores(countrySelect, personalizationReason);\n };\n const onSelectCountry = (country) => {\n let personalizationReason = reasonSelect == BAA.REASONS.PERSONALIZATION;\n if (country != countrySelect) {\n if (props.liveBoutique) {\n setStoresByCity([]);\n }\n setCountrySelect(country);\n storeFilterArray(country, personalizationReason, reasonSelect);\n updateStores(country, personalizationReason);\n setCitySelect(null);\n selectStore(null);\n props.mutator({ citySelect: undefined, storeid: undefined });\n }\n };\n const pickupStores = (virtualAppointment) => {\n return (React.createElement(\"div\", { className: classNames('storelist', { 'overflow-visible': virtualAppointment }) },\n React.createElement(RadioGroup, { id: \"storelist\", setSelected: (id) => {\n const store = storesByCity.find((store) => {\n return store.ID == id;\n });\n selectStore(store);\n } }, storesByCity.map((store, index) => {\n var _a, _b;\n return (React.createElement(RadioGroupItem, { inputCentered: virtualAppointment, content: React.createElement(\"div\", { className: classNames('optionbox__item__content', { 'optionbox__item__content--no-outline': !virtualAppointment }, 'optionbox__item__content--bordered', {\n selected: store.ID === ((_a = props.store) === null || _a === void 0 ? void 0 : _a.ID),\n }) },\n React.createElement(\"div\", { className: classNames('option-store', { 'option-store__virtual': virtualAppointment }) },\n React.createElement(\"div\", null,\n virtualAppointment && store.liveBoutique && (React.createElement(\"div\", { className: \"option-store__live-boutique\" },\n React.createElement(\"span\", { className: \"primary-xxs\" }, t('bookanappointment.liveboutique')),\n !props.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(\"span\", { className: \"option-store__title\" }, store.name),\n React.createElement(\"div\", { className: \"option-store__address\" },\n React.createElement(StoreAddress, { store: store, hidename: true }))))), key: store.ID, id: store.ID, selected: store.ID === ((_b = props.store) === null || _b === void 0 ? void 0 : _b.ID) }));\n }))));\n };\n const noStoresMessage = useCallback(() => {\n return (countries === null || countries === void 0 ? void 0 : countries.length) > 0 && !countries.find((el) => el.selected) ? (React.createElement(\"div\", { className: \"row mb-24\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(\"p\", null, t('bookanappointment.nostoresincurrentlocation', { country: window.countryname }))))) : (React.createElement(React.Fragment, null));\n }, [countries]);\n return (React.createElement(\"div\", { className: \"checkout-pickup bookanappointment-wrapper\" },\n noStoresMessage(),\n React.createElement(\"div\", { className: \"row\" },\n !props.liveBoutique && (React.createElement(\"div\", { className: \"col-12 \" },\n React.createElement(DwFormField, { def: props.formdef, name: \"reason\", type: \"select\", onChange: (e) => onSelectReason(Number(e.target.value)), options: props.appointmentType != BAA.APPOINTMENT.VIRTUAL\n ? props.formdef.reason.options\n : props.formdef.reason.options.filter((o) => o.value != BAA.REASONS.PERSONALIZATION) }))),\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(DwFormField, { def: props.formdef, name: \"countrySelect\", type: \"select\", disabled: (!reasonSelect && !props.liveBoutique) || loadingCities, onChange: (e) => onSelectCountry(e.target.value), options: [\n ...[\n {\n value: '',\n selected: false,\n label: t('checkout.picking.selectcountry'),\n disabled: true,\n },\n ],\n ...(_a = countries\n .map((country, i) => {\n return {\n value: country.value,\n selected: country.value === countrySelect,\n label: t(`baa.${country.label.replaceAll(/\\s|,/g, '').toLowerCase()}`),\n };\n })) === null || _a === void 0 ? void 0 : _a.sort((a, b) => {\n if (a.label && b.label) {\n const A = a.label.toUpperCase();\n const B = b.label.toUpperCase();\n return A.localeCompare(B);\n }\n }),\n ] })),\n React.createElement(\"div\", { className: \"col-sm-6\" },\n React.createElement(DwFormField, { def: props.formdef, disabled: loadingCities || (!reasonSelect && !props.liveBoutique) || !countrySelect, name: \"citySelect\", type: \"select\", onChange: (e) => onSelectCity(e.target.value), options: [\n ...[\n {\n value: '',\n selected: false,\n label: t('checkout.picking.selectcity'),\n },\n ],\n ...cities.map((city, i) => {\n return {\n value: city,\n selected: city === citySelect,\n label: city,\n };\n }),\n ] }))),\n !props.showmap ? (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12 overflow-visible\" },\n stores.length > 0 && citySelect && props.liveBoutique && (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"p\", { className: \"disclaimer mt-20 mb-32\" }, t('liveboutique.disclaimer')))),\n !props.resetFields && pickupStores(true)))) : ((stores === null || stores === void 0 ? void 0 : stores.length) > 0 &&\n citySelect && (React.createElement(\"div\", { className: \"row map-row\" },\n React.createElement(\"div\", { className: \"col-12 mt-12 overflow-visible\" }, !props.resetFields && pickupStores(props.appointmentType == BAA.APPOINTMENT.VIRTUAL))))),\n loadingCities && (reasonSelect || props.liveBoutique) && (React.createElement(\"div\", { className: \"appointments-loading-screen__form\" },\n React.createElement(\"div\", null,\n (props.loaderSrc || window.loaderSrc) && React.createElement(\"img\", { src: props.loaderSrc || window.loaderSrc, alt: \"loading\" }),\n React.createElement(\"h4\", null, t('appointments.formloading', 'Just a few moments')))))));\n};\nexport default BookAnAppointmentStoreSelector;\n","import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport api from '@utils/api';\nconst BagInfoBox = (props) => {\n const { t } = useTranslation();\n const [loaded, setLoaded] = useState(false);\n const [bannerComponents, setBannerComponents] = useState();\n useEffect(() => {\n api.getPageJson('membership-small-banner', true).then((data) => {\n var _a;\n setLoaded(true);\n const currentComponents = (_a = data === null || data === void 0 ? void 0 : data.regions) === null || _a === void 0 ? void 0 : _a[0].components;\n setBannerComponents(currentComponents);\n });\n }, []);\n if (!loaded) {\n return React.createElement(React.Fragment, null);\n }\n if (bannerComponents && bannerComponents.length > 0 && !props.noBanner) {\n return (React.createElement(React.Fragment, null, bannerComponents.map((bannerComponent, index) => (React.createElement(\"div\", { key: index, className: \"bag-info-box membership-small-banner\" },\n React.createElement(\"div\", { className: \"membership-small-banner__image\", style: { backgroundImage: `url(\"${bannerComponent.custom.bg_image}\")` } }, bannerComponent.custom.logo && React.createElement(\"img\", { src: bannerComponent.custom.logo, alt: \"\" })),\n React.createElement(\"div\", { className: \"membership-small-banner__content\" },\n React.createElement(\"div\", { dangerouslySetInnerHTML: { __html: bannerComponent.data.paragraph } }),\n React.createElement(\"button\", { className: \"button-login justify-initial\", onClick: props.buttonAction, \"aria-haspopup\": \"dialog\", type: \"button\" },\n bannerComponent.data.buttonText,\n React.createElement(\"span\", { className: \"icon--chevron-right\" }))))))));\n }\n return (React.createElement(\"div\", { className: \"bag-info-box\" },\n React.createElement(\"p\", null, props.text),\n React.createElement(\"button\", { className: \"button-login\", onClick: props.buttonAction, \"aria-haspopup\": \"dialog\", type: \"button\" },\n t('checkout.logincta'),\n React.createElement(\"span\", { className: \"icon--chevron-right\" }))));\n};\nexport default BagInfoBox;\n","import Tooltip from '@ui/tooltip/Tooltip';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst ProductBoutiqueSelected = (props) => {\n const { store, onArrowBack, withBorder } = props;\n const { t } = useTranslation();\n if (!store) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('product-reserve__detail__selected-store', { 'has-back': !!onArrowBack }, { 'with-border': withBorder }) },\n !!onArrowBack && (React.createElement(\"button\", { className: \"back-button\", \"aria-label\": t('button.back'), onClick: () => {\n onArrowBack();\n document.querySelector('.product-reserve__main').classList.remove('zoom-product');\n } })),\n React.createElement(\"div\", null,\n props.appointmentType == 552250001 && store.liveBoutique && (React.createElement(\"div\", { className: \"option-store__live-boutique\" },\n React.createElement(\"span\", { className: \"primary-xxs\" }, t('bookanappointment.liveboutique')),\n 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(\"br\", null),\n store.phone))));\n};\nexport default ProductBoutiqueSelected;\n"],"names":["StoneLoginModal","lazy","MonclerLoginModal","props","Suspense","fallback","MO","Object","assign","ST","RadioGroup","radioGroupItems","useMemo","children","filter","c","__TYPE","isRadioGroupItemComponent","className","type","labelId","length","map","i","selected","setSelected","groupId","id","key","defaultProps","RadioGroupItem","inputCentered","disabled","name","value","onChange","setAnalytics","checked","content","ref","callback","useEffect","listener","event","current","contains","target","document","addEventListener","removeEventListener","showTooltip","setShowTooltip","useState","button","useRef","tootltipRef","boxRef","offset","setOffset","setTimeout","_a","containerRef","tempOffset","getBoundingClientRect","right","left","tooltipElements","querySelectorAll","lastTooltipElement","window","country","classList","add","onBlur","e","relatedTarget","matches","style","onClick","console","info","innerWidth","mqObj","md","checkout","log","onFocus","undefined","onKeyDown","icon","ariaLabel","text","role","dangerouslySetInnerHTML","__html","markup","t","formdef","days","values","form","fullWidth","def","requiredLabel","options","label","concat","keys","d","available","find","locale","replace","mutators","resetHours","date","_b","_c","_d","_e","_f","useTranslation","requestSent","store","title","formutils","firstname","surname","lastname","appointmentresponse","booking","code","appointmentType","interactiveStoreModule","DigitalFlagshipSmallPromoCard","StoreAddress","showdirections","showmail","showphone","email","phonePrefix","phone","p","hour","reason","href","manageappointmenturl","focusOnError","setRequestSent","setAppointmentresponse","setFormdef","initialValues","setInitialValues","errors","setErrors","setDays","setStore","setAppointmentType","collections","setCollections","appointmentSection","loginOpen","setLoginOpen","loginEmail","setLoginEmail","firstName","setFirstName","lastName","setLastName","setPhone","setPhonePrefix","resetFields","setResetFields","isLoading","setIsloading","reasonSelect","setReasonSelect","availableSlotTypes","setAvailableSlotTypes","tabsMap","lastArg","isMounted","val","api","then","data","htmlValue","appointmenttype","mbmContactReason","o","storeServices","personalizationRoom","recipeid","size","activeTabs","option","bookData","querySelector","ID","remove","finally","validate","async","onSubmit","loggedin","privacyFlag","storeid","prefillValues","different","Set","forEach","valKey","err","error","analytics","includes","paletteName","fromContinueInStore","product","masterId","scrollIntoView","behavior","inline","decorators","global","args","state","utils","changeValue","render","handleSubmit","submitting","pristine","DwFormField","pagetitleforanalytics","toLowerCase","appointmentValue","day","hourObj","checkHourValueInDays","ProductBoutiqueSelected","onArrowBack","BookAnAppointmentStoreSelector","mutator","onSelect","showmap","loaderSrc","BagInfoBox","noBanner","buttonAction","BookAnAppointmentDateSelection","BookAnAppointmentReasonMessage","DwFormFieldPhoneWithPrefix","uniqueLabel","Button","cls","reset","section","focus","toString","ErrorBox","LoginModal","inCart","reloadPage","reloadPageRegisteredInStore","modalStatus","analyticsKey","pageContext","updateStatus","status","placeholderOverride","setPlaceholderOverride","messagesReason","reasonSelected","overridePlaceholder","countrySelect","setCountrySelect","citySelect","setCitySelect","storesByCity","setStoresByCity","mapZoom","setMapZoom","mapCenter","setMapCenter","stores","setStores","storeFilter","setStoreFilter","storesSlotType","setStoresSlotType","countries","setCountries","loadingCities","setLoadingCities","cities","storesFilterArray","city","personalizationReason","Number","updateCountries","liveBoutique","google","maps","LatLng","latitude","longitude","storeFiltered","selectStore","filteredStore","storeFilterArray","arr","updateStores","Store","initialCity","el","reasonValue","selectedCountry","availableSlotsTypes","pickupStores","virtualAppointment","index","liveBoutiqueUrl","hidename","noStoresMessage","useCallback","countryname","onSelectReason","onSelectCountry","replaceAll","sort","a","b","A","toUpperCase","B","localeCompare","onSelectCity","src","alt","loaded","setLoaded","bannerComponents","setBannerComponents","currentComponents","regions","components","bannerComponent","backgroundImage","custom","bg_image","logo","paragraph","buttonText","withBorder","address1","address2"],"sourceRoot":""}