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C,UAAW,oBACpC,gBAAoB,IAAK,CAAEA,UAAW,iBAClCiJ,EAAMM,SACN,IACAN,EAAMO,SACN,IACAP,EAAMQ,KACN,gBAAoB,KAAM,MAC1BR,EAAMS,SAwBA,SAAdzL,EAAMqC,MAvBqB,gBAAoB,MAAO,CAAEN,UAAW,OACnE,gBAAoB,MAAO,CAAEA,UAAW,oBACpC,gBAAoB,IAAK,CAAEA,UAAW,cAAgBiJ,EAAMtG,MAC5D,gBAAoB,IAAK,CAAE3C,UAAW,iBAClCiJ,EAAMM,SACN,IACAN,EAAMO,SACN,IACAP,EAAMQ,KACNR,EAAMS,OAAU,gBAAoB,WAAgB,KAChD,KACA,gBAAoB,OAAQ,CAAE1J,UAAW,eAAiBiJ,EAAMS,WAYhC,EAEpDV,EAAwBW,aAAe,CACnCrJ,KAAM,QAEV,K","sources":["webpack:///./assets/common/src/utils/useClickAway.ts","webpack:///./assets/common/src/ui/tooltip/Tooltip.tsx","webpack:///./assets/common/src/utils/constants.ts","webpack:///./assets/stone/src/components/appointments/BookAnAppointmentDateSelection.tsx","webpack:///./assets/stone/src/components/appointments/BookAnAppointmentReasonMessage.tsx","webpack:///./assets/stone/src/components/login/LoginOrRegisterHeader.tsx","webpack:///./assets/stone/src/components/login/RegistrationSuccessful.tsx","webpack:///./assets/stone/src/components/login/LoginOrRegisterColumn.tsx","webpack:///./assets/stone/src/components/reserve/ProductBoutiqueSelected.tsx"],"sourcesContent":["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';\nimport { getId } from '@common/utils/brandDiffsUtils';\nimport { t } from 'i18next';\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 useEffect(() => {\n const escape = (e) => {\n if (e.key == 'Escape') {\n setShowTooltip(false);\n document.removeEventListener('keydown', escape);\n }\n };\n if (showTooltip) {\n if (whatInput.ask() == 'keyboard') {\n document.addEventListener('keydown', escape);\n }\n }\n props.setToolTipOpen && props.setToolTipOpen(showTooltip);\n }, [showTooltip]);\n const toggleOpen = () => {\n console.info('open tooltip');\n // @ts-ignore\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 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 const renderCloseButton = () => (React.createElement(\"button\", { \"aria-label\": t('button.close'), className: \"tooltip__close\", onClick: () => setShowTooltip(false) }, \"X\"));\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, className: `icon--${props.icon ? props.icon : 'tooltip'} tooltip__button`, \"aria-expanded\": showTooltip, \"aria-controls\": props.id, \"aria-label\": props.ariaLabel }),\n props.text && (React.createElement(React.Fragment, null, getId() === 'ST' ? (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\" },\n renderCloseButton(),\n React.createElement(\"div\", { dangerouslySetInnerHTML: { __html: props.text } }))) : (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\", dangerouslySetInnerHTML: { __html: props.text } })))),\n props.markup && (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\" },\n getId() == 'ST' && renderCloseButton(),\n 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 React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport DwFormField from '@ui/formfield/DwFormField';\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: `${props.type == 'modal' ? 'col-8' : 'col-24'} col-lg-12` },\n React.createElement(DwFormField, { def: formdef, name: \"date\", type: \"select\", 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: `${props.type == 'modal' ? 'col-16' : 'col-24'} col-lg-12` },\n React.createElement(DwFormField, { def: formdef, name: \"hour\", type: \"select\", options: days[values.date] ? [{ value: '', label: t('label.select') }].concat(days[values.date]) : [{ value: '', label: t('label.select') }] })))));\n};\nexport default BookAnAppointmentDateSelection;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport DwFormField from '@ui/formfield/DwFormField';\nconst BookAnAppointmentReasonMessage = (props) => {\n const { t } = useTranslation();\n const { formdef, values } = props;\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(DwFormField, { def: formdef, name: \"messageforstore\", type: \"text\", overridePlaceholder: t('bookanappointment.reasonmessage.placeholder') })))));\n};\nexport default BookAnAppointmentReasonMessage;\n","import { useLangChecker } from '@common/utils/i18n';\nimport Button from '@stone/ui/button/Button';\nimport Icon from '@stone/ui/icon/Icon';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst LoginOrRegisterHeader = (props) => {\n const { t } = useTranslation();\n return (React.createElement(\"div\", { className: \"login-register-header\" },\n React.createElement(Button, { cls: ['button--link'], type: \"button\", onClick: props.onBack },\n React.createElement(React.Fragment, null,\n React.createElement(Icon, { ariaHidden: true, family: \"10\", name: \"left-chevron\" }),\n React.createElement(\"span\", { ref: useLangChecker }, t('label.sitename'))))));\n};\nexport default LoginOrRegisterHeader;\n","import React, { useLayoutEffect, useRef } from 'react';\nimport classNames from 'classnames';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport Button from '@stone/ui/button/Button';\nconst RegistrationSuccessful = (props) => {\n const { t } = useTranslation();\n const domComponent = useRef();\n useLayoutEffect(() => {\n let header = document.querySelector('.login-modal .modal__header');\n if (header && props.inDialogLogin) {\n header.style.display = 'none';\n }\n return () => {\n if (header && props.inDialogLogin) {\n header.style.display = 'block';\n }\n };\n }, []);\n return (React.createElement(\"div\", { ref: domComponent, className: classNames('login-registration__registration-successful', props.classNames) },\n React.createElement(\"h2\", { className: \"font__title\" }, t('modal.loginregister.successfull')),\n React.createElement(\"div\", { className: \"mb-32\" },\n React.createElement(\"p\", null, t('modal.loginregister.thankyou1')),\n React.createElement(\"p\", null, t('modal.loginregister.thankyou2'))),\n React.createElement(Button, { type: \"button\", cls: ['button--primary'], className: \"full\", onClick: () => {\n if (props.reloadPage && !props.reloadComponent) {\n window.location.reload();\n }\n else if (props.reloadComponent) {\n props.updateLoggeedStatus(true);\n window.loggedin = true;\n customEventBus.emit('account:update', {});\n }\n else {\n props.closeModal();\n }\n } }, t('modal.loginregister.keepbrowsing'))));\n};\nexport default RegistrationSuccessful;\n","import React, { Suspense, useCallback, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { motion } from 'framer-motion';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport LoginPasswordForm from '@stone/components/login/LoginPasswordForm';\nimport LoginEmailForm from '@stone/components/login/LoginEmailForm';\nimport RegisteredInStore from '@stone/components/login/RegisteredInStore';\nimport RegisteredInStoreSendEmail from '@stone/components/login/RegisteredInStoreSendEmail';\nimport OtherLoginMethods from '@stone/components/login/OtherLoginMethods';\nimport LoginSocial from '@stone/components/login/LoginSocial';\nimport LoginOrRegisterSocial from '@stone/components/login/LoginOrRegisterSocial';\nimport RegisterForm from '@stone/components/login/RegisterForm';\nimport LoginOrRegisterHeader from '@stone/components/login/LoginOrRegisterHeader';\nimport RegistrationSuccessful from '@stone/components/login/RegistrationSuccessful';\nimport { useLangChecker } from '@common/utils/i18n';\nconst BagInfoBox = React.lazy(() => import('@stone/components/bag/BagInfoBox'));\nconst RegistrationBenefits = React.lazy(() => import('./RegistrationBenefits'));\nconst LoginOrRegisterColumn = (props) => {\n const { t } = useTranslation();\n const [loginStep, setLoginStep] = useState(props.defaultRegister ? 'register' : 'email');\n const [loginEmail, setLoginEmail] = useState();\n const [loginMethods, setLoginMethods] = useState([]);\n const { isMobile } = useMediaQueries();\n const isHidden = useCallback((elementName) => {\n var _a;\n return ((_a = props.hideElements) === null || _a === void 0 ? void 0 : _a.indexOf(elementName)) >= 0;\n }, [props.hideElements, props.slots]);\n const renderSlot = useCallback((slotname) => {\n return props.slots && props.slots[slotname];\n }, [props.slots, props.hideElements]);\n return (React.createElement(React.Fragment, null,\n !isHidden('mainHeading') && (React.createElement(\"div\", { className: \"wrapper-header-modal\" }, props.inAccountMenu ? (React.createElement(\"p\", { className: \"font__title\" }, t('label.login'))) : (React.createElement(LoginOrRegisterHeader, { onBack: () => {\n if (loginStep == 'email') {\n (props === null || props === void 0 ? void 0 : props.onBack) && props.onBack();\n }\n else {\n setLoginStep('email');\n }\n }, step: loginStep })))),\n loginStep == 'email' && (React.createElement(React.Fragment, null,\n React.createElement(motion.div, { transition: { type: 'tween', duration: 0.5, ease: [0.25, 1, 0.5, 1] }, initial: { opacity: 0 }, animate: { opacity: 1 }, className: \"login-modal-forms\" },\n React.createElement(LoginEmailForm, { useHeading: \"h2\", hideHeading: isHidden('emailHeading'), setLoginStep: setLoginStep, setLoginEmail: setLoginEmail, setLoginMethods: setLoginMethods, analyticsKey: props.analyticsKey }),\n React.createElement(LoginOrRegisterSocial, { from: props.from, inline: props.from == 'reserve', reloadUrl: props.linkreload || location.href, analyticsKey: props.analyticsKey, text: renderSlot('sociallogintext') })),\n React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, !isHidden('benefits') && (React.createElement(RegistrationBenefits, { inModal: true }, renderSlot('benefitsFallback') || (React.createElement(BagInfoBox, { title: t('checkout.login.text') },\n React.createElement(\"ul\", { className: \"mt-20 nolist\" },\n React.createElement(\"li\", { className: \"mb-4\" }, t('register.reviewyourorders')),\n React.createElement(\"li\", { className: \"mb-4\" }, t('register.managesaveditems')),\n React.createElement(\"li\", null, t('register.completepurchasesfaster')))))))),\n !isMobile && !isHidden('wishlistbutton') && (React.createElement(\"a\", { href: window.wishlistUrl, className: \"button button--secondary full\" },\n React.createElement(\"span\", { ref: useLangChecker }, t('label.wishlist')))),\n renderSlot('emailbottomtext'))),\n loginStep == 'password' && (React.createElement(React.Fragment, null,\n React.createElement(LoginPasswordForm, { heading: renderSlot('passwordheading') || React.createElement(\"h2\", { className: \"login-modal-subtitle\" }, t('login.toyouraccount')), rememberme: props.rememberme, setLoginStep: setLoginStep, loginEmail: loginEmail, linkreload: props.linkreload, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent, singleColumn: props.componentContext == 'modal', emailOnly: props.componentContext != 'modal' }),\n loginMethods.length > 1 && (React.createElement(\"div\", { className: \"login-modal__othermethods\" },\n React.createElement(OtherLoginMethods, { loginMethods: loginMethods, setLoginStep: setLoginStep, loginStep: loginStep }))))),\n loginStep == 'social-login' && (React.createElement(\"div\", { className: \"login-modal__login-social\" },\n React.createElement(LoginSocial, { setLoginStep: setLoginStep, loginEmail: loginEmail, socialUsed: loginMethods[0].ID, secondary: true, singleColumn: true }),\n React.createElement(\"div\", { className: \"row login-modal__othermethods\" },\n React.createElement(\"div\", { className: \"col\" },\n React.createElement(OtherLoginMethods, { loginMethods: loginMethods, setLoginStep: setLoginStep, loginStep: loginStep }))))),\n loginStep == 'register' && (React.createElement(\"div\", { className: \"login-modal__registartion\" },\n props.componentContext == 'modal' ? (React.createElement(LoginOrRegisterSocial, { from: props.from, reloadUrl: props.linkreload || location.href, analyticsKey: props.analyticsKey, text: renderSlot('sociallogintext') })) : (React.createElement(\"h2\", { className: \"login-modal-subtitle\" }, t('login.registertomymoncler'))),\n React.createElement(RegisterForm, { componentContext: props.componentContext, loginEmail: loginEmail, setLoginStep: setLoginStep, setForceReload: props.setForceReload, hideHeader: isHidden('registerHeading') }))),\n loginStep == 'registration-successful' && (React.createElement(\"div\", { className: \"login-modal-registartion login-modal__registartion--success\" },\n React.createElement(RegistrationSuccessful, { reloadPage: props.reloadPage, updateLoggeedStatus: props.updateLoggedin, reloadComponent: props.reloadComponent, closeModal: props.closeModal, inDialogLogin: props.componentContext === 'modal' }))),\n loginStep == 'registeredInStore' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store\" },\n React.createElement(RegisteredInStore, { loginEmail: loginEmail, setLoginStep: setLoginStep, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent, linkreload: props.linkreload, reloadPageRegisteredInStore: props.reloadPageRegisteredInStore }))),\n loginStep == 'registeredInStoreSendEmail' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store-send-email\" },\n React.createElement(RegisteredInStoreSendEmail, { fromMinicart: true, loginEmail: loginEmail, setLoginStep: setLoginStep })))));\n};\nexport default LoginOrRegisterColumn;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Tooltip from '@ui/tooltip/Tooltip';\nimport Button from '@stone/ui/button/Button';\nimport Icon from '@stone/ui/icon/Icon';\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 const renderFromPage = () => (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-24 col-lg-12\" },\n React.createElement(\"p\", { className: \"store-name\" }, store.name)),\n React.createElement(\"div\", { className: \"col-24 col-lg-12\" },\n React.createElement(\"p\", { className: \"store-address\" },\n store.address1,\n \" \",\n store.address2,\n \" \",\n store.city,\n React.createElement(\"br\", null),\n store.phone))));\n const renderFromModal = () => (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-24 col-lg-12\" },\n React.createElement(\"p\", { className: \"store-name\" }, store.name),\n React.createElement(\"p\", { className: \"store-address\" },\n store.address1,\n \" \",\n store.address2,\n \" \",\n store.city,\n store.phone && (React.createElement(React.Fragment, null,\n ', ',\n React.createElement(\"span\", { className: \"store-phone\" }, store.phone)))))));\n return (React.createElement(\"div\", { className: classNames('product-reserve__detail__selected-store', { 'has-back': !!onArrowBack }, { 'with-border': withBorder }) },\n !!onArrowBack && (React.createElement(Button, { cls: ['button--link'], type: \"button\", className: \"button-back\", \"aria-label\": t('button.back'), onClick: () => {\n onArrowBack();\n } },\n React.createElement(React.Fragment, null,\n React.createElement(Icon, { ariaHidden: true, family: \"10\", name: \"left-chevron\" }),\n t('label.back')))),\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 props.type == 'page' && renderFromPage(),\n props.type == 'modal' && renderFromModal()));\n};\nProductBoutiqueSelected.defaultProps = {\n type: 'page',\n};\nexport default ProductBoutiqueSelected;\n"],"names":["ref","callback","useEffect","listener","event","current","contains","target","document","addEventListener","removeEventListener","props","showTooltip","setShowTooltip","useState","button","useRef","tootltipRef","boxRef","offset","setOffset","setTimeout","_a","containerRef","tempOffset","getBoundingClientRect","right","left","escape","e","key","setToolTipOpen","tooltipElements","querySelectorAll","lastTooltipElement","length","window","country","classList","add","renderCloseButton","t","className","onClick","onBlur","relatedTarget","matches","style","type","console","info","innerWidth","mqObj","md","checkout","log","icon","id","ariaLabel","text","dangerouslySetInnerHTML","__html","markup","chat","zendesk","sprinklr","none","BAA","REASONS","PERSONALIZATION","DISCOVERCOLLECTION","APPOINTMENT","INSTORE","VIRTUAL","CARAVAN","TREBASELEGHE","SELF","GUEST","freeExpressShippingCustomerGroup","contactFormId","formdef","days","values","form","def","name","options","value","label","concat","Object","keys","map","d","available","find","disabled","locale","replace","onChange","mutators","resetHours","date","overridePlaceholder","useTranslation","Button","cls","onBack","Icon","ariaHidden","family","domComponent","useLayoutEffect","header","querySelector","inDialogLogin","display","classNames","reloadPage","reloadComponent","location","reload","updateLoggeedStatus","loggedin","closeModal","BagInfoBox","RegistrationBenefits","loginStep","setLoginStep","defaultRegister","loginEmail","setLoginEmail","loginMethods","setLoginMethods","isMobile","useMediaQueries","isHidden","useCallback","elementName","hideElements","indexOf","slots","renderSlot","slotname","inAccountMenu","step","transition","duration","ease","initial","opacity","animate","LoginEmailForm","useHeading","hideHeading","analyticsKey","LoginOrRegisterSocial","from","inline","reloadUrl","linkreload","href","Suspense","fallback","inModal","title","wishlistUrl","LoginPasswordForm","heading","rememberme","singleColumn","componentContext","emailOnly","OtherLoginMethods","LoginSocial","socialUsed","ID","secondary","RegisterForm","setForceReload","hideHeader","updateLoggedin","RegisteredInStore","reloadPageRegisteredInStore","RegisteredInStoreSendEmail","fromMinicart","ProductBoutiqueSelected","store","onArrowBack","withBorder","appointmentType","liveBoutique","liveBoutiqueUrl","address1","address2","city","phone","defaultProps"],"sourceRoot":""}