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ACzB,IAAIvC,EAAIc,EACRuT,EAAiB9R,IACmB,QAA/BvC,EAAKuC,EAAKqS,uBAAoC,IAAP5U,OAAgB,EAASA,EAAGpB,SAASR,OAAOyW,sCACpFN,GAAkB,IAEa,QAA9BzT,EAAKyB,EAAKuS,sBAAmC,IAAPhU,OAAgB,EAASA,EAAGlC,SAAS,QAC5E6V,GAA0B,EAC9B,GACF,GACH,KACEL,IAAkBE,GAAmBlW,OAAO2J,WAAayM,EACnD,gBAAoB,WAAgB,MAEvC,gBAAoB,MAAO,CAAE3Z,UAAW,0CACzB,oBAAnBnB,EAAMqb,WAAoC,gBAAoB,IAAK,CAAEla,UAAW,8BAC5E,gBAAoB,IAAK,CAAEA,UAAW,gBAAiB,aAAc,iBACrEkG,EAAE,8BACN,gBAAoB,MAAO,CAAElG,UAAW,mCACpC,gBAAoB,OAAQ,CAAEA,UAAW,QACrC,gBAAoB,WAAgB,KACb,oBAAnBnB,EAAMqb,WAAmChU,EAAE,mCACxB,OAAnBrH,EAAMqb,WAAsB,gBAAoB,SAAU,MAAOX,aAAqD,EAASA,EAAcY,OAASjU,EAAE,gCAAkCA,EAAE,8BACpM,gBAAoB,EAAAxF,SAAU,CAAEC,SAAU,gBAAoB,WAAgB,QAAU4Y,aAAqD,EAASA,EAAcY,QAAW,gBAAoBb,EAAY,CAAEY,UAAW,cAAeE,YAAY,EAAMC,YAAaR,EAAWS,aAAeC,GAAWT,EAAaS,GAASC,WAAYtU,EAAE,mCAAoCuU,YAAa,+BAAkC,C","sources":["webpack:///./assets/common/src/components/utils/ThronVideo.tsx","webpack:///./assets/common/src/ui/modal/ModalDialog.tsx","webpack:///./assets/common/src/utils/constants.ts","webpack:///./assets/common/src/utils/imageutils.ts","webpack:///./assets/common/src/utils/useBreakpoint.ts","webpack:///./assets/moncler/src/components/bag/BagItemPreorderinfo.tsx","webpack:///./assets/moncler/src/components/mbm/MbmNotifyMeModal.tsx","webpack:///./assets/moncler/src/components/minibag/MiniBagItem.tsx","webpack:///./assets/moncler/src/components/product/ProductGalleryImage.tsx","webpack:///./assets/moncler/src/components/product/ProductGallery.tsx","webpack:///./assets/moncler/src/components/routerTransitions/useAnimatedImage.tsx","webpack:///./assets/moncler/src/components/product/ProductImage.tsx","webpack:///./assets/moncler/src/components/product/ProductImageButton.tsx","webpack:///./assets/moncler/src/components/product/ProductVideo.tsx","webpack:///./assets/moncler/src/components/product/ShippingDisclaimer.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport ThronIntegrationComponent from './../../scripts/components/thronIntegrationComponent';\nconst ThronVideo = (props) => {\n const videoRef = useRef();\n const [thronComponent, setThronComponent] = useState(null);\n useEffect(() => {\n if (videoRef.current) {\n if (thronComponent) {\n thronComponent.changeContent(props.thronID);\n }\n else {\n const options = {};\n props.onPauseCallback && (options.onPauseCallback = props.onPauseCallback);\n props.onPlayCallback && (options.onPlayCallback = props.onPlayCallback);\n props.onCompleteCallback && (options.onCompleteCallback = props.onCompleteCallback);\n props.onInitCallback && (options.onInitCallback = props.onInitCallback);\n props.onTimeUpdate && (options.onTimeUpdate = props.onTimeUpdate);\n typeof props.loopTimes === 'number' && (options.loopTimes = props.loopTimes);\n const newThronComponent = new ThronIntegrationComponent(videoRef.current, options);\n setThronComponent(newThronComponent);\n }\n }\n }, [props.thronID]);\n return (React.createElement(\"div\", { ref: videoRef, \"aria-hidden\": \"true\", className: classNames('video-wrapper', props.className), \"data-option-id\": props.thronID, \"data-option-mobile-id\": props === null || props === void 0 ? void 0 : props.thronMobileID, \"data-option-muted\": props.muted, \"data-option-autoplay\": props.autoplay, \"data-option-loop\": props.loop, \"data-option-lock-bitrate\": props.lockBitrate, \"data-option-no-skin\": props.noskin, \"data-option-sess-id\": props.sessionId }));\n};\nexport default ThronVideo;\n","import React, { Suspense } from 'react';\nimport { autoChooseComponent } from '@common/utils/brandDiffsUtils';\nconst StoneModalDialog = React.lazy(() => import('@stone/components/modal/ModalDialog'));\nconst MocnclerModalDialog = React.lazy(() => import('@moncler/components/modal/ModalDialog'));\nconst ModalDialog = (props) => {\n return (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, autoChooseComponent({\n MO: React.createElement(MocnclerModalDialog, Object.assign({}, props)),\n ST: React.createElement(StoneModalDialog, Object.assign({}, props, { isLegacy: true })),\n })));\n};\nexport default ModalDialog;\n","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 slugify from 'slugify';\nimport { getId } from './brandDiffsUtils';\nconst imageutils = {\n // res: {\n // HIRES: { width: 1571, height: 2000 },\n // LG: { width: 1024, height: 1304 },\n // MD: { width: 768, height: 977 },\n // SM: { width: 360, height: 458 },\n // XS: { width: 73, height: 93 },\n // XXS: { width: 15, height: 19 },\n // },\n transform: function (url, size, alt, quality, format) {\n if (!url) {\n return url;\n }\n if (url.indexOf('thron') > -1) {\n let name = alt ? slugify(alt, { remove: /[*+~.()'\"!:@/]/g, lower: true }) : 'image';\n let fullurl = url.replace(/\\/0x0\\/.*/, `/${size.width}x${size.height}/${name}.jpg`);\n let params = [];\n params.push(['scalemode', 'centered']);\n params.push(['adjustcrop', 'reduce']);\n const imgQuality = quality || window.imagequality;\n if (imgQuality > 0) {\n params.push(['quality', imgQuality]);\n }\n if (format === 'avif' && window.avifsupported) {\n params.push(['format', 'avif']);\n }\n else if (window.webpsupported) {\n params.push(['format', 'WEBP']);\n }\n if (params.length > 0) {\n fullurl = fullurl + '?' + params.map((i) => i[0] + '=' + i[1]).join('&');\n }\n return fullurl;\n }\n if (url.includes('fluidconfigure')) {\n return `${url}?width=${size.width}&height=${size.height}`;\n }\n return `${url}?sw=${size.width}&sh=${size.height}`;\n },\n hires: function (url, alt) {\n return this.transform(url, HIRES, alt);\n },\n large: function (url, alt) {\n return this.transform(url, LG, alt);\n },\n medium: function (url, alt) {\n return this.transform(url, MD, alt);\n },\n small: function (url, alt) {\n return this.transform(url, SM, alt);\n },\n extraSmall: function (url, alt) {\n return this.transform(url, XS, alt);\n },\n};\nexport default imageutils;\n// let aspectratio = 2000 / 1571; // oldimages\nlet aspectratio = {\n MO: 2880 / 1920,\n ST: 2880 / 2160,\n};\nconst size = (width) => {\n return {\n width: width,\n height: Math.round(width * aspectratio[getId()]),\n };\n};\nexport const HIRES = size(1571);\nexport const LG = size(1024);\nexport const MD = size(768);\nexport const SM = size(360);\nexport const XS = size(73);\nexport const XXS = size(30); // servirà per il lazyloading\n","import { useEffect, useState } from 'react';\nconst getInitialBreakpointValue = () => {\n var _a;\n // get initial breakpoint is called before the page is fully loaded and innerWith may be 0. windows.mqObj may not be set\n const mediaQueries = window.mqObj;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0 || !mediaQueries) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n const initalBr = filtered.length ? mediaQueries[filtered[filtered.length - 1]] : mediaQueries['xs'];\n // console.info('[getInitialBreakpointValue]: ', documentWidth, initalBr);\n return initalBr;\n};\nconst mediaQueries = Object.assign({ ' {\n const [currentBreakpoint, setCurrentBreakpoint] = useState(getInitialBreakpointValue());\n const getCurrentBreakpoint = () => {\n var _a;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n return mediaQueries[filtered[filtered.length - 1]];\n };\n const handleResize = () => {\n const currentBr = getCurrentBreakpoint();\n if (currentBr && currentBr !== currentBreakpoint) {\n // console.info('%c[React - Breakpoint change] ', 'color: green;font-weight: bold;', currentBr);\n setCurrentBreakpoint(currentBr);\n }\n };\n // const debounceResize = () => {\n // handleResize();\n // };\n useEffect(() => {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n });\n return currentBreakpoint;\n};\nexport default useBreakpoint;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst BagItem = (props) => {\n var _a, _b;\n const { t } = useTranslation();\n return (React.createElement(\"div\", { className: \"col-12 bag-product__preorderinfo\" },\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('order.preorderinfotitle') } }),\n React.createElement(\"p\", { className: \"bag-product__preorderinfo__subtitle\", dangerouslySetInnerHTML: { __html: t('order.preorderinfosubtitle') } }),\n React.createElement(\"p\", { className: \"bag-product__preorderinfo__text\", dangerouslySetInnerHTML: { __html: t('order.preorderinfotext', { date: (_a = props.item.availability) === null || _a === void 0 ? void 0 : _a.inStockDate, currency: props.item.price.sales.currency }) } }),\n window.preordertoken && (React.createElement(\"p\", { className: \"bag-product__preorderinfo__text\", dangerouslySetInnerHTML: { __html: t('order.preorderinfotoken', { date: (_b = props.item.availability) === null || _b === void 0 ? void 0 : _b.inStockDate, currency: props.item.price.sales.currency }) } }))));\n};\nexport default BagItem;\n","import ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\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 createDecorator from 'final-form-focus';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Form } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nconst focusOnError = createDecorator(); // must be outside the component\nconst MbmNotifyMeModal = (props) => {\n var _a;\n const { t } = useTranslation();\n const [formdef, setFormdef] = useState();\n const [initialValues, setInitialValues] = useState();\n const [requestSent, setRequestSent] = useState();\n const [errors, setErrors] = useState([]);\n // non renderizzare la modale all'apertura della pagina, non fare chiamate se non aperta\n const firstRender = useRef(true);\n useEffect(() => {\n if (props.isOpen && firstRender.current) {\n firstRender.current = false;\n let val = {};\n api.getForm('email', val).then((data) => {\n setInitialValues(val);\n setFormdef(data);\n });\n }\n }, [props.isOpen]);\n const validate = async (values) => {\n return await formutils.validateForm(values, formdef, 'email');\n };\n const onSubmit = async (values) => {\n setErrors([]);\n let err = await validate(values);\n if (err && Object.keys(err).length > 0) {\n return err;\n }\n api.mbmNotifymeSubmit(values, formdef).then((data) => {\n if (!data.success) {\n setErrors([t(data === null || data === void 0 ? void 0 : data.message)]);\n }\n else {\n let errors = {};\n if (!formutils.checkValidationAfterSubmit(data, errors)) {\n return errors;\n }\n analytics.notifyMeSubmit('', props.productId, 'pdp', true);\n setRequestSent(values);\n }\n });\n };\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(ModalDialog, { hideHeader: true, noPadding: true, isOpen: props.isOpen, onRequestClose: props.onRequestClose, id: \"mbmNotifymeModal\" },\n React.createElement(\"div\", { className: \"product-mbm-notify\" },\n ((props === null || props === void 0 ? void 0 : props.imgs) || (props === null || props === void 0 ? void 0 : props.img)) && (React.createElement(\"div\", { className: \"mbm-notify-image\" },\n React.createElement(\"img\", { src: (props === null || props === void 0 ? void 0 : props.img) || (props === null || props === void 0 ? void 0 : props.imgs.urls[0]), alt: ((_a = props === null || props === void 0 ? void 0 : props.imgs) === null || _a === void 0 ? void 0 : _a.alt) || '' }))),\n requestSent ? (React.createElement(React.Fragment, null,\n React.createElement(\"h3\", { role: \"alert\", className: \"primary-m text-center mb-32\" }, t('mbm.notifyconfirmtitle')),\n React.createElement(\"p\", { className: \"primary-s text-center\", dangerouslySetInnerHTML: { __html: t('mbm.notifyconfirmtext') } }),\n React.createElement(\"div\", { className: \"mbm-finish__buttons\" },\n React.createElement(Button, { type: \"button\", cls: ['button--secondary'], onClick: () => {\n if (props === null || props === void 0 ? void 0 : props.inConfigurator) {\n if (props === null || props === void 0 ? void 0 : props.backToShopping) {\n window.location.href = props === null || props === void 0 ? void 0 : props.backToShopping;\n }\n else {\n window.location.href = window.homeurl;\n // history.back();\n }\n }\n else {\n props.onRequestClose();\n }\n } }, t('button.backtoshopping')),\n (props === null || props === void 0 ? void 0 : props.editLink) ? (React.createElement(\"a\", { href: props === null || props === void 0 ? void 0 : props.editLink, className: \"button button--primary\" },\n React.createElement(\"span\", null, t('mbm.configureyour')))) : (React.createElement(Button, { type: \"button\", cls: ['button--primary'], onClick: props.onRequestClose }, t('mbm.configureyour')))))) : (React.createElement(React.Fragment, null,\n React.createElement(\"h3\", { className: \"primary-m text-center mb-32\" }, t('mbm.notifytitle')),\n React.createElement(\"p\", { className: \"primary-s text-center mbm-notify-text\" }, t('mbm.notifytext')),\n React.createElement(Form, { onSubmit: onSubmit, initialValues: initialValues, decorators: [focusOnError], validate: (values) => validate(values), render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n React.createElement(DwFormField, { def: formdef, name: \"email\" }),\n React.createElement(Button, { type: \"submit\", disabled: submitting, cls: ['button--primary'] }, t('button.mbmoos')))) }),\n React.createElement(ErrorBox, { errors: errors }))))));\n};\nexport default MbmNotifyMeModal;\n","import ColorAndSize from '@common/components/aftercare/ColorAndSize';\nimport BagItemPreorderinfo from '@moncler/components/bag/BagItemPreorderinfo';\nimport MbmNotifyMeModal from '@moncler/components/mbm/MbmNotifyMeModal';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport { SM } from '@utils/imageutils';\nimport React, { useCallback, useState, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport ProductImage from '@moncler/components/product/ProductImage';\nimport ProductGallery from '@moncler/components/product/ProductGallery';\nimport ProductImageButton from '@moncler/components/product/ProductImageButton';\nconst MiniBagItem = (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, _0;\n const { t } = useTranslation();\n const [mbmNotify, setMbmNotify] = useState(false);\n const [galleryIsOpen, setGalleryIsOpen] = useState(false);\n const [media, setMedia] = useState([]);\n useEffect(() => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;\n if (((_b = (_a = props.item) === null || _a === void 0 ? void 0 : _a.imgs) === null || _b === void 0 ? void 0 : _b.urls) && ((_d = (_c = props.item) === null || _c === void 0 ? void 0 : _c.imgs) === null || _d === void 0 ? void 0 : _d.urls.length) > 0) {\n let newMedia = (_f = (_e = props.item) === null || _e === void 0 ? void 0 : _e.imgs) === null || _f === void 0 ? void 0 : _f.urls.map((el) => el);\n // exclude F duplicate of R on standard PDP\n newMedia = newMedia.filter((el) => !el.includes('_F'));\n if ((_g = props.item) === null || _g === void 0 ? void 0 : _g.videos) {\n for (const [key, value] of Object.entries((_h = props.item) === null || _h === void 0 ? void 0 : _h.videos)) {\n newMedia.splice(parseInt(key), 0, value);\n }\n }\n // aggiunngo, se presenti, i media del MBM\n if (((_l = (_k = (_j = props.item) === null || _j === void 0 ? void 0 : _j.mbm) === null || _k === void 0 ? void 0 : _k.palettes) === null || _l === void 0 ? void 0 : _l.length) > 0) {\n newMedia = newMedia.concat(props.item.mbm.palettes.map((el) => { var _a; return `palette_${el.productVideo || ((_a = el === null || el === void 0 ? void 0 : el.productImage) === null || _a === void 0 ? void 0 : _a.path)}`; }));\n }\n setMedia(newMedia.map((el) => (el.startsWith('palette_') ? el.substring(8) : el)));\n }\n }, [(_b = (_a = props.item) === null || _a === void 0 ? void 0 : _a.imgs) === null || _b === void 0 ? void 0 : _b.urls, (_d = (_c = props.item) === null || _c === void 0 ? void 0 : _c.mbm) === null || _d === void 0 ? void 0 : _d.palettes]);\n const removeFromBag = useCallback(() => {\n const pid = props.item.id;\n const uuid = props.item.lineUUID;\n analytics.removeitem(props.item);\n api.removeFromBag(pid, uuid).then(() => props.onRemove());\n }, [props.item]);\n const [showDeliveryLimitations, setShowDeliveryLimitations] = useState(false);\n const moveToWishlist = useCallback(() => {\n var _a, _b, _c;\n if (window.loggedin || !((_a = props.item) === null || _a === void 0 ? void 0 : _a.isMbm)) {\n api.addToWishlist(props.item.id, (_c = (_b = props.item) === null || _b === void 0 ? void 0 : _b.mbm) === null || _c === void 0 ? void 0 : _c.recipeId).then((data) => {\n var _a, _b;\n customEventBus.emit('account:update', { wishlistIds: data.items });\n customEventBus.emit('wishlist:update', { wishlistIds: data.items });\n (props === null || props === void 0 ? void 0 : props.updateWishlist) && props.updateWishlist(data.items.length);\n analytics.saveForLaterAddToWishlist(props.item, (_b = (_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.analyticsAttributes) === null || _b === void 0 ? void 0 : _b.dimension36);\n analytics.removeitem(props.item);\n analytics.wishlistInteraction(props.item.id, 'mini bag');\n });\n const pid = props.item.id;\n const uuid = props.item.lineUUID;\n api.removeFromBag(pid, uuid).then(() => props.onRemove());\n }\n else {\n props.showLoginModal();\n }\n }, [props.item]);\n const moveGiftCardToWishlist = useCallback(() => {\n var _a, _b;\n if (!((_a = props.item) === null || _a === void 0 ? void 0 : _a.isGiftCard))\n return;\n if (window.loggedin || !((_b = props.item) === null || _b === void 0 ? void 0 : _b.isMbm)) {\n api.moveToWishlist(props.item.lineUUID).then((data) => {\n customEventBus.emit('account:update', { wishlistIds: data.items });\n customEventBus.emit('wishlist:update', { wishlistIds: data.items });\n (props === null || props === void 0 ? void 0 : props.updateWishlist) && props.updateWishlist(data.items.length);\n props.onRemove && props.onRemove();\n });\n }\n else {\n props.showLoginModal();\n }\n }, [props.item]);\n return (React.createElement(\"li\", { className: \"minibag__productcontainer\" },\n React.createElement(\"div\", { className: \"minibag__product\", \"data-bagid\": props.item.id, tabIndex: -1 },\n React.createElement(\"div\", { className: \"minibag__product__image\", \"aria-hidden\": \"true\", style: { opacity: ((_e = props.item.availability) === null || _e === void 0 ? void 0 : _e.isOutOfStock) ? 0.5 : undefined } }, props.inOrderSummary ? (\n // \n React.createElement(React.Fragment, null,\n React.createElement(ProductImageButton, { onImageClick: () => setGalleryIsOpen(0), clicked: true, ariaLabel: t('button.openProductGallery', { productName: (_g = (_f = props.item) === null || _f === void 0 ? void 0 : _f.imgs) === null || _g === void 0 ? void 0 : _g.alt, index: 0, total: media.length }) },\n React.createElement(ProductImage, { img: props.item.imgs, sizes: [SM], type: \"F\", tiletype: ((_h = props.item) === null || _h === void 0 ? void 0 : _h.isMbm) ? 'mbm' : '' })),\n React.createElement(ProductGallery, { isOpen: galleryIsOpen, onRequestClose: () => setGalleryIsOpen(false), product: props.item, media: media, showPDPLink: true }))) : (React.createElement(\"a\", { className: \"text-decoration-none\", href: props.item.productUrl },\n React.createElement(ProductImage, { img: props.item.imgs, sizes: [SM], type: \"F\", tiletype: ((_j = props.item) === null || _j === void 0 ? void 0 : _j.isMbm) ? 'mbm' : '' })))),\n React.createElement(\"div\", { className: \"minibag__product__content\" },\n React.createElement(\"div\", { className: \"minibag__product__columns\" },\n React.createElement(\"div\", { className: \"minibag__product__title\" },\n props.inOrderSummary ? (React.createElement(\"h3\", null, props.item.productName)) : (React.createElement(\"a\", { className: \"text-decoration-none\", href: props.item.productUrl },\n React.createElement(\"h3\", null, props.item.productName))),\n !props.item.isGiftCard && (React.createElement(\"div\", { className: \"minibag__product__info\" },\n !props.onRemove && (React.createElement(\"p\", { className: \"option-product__quantity\" },\n t('bag.quantity'),\n \": \",\n props.item.quantity)),\n ((_k = props.item) === null || _k === void 0 ? void 0 : _k.isParfum) ? (React.createElement(\"p\", { className: \"option-product__size\" },\n t('label.format'),\n \" \", (_m = (_l = props.item) === null || _l === void 0 ? void 0 : _l.parfumAttributes.productFamily.find((el) => el.id == props.item.id)) === null || _m === void 0 ? void 0 :\n _m.format)) : (React.createElement(ColorAndSize, { item: props.item, invertElements: true }))))),\n React.createElement(\"p\", { className: \"minibag__product__price\" }, (_q = (_p = (_o = props.item) === null || _o === void 0 ? void 0 : _o.price) === null || _p === void 0 ? void 0 : _p.sales) === null || _q === void 0 ? void 0 :\n _q.formatted,\n ((_s = (_r = props.item) === null || _r === void 0 ? void 0 : _r.availability) === null || _s === void 0 ? void 0 : _s.isOutOfStock) && React.createElement(\"small\", { className: \"minibag__product__label--outofstock\" }, t('product.notavailable')),\n ((_u = (_t = props.item) === null || _t === void 0 ? void 0 : _t.availability) === null || _u === void 0 ? void 0 : _u.preorder) && React.createElement(\"small\", { className: \"minibag__product__label--preorder\" }, t('button.preorder')))),\n !!props.onRemove && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"minibag__product__actions\" },\n React.createElement(\"button\", { className: \"cta cta--saveforlater\", onClick: ((_v = props === null || props === void 0 ? void 0 : props.item) === null || _v === void 0 ? void 0 : _v.isGiftCard) ? moveGiftCardToWishlist : moveToWishlist }, t('app.wishlist.add')),\n React.createElement(\"p\", { className: \"minibag__product__actions__qty\" },\n t('bag.quantity'),\n \": \",\n props.item.quantity)),\n React.createElement(\"div\", { className: \"remove-container-btn\" },\n React.createElement(\"button\", { className: \"cta cta--remove\", onClick: removeFromBag }, t('button.remove'))))))),\n ((_w = props.item) === null || _w === void 0 ? void 0 : _w.isMbm) && !props.item.available && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"bag-disclaimer\" },\n React.createElement(\"button\", { type: 'button', onClick: () => setMbmNotify(true), dangerouslySetInnerHTML: { __html: t('mbm.highdemandshort') } })),\n React.createElement(MbmNotifyMeModal, { isOpen: mbmNotify, onRequestClose: () => setMbmNotify(false), imgs: props.item.imgs, editLink: (_y = (_x = props.item) === null || _x === void 0 ? void 0 : _x.mbm) === null || _y === void 0 ? void 0 : _y.editurl }))),\n ((_z = props.item) === null || _z === void 0 ? void 0 : _z.isMbm) && (React.createElement(\"div\", { className: \"col-12 minibag__product__no_refundable\" },\n React.createElement(\"p\", { className: \"mb-12\", dangerouslySetInnerHTML: { __html: t('mbm.itemnotreturnable', { 0: props === null || props === void 0 ? void 0 : props.faqurl }) } }),\n props.inOrderSummary && React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('mbm.itemdisclaimer', { 0: props === null || props === void 0 ? void 0 : props.urllegalareareturn }) } }))),\n props.item.isParfum && (React.createElement(\"div\", { className: \"col-12 minibag__product__no_refundable\" }, (props === null || props === void 0 ? void 0 : props.hazardNotShippable) ? (React.createElement(React.Fragment, null,\n React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: t('checkout.shipping.deliveyhazarditem') } }),\n ' ')) : (React.createElement(\"p\", { className: \"primary-xs\" }, window.isClothing ? t('returns.itemnotreturnableparfumclothing') : t('returns.itemnotreturnableparfum'))))),\n ((_0 = props.item.availability) === null || _0 === void 0 ? void 0 : _0.preorder) && React.createElement(BagItemPreorderinfo, { item: props.item })));\n};\nexport default MiniBagItem;\n","import classNames from 'classnames';\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport PinchZoom, { make3dTransformValue } from 'react-quick-pinch-zoom';\nimport ProductVideo from './ProductVideo';\nlet zoomTimerId;\nconst ProductGalleryImage = (props) => {\n const { t } = useTranslation();\n const zoomRef = useRef();\n const imgRef = useRef();\n const [isDragging, setIsDragging] = useState(false);\n const [zoomPos, setZoomPos] = useState({\n x: 0,\n y: 0,\n scale: 1,\n });\n const onUpdate = useCallback(({ x, y, scale }) => {\n const { current: img } = imgRef;\n if (img) {\n clearTimeout(zoomTimerId);\n zoomTimerId = setTimeout(() => {\n setZoomPos({ x, y, scale });\n }, 100);\n const value = make3dTransformValue({ x, y, scale });\n img.style.setProperty('transform', value);\n }\n }, []);\n const zoomOut = () => {\n zoomRef === null || zoomRef === void 0 ? void 0 : zoomRef.current.scaleTo({\n x: window.innerWidth / 2,\n y: window.innerHeight / 2,\n scale: zoomPos.scale - 0.5,\n });\n };\n const zoomIn = () => {\n zoomRef === null || zoomRef === void 0 ? void 0 : zoomRef.current.scaleTo({\n x: window.innerWidth / 2,\n y: window.innerHeight / 2,\n scale: zoomPos.scale + 0.5,\n });\n };\n useEffect(() => {\n if (props.activateIndex) {\n zoomPos.scale = 1;\n document.querySelectorAll('.zoom-img-wrapper').forEach((e) => {\n let img = e;\n img.style.removeProperty('transform');\n });\n }\n }, [props.activateIndex]);\n const hasVideo = () => {\n return ['_V1', '_V2', '_V3', '_V4', '_V5', '_V6', '_V7', '_V8', '_V9', '_V10'].some((e) => props.media[props.index].includes(e));\n };\n return (React.createElement(\"div\", { className: classNames('gallery-wrapper', { scaling: zoomPos.scale > 1 }) }, hasVideo() ? (React.createElement(\"div\", { className: \"gallery-wrapper__video\" },\n React.createElement(ProductVideo, { url: props.media[props.index], inZoomModal: true }),\n React.createElement(\"button\", { className: \"product-video-pause\", \"aria-label\": t('button.pause'), \"data-pause\": true, \"aria-pressed\": \"false\" }))) : (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"modal__zoom-controls\" },\n React.createElement(\"button\", { \"aria-label\": t('button.zoomout'), disabled: zoomPos.scale <= 1, className: \"modal__zoom-out\", onClick: zoomOut }),\n React.createElement(\"span\", { className: \"modal__zoom-scale\" },\n Math.round(zoomPos.scale * 100),\n \"%\"),\n React.createElement(\"button\", { \"aria-label\": t('button.zoomin'), disabled: zoomPos.scale >= 2, className: \"modal__zoom-in\", onClick: zoomIn })),\n React.createElement(PinchZoom, { ref: zoomRef, onUpdate: onUpdate, maxZoom: 2, minZoom: 1, onDragStart: () => setIsDragging(true), onDragEnd: () => setIsDragging(false) },\n React.createElement(\"div\", { className: \"zoom-img-wrapper\", ref: imgRef },\n React.createElement(\"img\", { className: classNames('zoom-image-wrapper', { dragging: isDragging }), src: props.src || props.media[props.index], alt: \"\", loading: \"lazy\" })))))));\n};\nexport default ProductGalleryImage;\n","import ModalDialog from '@ui/modal/ModalDialog';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport SwiperCore, { EffectFade, Keyboard, Navigation, Thumbs, FreeMode, Pagination } from 'swiper';\nimport { Swiper as SwiperInstance, SwiperSlide } from 'swiper/react';\nimport imageutils, { XS, SM, LG, MD } from '@utils/imageutils';\nimport { appPostStructuredMessage } from '@common/utils/appUtils';\nimport ProductGalleryImage from './ProductGalleryImage';\nimport useBreakpoint from '@common/utils/useBreakpoint';\nimport ProductVideo from './ProductVideo';\nimport classNames from 'classnames';\nSwiperCore.use([Keyboard, Navigation, EffectFade, Thumbs, FreeMode, Pagination]);\nconst ProductGallery = (props) => {\n const { t } = useTranslation();\n const [swiperInstance, setSwiperInstance] = useState();\n const [thumbsSwiper, setThumbsSwiper] = useState(null);\n const [activeIndex, setActiveIndex] = useState(0);\n const [productUrl, setProductUrl] = useState();\n const [isBeginning, setIsBeginning] = useState(true);\n const [isEnd, setIsEnd] = useState(false);\n const currentBreakpoint = useBreakpoint();\n const handleClose = () => {\n setThumbsSwiper(null);\n props.onRequestClose();\n };\n const gapMap = {\n 0: 4.7,\n 375: 4.7,\n 600: 4,\n 1024: 8,\n 1200: 16,\n 1440: 16,\n };\n const sizeThumbsMap = {\n 0: XS,\n 375: XS,\n 600: SM,\n 1024: XS,\n 1200: XS,\n 1440: XS,\n };\n const sizeMainMap = {\n 0: MD,\n 375: MD,\n 600: MD,\n 1024: LG,\n 1200: LG,\n 1440: LG,\n };\n //dev level to debug with video on sandbox\n // const media: string[] = [\n // 'https://moncler-cdn.thron.com/delivery/public/video/moncler/H209Z1A00001M2904999_V2/dpx6uv/WEBFULLHD/H209Z1A00001M2904999_V2.mp4',\n // 'https://moncler-cdn.thron.com/delivery/public/video/moncler/H209Z1A00001M2904999_V1/dpx6uv/WEBFULLHD/H209Z1A00001M2904999_V1.mp4',\n // 'https://moncler-cdn.thron.com/delivery/public/image/moncler/H209Z1A00001M2904999_X/dpx6uv/std/0x0/H209Z1A00001M2904999_X.jpg',\n // 'https://staging2.cdn.moncler.ows.farm/on/demandware.static/-/Library-Sites-library-global/default/dw400a89ed/mbm/3-vion-special70-v2.jpg',\n // 'https://staging2.cdn.moncler.ows.farm/on/demandware.static/-/Library-Sites-library-global/default/dw7335a406/mbm/3-vion-iconic-v2.jpg',\n // 'https://staging2.cdn.moncler.ows.farm/on/demandware.static/-/Library-Sites-library-global/default/dw7335a406/mbm/3-vion-iconic-v2.jpg',\n // 'https://staging2.cdn.moncler.ows.farm/on/demandware.static/-/Library-Sites-library-global/default/dw7335a406/mbm/3-vion-iconic-v2.jpg',\n // 'https://staging2.cdn.moncler.ows.farm/on/demandware.static/-/Library-Sites-library-global/default/dw7335a406/mbm/3-vion-iconic-v2.jpg',\n // ];\n const media = props.media;\n // @ts-ignore\n const direction = useMemo(() => (currentBreakpoint >= window.mqObj.md ? 'vertical' : 'horizontal'), [currentBreakpoint]);\n const slides = useMemo(() => {\n //@ts-ignore -- ignoring breakpoint mismatch\n return currentBreakpoint >= window.mqObj.md ? 5 : 5.5;\n }, [currentBreakpoint]);\n const paginationMessage = t('carousel.paginationbulletmessage');\n useEffect(() => {\n var _a, _b;\n // set productUrl in product gallery Minibag / Bag\n let variationColor = (_b = (_a = props.product) === null || _a === void 0 ? void 0 : _a.variationAttributes) === null || _b === void 0 ? void 0 : _b.find((va) => va.id === 'color');\n let selectedValue = variationColor === null || variationColor === void 0 ? void 0 : variationColor.values.find((v) => v.value === variationColor.value);\n let prodUrl = selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.productUrl;\n setProductUrl(prodUrl);\n }, [props.product]);\n const updateProgressThumb = (swiper) => {\n setIsBeginning(swiper.isBeginning);\n setIsEnd(swiper.isEnd);\n };\n const appPdPLink = () => {\n appPostStructuredMessage('pdpLink', { pid: props.product.id });\n };\n return (React.createElement(ModalDialog, { noPadding: true, hideHeader: true, className: \"product-zoom-modal focus-inverted\", isOpen: typeof props.isOpen === 'number', onRequestClose: handleClose, contentLabel: \"gallery\", overlayClassName: \"mobile-visible\", onAfterClose: () => {\n if (props.scrollHeight) {\n window.scrollTo(0, props.scrollHeight);\n }\n } },\n props.showPDPLink &&\n (window.appmode ? (React.createElement(\"button\", { type: \"button\", className: \"product-gallery__link\", onClick: appPdPLink },\n React.createElement(\"p\", null, t('carousel.gotoproductpage')))) : (React.createElement(\"a\", { href: props.product.productUrl || productUrl, className: \"product-gallery__link\" },\n React.createElement(\"p\", null, t('carousel.gotoproductpage'))))),\n React.createElement(SwiperInstance, { onSwiper: (swipr) => {\n setSwiperInstance(swipr);\n }, onSlideChange: (swiper) => {\n setActiveIndex(swiper.activeIndex);\n }, keyboard: true, direction: direction, navigation: {\n nextEl: '.carousel-gallery__arrow--arrow-right',\n prevEl: '.carousel-gallery__arrow--arrow-left',\n }, mousewheel: {\n forceToAxis: true,\n thresholdDelta: 20,\n }, allowTouchMove: false, className: \"product-zoom swiper-container swiper-container--gallery\", effect: \"fade\", initialSlide: typeof props.isOpen === 'number' ? props.isOpen : 0, speed: 1000, thumbs: { swiper: thumbsSwiper }, loop: true, loopPreventsSlide: false, slidesPerView: 1 }, media === null || media === void 0 ? void 0 : media.map((url, index) => {\n var _a, _b, _c;\n return (React.createElement(SwiperSlide, { key: `${(_a = props.product) === null || _a === void 0 ? void 0 : _a.id}${index}` },\n React.createElement(ProductGalleryImage, { index: index, media: media, activateIndex: activeIndex, src: imageutils.transform(url, sizeMainMap[currentBreakpoint], (_c = (_b = props.product) === null || _b === void 0 ? void 0 : _b.imgs) === null || _c === void 0 ? void 0 : _c.alt, null, 'avif'), isZoom: true }),\n React.createElement(\"div\", { className: \"swiper-lazy-preloader\" })));\n })),\n React.createElement(\"div\", { className: \"product-zoom-thumbs--wrapper\" },\n currentBreakpoint >= window.mqObj.md && (React.createElement(\"button\", { className: \"product-zoom-thumbs__navbutton product-zoom-thumbs__navbutton-prev\", onClick: () => thumbsSwiper === null || thumbsSwiper === void 0 ? void 0 : thumbsSwiper.slidePrev(), disabled: isBeginning, \"aria-label\": t('carousel.prevslidemessage') })),\n React.createElement(SwiperInstance, { onSwiper: (swiper) => {\n setThumbsSwiper(swiper);\n updateProgressThumb(swiper);\n }, onTransitionStart: updateProgressThumb, onTransitionEnd: updateProgressThumb, watchOverflow: true, spaceBetween: gapMap[currentBreakpoint] || 4, direction: direction, slidesPerView: slides, watchSlidesProgress: true, modules: [Thumbs, FreeMode, Navigation], className: classNames('product-zoom-thumbs swiper-container', { start: isBeginning }, { end: isEnd }), freeMode: { enabled: true, sticky: true }, slideToClickedSlide: true, centerInsufficientSlides: true, grabCursor: true, initialSlide: typeof props.isOpen === 'number' ? props.isOpen : 0, \n // loop\n // loopPreventsSlide={false}\n threshold: 20 }, media === null || media === void 0 ? void 0 : media.map((url, index) => {\n var _a;\n return (React.createElement(SwiperSlide, { key: `${(_a = props.product) === null || _a === void 0 ? void 0 : _a.id}${index}` },\n React.createElement(\"button\", { onClick: () => swiperInstance.slideTo(index + 1), className: \"product-zoom-thumbs__thumb-button\", \"data-index\": activeIndex, \"aria-label\": paginationMessage.replace('INDEX_NUMBER', `${index + 1}`) },\n url.includes('_V1') ||\n url.includes('_V2') ||\n url.includes('_V3') ||\n url.includes('_V4') ||\n url.includes('_V5') ||\n url.includes('_V6') ||\n url.includes('_V7') ||\n url.includes('_V8') ||\n url.includes('_V9') ||\n url.includes('_V10') ? (React.createElement(ProductVideo, { url: url, isThumb: true })) : (React.createElement(\"img\", { key: url, src: imageutils.transform(url, sizeThumbsMap[currentBreakpoint], ''), alt: \"\", loading: \"lazy\" })),\n React.createElement(\"div\", { className: \"swiper-lazy-preloader\" }))));\n })),\n currentBreakpoint >= window.mqObj.md && (React.createElement(\"button\", { className: \"product-zoom-thumbs__navbutton product-zoom-thumbs__navbutton-next\", onClick: () => thumbsSwiper === null || thumbsSwiper === void 0 ? void 0 : thumbsSwiper.slideNext(), disabled: isEnd, \"aria-label\": t('carousel.nextslidemessage') })))));\n};\nexport default ProductGallery;\n","import { useEffect } from 'react';\nimport { useAnimatedRouteContext } from './AnimatedRoute';\nconst useAnimatedImage = (productId, el, productUuid) => {\n const { registerAnimatedImage, unregisterAnimatedImage } = useAnimatedRouteContext();\n useEffect(() => {\n if ((productId || productUuid) && el.current) {\n registerAnimatedImage({\n el,\n productId,\n productUuid,\n });\n }\n return () => {\n if (productId || productUuid) {\n unregisterAnimatedImage(productId, productUuid);\n }\n };\n }, [productId, productUuid]);\n};\nexport default useAnimatedImage;\n","import useAnimatedImage from '@moncler/components/routerTransitions/useAnimatedImage';\nimport imageutils, { LG, MD, SM, XS, XXS } from '@utils/imageutils';\nimport classNames from 'classnames';\nimport React, { useMemo, useRef } from 'react';\nimport useBreakpoint from '@utils/useBreakpoint';\nconst defaultSizes = [XXS, XS, SM, MD];\nconst ProductImage = (props) => {\n var _a;\n const el = useRef();\n const image = useMemo(() => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n if (props.index != undefined) {\n let url = (_b = (_a = props.img) === null || _a === void 0 ? void 0 : _a.urls) === null || _b === void 0 ? void 0 : _b[props.index];\n if (props.genderImageSorted) {\n url = (_d = (_c = props.img) === null || _c === void 0 ? void 0 : _c[props.genderImageSorted]) === null || _d === void 0 ? void 0 : _d[props.index];\n }\n return url;\n }\n if (props.type) {\n let imageoldsuffix = '_' + props.type + '.';\n let imagenewsuffix = '_' + props.type + '1.';\n let img = (_f = (_e = props.img) === null || _e === void 0 ? void 0 : _e.urls) === null || _f === void 0 ? void 0 : _f.find((u) => u && (u.includes(imageoldsuffix) || u.includes(imagenewsuffix)));\n if (!img && props.type === 'X') {\n // fallback su F per vecchie immagini\n img = (_h = (_g = props.img) === null || _g === void 0 ? void 0 : _g.urls) === null || _h === void 0 ? void 0 : _h.find((u) => u && (u.includes('_F.') || u.includes('_F1.')));\n }\n if (img) {\n return img;\n }\n }\n return (_j = props.img) === null || _j === void 0 ? void 0 : _j.urls[0];\n }, [props.img, props.index, props.type]);\n // custom hook per animated image - funziona solo se tutti è tre i parametri sono valorizzati e mi trovo dentro AnimatedRoute\n if (((props === null || props === void 0 ? void 0 : props.index) == 0 || !(props === null || props === void 0 ? void 0 : props.index)) && el && props.animatedImage) {\n // useAnimatedImage(props.productId, el);\n useAnimatedImage(props.productId, el, props.productUuid);\n }\n const lowResImg = useMemo(() => { var _a; return imageutils.transform(image, XXS, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt); }, [image]);\n const currentBreakpoint = useBreakpoint();\n const hiResImage = useMemo(() => {\n var _a, _b;\n if (currentBreakpoint >= window.mqObj.md) {\n return imageutils.transform(image, LG, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt, null, 'avif');\n }\n else {\n return imageutils.transform(image, MD, (_b = props.img) === null || _b === void 0 ? void 0 : _b.alt, null, 'avif');\n }\n }, [currentBreakpoint, image]);\n const multipleSrc = useMemo(() => {\n let srcs = [];\n (props.sizes || defaultSizes).forEach((sz, i) => {\n var _a;\n srcs.push(`${imageutils.transform(image, sz, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt, props.imgQuality)} ${sz.width}w`);\n });\n return srcs.join(', ');\n }, [image]);\n const multipleSrcAvif = useMemo(() => {\n let srcs = [];\n (props.sizes || defaultSizes).forEach((sz, i) => {\n var _a;\n srcs.push(`${imageutils.transform(image, sz, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt, props.imgQuality, 'avif')} ${sz.width}w`);\n });\n return srcs.join(', ');\n }, [image]);\n const lazyPosterImg = useMemo(() => {\n return props.lazyLowRes ? lowResImg : 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n }, [image]);\n const altText = useMemo(() => {\n var _a, _b;\n const index = (_a = props.seoIndex) !== null && _a !== void 0 ? _a : props.index;\n return `${props.alt || ((_b = props.img) === null || _b === void 0 ? void 0 : _b.alt)}${index >= 0 ? ` ${index + 1}` : ''}`;\n }, [image]);\n const imageElement = (React.createElement(\"picture\", { className: classNames({ lazyload: !props.lazyDisabled }, props.className) },\n React.createElement(\"source\", Object.assign({}, (!props.lazyDisabled && { ['data-srcset']: multipleSrcAvif }), { srcSet: props.lazyDisabled ? multipleSrcAvif : lazyPosterImg, type: 'image/avif' })),\n React.createElement(\"source\", Object.assign({}, (!props.lazyDisabled && { ['data-srcset']: multipleSrc }), { srcSet: props.lazyDisabled ? multipleSrc : lazyPosterImg, type: 'image/webp' })),\n React.createElement(\"img\", { ref: props.ref || el, alt: altText, src: props.lazyDisabled ? hiResImage : lowResImg, \"data-sizes\": \"auto\", \"data-idx\": props.index || 0, className: classNames({ lazyload: !props.lazyDisabled }, props.className), \"data-quality-img\": hiResImage, \n //width={\"100%\"}\n height: XXS.height, style: props.style, \"aria-hidden\": (props === null || props === void 0 ? void 0 : props.ariaHidden) != undefined ? props === null || props === void 0 ? void 0 : props.ariaHidden : !!props.alt || !!((_a = props.img) === null || _a === void 0 ? void 0 : _a.alt) })));\n if (props.onlyImage) {\n return imageElement;\n }\n if (!props.img) {\n return (React.createElement(\"div\", { className: \"product-image\", \"data-tiletype\": props.tiletype, \"data-type\": props.type },\n React.createElement(\"img\", { alt: \"\", src: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkZmD+DwABGwEHEIRMfwAAAABJRU5ErkJggg==\", \"data-idx\": props.index || 0, className: props.className, width: XXS.width, height: XXS.height, style: props.style })));\n }\n return (React.createElement(\"div\", { className: \"product-image\", \"data-tiletype\": props.tiletype, \"data-type\": props.type }, imageElement));\n};\nexport default ProductImage;\n","import React from 'react';\nconst ProductImageButton = (props) => {\n return (React.createElement(\"button\", { className: \"product-image-button\", \"aria-haspopup\": \"dialog\", onClick: (e) => {\n //Prevent opening the zoom image when play/pause video\n if (!e.target.classList.contains('product-video-pause')) {\n //Prevent opening the zoom image when tapping on hotspots\n if (!e.target.closest('.spott-marker-box'))\n props.onImageClick();\n }\n }, \"aria-label\": props.ariaLabel }, props.children));\n};\nexport default ProductImageButton;\n","import ThronVideo from '@components/utils/ThronVideo';\nimport classNames from 'classnames';\nimport React, { useEffect, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst ProductVideo = (props) => {\n const { t } = useTranslation();\n const pdpVideoRef = useRef(null);\n function findElementWithPauseAttribute(videoElement) {\n let currentElement = videoElement.parentNode;\n while (currentElement !== document) {\n const pauseElement = currentElement.querySelector('[data-pause]');\n if (pauseElement) {\n return pauseElement;\n }\n currentElement = currentElement.parentNode;\n }\n return null; // Se non viene trovato nessun elemento con l'attributo data-pause\n }\n useEffect(() => {\n let pauseButton;\n const onPause = (e) => {\n const currentButton = e.target;\n if (currentButton.ariaPressed === 'true') {\n currentButton.setAttribute('aria-pressed', 'false');\n if (props.inZoomModal) {\n pdpVideoRef.current\n .closest('.product-zoom-modal')\n .querySelectorAll('.product-zoom-thumbs--wrapper video')\n .forEach((v) => {\n if (pdpVideoRef.current.src === v.src) {\n v.play();\n }\n });\n pdpVideoRef.current.play();\n }\n else {\n pdpVideoRef.current.play();\n }\n }\n else {\n currentButton.setAttribute('aria-pressed', 'true');\n pdpVideoRef.current.pause();\n if (props.inZoomModal) {\n pdpVideoRef.current\n .closest('.product-zoom-modal')\n .querySelectorAll('.product-zoom-thumbs--wrapper video')\n .forEach((v) => {\n if (pdpVideoRef.current.src === v.src) {\n v.pause();\n }\n });\n pdpVideoRef.current.pause();\n }\n else {\n pdpVideoRef.current.pause();\n }\n }\n };\n if (pdpVideoRef.current) {\n pauseButton = findElementWithPauseAttribute(pdpVideoRef.current);\n if (pauseButton && !props.isThumb) {\n pauseButton.addEventListener('click', onPause);\n }\n }\n return () => pauseButton === null || pauseButton === void 0 ? void 0 : pauseButton.removeEventListener('click', onPause);\n });\n const videoElement = props.url ? (React.createElement(\"video\", { ref: pdpVideoRef, className: classNames('wrapper-product-video', { 'is-parfum': props.isParfum }), playsInline: true, autoPlay: true, muted: true, loop: true, src: props.url })) : (React.createElement(ThronVideo, { thronID: props.tronID, autoplay: true, muted: true, className: classNames('product-video-wrapper'), sessionId: props.sessionId, lockBitrate: window.lockBitrateProductVideos }));\n if (props.inGallery) {\n return (React.createElement(\"div\", { className: \"wrapper-product-video\" },\n videoElement,\n !props.isThumb && React.createElement(\"button\", { className: \"product-video-pause\", \"aria-label\": t('button.pause'), \"data-pause\": true, \"aria-pressed\": \"false\" })));\n }\n return videoElement;\n};\nexport default ProductVideo;\n","import React, { Suspense, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport api from '@utils/api';\nimport { freeExpressShippingCustomerGroup } from '@utils/constants';\nconst LoginModal = React.lazy(() => import('@components/login/LoginModal'));\nconst ShippingDisclaimer = (props) => {\n const { t } = useTranslation();\n const [promotionInfo, setPromotionInfo] = useState();\n const [campaignActive, setCampaingActive] = useState(false);\n const [hasFreeExpressShipping, setHasFreeExpressShipping] = useState(false);\n const [loginOpen, setLoginOpen] = useState(false);\n useEffect(() => {\n api.getPromotionInfo().then((data) => {\n var _a, _b;\n setPromotionInfo(data);\n if ((_a = data.activeCampaigns) === null || _a === void 0 ? void 0 : _a.includes(window.promoFreeExpressShippingNewMembers)) {\n setCampaingActive(true);\n }\n if ((_b = data.customerGroups) === null || _b === void 0 ? void 0 : _b.includes(freeExpressShippingCustomerGroup)) {\n setHasFreeExpressShipping(true);\n }\n });\n }, []);\n if (!promotionInfo || !campaignActive || (window.loggedin && !hasFreeExpressShipping)) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: \"product-selection__shipping-disclaimer\" },\n props.incontext == 'productSelection' && (React.createElement(\"p\", { className: \"shipping-disclaimer__title\" },\n React.createElement(\"i\", { className: \"icon--members\", \"aria-label\": \"members only\" }),\n t('expressshippingfree.title'))),\n React.createElement(\"div\", { className: \"shipping-disclaimer_description\" },\n React.createElement(\"span\", { className: \"mr-8\" },\n React.createElement(React.Fragment, null,\n props.incontext == 'productSelection' && t('expressshippingfree.description'),\n props.incontext == 'bag' && React.createElement(\"strong\", null, (promotionInfo === null || promotionInfo === void 0 ? void 0 : promotionInfo.guest) ? t('bag.freeexpressdeliveryguest') : t('bag.freeexpressdelivery')))),\n React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, (promotionInfo === null || promotionInfo === void 0 ? void 0 : promotionInfo.guest) && (React.createElement(LoginModal, { incontext: \"membersonly\", reloadPage: true, modalStatus: loginOpen, updateStatus: (status) => setLoginOpen(status), buttonText: t('expressshippingfree.loginbutton'), customClass: \"button--link-button bold\" }))))));\n};\nexport default ShippingDisclaimer;\n"],"names":["props","videoRef","useRef","thronComponent","setThronComponent","useState","useEffect","current","changeContent","thronID","options","onPauseCallback","onPlayCallback","onCompleteCallback","onInitCallback","onTimeUpdate","loopTimes","newThronComponent","ref","className","thronMobileID","muted","autoplay","loop","lockBitrate","noskin","sessionId","StoneModalDialog","MocnclerModalDialog","Suspense","fallback","MO","Object","assign","ST","isLegacy","chat","zendesk","sprinklr","none","BAA","REASONS","PERSONALIZATION","DISCOVERCOLLECTION","APPOINTMENT","INSTORE","VIRTUAL","CARAVAN","TREBASELEGHE","SELF","GUEST","menu","overlay","timeout","freeExpressShippingCustomerGroup","contactFormId","imageutils","transform","url","size","alt","quality","format","indexOf","name","remove","lower","fullurl","replace","width","height","params","push","imgQuality","window","imagequality","avifsupported","webpsupported","length","map","i","join","includes","hires","this","HIRES","large","LG","medium","MD","small","SM","extraSmall","XS","aspectratio","Math","round","XXS","mediaQueries","mqObj","currentBreakpoint","setCurrentBreakpoint","_a","documentWidth","innerWidth","visualViewport","filtered","keys","filter","key","getInitialBreakpointValue","handleResize","currentBr","getCurrentBreakpoint","addEventListener","removeEventListener","_b","t","dangerouslySetInnerHTML","__html","date","item","availability","inStockDate","currency","price","sales","preordertoken","focusOnError","formdef","setFormdef","initialValues","setInitialValues","requestSent","setRequestSent","errors","setErrors","firstRender","isOpen","val","then","data","validate","async","values","hideHeader","noPadding","onRequestClose","id","imgs","img","src","urls","role","type","cls","onClick","inConfigurator","backToShopping","location","href","homeurl","editLink","onSubmit","err","success","productId","message","decorators","render","handleSubmit","form","submitting","pristine","def","disabled","_c","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_0","mbmNotify","setMbmNotify","galleryIsOpen","setGalleryIsOpen","media","setMedia","newMedia","el","videos","value","entries","splice","parseInt","mbm","palettes","concat","productVideo","productImage","path","startsWith","substring","removeFromBag","useCallback","pid","uuid","lineUUID","onRemove","showDeliveryLimitations","setShowDeliveryLimitations","moveToWishlist","loggedin","isMbm","recipeId","wishlistIds","items","updateWishlist","analyticsAttributes","dimension36","showLoginModal","moveGiftCardToWishlist","isGiftCard","tabIndex","style","opacity","isOutOfStock","undefined","inOrderSummary","onImageClick","clicked","ariaLabel","productName","index","total","sizes","tiletype","product","showPDPLink","productUrl","quantity","isParfum","parfumAttributes","productFamily","find","invertElements","formatted","preorder","available","editurl","faqurl","urllegalareareturn","hazardNotShippable","isClothing","zoomTimerId","useTranslation","zoomRef","imgRef","isDragging","setIsDragging","zoomPos","setZoomPos","x","y","scale","onUpdate","clearTimeout","setTimeout","setProperty","activateIndex","document","querySelectorAll","forEach","e","removeProperty","scaling","some","ProductVideo","inZoomModal","scaleTo","innerHeight","maxZoom","minZoom","onDragStart","onDragEnd","dragging","loading","swiperInstance","setSwiperInstance","thumbsSwiper","setThumbsSwiper","activeIndex","setActiveIndex","setProductUrl","isBeginning","setIsBeginning","isEnd","setIsEnd","useBreakpoint","sizeThumbsMap","sizeMainMap","direction","useMemo","md","slides","paginationMessage","variationColor","variationAttributes","va","selectedValue","v","prodUrl","updateProgressThumb","swiper","ModalDialog","contentLabel","overlayClassName","onAfterClose","scrollHeight","scrollTo","appmode","onSwiper","swipr","onSlideChange","keyboard","navigation","nextEl","prevEl","mousewheel","forceToAxis","thresholdDelta","allowTouchMove","effect","initialSlide","speed","thumbs","loopPreventsSlide","slidesPerView","isZoom","slidePrev","onTransitionStart","onTransitionEnd","watchOverflow","spaceBetween","watchSlidesProgress","modules","start","end","freeMode","enabled","sticky","slideToClickedSlide","centerInsufficientSlides","grabCursor","threshold","slideTo","isThumb","slideNext","productUuid","registerAnimatedImage","unregisterAnimatedImage","defaultSizes","image","genderImageSorted","imageoldsuffix","imagenewsuffix","u","animatedImage","lowResImg","hiResImage","multipleSrc","srcs","sz","multipleSrcAvif","lazyPosterImg","lazyLowRes","altText","seoIndex","imageElement","lazyload","lazyDisabled","srcSet","ariaHidden","onlyImage","target","classList","contains","closest","children","pdpVideoRef","pauseButton","onPause","currentButton","ariaPressed","setAttribute","play","pause","videoElement","currentElement","parentNode","pauseElement","querySelector","findElementWithPauseAttribute","playsInline","autoPlay","tronID","lockBitrateProductVideos","inGallery","LoginModal","promotionInfo","setPromotionInfo","campaignActive","setCampaingActive","hasFreeExpressShipping","setHasFreeExpressShipping","loginOpen","setLoginOpen","activeCampaigns","promoFreeExpressShippingNewMembers","customerGroups","incontext","guest","reloadPage","modalStatus","updateStatus","status","buttonText","customClass"],"sourceRoot":""}