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,EAAMkhB,UAAW3R,iBAAkBmP,EAAkB3D,aAAc8D,EAAc5D,aAAcuD,EAAc/D,gBAAiBA,EAAiBzL,eAvI5c,CAAC/C,EAAM8C,EAAS5B,KACnCf,EAAA,qBAAuBH,EAAM8C,GAAS5L,MAAMC,IACpCA,EAAK8O,QACLuI,GAAgB,GAAMtX,MAAMgf,IACxB,MAAMhT,EAAsBgT,aAAyD,EAASA,EAAgBlV,MAAMjJ,MAAMH,GAAOA,EAAGoN,OAAShF,EAAKmW,SAClJjV,GAAYA,EAASgC,EAAoBvB,MAAM,IAInDjD,QAAQC,IAAIxH,EAChB,GACF,MA6HEsb,GAAoB1e,EAAMqiB,gBAAkB1gB,OAAOif,SAAY,gBAAoB1P,EAAA,EAAa,CAAEC,iBAAkB,iBAAkBhR,UAAW,wCAAyC0F,OAAQuY,EAAuBtY,eAAgB,IAAMuY,GAAyB,GAAQ9D,aAAcvZ,EAAE,6BAA8B,CAAE,EAAGgf,EAAyBhgB,EAAMqiB,mBAC9V,gBAAoB,WAAgB,KAChC,gBAAoB,IAAK,CAAEliB,UAAW,SAAWa,EAAE,4BAA6B,CAAE,EAAGgf,EAAyBre,OAAOif,SAAU,EAAGjf,OAAOif,WACzI,gBAAoBnW,EAAA,EAAQ,CAAEhG,KAAM,SAAUE,IAAK,CAAC,mBAAoBnE,QAAS,IAAM6d,GAAyB,IAAUrd,EAAE,uBAA0B,C","sources":["webpack:///./assets/common/src/components/common/EmptyListMessage.tsx","webpack:///./assets/common/src/components/common/SingleBanner.tsx","webpack:///./assets/common/src/ui/modal/ModalDialogWithImage.tsx","webpack:///./assets/moncler/src/components/login/LoginModal.tsx","webpack:///./assets/moncler/src/components/login/LoginOrRegisterColumn.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistActionNotifyMe.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistMoveToCart.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistButton.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistShare.tsx","webpack:///./assets/moncler/src/components/wishlist/EditWishlistGiftCard.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistProduct.tsx","webpack:///./assets/moncler/src/components/wishlist/WishlistContent.tsx","webpack:///./assets/moncler/src/components/wishlist/Wishlist.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport React from 'react';\nconst EmptyListMessage = (props) => {\n if (props.buttonLink == '/') {\n throw new Error('buttonLink may never be /');\n }\n return (React.createElement(\"div\", { className: classnames('list__empty-message', props.className) },\n React.createElement(\"p\", { className: \"empty-message__text\", dangerouslySetInnerHTML: { __html: props.text } }),\n React.createElement(\"a\", { href: props.buttonLink, className: \"button button--secondary\", onClick: () => (!!props.pushAnalytics ? props.pushAnalytics() : null) },\n React.createElement(\"span\", null, props.buttonText))));\n};\nexport default EmptyListMessage;\n","import analytics from '@utils/analytics';\nimport React from 'react';\nconst SingleBanner = ({ title, backgroundImage, buttonLink, buttonText, aspectRatio, mbm }) => {\n return (React.createElement(\"a\", { href: buttonLink, className: `${mbm ? 'single-banner single-banner__mbm' : 'single-banner'} ${aspectRatio}`, style: { backgroundImage: `url(\"${backgroundImage}\")` }, onClick: () => (mbm ? analytics.wishlistInteractionMbmDiscover(`${title}-${buttonText}`) : null) },\n React.createElement(\"div\", { className: \"single-banner__text-holder\" },\n React.createElement(\"div\", { className: \"single-banner__title\" }, title),\n React.createElement(\"button\", { className: \"button button--tertiary-inverted button--arrow-right\", onClick: () => (mbm ? analytics.wishlistInteractionMbmDiscover(`${title}-${buttonText}`) : null) }, buttonText))));\n};\nexport default SingleBanner;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ModalDialog from './ModalDialog';\nconst ModalDialogWithImage = (props) => {\n const { t } = useTranslation();\n return (React.createElement(ModalDialog, Object.assign({ hideHeader: true, noPadding: true }, props),\n React.createElement(\"div\", { className: \"withimage\" },\n React.createElement(\"div\", { className: \"withimage__body\" },\n props.isBg ? (React.createElement(\"div\", { className: \"withimage__left\", style: { backgroundImage: `url(${props.image})` } })) : (React.createElement(\"div\", { className: \"withimage__left\" },\n React.createElement(\"img\", { src: props.image, alt: props.alt || \"\" }))),\n React.createElement(\"div\", { className: \"withimage__right\" }, props.children)))));\n};\nexport default ModalDialogWithImage;\n","import api from '@utils/api';\nimport Button from '@ui/button/Button';\nimport ModalDialogWithImage from '@ui/modal/ModalDialogWithImage';\nimport analytics from '@utils/analytics';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nimport LoginOrRegisterColumn from './LoginOrRegisterColumn';\nconst LoginModal = (props) => {\n const { t } = useTranslation();\n const defaultData = {\n image: window.loginImageFolder + (props.incontext ? 'bg-' + props.incontext + '.jpg' : props.fromMbm ? 'bg-mbmpurchase.jpg' : 'bg-login.jpg'),\n imageAlt: 'login image',\n title: props.incontext ? t('modal.loginregister.title' + props.incontext) : props.fromMbm ? t('modal.loginregister.titlembmpurchase') : t('modal.loginregister.title'),\n subtitle: props.incontext\n ? t('modal.loginregister.subtitle' + props.incontext)\n : props.fromMbm\n ? t('modal.loginregister.subtitlembmpurchase')\n : t('modal.loginregister.subtitle'),\n cta: t('login.loginregister'),\n paragraph: '',\n };\n const [open, setOpen] = useState(false);\n const [openRegister, setOpenRegister] = useState(false);\n const [forceReload, setForceReload] = useState(false);\n const [modalData, setModalData] = useState();\n // [ UPDATE EXTERNAL => SYNC INTERNAL ]\n useEffect(() => {\n if ((props === null || props === void 0 ? void 0 : props.modalStatus) != undefined && (props === null || props === void 0 ? void 0 : props.modalStatus) != open) {\n setOpen(props === null || props === void 0 ? void 0 : props.modalStatus);\n }\n }, [props === null || props === void 0 ? void 0 : props.modalStatus]);\n // [ UPDATE INTERNAL => SYNC EXTERNAL ]\n useEffect(() => {\n if ((props === null || props === void 0 ? void 0 : props.updateStatus) != undefined && (props === null || props === void 0 ? void 0 : props.modalStatus) != open) {\n props.updateStatus(open);\n }\n if (!open && forceReload) {\n if (props === null || props === void 0 ? void 0 : props.linkreload) {\n window.location.href = props.linkreload;\n }\n else {\n window.location.reload();\n }\n }\n }, [open]);\n useEffect(() => {\n if (open) {\n api\n .getPageJson('login-modal', true)\n .then((data) => {\n var _a, _b, _c, _d;\n const component = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.regions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.filter((el) => el.type_id === 'component_login_modal');\n const customModalData = (_d = component === null || component === void 0 ? void 0 : component.find((el) => {\n var _a;\n if (props.customModalId) {\n return ((_a = el.data) === null || _a === void 0 ? void 0 : _a.customModalId) === props.customModalId;\n }\n })) === null || _d === void 0 ? void 0 : _d.custom;\n if (customModalData) {\n setModalData(customModalData);\n }\n else {\n setModalData(defaultData);\n }\n })\n .catch((err) => {\n setModalData(defaultData);\n });\n }\n }, [open]);\n const values = useMemo(() => {\n return {\n image: modalData === null || modalData === void 0 ? void 0 : modalData.image,\n imageAlt: modalData === null || modalData === void 0 ? void 0 : modalData.imageAlt,\n title: modalData === null || modalData === void 0 ? void 0 : modalData.title,\n subtitle: modalData === null || modalData === void 0 ? void 0 : modalData.subtitle,\n cta: modalData === null || modalData === void 0 ? void 0 : modalData.cta,\n paragraph: modalData === null || modalData === void 0 ? void 0 : modalData.paragraph,\n };\n }, [open, modalData, props.customModalId]);\n if (window.loggedin) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(React.Fragment, null,\n (props === null || props === void 0 ? void 0 : props.inWishlist) && (React.createElement(\"div\", { className: \"row justify-center\" },\n React.createElement(\"div\", { className: \"col-sm-8 col-md-6 col-lg-4\" },\n React.createElement(\"div\", { className: \"wishlist-login-box\" },\n React.createElement(\"h2\", { className: \"primary-s bold mb-16\" }, t('button.signuptoenjoy')),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('wishlist.guestmessage') } }),\n React.createElement(\"div\", { className: \"mt-24\" },\n React.createElement(Button, { type: \"button\", ariaHaspopup: \"dialog\", onClick: () => {\n setOpen(true);\n analytics.wishlistInteractionLoginRegister();\n }, cls: ['button--primary'] }, t('login.loginregister'))))))),\n (props === null || props === void 0 ? void 0 : props.incuratorplp) && (React.createElement(\"div\", { className: \"info-box-curator\" },\n React.createElement(\"button\", { className: \"button-underline\", \"aria-haspopup\": \"dialog\", type: \"button\", onClick: () => {\n analytics.curatorsLoginOrRegister();\n setOpen(true);\n } }, t('checkout.logincta')))),\n (props === null || props === void 0 ? void 0 : props.inlookcard) && (React.createElement(\"button\", { className: \"button button--tertiary-inverted locked-button\", \"aria-haspopup\": \"dialog\", onClick: () => setOpen(true) },\n React.createElement(\"i\", { className: \"icon--locked\" }),\n React.createElement(\"p\", null, t('button.locked')))),\n (props === null || props === void 0 ? void 0 : props.mbmFinish) && (React.createElement(\"a\", { className: \"button button--primary\", href: props.linkreload, onClick: (e) => {\n e.preventDefault();\n setOpen(true);\n } },\n React.createElement(\"span\", null, t('button.proceedtopurchase')))),\n (props === null || props === void 0 ? void 0 : props.customLoginBtnLabel) && (React.createElement(\"button\", { className: classNames('button', props.customClass), \"aria-haspopup\": \"dialog\", type: \"button\", onClick: () => {\n var _a;\n (_a = props.customOnClickCB) === null || _a === void 0 ? void 0 : _a.call(props);\n if (props.analyticsKey) {\n analytics[props.analyticsKey]('login to unlock', 'fragment');\n }\n setOpen(true);\n } }, t(props.customLoginBtnLabel))),\n (props === null || props === void 0 ? void 0 : props.buttonText) && !props.linkText && (React.createElement(\"button\", { className: classNames('button', props.customClass), \"aria-haspopup\": \"dialog\", type: \"button\", onClick: () => {\n setOpen(true);\n analytics.bannerModuleLoginRegistrationPopup(props.titleAnalytics, props.buttonTextAnalytics);\n } }, props === null || props === void 0 ? void 0 : props.buttonText)),\n !(props === null || props === void 0 ? void 0 : props.buttonText) && (props === null || props === void 0 ? void 0 : props.linkText) && (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n React.createElement(\"a\", { role: \"button\", tabIndex: 0, className: classNames('button', props.customClass), \"aria-haspopup\": \"dialog\", onKeyDown: (e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n setOpen(true);\n analytics.bannerModuleLoginRegistrationPopup(props.titleAnalytics, props.buttonTextAnalytics);\n }\n }, onClick: (e) => {\n e.preventDefault();\n setOpen(true);\n analytics.bannerModuleLoginRegistrationPopup(props.titleAnalytics, props.buttonTextAnalytics);\n } }, props === null || props === void 0 ? void 0 : props.linkText)),\n React.createElement(ModalDialogWithImage, { image: values.image, alt: values.imageAlt, isOpen: open, className: \"login-modal\", onRequestClose: () => {\n setOpen(false);\n setOpenRegister(false);\n } },\n React.createElement(React.Fragment, null,\n !forceReload && (React.createElement(\"div\", { className: \"login-register-heading\" },\n React.createElement(\"h2\", { className: \"mb-8 primary-m\" }, values.title),\n React.createElement(\"p\", { className: \"mb-24 primary-xs\" }, values.subtitle),\n React.createElement(\"span\", { className: \"border-bottom d-flex mb-24\" }))),\n React.createElement(LoginOrRegisterColumn, { privacypolicy: props.privacypolicy, forgotpasswordform: props.forgotpasswordform, defaultRegister: openRegister, setForceReload: setForceReload, closeModal: () => setOpen(false), linkreload: props.reloadPage ? window.location.href : props.linkreload, reloadComponent: props.reloadComponent, from: props.inCart && 'shopping bag', updateLoggeedStatus: props.updateLoggeedStatus, reloadPageRegisteredInStore: props.reloadPageRegisteredInStore, onForgotPassword: props.onForgotPassword, analyticsKey: props.analyticsKey, reloadAfterSocialLogin: props.reloadAfterSocialLogin, pageContext: props.pageContext, editorialData: { customTitle: values === null || values === void 0 ? void 0 : values.paragraph, cta: values.cta } })))));\n};\nexport default LoginModal;\n","import React, { useState, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport LoginEmailForm from '@components/login/LoginEmailForm';\nimport LoginPasswordForm from '@components/login/LoginPasswordForm';\nimport LoginSocial from '@components/login/LoginSocial';\nimport RegisterForm from '@components/login/RegisterForm';\nimport LoginJoinMoncler from '@components/login/LoginJoinMoncler';\nimport LoginOrRegisterSocial from '@components/login/LoginOrRegisterSocial';\nimport LoginOrRegisterHeader from '@components/login/LoginOrRegisterHeader';\nimport RegistrationSuccessful from '@components/login/RegistrationSuccessful';\nimport classNames from 'classnames';\nimport OtherLoginMethods from '@components/login/OtherLoginMethods';\nimport RegisteredInStore from '@components/login/RegisteredInStore';\nimport RegisteredInStoreSendEmail from '@components/login/RegisteredInStoreSendEmail';\nimport WalletConnectBtn from '@moncler/components/nft/WalletConnectBtn';\nimport api from '@common/utils/api';\nconst HeroBanner = (props) => {\n var _a;\n return (React.createElement(\"div\", { className: classNames('myaccount-hero', props.hero.gradientClass), style: { backgroundImage: `url(\"${(_a = props.hero) === null || _a === void 0 ? void 0 : _a.background}\")` } },\n React.createElement(\"div\", { className: \"myaccount-hero-wrapper\" },\n React.createElement(\"div\", { className: \"logoPeaks2\" }))));\n};\nconst WishlistButtonDesktop = ({ wishlistUrl, wishlistCount }) => {\n const { t } = useTranslation();\n return (React.createElement(\"a\", { className: \"wishlist-desktop-button bold border-bottom border-top primary-s mt-32\", href: wishlistUrl },\n t('bag.wishlist'),\n wishlistCount > 0 && (React.createElement(React.Fragment, null,\n ' ',\n \"(\",\n React.createElement(\"span\", { className: \"wishlist-count\" }, wishlistCount),\n \")\"))));\n};\nconst LoginOrRegisterColumn = (props) => {\n var _a, _b;\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 [hero, setHero] = useState({\n title: 'My Moncler',\n background: '/on/demandware.static/-/Library-Sites-library-global/default/menu/myaccount-hero.jpg',\n gradientClass: 'gradient-rpy--bright gradient-rpy--whole',\n });\n useEffect(() => {\n api.getPageJson('my_account_hero', true).then((data) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;\n let mainComponent = (_b = (_a = data === null || data === void 0 ? void 0 : data.regions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.components;\n (_c = data === null || data === void 0 ? void 0 : data.regions) === null || _c === void 0 ? void 0 : _c.map((e) => {\n if (e.id == 'dropdownTopBanner') {\n mainComponent = e === null || e === void 0 ? void 0 : e.components;\n }\n });\n if (mainComponent && ((_d = mainComponent[0]) === null || _d === void 0 ? void 0 : _d.custom) && ((_e = mainComponent[0]) === null || _e === void 0 ? void 0 : _e.custom.media)) {\n setHero(Object.assign(Object.assign({}, hero), { background: (_f = mainComponent[0]) === null || _f === void 0 ? void 0 : _f.custom.media, gradientClass: 'gradient-rpy--' + ((_j = (_h = (_g = mainComponent[0]) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.gradientSize) === null || _j === void 0 ? void 0 : _j.toLowerCase()) + ' gradient-rpy--' + ((_m = (_l = (_k = mainComponent[0]) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l.imgGradient) === null || _m === void 0 ? void 0 : _m.toLowerCase()) }));\n }\n });\n }, []);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"wrapper-header-modal\" },\n loginStep != 'registration-successful' && props.inModal && ((props.inAccountMenu && loginStep != 'email') || !props.inAccountMenu) && (React.createElement(LoginOrRegisterHeader, { onBack: () => {\n if (loginStep == 'email') {\n (props === null || props === void 0 ? void 0 : props.onBack) && props.onBack();\n }\n else if (!window.isClothing && loginStep == 'register' && loginMethods.length > 0) {\n setLoginStep('social-login');\n }\n else {\n setLoginStep('email');\n }\n }, step: loginStep })),\n props.inModal && (React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.close'), className: classNames('modal__close', { invert: loginStep == 'email' && props.inAccountMenu }), onClick: props.closeModal }))),\n loginStep == 'email' && (React.createElement(React.Fragment, null,\n props.inAccountMenu && React.createElement(HeroBanner, { hero: hero }),\n React.createElement(LoginEmailForm, { setLoginStep: setLoginStep, setLoginEmail: setLoginEmail, setLoginMethods: setLoginMethods, analyticsKey: props.analyticsKey, customTitle: (_a = props.editorialData) === null || _a === void 0 ? void 0 : _a.customTitle, customCtaText: (_b = props.editorialData) === null || _b === void 0 ? void 0 : _b.cta }),\n React.createElement(LoginOrRegisterSocial, { from: props.from, reloadUrl: props.reloadAfterSocialLogin || props.linkreload || location.href, analyticsKey: props.analyticsKey }),\n React.createElement(LoginJoinMoncler, { inModal: props.inModal, showCTA: true }),\n props.inAccountMenu && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"wallet-connect-btn\" },\n React.createElement(WalletConnectBtn, { btnClass: \"wallet-connect__btn\", analyticsCategory: \"menu\", analyticsAction: \"wallet connect\" })))))),\n loginStep == 'password' && (React.createElement(LoginPasswordForm, { setLoginStep: setLoginStep, loginEmail: loginEmail, rememberme: props.rememberme, privacypolicy: props.privacypolicy, forgotpasswordform: props.forgotpasswordform, singleColumn: true, onForgotPassword: props.onForgotPassword, linkreload: props.linkreload, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent })),\n loginStep == 'social-login' && React.createElement(LoginSocial, { setLoginStep: setLoginStep, loginEmail: loginEmail, socialUsed: loginMethods[0].ID, singleColumn: true }),\n !window.isClothing && ((loginStep == 'password' && loginMethods.length > 1) || loginStep == 'social-login') && (React.createElement(\"div\", { className: \"mt-32 border-top pt-24\" },\n React.createElement(OtherLoginMethods, { loginMethods: loginMethods, setLoginStep: setLoginStep, loginStep: loginStep }))),\n loginStep == 'register' && (React.createElement(RegisterForm, { loginEmail: loginEmail, setLoginStep: setLoginStep, setForceReload: props.setForceReload, pageContext: props.pageContext, onBack: () => {\n if (!window.isClothing && loginStep == 'register' && loginMethods.length > 0) {\n setLoginStep('social-login');\n }\n else {\n setLoginStep('email');\n }\n }, reloadComponent: props.reloadRegisterComponent })),\n loginStep == 'registration-successful' && (React.createElement(RegistrationSuccessful, { reloadPage: props.reloadPage, updateLoggeedStatus: props.updateLoggedin, reloadComponent: props.reloadComponent, closeModal: props.closeModal })),\n loginStep == 'registeredInStore' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store\" },\n React.createElement(RegisteredInStore, { rememberme: true, loginEmail: loginEmail, setLoginStep: setLoginStep, updateLoggeedStatus: props.updateLoggeedStatus, reloadComponent: props.reloadComponent, linkreload: props.linkreload, reloadPageRegisteredInStore: props.reloadPageRegisteredInStore }))),\n loginStep == 'registeredInStoreSendEmail' && (React.createElement(\"div\", { className: \"login-registration__registration registered-in-store-send-email\" },\n React.createElement(RegisteredInStoreSendEmail, { fromMinicart: true, loginEmail: loginEmail, setLoginStep: setLoginStep })))));\n};\nexport default LoginOrRegisterColumn;\n","import MbmNotifyMeModal from '@moncler/components/mbm/MbmNotifyMeModal';\nimport ProductNotifyMeModal from '@moncler/components/product/ProductNotifyMeModal';\nimport Button from '@ui/button/Button';\nimport analytics from '@utils/analytics';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport whatInput from 'what-input';\nconst WishlistActionNotifyMe = (props) => {\n var _a, _b;\n const { t } = useTranslation();\n const [showOverlay, setShowOverlay] = React.useState(false);\n const [showSizeBtn, setShowSizeBtn] = useState(false);\n let btnClass = props.buttonStyleSecondary ? 'button--secondary' : 'button--primary';\n if (props.buttonStyleInverted) {\n btnClass += '-inverted';\n }\n const classes = [btnClass];\n const onOpenModal = () => {\n if (!props.size) {\n console.log('no size, triggering size selector:', props.triggerOpenSize);\n setShowSizeBtn(true);\n props.triggerOpenSize && props.triggerOpenSize();\n return;\n }\n setShowOverlay(true);\n props.onOpenModal && props.onOpenModal();\n // analytics.notifyMe(props.product.masterId, props.from);\n analytics.wishlistInteractionNotify(props.product.masterId);\n };\n const onCloseModal = (triggerCloseOnly) => {\n setShowOverlay(false);\n typeof triggerCloseOnly != 'boolean' && props.onCloseModal && props.onCloseModal();\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"wishlist__single-product__notify-btn\", onMouseEnter: () => {\n whatInput.ask() === 'mouse' && !props.size && setShowSizeBtn(true);\n }, onMouseLeave: () => {\n whatInput.ask() === 'mouse' && setShowSizeBtn(false);\n } },\n React.createElement(Button, { type: \"button\", cls: props.customClasses ? props.customClasses : classes, onClick: () => {\n onOpenModal();\n }, ariaHaspopup: \"dialog\" }, showSizeBtn ? t('label.selectasize') : t('label.notifyme')),\n ((_a = props.product) === null || _a === void 0 ? void 0 : _a.isMbm) ? (React.createElement(MbmNotifyMeModal, { isOpen: showOverlay, onRequestClose: onCloseModal, imgs: props.product.imgs, editLink: (_b = props.product.mbm) === null || _b === void 0 ? void 0 : _b.editurl })) : (React.createElement(ProductNotifyMeModal, { isOpen: showOverlay, title: t('label.notifyme'), product: props.product, color: props.color, size: props.size, onRequestClose: onCloseModal, from: props.from, fromReserve: props.fromReserve, inWishlist: true })))));\n};\nexport default WishlistActionNotifyMe;\n","import Button from '@ui/button/Button';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport whatInput from 'what-input';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport api from '@common/utils/api';\nimport GiftCardPurchaseModal from '../product/GiftCardPurchaseModal';\nimport classNames from 'classnames';\nimport { addURLParameter } from '@common/utils/urlutils';\nconst WishlistMoveToCart = (props) => {\n var _a, _b, _c, _d;\n let { t } = useTranslation();\n const [giftCardPurchase, setGiftCardPurchase] = useState(false);\n const [buttonLoader, setButtonLoader] = useState(props.loading || false);\n useEffect(() => {\n setButtonLoader(!!props.loading);\n }, [props.loading]);\n const addToBag = (fromKeyboard = false, card) => {\n props.onAddStart && props.onAddStart();\n if (!props.size) {\n console.log('no size, triggering size selector:', props.triggerOpenSize);\n setShowSizeBtn(true);\n props.triggerOpenSize && props.triggerOpenSize();\n return;\n }\n const productId = `${props.product.id}${props.size.id}`;\n // add button loader\n setButtonLoader(true);\n api.moveFromWishlistToCart(props.product.listitemid, props.type, card).then((data) => {\n if (data.error) {\n props.updateErrorMessage && props.updateErrorMessage(data.message);\n }\n else {\n if (data.quantityTotal) {\n const header = document.querySelector('header');\n const firstRefine = document.querySelector('.listing-container .refine');\n header.style.removeProperty('transform');\n if (firstRefine) {\n firstRefine.style.removeProperty('transform');\n }\n customEventBus.emit('bag:update', { fromMinicart: true });\n customEventBus.emit('minicart:update', { fromAddToBag: props.wishlist.items.length > 1, fromKeyboard, pid: productId });\n }\n if (props.pushAnalytics) {\n props.pushAnalytics();\n }\n // sposto qui la callback, in modo che viene eseguita come ultima operazione se la chiamata va a buon fine\n if (props.callback) {\n props.callback();\n }\n }\n // remove button loader\n setButtonLoader(false);\n });\n };\n const addToBagHandler = () => {\n var _a;\n if (!buttonLoader) {\n ((_a = props === null || props === void 0 ? void 0 : props.product) === null || _a === void 0 ? void 0 : _a.isGiftCard) && !props.product.giftCardAttributes ? setGiftCardPurchase(true) : addToBag(whatInput.ask() === 'keyboard', giftCardCart);\n }\n };\n const redirectToLogin = () => {\n window.location.href = addURLParameter(window.loginUrl, 'redirectToPdp', props.product.id);\n };\n let btnClass = props.secondary ? 'button--secondary' : 'button--primary';\n if (props.inverted) {\n btnClass += '-inverted';\n }\n const classes = [btnClass];\n const [showSizeBtn, setShowSizeBtn] = useState(false);\n const [giftCardProduct, setGiftCardProduct] = useState();\n //setup AddToCart giftCard\n const giftCardCart = props.product.isGiftCard && props.product.giftCardAttributes ? {\n gcAmount: props.product.price.sales.value,\n gcEmail: props.product.giftCardAttributes.recipientEmail,\n gcName: props.product.giftCardAttributes.recipientName,\n gcMessage: props.product.giftCardAttributes.message,\n gcDate: props.product.giftCardAttributes.sendDate\n } : {};\n return !window.loggedin && window.loginUrl && ((_a = props.product) === null || _a === void 0 ? void 0 : _a.unlock) ? (React.createElement(Button, { type: \"button\", cls: classes, className: props.className, onClick: () => redirectToLogin() }, t('button.signintopurchase'))) : (React.createElement(\"div\", { className: \"wishlist__single-product__add-btn\", onMouseEnter: () => {\n whatInput.ask() === 'mouse' && !props.size && setShowSizeBtn(true);\n }, onMouseLeave: () => {\n whatInput.ask() === 'mouse' && setShowSizeBtn(false);\n } },\n React.createElement(Button, { type: \"button\", \"aria-disabled\": buttonLoader, cls: classes, className: classNames(props.className, { 'button__loader': buttonLoader }), onClick: () => addToBagHandler() }, showSizeBtn\n ? t('label.selectasize')\n : ((_d = (_c = (_b = props.product.variationAttributes) === null || _b === void 0 ? void 0 : _b.find((va) => va.id == 'color')) === null || _c === void 0 ? void 0 : _c.values.find((va) => va.selected)) === null || _d === void 0 ? void 0 : _d.preorderable)\n ? t('button.preordernow')\n : props.product.isGiftCard && !props.product.giftCardAttributes\n ? t('button.gcConfigure')\n : t('button.addtobag')),\n React.createElement(GiftCardPurchaseModal, { isOpen: giftCardPurchase, onRequestClose: () => setGiftCardPurchase(false), type: 'edit', \n //@ts-ignore\n product: props.product, onSubmit: (card, formDef) => props.updateGiftCard(card, formDef), onMoveToBag: card => addToBag(whatInput.ask() === 'keyboard', card) })));\n};\nexport default WishlistMoveToCart;\n","import WishlistActionNotifyMe from '@moncler/components/wishlist/WishlistActionNotifyMe';\nimport WishlistMoveToCart from '@moncler/components/wishlist/WishlistMoveToCart';\nimport analytics from '@utils/analytics';\nimport React, { useMemo } from 'react';\nconst WishlistButton = (props) => {\n var _a;\n const wishlistProduct = useMemo(() => {\n return props.newlyUpdatedProduct || props.product;\n }, [props.newlyUpdatedProduct, props.product]);\n const isSelectable = useMemo(() => {\n var _a, _b, _c, _d;\n return (((_a = props.color) === null || _a === void 0 ? void 0 : _a.selectable) &&\n (props.currentSize ? !!props.currentSize.selectable : !!((_d = (_c = (_b = props.product) === null || _b === void 0 ? void 0 : _b.variationAttributes) === null || _c === void 0 ? void 0 : _c.find((va) => va.id == 'size')) === null || _d === void 0 ? void 0 : _d.values.find((value) => value.selectable))));\n }, [props.currentSize, props.color]);\n const isBoutiqueExclusive = () => {\n var _a;\n return (wishlistProduct === null || wishlistProduct === void 0 ? void 0 : wishlistProduct.isBoutiqueExclusive) || ((_a = props.color) === null || _a === void 0 ? void 0 : _a.isBoutiqueExclusive);\n };\n return (React.createElement(React.Fragment, null, props.inPublicWishlist || isBoutiqueExclusive() || ((wishlistProduct === null || wishlistProduct === void 0 ? void 0 : wishlistProduct.notShoppable) && !props.isComingSoon && ((_a = props.color) === null || _a === void 0 ? void 0 : _a.selectable)) ? (props.quickBuyButton) : isSelectable && !wishlistProduct.notShoppable ? (React.createElement(WishlistMoveToCart, { wishlist: props.wishlist, product: wishlistProduct, type: props.type, size: props.currentSize, secondary: true, inverted: !window.enableColorBackgroundStillLife, callback: () => {\n var _a;\n props.removeFunction(((_a = props.newlyUpdatedProduct) === null || _a === void 0 ? void 0 : _a.uuid) || props.product.listitemid, props.product.masterId, true);\n }, pushAnalytics: () => {\n if (wishlistProduct)\n analytics.saveForLaterAddToBag(wishlistProduct);\n }, updateErrorMessage: (msg) => props.updateErrorMessage(msg), triggerOpenSize: props.triggerOpenSize, updateGiftCard: props.updateGiftCard, loading: props.loading })) : (React.createElement(WishlistActionNotifyMe, { product: wishlistProduct, color: props.color, size: props.currentSize, buttonStyleSecondary: true, buttonStyleInverted: !window.enableColorBackgroundStillLife, from: \"plp\", triggerOpenSize: props.triggerOpenSize }))));\n};\nexport default WishlistButton;\n","import ErrorBox from '@components/common/ErrorBox';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport formutils from '@utils/formutils';\nimport classNames from 'classnames';\nimport createDecorator from 'final-form-focus';\nimport React, { useEffect, useState } from 'react';\nimport { Form } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nconst focusOnError = createDecorator(); // must be outside the component\nconst WishlistShare = (props) => {\n const { show, setShow, wishlist, formdef } = props;\n const { t } = useTranslation();\n const shareItem = !!props.product;\n const [showShareByEmail, setShowShareByEmail] = useState(false);\n const [submitSuccess, setSubmitSuccess] = useState(false);\n const [errors, setErrors] = useState([]);\n const [copyStatus, setCopyStatus] = useState(false);\n // reset copyStatus after 800ms\n useEffect(() => {\n if (copyStatus) {\n setTimeout(() => {\n setCopyStatus(false);\n }, 800);\n }\n }, [copyStatus]);\n const validate = async (values) => {\n return await formutils.validateForm(values, formdef, 'wishlist-share');\n };\n const onSubmit = async (values) => {\n var _a, _b;\n setErrors([]);\n let errors = await validate(values);\n if (errors && Object.keys(errors).length > 0) {\n return errors;\n }\n if (wishlist && props.product && props.product.mbm) {\n wishlist.items.forEach((item) => {\n var _a;\n if (item.id === props.product.id && item.mbm.recipeId === ((_a = props.product.mbm) === null || _a === void 0 ? void 0 : _a.recipeId)) {\n values.listId = wishlist.UUID;\n }\n });\n }\n if (shareItem) {\n return api\n .ShareSingleProductWishlist(props.product.id, values.email, values.message, values.listId || '', ((_b = (_a = props.product) === null || _a === void 0 ? void 0 : _a.mbm) === null || _b === void 0 ? void 0 : _b.recipeId) || '')\n .then((data) => {\n if (data.success) {\n setSubmitSuccess(true);\n setShowShareByEmail(false);\n }\n else {\n setErrors([data.errorMsg]);\n }\n })\n .catch((e) => setErrors([e]));\n }\n else {\n values.listId = getListId();\n return api\n .shareWishlist(values, formdef)\n .then((data) => {\n if (data.success) {\n setSubmitSuccess(true);\n setShowShareByEmail(false);\n }\n else {\n setErrors(data.error || [t('errorpage.text')]);\n }\n })\n .catch((e) => setErrors([e]));\n }\n };\n const copyWishlist = async () => {\n if (shareItem) {\n navigator.clipboard.writeText(location.origin + props.product.productUrl);\n setCopyStatus(true);\n }\n else {\n navigator.clipboard.writeText(wishlist === null || wishlist === void 0 ? void 0 : wishlist.shareWishlistsUrl);\n setCopyStatus(true);\n // return api\n // .GeneratePublicWishlist(wishlists.map((list) => list.UUID)[0])\n // .then((data) => {\n // if (data) {\n // // navigator.clipboard.writeText(data.urlRedirect);\n // copyToClipboardWithIosSupport(data.urlRedirect);\n // setCopyStatus(true);\n // } else {\n // setErrors([data.errorMsg]); // TODO check errors\n // }\n // })\n // .catch((e) => setErrors([e]));\n }\n };\n const getListId = () => {\n return wishlist.UUID;\n };\n const resetModal = () => {\n setShow(false);\n setSubmitSuccess(false);\n setShowShareByEmail(false);\n setErrors([]);\n };\n return (React.createElement(ModalDialog, { overlayClassName: 'mobile-visible', hideHeader: true, isOpen: show, onRequestClose: () => resetModal(), className: \"wishlist-share modal--fixed-small\" },\n React.createElement(\"div\", { className: \"wishlist-share__modal-header\" },\n showShareByEmail && (React.createElement(\"button\", { type: \"button\", className: \"button wishlist-share__btn--email-step-back\", onClick: () => {\n setShowShareByEmail(false);\n } },\n React.createElement(\"i\", { className: \"icon--chevron-left-big\" }))),\n React.createElement(\"h2\", { className: \"wishlist-share__modal-title primary-m\" }, t(shareItem ? 'wishlist.shareitem' : 'wishlist.shareyour'))),\n submitSuccess ? (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"newsletter-modal__description\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: t('wishlist.sharesent') } }),\n React.createElement(\"button\", { onClick: () => setShow(false), className: \"button button--primary\" }, t('newslettermodal.backtowishlist'))))) : (React.createElement(React.Fragment, null,\n !showShareByEmail && (\n /* TODO add paragraph translation and copy wishlist button */\n React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"wishlist-share__description\" },\n React.createElement(\"p\", { className: \"primary-s\" }, t(shareItem ? 'wishlist.shareitemdescription' : 'wishlist.sharedescription'))),\n React.createElement(\"button\", { type: \"button\", className: \"button button--secondary wishlist-share__mail-share-btn\", onClick: () => {\n setShowShareByEmail(true);\n analytics.wishlistInteractionShare('email');\n }, \"aria-expanded\": showShareByEmail ? 'true' : 'false', \"aria-haspopup\": \"dialog\" },\n React.createElement(\"i\", { className: \"icon--mail\" }),\n t('wishlist.sharebyemail')),\n React.createElement(\"button\", { type: \"button\", className: classNames('button', copyStatus ? 'button--primary' : 'button--secondary', 'wishlist-share__copy-btn'), onClick: () => {\n copyWishlist();\n analytics.wishlistInteractionShare('link');\n } }, copyStatus ? t('label.copied') : t('label.copy')))),\n showShareByEmail && (React.createElement(Form, { decorators: [focusOnError], onSubmit: onSubmit, validate: validate, mutators: { global: formutils.globalMutator }, render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"ReserveForm\" },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"email\", autoFocus: true }))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"message\", type: \"textarea\" }))),\n React.createElement(DwFormField, { def: formdef, name: \"listId\", type: \"hidden\", hiddenLabel: true })),\n React.createElement(\"div\", { className: \"product-reserve__detail__form__submit\" },\n React.createElement(\"button\", { type: \"submit\", disabled: submitting, className: \"button button--primary\" }, t('button.send'))),\n React.createElement(ErrorBox, { errors: errors })))) }))))));\n};\nexport default WishlistShare;\n","import customEventBus from \"@common/scripts/libs/eventBus\";\nimport api from \"@common/utils/api\";\nimport { useTranslation } from 'react-i18next';\nimport React, { useState } from \"react\";\nimport GiftCardPurchaseModal from \"../product/GiftCardPurchaseModal\";\nconst EditWishlistGiftCard = (props) => {\n const { t } = useTranslation();\n const [giftCardPurchase, setGiftCardPurchase] = useState(false);\n const addToBag = (fromKeyboard = false, card) => {\n // props.onAddStart && props.onAddStart();\n // if (!props.size) {\n // console.log('no size, triggering size selector:', props.triggerOpenSize);\n // setShowSizeBtn(true);\n // props.triggerOpenSize && props.triggerOpenSize();\n // return;\n // }\n const productId = `${props.product.id}`;\n api.moveFromWishlistToCart(props.product.listitemid, props.type, card).then((data) => {\n if (data.error) {\n props.updateErrorMessage && props.updateErrorMessage(data.message);\n }\n else {\n if (data.quantityTotal) {\n const header = document.querySelector('header');\n const firstRefine = document.querySelector('.listing-container .refine');\n header.style.removeProperty('transform');\n if (firstRefine) {\n firstRefine.style.removeProperty('transform');\n }\n customEventBus.emit('bag:update', { fromMinicart: true });\n customEventBus.emit('minicart:update', { fromAddToBag: props.wishlist.items.length > 1, fromKeyboard, pid: productId });\n }\n if (props.pushAnalytics) {\n props.pushAnalytics();\n }\n // sposto qui la callback, in modo che viene eseguita come ultima operazione se la chiamata va a buon fine\n if (props.callback) {\n props.callback();\n }\n }\n });\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: 'selector-size', onClick: () => setGiftCardPurchase(true) },\n React.createElement(\"button\", { className: 'selector__button' },\n React.createElement(\"span\", null, t('gc.edit')))),\n React.createElement(GiftCardPurchaseModal, { isOpen: giftCardPurchase, onRequestClose: () => setGiftCardPurchase(false), type: 'edit', onMoveToBag: card => addToBag(false, card), \n //@ts-ignore\n product: props.product, onSubmit: (card, formDef) => props.updateGiftCard(card, formDef) })));\n};\nexport default EditWishlistGiftCard;\n","import ProductLink from '@components/common/ProductLink';\nimport ErrorModal from '@components/error/ErrorModal';\nimport ProductActionAddToBag from '@moncler/components/product/ProductActionAddToBag';\nimport ProductAddToBag from '@moncler/components/product/ProductActionAddToBag';\nimport ProductActionNotifyMe from '@moncler/components/product/ProductActionNotifyMe';\nimport ProductImage from '@moncler/components/product/ProductImage';\nimport ProductPrice from '@moncler/components/product/ProductPrice';\nimport ProductSelectionSizes from '@moncler/components/product/ProductSelectionSizes';\nimport ProductSelectionSizesExpanded from '@moncler/components/product/ProductSelectionSizesExpanded';\nimport ProductWishlistToggle from '@moncler/components/product/ProductWishlistToggle';\nimport ProductBoutiqueModal from '@moncler/components/reserve/ProductBoutiqueModal';\nimport ProductTileCarousel from '@moncler/components/product/ProductTileCarousel';\nimport WishlistButton from '@moncler/components/wishlist/WishlistButton';\nimport Button from '@ui/button/Button';\nimport analytics from '@utils/analytics';\nimport { LG, MD, SM } from '@utils/imageutils';\nimport classNames from 'classnames';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport WishlistShare from './WishlistShare';\nimport useBreakpoint from '@utils/useBreakpoint';\nimport whatInput from 'what-input';\nimport EditWishlistGiftCard from './EditWishlistGiftCard';\nconst WishlistProduct = (props) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;\n let { t } = useTranslation();\n const containerRef = useRef(null);\n const wishlistInfo = useRef(null);\n const [errorMessage, setErrorMessage] = useState();\n const [openSelectionSize, setOpenSelectionSize] = useState(false);\n const currentBreakpoint = useBreakpoint();\n const isComingSoon = ((_a = props.product) === null || _a === void 0 ? void 0 : _a.isComingSoon) === 2;\n const [currentPrice, setCurrentPrice] = useState(props.product.price);\n const [showOverlay, setShowOverlay] = useState(false);\n const [loadingButton, setLoadingButton] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n const [newlyUpdatedProduct, setNewlyUpdatedProduct] = useState();\n const size = (_d = (_c = (_b = (newlyUpdatedProduct || props.product)) === null || _b === void 0 ? void 0 : _b.variationAttributes) === null || _c === void 0 ? void 0 : _c.find((va) => va.id == 'size')) === null || _d === void 0 ? void 0 : _d.values.find((value) => value.selected);\n const color = (_g = (_f = (_e = (newlyUpdatedProduct || props.product)) === null || _e === void 0 ? void 0 : _e.variationAttributes) === null || _f === void 0 ? void 0 : _f.find((va) => va.id == 'color')) === null || _g === void 0 ? void 0 : _g.values.find((value) => value.selected);\n const [currentSize, setCurrentSize] = useState(size);\n const [wishlistInfoHeight, setWishlistInfoHeight] = useState(0);\n const [showSendWishlist, setShowSendWishlist] = useState(false);\n const [productImgs, setProductImgs] = useState();\n const [selectorSizeActive, setSelectorSizeActive] = useState(false);\n // const [giftCardPurchase, setGiftCardPurchase] = useState(false)\n useEffect(() => {\n let imgs = [props.product.imgs.urls.find((url) => url.includes('_F'))];\n imgs = [...imgs, props.product.imgs.urls.find((url) => url.includes('_E'))];\n imgs = [...imgs, props.product.imgs.urls.find((url) => url.includes('_D'))];\n if (imgs.length > 0 && imgs[0]) {\n imgs = [...imgs, ...props.product.imgs.urls.filter((url) => !url.includes('_F') && !url.includes('_E') && !url.includes('_D'))];\n }\n else {\n imgs = props.product.imgs.urls;\n }\n setProductImgs({\n alt: props.product.imgs.alt,\n urls: imgs,\n });\n }, []);\n useEffect(() => {\n if (currentBreakpoint >= window.mqObj.sm && whatInput.ask() === 'mouse') {\n setOpenSelectionSize(false);\n }\n }, [currentSize]);\n // size selector in absolute\n useEffect(() => {\n if (wishlistInfo.current) {\n setWishlistInfoHeight(wishlistInfo.current.offsetHeight);\n }\n }, [wishlistInfo.current, currentBreakpoint]);\n const sizeVariations = (_k = (_j = (_h = props.product) === null || _h === void 0 ? void 0 : _h.variationAttributes) === null || _j === void 0 ? void 0 : _j.find((variation) => {\n return variation.attributeId === 'size';\n })) === null || _k === void 0 ? void 0 : _k.values;\n const colorVariations = (_o = (_m = (_l = props.product) === null || _l === void 0 ? void 0 : _l.variationAttributes) === null || _m === void 0 ? void 0 : _m.find((variation) => {\n return variation.attributeId === 'color';\n })) === null || _o === void 0 ? void 0 : _o.values;\n const itemLabel = useMemo(() => {\n return props.product.isMbm ? t('wishlist.monclerbyme') : props.product.source && props.product.source !== 'web' && t('wishlist.label.custom_source');\n // return Math.random() >= 0.5 ? t('wishlist.monclerbyme') : null; // Test purposes\n }, []);\n const checkOpenSelectionSize = () => {\n if (currentBreakpoint < window.mqObj.sm) {\n setOpenSelectionSize(false);\n }\n };\n const changeVariation = (sizeVariation, withUpdate) => {\n var _a;\n if (!props.inPublicWishlist && withUpdate) {\n setLoadingButton(true);\n const product = newlyUpdatedProduct || props.product;\n props.updateFunction(product.pid, product.id + sizeVariation.id, product.mbm ? (_a = product.mbm) === null || _a === void 0 ? void 0 : _a.recipeId : '', (updatedWishlistItem) => {\n setNewlyUpdatedProduct(updatedWishlistItem);\n setCurrentPrice(updatedWishlistItem === null || updatedWishlistItem === void 0 ? void 0 : updatedWishlistItem.price);\n setLoadingButton(false);\n });\n }\n setCurrentSize(sizeVariation);\n };\n const stockStatus = useMemo(() => {\n var _a;\n const availability = newlyUpdatedProduct ? newlyUpdatedProduct.availability : (_a = props.product) === null || _a === void 0 ? void 0 : _a.availability;\n return availability.isOutOfStock && !props.product.isBoutiqueExclusive && 'PRODUCT__OOS';\n }, [props.product, newlyUpdatedProduct]);\n const quickBuyButton = useMemo(() => {\n var _a, _b, _c;\n // Gift card\n if ((_a = props === null || props === void 0 ? void 0 : props.product) === null || _a === void 0 ? void 0 : _a.isGiftCard) {\n return (React.createElement(ProductAddToBag, { isLookCarousel: false, product: props.product, size: currentSize, \n // isSearchTile={props.type == 'SEARCH'}\n // secondary={props.type == 'LOOKPRODUCT'}\n // noModifiers={props.type != 'LOOKPRODUCT'}\n callback: checkOpenSelectionSize, pushAnalytics: () => {\n // analytics.quickShopAddToBag(product.masterId, props.type);\n // analytics.quickShopAddToBagDetails(product, currentSize?.value, props.actionList ? props.actionList : props.type == 'SEARCH' ? 'search_results' : '');\n analytics.wishlistQuickShop(props.product.id);\n }, updateErrorMessage: (msg) => setErrorMessage(msg) }));\n }\n // se la taglia non è selezionata\n if (!currentSize) {\n const buttontext = () => {\n var _a, _b, _c, _d;\n if (openSelectionSize) {\n return t('product.selectsize');\n }\n else if ((_b = (_a = props.product) === null || _a === void 0 ? void 0 : _a.availability) === null || _b === void 0 ? void 0 : _b.preorder) {\n return t('button.preordernow');\n }\n else if (!isComingSoon && (((_c = props.product) === null || _c === void 0 ? void 0 : _c.isBoutiqueExclusive) || (color === null || color === void 0 ? void 0 : color.isBoutiqueExclusive))) {\n return t('label.findinboutique');\n }\n else if ((color === null || color === void 0 ? void 0 : color.selectable) && !isComingSoon && !((_d = props.product) === null || _d === void 0 ? void 0 : _d.isBoutiqueExclusive)) {\n return t('button.addtobag');\n }\n else {\n return t('label.notifyme');\n }\n };\n return (React.createElement(Button, { type: \"button\", cls: [`button--secondary${!window.enableColorBackgroundStillLife ? '-inverted' : ''}`], onClick: () => {\n //indico all'utente di selezionare la taglia\n if (openSelectionSize) {\n setOpenSelectionSize(false);\n setSelectorSizeActive(false);\n }\n else {\n setOpenSelectionSize(true);\n setSelectorSizeActive(true);\n }\n } }, buttontext()));\n }\n // se isBoutiqueExclusive o notShoppable apro il find in boutique\n if (((_b = props.product) === null || _b === void 0 ? void 0 : _b.isBoutiqueExclusive) || (color === null || color === void 0 ? void 0 : color.isBoutiqueExclusive) || ((_c = props.product) === null || _c === void 0 ? void 0 : _c.notShoppable)) {\n return (React.createElement(Button, { type: \"button\", cls: [`button--secondary${!window.enableColorBackgroundStillLife ? '-inverted' : ''}`], onClick: () => {\n setShowOverlay(true);\n analytics.findInBoutique(props.product.masterId);\n } }, t('label.tilefindinboutique')));\n }\n // se la taglia è disponibile e non è coming soon\n if ((currentSize === null || currentSize === void 0 ? void 0 : currentSize.selectable) && !isComingSoon) {\n return (React.createElement(ProductActionAddToBag, { product: props.product, size: currentSize, secondary: true, callback: checkOpenSelectionSize, pushAnalytics: () => {\n // analytics.quickShopAddToBag(props.product.masterId, props.type);\n // analytics.quickShopAddToBagDetails(props.product, currentSize.value, props.actionList);\n analytics.wishlistQuickShop(props.product.id);\n }, updateErrorMessage: (msg) => setErrorMessage(msg) }));\n }\n return (React.createElement(ProductActionNotifyMe, { product: props.product, color: color, size: currentSize, from: 'plp', secondary: true, onCloseModal: checkOpenSelectionSize }));\n }, [props.product, currentSize, openSelectionSize, color]);\n //animate transform percentage of image when quickbuy is active\n const containerHeight = (_p = containerRef.current) === null || _p === void 0 ? void 0 : _p.offsetHeight;\n const quickBuyScalePercentage = (containerHeight - 80) / containerHeight;\n const imageTransformPercentage = selectorSizeActive ? quickBuyScalePercentage : '1';\n return (React.createElement(React.Fragment, null,\n React.createElement(\"li\", Object.assign({ className: classNames('wishlist__single-product', 'anim', { 'white-bg': window.enableColorBackgroundStillLife }, { delete: props.toDelete }, `type-${props.type}`, { 'with-label': itemLabel }, { 'absolute-info': wishlistInfoHeight != 0 }, { focused: isFocused }) }, (wishlistInfoHeight && { style: { '--wishlist-height': wishlistInfoHeight + 'px' } }), { onMouseLeave: () => {\n openSelectionSize && setOpenSelectionSize(false);\n selectorSizeActive && setSelectorSizeActive(false);\n }, onFocus: (e) => {\n if (!isFocused) {\n setIsFocused(true);\n }\n }, onBlur: (e) => {\n const wishlistParent = e.relatedTarget && e.relatedTarget.closest('.wishlist__single-product');\n setIsFocused(wishlistParent === e.target.closest('.wishlist__single-product'));\n } }),\n props.inPublicWishlist && (React.createElement(ProductWishlistToggle, { color: ((_q = props.product) === null || _q === void 0 ? void 0 : _q.imageBackground) === 'white' ? 'black' : 'white', productSize: currentSize, productColor: color, inPublicWishlist: true })),\n React.createElement(\"div\", { className: \"product-tile__image-wrapper product-tile__with-carousel\", ref: containerRef },\n React.createElement(ProductLink, { product: props.product, ariaLabel: props.product.productName },\n React.createElement(React.Fragment, null, ((_r = props.product) === null || _r === void 0 ? void 0 : _r.isMbm) ? (React.createElement(ProductImage, { style: { transform: `scale(${imageTransformPercentage})` }, sizes: [LG, MD, SM], type: \"F\", tiletype: \"WishlistProduct\", img: props.product.imgs, className: \"wishlist__single-product__image\" })) : (React.createElement(\"div\", { className: \"swiper-container\" },\n React.createElement(ProductTileCarousel, { img: productImgs, productId: props.product.id, genderImageSorted: 'M', productUuid: props.product.UUID, isOver: false, initialSlide: 0, exlude: \"X\" })))))),\n React.createElement(\"div\", { ref: wishlistInfo, className: classNames('wishlist__single-product__product-info', { 'always-white': window.enableColorBackgroundStillLife }) },\n React.createElement(\"div\", null,\n itemLabel && (React.createElement(\"div\", { className: \"product-labels\" },\n React.createElement(\"span\", { className: \"product-label--inverted\" }, itemLabel))),\n React.createElement(\"div\", { className: classNames('wishlist__single-product__product-info__container', { 'has-label': itemLabel }) },\n React.createElement(\"div\", { className: \"wishlist__single-product__product-info__to-show\" },\n React.createElement(\"h3\", { className: \"wishlist__single-product__product-info__name\" }, props.product.productName),\n React.createElement(\"p\", null, ((_s = props === null || props === void 0 ? void 0 : props.product) === null || _s === void 0 ? void 0 : _s.isGiftCard) && !(props === null || props === void 0 ? void 0 : props.product.giftCardAttributes) ? (React.createElement(ProductPrice, { basePrice: ((_v = (_u = (_t = (newlyUpdatedProduct || (props === null || props === void 0 ? void 0 : props.product))) === null || _t === void 0 ? void 0 : _t.gcLimits) === null || _u === void 0 ? void 0 : _u.minValue) === null || _v === void 0 ? void 0 : _v.formattedValue) || '' })) : (React.createElement(ProductPrice, { price: currentPrice })))),\n React.createElement(\"div\", { className: \"wishlist__single-product__product-info__to-add\" }, !props.product.isParfum &&\n !((_w = props === null || props === void 0 ? void 0 : props.product) === null || _w === void 0 ? void 0 : _w.isGiftCard) &&\n (props.product.isMbm ? (React.createElement(\"a\", { className: \"cta cta--edit wishlist__single-product__product-info__color\", href: (_y = (_x = props.product) === null || _x === void 0 ? void 0 : _x.mbm) === null || _y === void 0 ? void 0 : _y.editurl, onClick: () => analytics.wishlistInteractionMbm('edit') }, t('button.edit'))) : (React.createElement(\"p\", { className: \"wishlist__single-product__product-info__color\" },\n t('label.color'),\n \": \", color === null || color === void 0 ? void 0 :\n color.displayValue)))))),\n React.createElement(\"div\", null,\n props.product.isParfum ? (React.createElement(\"div\", { className: \"selector-size\" },\n React.createElement(\"div\", { className: \"selector__button show-format\" },\n React.createElement(\"span\", { className: \"selector__button__label\" }, t('label.format')),\n React.createElement(\"span\", { className: \"selector__button__value\" }, currentSize === null || currentSize === void 0 ? void 0 : currentSize.displayValue)))) : (props === null || props === void 0 ? void 0 : props.product.isGiftCard) ? (((_z = props === null || props === void 0 ? void 0 : props.product) === null || _z === void 0 ? void 0 : _z.giftCardAttributes) ? (React.createElement(EditWishlistGiftCard, { product: newlyUpdatedProduct || (props === null || props === void 0 ? void 0 : props.product), callback: () => {\n props.removeFunction((newlyUpdatedProduct === null || newlyUpdatedProduct === void 0 ? void 0 : newlyUpdatedProduct.uuid) || props.product.listitemid, props.product.masterId, true);\n }, pushAnalytics: () => {\n if (props.product)\n analytics.saveForLaterAddToBag(props.product);\n }, updateErrorMessage: (msg) => setErrorMessage(msg), triggerOpenSize: () => {\n setOpenSelectionSize(true);\n setSelectorSizeActive(true);\n }, wishlist: props.wishlist, updateGiftCard: (card, formDef) => {\n props.updateGiftCard(card, formDef, setCurrentPrice);\n } })) : (React.createElement(\"div\", { className: \"selector-size\" },\n React.createElement(\"button\", { className: \"selector__button no-size\" })))) : (React.createElement(React.Fragment, null,\n React.createElement(ProductSelectionSizes, { className: \"selector-size-expanded\", isNotAvailableSelectable: true, productId: props.product.listitemid, variationValues: sizeVariations, currentId: currentSize === null || currentSize === void 0 ? void 0 : currentSize.id, onChangeVariation: changeVariation, enableOutofstockLabel: true, \n //isListWrapper\n open: openSelectionSize, isBoutiqueExclusive: props.product.isBoutiqueExclusive, disableHover: true, hideUnselectedLabel: true, onClickExtraAction: (cardIn) => {\n setSelectorSizeActive(cardIn);\n setOpenSelectionSize(cardIn);\n }, stockStatus: stockStatus, mobilePopup: true, enableOnlyOneLeftLabel: false }),\n currentBreakpoint < window.mqObj.sm && (React.createElement(ModalDialog, { className: \"modal--fixed-small wishilist-size-popup\", isOpen: openSelectionSize, overlayClassName: \"mobile-visible\", contentLabel: props.product.name, subtitle: React.createElement(ProductPrice, { price: currentPrice }), hasDivisor: true, onRequestClose: () => {\n setOpenSelectionSize(false);\n !props.inPublicWishlist && props.updateWishLists();\n } },\n React.createElement(React.Fragment, null,\n React.createElement(ProductSelectionSizesExpanded, { variationValues: sizeVariations, current: props.product, currentId: currentSize === null || currentSize === void 0 ? void 0 : currentSize.id, onChangeVariation: (selectedItem) => changeVariation(selectedItem, true), className: \"intile bottom-divider\", hideSizeConversion: true, showOutofstockLabel: true }),\n React.createElement(\"div\", { className: \"wishilist-size-popup__button\" },\n React.createElement(WishlistButton, Object.assign({}, props, { color: color, currentSize: currentSize, quickBuyButton: quickBuyButton, triggerOpenSize: () => {\n setOpenSelectionSize(true);\n setSelectorSizeActive(true);\n }, loading: loadingButton, updateErrorMessage: (msg) => setErrorMessage(msg), newlyUpdatedProduct: newlyUpdatedProduct })))))))),\n !window.unshoppable && (React.createElement(WishlistButton, Object.assign({}, props, { color: color, currentSize: currentSize, quickBuyButton: quickBuyButton, triggerOpenSize: () => {\n setOpenSelectionSize(true);\n setSelectorSizeActive(true);\n }, loading: loadingButton, newlyUpdatedProduct: newlyUpdatedProduct, updateErrorMessage: (msg) => setErrorMessage(msg), updateGiftCard: props.updateGiftCard }))))),\n React.createElement(\"div\", { className: \"wishlist__share-close\" },\n props.shareenabled && !window.isClothing && (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", cls: ['button--tertiary-inverted'], className: \"wishlist__single-product__share-btn\", ariaLabel: t('wishlist.shareitem'), onClick: () => {\n setShowSendWishlist(true);\n }, ariaExpanded: showSendWishlist, ariaHaspopup: \"dialog\" },\n React.createElement(\"span\", { className: \"icon-btn__icon\" })),\n React.createElement(WishlistShare, { show: showSendWishlist, setShow: setShowSendWishlist, product: props.product, formdef: props.shareformdef }))),\n !props.inPublicWishlist && (React.createElement(Button, { type: \"button\", onClick: () => props.removeFunction(props.product.listitemid, props.product.masterId), className: \"wishlist__single-product__remove-btn\", ariaLabel: t('button.removefromwishlist'), cls: ['button--tertiary-inverted'] },\n React.createElement(\"span\", { className: \"icon-btn__icon\" }))))),\n React.createElement(ErrorModal, { message: errorMessage, onClose: () => setErrorMessage(undefined) }),\n (props.inPublicWishlist || props.product.isBoutiqueExclusive || (color === null || color === void 0 ? void 0 : color.isBoutiqueExclusive) || props.product.notShoppable) && (React.createElement(ProductBoutiqueModal, { isOpen: showOverlay, title: t('label.findinboutique'), mode: \"find\", product: props.product, size: currentSize, color: color, colourVariations: colorVariations, sizeVariations: sizeVariations, onRequestClose: () => setShowOverlay(false) }))));\n};\nexport default WishlistProduct;\n","import EmptyListMessage from '@components/common/EmptyListMessage';\nimport SingleBanner from '@components/common/SingleBanner';\nimport WishlistProduct from '@moncler/components/wishlist/WishlistProduct';\nimport analytics from '@utils/analytics';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport useBreakpoint from '@utils/useBreakpoint';\nconst WishlistContent = (props) => {\n const { banners } = props;\n const [wishlist, setWishlist] = useState(props.wishlist.items);\n const [deleted, setDeleted] = useState(null);\n const [changed, setChanged] = useState('');\n const { t } = useTranslation();\n const itemsContainer = useRef(null);\n const currentBreakpoint = useBreakpoint();\n const removeDuplicateTimer = useRef();\n useEffect(() => {\n setWishlist(props.wishlist.items);\n }, [props.wishlist.items]);\n useEffect(() => {\n if (itemsContainer.current) {\n let row = 0;\n let lastOffset = 0;\n Array.from(itemsContainer.current.children).forEach((el, i) => {\n const element = el;\n if (lastOffset && element.offsetTop !== lastOffset) {\n row++;\n }\n element.dataset.row = row.toString();\n lastOffset = element.offsetTop;\n });\n for (let i = 0; i <= row; i++) {\n const rowSiblings = Array.from(document.querySelectorAll(`[data-row=\"${i}\"]`));\n const infoMaxHeight = rowSiblings.reduce((prev, next) => {\n const title = next.querySelector('.wishlist__single-product__product-info__container');\n title.style.removeProperty('--siblings-height');\n return Math.max(title.offsetHeight, prev);\n }, 0);\n rowSiblings.forEach((el) => {\n el.querySelector('.wishlist__single-product__product-info__container').style.setProperty('--siblings-height', infoMaxHeight.toString() + 'px');\n });\n }\n }\n }, [wishlist, currentBreakpoint]);\n const messageForEmptyListing = (React.createElement(React.Fragment, null,\n React.createElement(EmptyListMessage, { buttonLink: window.homeurl, buttonText: t('button.backtoshopping'), text: t('wishlist.emptylist'), pushAnalytics: () => analytics.savedForLaterThree() }),\n React.createElement(\"div\", { className: \"wishlist__banner-wrapper\" }, banners === null || banners === void 0 ? void 0 : banners.map((banner) => {\n var _a;\n return (React.createElement(SingleBanner, { key: banner.ID, aspectRatio: \"aspect-ratio--3-2\", title: banner.title, buttonText: banner.linkText, buttonLink: banner.link, backgroundImage: (_a = banner === null || banner === void 0 ? void 0 : banner.bg_image) === null || _a === void 0 ? void 0 : _a.path }));\n }))));\n return (React.createElement(\"div\", { className: \"wishlist-wrapper\" }, (wishlist === null || wishlist === void 0 ? void 0 : wishlist.length) > 0 ? (React.createElement(\"ul\", { className: \"wishlist__products-listing\", ref: itemsContainer }, wishlist.map((wishlistitem, i) => (React.createElement(WishlistProduct, { key: wishlistitem.isMbm ? wishlistitem.pid + wishlistitem.mbm.recipeId : wishlistitem.isGiftCard ? wishlistitem.UUID : wishlistitem.pid, type: wishlistitem.isMbm ? 'mbm' : 'products', removeFunction: props.removeProduct, updateFunction: (oldProduct, newProductId, recipeId, callback) => {\n removeDuplicateTimer.current && clearTimeout(removeDuplicateTimer.current);\n props.updateProduct(oldProduct, newProductId, recipeId, callback);\n removeDuplicateTimer.current = setTimeout(() => {\n setWishlist(wishlist.filter((prod) => prod.pid != newProductId || prod === wishlistitem));\n }, 1000);\n }, updateWishLists: props.updateWishLists, updateGiftCard: props.updateGiftCard, product: wishlistitem, inPublicWishlist: props.inPublicWishlist, shareenabled: props.shareenabled, shareformdef: props.shareformdef, wishlist: props.wishlist, toDelete: deleted && deleted.pid == wishlistitem.pid }))))) : props.type == 'mbm' ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: 'col-md-6 offset-md-3' },\n React.createElement(\"p\", { className: \"empty-wishlist-mbm\" }, window.loggedin ? t('wishlist.mbmemptylogged') : t('wishlist.mbmemptyguest'))), banners === null || banners === void 0 ? void 0 :\n banners.map((banner) => {\n var _a;\n return (React.createElement(\"div\", { key: banner.ID, className: 'col-md-6 offset-md-3' },\n React.createElement(SingleBanner, { aspectRatio: \"aspect-ratio--3-2\", title: banner.title, buttonText: banner.linkText, buttonLink: banner.link, backgroundImage: (_a = banner === null || banner === void 0 ? void 0 : banner.bg_image) === null || _a === void 0 ? void 0 : _a.path, mbm: true })));\n })))) : (messageForEmptyListing)));\n};\nexport default WishlistContent;\n","import LoginModal from '../login/LoginModal';\nimport Button from '@ui/button/Button';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport classNames from 'classnames';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport ErrorModal from '@components/error/ErrorModal';\nimport WishlistContent from './WishlistContent';\nimport WishlistShare from './WishlistShare';\nconst Wishlist = (props) => {\n var _a;\n const { t } = useTranslation();\n const [loading, setLoading] = useState(true);\n // const [currentType, setCurrentType] = useQueryString('wishlistTab', 'products');\n const [editorialBanners, setEditorialBanners] = useState();\n const [showSendWishlist, setShowSendWishlist] = useState(false);\n const [unifiedWishlist, setUnifiedWishlist] = useState();\n const [showCrossCountryModal, setShowCrossCountryModal] = useState(true);\n const [customerName, setCustomerName] = useState(props === null || props === void 0 ? void 0 : props.customerName);\n const [shareFormdef, setShareFormdef] = useState();\n const [errorMessage, setErrorMessage] = useState();\n const isPublicWishlist = useMemo(() => { var _a, _b; return ((_a = props.querystring) === null || _a === void 0 ? void 0 : _a.includes('listId')) && ((_b = props.querystring) === null || _b === void 0 ? void 0 : _b.includes('key')) && props.publicpage; }, [props.querystring, props.publicpage]);\n const enabledShare = useMemo(() => {\n return props.shareenabled && customerName && !isPublicWishlist;\n }, [props.shareenabled, customerName, isPublicWishlist]);\n useEffect(() => {\n if (isPublicWishlist) {\n const params = new URLSearchParams(props.querystring);\n api.getJsonPublicWishlist(params.get('listId'), params.get('key')).then((data) => {\n let joinedWishlist;\n data.lists.forEach((wl) => {\n if (!joinedWishlist) {\n joinedWishlist = wl;\n }\n else {\n joinedWishlist.items = joinedWishlist.items.concat(wl.items);\n joinedWishlist.length += wl.length;\n joinedWishlist.totalSize += wl.totalSize;\n }\n });\n joinedWishlist.items.sort((a, b) => a.creationDate - b.creationDate);\n setUnifiedWishlist(joinedWishlist);\n // setMbmWishlist(data.lists.find((list) => list.literalType == 'mbm'));\n // setHideMbmTab(!!data.hideMbmTab);\n setLoading(false);\n });\n }\n }, [isPublicWishlist]);\n // add listener from outside via CustomEventBus\n useEffect(() => {\n customEventBus.on('wishlist:update', (data) => updateWishLists());\n }, []);\n const updateWishLists = async (excludeCache) => {\n return api.getWishlist('all', excludeCache).then((data) => {\n setUnifiedWishlist(data);\n setLoading(false);\n return data;\n });\n };\n const updateGiftCard = (card, formDef, callback) => {\n api.gcEditWishlistItem(card, formDef).then((data) => {\n if (data.success) {\n updateWishLists(true).then((updatedWishlist) => {\n const newlyUpdatedProduct = updatedWishlist === null || updatedWishlist === void 0 ? void 0 : updatedWishlist.items.find((el) => el.UUID === card.gcUUID);\n callback && callback(newlyUpdatedProduct.price);\n });\n }\n else {\n console.log(data);\n }\n });\n };\n useEffect(() => {\n if (!isPublicWishlist) {\n updateWishLists();\n }\n }, [customerName, isPublicWishlist]);\n useEffect(() => {\n if (enabledShare) {\n let val = {};\n api.getForm('wishlist-share', val).then((data) => {\n setShareFormdef(data);\n });\n }\n }, [enabledShare]);\n useEffect(() => {\n // get editorial banners, if present (currently only for the MBM part)\n api.getPageJson('wishlist').then((data) => {\n var _a, _b, _c, _d, _e, _f;\n if (!(data === null || data === void 0 ? void 0 : data.errorMessage) && ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.page) === null || _a === void 0 ? void 0 : _a.regions) === null || _b === void 0 ? void 0 : _b.main) === null || _c === void 0 ? void 0 : _c.components)) {\n setEditorialBanners((_f = (_e = (_d = data === null || data === void 0 ? void 0 : data.page) === null || _d === void 0 ? void 0 : _d.regions) === null || _e === void 0 ? void 0 : _e.main) === null || _f === void 0 ? void 0 : _f.components);\n }\n });\n }, []);\n const wishlistCount = useMemo(() => {\n if (!unifiedWishlist) {\n return;\n }\n let totalCount = (unifiedWishlist === null || unifiedWishlist === void 0 ? void 0 : unifiedWishlist.totalSize) || 0;\n return totalCount;\n }, [unifiedWishlist]);\n useEffect(() => {\n if (!!wishlistCount) {\n props.updateCount && props.updateCount(wishlistCount);\n }\n }, [wishlistCount]);\n const getCurrentWishlistUUID = (isMbm) => {\n return isMbm ? unifiedWishlist.mbmUUID : unifiedWishlist.UUID;\n };\n const localizedCurrentLocation = (countryCode) => {\n var _a;\n if (!countryCode) {\n return undefined;\n }\n const regionNamesLocalized = new Intl.DisplayNames([window.language || 'en'], { type: 'region' });\n // ovveride custom richiesto da Moncler\n let coutryNameOverride = {\n HK: t('select.option.country.hongkong'),\n MO: t('select.option.country.macau'),\n TW: t('select.option.country.taiwan'),\n };\n return (_a = coutryNameOverride[countryCode]) !== null && _a !== void 0 ? _a : regionNamesLocalized.of(countryCode);\n };\n const removeProduct = (uuid, masterid, moveToBag) => {\n var _a;\n let isMbmProduct = (_a = unifiedWishlist.items.find((p) => p.UUID == uuid)) === null || _a === void 0 ? void 0 : _a.isMbm;\n let type = isMbmProduct ? 'mbm' : 'products';\n api.removeItemFromWishlist(uuid, type).then((result) => {\n updateWishLists();\n customEventBus.emit('account:update', { wishlistIds: result.items });\n customEventBus.emit('wishlist:update', { wishlistIds: result.items });\n analytics.SaveForLaterRemoveItem(masterid);\n });\n if (unifiedWishlist.items.length == 1 && moveToBag) {\n if (props.cart) {\n props.setSentAnalytics(true);\n props.setTabIndex('bag');\n scrollTo(0, 0);\n }\n else {\n window.location.href = props.carturl;\n }\n }\n };\n const updateProduct = (oldProductId, newProductId, recipeId, callback) => {\n api.replaceWishlistProduct(getCurrentWishlistUUID(recipeId.length > 0), oldProductId, newProductId, recipeId, true).then((result) => {\n const newlyUpdatedProduct = result === null || result === void 0 ? void 0 : result.items.find((el) => el.pid === newProductId);\n callback && callback(newlyUpdatedProduct);\n });\n };\n const testButtons = (React.createElement(\"div\", { className: \"devmodebox devmode\" },\n React.createElement(\"button\", { className: \"button button--primary\", onClick: () => api.addToWishlist('G10911A10600530297760') }, \"add product - standard\"),\n React.createElement(\"button\", { className: \"button button--primary\", onClick: () => api.addToWishlist('G10911A10600530297761') }, \"add product - OOS\"),\n React.createElement(\"button\", { className: \"button button--primary\", onClick: () => api.addToWishlist('H209Z1A00001M29049992', '41432289') }, \"add product - MBM\"),\n React.createElement(\"button\", { className: \"button button--primary\", onClick: () => api.addToWishlist('H209Z1A00002M29049991', '58519464').then(() => updateWishLists()) }, \"add product - MBM 2\")));\n if (loading) {\n return React.createElement(\"div\", { className: \"wishlist-skeleton\", dangerouslySetInnerHTML: { __html: props === null || props === void 0 ? void 0 : props.placeholder } });\n }\n return (React.createElement(React.Fragment, null,\n ((_a = props.querystring) === null || _a === void 0 ? void 0 : _a.includes('test')) && testButtons,\n wishlistCount === 0 ? (React.createElement(\"div\", { className: \"container\" },\n !isPublicWishlist && !window.loggedin && (React.createElement(\"div\", { className: \"wishlist\" },\n React.createElement(\"div\", { className: \"wishlist__intro\" }, window.country !== 'RU' && (React.createElement(LoginModal, Object.assign({ incontext: \"wishlist\" }, props, { reloadPage: true, socialLoginTarget: 'wishlist', registerDestination: 'wishlist', inWishlist: true, updateLoggeedStatus: (name) => setCustomerName(name), linkreload: isPublicWishlist ? props.loggedPageUrl : undefined, analyticsKey: \"modal\" })))))),\n React.createElement(\"div\", { className: \"wishlist--empty\" },\n React.createElement(\"p\", { role: \"region\", \"aria-live\": \"polite\" }, t('bag.wishlistempty')),\n React.createElement(\"div\", { className: \"wishlist--empty__button-container\" },\n React.createElement(\"a\", { href: window.homeurl, className: \"button button--secondary\", onClick: () => analytics.wishlistInteractionBack() },\n React.createElement(\"span\", null, t('button.backtoshopping'))))))) : (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: classNames({ container: !(props === null || props === void 0 ? void 0 : props.mymoncler) }, 'wishlist') },\n !isPublicWishlist && (React.createElement(\"div\", { className: \"wishlist__intro\" },\n React.createElement(LoginModal, Object.assign({ incontext: \"wishlist\" }, props, { reloadPage: true, socialLoginTarget: 'wishlist', registerDestination: 'wishlist', inWishlist: true, updateLoggeedStatus: (name) => setCustomerName(name), linkreload: isPublicWishlist ? props.loggedPageUrl : undefined, analyticsKey: \"modal\" })))),\n React.createElement(\"div\", { className: \"wishlist__intro row align-middle\" },\n React.createElement(\"div\", { className: \"col-12 col-md-4 offset-md-4\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: {\n __html: t('wishlist.itemsfound', { number: unifiedWishlist === null || unifiedWishlist === void 0 ? void 0 : unifiedWishlist.totalSize }),\n } })),\n enabledShare && !window.isClothing && (React.createElement(\"div\", { className: \"col-12 col-md-4\" },\n React.createElement(\"button\", { type: \"button\", className: \"wishlist__share-button\", onClick: () => {\n api\n .GeneratePublicWishlist(unifiedWishlist.UUID)\n .then((data) => {\n if (data.success) {\n unifiedWishlist.shareWishlistsUrl = data.urlRedirect;\n setShowSendWishlist(true);\n }\n else {\n setErrorMessage(t('errorpage.text'));\n }\n })\n .catch((e) => setErrorMessage(t('errorpage.text')));\n analytics.wishlistInteractionShare('');\n }, \"aria-expanded\": showSendWishlist ? 'true' : 'false', \"aria-haspopup\": \"dialog\" }, t('wishlist.share')),\n React.createElement(WishlistShare, { wishlist: unifiedWishlist, show: showSendWishlist, setShow: setShowSendWishlist, formdef: shareFormdef }),\n React.createElement(ErrorModal, { message: errorMessage, onClose: () => setErrorMessage(undefined) })))),\n React.createElement(WishlistContent, Object.assign({}, props, { type: 'products', wishlist: unifiedWishlist, removeProduct: removeProduct, updateProduct: updateProduct, banners: editorialBanners === null || editorialBanners === void 0 ? void 0 : editorialBanners.filter((banner) => banner.list_type == 'standard'), inMymoncler: props.mymoncler, inPublicWishlist: isPublicWishlist, shareenabled: enabledShare, shareformdef: shareFormdef, updateWishLists: updateWishLists, updateGiftCard: updateGiftCard }))),\n isPublicWishlist && props.currentCountry != window.country && (React.createElement(ModalDialog, { overlayClassName: 'mobile-visible', className: \"modal--fixed-small cross-country-info\", isOpen: showCrossCountryModal, onRequestClose: () => setShowCrossCountryModal(false), contentLabel: t('wishlist.crosscountrytitle', { 0: localizedCurrentLocation(props.currentCountry) }) },\n React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"mb-16\" }, t('wishlist.crosscountrydesc', { 0: localizedCurrentLocation(window.country), 1: window.country })),\n React.createElement(Button, { type: 'button', cls: ['button--primary'], onClick: () => setShowCrossCountryModal(false) }, t('button.continue')))))))));\n};\nexport default Wishlist;\n"],"names":["props","buttonLink","Error","className","dangerouslySetInnerHTML","__html","text","href","onClick","pushAnalytics","buttonText","title","backgroundImage","aspectRatio","mbm","style","t","Object","assign","hideHeader","noPadding","isBg","image","src","alt","children","defaultData","window","loginImageFolder","incontext","fromMbm","imageAlt","subtitle","cta","paragraph","open","setOpen","useState","openRegister","setOpenRegister","forceReload","setForceReload","modalData","setModalData","useEffect","undefined","modalStatus","updateStatus","linkreload","location","reload","then","data","_a","_b","_c","_d","component","regions","components","filter","el","type_id","customModalData","find","customModalId","custom","catch","err","values","useMemo","loggedin","inWishlist","type","ariaHaspopup","cls","incuratorplp","inlookcard","mbmFinish","e","preventDefault","customLoginBtnLabel","customClass","customOnClickCB","call","analyticsKey","linkText","titleAnalytics","buttonTextAnalytics","role","tabIndex","onKeyDown","key","isOpen","onRequestClose","privacypolicy","forgotpasswordform","defaultRegister","closeModal","reloadPage","reloadComponent","from","inCart","updateLoggeedStatus","reloadPageRegisteredInStore","onForgotPassword","reloadAfterSocialLogin","pageContext","editorialData","customTitle","HeroBanner","hero","gradientClass","background","loginStep","setLoginStep","loginEmail","setLoginEmail","loginMethods","setLoginMethods","setHero","_e","_f","_g","_h","_j","_k","_l","_m","mainComponent","map","id","media","gradientSize","toLowerCase","imgGradient","inModal","inAccountMenu","onBack","isClothing","length","step","invert","customCtaText","reloadUrl","showCTA","btnClass","analyticsCategory","analyticsAction","rememberme","singleColumn","socialUsed","ID","reloadRegisterComponent","updateLoggedin","fromMinicart","useTranslation","showOverlay","setShowOverlay","showSizeBtn","setShowSizeBtn","buttonStyleSecondary","buttonStyleInverted","classes","onCloseModal","triggerCloseOnly","onMouseEnter","size","onMouseLeave","Button","customClasses","console","log","triggerOpenSize","onOpenModal","analytics","product","masterId","isMbm","MbmNotifyMeModal","imgs","editLink","editurl","ProductNotifyMeModal","color","fromReserve","giftCardPurchase","setGiftCardPurchase","buttonLoader","setButtonLoader","loading","addToBag","fromKeyboard","card","onAddStart","productId","api","listitemid","error","updateErrorMessage","message","quantityTotal","header","document","querySelector","firstRefine","removeProperty","fromAddToBag","wishlist","items","pid","callback","secondary","inverted","giftCardProduct","setGiftCardProduct","giftCardCart","isGiftCard","giftCardAttributes","gcAmount","price","sales","value","gcEmail","recipientEmail","gcName","recipientName","gcMessage","gcDate","sendDate","loginUrl","unlock","addToBagHandler","variationAttributes","va","selected","preorderable","GiftCardPurchaseModal","onSubmit","formDef","updateGiftCard","onMoveToBag","wishlistProduct","newlyUpdatedProduct","isSelectable","selectable","currentSize","inPublicWishlist","isBoutiqueExclusive","notShoppable","isComingSoon","enableColorBackgroundStillLife","removeFunction","uuid","msg","focusOnError","show","setShow","formdef","shareItem","showShareByEmail","setShowShareByEmail","submitSuccess","setSubmitSuccess","errors","setErrors","copyStatus","setCopyStatus","setTimeout","validate","async","formutils","getListId","UUID","ModalDialog","overlayClassName","navigator","clipboard","writeText","origin","productUrl","shareWishlistsUrl","copyWishlist","decorators","keys","forEach","item","recipeId","listId","email","success","errorMsg","mutators","global","render","handleSubmit","form","submitting","pristine","DwFormField","def","name","autoFocus","hiddenLabel","disabled","ErrorBox","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","containerRef","useRef","wishlistInfo","errorMessage","setErrorMessage","openSelectionSize","setOpenSelectionSize","currentBreakpoint","useBreakpoint","currentPrice","setCurrentPrice","loadingButton","setLoadingButton","isFocused","setIsFocused","setNewlyUpdatedProduct","setCurrentSize","wishlistInfoHeight","setWishlistInfoHeight","showSendWishlist","setShowSendWishlist","productImgs","setProductImgs","selectorSizeActive","setSelectorSizeActive","urls","url","includes","mqObj","sm","current","offsetHeight","sizeVariations","variation","attributeId","colorVariations","itemLabel","source","checkOpenSelectionSize","changeVariation","sizeVariation","withUpdate","updateFunction","updatedWishlistItem","stockStatus","availability","isOutOfStock","quickBuyButton","isLookCarousel","buttontext","preorder","ProductActionAddToBag","ProductActionNotifyMe","containerHeight","imageTransformPercentage","delete","toDelete","focused","onFocus","onBlur","wishlistParent","relatedTarget","closest","target","ProductWishlistToggle","imageBackground","productSize","productColor","ref","ProductLink","ariaLabel","productName","ProductImage","transform","sizes","LG","MD","SM","tiletype","img","ProductTileCarousel","genderImageSorted","productUuid","isOver","initialSlide","exlude","ProductPrice","basePrice","gcLimits","minValue","formattedValue","isParfum","displayValue","ProductSelectionSizes","isNotAvailableSelectable","variationValues","currentId","onChangeVariation","enableOutofstockLabel","disableHover","hideUnselectedLabel","onClickExtraAction","cardIn","mobilePopup","enableOnlyOneLeftLabel","contentLabel","hasDivisor","updateWishLists","ProductSelectionSizesExpanded","selectedItem","hideSizeConversion","showOutofstockLabel","unshoppable","shareenabled","ariaExpanded","shareformdef","ErrorModal","onClose","ProductBoutiqueModal","mode","colourVariations","banners","setWishlist","deleted","setDeleted","changed","setChanged","itemsContainer","removeDuplicateTimer","row","lastOffset","Array","i","element","offsetTop","dataset","toString","rowSiblings","querySelectorAll","infoMaxHeight","reduce","prev","next","Math","max","setProperty","messageForEmptyListing","EmptyListMessage","homeurl","banner","SingleBanner","link","bg_image","path","wishlistitem","removeProduct","oldProduct","newProductId","clearTimeout","updateProduct","prod","setLoading","editorialBanners","setEditorialBanners","unifiedWishlist","setUnifiedWishlist","showCrossCountryModal","setShowCrossCountryModal","customerName","setCustomerName","shareFormdef","setShareFormdef","isPublicWishlist","querystring","publicpage","enabledShare","params","URLSearchParams","get","joinedWishlist","lists","wl","concat","totalSize","sort","a","b","creationDate","excludeCache","val","page","main","wishlistCount","updateCount","localizedCurrentLocation","countryCode","regionNamesLocalized","Intl","DisplayNames","language","HK","MO","TW","of","testButtons","placeholder","country","LoginModal","socialLoginTarget","registerDestination","loggedPageUrl","container","mymoncler","number","urlRedirect","masterid","moveToBag","p","result","wishlistIds","cart","setSentAnalytics","setTabIndex","scrollTo","carturl","oldProductId","mbmUUID","list_type","inMymoncler","updatedWishlist","gcUUID","currentCountry"],"sourceRoot":""}