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E8J,QAASA,EAASK,SAAUA,EAAUH,aAAcA,EAAcC,YAAaA,EAAaX,QAASA,EAASS,cAAeA,EAAef,aAAcA,EAAc0C,aAAc,KAC5NkE,EAAgB,KAAK,EACtBjE,SAAU,CAAC9E,EAAMmB,KAChBqJ,EAAA,kBAAyBrH,EAAaoB,UAAW,UACjDyE,EAAe7H,EAAO,EACvBkC,QAASA,IAPhB,gBAAoB,EAA6B,CAAE/C,UAAWA,EAAWsB,gBAAiBA,EAAiB1B,UAAWA,KAAaG,cAAe0I,OAUS,C","sources":["webpack:///./assets/common/src/components/storelocator/StoreAddress.tsx","webpack:///./assets/common/src/components/storelocator/StoreGetDirections.tsx","webpack:///./assets/common/src/components/storelocator/StoreInfoBox.tsx","webpack:///./assets/stone/src/components/bag/BagInfoBox.tsx","webpack:///./assets/common/src/components/reserve/ProductBoutiqueStore.tsx","webpack:///./assets/common/src/components/reserve/ProductBoutiqueStoresLine.tsx","webpack:///./assets/common/src/components/reserve/ProductBoutiqueTabCountry.tsx","webpack:///./assets/common/src/components/reserve/ProductBoutiqueTabEurope.tsx","webpack:///./assets/stone/src/components/reserve/ProductBoutiqueStoreChooser.tsx","webpack:///./assets/stone/src/components/reserve/ProductBoutiqueReview.tsx","webpack:///./assets/stone/src/components/reserve/ProductBoutiqueReserve.tsx","webpack:///./assets/stone/src/components/reserve/ProductBoutiqueModal.tsx"],"sourcesContent":["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 store.countryCode.value === 'JP' && React.createElement(\"span\", { className: \"address\" }, `${store.address1 || ''} ${store.address2 || ''} `))),\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';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport StoreAddress from './StoreAddress';\nimport { getId } from '@common/utils/brandDiffsUtils';\nconst StoreInfoBox = (props) => {\n const { t } = useTranslation();\n const { store, className } = props;\n if (!store) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"dl\", { className: classNames('store-info', className) },\n React.createElement(\"dt\", null, t('label.address')),\n React.createElement(\"dd\", null,\n React.createElement(StoreAddress, { store: store, hidename: true })),\n store.phone && (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null, t('label.phone')),\n React.createElement(\"dd\", null,\n React.createElement(\"a\", { href: `tel:${store.phone}` }, store.phone)),\n store.hasDOSService && (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null),\n React.createElement(\"dd\", { className: \"hasDOSService-disclaimer\" }, t('storelocator.hasDOSService')))))),\n store.email && (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null, t('label.email')),\n React.createElement(\"dd\", null,\n React.createElement(\"a\", { target: \"_blank\", rel: \"noreferrer\", href: `mailto:${store.email}` }, store.email)))),\n store.storeHours && (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null, t('label.openinghours')),\n React.createElement(\"dd\", null, store.storeHours.map((sh) => (React.createElement(\"p\", { key: sh.day },\n sh.day,\n React.createElement(\"br\", null),\n sh.text)))))),\n store.hasInStoreServices && getId() === 'MO' && (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null, t('label.availableservices')),\n React.createElement(\"dd\", { className: \"store-services\" },\n store.storeServices.clickAndReserve && React.createElement(\"p\", null, t('storelocator.clickAndReserve')),\n store.storeServices.clickFromStore && React.createElement(\"p\", null, t('storelocator.clickFromStore')),\n store.storeServices.pickUpInStore && React.createElement(\"p\", null, t('storelocator.pickUpInStore')),\n store.storeServices.returnInStore && React.createElement(\"p\", null, t('storelocator.returnInStore')),\n store.storeServices.exchangeInStore && React.createElement(\"p\", null, t('storelocator.exchangeInStore')),\n store.storeServices.distantSale && React.createElement(\"p\", null, t('storelocator.distantSale')),\n store.storeServices.bookAnAppointment && React.createElement(\"p\", null, t('storelocator.bookAnAppointment')),\n store.storeServices.GarmentKit && React.createElement(\"p\", null, t('storelocator.GarmentKit')),\n store.storeServices.personalizationRoom && React.createElement(\"p\", null, t('storelocator.personalizationRoom')),\n store.storeServices.liveBoutique && React.createElement(\"p\", null, t('storelocator.liveBoutique')))))));\n};\nexport default StoreInfoBox;\n","import React, { useCallback } from 'react';\nimport Button from '@stone/ui/button/Button';\nimport classNames from 'classnames';\nconst BagInfoBox = (props) => {\n const renderHeading = useCallback(() => {\n const classname = 'font__title';\n if (props.heading)\n return React.createElement(props.heading, { className: classname }, React.createElement(React.Fragment, null, props.title));\n return React.createElement(\"p\", { className: classname }, props.title);\n }, [props.heading]);\n return (React.createElement(\"div\", { className: classNames('bag-info-box', props.className) },\n props.title && renderHeading(),\n props.text && React.createElement(\"p\", null, props.text),\n props.children,\n props.buttonAction && (React.createElement(Button, { type: \"button\", cls: props.buttonCls || ['button--tertiary'], onClick: props.buttonAction, ariaHaspopup: \"dialog\" }, props.buttonText))));\n};\nBagInfoBox.defaultProps = { heading: 'p' };\nexport default BagInfoBox;\n","import StoreInfoBox from '@components/storelocator/StoreInfoBox';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst ProductBoutiqueStore = (props) => {\n const { t } = useTranslation();\n const handlePress = (e) => {\n e.preventDefault();\n props.onReservePress();\n document.querySelector('.product-reserve__main').classList.add('zoom-product');\n document.querySelector('.product-reserve__detail').classList.add('zoom-product');\n };\n return (React.createElement(\"div\", { className: \"product-reserve-store\" },\n React.createElement(\"div\", { className: \"product-reserve-store__content\" },\n React.createElement(\"div\", { className: \"product-reserve-store__content__name\" },\n React.createElement(\"span\", null,\n props.index,\n \". \",\n props.store.name),\n props.store.distance && React.createElement(\"span\", { className: \"store-distance\" }, props.store.distance)),\n React.createElement(StoreInfoBox, { store: props.store }),\n window.country === 'RU' && React.createElement(\"p\", { className: \"tax-disclaimer\" }, t('store.clickAndReserve.taxdisclaimer')),\n React.createElement(\"button\", { onClick: handlePress, className: \"button button--secondary button--reserve\" },\n React.createElement(\"span\", null, t('button.reserveitem'))))));\n};\nexport default ProductBoutiqueStore;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst GeoOptions = {\n enableHighAccuracy: false,\n timeout: 5000,\n maximumAge: 0,\n};\nconst ProductBoutiqueStoresLine = (props) => {\n const { t } = useTranslation();\n const successLocalization = (pos) => {\n let crd = pos.coords;\n console.log('Your current position is:');\n console.log(`Latitude : ${crd.latitude}`);\n console.log(`Longitude: ${crd.longitude}`);\n console.log(`More or less ${crd.accuracy} meters.`);\n props.setGeo({ lat: pos.coords.latitude, lng: pos.coords.longitude });\n };\n const errorLocalization = (err) => {\n console.warn(`ERROR(${err.code}): ${err.message}`);\n };\n return (React.createElement(\"div\", { className: \"product-reserve__detail__line\" },\n React.createElement(\"span\", null, t('storelocator.nboutiques', { 0: props.storescount })),\n React.createElement(\"button\", { type: \"button\", className: \"use-location\", onClick: () => {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(successLocalization, errorLocalization, GeoOptions);\n }\n else {\n console.warn('Geolocation is not supported by this browser.');\n }\n } }, t('storelocator.usemylocation'))));\n};\nexport default ProductBoutiqueStoresLine;\n","import React, { useEffect, useState } from 'react';\nimport api from '@common/utils/api';\nimport ProductBoutiqueStore from './ProductBoutiqueStore';\nimport ProductBoutiqueStoresLine from './ProductBoutiqueStoresLine';\nconst ProductBoutiqueTabCountry = (props) => {\n const [stores, setStores] = useState([]);\n const [loading, setLoading] = useState(true);\n const [geo, setGeo] = useState();\n useEffect(() => {\n if (!props.pid) {\n setStores([]);\n setLoading(false);\n }\n else {\n setLoading(true);\n api.checkBoutiqueAvailability(props.pid, props.country, false, geo).then((data) => {\n if (data) {\n setStores(data.stores);\n setLoading(false);\n }\n else {\n setLoading(false);\n }\n });\n }\n }, [props.pid, props.country, geo]);\n if (loading && (stores === null || stores === void 0 ? void 0 : stores.length) == 0) {\n return React.createElement(React.Fragment, null);\n }\n if (props.pid && (stores === null || stores === void 0 ? void 0 : stores.length) == 0) {\n return props.noResults;\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(ProductBoutiqueStoresLine, { storescount: stores.length, setGeo: (e) => setGeo(e) }),\n stores.map((fs, idx) => (React.createElement(ProductBoutiqueStore, { key: fs.ID, index: idx + 1, store: fs, onReservePress: () => props.onStoreSelect(fs) })))));\n};\nexport default ProductBoutiqueTabCountry;\n","import Accordion from '@ui/accordion/Accordion';\nimport AccordionItem from '@ui/accordion/AccordionItem';\nimport React from 'react';\nimport api from '@common/utils/api';\nimport ProductBoutiqueStore from './ProductBoutiqueStore';\nconst ProductBoutiqueTabEurope = (props) => {\n const [countries, setCountries] = React.useState([]);\n const [loading, setLoading] = React.useState(true);\n React.useEffect(() => {\n if (!props.pid) {\n setCountries([]);\n setLoading(false);\n }\n else {\n setLoading(true);\n api.checkBoutiqueAvailability(props.pid, props.country, true).then((data) => {\n let countrygroups = new Map();\n if (data) {\n data.stores.forEach((s) => {\n if (s.countryCode) {\n let cg = countrygroups.get(s.countryCode.value);\n if (!cg) {\n countrygroups.set(s.countryCode.value, {\n label: s.countryCode.displayValue,\n stores: [s],\n });\n }\n else {\n cg.stores.push(s);\n }\n }\n });\n setCountries(Array.from(countrygroups.values()).sort((a, b) => {\n return a.label.localeCompare(b.label);\n }));\n setLoading(false);\n }\n else {\n setLoading(false);\n }\n });\n }\n }, [props.pid, props.country]);\n if (loading) {\n return React.createElement(React.Fragment, null);\n }\n if (countries.length == 0) {\n return props.noResults;\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(Accordion, null, countries.map((c) => {\n var _a;\n return (React.createElement(AccordionItem, { key: c.label, title: React.createElement(\"span\", null,\n c.label,\n React.createElement(\"sup\", null, (_a = c.stores) === null || _a === void 0 ? void 0 : _a.length)), accordionId: c.label }, c.stores.map((fs, idx) => (React.createElement(ProductBoutiqueStore, { key: fs.ID, index: idx + 1, store: fs, onReservePress: () => props.onStoreSelect(fs) })))));\n }))));\n};\nexport default ProductBoutiqueTabEurope;\n","import React, { useMemo } from 'react';\nimport { Tab, TabList, TabPanel, Tabs } from 'react-tabs';\nimport { useTranslation } from 'react-i18next';\nimport ProductBoutiqueTabCountry from '@components/reserve/ProductBoutiqueTabCountry';\nimport ProductBoutiqueTabEurope from '@components/reserve/ProductBoutiqueTabEurope';\nconst ProductBoutiqueStoreChooser = (props) => {\n var _a, _b;\n const { countries, productSelected, noResults, onStoreSelect } = props;\n const { t } = useTranslation();\n const stoneEurope = useMemo(() => {\n return window.site == 'StoneEU';\n }, [window.site]);\n return (countries === null || countries === void 0 ? void 0 : countries.length) > 0 ? (React.createElement(Tabs, { className: \"tabs tabs--fluid tabs--capitalize\" },\n React.createElement(TabList, { className: \"react-tabs__tab-list\" },\n countries.find((c) => c.selected) && React.createElement(Tab, null, countries.find((c) => c.selected).label),\n stoneEurope && React.createElement(Tab, null, t('label.europe'))),\n countries.find((c) => c.selected) && (React.createElement(TabPanel, null, productSelected ? (React.createElement(\"div\", { className: \"product-reserve__detail__stores\" },\n React.createElement(ProductBoutiqueTabCountry, { pid: productSelected, country: (_a = countries.find((c) => c.selected)) === null || _a === void 0 ? void 0 : _a.value, noResults: noResults, onStoreSelect: onStoreSelect }))) : (React.createElement(\"div\", { className: \"product-reserve__detail__text\" },\n React.createElement(\"p\", null, t('findinboutique.selectsize')))))),\n stoneEurope && (React.createElement(TabPanel, null, productSelected ? (React.createElement(\"div\", { className: \"product-reserve__detail__stores\" },\n React.createElement(ProductBoutiqueTabEurope, { pid: productSelected, country: (_b = countries.find((c) => c.selected)) === null || _b === void 0 ? void 0 : _b.value, noResults: noResults, onStoreSelect: onStoreSelect }))) : (React.createElement(\"div\", { className: \"product-reserve__detail__text\" },\n React.createElement(\"p\", null, t('findinboutique.selectsize')))))))) : (React.createElement(React.Fragment, null));\n};\nexport default ProductBoutiqueStoreChooser;\n","import React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport StoreAddress from '@components/storelocator/StoreAddress';\nimport classNames from 'classnames';\nimport formutils from '@common/utils/formutils';\nconst ProductBoutiqueReview = (props) => {\n var _a, _b, _c;\n const { requestSent, currentStore, days } = props;\n const hasAppintment = useMemo(() => {\n return requestSent.bookanappointment && (requestSent === null || requestSent === void 0 ? void 0 : requestSent.date);\n }, [requestSent]);\n const { t } = useTranslation();\n return (React.createElement(\"div\", { className: \"product-reserve__detail__reviews\" },\n React.createElement(\"div\", { className: \"product-reserve__detail__review\" },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: classNames('col-24 product-reserve__detail__review-item ', { 'col-lg-12': hasAppintment }) },\n React.createElement(\"h2\", { className: \"product-reserve__detail__review-header\" }, `${t('notifyme.thankyou', {\n title: formutils.labelByValue(requestSent === null || requestSent === void 0 ? void 0 : requestSent.title, (_a = props.formdef) === null || _a === void 0 ? void 0 : _a.title),\n name: requestSent.firstname,\n })}`),\n React.createElement(\"div\", { className: \"product-reserve__detail__review-content\" },\n React.createElement(\"p\", null, t('findinboutique.confirmation')))),\n hasAppintment && (React.createElement(\"div\", { className: \"col-24 product-reserve__detail__review-item col-lg-12\" },\n React.createElement(\"h2\", { className: \"product-reserve__detail__review-header\" }, t('bookanappointment.appointmentdetails')),\n React.createElement(\"div\", { className: \"product-reserve__detail__review-content\" },\n React.createElement(\"p\", null,\n t('label.date'),\n \": \", requestSent === null || requestSent === void 0 ? void 0 :\n requestSent.date),\n React.createElement(\"p\", null,\n t('label.hour'),\n \": \", (_c = (_b = days[requestSent === null || requestSent === void 0 ? void 0 : requestSent.date]) === null || _b === void 0 ? void 0 : _b.find((p) => (p === null || p === void 0 ? void 0 : p.value) == requestSent.hour)) === null || _c === void 0 ? void 0 :\n _c.label))))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-24 product-reserve__detail__review-item col-lg-12\" },\n React.createElement(\"h2\", { className: \"product-reserve__detail__review-header\" }, t('findinboutique.storeinfo')),\n React.createElement(\"div\", { className: \"product-reserve__detail__review-content\" },\n React.createElement(\"p\", null,\n React.createElement(StoreAddress, { store: currentStore, showphone: true, showmail: true })),\n React.createElement(\"p\", null, `${t('findinboutique.message')}: ${requestSent.message}`))),\n React.createElement(\"div\", { className: \"col-24 product-reserve__detail__review-item col-lg-12\" },\n React.createElement(\"h2\", { className: \"product-reserve__detail__review-header\" }, t('findinboutique.customerinfo')),\n React.createElement(\"div\", { className: \"product-reserve__detail__review-content\" },\n React.createElement(\"p\", null, `${requestSent.firstname} ${requestSent.lastname}`),\n React.createElement(\"p\", null, requestSent.email),\n React.createElement(\"p\", null, `${requestSent.phonePrefix} ${requestSent.phone}`))))),\n props.children));\n};\nexport default ProductBoutiqueReview;\n","import React, { useEffect, useState, useMemo } from 'react';\nimport { Form } from 'react-final-form';\nimport createDecorator from 'final-form-focus';\nimport { useTranslation } from 'react-i18next';\n// import analytics from '@common/utils/analytics';\nimport api from '@common/utils/api';\nimport formutils from '@common/utils/formutils';\nimport DwFormField from '@common/ui/formfield/DwFormField';\nimport DwFormFieldPhoneWithPrefix from '@common/ui/formfield/DwFormFieldPhoneWithPrefix';\nimport { BAA } from '@utils/constants';\nimport ErrorBox from '@components/common/ErrorBox';\nimport BookAnAppointmentReasonMessage from '@stone/components/appointments/BookAnAppointmentReasonMessage';\nimport BookAnAppointmentDateSelection from '@stone/components/appointments/BookAnAppointmentDateSelection';\nimport ProductBoutiqueSelected from './ProductBoutiqueSelected';\nimport Button from '@stone/ui/button/Button';\nconst focusOnError = createDecorator();\nconst ProductBoutiqueReserve = (props) => {\n var _a;\n const { product, currentStore, initialValues, currentColor, currentSize, formdef, setDays, customer } = props;\n const { t } = useTranslation();\n const loggedIn = useMemo(() => {\n return window.loggedin;\n }, [window.loggedin]);\n const [collections, setCollections] = useState([]);\n const [errors, setErrors] = useState([]);\n const [hasAppointmentSlots, setHasAppointmentSlots] = useState(false);\n const [daySlots, setDaySlots] = useState({});\n useEffect(() => {\n // if (currentStore) {\n // analytics.reserveInBoutiqueOverlay(product.id, currentSize.id);\n // }\n var _a;\n if (currentStore && ((_a = currentStore === null || currentStore === void 0 ? void 0 : currentStore.storeServices) === null || _a === void 0 ? void 0 : _a.bookAnAppointment)) {\n api.bookAnAppointmentSlots(currentStore === null || currentStore === void 0 ? void 0 : currentStore.ID, undefined, true).then((data) => {\n setDaySlots(data.days);\n setDays(data.days);\n setHasAppointmentSlots(Object.keys(data.days).length > 0);\n });\n api.bookAnAppointmentCollections(currentStore === null || currentStore === void 0 ? void 0 : currentStore.ID).then((data) => {\n setCollections(data);\n });\n }\n else {\n setDaySlots({});\n setDays({});\n }\n }, [currentStore]);\n const prefillValues = (values) => {\n values.productid = `${currentColor.productId}${currentSize.id}`;\n values.storeid = currentStore.ID;\n };\n const validate = async (values) => {\n if (loggedIn) {\n values.privacyFlag = true;\n }\n prefillValues(values);\n return await formutils.validateForm(values, formdef, 'reserve');\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 return await api\n .reserveInBoutique(values, formdef)\n .then((data) => {\n var _a, _b, _c;\n let errors = {};\n if (!data || data.error || ((_a = data.error) === null || _a === void 0 ? void 0 : _a.length) > 0) {\n setErrors(((_b = data.error) === null || _b === void 0 ? void 0 : _b.length) > 0 ? data.error : data.serverErrors.slice(0, 1));\n console.error(((_c = data.error) === null || _c === void 0 ? void 0 : _c.length) > 0 ? data.error : data.serverErrors);\n return;\n }\n if (!formutils.checkValidationAfterSubmit(data, errors)) {\n return errors;\n }\n props.onSubmit(data, values);\n })\n .catch((e) => console.error(e));\n };\n const toogleChecked = (e) => {\n const checked = e.currentTarget.checked;\n if (!checked) {\n document.querySelector('.wrapper-bookanappointment').classList.add('d-none');\n }\n else {\n document.querySelector('.wrapper-bookanappointment').classList.remove('d-none');\n }\n };\n return (React.createElement(\"div\", null,\n React.createElement(ProductBoutiqueSelected, { store: currentStore, onArrowBack: () => props.onStoreReset() }),\n React.createElement(\"hr\", { className: \"divider divider--xsmall\" }),\n React.createElement(\"div\", { className: \"product-reserve__detail__form\" },\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 React.createElement(\"fieldset\", { className: \"fieldset--plain\" },\n React.createElement(\"div\", { className: \"ReserveForm\" },\n React.createElement(\"div\", { className: \"wrapper-info\" },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"span\", { className: \"col-24 col-lg-12 reserve-info-title\" }, t('profile.namesurname')),\n React.createElement(\"span\", { className: \"col-24 col-lg-12\" },\n customer.firstName,\n \" \",\n customer.lastName)),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"span\", { className: \"col-24 col-lg-12 reserve-info-title\" }, t('profile.email')),\n React.createElement(\"span\", { className: \"col-24 col-lg-12\" }, customer.email)),\n customer.phone && (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"span\", { className: \"col-24 col-lg-12 reserve-info-title\" }, t('profile.phonenumber')),\n React.createElement(\"span\", { className: \"col-24 col-lg-12\" },\n customer.phonePrefix,\n \" \",\n customer.phone))),\n !customer.phone && React.createElement(DwFormFieldPhoneWithPrefix, { def: formdef, uniqueLabel: t('profile.phonenumber') })),\n React.createElement(\"div\", { className: \"row mt-24\" },\n React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(DwFormField, { def: formdef, name: \"message\", className: \"blockview mt-16\", type: \"textarea\" }))),\n React.createElement(DwFormField, { def: formdef, name: \"applicationorigin\", value: values.applicationorigin, hiddenLabel: true, className: \"visually-hidden\" }),\n hasAppointmentSlots && (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"py-4\" }, t('bookanappointment.text')),\n React.createElement(\"div\", { className: \"checkbox appount-flag\" },\n React.createElement(\"div\", { className: \"checkbox__field\" },\n React.createElement(\"input\", { type: \"checkbox\", id: \"bookanappointment\", defaultChecked: false, onChange: (e) => {\n toogleChecked(e);\n form.mutators.global({ bookanappointment: e.currentTarget.checked });\n } }),\n React.createElement(\"label\", { htmlFor: \"bookanappointment\" }, t('bookanappointment.checkbox')))),\n React.createElement(\"div\", { className: \"wrapper-bookanappointment d-none\" },\n React.createElement(BookAnAppointmentDateSelection, { formdef: formdef, days: daySlots, values: values, form: form }),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(DwFormField, { def: formdef, name: \"reason\", type: \"select\" })),\n values.reason == BAA.REASONS.DISCOVERCOLLECTION && (collections === null || collections === void 0 ? void 0 : collections.length) > 0 && (React.createElement(\"div\", { className: \"col-24\" },\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: \"product-reserve__detail__form__submit\" },\n React.createElement(Button, { type: \"submit\", className: \"full\", disabled: submitting, cls: ['button--primary'] }, t('button.reserveitem'))))) }),\n React.createElement(ErrorBox, { errors: errors }),\n React.createElement(\"p\", { className: \"product-reserve__detail__form__note\" },\n React.createElement(\"small\", { className: \"note\", dangerouslySetInnerHTML: { __html: t('notifyme.termsandconditions', { 0: (_a = document.getElementById('hidden-cookieurl')) === null || _a === void 0 ? void 0 : _a.href }) } })))));\n};\nexport default ProductBoutiqueReserve;\n","import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport api from '@utils/api';\nimport { getColorVariations, getSizeVariations } from '@utils/product';\nimport analytics from '@stone/utils/analytics';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport ErrorModal from '@components/error/ErrorModal';\nimport ModalDialog from '@stone/components/modal/ModalDialog';\nimport ProductBoutiqueStoreChooser from './ProductBoutiqueStoreChooser';\nimport ProductAddToBag from '../product/ProductActionAddToBag';\nimport ProductBoutiqueReview from './ProductBoutiqueReview';\nimport ProductBoutiqueReserve from './ProductBoutiqueReserve';\nimport Button from '@stone/ui/button/Button';\nimport LoginOrRegisterColumn from '../login/LoginOrRegisterColumn';\nimport BagInfoBox from '../bag/BagInfoBox';\nimport { siteUrl } from '@common/utils/urlutils';\nimport Icon from '@stone/ui/icon/Icon';\nconst ProductTileReview = React.lazy(() => import('../product/ProductTileReview'));\nconst ProductTileReviewExpanded = React.lazy(() => import('../product/ProductTileReviewExpanded'));\nconst ProductTileReserve = React.lazy(() => import('../product/ProductTileReserve'));\nconst ProductBoutiqueModal = (props) => {\n const { t } = useTranslation();\n const { isMobile } = useMediaQueries();\n // -- INITS\n // non renderizzare la modale all'apertura della pagina, non fare chiamate se non aperta\n const firstRender = useRef(true);\n const [loggedIn, setLoggedIn] = useState(window.loggedin);\n const [customer, setCustomer] = useState();\n useEffect(() => {\n if (props.isOpen) {\n setCurrentSize(props.size);\n if (firstRender.current) {\n firstRender.current = false;\n api.getClickAndReserveConfig().then((data) => {\n if (data.limitOrdersEnabled) {\n setClickAndReserveEnabled(true);\n }\n });\n }\n if (loggedIn) {\n let val = {};\n !customer &&\n api.getForm('reserve', val).then((data) => {\n let _customer = {\n firstName: data.firstname.htmlValue,\n lastName: data.lastname.htmlValue,\n phone: data.phone.htmlValue,\n phonePrefix: data.phonePrefix.htmlValue,\n email: data.email.htmlValue,\n };\n setCustomer(_customer);\n val.applicationorigin = window.appmode ? 'app' : 'web';\n setInitialValues(val);\n setFormdef(data);\n });\n !countries &&\n api.getBoutiqueCountries().then((data) => {\n setCountries(data);\n });\n }\n }\n }, [props.isOpen, loggedIn]);\n const [currentStore, setCurrentStore] = useState();\n const [requestSent, setRequestSent] = useState();\n const [clickAndReserveEnabled, setClickAndReserveEnabled] = useState(false);\n // --- PRODUCT STATES\n const [product, setProduct] = useState();\n const [currentColor, setCurrentColor] = useState();\n const [currentSize, setCurrentSize] = useState();\n // -- STATES\n const [initialValues, setInitialValues] = useState();\n const [formdef, setFormdef] = useState();\n const [countries, setCountries] = useState(null);\n const [days, setDays] = useState({});\n const [errorMessage, setErrorMessage] = useState();\n // -- MEMO\n const addToBagEnabled = useMemo(() => {\n return !!product && !!(currentSize === null || currentSize === void 0 ? void 0 : currentSize.selectable) && !product.isBoutiqueExclusive && !currentColor.isBoutiqueExclusive && !product.notShoppable && !product.isPreview;\n }, [currentSize, product, currentColor]);\n const productSelected = useMemo(() => {\n return currentColor && currentSize ? `${currentColor.productId}${currentSize.id}` : null;\n }, [currentColor, currentSize]);\n // const hasRangePrice = useMemo(() => {\n // return product?.price?.type === 'range';\n // }, [product]);\n // --- METHODS\n const changeProduct = (productid) => {\n api.getProduct(productid).then((data) => {\n var _a;\n setProduct(data);\n //set new color\n const selectedColor = ((_a = getColorVariations(data)) === null || _a === void 0 ? void 0 : _a.find((v) => v.selected)) || null;\n setCurrentColor(selectedColor);\n //set new size\n const selectedSize = getSizeVariations(data).find((v) => v.selected) || null;\n setCurrentSize(selectedSize);\n });\n };\n const setSizeCallback = (val) => {\n changeProduct(`${product.masterId}${currentColor.id}${val.id}`);\n return false;\n };\n const setColorCallback = (val) => {\n changeProduct(`${val.productId}${(currentSize === null || currentSize === void 0 ? void 0 : currentSize.id) || ''}`);\n };\n // -- CALLBACKS\n const resetOnClose = useCallback(() => {\n props.onRequestClose();\n setTimeout(() => {\n setRequestSent(undefined);\n setCurrentStore(undefined);\n setCustomer(undefined);\n }, 1000);\n }, [props.onRequestClose]);\n const noResults = useCallback(() => {\n return (React.createElement(\"div\", { className: \"product-reserve__detail__text\", role: \"alert\", \"aria-live\": \"polite\" }, addToBagEnabled ? (React.createElement(React.Fragment, null,\n React.createElement(\"p\", null, t('findinboutique.notavailableinboutique')),\n React.createElement(ProductAddToBag, { hierarchy: 'primary', product: product, size: currentSize, pushAnalytics: () => analytics.addToBag(product, currentSize, null, { detail: 'reserve in store' }), callback: resetOnClose, updateErrorMessage: (msg) => setErrorMessage(msg) }),\n React.createElement(ErrorModal, { message: errorMessage, onClose: () => setErrorMessage(undefined) }))) : (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"alert\" },\n React.createElement(Icon, { name: \"alert\", family: '10' }),\n \" \",\n t('findinboutique.notavailable'))))));\n }, [currentSize, product, errorMessage, addToBagEnabled]);\n // --- EFFECTS\n useEffect(() => {\n if (props.product) {\n setProduct(props.product);\n }\n if (props.color) {\n setCurrentColor(props.color);\n }\n if (props.size) {\n setCurrentSize(props.size);\n }\n }, [props.product, props.color, props.size]);\n return (React.createElement(ModalDialog, { id: \"reserveinboutsique\", className: 'product-reserve--modal', closeInvertedSm: true, isOpen: props.isOpen, onAfterOpen: () => {\n var _a;\n analytics.reserveInStore(((_a = props.color) === null || _a === void 0 ? void 0 : _a.productId) || props.product.id);\n }, onRequestClose: resetOnClose, contentLabel: props.title, fullWidth: isMobile, fullHeight: isMobile, noPadding: true },\n React.createElement(\"div\", { className: \"product-reserve\" },\n React.createElement(\"div\", { className: \"product-reserve__main\" }, !loggedIn || !!currentStore ? (React.createElement(ProductTileReview, { imageSize: \"small\", product: product, color: props.color, size: loggedIn && currentSize })) : isMobile ? (React.createElement(ProductTileReserve, { product: product, onChangeColor: (colorVariation) => {\n setColorCallback(colorVariation);\n return false;\n }, onChangeSize: (sizeVariation) => {\n setSizeCallback(sizeVariation);\n return false;\n } })) : (React.createElement(ProductTileReviewExpanded, { product: product, color: currentColor, size: currentSize, onChangeColor: (colorVariation) => {\n setColorCallback(colorVariation);\n }, onSizeChange: (sizeVariation) => {\n setSizeCallback(sizeVariation);\n }, colourVariations: props.colourVariations, sizeVariations: props.sizeVariations }))),\n React.createElement(\"div\", { className: \"product-reserve__detail\" },\n React.createElement(\"div\", { className: \"divider divier--small\" }),\n clickAndReserveEnabled && React.createElement(\"p\", { className: \"dialog_subtitle bold\" }, t('findinboutique.minimumreservation')),\n !loggedIn && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"login-include\" },\n React.createElement(LoginOrRegisterColumn, { closeModal: resetOnClose, updateLoggeedStatus: () => setLoggedIn(true), updateLoggedin: () => setLoggedIn(true), from: \"reserve\", hideElements: ['mainHeading', 'wishlistbutton'], slots: {\n passwordheading: React.createElement(\"h3\", { className: \"login-modal-subtitle mb-12\" }, t('account.welcomeback')),\n benefitsFallback: (React.createElement(BagInfoBox, { className: \"mt-0\", title: t('store.clickAndReserve.infobox.title'), text: t('store.clickAndReserve.infobox.text'), buttonText: t('store.clickAndReserve.infobox.cta'), buttonAction: () => {\n location.href = siteUrl('register');\n }, heading: \"h2\" })),\n }, componentContext: \"include\", rememberme: true, reloadComponent: true })))),\n customer && (React.createElement(React.Fragment, null, !currentStore ? (\n //STEP 1\n React.createElement(ProductBoutiqueStoreChooser, { countries: countries, productSelected: productSelected, noResults: noResults(), onStoreSelect: setCurrentStore })) : !requestSent ? (\n //STEP 2\n React.createElement(ProductBoutiqueReserve, { product: product, customer: customer, currentColor: currentColor, currentSize: currentSize, formdef: formdef, initialValues: initialValues, currentStore: currentStore, onStoreReset: () => {\n setCurrentStore(null);\n }, onSubmit: (data, values) => {\n analytics.reserveInStore(currentColor.productId, 'submit');\n setRequestSent(values);\n }, setDays: setDays })) : (\n //STEP 3\n React.createElement(ProductBoutiqueReview, { requestSent: requestSent, formdef: formdef, product: product, currentColor: currentColor, currentSize: currentSize, currentStore: currentStore, days: days },\n React.createElement(Button, { type: \"button\", cls: ['button--primary'], className: \"full\", onClick: resetOnClose }, t('button.backtoshopping'))))))))));\n};\nexport default ProductBoutiqueModal;\n"],"names":["props","_a","_b","_c","_d","t","brandId","store","hidename","showphone","showmail","showdirections","showHours","className","ID","name","countryCode","value","address1","address2","postalCode","displayValue","city","stateCode","split","phone","href","email","target","rel","storeHours","map","sh","key","day","text","trackingAction","latitude","longitude","onClick","undefined","hasDOSService","hasInStoreServices","storeServices","clickAndReserve","clickFromStore","pickUpInStore","returnInStore","exchangeInStore","distantSale","bookAnAppointment","GarmentKit","personalizationRoom","liveBoutique","BagInfoBox","renderHeading","useCallback","classname","heading","title","children","buttonAction","type","cls","buttonCls","ariaHaspopup","buttonText","defaultProps","useTranslation","index","distance","StoreInfoBox","window","country","e","preventDefault","onReservePress","document","querySelector","classList","add","GeoOptions","enableHighAccuracy","timeout","maximumAge","successLocalization","pos","crd","coords","console","log","accuracy","setGeo","lat","lng","errorLocalization","err","warn","code","message","storescount","navigator","geolocation","getCurrentPosition","stores","setStores","useState","loading","setLoading","geo","useEffect","pid","api","then","data","length","noResults","fs","idx","onStoreSelect","countries","setCountries","countrygroups","Map","forEach","s","cg","get","push","set","label","Array","from","values","sort","a","b","localeCompare","Accordion","c","AccordionItem","accordionId","productSelected","stoneEurope","useMemo","site","find","selected","requestSent","currentStore","days","hasAppintment","bookanappointment","date","formutils","formdef","firstname","p","hour","StoreAddress","lastname","phonePrefix","focusOnError","product","initialValues","currentColor","currentSize","setDays","customer","loggedIn","loggedin","collections","setCollections","errors","setErrors","hasAppointmentSlots","setHasAppointmentSlots","daySlots","setDaySlots","Object","keys","validate","async","privacyFlag","productid","productId","id","storeid","prefillValues","ProductBoutiqueSelected","onArrowBack","onStoreReset","onSubmit","error","serverErrors","slice","catch","decorators","mutators","global","resetHours","args","state","utils","changeValue","render","handleSubmit","form","submitting","pristine","firstName","lastName","DwFormFieldPhoneWithPrefix","def","uniqueLabel","DwFormField","applicationorigin","hiddenLabel","defaultChecked","onChange","currentTarget","checked","remove","toogleChecked","htmlFor","BookAnAppointmentDateSelection","reason","options","concat","BookAnAppointmentReasonMessage","Button","disabled","ErrorBox","dangerouslySetInnerHTML","__html","getElementById","ProductTileReview","ProductTileReviewExpanded","ProductTileReserve","isMobile","useMediaQueries","firstRender","useRef","setLoggedIn","setCustomer","isOpen","setCurrentSize","size","current","limitOrdersEnabled","setClickAndReserveEnabled","val","_customer","htmlValue","appmode","setInitialValues","setFormdef","setCurrentStore","setRequestSent","clickAndReserveEnabled","setProduct","setCurrentColor","errorMessage","setErrorMessage","addToBagEnabled","selectable","isBoutiqueExclusive","notShoppable","isPreview","changeProduct","selectedColor","v","selectedSize","setSizeCallback","masterId","setColorCallback","resetOnClose","onRequestClose","setTimeout","role","hierarchy","pushAnalytics","analytics","detail","callback","updateErrorMessage","msg","ErrorModal","onClose","Icon","family","color","ModalDialog","closeInvertedSm","onAfterOpen","contentLabel","fullWidth","fullHeight","noPadding","imageSize","onChangeColor","colorVariation","onChangeSize","sizeVariation","onSizeChange","colourVariations","sizeVariations","LoginOrRegisterColumn","closeModal","updateLoggeedStatus","updateLoggedin","hideElements","slots","passwordheading","benefitsFallback","location","componentContext","rememberme","reloadComponent"],"sourceRoot":""}