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jC,OAAO2N,EAEXJ,GAAyB,EAAK,EAQoDE,SAAUA,EAAUG,WAAY,CAACd,GAAenG,SAAU,CAAEkH,OAAQ,mBAA2BC,OAAQ,EAAGC,eAAcjI,OAAMkI,aAAYC,WAAUpI,YAAc,gBAAoB,OAAQ,CAAE6H,SAAUK,GAChR,gBAAoB,WAAgB,KAChC,gBAAoB,IAAgC3O,OAAOC,OAAO,CAAEsG,QAASA,EAAS0D,cAAeA,GAAiB1L,EAAO,CAAEqM,QAASlE,EAAKa,SAASkH,OAAQhF,MAAOA,EAAOsC,SAAUgC,EAAU5D,cAAc,EAAMY,gBAAiB,6BACzOtB,GAAU,gBAAoB,MAAO,CAAE9K,UAAW,OAC9C,gBAAoB,MAAO,CAAEA,UAAW,+BACpC,gBAAoB,MAAO,CAAEA,UAAW,yCACpC,gBAAoB,IAAQ,CAAEW,KAAM,SAAUiC,SAAUqN,EAAYrP,IAAK,CAAC,oBAAsB+G,EAAE,4CAC9G,gBAAoB,IAAU,CAAEsH,OAAQA,QACpDnE,GAAU,gBAAoB,IAAmBzJ,OAAOC,OAAO,CAAE6O,WAAYnL,OAAOoL,iBAAmB,uBAAwBtF,MAAOA,EAAOuF,OAAQd,GAAyB3P,EAAO,CAAE0Q,eAAgB,IAAMd,GAAyB,OAb/N,gBAAoB,WAAgB,KAawM,C","sources":["webpack:///./assets/common/src/components/common/Section.tsx","webpack:///./assets/common/src/ui/modal/ModalDialog.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/common/src/utils/constants.ts","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentDateSelection.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentReasonMessage.tsx","webpack:///./assets/moncler/src/components/appointments/BookAnAppointmentStoreSelector.tsx","webpack:///./assets/moncler/src/components/appointments/LiveBoutique.tsx"],"sourcesContent":["import Button from '@ui/button/Button';\nimport classNames from 'classnames';\nimport React from 'react';\nconst Section = (props) => {\n const { title, description, introSection, className, buttonLink, buttonText, children, borderBottom, buttonAction, noMargin } = props;\n const textHolder = (React.createElement(React.Fragment, null,\n React.createElement(\"h2\", { className: \"section__title\" }, title),\n description && React.createElement(\"p\", { className: \"section__description\", dangerouslySetInnerHTML: { __html: description } })));\n return (React.createElement(\"div\", { className: classNames('client-service__section', {\n 'section--intro-section': introSection,\n 'section--title-only': !description && !children,\n 'section--little-snippet': buttonLink || buttonAction,\n 'section--border-bottom': borderBottom,\n 'section--no-margin': noMargin,\n }, className != undefined && className) },\n buttonLink || buttonAction ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null, textHolder),\n buttonAction ? (React.createElement(Button, { type: \"button\", cls: ['button--secondary'], onClick: buttonAction },\n React.createElement(\"span\", null, buttonText))) : (React.createElement(\"a\", { href: buttonLink, target: \"_blank\", className: \"button button--secondary\" },\n React.createElement(\"span\", null, buttonText))))) : (textHolder),\n children));\n};\nexport default Section;\n","import React, { Suspense } from 'react';\nimport { autoChooseComponent } from '@common/utils/brandDiffsUtils';\nconst StoneModalDialog = React.lazy(() => import('@stone/components/modal/ModalDialog'));\nconst MocnclerModalDialog = React.lazy(() => import('@moncler/components/modal/ModalDialog'));\nconst ModalDialog = (props) => {\n return (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, autoChooseComponent({\n MO: React.createElement(MocnclerModalDialog, Object.assign({}, props)),\n ST: React.createElement(StoneModalDialog, Object.assign({}, props, { isLegacy: true })),\n })));\n};\nexport default ModalDialog;\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","export const chat = {\n zendesk: 'zendesk',\n sprinklr: 'sprinklr',\n none: 'none',\n};\nexport const BAA = {\n REASONS: {\n PERSONALIZATION: 552250004,\n DISCOVERCOLLECTION: 552250000,\n },\n APPOINTMENT: {\n INSTORE: 552250000,\n VIRTUAL: 552250001,\n CARAVAN: 552250002,\n },\n TREBASELEGHE: {\n SELF: 'myself',\n GUEST: 'guest',\n },\n};\nexport const menu = {\n overlay: {\n timeout: 200,\n },\n};\nexport const freeExpressShippingCustomerGroup = 'FreeExpressShippingForNewMembers';\nexport const contactFormId = 'contact-form';\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 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 useQueryString from '@utils/useQueryString';\nimport ErrorBox from '@components/common/ErrorBox';\nimport Section from '@components/common/Section';\nimport { Form } from 'react-final-form';\nimport createDecorator from 'final-form-focus';\nimport formutils from '@utils/formutils';\nimport api from '@utils/api';\nimport { BAA } from '@utils/constants';\nimport Button from '@ui/button/Button';\nimport BookAnAppointmentStoreSelector from './BookAnAppointmentStoreSelector';\nimport LiveBoutiqueModal from './LiveBoutiqueModal';\nconst LoginModal = React.lazy(() => import('@components/login/LoginModal'));\nconst focusOnError = createDecorator(); // must be outside the component\nconst LiveBoutique = (props) => {\n const { t } = useTranslation();\n const [initialValues, setInitialValues] = useState();\n const [errors, setErrors] = useState([]);\n const [formdef, setFormdef] = useState();\n const [store, setStore] = useState(props.store);\n const [storeID, setStoreID] = useQueryString('storeID');\n const [showLiveBoutiqueModal, setShowLiveBoutiqueModal] = useQueryString('openLiveBoutique', false, true);\n useEffect(() => {\n let val = {};\n api.getForm('live-boutique-stores', val, true).then((data) => {\n setInitialValues(val);\n setFormdef(data);\n });\n }, []);\n useEffect(() => {\n if (storeID) {\n api.searchStoreDetails(storeID).then((data) => {\n setStore(data);\n });\n }\n }, []);\n const validate = async (values) => {\n return await formutils.validateForm(values, formdef, 'live-boutique-stores');\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 setShowLiveBoutiqueModal(true);\n };\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: \"client-service account-appointments\" },\n React.createElement(Section, { introSection: true, title: t('bookanappointment.liveboutique'), description: t('liveboutique.intro') }),\n React.createElement(\"div\", { className: \"product-reserve__detail__form scrollable\" },\n React.createElement(Form, { initialValues: initialValues, onSubmit: onSubmit, validate: validate, decorators: [focusOnError], mutators: { global: formutils.globalMutator }, render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n React.createElement(React.Fragment, null,\n React.createElement(BookAnAppointmentStoreSelector, Object.assign({ formdef: formdef, initialValues: initialValues }, props, { mutator: form.mutators.global, store: store, onSelect: setStore, liveBoutique: true, appointmentType: BAA.APPOINTMENT.VIRTUAL }))),\n store && (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12 col-md-6 offset-md-6\" },\n React.createElement(\"div\", { className: \"product-reserve__detail__form__submit\" },\n React.createElement(Button, { type: \"submit\", disabled: submitting, cls: ['button--primary'] }, t('bookanappointment.confirmappointment')))))),\n React.createElement(ErrorBox, { errors: errors }))) })),\n store && (React.createElement(LiveBoutiqueModal, Object.assign({ modalimage: window.loginImageFolder + 'bg-live-boutique.jpg', store: store, isOpen: showLiveBoutiqueModal }, props, { onRequestClose: () => setShowLiveBoutiqueModal(false) })))));\n};\nexport default LiveBoutique;\n"],"names":["props","title","description","introSection","className","buttonLink","buttonText","children","borderBottom","buttonAction","noMargin","textHolder","dangerouslySetInnerHTML","__html","undefined","type","cls","onClick","href","target","StoneModalDialog","MocnclerModalDialog","Suspense","fallback","MO","Object","assign","ST","isLegacy","RadioGroup","radioGroupItems","useMemo","filter","c","__TYPE","isRadioGroupItemComponent","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","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","console","info","innerWidth","mqObj","md","checkout","log","onFocus","onKeyDown","icon","ariaLabel","text","role","markup","chat","zendesk","sprinklr","none","BAA","REASONS","PERSONALIZATION","DISCOVERCOLLECTION","APPOINTMENT","INSTORE","VIRTUAL","CARAVAN","TREBASELEGHE","SELF","GUEST","menu","overlay","timeout","freeExpressShippingCustomerGroup","contactFormId","t","formdef","days","values","form","fullWidth","def","requiredLabel","options","label","concat","keys","d","available","find","locale","replace","mutators","resetHours","date","placeholderOverride","setPlaceholderOverride","messagesReason","reason","reasonSelected","toString","overridePlaceholder","reasonSelect","setReasonSelect","countrySelect","setCountrySelect","citySelect","setCitySelect","storesByCity","setStoresByCity","mapZoom","setMapZoom","mapCenter","setMapCenter","stores","setStores","storeFilter","setStoreFilter","storesSlotType","setStoresSlotType","countries","setCountries","loadingCities","setLoadingCities","cities","storesFilterArray","store","includes","ID","Set","city","resetFields","personalizationReason","Number","initialValues","updateCountries","liveBoutique","google","maps","LatLng","latitude","longitude","storeFiltered","selectStore","filteredStore","mutator","storeid","storeFilterArray","appointmentType","then","data","arr","code","updateStores","async","Store","initialCity","el","finally","reasonValue","selectedCountry","availableSlotsTypes","availableSlotTypes","setAvailableSlotTypes","onSelect","pickupStores","virtualAppointment","index","_b","liveBoutiqueUrl","hidename","noStoresMessage","useCallback","countryname","onSelectReason","o","onSelectCountry","replaceAll","toLowerCase","sort","a","b","A","toUpperCase","B","localeCompare","onSelectCity","showmap","loaderSrc","src","alt","focusOnError","setInitialValues","errors","setErrors","setFormdef","setStore","storeID","setStoreID","showLiveBoutiqueModal","setShowLiveBoutiqueModal","val","validate","onSubmit","err","decorators","global","render","handleSubmit","submitting","pristine","modalimage","loginImageFolder","isOpen","onRequestClose"],"sourceRoot":""}