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yC,EAASA,EAAQ3B,KAAO,gBAAoBw7B,GAAA,EAAuB,CAAEze,cAAe,qBAAsBjb,QAASH,EAAS85B,KAAM,sCAC3K95B,aAAyC,EAASA,EAAQ3B,KAAO,gBAAoBw7B,GAAA,EAAuB,CAAEze,cAAe,qBAAsBjb,QAASH,EAAS85B,KAAM,uCAC5K,gBAAoBC,GAAA,GAAa,CAAE55B,QAAS6hB,KAChD8W,GAAiB,gBAAoB,MAAO,CAAEz9B,UAAW,oBACrD,gBAAoB2+B,GAAA,EAAc,CAAE79B,MAAO28B,EAAa38B,MAAO88B,QAASH,EAAahW,QAAQmW,QAAQn5B,cACzG,gBAAoB,GAAsB,CAAEK,QAAS6hB,EAAgBniB,iBAAkBA,IACvF,gBAAoB,EAAAosB,SAAU,CAAEC,SAAU,gBAAoB,WAAgB,OAASkN,GAAsB,gBAAoB,GAAyB,CAAEj5B,QAAS6hB,EAAgBniB,iBAAkBu5B,MAA0B,C,qFCjRzO,IAR+Bz+B,IAE3B,MAAMm7B,GAAkB,IAAAj7B,UAAQ,KACrB,CAAEk7B,cAAe,CAAEJ,gBAAgB,QAAgB,gBAAgBh7B,EAAMm/B,YACjF,CAACn/B,EAAMwF,QAASxF,EAAMs/B,cACzB,OAAQ,gBAAoB,aAAkC,CAAE52B,MAAOyyB,GACnE,gBAAoB,UAAkB,CAAEoE,SAAU,WAAYC,SAAU,OAAQC,MAAOz/B,EAAMy/B,MAAON,KAAMn/B,EAAMm/B,KAAM35B,QAASxF,EAAMwF,UAAY,C","sources":["webpack:///./assets/stone/src/components/details/Details.tsx","webpack:///./assets/stone/src/components/details/DetailsLoader.tsx","webpack:///./assets/stone/src/components/modal/ModalDrawer.tsx","webpack:///./assets/stone/src/components/product/ProductInstalmentDrawer.tsx","webpack:///./assets/stone/src/components/product/ProductImageButton.tsx","webpack:///./assets/stone/src/components/product/ProductGalleryImage.tsx","webpack:///./assets/stone/src/components/product/ProductZoomGallery.tsx","webpack:///./assets/stone/src/components/reserve/ProductActionReserveInBoutique.tsx","webpack:///./assets/common/src/utils/dateUtils.ts","webpack:///./assets/moncler/src/components/product/GiftCardPurchaseModal.tsx","webpack:///./assets/moncler/src/components/product/ProductActionAddToBag.tsx","webpack:///./assets/moncler/src/components/product/ProductPushRefillModal.tsx","webpack:///./assets/moncler/src/components/product/ProductActionPushRefill.tsx","webpack:///./assets/stone/src/components/product/ProductButton.tsx","webpack:///./assets/common/src/ui/selector/SelectorColor.tsx","webpack:///./assets/stone/src/components/product/ProductSelectionColorPDP.tsx","webpack:///./assets/stone/src/components/product/useStickybarAnimation.tsx","webpack:///./assets/stone/src/components/product/ProductStickyTray.tsx","webpack:///./assets/common/src/state/features/product.selectors.ts","webpack:///./assets/stone/src/components/product/ProductDetailsEditorials.tsx","webpack:///./assets/stone/src/components/product/ProductDetailsDialog.tsx","webpack:///./assets/stone/src/components/product/ProductServiceLinks.tsx","webpack:///./assets/stone/src/components/product/ProductShopTheLookInfo.tsx","webpack:///./assets/stone/src/components/product/ProductSelection.tsx","webpack:///./assets/common/src/scripts/utilities/videosUtils.ts","webpack:///./assets/stone/src/components/product/ProductHero.tsx","webpack:///./assets/stone/src/utils/api.ts","webpack:///./assets/stone/src/components/product/ProductShopTheLookPanel.tsx","webpack:///./assets/stone/src/components/product/ProductShopTheLookModule.tsx","webpack:///./assets/stone/src/components/product/ProductShopTheLook.tsx","webpack:///./assets/stone/src/components/product/ProductPage.tsx","webpack:///./assets/stone/src/components/product/ProductRecommendation.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport ReactHtmlParser from 'react-html-parser';\nimport Accordion from '@common/ui/accordion/Accordion';\nimport AccordionItem from '@common/ui/accordion/AccordionItem';\nimport Image from '@stone/ui/image/Image';\nconst Details = (props) => {\n const _accordion = useMemo(() => (typeof props.accordion === 'string' ? JSON.parse(props.accordion) : props.accordion), [props.accordion]);\n const isSingle = useMemo(() => (_accordion === null || _accordion === void 0 ? void 0 : _accordion.length) == 1, [_accordion]);\n const renderAccordionTitle = (title, index) => (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-lg-12 offset-lg-12\" },\n React.createElement(\"h3\", { className: \"text-left font__cta\" },\n props.showCounter ? React.createElement(\"span\", { \"aria-hidden\": \"true\" }, index.toString().padStart(2, '0')) : null,\n \" \",\n title))));\n const renderAccordionContent = (content) => (React.createElement(\"div\", { className: \"row \" },\n React.createElement(\"div\", { className: `${isSingle ? 'col-lg-8 col-xxl-6' : 'col-lg-12'} offset-lg-12` },\n React.createElement(\"div\", { className: \"component-details__content\" }, ReactHtmlParser(content)))));\n const renderAccordion = () => (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"col-24 col-lg-12 component-details__title--wrapper\" },\n React.createElement(\"h2\", { className: \"component-details__title\" }, props.title)),\n React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(Accordion, null, _accordion.length &&\n _accordion.map((item, i) => {\n var _a, _b;\n return (React.createElement(AccordionItem, { isTitleMarkup: true, title: renderAccordionTitle(item.title, i + 1), isInitialOpen: i === 0, key: item.ID, accordionId: item.title + item.ID },\n React.createElement(\"div\", { className: \"row component-details__images\" },\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.first_image.path, srcMobile: (_a = item.first_imageMobile) === null || _a === void 0 ? void 0 : _a.path, alt: item.first_imageAlt })),\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.second_image.path, srcMobile: (_b = item.second_imageMobile) === null || _b === void 0 ? void 0 : _b.path, alt: item.second_imageAlt }))),\n renderAccordionContent(item.content)));\n })))));\n const renderSingle = () => {\n var _a, _b;\n const item = _accordion[0];\n return (React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(\"div\", { className: \"row component-details__images single\" },\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.first_image.path, srcMobile: (_a = item.first_imageMobile) === null || _a === void 0 ? void 0 : _a.path, alt: item.first_imageAlt })),\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.second_image.path, srcMobile: (_b = item.second_imageMobile) === null || _b === void 0 ? void 0 : _b.path, alt: item.second_imageAlt }))),\n React.createElement(\"div\", { className: \"col-24 col-lg-12 offset-lg-12 component-details__title--wrapper single\" },\n React.createElement(\"h2\", { className: \"component-details__title single\" }, item.title)),\n renderAccordionContent(item.content)));\n };\n return (React.createElement(\"div\", { className: \"component-details component-details--extended\" },\n React.createElement(\"div\", { className: \"container component-details__container\" },\n React.createElement(\"div\", { className: \"row component-details__contents\" }, isSingle ? renderSingle() : renderAccordion()))));\n};\nexport default Details;\n","import React from 'react';\nimport Details from './Details';\nconst DetailsLoader = (props) => {\n return React.createElement(Details, Object.assign({}, props));\n};\nexport default DetailsLoader;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Modal from 'react-modal';\nconst appElement = document.getElementById('maincontent');\nModal.setAppElement(appElement ? appElement : document.getElementsByTagName('body')[0]);\nconst ModalDrawer = (props) => {\n const { t } = useTranslation();\n const closeButton = () => {\n return (React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.close'), className: classNames('modal__close', props.closeInvertedSm && 'modal__close--inverted-sm'), onClick: (e) => {\n e.stopPropagation();\n (props === null || props === void 0 ? void 0 : props.onRequestClose) && props.onRequestClose(e);\n } }));\n };\n return (React.createElement(Modal, Object.assign({ \"aria-labelledby\": props.contentLabel ? 'dialog1_label' : '', closeTimeoutMS: 1000 }, props, { overlayClassName: classNames('overlay-modal', 'overlay-modal--drawer', props.overlayClassName), className: classNames('modal', 'modal--drawer', props.className) }),\n props.a11yBar,\n React.createElement(\"div\", { className: \"modal__closearea\", onClick: (e) => {\n e.stopPropagation();\n (props === null || props === void 0 ? void 0 : props.onRequestClose) && props.onRequestClose(e);\n }, \"aria-hidden\": \"true\" }),\n React.createElement(\"div\", { className: \"modal__wrapper\" },\n React.createElement(\"div\", { className: \"modal__container\" },\n React.createElement(\"div\", { className: classNames('modal__content', 'container') },\n !props.buttonInHeader && closeButton(),\n !props.hideHeader && (React.createElement(\"div\", { className: \"modal__header\" },\n props.buttonInHeader && closeButton(),\n props.contentLabel && !props.hideContentLabel && (React.createElement(\"h2\", { id: \"dialog1_label\", className: classNames('dialog__title', props.visuallyhidden && 'visually-hidden') }, props.contentLabel)),\n props.subtitle && React.createElement(\"p\", { className: \"dialog__description\" }, props.subtitle))),\n props.hasDivisor && React.createElement(\"hr\", { className: \"modal__divisor\" }),\n React.createElement(\"div\", { className: \"modal__body\" }, props.children))))));\n};\nexport default ModalDrawer;\n","import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ReactHtmlParser from 'react-html-parser';\nimport ModalDrawer from '@stone/components/modal/ModalDrawer';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { Tab, TabList, TabPanel, Tabs } from 'react-tabs';\nimport Image from '@stone/ui/image/Image';\nconst EVENTNAME = 'instalmentDrawer';\nconst requestInstalmentDrawerOpen = (e) => {\n customEventBus.emit(EVENTNAME + ':toggle', {\n action: 'open',\n originalEvent: e,\n });\n};\nexport const InstalmentButton = () => {\n const { t } = useTranslation();\n const [showButton, setShowButton] = useState(window.hasEditorialInstalment);\n useLayoutEffect(() => {\n let handler = (data) => {\n setShowButton(!(data === null || data === void 0 ? void 0 : data.distroy));\n };\n customEventBus.on(EVENTNAME + ':init', handler);\n return () => {\n customEventBus.off(EVENTNAME + ':init', handler);\n };\n }, []);\n return ((showButton && (React.createElement(\"button\", { \"aria-haspopup\": \"dialog\", onClick: (e) => {\n requestInstalmentDrawerOpen(e);\n }, className: \"button button--link-underline text-left\" }, t('instalmentpayment.pdpdrawer.cta')))) || React.createElement(React.Fragment, null));\n};\nconst ProductInstalmentDrawer = (props) => {\n const { t } = useTranslation();\n const [isOpen, setIsOpen] = useState(props.isOpen);\n const openerElement = useRef(null);\n // * MEMO ----------------------------------------------------------------------------------------------------------------------------------------\n const tabComponetns = useMemo(() => {\n var _a;\n return (_a = props.componentsDrawer) === null || _a === void 0 ? void 0 : _a.components;\n }, [props.componentsDrawer]);\n // * EFFECTS ----------------------------------------------------------------------------------------------------------------------------------------\n useEffect(() => {\n let handler = (data) => {\n var _a;\n if (data.action == 'open') {\n openerElement.current = (_a = data.originalEvent) === null || _a === void 0 ? void 0 : _a.target;\n setIsOpen(data.target || true);\n }\n else {\n setIsOpen(false);\n }\n };\n customEventBus.on(EVENTNAME + ':toggle', handler);\n return () => {\n customEventBus.off(EVENTNAME + ':toggle', handler);\n };\n }, []);\n useLayoutEffect(() => {\n customEventBus.emit(EVENTNAME + ':init', {});\n return () => {\n customEventBus.emit(EVENTNAME + ':init', { destroy: true });\n };\n }, [tabComponetns]);\n // * FUNCTIONS ----------------------------------------------------------------------------------------------------------------------------------------\n const handleClose = () => {\n props.handleClose && props.handleClose();\n setIsOpen(false);\n setTimeout(() => {\n var _a;\n (_a = openerElement.current) === null || _a === void 0 ? void 0 : _a.focus();\n }, 0);\n };\n if (!(props === null || props === void 0 ? void 0 : props.product))\n return React.createElement(React.Fragment, null);\n return (React.createElement(ModalDrawer, { isOpen: !!isOpen, onRequestClose: handleClose, contentLabel: t('instalmentpayment.pdpdrawer.title'), id: \"product-instarlment-modal\" }, (tabComponetns === null || tabComponetns === void 0 ? void 0 : tabComponetns.length) && (React.createElement(Tabs, { className: \"tabs tabs-stilized-hide mt-60\" },\n React.createElement(TabList, { className: \"react-tabs__tab-list\" }, tabComponetns.map((com, _i) => (React.createElement(Tab, { key: com.ID }, com.tabname)))),\n React.createElement(\"div\", { className: \"mt-60\" }, tabComponetns.map((com, _i) => {\n var _a;\n return (React.createElement(TabPanel, { key: com.ID, forceRender: true },\n com.logo && React.createElement(Image, { src: (_a = com.logo) === null || _a === void 0 ? void 0 : _a.path, alt: \"\" }),\n com.content && React.createElement(\"div\", { className: \"mt-12\" }, ReactHtmlParser(com.content)),\n com.link && com.linktext && (React.createElement(\"div\", { className: \"mt-40\" },\n React.createElement(\"a\", { href: com.link, target: \"_blank\", className: \"button button--cta\" },\n React.createElement(\"span\", null, com.linktext))))));\n }))))));\n};\nexport default ProductInstalmentDrawer;\n","import React from 'react';\nconst ProductImageButton = (props) => {\n return (React.createElement(\"button\", { className: \"product-image-button\", \"aria-haspopup\": \"dialog\", onClick: (e) => {\n const eTarget = e.target;\n const shouldClick = !eTarget.classList.contains('product-video-pause');\n //Prevent opening the zoom image when play/pause video\n if (shouldClick) {\n props.onImageClick();\n }\n }, \"aria-label\": props.ariaLabel }, props.children));\n};\nexport default ProductImageButton;\n","import classNames from 'classnames';\nimport React, { 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 startingValues = {\n x: 0,\n y: 0,\n scale: 1,\n };\n const maxZoom = 1.99;\n const zoomRef = useRef();\n const imgRef = useRef();\n const [isDragging, setIsDragging] = useState(false);\n const [zoomPos, setZoomPos] = useState(startingValues);\n const onUpdate = ({ 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 var _a;\n (_a = zoomRef.current) === null || _a === void 0 ? void 0 : _a.scaleTo({\n x: window.innerWidth / 2,\n y: window.innerHeight / 2,\n scale: zoomPos.scale - 0.5,\n });\n };\n const zoomIn = () => {\n var _a;\n (_a = zoomRef.current) === null || _a === void 0 ? void 0 : _a.scaleTo({\n x: window.innerWidth / 2,\n y: window.innerHeight / 2,\n scale: zoomPos.scale + 0.5,\n });\n };\n useEffect(() => {\n if (props.isActiveIndex) {\n setZoomPos(startingValues);\n }\n }, [props.isActiveIndex]);\n const onClickHandler = () => {\n if (zoomPos.scale < maxZoom) {\n zoomIn();\n }\n else {\n zoomOut();\n }\n };\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 }, { scaled: zoomPos.scale >= maxZoom }) }, hasVideo() ? (React.createElement(\"div\", { className: \"gallery-wrapper__video\" },\n React.createElement(ProductVideo, { url: props.media[props.index] }),\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-wrapper\" },\n React.createElement(\"span\", { className: \"modal__zoom-controls-hint\" }, t('pdp.zoom.pinchtozoom')),\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 font__title\" },\n Math.round(((zoomPos === null || zoomPos === void 0 ? void 0 : zoomPos.scale) || 1) * 100),\n \"%\"),\n React.createElement(\"button\", { \"aria-label\": t('button.zoomin'), disabled: zoomPos.scale >= maxZoom, className: \"modal__zoom-in\", onClick: zoomIn }))),\n React.createElement(\"div\", { className: \"zoom-img-container\" }, props.isActiveIndex && (React.createElement(PinchZoom, { containerProps: { onClick: onClickHandler }, ref: zoomRef, onUpdate: onUpdate, maxZoom: 2, minZoom: 1, onDragStart: () => setIsDragging(true), onDragEnd: () => setIsDragging(false), tapZoomFactor: 0 },\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 '@stone/components/modal/ModalDialog';\nimport React, { 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, { SM, MD, LG, HIRES } from '@utils/imageutils';\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 [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 sizeMainMap = {\n 0: MD,\n 375: MD,\n 768: MD,\n 1024: LG,\n 1280: LG,\n 1440: LG,\n 1920: HIRES,\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 paginationMessage = t('carousel.paginationbulletmessage');\n const updateProgressThumb = (swiper) => {\n setIsBeginning(swiper.isBeginning);\n setIsEnd(swiper.isEnd);\n };\n return (React.createElement(ModalDialog, { noPadding: true, hideHeader: true, fullWidth: true, fullHeight: true, overlayClassName: \"product-zoom-modal-overlay fade-in\", className: \"product-zoom-modal\", isOpen: props.initialSlide >= 0, onRequestClose: handleClose, contentLabel: \"gallery\", onAfterClose: () => {\n if (props.scrollHeight) {\n window.scrollTo(0, props.scrollHeight);\n }\n } },\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: props.initialSlide, 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;\n return (React.createElement(SwiperSlide, { key: `${index}-${url.split('_').pop()}` },\n React.createElement(ProductGalleryImage, { index: index, media: media, isActiveIndex: activeIndex - 1 === index, src: imageutils.transform(url, sizeMainMap[currentBreakpoint], (_b = (_a = props.product) === null || _a === void 0 ? void 0 : _a.imgs) === null || _b === void 0 ? void 0 : _b.alt, null, 'avif'), isZoom: true }),\n React.createElement(\"div\", { className: \"swiper-lazy-preloader\" })));\n })),\n React.createElement(\"div\", { className: \"product-zoom-thumbs--wrapper\" },\n React.createElement(SwiperInstance, { onSwiper: (swiper) => {\n setThumbsSwiper(swiper);\n updateProgressThumb(swiper);\n }, onTransitionStart: updateProgressThumb, onTransitionEnd: updateProgressThumb, watchOverflow: true, spaceBetween: 12, direction: direction, slidesPerView: 6, 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: props.initialSlide, \n // loop\n // loopPreventsSlide={false}\n threshold: 20 }, media === null || media === void 0 ? void 0 : media.map((url, index) => (React.createElement(SwiperSlide, { key: `${index}+${url.split('_').pop()}` },\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 ['_V1', '_V2', '_V3', '_V4', '_V5', '_V6', '_V7', '_V8', '_V9', '_V10'].some((e) => url.includes(e)) ? (React.createElement(ProductVideo, { url: url })) : (React.createElement(\"img\", { key: url, src: imageutils.transform(url, SM, ''), alt: \"\", loading: \"lazy\" })),\n React.createElement(\"div\", { className: \"swiper-lazy-preloader\" })))))))));\n};\nexport default ProductGallery;\n","import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport analytics from '@stone/utils/analytics';\nimport ProductBoutiqueModal from './ProductBoutiqueModal';\nimport Button from '@stone/ui/button/Button';\nconst ProductActionReserveInBoutique = (props) => {\n const { t } = useTranslation();\n const [showOverlay, setShowOverlay] = useState(false);\n return (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", cls: [`button--${props.buttonType}`], onClick: () => {\n setShowOverlay(true);\n analytics.productActionIntent('reserve in store', props.color.productId || props.product.id);\n }, ariaHaspopup: \"dialog\" },\n React.createElement(\"span\", null, props.overrideLabel || t('product.reserveinboutique'))),\n props.product && (React.createElement(ProductBoutiqueModal, { isOpen: showOverlay, title: props.overrideLabel || t('product.reserveinboutique'), mode: \"reserve\", product: props.product, size: props.size, color: props.color, colourVariations: props.colourVariations, sizeVariations: props.sizeVariations, onRequestClose: () => setShowOverlay(false), setSizeGuideOpen: props === null || props === void 0 ? void 0 : props.setSizeGuideOpen }))));\n};\nProductActionReserveInBoutique.defaultProps = {\n buttonType: 'tertiary',\n};\nexport default ProductActionReserveInBoutique;\n","/**\n * Calculate the time zone offset\n */\nexport const getTimezoneOffset = (loc) => {\n let destinationOffset = new Intl.DateTimeFormat('en-US', { timeZone: loc, timeZoneName: 'longOffset' })\n .formatToParts(new Date())\n .filter((e) => e.type === 'timeZoneName')[0]\n .value.replace('GMT', '');\n let isNegativeDestination = destinationOffset.includes('-');\n let destinationTimeParts = destinationOffset.replace('-', '').split(':');\n let destinationNumericOffset = Number(destinationTimeParts[0]) * 60 + Number(destinationTimeParts[1] || 0);\n destinationNumericOffset = isNegativeDestination ? -destinationNumericOffset : destinationNumericOffset;\n let userOffset = new Intl.DateTimeFormat('en-US', { timeZoneName: 'longOffset' })\n .formatToParts()\n .filter((e) => e.type === 'timeZoneName')[0]\n .value.replace('GMT', '');\n let isNegativeUser = userOffset.includes('-');\n let userTimeParts = userOffset.replace('-', '').split(':');\n let userNumericOffset = Number(userTimeParts[0]) * 60 + Number(userTimeParts[1] || 0);\n userNumericOffset = isNegativeUser ? -userNumericOffset : userNumericOffset;\n let totalOffset = destinationNumericOffset - userNumericOffset;\n return totalOffset;\n};\nexport const printToUserTimezone = (ISOdate, format = 'full', style = 'full', forceISO = false) => {\n var _a;\n // Time zone calculation\n const timezones = (_a = window.timezones) === null || _a === void 0 ? void 0 : _a.split('|');\n const userTz = Intl.DateTimeFormat().resolvedOptions().timeZone;\n let actualTimezone = timezones[0];\n if (timezones.includes(userTz)) {\n actualTimezone = userTz;\n }\n const tzDate = new Date(ISOdate);\n tzDate.setMinutes(tzDate.getMinutes() + getTimezoneOffset(actualTimezone));\n const formatter = {};\n if (format == 'date' || format == 'full') {\n formatter.dateStyle = style;\n }\n if (format == 'time' || format == 'full') {\n formatter.timeStyle = style;\n }\n const finalDate = new Intl.DateTimeFormat(forceISO ? 'sv-SE' : window.language.toLowerCase() + '-' + window.country.toUpperCase(), formatter).format(tzDate);\n return finalDate;\n};\nexport const editISODate = (ISODate, edits) => {\n let date = new Date(ISODate);\n if (edits.hours) {\n date.setHours(date.getHours() + edits.hours);\n }\n if (edits.minutes) {\n date.setMinutes(date.getMinutes() + edits.minutes);\n }\n if (edits.seconds) {\n date.setSeconds(date.getSeconds() + edits.seconds);\n }\n if (edits.milliseconds) {\n date.setMilliseconds(date.getMilliseconds() + edits.milliseconds);\n }\n return date.toISOString();\n};\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport Button from '@common/ui/button/Button';\nimport DwFormField from '@common/ui/formfield/DwFormField';\nimport ModalDialog from '@common/ui/modal/ModalDialog';\nimport api from '@common/utils/api';\nimport formutils from '@common/utils/formutils';\nimport ErrorBox from '@components/common/ErrorBox';\nimport classNames from 'classnames';\nimport createDecorator from 'final-form-focus';\nimport { Form } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nimport Tooltip from '@common/ui/tooltip/Tooltip';\nimport analytics from '@utils/analytics';\nimport { getTimezoneOffset, printToUserTimezone } from '@common/utils/dateUtils';\nconst focusOnError = createDecorator(); // must be outside the component\nconst GiftCardPurchaseModal = ({ isOpen = false, onRequestClose, type, product, onSubmit, onMoveToBag }) => {\n var _a, _b;\n // States\n const [errors, setErrors] = useState([]); // Form errors\n const [amountErrors, setAmountErrors] = useState([]); // Form amount errors\n const [formdef, setFormdef] = useState(); // Form definition\n const [initialValues, setInitialValues] = useState(); // Form initial values\n const [selectedAmount, setSelectedAmount] = useState(''); // Used to highlight the selected amount button\n const [customVisible, setCustomVisible] = useState(false); // Determine if `amount` form field must be visible (to allow a custom amount)\n const [messageVisible, setMessageVisible] = useState(false); // Determine if `receiverName` and `yourMessage` form fields must be visible\n const [messageLength, setMessageLength] = useState(200); // Remaining characters for the `yourMessage` field\n const [dateVisible, setDateVisible] = useState(false); // Determine if `delayedDate` and `delayedTime` form fields must be visible\n const [maxDelayedDate, setMaxDelayedDate] = useState(new Date().toISOString()); // Max date for `delayedDate` form field\n const [selectedDate, setSelectedDate] = useState();\n // Hooks\n const { t, i18n } = useTranslation();\n // Ref\n const amountRef = useRef();\n // Utils\n const intlNumberFormater = new Intl.NumberFormat(((_a = window.locale) === null || _a === void 0 ? void 0 : _a.replace('_', '-')) || `${window.language}-${window.country}` || i18n.language);\n const regexRemoveMask = /[^0-9]/g;\n // Time zone calculation\n const timezones = (_b = window.timezones) === null || _b === void 0 ? void 0 : _b.split('|');\n const userTz = Intl.DateTimeFormat().resolvedOptions().timeZone;\n let actualTimezone = timezones[0];\n if (timezones.includes(userTz)) {\n actualTimezone = userTz;\n }\n const tzDate = new Date();\n tzDate.setMinutes(tzDate.getMinutes() + getTimezoneOffset(actualTimezone));\n const deliveryTimeRangeOptions = useMemo(() => {\n // Delivery time range options for the delayed time field\n const deliveryTimeRange = 30;\n const options = Array.from({ length: 24 * 60 / deliveryTimeRange }, (_, i) => {\n var _a, _b;\n let baseTime = new Date('2021-01-01T00:00:00');\n baseTime.setMinutes(baseTime.getMinutes() + i * deliveryTimeRange);\n const value = baseTime.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' });\n const startTime = (_a = baseTime.toLocaleTimeString(window.country === 'US' || window.country === 'CA' ? 'en-US' : window.country, { hour: '2-digit', minute: '2-digit' })) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase();\n baseTime.setMinutes(baseTime.getMinutes() + deliveryTimeRange);\n const endTime = (_b = baseTime.toLocaleTimeString(window.country === 'US' || window.country === 'CA' ? 'en-US' : window.country, { hour: '2-digit', minute: '2-digit' })) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase();\n if (selectedDate) {\n const now = tzDate;\n const selectedDateFormatted = new Date(selectedDate + 'T00:00:00.000');\n let timeOffset = getTimezoneOffset(actualTimezone);\n if (timeOffset < 0) {\n timeOffset = -timeOffset;\n }\n selectedDateFormatted.setMinutes(selectedDateFormatted.getMinutes() + timeOffset);\n // disable past time options if today is selected\n if (selectedDateFormatted.toDateString() === now.toDateString() && baseTime.getMinutes() + (i * deliveryTimeRange) - 30 <= now.getHours() * 60 + now.getMinutes()) {\n return { value, label: `${startTime} - ${endTime}`, disabled: true };\n }\n }\n return { value, label: `${startTime} - ${endTime}` };\n });\n options.unshift({ value: '', label: t('gc.choosetime'), disabled: true });\n return options;\n }, [selectedDate]);\n // Boot\n useEffect(() => {\n if (isOpen) {\n let val = {};\n api.getForm('giftCardConfiguration', val, true).then(data => {\n if (type == 'create') {\n setInitialValues(val);\n setFormdef(data);\n }\n else if (type == 'edit') {\n // Custom amount options\n let value = product.singleItemValue ? product.singleItemValue.toString() : product.price ? product.price.sales.value.toString() : '';\n const amount = product.gcConfigurations.find(am => am.number == value);\n if (!!amount) {\n setSelectedAmount(amount.number);\n }\n else {\n // Custom amount visibility\n value = intlNumberFormater.format(value);\n setCustomVisible(true);\n setSelectedAmount('custom');\n }\n // Custom message options\n if (product.giftCardAttributes && !!product.giftCardAttributes.message) {\n setMessageVisible(true);\n setMessageLength(200 - product.giftCardAttributes.message.length);\n }\n // Delayed date options\n const isDelayed = product.giftCardAttributes && !!product.giftCardAttributes.sendDate;\n data.deliveryDate.selectedOption = isDelayed ? 'later' : 'today';\n data.deliveryDate.htmlValue = isDelayed ? 'later' : 'today';\n data.deliveryDate.options = data.deliveryDate.options.map(option => {\n if (option.value == 'today') {\n if (isDelayed) {\n delete option.checked;\n delete option.selected;\n }\n else {\n option.checked = true;\n option.selected = true;\n }\n }\n else if (option.value == 'later') {\n if (!isDelayed) {\n delete option.checked;\n delete option.selected;\n }\n else {\n option.checked = true;\n option.selected = true;\n }\n }\n return option;\n });\n setFormdef(data);\n changeDelayDate(isDelayed ? 'later' : 'today');\n if (product.giftCardAttributes) {\n const currentDate = (product.giftCardAttributes.sendDate && printToUserTimezone(product.giftCardAttributes.sendDate, 'date', 'short', true)) || new Date(tzDate.getTime() + 60 * 24 * 60 * 60 * 1000).toISOString().split('T')[0];\n const currentTime = (product.giftCardAttributes.sendDate && printToUserTimezone(product.giftCardAttributes.sendDate, 'time', 'short', true));\n setInitialValues({\n amount: value,\n delayedDate: currentDate,\n delayedTime: currentTime,\n deliveryDate: isDelayed ? 'later' : 'today',\n includeMessage: !!product.giftCardAttributes.message,\n receiverEmail: product.giftCardAttributes.recipientEmail,\n receiverEmailVerification: product.giftCardAttributes.recipientEmail,\n receiverName: product.giftCardAttributes.recipientName,\n yourMessage: product.giftCardAttributes.message\n });\n setSelectedDate(currentDate);\n }\n else {\n //giftcard in wishlist not configured\n setInitialValues(val);\n }\n }\n });\n }\n }, [isOpen]);\n /**\n * Validate the form\n */\n const validate = async (values) => {\n var _a;\n values.amount = (_a = values.amount) === null || _a === void 0 ? void 0 : _a.replace(regexRemoveMask, ''); // Remove amount mask before validation\n let errors = await formutils.validateForm(values, formdef, 'giftCardConfiguration');\n // Range error\n if (parseFloat(values.amount) > product.gcLimits.maxValue.value || parseFloat(values.amount) < product.gcLimits.minValue.value) {\n errors.amount = t('gc.invalid.amount', `Please enter an amount between ${product.gcLimits.minValue.formattedValue} and ${product.gcLimits.maxValue.formattedValue}`, { 0: product.gcLimits.minValue.formattedValue, 1: product.gcLimits.maxValue.formattedValue });\n }\n // Decimal error\n if (!Number.isInteger(parseFloat(values.amount))) {\n errors.amount = t('gc.decimal.amount');\n }\n // Empty amount\n if (!!!values.amount) {\n errors.amount = t('label.requiredfield');\n }\n // Message errors\n if (values.includeMessage) {\n if (!values.receiverName || values.receiverName == '') {\n errors.receiverName = t('label.requiredfield');\n }\n if (!values.yourMessage || values.yourMessage == '') {\n errors.yourMessage = t('label.requiredfield');\n }\n }\n // Delayed date errors\n let delayedErrors;\n if (values.deliveryDate == 'later') {\n if (!values.delayedDate) {\n errors.delayedDate = t('label.requiredfield');\n delayedErrors = [t('gc.delayed.error')];\n }\n if (!values.delayedTime) {\n errors.delayedTime = t('label.requiredfield');\n delayedErrors = [t('gc.delayed.error')];\n }\n const now = tzDate;\n const selectedDateFormatted = new Date(`${values.delayedDate}T${values.delayedTime}`);\n if (selectedDateFormatted <= now) {\n errors.delayedTime = t('gc.delayed.error');\n delayedErrors = [t('gc.delayed.error')];\n }\n }\n return errors;\n };\n /**\n * Add the product to cart\n */\n const addToBag = async (values) => {\n //addToBagFromWishlist\n const isAddToBag = values.action == 'addToBag';\n setErrors([]);\n let errors = await validate(values);\n if (errors && Object.keys(errors).length > 0) {\n return errors;\n }\n let actualDate = tzDate.toISOString();\n if (values.deliveryDate == 'today') {\n actualDate = null;\n }\n else if (values.deliveryDate == 'later') {\n actualDate = values.delayedDate + 'T' + values.delayedTime + ':00.000';\n let actualDateConversion = new Date(actualDate);\n actualDateConversion.setMinutes(actualDateConversion.getMinutes() - getTimezoneOffset(actualTimezone));\n actualDate = actualDateConversion.toISOString();\n }\n let giftCard = {\n gcAmount: values.amount,\n gcEmail: values.receiverEmail,\n gcName: values.includeMessage ? values.receiverName : null,\n gcMessage: values.includeMessage ? values.yourMessage : null,\n gcDate: actualDate\n };\n if (type == 'create') {\n onSubmit(giftCard);\n }\n else if (type == 'edit') {\n if (isAddToBag) {\n onMoveToBag(Object.assign({ gcUUID: product.UUID, gcPID: product.id }, giftCard), formdef);\n }\n else {\n onSubmit(Object.assign({ gcUUID: product.UUID, gcPID: product.id }, giftCard), formdef);\n }\n }\n closeModal();\n };\n /**\n * Change option values for the delayed date inputs\n */\n const changeDelayDate = (option) => {\n if (option == 'later') {\n let delay = tzDate;\n delay.setDate(delay.getDate() + product.gcMaxDelayDate);\n setMaxDelayedDate(() => delay.toISOString());\n setDateVisible(() => true);\n }\n else if (option == 'today') {\n setDateVisible(() => false);\n }\n };\n /**\n * Close the modal, then reset all fields\n */\n const closeModal = () => {\n onRequestClose();\n setFormdef(null);\n setInitialValues(null);\n setSelectedAmount('');\n setCustomVisible(false);\n setMessageVisible(false);\n setMessageLength(200);\n setDateVisible(false);\n };\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(ModalDialog, { className: 'modal--fixed gc-config-modal', overlayClassName: \"overlay-visible\", isOpen: isOpen, onRequestClose: () => closeModal(), noPadding: true, hideHeader: true },\n React.createElement(\"div\", { className: \"product-notify\" },\n React.createElement(\"div\", { className: \"product-notify__main\", style: { backgroundImage: \"url('\" + product.imgs.urls[0] + \"')\" } }),\n React.createElement(\"div\", { className: \"product-notify__detail giftcard-form\" },\n React.createElement(\"h2\", null, t('gc.digitalgiftcard')),\n React.createElement(Form, { onSubmit: addToBag, initialValues: initialValues, validate: validate, decorators: [focusOnError], render: ({ handleSubmit, form, submitting, pristine, values }) => {\n var _a;\n return (React.createElement(\"form\", { onSubmit: handleSubmit },\n React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: 'gc-amount' }, t('gc.selectamount').toUpperCase()),\n React.createElement(\"div\", { className: \"d-flex gc-amount-btn-container\", ref: amountRef },\n product.gcConfigurations.map(card => (React.createElement(Button, { key: card.number, onClick: () => {\n setCustomVisible(false);\n setSelectedAmount(card.number);\n setAmountErrors([]);\n form.batch(() => form.change('amount', card.number));\n }, type: 'button', cls: ['button--tertiary'], className: selectedAmount == card.number ? 'gc-amount-btn-alt' : 'gc-amount-btn' }, card.formatted))),\n React.createElement(Button, { onClick: () => {\n setCustomVisible(true);\n setSelectedAmount('custom');\n setAmountErrors([]);\n form.batch(() => form.change('amount', ''));\n }, type: 'button', cls: ['button--tertiary'], className: selectedAmount == 'custom' ? 'gc-amount-btn-alt' : 'gc-amount-btn' }, t('gc.custom'))),\n React.createElement(\"div\", { className: \"pw-error col-6\" },\n React.createElement(ErrorBox, { errors: amountErrors, className: 'gc-error-box' })),\n React.createElement(\"div\", { className: classNames([\"row\", { 'd-none': !customVisible }, 'mt-12']) },\n React.createElement(\"div\", { className: \"col-6\" },\n React.createElement(DwFormField, { def: formdef, name: 'amount', type: 'text', autocomplete: 'off', altLabel: t('gc.insertamount'), requiredLabel: true, maxLength: ((_a = intlNumberFormater.format(product.gcLimits.maxValue.value)) === null || _a === void 0 ? void 0 : _a.length) || 7, textPrefix: product.gcCurrency, onChange: (e) => {\n var _a;\n // remove mask used on amount\n const value = (_a = e.target.value) === null || _a === void 0 ? void 0 : _a.replace(regexRemoveMask, '');\n // avoid non-numeric values\n const isValidNumber = !Number.isNaN(Number(value));\n form.batch(() => {\n form.change('amount', value && isValidNumber ? intlNumberFormater.format(isValidNumber ? value : value.slice(0, -1)) : '');\n });\n } })),\n React.createElement(\"div\", { className: \"col-2\" },\n React.createElement(Tooltip, { ariaLabel: t('gc.amount.tooltip', `Insert an amount between ${product.gcLimits.minValue.formattedValue} and ${product.gcLimits.maxValue.formattedValue}`, { 0: product.gcLimits.minValue.formattedValue, 1: product.gcLimits.maxValue.formattedValue }), id: 'gc-email-tooltip', icon: \"info\", text: t('gc.amount.tooltip', `Insert an amount between ${product.gcLimits.minValue.formattedValue} and ${product.gcLimits.maxValue.formattedValue}`, { 0: product.gcLimits.minValue.formattedValue, 1: product.gcLimits.maxValue.formattedValue }), className: \"ml-12\" }))),\n React.createElement(\"div\", { className: \"modal__separator\" }),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-10\" },\n React.createElement(DwFormField, { def: formdef, name: 'receiverEmail', type: 'text', autocomplete: 'off', altLabel: t('gc.receiver.email'), requiredLabel: true, preventPaste: true })),\n React.createElement(\"div\", { className: \"col-2\" },\n React.createElement(Tooltip, { ariaLabel: t('gc.email.tooltip'), id: 'gc-email-tooltip', icon: \"info\", text: t('gc.email.tooltip'), className: \"ml-12\" }))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12 col-md-10\" },\n React.createElement(DwFormField, { def: formdef, name: 'receiverEmailVerification', type: 'text', autocomplete: 'off', altLabel: t('gc.receiver.emailverify'), requiredLabel: true, preventPaste: true }))),\n React.createElement(\"div\", { className: \"row gc-custom-check\" },\n React.createElement(\"div\", { className: \"col-10\" },\n React.createElement(DwFormField, { def: formdef, name: 'includeMessage', type: 'checkbox', autocomplete: 'off', altLabel: t('gc.customMessage'), onChange: e => setMessageVisible(e.target.checked) }))),\n messageVisible\n &&\n React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row mt-16\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: 'receiverName', type: 'text', autocomplete: 'off', altLabel: t('gc.receiver.name'), requiredLabel: true }))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: 'yourMessage', type: 'textarea', autocomplete: 'off', altLabel: t('gc.yourmessage'), maxLength: 200, onChange: e => setMessageLength(200 - e.target.value.length), groupClassName: 'mb-0', requiredLabel: true }),\n React.createElement(\"span\", { className: \"field-sublabel\" }, messageLength + ' ' + t('gc.charactersleft'))))),\n React.createElement(\"div\", { className: \"modal__separator\" }),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(\"span\", { className: \"field-label d-block\" },\n t('gc.prefdeliverydate'),\n \"*\"),\n React.createElement(DwFormField, { def: formdef, name: 'deliveryDate', type: 'optionbox', autocomplete: 'off', hiddenLabel: true, fieldType: 'radio', onChange: e => {\n const option = e.target.value;\n changeDelayDate(option);\n } }))),\n dateVisible\n &&\n React.createElement(\"div\", { className: \"row mt-8\" },\n React.createElement(\"div\", { className: \"col-6\" },\n React.createElement(DwFormField, { def: formdef, name: 'delayedDate', type: 'date', autocomplete: 'off', altLabel: t('gc.choosedate'), requiredLabel: true, onChange: e => { var _a; return setSelectedDate((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); }, minDate: tzDate.getFullYear() + '-' + (\"0\" + (tzDate.getMonth() + 1)).slice(-2) + '-' + (\"0\" + tzDate.getDate()).slice(-2), maxDate: maxDelayedDate.split('T')[0] })),\n React.createElement(\"div\", { className: \"col-6\" },\n React.createElement(DwFormField, { def: formdef, name: 'delayedTime', type: \"select\", altLabel: t('gc.choosetime'), requiredLabel: true, options: deliveryTimeRangeOptions }))),\n React.createElement(\"div\", { className: \"pw-error col-6\" },\n React.createElement(ErrorBox, { errors: errors, className: 'gc-error-box' })),\n onMoveToBag &&\n React.createElement(\"div\", { className: \"row button-row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(Button, { type: \"submit\", disabled: submitting, className: 'button--primary', onClick: () => form.change('action', 'addToBag') }, t('button.gcaddtobag')))),\n React.createElement(\"div\", { className: classNames(\"row button-row\", onMoveToBag ? \"giftcard-update-button-row\" : \"\") },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(Button, { onClick: () => {\n var _a;\n if (type !== 'create' && !submitting) {\n analytics.editTheGiftcard();\n }\n if (!customVisible && (!values.amount || values.amount == '')) {\n setAmountErrors([t('gc.amount.error')]);\n (_a = amountRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: 'center' });\n }\n }, type: \"submit\", disabled: submitting, cls: [type == 'create' ? 'button--primary' : 'button--secondary'] }, t(type == 'create' ? 'button.gcaddtobag' : 'button.update')))),\n React.createElement(\"div\", { className: \"row cancel-button\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(Button, { type: 'button', disabled: submitting, cls: ['button--arrow-left'], onClick: () => closeModal() }, t('button.gccancel').toUpperCase()))))));\n } })))));\n};\nexport default GiftCardPurchaseModal;\n","import Button from '@ui/button/Button';\nimport analytics from '@utils/analytics';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport api from '@common/utils/api';\nimport GiftCardPurchaseModal from './GiftCardPurchaseModal';\nconst LoginModal = React.lazy(() => import('@components/login/LoginModal'));\nconst ProductActionAddToBag = (props) => {\n var _a, _b, _c, _d;\n let { t } = useTranslation();\n const [showAddToBagMessage, setShowAddToBagMessage] = useState(false);\n const [loginOpen, setLoginOpen] = useState(false);\n const [giftCardPurchase, setGiftCardPurchase] = useState(false);\n useEffect(() => {\n let quickShopTimeout;\n if (showAddToBagMessage) {\n quickShopTimeout = setTimeout(() => {\n setShowAddToBagMessage(false);\n }, 5000);\n }\n return () => {\n clearTimeout(quickShopTimeout);\n };\n }, [showAddToBagMessage]);\n const addToBag = (card = null) => {\n setShowAddToBagMessage(true);\n props.onAddStart && props.onAddStart();\n if (!props.size) {\n console.log('no size, triggering size selector:', props.triggerOpenSize);\n props.triggerOpenSize && props.triggerOpenSize();\n return;\n }\n const productId = `${props.product.id}${props.size.id}`;\n api.addToBag(productId, 1, null, card).then((data) => {\n if (data.error) {\n props.updateErrorMessage && props.updateErrorMessage(data.message);\n props.updateErrorTitle && props.updateErrorTitle(data.label);\n }\n else {\n if (data.quantityTotal) {\n const header = document.querySelector('header');\n const firstRefine = document.querySelector('.listing-container .refine');\n header === null || header === void 0 ? void 0 : header.style.removeProperty('transform');\n if (firstRefine) {\n firstRefine.style.removeProperty('transform');\n }\n // console.info('update minicart');\n customEventBus.emit('bag:update', { fromMinicart: true });\n let wrapper = document.querySelector('.minibag');\n wrapper.focus();\n if (props.isSearchTile) {\n document.querySelector('#infinite-scroll-wrapper').classList.remove('stick-top');\n document.querySelector('#infinite-scroll-wrapper').classList.add('minicart-overlay');\n }\n if (props.isLookCarousel) {\n customEventBus.emit('minicart:update', { pid: productId });\n }\n else {\n customEventBus.emit('minicart:update', { fromAddToBag: true, pid: productId });\n }\n }\n if (props.product.isGiftCard) {\n analytics.addToBag(props.product, null, null, card.gcAmount);\n analytics.addGiftcardToBag({ gcAmount: card.gcAmount, gcMessage: card.gcMessage });\n }\n else {\n if (props.pushAnalytics) {\n props.pushAnalytics();\n }\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 const btnModifiers = useMemo(() => {\n if (props.noModifiers) {\n return [];\n }\n let btnClass = props.secondary ? 'button--secondary' : 'button--primary';\n if (props.inverted) {\n btnClass += '-inverted';\n }\n return [btnClass];\n }, [props.secondary, props.inverted, props.noModifiers]);\n if (!props.product) {\n return null;\n }\n return !window.loggedin && window.loginUrl && ((_a = props.product) === null || _a === void 0 ? void 0 : _a.unlock) ? (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", cls: btnModifiers, className: props.className, onClick: () => {\n var _a, _b;\n props.inPDP && analytics.loginToPurchase((_a = props.product) === null || _a === void 0 ? void 0 : _a.id, 'pdp', 'pdp');\n props.inShopTheLook && analytics.loginToPurchase((_b = props.product) === null || _b === void 0 ? void 0 : _b.id, 'flp', 'shop by look');\n setLoginOpen(true);\n } }, t('button.signintopurchase')),\n React.createElement(LoginModal, { reloadPage: true, incontext: \"membersonly\", modalStatus: loginOpen, updateStatus: (status) => setLoginOpen(status) }))) : showAddToBagMessage && props.isLookCarousel ? (React.createElement(Button, { type: \"button\", cls: btnModifiers, className: \"button--added-item\", onClick: () => addToBag() }, t('bag.justadded'))) : (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", cls: btnModifiers, ariaHaspopup: \"dialog\", onClick: () => {\n if (props.product.isGiftCard) {\n analytics.addToCartGiftCard(props.product.id);\n setGiftCardPurchase(true);\n }\n else {\n addToBag();\n }\n } }, props.product.isGiftCard\n ? ((props.product.type == 'tile' || props.product.type == 'size')\n ? t('gc.chooseam')\n : t('gc.shopnow'))\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 : t('button.addtobag')),\n React.createElement(GiftCardPurchaseModal, { isOpen: giftCardPurchase, onRequestClose: () => setGiftCardPurchase(false), type: 'create', product: props.product, onSubmit: card => addToBag(card) })));\n};\nexport default ProductActionAddToBag;\n","import ProductAddToBag from '@moncler/components/product/ProductActionAddToBag';\nimport Button from '@ui/button/Button';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport analytics from '@utils/analytics';\nimport { getSizeVariations } from '@utils/product';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ProductImage from './ProductImage';\nconst ProductPushRefillModal = (props) => {\n var _a;\n const { t } = useTranslation();\n let sizeVariations = getSizeVariations(props.product);\n return (React.createElement(ModalDialog, { hideHeader: true, noPadding: true, closeInvertedSm: true, isOpen: props.isOpen, onRequestClose: props.onRequestClose, contentLabel: props.title },\n React.createElement(\"div\", { className: \"product-refill\" },\n React.createElement(\"div\", { className: \"product-refill__main\" },\n React.createElement(ProductImage, { img: (_a = props.product) === null || _a === void 0 ? void 0 : _a.imgs, type: \"F\" })),\n React.createElement(\"div\", { className: \"product-refill__detail\" },\n React.createElement(\"div\", null,\n React.createElement(\"h2\", { className: \"dialog__title\" }, props.title),\n React.createElement(\"h3\", { className: \"dialog__white-title\" }, props.product.productName),\n React.createElement(\"h3\", null, props.product.productName),\n React.createElement(\"p\", null, props.product.longDescription || props.product.shortDescription)),\n React.createElement(\"div\", { className: \"mt-24\" },\n React.createElement(ProductAddToBag, { product: props.product, size: sizeVariations[0], callback: props.onRequestClose, updateErrorMessage: props.updateErrorMessage, pushAnalytics: () => {\n analytics.perfumeWantRefill('add to bag');\n analytics.addToCartRefill(props.product);\n } }),\n React.createElement(Button, { type: \"button\", cls: ['button--secondary'], onClick: () => {\n analytics.perfumeWantRefill('no thanks');\n props.onRequestClose();\n } }, t('button.norefill')))))));\n};\nexport default ProductPushRefillModal;\n","import Button from '@ui/button/Button';\nimport api from '@utils/api';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport ProductPushRefillModal from './ProductPushRefillModal';\nconst ProductActionPushRefill = (props) => {\n const { t } = useTranslation();\n const [showOverlay, setShowOverlay] = useState(false);\n const [suggest, setSuggets] = useState();\n useEffect(() => {\n if (showOverlay && !suggest) {\n api.getProduct(props.refillId).then((data) => !!data && setSuggets(data));\n }\n }, [showOverlay]);\n const onClose = () => {\n setShowOverlay(false);\n api.addToBag(props.productId).then((data) => {\n if (data.error) {\n props.updateErrorMessage && props.updateErrorMessage(data.message);\n }\n else {\n (props === null || props === void 0 ? void 0 : props.pushAnalytics) && props.pushAnalytics();\n if (data.quantityTotal) {\n const header = document.querySelector('header');\n const firstRefine = document.querySelector('.listing-container .refine');\n header === null || header === void 0 ? void 0 : header.style.removeProperty('transform');\n if (firstRefine) {\n firstRefine.style.removeProperty('transform');\n }\n customEventBus.emit('minicart:update', { fromAddToBag: true, fromKeyboard: false, pid: props.productId });\n }\n }\n });\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", cls: [props.buttonStyleInverted ? 'button--primary-inverted' : 'button--primary'], onClick: () => setShowOverlay(true) }, t('button.addtobag')),\n suggest && (React.createElement(ProductPushRefillModal, { isOpen: showOverlay, title: t('product.parfume.wantrefill'), product: suggest, onRequestClose: onClose, updateErrorMessage: props.updateErrorMessage }))));\n};\nexport default ProductActionPushRefill;\n","import ErrorModal from '@components/error/ErrorModal';\nimport ProductAddToBag from '@stone/components/product/ProductActionAddToBag';\nimport ProductActionNotifyMe from '@stone/components/product/ProductActionNotifyMe';\nimport ProductActionPushRefill from '@moncler/components/product/ProductActionPushRefill';\n// import analytics from '@utils/analytics';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst ProductButton = (props) => {\n var _a, _b, _c, _d;\n const { current, currentSize, currentColor, showReserveInBoutiqueButton, triggerOpenSize, trackAddToBag, inverted, afterAdd } = props;\n const { t } = useTranslation();\n const [errorMessage, setErrorMessage] = useState();\n const [errorLabel, setErrorLabel] = useState();\n const addToBagAvailable = useMemo(() => {\n var _a, _b, _c, _d;\n const isNotUnshoppableWindow = !window.unshoppable;\n const isNotBoutiqueExclusive = !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) && !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP);\n const isSizeSelectable = !currentSize || (currentSize === null || currentSize === void 0 ? void 0 : currentSize.selectable);\n const isNotOutOfStock = !((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock);\n const isNotComingSoon = (current === null || current === void 0 ? void 0 : current.isComingSoon) != 2;\n const isShoppable = !(current === null || current === void 0 ? void 0 : current.notShoppable) && !(current === null || current === void 0 ? void 0 : current.isPreview);\n const priceExists = !!((_b = current === null || current === void 0 ? void 0 : current.price) === null || _b === void 0 ? void 0 : _b.type) || !!((_d = (_c = current === null || current === void 0 ? void 0 : current.price) === null || _c === void 0 ? void 0 : _c.sales) === null || _d === void 0 ? void 0 : _d.value);\n return isNotUnshoppableWindow && isNotBoutiqueExclusive && isSizeSelectable && isNotOutOfStock && isNotComingSoon && isShoppable && priceExists;\n }, [current, currentSize]);\n return (React.createElement(React.Fragment, null,\n React.createElement(ErrorModal, { label: errorLabel, message: errorMessage, onClose: () => setErrorMessage(undefined) }),\n addToBagAvailable ? ((current === null || current === void 0 ? void 0 : current.isParfum) && ((_a = current === null || current === void 0 ? void 0 : current.parfumAttributes) === null || _a === void 0 ? void 0 : _a.suggestedProducts) && current.parfumAttributes.suggestedProducts[0].available ? (React.createElement(ProductActionPushRefill, { productId: `${current.id}${currentSize.id}`, refillId: current.parfumAttributes.suggestedProducts[0].id, buttonStyleInverted: inverted, updateErrorMessage: (msg) => setErrorMessage(msg), pushAnalytics: trackAddToBag })) : (React.createElement(ProductAddToBag, { hierarchy: \"primary\", product: current, size: currentSize, triggerOpenSize: triggerOpenSize, pushAnalytics: trackAddToBag, inverted: inverted, callback: afterAdd, onAddStart: props.onAddStart, updateErrorMessage: (msg) => setErrorMessage(msg), inPDP: props.inPDP, inShopTheLook: props.inShopTheLook, updateErrorTitle: setErrorLabel, excludeForA11N: props.excludeForA11N, stickyPDP: props.stickyPDP, productStatus: props.productStatus }))) : (React.createElement(React.Fragment, null, !window.unshoppable && !(current === null || current === void 0 ? void 0 : current.notShoppable) && (React.createElement(React.Fragment, null, !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) && !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP) && (((_b = current === null || current === void 0 ? void 0 : current.price) === null || _b === void 0 ? void 0 : _b.type) || ((_d = (_c = current === null || current === void 0 ? void 0 : current.price) === null || _c === void 0 ? void 0 : _c.sales) === null || _d === void 0 ? void 0 : _d.value)) && (React.createElement(ProductActionNotifyMe, { product: current, color: currentColor, size: currentSize, triggerOpenSize: triggerOpenSize, from: \"pdp\", inverted: inverted, secondary: showReserveInBoutiqueButton, customClasses: ['button--primary'], excludeForA11N: props.excludeForA11N }))))))));\n};\nexport default ProductButton;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst SelectorColor = (props) => {\n const { t } = useTranslation();\n return (React.createElement(\"label\", { className: classNames('selector__menu__item', !props.isNotAvailableSelectable && !(props === null || props === void 0 ? void 0 : props.isBoutiqueExclusive) && props.disabled && 'is-disabled', props.selected && 'selected', props.isInverted && 'inverted') },\n React.createElement(\"input\", { type: \"radio\", onChange: () => {\n props.onSelect(props.item);\n }, \"aria-label\": props.label, name: `color-selector-` + props.productUuid, value: props.value, checked: props.selected }),\n React.createElement(\"span\", { \"aria-hidden\": \"true\", className: classNames('selector__menu__item__label') },\n props.label,\n props.enableOutofstockLabel && props.isOutOfStock ? ` - ${t('label.outofstock')}` : ''),\n props.children));\n};\nexport default SelectorColor;\n","import React, { useMemo, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ColorSwatch from '@stone/components/product/ColorSwatch';\nimport SwiperCore, { A11y, Controller, EffectCoverflow, Keyboard } from 'swiper';\nimport { Swiper as SwiperInstance, SwiperSlide } from 'swiper/react';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport SelectorColor from '@common/ui/selector/SelectorColor';\nSwiperCore.use([A11y, Keyboard, Controller, EffectCoverflow]);\nconst ProductSelectionColorPDP = (props) => {\n const { t } = useTranslation();\n // const [isKeyboardIntent, setIsKeyboardIntent] = useState(false);\n const { isWideDesktop } = useMediaQueries();\n const swiperRef = useRef();\n const slideMove = (swiper) => {\n const prevs = document.querySelectorAll('.selector-prev-pdpcolor');\n prevs.forEach((prev) => {\n if (swiper.isBeginning) {\n prev === null || prev === void 0 ? void 0 : prev.setAttribute('disabled', 'disabled');\n prev === null || prev === void 0 ? void 0 : prev.classList.add('swiper-button-disabled');\n }\n else {\n prev === null || prev === void 0 ? void 0 : prev.removeAttribute('disabled');\n prev === null || prev === void 0 ? void 0 : prev.classList.remove('swiper-button-disabled');\n }\n });\n const nexts = document.querySelectorAll('.selector-next-pdpcolor');\n nexts.forEach((next) => {\n if (swiper.isEnd) {\n next === null || next === void 0 ? void 0 : next.setAttribute('disabled', 'disabled');\n next === null || next === void 0 ? void 0 : next.classList.add('swiper-button-disabled');\n }\n else {\n next === null || next === void 0 ? void 0 : next.removeAttribute('disabled');\n next === null || next === void 0 ? void 0 : next.classList.remove('swiper-button-disabled');\n }\n });\n };\n /* EFFECT */\n const swiperConf = {\n a11y: {\n slideRole: null,\n slideLabelMessage: null,\n },\n // navigation: true,\n slideToClickedSlide: false,\n slidesPerView: 4,\n spaceBetween: -2,\n autoplay: false,\n threshold: 5,\n // slideToClickedSlide: true,\n // centeredSlides: true,\n breakpoints: {\n [window.mqObj.lg]: {\n slidesPerView: 5,\n spaceBetween: 0, //adjust overflow for accessibility, from css is 6px (3px margin for side)\n },\n },\n onSlideChange: slideMove,\n onInit: (swiper) => {\n slideMove(swiper);\n const prevs = document.querySelectorAll('.selector-prev-pdpcolor');\n const nexts = document.querySelectorAll('.selector-next-pdpcolor');\n const prevHandler = (e) => {\n e.preventDefault();\n swiperRef.current.slidePrev();\n };\n const nextHandler = (e) => {\n e.preventDefault();\n swiperRef.current.slideNext();\n };\n console.log('ADD HANDLER');\n prevs.forEach((prev) => prev === null || prev === void 0 ? void 0 : prev.addEventListener('click', prevHandler));\n nexts.forEach((next) => next === null || next === void 0 ? void 0 : next.addEventListener('click', nextHandler));\n },\n };\n const startingSlideIndex = useMemo(() => {\n var _a;\n return (_a = props.variationValues) === null || _a === void 0 ? void 0 : _a.findIndex((el) => el.id === props.currentId);\n }, [props.variationValues, props.currentId]);\n // useEffect(() => {\n // let keboardHandler = (data: { isKeyboardMode: boolean }) => {\n // setIsKeyboardIntent(data.isKeyboardMode);\n // };\n // customEventBus.on('keyboard:mode', keboardHandler);\n // return () => {\n // customEventBus.off('keyboard:mode', keboardHandler);\n // };\n // }, []);\n const renderColorSwatch = (variation) => (React.createElement(SelectorColor, { key: variation.id, value: variation.id, label: variation.displayValue, disabled: props.alwaysAvailable ? false : !variation.selectable && !window.unshoppable && !props.boutiqueAvailability, selected: variation.value == props.currentId, isOutOfStock: variation.selectable, item: variation, onSelect: (variation) => {\n props.onChangeVariation(variation);\n }, productUuid: props.productUuid, isNotAvailableSelectable: props.isNotAvailableSelectable, isBoutiqueExclusive: props.isBoutiqueExclusive },\n React.createElement(ColorSwatch, { variation: variation, ariaHidden: true }),\n !props.boutiqueAvailability && React.createElement(\"span\", { className: \"stroke\" })));\n const printColorsCarousel = () => startingSlideIndex !== null &&\n startingSlideIndex >= 0 && (React.createElement(SwiperInstance, Object.assign({ onSwiper: (swiper) => {\n swiperRef.current = swiper;\n }, initialSlide: startingSlideIndex }, swiperConf), props.variationValues.map((variation, i) => (React.createElement(SwiperSlide, { \"aria-label\": null, key: i }, renderColorSwatch(variation))))));\n const printColorsGrid = () => React.createElement(\"div\", { className: \"selector__menu--grid\" }, props.variationValues.map((variation, i) => renderColorSwatch(variation)));\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"selector-color inpdp\" },\n React.createElement(\"fieldset\", { className: \"selector__menu\", id: \"pdp-colorSelector\" },\n React.createElement(\"legend\", { className: \"visually-hidden\" }, t('label.selectacolor')),\n isWideDesktop ? printColorsGrid() : printColorsCarousel()),\n React.createElement(\"div\", { tabIndex: -1, \"aria-hidden\": \"true\", style: {\n visibility: 'hidden',\n position: 'absolute',\n height: 0,\n width: 0,\n padding: 0,\n } }, props.variationValues.map((variation) => (React.createElement(\"a\", { key: variation.id, \"aria-current\": variation.value == props.currentId ? 'page' : undefined, href: window.origin + variation.productUrl }, variation.displayValue)))))));\n};\nProductSelectionColorPDP.defaultProps = {\n variationValues: [],\n dropdown: false,\n};\nexport default ProductSelectionColorPDP;\n","import gsap from 'gsap';\nimport { useEffect, useState } from 'react';\nimport { ScrollTrigger } from 'gsap/ScrollTrigger';\nimport { useReducedMotion } from 'framer-motion';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport cookie from 'react-cookies';\nimport customEventBus from '@common/scripts/libs/eventBus';\ngsap.registerPlugin(ScrollTrigger);\nconst markers = cookie.load('gsap_markers') === 'sticky-bar';\nconst useStickybarAnimation = () => {\n var _a;\n // ANCHOR - USE STATE -------------------------------------------------------------------\n const [ref, setRef] = useState(null);\n const [headerHeight, setHeaderHeight] = useState(((_a = document.querySelector('header')) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0);\n // ANCHOR - USE HOOKS -------------------------------------------------------------------\n const isReduceMotion = useReducedMotion();\n const { isDesktop } = useMediaQueries();\n const negativeMapper = gsap.utils.mapRange(0, 1, 1, 0);\n useEffect(() => {\n customEventBus.on('pdp:details', setScrollTriggers);\n return () => {\n customEventBus.off('pdp:details', setScrollTriggers);\n };\n }, [ref]);\n useEffect(() => {\n setScrollTriggers();\n return resetScrollTriggers;\n }, [isReduceMotion, isDesktop, ref, headerHeight]);\n const onSetHeight = (data) => {\n setHeaderHeight(data.height);\n };\n useEffect(() => {\n if (isDesktop) {\n customEventBus.on('header:setheight', onSetHeight);\n return () => {\n customEventBus.off('header:setheight', onSetHeight);\n };\n }\n }, [isDesktop]);\n const IDS = ['pdp-sticky-in', 'pdp-sticky-out', 'pdp-sticky-mobile', 'pdp-header-in'];\n const resetScrollTriggers = () => {\n IDS === null || IDS === void 0 ? void 0 : IDS.forEach((id) => { var _a; return (_a = ScrollTrigger.getById(id)) === null || _a === void 0 ? void 0 : _a.kill(); });\n };\n // SECTION - GSAP --------------------------------------------------------------------\n const setScrollTriggers = () => {\n if (ref && !isReduceMotion) {\n const ctas = document.querySelector('.product-selection__ctas');\n const tlSticky = gsap.timeline({ paused: true, ease: '' });\n tlSticky.set(ref, {\n y: 0,\n });\n tlSticky.to(ref, {\n y: '100%',\n });\n const hasDetails = document.getElementById('pdp-details-out');\n // ANCHOR - STICKY - MOBILE INIT --------------------------------------------------------------------\n if (!isDesktop && ctas) {\n ScrollTrigger.create({\n id: 'pdp-sticky-mobile',\n markers: markers,\n trigger: ctas,\n start: 'top bottom',\n end: 'top 80%',\n scrub: true,\n onUpdate: ({ progress }) => tlSticky.progress(progress),\n });\n }\n if (hasDetails) {\n // ANCHOR - STICKY IN --------------------------------------------------------------------\n ScrollTrigger.create({\n id: 'pdp-sticky-in',\n trigger: '#pdp-details-in',\n start: 'top 20%',\n end: 'top top',\n scrub: true,\n markers: !!markers && {\n indent: 400,\n },\n onUpdate: ({ progress }) => tlSticky.progress(isDesktop ? progress : negativeMapper(progress)),\n onEnter: () => {\n customEventBus.emit('header:setpdp', { isPdp: false });\n },\n onLeaveBack: () => {\n customEventBus.emit('header:setpdp', { isPdp: true });\n },\n });\n // ANCHOR - STICKY OUT --------------------------------------------------------------------\n ScrollTrigger.create({\n id: 'pdp-sticky-out',\n trigger: '#pdp-details-out',\n start: () => 'top 20%',\n end: () => 'top top',\n scrub: true,\n markers: !!markers && {\n indent: 100,\n },\n onUpdate: ({ progress }) => tlSticky.progress(isDesktop ? negativeMapper(progress) : progress),\n });\n }\n else {\n // ANCHOR - HEADER REACTIVATE --------------------------------------------------------------------\n //if details is not present\n ScrollTrigger.create({\n id: 'pdp-header-in',\n trigger: '#product-content',\n start: () => `top +=${headerHeight}`,\n end: 'top top',\n markers: !!markers && {\n indent: 400,\n },\n onEnter: () => {\n customEventBus.emit('header:setpdp', { isPdp: false });\n },\n onLeaveBack: () => {\n customEventBus.emit('header:setpdp', { isPdp: true });\n },\n });\n }\n }\n };\n // !SECTION - END GSAP\n return setRef;\n};\nexport default useStickybarAnimation;\n","import useBreakpoint from '@utils/useBreakpoint';\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ProductButton from './ProductButton';\nimport ProductPrice from './ProductPrice';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport ModalDialog from '../modal/ModalDialog';\nimport ProductSelectionSizesExpanded from './ProductSelectionSizesExpanded';\nimport ProductSelectionColorPDP from './ProductSelectionColorPDP';\nimport Icon from '@stone/ui/icon/Icon';\nimport useStickybarAnimation from './useStickybarAnimation';\nconst ProductStickyTray = (props) => {\n var _a;\n const { t } = useTranslation();\n const { changeSize, current, currentSize, currentColor, variantPrice, showReserveInBoutiqueButton, sizeSelectorError, sizeVariations, colourVariations, trackAddToBag, updateSizeSelectorError, } = props;\n const currentBreakpoint = useBreakpoint();\n const [openTray, setOpenTray] = useState(false);\n const { isDesktop, isWideDesktop } = useMediaQueries();\n const triggerSizeSelectionOpen = () => {\n if (openTray) {\n updateSizeSelectorError(true);\n }\n setOpenTray(true);\n };\n // const expressCheckoutAvailable = useMemo(() => {\n // return (\n // window.expressCheckoutPDP &&\n // !window.unshoppable &&\n // (!current?.isBoutiqueExclusive || !current?.isBoutiqueExclusivePDP) &&\n // !current?.availability?.isOutOfStock &&\n // current?.isComingSoon != 2 &&\n // !current?.notShoppable &&\n // !current?.isMbm &&\n // (current?.price?.type || current?.price?.sales?.value) &&\n // (currentSize == undefined || currentSize?.selectable)\n // );\n // }, [current, currentSize]);\n const stickyBarRef = useStickybarAnimation();\n return (React.createElement(\"div\", { ref: stickyBarRef, className: classNames(['sticky-tray', { forward: openTray }]), \"aria-hidden\": \"true\" },\n React.createElement(\"div\", { className: \"sticky-tray--inner\" },\n React.createElement(\"div\", { className: \"sticky-tray__wrapper\" },\n currentBreakpoint >= window.mqObj.lg && (React.createElement(\"div\", { className: \"sticky-tray__name font__title\" },\n React.createElement(\"p\", null, current === null || current === void 0 ? void 0 : current.productName))),\n React.createElement(\"div\", { className: \"sticky-tray__price font__title\" },\n React.createElement(\"div\", { className: classNames({ container: !isDesktop }) },\n React.createElement(ProductPrice, { price: variantPrice || (current === null || current === void 0 ? void 0 : current.price), promotions: current.promotions, inline: true }))),\n React.createElement(\"div\", { className: \"sticky-tray__button\" },\n React.createElement(ProductButton, { current: current, currentSize: currentSize, currentColor: currentColor, colourVariations: colourVariations, sizeVariations: sizeVariations, onAddStart: () => setOpenTray(false), triggerOpenSize: triggerSizeSelectionOpen, trackAddToBag: trackAddToBag, showReserveInBoutiqueButton: showReserveInBoutiqueButton, excludeForA11N: true, stickyPDP: true, productStatus: props.productStatus })),\n React.createElement(ModalDialog\n //@ts-ignore disable-next-line\n , { \n //@ts-ignore disable-next-line\n hideHeader: currentBreakpoint >= window.mqObj.lg, className: \"sticky-tray__modal\", overlayClassName: \"sticky-tray__overlay mobile-visible\", isOpen: openTray, onRequestClose: () => setOpenTray(false), parentSelector: () => document.querySelector('#maincontent'), fullWidth: true, noPadding: true, contentLabel: current === null || current === void 0 ? void 0 : current.productName },\n React.createElement(\"div\", { className: \"selector-color\" },\n React.createElement(\"div\", { className: \"selector__header\" },\n React.createElement(\"span\", { className: \"selector__label\" },\n React.createElement(\"span\", { className: \"selector__label__name font__title\" }, t('product.colorlabel')),\n (currentColor === null || currentColor === void 0 ? void 0 : currentColor.displayValue) && React.createElement(\"span\", { className: \"selector__label__value\" }, currentColor.displayValue)),\n !isWideDesktop && (React.createElement(\"div\", { className: \"selector-navigation\" },\n React.createElement(\"button\", { className: \"selector-prev selector-button selector-prev-pdpcolor\", tabIndex: -1 },\n React.createElement(Icon, { family: \"10\", name: \"left-chevron\" })),\n React.createElement(\"button\", { className: \"selector-next selector-button selector-next-pdpcolor\", tabIndex: -1 },\n React.createElement(Icon, { family: \"10\", name: \"right-chevron\" }))))),\n React.createElement(ProductSelectionColorPDP, { variationValues: colourVariations, currentId: currentColor === null || currentColor === void 0 ? void 0 : currentColor.id, onChangeVariation: (colorVariation) => {\n props.changeColor(colorVariation);\n }, className: 'inpdp', productUuid: current.masterId, isBoutiqueExclusive: current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive })),\n React.createElement(ProductSelectionSizesExpanded, { variationValues: sizeVariations, current: current, currentId: currentSize === null || currentSize === void 0 ? void 0 : currentSize.id, onChangeVariation: (sizeVariation) => {\n changeSize(sizeVariation);\n // analytics.selectedSize(sizeVariation.displayValue, current.masterId);\n }, error: sizeSelectorError ? (((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock) ? t('label.outofstock') : !currentSize ? t('label.pleaseselectasize') : undefined) : undefined, \n // trackOpenSize={() => analytics.openSize(current?.masterId)}\n setSizeguideOpen: props === null || props === void 0 ? void 0 : props.setSizeguideOpen, showSizeFit: true, showSizeFitMobile: true, className: \"inpdp\" }))))));\n};\nexport default ProductStickyTray;\n","import { createSelector } from '@reduxjs/toolkit';\nconst currentProduct = (state) => state.product.current;\nconst filterAttributes = (product, attributeType) => {\n var _a;\n return (((_a = product === null || product === void 0 ? void 0 : product.attributes) === null || _a === void 0 ? void 0 : _a.find((attribute) => {\n return attribute.ID === attributeType;\n })) || null);\n};\nexport const compositionAndCareTextSelector = createSelector([currentProduct], (product) => filterAttributes(product, 'compositionAndCare'));\nexport const characteristicsTextSelector = createSelector([currentProduct], (product) => filterAttributes(product, 'characteristics'));\nexport const stylistNoteTextSelector = createSelector([currentProduct], (product) => filterAttributes(product, 'stylistNote'));\n","import React, { useMemo } from 'react';\nconst ProductDetailsEditorials = (props) => {\n const renderComponent = () => {\n var _a;\n if ((_a = props.content) === null || _a === void 0 ? void 0 : _a.typeid) {\n switch (props.content.typeid) {\n case 'component_pdp_return':\n return React.createElement(ShippingAndReturn, Object.assign({}, props));\n break;\n case 'component_pdp_specialservices':\n return React.createElement(SpecialServices, Object.assign({}, props));\n break;\n }\n }\n return React.createElement(React.Fragment, null);\n };\n return renderComponent();\n};\nconst ContentItem = (props) => {\n const { name, description } = props;\n return (React.createElement(React.Fragment, null,\n React.createElement(\"dt\", null, name),\n React.createElement(\"dd\", { dangerouslySetInnerHTML: { __html: description } })));\n};\nconst ShippingAndReturn = (props) => {\n const { content } = props;\n const shippingblocks = useMemo(() => {\n var _a;\n return (_a = content === null || content === void 0 ? void 0 : content.regions) === null || _a === void 0 ? void 0 : _a.shippingblocks.components;\n }, [content]);\n return (React.createElement(\"div\", { className: \"shippingandreturn\" },\n React.createElement(\"dl\", null, shippingblocks.map((block, _n) => (React.createElement(ContentItem, Object.assign({}, block, { key: _n }))))),\n React.createElement(\"div\", { className: \"returntext mt-40\", dangerouslySetInnerHTML: { __html: content.returntext } })));\n};\nconst SpecialServices = (props) => {\n const { content } = props;\n const services = useMemo(() => {\n var _a;\n return (_a = content === null || content === void 0 ? void 0 : content.regions) === null || _a === void 0 ? void 0 : _a.services.components;\n }, [content]);\n return (React.createElement(\"div\", { className: \"SpecialServices\" },\n React.createElement(\"dl\", { className: \"doubled\" }, services.map((block, _n) => (React.createElement(ContentItem, Object.assign({}, block, { key: _n })))))));\n};\nexport default ProductDetailsEditorials;\n","import ModalDrawer from '@stone/components/modal/ModalDrawer';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\nimport { compositionAndCareTextSelector, stylistNoteTextSelector } from '@common/state/features/product.selectors';\nimport Accordion from '@common/ui/accordion/Accordion';\nimport AccordionItem from '@common/ui/accordion/AccordionItem';\n// import analytics from '@common/utils/analytics';\nimport ReactHtmlParser from 'react-html-parser';\n// import SizeGuide from '@stone/components/sizeguide/SizeGuide';\n// import SizeGuideButton from '@stone/components/sizeguide/SizeGuideButton';\n// import Button from '@stone/ui/button/Button';\nimport Image from '@stone/ui/image/Image';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport ProductDetailsEditorials from './ProductDetailsEditorials';\nconst EVENTNAME = 'productdetails';\nexport const requestProductDetailsOpen = (target, originalEvent) => {\n customEventBus.emit(EVENTNAME, {\n action: 'open',\n target,\n originalEvent,\n });\n};\nconst ProductDetailsDialog = (props) => {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n const { t } = useTranslation();\n const compositionAndCareText = useSelector(compositionAndCareTextSelector);\n const stylistNoteText = useSelector(stylistNoteTextSelector);\n const [isOpen, setIsOpen] = useState(props.isOpen);\n const opener = useRef(null);\n const printValues = (attr) => {\n if (!attr) {\n return React.createElement(React.Fragment, null);\n }\n return attr.attributes.map((items) => items === null || items === void 0 ? void 0 : items.value.map((item) => (item.type === 'image' ? React.createElement(\"img\", { key: item.url, src: item.url, alt: item.alt || '' }) : React.createElement(\"div\", { key: item }, ReactHtmlParser(item)))));\n };\n const shippingAndReturns = useMemo(() => {\n var _a;\n return (_a = props.componentsDrawer) === null || _a === void 0 ? void 0 : _a.find((com) => com.typeid == 'component_pdp_return');\n }, [props.componentsDrawer]);\n const specialServicesPdp = useMemo(() => {\n var _a;\n return (_a = props.componentsDrawer) === null || _a === void 0 ? void 0 : _a.find((com) => com.typeid == 'component_pdp_specialservices');\n }, [props.componentsDrawer]);\n const handleClose = () => {\n props.handleClose && props.handleClose();\n setIsOpen(false);\n setTimeout(() => {\n var _a;\n (_a = opener.current) === null || _a === void 0 ? void 0 : _a.focus();\n }, 0);\n };\n const printValuesCare = () => {\n var _a, _b;\n const compositionAndCare = (_a = props.product) === null || _a === void 0 ? void 0 : _a.compositionAndCare;\n if (!compositionAndCare) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", null,\n compositionAndCare.showCareDescription && compositionAndCare.care ? React.createElement(\"p\", { className: \"care-description\" }, compositionAndCare.care || '') : React.createElement(React.Fragment, null),\n React.createElement(\"p\", { className: \"mt-24 composition-description\" }, compositionAndCare.composition || ''),\n React.createElement(\"ul\", { className: \"composition-care-icons-container mt-40\" }, (_b = compositionAndCare.icons) === null || _b === void 0 ? void 0 : _b.map((e) => (React.createElement(\"li\", { className: \"composition-care-icons\", key: e.url },\n React.createElement(\"img\", { src: e.url, alt: e.description }),\n React.createElement(\"span\", null, e.description || '')))))));\n };\n useEffect(() => {\n let handler = (data) => {\n var _a;\n if (data.action == 'open') {\n opener.current = (_a = data.originalEvent) === null || _a === void 0 ? void 0 : _a.target;\n setIsOpen(data.target || true);\n }\n else {\n setIsOpen(false);\n }\n };\n customEventBus.on(EVENTNAME, handler);\n return () => {\n customEventBus.off(EVENTNAME, handler);\n };\n }, []);\n if (!(props === null || props === void 0 ? void 0 : props.product))\n return React.createElement(React.Fragment, null);\n return (React.createElement(ModalDrawer, { isOpen: !!isOpen, onRequestClose: handleClose, contentLabel: props.product.productName, id: \"product-details-modal\" },\n React.createElement(\"div\", { className: \"product-details\" },\n React.createElement(Accordion, { gap: 20 },\n React.createElement(AccordionItem\n // callbackOnOpen={() => detectAccordionOpen(compositionAndCareText?.name, props.product.id)}\n , { \n // callbackOnOpen={() => detectAccordionOpen(compositionAndCareText?.name, props.product.id)}\n title: t('product.fabricandresearch'), headerClass: \"accordion__header--uc\", accordionId: \"fabric-research\", isInitialOpen: typeof isOpen !== 'string' },\n React.createElement(\"p\", null, props.product.longDescription),\n ((_b = (_a = props.product) === null || _a === void 0 ? void 0 : _a.pdpIcons) === null || _b === void 0 ? void 0 : _b.length) && (React.createElement(\"ul\", { className: \"icons-list\" }, props.product.pdpIcons.map((el) => (React.createElement(\"li\", { key: el.label },\n React.createElement(Image, { src: el.path, alt: el.label }))))))),\n ((_c = stylistNoteText === null || stylistNoteText === void 0 ? void 0 : stylistNoteText.attributes) === null || _c === void 0 ? void 0 : _c.length) && (React.createElement(AccordionItem\n // callbackOnOpen={() => detectAccordionOpen('styleAndFitText', props.product.id)}\n , { \n // callbackOnOpen={() => detectAccordionOpen('styleAndFitText', props.product.id)}\n title: t('product.styleandfit'), headerClass: \"accordion__header--uc\", accordionId: \"styleAndFit\" },\n React.createElement(React.Fragment, null,\n React.createElement(\"div\", { dangerouslySetInnerHTML: { __html: (_d = stylistNoteText === null || stylistNoteText === void 0 ? void 0 : stylistNoteText.attributes[0]) === null || _d === void 0 ? void 0 : _d.value[0] } })))),\n React.createElement(AccordionItem\n // callbackOnOpen={() => detectAccordionOpen(compositionAndCareText?.name, props.product.id)}\n , { \n // callbackOnOpen={() => detectAccordionOpen(compositionAndCareText?.name, props.product.id)}\n title: compositionAndCareText === null || compositionAndCareText === void 0 ? void 0 : compositionAndCareText.name, headerClass: \"accordion__header--uc\", accordionId: \"composition-care\" },\n React.createElement(React.Fragment, null,\n printValuesCare(),\n React.createElement(\"p\", { className: \"mt-12\" },\n t('product.styleno'),\n \" \",\n props.product.id),\n props.product.madeIn && React.createElement(\"p\", null, props.product.madeIn),\n props.product.firstProductDate && (React.createElement(\"p\", null,\n t('product.productmanufactored'),\n \" \",\n props.product.firstProductDate)),\n props.product.importedBy && React.createElement(\"p\", null, props.product.importedBy),\n ((_e = props.product) === null || _e === void 0 ? void 0 : _e.traceability) && ((_f = props.product) === null || _f === void 0 ? void 0 : _f.traceability.url) && (React.createElement(\"div\", { className: \"composition-care_agec\" },\n React.createElement(\"p\", { className: \"font__subtitle\", id: \"composition-care_agec\" }, t('product.compositionandcaretraceabilitytitle')),\n React.createElement(\"p\", null,\n t('product.compositionandcaretraceability'),\n ' ',\n React.createElement(\"a\", { href: props.product.traceability.url, target: \"_blank\" }, t('product.compositionandcaretraceabilitycta'))))))),\n !((_g = props.product) === null || _g === void 0 ? void 0 : _g.notShoppable) && shippingAndReturns && (React.createElement(AccordionItem\n // callbackOnOpen={() => detectAccordionOpen(shippingAndReturns?.name, props.product.id)}\n , { \n // callbackOnOpen={() => detectAccordionOpen(shippingAndReturns?.name, props.product.id)}\n title: shippingAndReturns === null || shippingAndReturns === void 0 ? void 0 : shippingAndReturns.name, headerClass: \"accordion__header--uc\", accordionId: \"shipping-returns\", isInitialOpen: isOpen === 'delivery' },\n React.createElement(\"div\", { className: \"pdp-drawer-ca\" },\n React.createElement(ProductDetailsEditorials, { content: shippingAndReturns })))),\n !((_h = props.product) === null || _h === void 0 ? void 0 : _h.notShoppable) && specialServicesPdp && (React.createElement(AccordionItem\n // callbackOnOpen={() => detectAccordionOpen(specialServicesPdp?.name, props.product.id)}\n , { \n // callbackOnOpen={() => detectAccordionOpen(specialServicesPdp?.name, props.product.id)}\n title: specialServicesPdp === null || specialServicesPdp === void 0 ? void 0 : specialServicesPdp.name, headerClass: \"accordion__header--uc\", accordionId: \"special-services\", isInitialOpen: isOpen === 'special-services' },\n React.createElement(\"div\", { className: \"pdp-drawer-ca\" },\n React.createElement(ProductDetailsEditorials, { content: specialServicesPdp }))))))));\n};\nexport default ProductDetailsDialog;\n","import React, { useMemo, useState } from 'react';\nimport classNames from 'classnames';\nimport { useTranslation } from 'react-i18next';\nimport AnimateHeight from 'react-animate-height';\nimport ProductReserveInBoutique from '@stone/components/reserve/ProductActionReserveInBoutique';\nimport ModalDialog from '@stone/components/modal/ModalDialog';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport IconButton from '@stone/ui/button/IconButton';\n// import analytics from '@common/utils/analytics';\nimport GetInTouch from '@stone/components/clientService/GetInTouch';\nimport { requestProductDetailsOpen } from './ProductDetailsDialog';\nconst ProductServiceLinks = (props) => {\n const { isWideDesktop } = useMediaQueries();\n const { t } = useTranslation();\n //* ANCHOR - STATES --------------------------------------------------------------------------------------------------------------------------------------------\n const [showMoreLinks, setShowMoreLinks] = useState(false);\n const [contactusModalOpen, setContactusModalOpen] = useState(false);\n //* SECTION - USE MEMO --------------------------------------------------------------------------------------------------------------------------------------------\n const serviceLinksArray = useMemo(() => {\n // TODO - Waiting for additional service link indications\n const array = [\n // {\n // //ORDER MANAGEMENT\n // label: t('product.ordermanagement.label'),\n // url: t('product.ordermanagement.url'),\n // },\n // {\n // //AFTER CARE\n // label: t('product.aftercare.label'),\n // url: t('product.aftercare.url'),\n // },\n ];\n return array;\n }, []);\n const linksNeedShowMore = useMemo(() => {\n return isWideDesktop && (serviceLinksArray === null || serviceLinksArray === void 0 ? void 0 : serviceLinksArray.length) > 0;\n }, [isWideDesktop, serviceLinksArray]);\n //* SECTION - COMPONENTS --------------------------------------------------------------------------------------------------------------------------------------------\n const renderStandardServices = () => (React.createElement(React.Fragment, null,\n props.isReserveLinkShowable && props.currentColor && !props.current.signupSaleProduct && (React.createElement(ProductReserveInBoutique, { product: props.current, size: props.currentSize, color: props.currentColor, sizeVariations: props.sizeVariations, colourVariations: props.colourVariations, overrideLabel: t('product.reserveinstore'), setSizeGuideOpen: props === null || props === void 0 ? void 0 : props.setSizeGuideOpen })),\n !window.unshoppable && (React.createElement(\"button\", { onClick: (e) => requestProductDetailsOpen('delivery', e), \"aria-haspopup\": 'dialog', className: \"button button--tertiary\" },\n React.createElement(\"span\", null, t('product.deliveryreturn')))),\n React.createElement(\"button\", { onClick: () => setContactusModalOpen(true), \"aria-haspopup\": 'dialog', className: \"button button--tertiary\" },\n React.createElement(\"span\", null, t('product.contactus')))));\n const renderAdditionalServices = (arr) => arr === null || arr === void 0 ? void 0 : arr.map((el) => (React.createElement(\"a\", { key: el.label, href: el.url, className: \"button button--tertiary\" },\n React.createElement(\"span\", null, el.label))));\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: classNames('product-selection__actions-shipping on-pdp', { 'show-more': linksNeedShowMore }) }, linksNeedShowMore ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"product-selection__actions-shipping__header\" },\n renderStandardServices(),\n React.createElement(IconButton, { type: \"button\", icon: showMoreLinks ? 'minimize' : 'open', onClick: () => setShowMoreLinks(!showMoreLinks), family: \"10\", hideborder: true, className: \"product-selection__actions-shipping__openButton\", ariaExpanded: linksNeedShowMore ? showMoreLinks : null, ariaControls: \"service-links\", ariaLabel: t('product.servicelinks.openbutton'), id: \"service-links-button\" })),\n React.createElement(AnimateHeight, { \"aria-labelledby\": \"service-links-button\", id: \"service-links\", contentClassName: \"product-selection__actions-shipping__body\", height: showMoreLinks ? 'auto' : 0, role: \"region\" }, renderAdditionalServices(serviceLinksArray)))) : (React.createElement(React.Fragment, null,\n renderStandardServices(),\n renderAdditionalServices(serviceLinksArray)))),\n React.createElement(ModalDialog, { contentLabel: t('label.contactus'), className: \"contactus-modal\", isOpen: contactusModalOpen, role: \"dialog\", hasDivisor: true, subtitle: t('contactus.pdpDescription'), onRequestClose: () => {\n // if (location.search.includes('openVTO')) analytics.vtoPdpClose();\n setContactusModalOpen(false);\n }, fullHeight: true, fullWidth: true, id: \"contact-us\" },\n React.createElement(\"div\", { className: classNames('contact-details contact-details--enhanced', { 'clothing-contact-details': window.isClothing }) },\n React.createElement(GetInTouch, { type: \"BLOCKS\", layout: \"ROWS\", hideCountrySelector: true, notInSection: true, showEmail: true })))));\n};\nexport default ProductServiceLinks;\n","import React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { Swiper, SwiperSlide } from 'swiper/react';\nimport SwiperCore, { A11y, Keyboard, Navigation } from 'swiper';\nSwiperCore.use([A11y, Keyboard, Navigation]);\nimport ProductImage from '@stone/components/product/ProductImage';\nconst ProductShopTheLookInfo = (props) => {\n const { current } = props;\n const { t } = useTranslation();\n const [activeSlide, setActiveSlide] = useState(0);\n const onLookClick = (lookIndex) => {\n customEventBus.emit('shopthelook:quickbuy', { lookIndex: lookIndex });\n };\n const looks = useMemo(() => {\n return current === null || current === void 0 ? void 0 : current.lookProducts;\n }, [current]);\n //* SECTION - RENDER --------------------------------------------------------------------\n if (!looks || looks.length <= 0) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: \"shopthelook\" },\n React.createElement(\"div\", { className: \"shopthelook-infopanel\" },\n React.createElement(\"div\", { className: \"shopthelook-upper\" },\n React.createElement(\"span\", { className: \"shopthelook-title font__title\" }, t('label.shopthelook')),\n looks.length > 3 && (React.createElement(\"div\", { className: \"shopthelook__arrow-container\" },\n React.createElement(\"button\", { className: \"shopthelook__arrow shopthelook__arrow-left swiper-button-prev\", disabled: activeSlide <= 0, \"aria-label\": t('carousel.prevslidemessage') },\n React.createElement(\"i\", { className: \"icon--10-left-chevron\", \"aria-hidden\": true })),\n React.createElement(\"button\", { className: \"shopthelook__arrow shopthelook__arrow-right swiper-button-next\", disabled: activeSlide >= (looks === null || looks === void 0 ? void 0 : looks.length) - 1, \"aria-label\": t('carousel.nextslidemessage') },\n React.createElement(\"i\", { className: \"icon--10-right-chevron\", \"aria-hidden\": true }))))),\n React.createElement(\"div\", { className: \"shopthelook-items\" },\n React.createElement(Swiper, { className: \"swiper-container\", slidesPerView: 3, slidesPerGroup: 1, watchSlidesProgress: true, spaceBetween: 12, a11y: {\n enabled: true,\n slideRole: 'group',\n itemRoleDescriptionMessage: 'slide',\n slideLabelMessage: '',\n prevSlideMessage: t('label.prevslidemessage'),\n nextSlideMessage: t('label.nextslidemessage'),\n }, navigation: {\n nextEl: '.shopthelook__arrow-right',\n prevEl: '.shopthelook__arrow-left',\n }, slideToClickedSlide: false, onSlideChange: (swiper) => setActiveSlide(swiper.activeIndex) }, looks.map((look, i) => (React.createElement(SwiperSlide, { key: look.uuid },\n React.createElement(\"button\", { type: \"button\", className: \"button\", onClick: () => onLookClick(i) },\n React.createElement(ProductImage, { img: look === null || look === void 0 ? void 0 : look.imgs, type: \"F\" }))))))))));\n};\nexport default ProductShopTheLookInfo;\n","import ProductPrice from '@stone/components/product/ProductPrice';\n// import analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport { getColorVariations, getSizeVariations } from '@utils/product';\nimport React, { Suspense, useMemo, useState, useEffect, useRef } from 'react';\nimport { useSelector } from 'react-redux';\nimport ProductReserveInBoutique from '@stone/components/reserve/ProductActionReserveInBoutique';\nimport ProductWishlistToggle from '@stone/components/product/ProductWishlistToggle';\nimport ProductLabels from '@stone/components/product/ProductLabels';\nimport ProductSelectionSizesExpanded from '@stone/components/product/ProductSelectionSizesExpanded';\nimport { useTranslation } from 'react-i18next';\nimport ProductButton from '@stone/components/product/ProductButton';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport ProductSelectionColorPDP from './ProductSelectionColorPDP';\nimport ProductStickyTray from '@stone/components/product/ProductStickyTray';\nimport Icon from '@stone/ui/icon/Icon';\nimport { createPortal } from 'react-dom';\nimport ProductServiceLinks from './ProductServiceLinks';\nimport { useHistory } from 'react-router';\nimport analytics from '@stone/utils/analytics';\nimport { requestProductDetailsOpen } from './ProductDetailsDialog';\nimport { InstalmentButton } from './ProductInstalmentDrawer';\nimport { siteUrl } from '@common/utils/urlutils';\nimport classNames from 'classnames';\nimport ProductShopTheLookInfo from './ProductShopTheLookInfo';\nconst ExpressPaymentsModal = React.lazy(() => import('@components/bag/ExpressPaymentsModal'));\nconst ProductSelection = (props) => {\n var _a, _b, _c, _d;\n let current;\n const inLook = !!props.currentLook;\n const forcedProduct = !!props.product;\n const history = useHistory();\n const expressProps = { termsandconditions: siteUrl('terms'), privacypolicy: siteUrl('privacy'), hideSummary: true, modalNoPadding: true, modalFullWidth: true };\n //* ANCHOR - CUSTOM HOOKS --------------------------------------------------------------------------------------------------------------------------------------\n const { t } = useTranslation();\n const { isDesktop, isWideDesktop, isReflow } = useMediaQueries();\n const buttonRef = useRef();\n const profile = useSelector((state) => state.product).userShoppingInfo;\n if (inLook) {\n current = props.currentLook;\n }\n else if (forcedProduct) {\n current = props.product;\n }\n else {\n current = useSelector((state) => state.product).current;\n }\n const variantSizeObj = useMemo(() => (props.size ? JSON.parse(props.size) : undefined), [props.size]);\n // ANCHOR - STATES --------------------------------------------------------------------------------------------------------------------------------------------\n const [currentSize, setCurrentSize] = useState();\n const [variantPrice, setVariantPrice] = useState(((_b = (_a = variantSizeObj === null || variantSizeObj === void 0 ? void 0 : variantSizeObj.price) === null || _a === void 0 ? void 0 : _a.sales) === null || _b === void 0 ? void 0 : _b.value) ? variantSizeObj.price : undefined);\n const [currentColor, setCurrentColor] = useState();\n const [sizeSelectorError, setSizeSelectorError] = useState(false);\n // ANCHOR - USE EFFECT --------------------------------------------------------------------------------------------------------------------------------------------\n useEffect(() => {\n const colorSelected = getColorVariations(current).find((v) => v.selected);\n if (colorSelected) {\n setCurrentColor(colorSelected);\n if (currentColor && currentSize) {\n onSizeSelection(currentSize.id, true);\n }\n }\n }, [current, currentSize]);\n //log profile\n useEffect(() => {\n console.log('profile', profile);\n }, [profile]);\n // ANCHOR - FUNCTIONS ------------------------------------------------------------------------------------------------------------------------------------------\n const sendAnalytics = (context) => {\n analytics.addToBag(current, currentSize, variantPrice, { detail: context });\n };\n const changeColor = (colorVariation) => {\n if (!colorVariation) {\n return;\n }\n if (!inLook) {\n history.push(colorVariation.route);\n }\n };\n const changeSize = (variation, blockAnalytics) => {\n setCurrentSize(variation);\n // qui non va cambiato il prodotto, va solo salvata la taglia selezionata che serve per l'add to cart\n if ((current === null || current === void 0 ? void 0 : current.price.type) === 'range') {\n // prezzo diverso per taglia\n api.variantPrice(`${current === null || current === void 0 ? void 0 : current.masterId}${currentColor.id}${variation.id}`).then((data) => {\n setVariantPrice(data);\n if (!blockAnalytics) {\n analytics.productDetailChange(current, variation, data);\n }\n });\n }\n else {\n if (!blockAnalytics) {\n analytics.productDetailChange(current, variation);\n }\n }\n };\n const onSizeSelection = (size, blockAnalytics) => {\n if (size) {\n let sizeVariation = sizeVariations.find((s) => s.id == size);\n if (sizeVariation) {\n changeSize(sizeVariation, blockAnalytics);\n }\n }\n };\n const triggerSizeSelectionOpen = () => {\n let selectSize = document.querySelector('#PDP-size-selector .selector__menu--fieldset');\n setTimeout(() => {\n setSizeSelectorError(true);\n selectSize.focus();\n }, 0);\n };\n //* SECTION - USE MEMO --------------------------------------------------------------------------------------------------------------------------------------------\n const colourVariations = useMemo(() => {\n let colors;\n colors = getColorVariations(current).map((value) => {\n return Object.assign(Object.assign({}, value), { groupPid: (current === null || current === void 0 ? void 0 : current.masterId) + value.id });\n });\n if (inLook) {\n // non è possibile selezionare altri colori nel look\n colors = colors.filter((value) => value.selected);\n }\n return colors;\n }, [current, inLook]);\n const sizeVariations = useMemo(() => {\n let sizeVariations = getSizeVariations(current);\n if (sizeVariations.length == 1) {\n setCurrentSize(sizeVariations[0]);\n }\n else if (sizeVariations.find((el) => el.displayValue == (variantSizeObj === null || variantSizeObj === void 0 ? void 0 : variantSizeObj.size))) {\n setCurrentSize(sizeVariations.find((el) => el.displayValue == variantSizeObj.size));\n }\n else if (!sizeVariations.find((el) => el.id == (currentSize === null || currentSize === void 0 ? void 0 : currentSize.id))) {\n setCurrentSize(undefined);\n }\n // console.info('nascondo il messaggio di errore');\n setSizeSelectorError(false);\n return sizeVariations;\n }, [current]);\n const sizeError = useMemo(() => {\n if (sizeSelectorError && !currentSize) {\n return t('label.pleaseselectasize');\n }\n }, [sizeSelectorError, currentSize]);\n const lastItem = useMemo(() => {\n if (sizeVariations && currentSize) {\n const _currentSize = sizeVariations.find((variation) => variation.id === currentSize.id);\n if (_currentSize.ATS === 1) {\n return t('product.lastAvailable');\n }\n }\n }, [sizeVariations, currentSize]);\n const showReserveInBoutiqueButton = useMemo(() => {\n var _a;\n return !window.noboutiqueavailability &&\n !(current === null || current === void 0 ? void 0 : current.isOnlineExclusive) &&\n ((current === null || current === void 0 ? void 0 : current.notShoppable) || ((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock) || (current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) || (current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP));\n }, [currentSize, current]);\n const isReservable = useMemo(() => (showReserveInBoutiqueButton || window.unshoppable || (current === null || current === void 0 ? void 0 : current.notShoppable) || (current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) || (current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP)) && !current.isComingSoon, [showReserveInBoutiqueButton, current]);\n const addToBagAvailable = useMemo(() => {\n var _a, _b, _c, _d;\n return (!window.unshoppable &&\n (!(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) || !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP)) &&\n (!currentSize || (currentSize === null || currentSize === void 0 ? void 0 : currentSize.selectable)) &&\n !((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock) &&\n (current === null || current === void 0 ? void 0 : current.isComingSoon) != 2 &&\n !(current === null || current === void 0 ? void 0 : current.notShoppable) &&\n (((_b = current === null || current === void 0 ? void 0 : current.price) === null || _b === void 0 ? void 0 : _b.type) || ((_d = (_c = current === null || current === void 0 ? void 0 : current.price) === null || _c === void 0 ? void 0 : _c.sales) === null || _d === void 0 ? void 0 : _d.value)));\n }, [current, currentSize]);\n const showReserveInBoutiqueLink = useMemo(() => !window.noboutiqueavailability && !(current === null || current === void 0 ? void 0 : current.isOnlineExclusive) && !(current === null || current === void 0 ? void 0 : current.isMbm), [showReserveInBoutiqueButton, current]);\n const expressCheckoutAvailable = useMemo(() => {\n var _a, _b, _c, _d;\n return (window.expressCheckoutPDP &&\n !window.isClothing &&\n !window.unshoppable &&\n (!(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) || !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP)) &&\n !((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock) &&\n (current === null || current === void 0 ? void 0 : current.isComingSoon) != 2 &&\n !(current === null || current === void 0 ? void 0 : current.notShoppable) &&\n !(current === null || current === void 0 ? void 0 : current.isMbm) &&\n (((_b = current === null || current === void 0 ? void 0 : current.price) === null || _b === void 0 ? void 0 : _b.type) || ((_d = (_c = current === null || current === void 0 ? void 0 : current.price) === null || _c === void 0 ? void 0 : _c.sales) === null || _d === void 0 ? void 0 : _d.value)) &&\n !inLook &&\n !current.isPreview);\n }, [current, currentSize]);\n const limitColorLength = useMemo(() => {\n if (isDesktop) {\n return 5;\n }\n else {\n return 4;\n }\n }, [isDesktop]);\n const isReserveLinkShowable = useMemo(() => { var _a; return showReserveInBoutiqueLink && !inLook && !window.unshoppable && !((_a = current === null || current === void 0 ? void 0 : current.availability) === null || _a === void 0 ? void 0 : _a.preorder) && !window.isClothing; }, [showReserveInBoutiqueLink, inLook, current]);\n const PRODUCT_STATUS = useMemo(() => {\n var _a, _b;\n if (!(current === null || current === void 0 ? void 0 : current.signupSaleProduct)) {\n return 'DEFAULT';\n }\n else {\n if (profile === null || profile === void 0 ? void 0 : profile.guest) {\n return 'RESTRICTED_GUEST';\n }\n else {\n if (((_b = (_a = profile === null || profile === void 0 ? void 0 : profile.sale) === null || _a === void 0 ? void 0 : _a.saleSignupCountryCode) === null || _b === void 0 ? void 0 : _b.length) && profile.sale.saleSignupCountryCode !== window.country) {\n return 'RESTRICTED_NOT_ELIGIBLE_DIFFERENT_COUNTRY';\n }\n else if (current.customerGroups.some((g) => profile === null || profile === void 0 ? void 0 : profile.customerGroups.includes(g))) {\n return 'RESTRICTED_ELIGIBLE';\n }\n else {\n return 'RESTRICTED_NOT_ELIGIBLE';\n }\n }\n }\n }, [current, profile]);\n // ANCHOR - SERVICE LINKS\n // const serviceLinksArray = useMemo(() => {\n // // TODO - Waiting for additional service link indications\n // const array: any[] = [\n // // {\n // // //ORDER MANAGEMENT\n // // label: t('product.ordermanagement.label'),\n // // url: t('product.ordermanagement.url'),\n // // },\n // // {\n // // //AFTER CARE\n // // label: t('product.aftercare.label'),\n // // url: t('product.aftercare.url'),\n // // },\n // ];\n // return array;\n // }, []);\n // const linksNeedShowMore = useMemo(() => {\n // return isWideDesktop && serviceLinksArray?.length > 0;\n // }, [isWideDesktop, serviceLinksArray]);\n //!SECTION end useMemo\n //* ANCHOR - COMPONENTS ----------------------------------------------------------------------------------------------------------------------------------------\n const breadcrumb = (parentCategory) => {\n return (React.createElement(\"a\", { href: parentCategory === null || parentCategory === void 0 ? void 0 : parentCategory.url, className: !inLook ? 'in-pdp' : '', \"aria-label\": `${t('label.backtoplp', [parentCategory === null || parentCategory === void 0 ? void 0 : parentCategory.htmlValue])}` },\n React.createElement(\"span\", { \"aria-hidden\": \"true\" },\n \"< \",\n (parentCategory === null || parentCategory === void 0 ? void 0 : parentCategory.htmlValue) || t('label.back'))));\n };\n // const renderStandardServices = (arr: { label: string; url: string }[]) =>\n // arr?.map((el) => (\n // \n // {el.label}\n // \n // ));\n // const renderAdditionalServices = (arr: { label: string; url: string }[]) =>\n // arr?.map((el) => (\n // \n // {el.label}\n // \n // ));\n const lineIconsContainer = (className) => {\n const breadcrumbs = (current === null || current === void 0 ? void 0 : current.breadcrumbs) || [];\n const parentCategory = breadcrumbs[breadcrumbs.length - 1];\n return (React.createElement(\"div\", { className: className },\n React.createElement(\"div\", { className: \"product-selection__breadcrumb\" }, breadcrumb(parentCategory)),\n !inLook && (React.createElement(\"div\", { className: \"product-selection__line-labels\" },\n React.createElement(ProductLabels, { product: current })))));\n };\n const renderButtons = () => (React.createElement(React.Fragment, null,\n !window.unshoppable && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"product-selection__ctas\", ref: props.ctasRef },\n React.createElement(ProductButton, { inPDP: props.inPDP, current: current, currentSize: currentSize, currentColor: currentColor, colourVariations: colourVariations, sizeVariations: sizeVariations, triggerOpenSize: triggerSizeSelectionOpen, trackAddToBag: () => sendAnalytics('product selection'), showReserveInBoutiqueButton: showReserveInBoutiqueButton, inShopTheLook: props.shopTheLook, inverted: props.inverted, productStatus: PRODUCT_STATUS }),\n currentColor && !(current === null || current === void 0 ? void 0 : current.isMbm) && !(props === null || props === void 0 ? void 0 : props.currentLook) && !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) && !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP) && PRODUCT_STATUS === 'DEFAULT' && (React.createElement(ProductWishlistToggle, { color: \"black\", productSize: currentSize, productColor: currentColor, product: current, section: \"pdp\", modifierClass: \"button button--icon\" }))),\n expressCheckoutAvailable &&\n addToBagAvailable &&\n (((current === null || current === void 0 ? void 0 : current.unlock) && window.loggedin) || !current.unlock) &&\n !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive) &&\n !(current === null || current === void 0 ? void 0 : current.isBoutiqueExclusivePDP) &&\n (PRODUCT_STATUS === 'DEFAULT' || PRODUCT_STATUS === 'RESTRICTED_ELIGIBLE') && (React.createElement(\"div\", { className: \"product-selection__ctas\" },\n React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },\n React.createElement(ExpressPaymentsModal, Object.assign({ currentId: current.id, size: currentSize, triggerOpenSize: triggerSizeSelectionOpen }, expressProps))))),\n PRODUCT_STATUS.startsWith('RESTRICTED_NOT_ELIGIBLE') && (React.createElement(\"a\", { href: t('product.sale.continueshoppingurl'), className: \"button button--secondary full\" },\n React.createElement(\"span\", null, t('button.continueshopping')))))),\n isReservable && currentColor && PRODUCT_STATUS === 'DEFAULT' && (React.createElement(\"div\", { className: \"product-selection__ctas\" },\n React.createElement(ProductReserveInBoutique, { product: current, size: currentSize, color: currentColor, sizeVariations: sizeVariations, colourVariations: colourVariations, buttonType: \"secondary\" })))));\n //* SECTION - RENDER --------------------------------------------------------------------\n return (React.createElement(React.Fragment, null,\n !inLook &&\n props.imageLoaded &&\n addToBagAvailable &&\n !isReflow &&\n createPortal(React.createElement(ProductStickyTray, { current: current, currentColor: currentColor, changeColor: changeColor, currentSize: currentSize, changeSize: changeSize, colourVariations: colourVariations, sizeVariations: sizeVariations, sizeSelectorError: sizeSelectorError, updateSizeSelectorError: (e) => setSizeSelectorError(e), variantPrice: variantPrice, trackAddToBag: () => sendAnalytics('sticky tray'), showReserveInBoutiqueButton: showReserveInBoutiqueButton, setSizeguideOpen: props === null || props === void 0 ? void 0 : props.setSizeguideOpen, isPdp: props.isPdp, productStatus: PRODUCT_STATUS }), document.querySelector('#catalog')),\n React.createElement(\"div\", { className: \"product-selection__heading--placeholder\" },\n React.createElement(\"div\", { className: \"product-selection__heading\" },\n (!inLook || (current === null || current === void 0 ? void 0 : current.unlock)) && lineIconsContainer('product-selection__line'),\n React.createElement(\"div\", { className: \"product-selection__maininfo\" },\n React.createElement(\"h1\", { className: \"product-selection__name\" }, current === null || current === void 0 ? void 0 : current.productName),\n (current === null || current === void 0 ? void 0 : current.seoName) && React.createElement(\"h2\", { className: \"product-selection__seoname font__labelling\" }, current === null || current === void 0 ? void 0 : current.seoName),\n React.createElement(\"div\", { className: \"product-selection__description\" },\n React.createElement(\"p\", null, (current === null || current === void 0 ? void 0 : current.shortDescription) || (current === null || current === void 0 ? void 0 : current.longDescription)),\n (current === null || current === void 0 ? void 0 : current.additionalShortDescription) && React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: current.additionalShortDescription }, className: \"mt-16\" }),\n current.longDescription && (\n //add long description hidden for seo purpose\n React.createElement(\"p\", { className: \"d-none\" }, current.longDescription))),\n React.createElement(\"button\", { onClick: (e) => {\n requestProductDetailsOpen(null, e);\n }, \"aria-haspopup\": \"dialog\", className: \"button button--tertiary product-details__button\" },\n React.createElement(\"span\", null, t('product.details'))),\n React.createElement(\"span\", { className: \"product-selection__price\" },\n React.createElement(ProductPrice, { price: variantPrice || (current === null || current === void 0 ? void 0 : current.price), promotions: current.promotions, inline: true, showCurrency: true })),\n React.createElement(\"div\", { className: \"product-selection__instolment mt-8\" },\n React.createElement(InstalmentButton, null))))),\n React.createElement(\"div\", { className: \"product-selection__selectors\" },\n React.createElement(\"div\", { className: \"selector-color\" },\n React.createElement(\"div\", { className: \"selector__header\" },\n React.createElement(\"span\", { className: \"selector__label\" },\n React.createElement(\"span\", { className: \"selector__label__name\" }, t('product.colorlabel')),\n (currentColor === null || currentColor === void 0 ? void 0 : currentColor.displayValue) && React.createElement(\"span\", { className: \"selector__label__value\" }, currentColor.displayValue)),\n (colourVariations === null || colourVariations === void 0 ? void 0 : colourVariations.length) > limitColorLength && !isWideDesktop && (React.createElement(\"div\", { className: \"selector-navigation\" },\n React.createElement(\"button\", { className: \"selector-prev selector-prev-pdpcolor selector-button\", tabIndex: -1, \"aria-hidden\": true },\n React.createElement(Icon, { family: \"10\", name: \"left-chevron\" })),\n React.createElement(\"button\", { className: \"selector-next selector-next-pdpcolor selector-button\", tabIndex: -1, \"aria-hidden\": true },\n React.createElement(Icon, { family: \"10\", name: \"right-chevron\" }))))),\n React.createElement(ProductSelectionColorPDP, { variationValues: colourVariations, currentId: currentColor === null || currentColor === void 0 ? void 0 : currentColor.id, onChangeVariation: (colorVariation) => {\n changeColor(colorVariation);\n }, className: 'inpdp', productUuid: current.masterId, isBoutiqueExclusive: current === null || current === void 0 ? void 0 : current.isBoutiqueExclusive })),\n (PRODUCT_STATUS === 'DEFAULT' || PRODUCT_STATUS === 'RESTRICTED_ELIGIBLE') && (React.createElement(ProductSelectionSizesExpanded, { wrapperId: \"PDP-size-selector\", className: \"inpdp\", contactformurl: props === null || props === void 0 ? void 0 : props.contactformurl, variationValues: sizeVariations, current: current, currentId: currentSize === null || currentSize === void 0 ? void 0 : currentSize.id, onChangeVariation: (sizeVariation) => {\n changeSize(sizeVariation);\n // analytics.selectedSize(sizeVariation.displayValue, current.masterId);\n }, error: sizeError, \n // trackOpenSize={() => analytics.openSize(current?.masterId)}\n onSizeSelection: onSizeSelection, setSizeguideOpen: props === null || props === void 0 ? void 0 : props.setSizeguideOpen, sizeguideOpen: props === null || props === void 0 ? void 0 : props.sizeguideOpen, inverted: props.inverted, inPdp: true, lastItem: lastItem, isFullyOutOfStock: (_c = current === null || current === void 0 ? void 0 : current.availability) === null || _c === void 0 ? void 0 : _c.isOutOfStock, showSizeFit: true })),\n React.createElement(React.Fragment, null,\n PRODUCT_STATUS !== 'DEFAULT' && (React.createElement(\"div\", { className: classNames('product-selection__helpertext', {\n errors: PRODUCT_STATUS.startsWith('RESTRICTED_NOT_ELIGIBLE') || sizeError,\n sizesShown: PRODUCT_STATUS === 'RESTRICTED_ELIGIBLE',\n }) },\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('product.sale.ctahelpertext') } }))),\n sizeError && (React.createElement(\"div\", { className: \"selector__error\" },\n React.createElement(Icon, { name: \"alert\", family: \"10\" }),\n React.createElement(\"span\", { className: \"errormessage\", role: \"alert\" }, sizeError))),\n PRODUCT_STATUS.startsWith('RESTRICTED_NOT_ELIGIBLE') && !sizeError && (React.createElement(\"div\", { className: \"selector__error\" },\n React.createElement(Icon, { name: \"alert\", family: \"10\" }),\n React.createElement(\"span\", { className: \"errormessage\", role: \"alert\", dangerouslySetInnerHTML: {\n __html: PRODUCT_STATUS === 'RESTRICTED_NOT_ELIGIBLE_DIFFERENT_COUNTRY'\n ? t('product.sale.restrictednoteligiblecountry', { 0: t(`countrycode.${(_d = profile.sale) === null || _d === void 0 ? void 0 : _d.saleSignupCountryCode}`) })\n : t('product.sale.restrictednoteligible'),\n } }))),\n React.createElement(\"div\", { ref: buttonRef }, renderButtons())),\n React.createElement(ProductServiceLinks, { current: current, currentSize: currentSize, currentColor: currentColor, sizeVariations: sizeVariations, colourVariations: colourVariations, isReserveLinkShowable: isReserveLinkShowable, setSizeGuideOpen: props === null || props === void 0 ? void 0 : props.setSizeguideOpen }),\n React.createElement(ProductShopTheLookInfo, { current: current }))));\n};\nProductSelection.defaultProps = {\n imageLoaded: true,\n};\nexport default ProductSelection;\n","export const isVideo = (url) => {\n const checkArray = [];\n for (let i = 1; i < 11; i++) {\n checkArray.push(`_V${i}`);\n }\n return checkArray.some((check) => url.includes(check));\n};\n","import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport { HIRES, LG, MD, SM } from '@utils/imageutils';\nimport { useTranslation } from 'react-i18next';\nimport ProductImage from '@stone/components/product/ProductImage';\nimport ProductVideo from '@stone/components/product/ProductVideo';\nimport ProductImageButton from '@stone/components/product/ProductImageButton';\nimport ProductZoomGallery from '@stone/components/product/ProductZoomGallery';\nimport SwiperCore, { Keyboard, Pagination } from 'swiper';\nimport { Swiper as SwiperInstance, SwiperSlide } from 'swiper/react';\nimport ProductSelection from '@stone/components/product/ProductSelection';\nimport Icon from '@stone/ui/icon/Icon';\nimport gsap from 'gsap';\nimport { ScrollTrigger } from 'gsap/ScrollTrigger';\nimport { ScrollToPlugin } from 'gsap/ScrollToPlugin';\nimport useBreakpoint from '@common/utils/useBreakpoint';\nimport { getFirstTabbable } from '@common/scripts/utilities/focusableElementUtils';\nimport { isVideo } from '@common/scripts/utilities/videosUtils';\nimport { motion } from 'framer-motion';\nimport { transitionIn } from '../routerTransitions/transitions';\ngsap.registerPlugin(ScrollTrigger, ScrollToPlugin);\nimport cookie from 'react-cookies';\nimport classNames from 'classnames';\nimport { debounce } from '@common/utils/functions';\nimport customEventBus from '@common/scripts/libs/eventBus';\nSwiperCore.use([Pagination, Keyboard]);\nconst imageSizes = [SM, MD, LG, HIRES];\nconst markers = cookie.load('gsap_markers') === 'product-prlx';\nconst ProductHero = (props) => {\n var _a;\n const { product } = props;\n const { t } = useTranslation();\n // @ts-ignore disable-next-line\n const currentBreakpoint = useBreakpoint();\n const heroRef = useRef(null);\n const endRef = useRef(null);\n const ctasRef = useRef(null);\n const stickyColumnRef = useRef(null);\n // * ANCHOR - USE STATE ----------------------------------------------------------------------\n const [showSticky, setShowSticky] = useState(false);\n const [galleryInitialSlide, setGalleryInitialSlide] = useState(-1);\n const [buttons, setButtons] = useState([]);\n const [pinned, setPinned] = useState(false);\n // * ANCHOR - USE MEMO ----------------------------------------------------------------------\n //@ts-ignore disable-next-line\n const isAnchorScrollVisible = useMemo(() => { var _a; return currentBreakpoint >= window.mqObj.lg && props.anchorToScroll && ((_a = props === null || props === void 0 ? void 0 : props.media) === null || _a === void 0 ? void 0 : _a.length) > 4; }, [currentBreakpoint, props.media]);\n const animVariants = {\n initial: {\n opacity: 0,\n y: 20,\n },\n animate: Object.assign({ opacity: 1, y: 0 }, transitionIn),\n };\n //create a useffect that create a resize observer to stickyColRef and create a css var on the body to set the stickyColRef height\n useEffect(() => {\n if (stickyColumnRef.current) {\n const observer = new ResizeObserver(debounce((entries) => {\n const width = entries[0].contentRect.width;\n document.body.style.setProperty('--sticky-col-width', `${width}px`);\n }, 1000));\n observer.observe(stickyColumnRef.current);\n return () => observer.disconnect();\n }\n }, [stickyColumnRef.current]);\n // ANCHOR - FUNCTIONS --------------------------------------------------------------------\n const scrollToAnimation = (e) => {\n e.preventDefault();\n const productContent = document.getElementById('product-content');\n const stickyBarHeight = document.querySelector('.sticky-tray').getBoundingClientRect().y;\n gsap.to(window, {\n duration: 1,\n ease: 'power1.inOut',\n scrollTo: {\n y: productContent,\n offsetY: window.innerHeight,\n },\n onComplete: () => gsap.to(window, {\n duration: 1,\n ease: 'power1.inOut',\n delay: 0.1,\n scrollTo: {\n y: productContent,\n offsetY: -stickyBarHeight,\n },\n onComplete: () => {\n var _a;\n (_a = getFirstTabbable(productContent)) === null || _a === void 0 ? void 0 : _a.focus();\n },\n }),\n });\n };\n const handleButtonState = (id, state) => {\n let arr = [];\n const current = buttons.find((el) => el.id === id) || null;\n if (current) {\n arr = buttons.filter((el) => el.id !== id);\n }\n arr.push({ id, state });\n setButtons(arr);\n };\n // ANCHOR - COMPONENTS --------------------------------------------------------------------\n const heroGalleryImage = (mediaUrl, index, alt) => {\n var _a;\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"product-image--wrapper\" },\n React.createElement(ProductImageButton, { onImageClick: () => {\n setGalleryInitialSlide(index);\n } }, isVideo(mediaUrl) ? (React.createElement(\"div\", { className: \"product-image\" },\n React.createElement(\"div\", { className: \"product-video-wrapper\" },\n React.createElement(ProductVideo, { url: mediaUrl, inGallery: true, overrideButtonID: `button-video-${index}`, handleOverrideButtonState: handleButtonState }),\n currentBreakpoint < window.mqObj.lg && (React.createElement(\"button\", { className: \"product-video-pause\", id: `button-video-${index}`, \"aria-label\": t('button.pause'), \"data-pause\": true, \"aria-pressed\": \"false\" }, ((_a = buttons === null || buttons === void 0 ? void 0 : buttons.find((el) => el.id === `button-video-${index}`)) === null || _a === void 0 ? void 0 : _a.state) === 'PAUSED' ? (React.createElement(React.Fragment, null,\n React.createElement(Icon, { family: \"16\", name: \"play\" }),\n React.createElement(\"span\", null, t('pdp.button.videoplay')))) : (React.createElement(React.Fragment, null,\n React.createElement(Icon, { family: \"16\", name: \"pause\" }),\n React.createElement(\"span\", null, t('pdp.button.videopause'))))))))) : (React.createElement(ProductImage, { ariaHidden: false, img: { alt: alt, urls: props.media }, sizes: imageSizes, index: index, productId: index == 0 ? product === null || product === void 0 ? void 0 : product.id : undefined }))))));\n };\n const heroImagesGrid = () => {\n return (React.createElement(\"ul\", { className: \"row product-hero-gallery\" }, props.media.map((url, index) => {\n var _a;\n const _isVideo = isVideo(url);\n const captionText = t(_isVideo ? 'pdp.a11y.videocaption' : 'pdp.a11y.imagecaption', [product.productName, _isVideo ? index + 1 : '']);\n const key = `figure-image-${index}`;\n return (React.createElement(\"li\", { className: \"col-12\", key: key },\n React.createElement(\"figure\", { \"aria-label\": (_isVideo && captionText) || null },\n heroGalleryImage(url, index, captionText),\n React.createElement(\"div\", { className: \"row product-image-description\" },\n React.createElement(\"div\", { className: \"col-lg-6\" },\n React.createElement(\"figcaption\", { \"aria-hidden\": true, className: \"product-image-description__index\" }, (index + 1).toString().padStart(3, '0'))),\n _isVideo && (React.createElement(\"div\", { className: \"col-fill d-flex justify-end\" },\n React.createElement(\"button\", { className: \"product-video-pause\", id: `button-video-${index}`, \"aria-label\": t('button.pause'), \"data-pause\": true, \"aria-pressed\": \"false\" }, ((_a = buttons === null || buttons === void 0 ? void 0 : buttons.find((el) => el.id === `button-video-${index}`)) === null || _a === void 0 ? void 0 : _a.state) === 'PAUSED' ? (React.createElement(React.Fragment, null,\n React.createElement(Icon, { family: \"16\", name: \"play\" }),\n React.createElement(\"span\", null, t('pdp.button.videoplay')))) : (React.createElement(React.Fragment, null,\n React.createElement(Icon, { family: \"16\", name: \"pause\" }),\n React.createElement(\"span\", null, t('pdp.button.videopause')))))))))));\n })));\n };\n useLayoutEffect(() => {\n var _a;\n if (heroRef.current) {\n //@ts-ignore disable-next-line\n if (currentBreakpoint < window.mqObj.lg) {\n (_a = ScrollTrigger.getById('pdp-prlx')) === null || _a === void 0 ? void 0 : _a.kill(true);\n heroRef.current.removeAttribute('style');\n }\n else {\n ScrollTrigger.create({\n id: 'pdp-prlx',\n start: () => 'bottom bottom',\n trigger: heroRef.current,\n end: 'bottom top-=100%',\n pinSpacing: false,\n pin: true,\n onToggle: (self) => setPinned(self.isActive),\n markers: markers,\n invalidateOnRefresh: true,\n });\n }\n }\n return () => { var _a; return (_a = ScrollTrigger.getById('pdp-prlx')) === null || _a === void 0 ? void 0 : _a.kill(true); };\n }, [currentBreakpoint]);\n useEffect(() => {\n //a11y fix remove scroll trigger if keyboard navigation\n let onKeyborardModeEnabled = (data) => {\n var _a, _b, _c;\n if (data.isKeyboardMode) {\n (_a = ScrollTrigger.getById('pdp-prlx')) === null || _a === void 0 ? void 0 : _a.disable();\n }\n else {\n (_b = ScrollTrigger.getById('pdp-prlx')) === null || _b === void 0 ? void 0 : _b.enable();\n (_c = ScrollTrigger.getById('pdp-prlx')) === null || _c === void 0 ? void 0 : _c.refresh();\n }\n };\n customEventBus.on('keyboard:mode', onKeyborardModeEnabled);\n return () => {\n customEventBus.off('keyboard:mode', onKeyborardModeEnabled);\n };\n }, []);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"product-hero--wrapper\" },\n React.createElement(\"div\", { className: \"product-hero\", ref: heroRef },\n React.createElement(\"div\", { className: \"container\" },\n React.createElement(\"a\", { href: \"#pdp-product-info\", onClick: (e) => {\n document.getElementById('pdp-product-info').focus();\n }, className: \"button visible-on-focus button--secondary skip-productgallery\", \"aria-label\": t('pdp.skiptoinfo') },\n React.createElement(Icon, { name: isAnchorScrollVisible ? 'right-chevron' : 'down-double-chevron', family: \"10\" })),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-lg-14 col-xxl-16 product-hero__col--notsticky\", style: { order: 1 } }, props.media.length > 0 && (React.createElement(React.Fragment, null, currentBreakpoint < window.mqObj.lg ? (React.createElement(HeroImagesCarousel, Object.assign({}, props, { heroGalleryImage: heroGalleryImage }))) : (React.createElement(motion.div, { variants: animVariants, initial: \"initial\", animate: \"animate\", role: \"region\", \"aria-label\": t('pdp.a11y.imagegallery') }, heroImagesGrid()))))),\n isAnchorScrollVisible && (React.createElement(\"div\", { className: \"col-1\", style: { order: 2 } },\n React.createElement(\"div\", { className: classNames('product-hero__anchorscroll', { pinned: pinned }) },\n React.createElement(\"a\", { href: \"#product-content\", onClick: (e) => scrollToAnimation(e), \"aria-label\": t('pdp.skiptobottom') },\n React.createElement(Icon, { name: \"down-double-chevron\", family: \"10\" }))))),\n React.createElement(\"div\", { className: `col-lg-8 col-xxl-6 ${!isAnchorScrollVisible ? 'offset-lg-1' : ''} product-hero__col--sticky`, ref: stickyColumnRef, id: \"pdp-product-info\", role: \"group\", tabIndex: -1, \"aria-label\": t('label.productdetails'), style: { order: 3 } },\n React.createElement(\"div\", { className: classNames('product-selection', { 'with-looks': ((_a = props.product.lookProducts) === null || _a === void 0 ? void 0 : _a.length) > 0 }, { pinned: pinned }) },\n React.createElement(ProductSelection, { ctasRef: ctasRef, size: props.size, contactformurl: props === null || props === void 0 ? void 0 : props.contactformurl, deliveryurl: props.deliveryurl, ordermgrurl: props.ordermgrurl, aftercareurl: props.aftercareurl, imageLoaded: props.heroImageLoaded, sizeguideOpen: props.sizeguideOpen, setSizeguideOpen: props.setSizeguideOpen, \n //@ts-ignore disable-next-line\n showSticky: showSticky, product: props.product, inPDP: true, isPdp: props.isPdp }))))))),\n React.createElement(ProductZoomGallery, { initialSlide: galleryInitialSlide, scrollHeight: window.scrollY, onRequestClose: () => setGalleryInitialSlide(-1), product: props.product, media: props.media }),\n React.createElement(\"div\", { className: \"end-ref\", ref: endRef })));\n};\nconst HeroImagesCarousel = (props) => {\n const { t } = useTranslation();\n const { product, heroGalleryImage } = props;\n const galleryRef = useRef(null);\n useLayoutEffect(() => {\n if (galleryRef.current) {\n const header = document.getElementsByTagName('header')[0];\n //@ts-ignore disable-next-line\n ScrollTrigger.create({\n id: 'pdp-prlx-gallery',\n start: () => `clamp(top top+=${(header === null || header === void 0 ? void 0 : header.clientHeight) + 12})`,\n trigger: galleryRef.current,\n end: 'top top-=100%',\n pinSpacing: false,\n pin: true,\n markers: !!markers,\n invalidateOnRefresh: true,\n });\n }\n return () => { var _a; return (_a = ScrollTrigger.getById('pdp-prlx-gallery')) === null || _a === void 0 ? void 0 : _a.kill(); };\n }, []);\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { ref: galleryRef, id: \"product-hero-gallery\" },\n React.createElement(SwiperInstance, { className: \"product-hero-gallery\", speed: 1000, slidesPerView: 1, keyboard: true, pagination: {\n clickable: true,\n }, direction: \"horizontal\", touchStartPreventDefault: false, watchOverflow: true, threshold: 10, a11y: { slideRole: '' } }, props.media.map((url, index) => {\n const key = `slide-figure-${index}`;\n return (React.createElement(SwiperSlide, { key: key, tag: \"figure\", \"aria-labelledby\": key },\n React.createElement(\"div\", { className: \"product-gallery\", key: `${product === null || product === void 0 ? void 0 : product.id}${index}` }, heroGalleryImage(url, index))));\n })))));\n};\nexport default ProductHero;\n","import axios from 'axios';\nimport qs from 'qs';\n// import formutils from './formutils';\nexport const baseUrl = window.apiroot;\nconst dateTimeFormat = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$/;\nfunction reviver(key, value) {\n if (typeof value === 'string' && dateTimeFormat.test(value)) {\n return new Date(value);\n }\n return value;\n}\n/**\n * Adds a valid CSRF token to any parameters to be sent to a controller.\n *\n * @param params The API call parameters\n * @returns the same parameters enriched with a valid CSRF token\n */\n// async function withCsrf(params: Record) {\n// const csrf = await api.csrf();\n// params[csrf.tokenName] = csrf.token;\n// return params;\n// }\n/**\n * Intercept if a request is for a Business Manager Pipeline\n * @param config\n * @returns\n */\nfunction isBmPipeline(config) {\n const BmController = ['BmClothing', 'BmTranslations', 'BmClientService'];\n let controller = config.url.split('-')[0].replace('/', '');\n if (BmController.includes(controller)) {\n return '/on/demandware.store/Sites-Site/default/';\n }\n return config.baseURL;\n}\nconst instance = axios.create({\n baseURL: baseUrl,\n headers: {\n // 'content-type': 'application/json',\n 'content-type': 'application/x-www-form-urlencoded',\n 'x-requested-with': 'XMLHttpRequest',\n accept: 'application/json',\n device: window.appmode ? 'smartphone' : undefined,\n },\n transformResponse: [\n function transformResponse(data) {\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data, reviver);\n }\n catch (e) {\n /* Ignore */\n }\n }\n return data;\n },\n ],\n validateStatus: () => true,\n});\nlet numberOfAjaxCAllPending = 0;\ninstance.interceptors.request.use((config) => {\n config.baseURL = isBmPipeline(config);\n numberOfAjaxCAllPending++;\n document.body.setAttribute('aria-busy', 'true');\n config.paramsSerializer = (params) => qs.stringify(params, {\n arrayFormat: 'repeat',\n });\n return config;\n});\ninstance.interceptors.response.use((response) => {\n numberOfAjaxCAllPending--;\n if (numberOfAjaxCAllPending === 0) {\n document.body.removeAttribute('aria-busy');\n }\n return response;\n}, (error) => {\n numberOfAjaxCAllPending--;\n if (numberOfAjaxCAllPending === 0) {\n document.body.removeAttribute('aria-busy');\n }\n return Promise.reject(error);\n});\nconst api = {\n getMenu: async () => {\n return instance.get(`/MenuApi-Menu`).then(({ data }) => {\n return data;\n });\n },\n getFooter: async () => {\n return instance.get(`/FooterApi-Show`).then(({ data }) => {\n return data;\n });\n },\n getPdp: (pid, editiorialPage) => {\n return instance\n .get(`/ProductApi-PDP`, {\n params: {\n pid: pid,\n cid: editiorialPage,\n cachekill: new Date(),\n },\n })\n .then(({ data }) => {\n return data;\n });\n },\n};\nexport default api;\n","import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ProductTile from './ProductTile';\nimport { Swiper as SwiperInstance, SwiperSlide } from 'swiper/react';\nconst ProductShopTheLookPanel = (props) => {\n const { looks, startingItem } = props;\n const { t } = useTranslation();\n const [currentItem, setCurrentItem] = useState(startingItem);\n const formattedCurrentNumber = (currentItem + 1).toString().padStart(2, '0');\n const formattedTotalNumber = looks.length.toString().padStart(2, '0');\n const fromModule = props.fromMainModule ? 'fromModule' : 'fromInfo';\n //* SECTION - RENDER --------------------------------------------------------------------\n return (React.createElement(\"div\", { className: \"shopthelookpanel\" },\n React.createElement(\"div\", { className: \"\" },\n looks.length > 1 && (React.createElement(\"div\", { className: \"shopthelook-upper\" },\n React.createElement(\"div\", { className: \"shopthelookpanel-title font__title\" },\n React.createElement(\"span\", null,\n t('label.item'),\n \":\",\n `${formattedCurrentNumber}/${formattedTotalNumber}`)),\n React.createElement(\"div\", { className: \"shopthelook__arrow-container\" },\n React.createElement(\"button\", { className: \"shopthelook__arrow shopthelook__arrow-left swiper-button-prev\", disabled: currentItem <= 0, \"aria-label\": t('carousel.prevslidemessage') },\n React.createElement(\"i\", { className: \"icon--10-left-chevron\", \"aria-hidden\": true })),\n React.createElement(\"button\", { className: \"shopthelook__arrow shopthelook__arrow-right swiper-button-next\", disabled: currentItem >= looks.length - 1, \"aria-label\": t('carousel.nextslidemessage') },\n React.createElement(\"i\", { className: \"icon--10-right-chevron\", \"aria-hidden\": true }))))),\n React.createElement(\"div\", { className: \"shopthelookpanel-item\" },\n React.createElement(SwiperInstance, { onSlideChange: (swiper) => {\n setCurrentItem(swiper.activeIndex);\n }, keyboard: true, navigation: {\n nextEl: '.shopthelook__arrow-right',\n prevEl: '.shopthelook__arrow-left',\n }, mousewheel: {\n forceToAxis: true,\n thresholdDelta: 20,\n }, virtualTranslate: true, touchAngle: 15, className: \"swiper-container\", initialSlide: startingItem, speed: 1000, slidesPerView: 1 }, looks === null || looks === void 0 ? void 0 : looks.map((currentLook) => (React.createElement(SwiperSlide, { key: currentLook.uuid },\n React.createElement(ProductTile, { fullExpanded: true, inShopTheLookPanel: fromModule, product: currentLook, onSuccessAddToBag: props.onClose })))))))));\n};\nexport default ProductShopTheLookPanel;\n","import React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Tab, TabList, TabPanel, Tabs } from 'react-tabs';\nimport ProductTileVisual from '@stone/components/product/ProductTileVisual';\nimport ProductTile from './ProductTile';\nimport ProductImage from '@stone/components/product/ProductImage';\nimport classNames from 'classnames';\nimport useBreakpoint from '@common/utils/useBreakpoint';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { SM, MD, LG, HIRES } from '@utils/imageutils';\nconst ProductShopTheLookModule = (props) => {\n const { product } = props;\n const { t } = useTranslation();\n const [activeProduct, setActiveProduct] = useState(0);\n const currentBreakpoint = useBreakpoint();\n const smBreakpoint = parseInt(window.mqObj.sm.toString());\n const lgBreakpoint = parseInt(window.mqObj.lg.toString());\n const xxlBreakpoint = parseInt(window.mqObj.xxl.toString());\n const looks = useMemo(() => {\n return product === null || product === void 0 ? void 0 : product.lookProducts;\n }, [product]);\n const formattedCurrentNumber = (activeProduct + 1).toString().padStart(2, '0');\n const formattedTotalNumber = looks === null || looks === void 0 ? void 0 : looks.length.toString().padStart(2, '0');\n const onTileClickMobile = (lookIndex) => {\n customEventBus.emit('shopthelook:quickbuy', { lookIndex: lookIndex, fromMainModule: true });\n };\n const progressionLabel = useMemo(() => {\n if (!looks || looks.length === 0) {\n return '';\n }\n else if (looks.length === 1) {\n return formattedCurrentNumber;\n }\n else if (looks.length > 1) {\n return `${formattedCurrentNumber}/${formattedTotalNumber}`;\n }\n }, [activeProduct, looks]);\n const ariaLabelProgression = useMemo(() => {\n if (!looks || looks.length === 0) {\n return '';\n }\n else if (looks.length === 1) {\n return `${t('label.item')} ${formattedCurrentNumber} : ${looks[activeProduct].productName}`;\n }\n else if (looks.length > 1) {\n return `${t('shopthelook.carouselelements', { 0: formattedCurrentNumber, 1: formattedTotalNumber })} : ${looks[activeProduct].productName}`;\n }\n }, [activeProduct, looks]);\n const renderProductImage = (look) => {\n return React.createElement(ProductImage, { img: look === null || look === void 0 ? void 0 : look.imgs, type: \"F\" });\n };\n const renderProductTile = (look, i) => {\n return React.createElement(ProductTile, { inShopTheLookModule: true, product: look, onShopTheLookClick: currentBreakpoint < xxlBreakpoint && (() => onTileClickMobile(i)) });\n };\n //* SECTION - RENDER --------------------------------------------------------------------\n if (looks.length <= 0) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(Tabs, { className: \"shopthelookmodule tabs\", onSelect: (i, last, event) => {\n if (currentBreakpoint < lgBreakpoint) {\n const target = event.target;\n window.scrollBy({\n top: target.getBoundingClientRect().y,\n left: 0,\n behavior: 'smooth',\n });\n }\n setActiveProduct(i);\n } },\n React.createElement(\"div\", { className: \"shopthelookmodule-hero\" },\n React.createElement(\"div\", { className: \"shopthelookmodule-title\" },\n React.createElement(\"h3\", { className: \"shopthelook-title font__title\" }, t('label.shopthelook')),\n React.createElement(\"span\", { className: \"shopthelook-title font__title\" },\n formattedTotalNumber,\n \" \",\n t('label.items'))),\n React.createElement(ProductTileVisual, { product: product, inGallery: true, visual1: product.lookMainAsset || 'R', visual2: '', sizes: [SM, MD, LG, HIRES] }),\n looks.length > 1 && (React.createElement(TabList, { className: classNames(['react-tabs__tab-list no-divider shopthelookmodule-thumbs', { long: looks.length > 4 }]), \"aria-orientation\": currentBreakpoint > smBreakpoint ? 'vertical' : 'horizontal' }, looks.map((look) => (React.createElement(Tab, { key: look.uuid, className: \"shopthelookmodule-tab\" }, renderProductImage(look))))))),\n React.createElement(\"div\", { className: \"shopthelookmodule-closeup\" },\n React.createElement(\"div\", { className: \"shopthelookmodule-title\" },\n React.createElement(\"div\", { className: \"shopthelook-title left font__title\", \"aria-hidden\": true }, t('label.item')),\n React.createElement(\"div\", { className: \"shopthelook-title right font__title\", \"aria-label\": ariaLabelProgression }, progressionLabel)),\n looks.length > 1 ? looks.map((look, i) => React.createElement(TabPanel, { key: look.uuid }, renderProductTile(look, i))) : renderProductTile(looks[0], 0))));\n};\nexport default ProductShopTheLookModule;\n","import React, { useState, useMemo, useEffect } from 'react';\nimport { compileListName } from '@stone/utils/analytics';\nimport ProductTilesListContext from '@stone/scripts/contexts/ProductTilesListContext';\nimport ProductShopTheLookPanel from '@stone/components/product/ProductShopTheLookPanel';\nimport ProductShopTheLookModule from './ProductShopTheLookModule';\nimport ModalDrawer from '@stone/components/modal/ModalDrawer';\nimport analytics from '@stone/utils/analytics';\nimport customEventBus from '@common/scripts/libs/eventBus';\nimport { useTranslation } from 'react-i18next';\nconst ProductShopTheLook = (props) => {\n const { t } = useTranslation();\n const { looks } = props;\n const [isShopTheLookOpen, setIsShopTheLookOpen] = useState(false);\n const [activeLook, setActiveLook] = useState(0);\n const [panelCalledByMainModule, setPanelCalledByMainModule] = useState(false);\n const analyticsListName = compileListName('shop the look');\n useEffect(() => {\n analytics.productImpressions({ products: looks, index: 0, isScroll: true, item_list_name: analyticsListName });\n customEventBus.on('shopthelook:quickbuy', onLookClick);\n return () => {\n customEventBus.off('shopthelook:quickbuy', onLookClick);\n };\n }, [looks]);\n const onLookClick = (data) => {\n if (data && typeof data.lookIndex === 'number') {\n const lookIndex = data.lookIndex;\n const lookProduct = looks[lookIndex];\n const analyticsAction = data.fromMainModule ? 'click - shop the look main' : 'click - shop the look info panel';\n analytics.shopTheLookQuickAdd(lookProduct.id, analyticsAction);\n setPanelCalledByMainModule(data.fromMainModule);\n setActiveLook(lookIndex);\n setIsShopTheLookOpen(true);\n }\n };\n /* ADD ANALYTICS CONTEXT */\n const listContextData = useMemo(() => {\n return { analyticsData: { item_list_name: analyticsListName } };\n }, [props.product, panelCalledByMainModule]);\n return (React.createElement(ProductTilesListContext.Provider, { value: listContextData },\n React.createElement(ProductShopTheLookModule, { product: props.product }),\n React.createElement(ModalDrawer, { isOpen: !!isShopTheLookOpen, onRequestClose: () => setIsShopTheLookOpen(false), contentLabel: t('label.shopthelook') },\n React.createElement(ProductShopTheLookPanel, { fromMainModule: panelCalledByMainModule, looks: looks, startingItem: activeLook, onClose: () => setIsShopTheLookOpen(false) }))));\n};\nexport default ProductShopTheLook;\n","import React, { useRef, useState, useEffect, useMemo, Suspense, useCallback } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport ProductHero from '@stone/components/product/ProductHero';\nimport { ProductActionTypes } from '@common/state/features/common.types';\nimport analytics from '@stone/utils/analytics';\nimport Metatags from '@components/common/Metatags';\nimport { getProductAvailability } from '@utils/product';\nimport JsonLd from '@common/utils/JsonLd';\nimport { useParams } from 'react-router-dom';\nimport Breadcrumbs from '@components/listing/Breadcrumb';\nimport api from '@stone/utils/api';\nimport StoryListing from '../storylisting/StoryListing';\nimport Details from '../details/DetailsLoader';\nimport ProductDetailsDialog from './ProductDetailsDialog';\nimport ProductRecommendation from './ProductRecommendation';\nimport ProductShopTheLook from './ProductShopTheLook';\nimport customEventBus from '@common/scripts/libs/eventBus';\nconst ProductInstalmentDrawer = React.lazy(() => import('./ProductInstalmentDrawer'));\n// const TestRecent = () => (\n// ...\n// Removed very long comment - recover through git if needed\nconst ProductPage = (props) => {\n var _a, _b;\n let { pid } = useParams();\n // * STATES ----------------------------------------------------------------------------------------------------------------------------------------\n const [media, setMedia] = useState([]);\n const [previousPid, setpreviousPid] = useState('');\n const [previousPid2, setpreviousPid2] = useState('');\n const [heroImageLoaded, setHeroImageLoaded] = useState(window.ssr ? true : false);\n const [sizeguideOpen, setSizeguideOpen] = useState(false);\n const [editorials, setEditorials] = useState(null);\n const [currentProduct, setCurrentProduct] = useState();\n // * REDUX ----------------------------------------------------------------------------------------------------------------------------------------\n const dispatch = useDispatch();\n const current = useSelector((state) => state.product).current;\n // * FUNCTIONS ----------------------------------------------------------------------------------------------------------------------------------------\n const sendAnalyticsEvents = () => {\n // composing subCategory as per OE-5541\n window.datalayerdata = Object.assign(Object.assign({}, window.datalayerdata), { pageCategory: 'pdp' });\n analytics.sendGeneralVariables();\n };\n const refreshPDP = (pid, sendAnalytics) => {\n dispatch({\n type: ProductActionTypes.FETCH_PRODUCT_AND_USER,\n payload: {\n pid,\n sendAnalytics,\n },\n });\n };\n const getProductSchema = () => {\n var _a, _b, _c, _d, _e;\n return {\n '@context': 'https://schema.org',\n '@type': 'Product',\n name: current === null || current === void 0 ? void 0 : current.productName,\n image: (_a = current.imgs) === null || _a === void 0 ? void 0 : _a.urls,\n description: current === null || current === void 0 ? void 0 : current.shortDescription,\n brand: {\n '@type': 'Brand',\n name: 'Stone Island',\n },\n offers: {\n '@type': 'Offer',\n url: location.href,\n priceCurrency: (_c = (_b = current === null || current === void 0 ? void 0 : current.price) === null || _b === void 0 ? void 0 : _b.sales) === null || _c === void 0 ? void 0 : _c.currency,\n price: (_e = (_d = current === null || current === void 0 ? void 0 : current.price) === null || _d === void 0 ? void 0 : _d.sales) === null || _e === void 0 ? void 0 : _e.value,\n itemCondition: 'https://schema.org/NewCondition',\n availability: getProductAvailability(current),\n },\n };\n };\n const getBreadcrumbSchemaData = () => {\n return {\n '@context': 'https://schema.org',\n '@type': 'BreadcrumbList',\n itemListElement: current.breadcrumbs.map((item, index) => ({\n '@type': 'ListItem',\n position: ++index,\n name: item.htmlValue,\n item: location.origin + item.url,\n })),\n };\n };\n // handle load or refresh of the PDP\n // * USE MEMO ----------------------------------------------------------------------------------------------------------------------------------------\n const productSchemaData = useMemo(() => (current ? getProductSchema() : undefined), [current]);\n const breadcrumbSchemaData = useMemo(() => { var _a; return (((_a = current === null || current === void 0 ? void 0 : current.breadcrumbs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? getBreadcrumbSchemaData() : undefined); }, [current]);\n const looks = useMemo(() => {\n return current === null || current === void 0 ? void 0 : current.lookProducts;\n }, [current]);\n //* USE EFFECT ----------------------------------------------------------------------------------------------------------------------------------------\n const firstShow = useRef(true);\n const editorialPageId = useRef(null);\n //Send analitycs on first render\n useEffect(() => {\n if (firstShow.current && current) {\n sendAnalyticsEvents();\n analytics.productDetailPage(current);\n }\n firstShow.current = false;\n return () => {\n firstShow.current = true;\n };\n }, []);\n useEffect(() => {\n if (current && pid) {\n if (previousPid.includes(current.masterId) && pid.includes(current.masterId)) {\n // Color change inside PDP\n refreshPDP(pid, 'detail');\n }\n else if (current.id != pid) {\n // al back del browser\n // PDP <-> PDP\n refreshPDP(pid, 'withTransitions');\n }\n }\n else if (pid) {\n // Refresh/landing directily on PDP\n // console.info('no current - Refresh/landing directily on PDP');\n refreshPDP(pid, 'detail');\n }\n setpreviousPid(pid);\n }, [pid]);\n // scroll top 0 nella navigazione tra PDP\n useEffect(() => {\n if (current && previousPid2 != '' && pid && previousPid2 != pid) {\n sendAnalyticsEvents();\n customEventBus.emit('header:reset', () => { });\n customEventBus.emit('refresh:recommender', { handle: ['einstein-product-recommendations', 'einstein-product-recommendations-2'] });\n if (!firstShow.current) {\n window.scrollTo(0, 0);\n }\n }\n setpreviousPid2(pid);\n }, [current, pid]);\n //Handle media\n useEffect(() => {\n var _a, _b, _c;\n if (((_a = current === null || current === void 0 ? void 0 : current.imgs) === null || _a === void 0 ? void 0 : _a.urls) && ((_b = current === null || current === void 0 ? void 0 : current.imgs) === null || _b === void 0 ? void 0 : _b.urls.length) > 0) {\n let newMedia = (_c = current === null || current === void 0 ? void 0 : current.imgs) === null || _c === void 0 ? void 0 : _c.urls.map((el) => el);\n // exclude F duplicate of R on standard PDP\n newMedia = newMedia.filter((el) => !el.includes('_X'));\n if (current === null || current === void 0 ? void 0 : current.videos) {\n for (const [key, value] of Object.entries(current === null || current === void 0 ? void 0 : current.videos)) {\n newMedia.splice(parseInt(key), 0, value);\n }\n }\n setMedia(newMedia.map((el) => (el.startsWith('palette_') ? el.substring(8) : el)));\n handleImageLoaded();\n }\n }, [(_a = current === null || current === void 0 ? void 0 : current.imgs) === null || _a === void 0 ? void 0 : _a.urls, (_b = current === null || current === void 0 ? void 0 : current.mbm) === null || _b === void 0 ? void 0 : _b.palettes]);\n const firstLoad = useRef(true);\n useEffect(() => {\n if (firstLoad.current && current) {\n // window.addEventListener('message', function (message) {\n // if (message.data && message.data.event_type === 'spottImpression') {\n // analytics.hostsposts('hotspots view', current.masterId);\n // }\n // if (message.data && message.data.event_type === 'spottInteraction') {\n // analytics.hostsposts('hotspots hover', current.masterId);\n // }\n // });\n // fallback per image loaded\n // sendProductAnalytics();\n setTimeout(() => {\n if (!heroImageLoaded) {\n setHeroImageLoaded(true);\n }\n }, 3000);\n firstLoad.current = false;\n }\n }, [current]);\n useEffect(() => {\n if (current) {\n setCurrentProduct(current);\n }\n }, [current]);\n //get editorials for pdp\n useEffect(() => {\n if (current) {\n let loadpage = !editorialPageId.current || editorialPageId.current != (current.editorialPage || 'pdp-default');\n // window.devmode && console.log(current.editorialPage, editorialPageId.current, 'LOAD:', loadpage);\n if (loadpage) {\n editorialPageId.current = current.editorialPage || 'pdp-default';\n api.getPdp(current.id, editorialPageId.current).then((res) => {\n var _a;\n let _editorials;\n if (!res.error && res.page) {\n let regions = ((_a = res.page) === null || _a === void 0 ? void 0 : _a.regions) && Object.keys(res.page.regions);\n if (regions) {\n regions.forEach((region, _i) => {\n var _a;\n if ((_a = res.page.regions[region].components) === null || _a === void 0 ? void 0 : _a.length) {\n _editorials = _editorials || {};\n if (region.indexOf('drawer') == 0) {\n _editorials.drawer = [...(_editorials.drawer || []), ...res.page.regions[region].components];\n }\n else {\n _editorials[region] = res.page.regions[region];\n }\n }\n });\n }\n }\n if (_editorials) {\n setEditorials(_editorials);\n }\n });\n }\n }\n else {\n //reset editorials if missing (on change page with transitions)\n setEditorials(null);\n }\n }, [current]);\n // handle image loaded to start animations\n const handleImageLoaded = () => {\n const image = document.querySelector('.product-image img');\n // console.info('immagine: ', image);\n if (!image) {\n setHeroImageLoaded(true);\n return;\n }\n image.addEventListener('load', (event) => {\n // let isLoaded = image.complete && image.naturalHeight !== 0;\n // console.log('image loaded');\n setHeroImageLoaded(true);\n });\n };\n const storyListing = useMemo(() => {\n var _a, _b, _c, _d;\n if ((_a = editorials === null || editorials === void 0 ? void 0 : editorials.storylisting) === null || _a === void 0 ? void 0 : _a.components) {\n const story_listing = (_b = editorials === null || editorials === void 0 ? void 0 : editorials.storylisting) === null || _b === void 0 ? void 0 : _b.components.find((com) => com.typeid === 'component_story_listing');\n if (!!((_d = (_c = story_listing === null || story_listing === void 0 ? void 0 : story_listing.regions) === null || _c === void 0 ? void 0 : _c.stories) === null || _d === void 0 ? void 0 : _d.components.length)) {\n return story_listing;\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }, [editorials]);\n const componentDetails = useMemo(() => {\n var _a, _b;\n if ((_a = editorials === null || editorials === void 0 ? void 0 : editorials.details) === null || _a === void 0 ? void 0 : _a.components) {\n const details = (_b = editorials === null || editorials === void 0 ? void 0 : editorials.details) === null || _b === void 0 ? void 0 : _b.components.find((com) => com.typeid === 'component_details');\n const accordion = [...details === null || details === void 0 ? void 0 : details.regions.accordion.components];\n delete details.regions;\n return Object.assign({ type: (accordion && 'accordion') || 'content', accordion: accordion }, details);\n }\n else {\n return null;\n }\n }, [editorials]);\n const componentsDrawer = useMemo(() => {\n return editorials === null || editorials === void 0 ? void 0 : editorials.drawer;\n }, [editorials]);\n const instalmentpayments = useMemo(() => {\n return editorials === null || editorials === void 0 ? void 0 : editorials.instalmentpayments;\n }, [editorials]);\n const onRenderDetails = useCallback(() => {\n customEventBus.emit('pdp:details', {});\n }, []);\n return (React.createElement(React.Fragment, null, currentProduct && (React.createElement(\"div\", null,\n React.createElement(Metatags, { pageMetaTags: current === null || current === void 0 ? void 0 : current.pageMetaTags, meta: current === null || current === void 0 ? void 0 : current.meta }),\n productSchemaData && React.createElement(JsonLd, { data: productSchemaData }),\n breadcrumbSchemaData && React.createElement(JsonLd, { data: breadcrumbSchemaData }),\n React.createElement(ProductHero, { product: currentProduct, media: media, size: props.size, contactformurl: props.contactformurl, deliveryurl: props.deliveryurl, ordermgrurl: props.ordermgrurl, aftercareurl: props.aftercareurl, heroImageLoaded: heroImageLoaded, setSizeguideOpen: (open) => {\n setSizeguideOpen(open);\n }, sizeguideOpen: sizeguideOpen, anchorToScroll: \"product-content\", isPdp: props.isProduct }),\n React.createElement(\"div\", { className: \"product-content\", id: \"product-content\" },\n componentDetails && (React.createElement(\"div\", { ref: onRenderDetails },\n React.createElement(\"div\", { id: \"pdp-details-in\" }),\n React.createElement(Details, Object.assign({}, componentDetails)),\n React.createElement(\"div\", { id: \"pdp-details-out\" }))),\n (looks === null || looks === void 0 ? void 0 : looks.length) > 0 && React.createElement(ProductShopTheLook, { product: current, looks: looks }),\n (current === null || current === void 0 ? void 0 : current.id) && React.createElement(ProductRecommendation, { customClasses: \"pdp-recommendation\", product: current, slot: \"einstein-product-recommendations\" }),\n (current === null || current === void 0 ? void 0 : current.id) && React.createElement(ProductRecommendation, { customClasses: \"pdp-recommendation\", product: current, slot: \"einstein-product-recommendations-2\" }),\n React.createElement(Breadcrumbs, { product: currentProduct })),\n storyListing && (React.createElement(\"div\", { className: \"product-stories \" },\n React.createElement(StoryListing, { title: storyListing.title, stories: storyListing.regions.stories.components }))),\n React.createElement(ProductDetailsDialog, { product: currentProduct, componentsDrawer: componentsDrawer }),\n React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, instalmentpayments && React.createElement(ProductInstalmentDrawer, { product: currentProduct, componentsDrawer: instalmentpayments }))))));\n};\nexport default ProductPage;\n","import React, { useMemo } from 'react';\nimport { compileListName } from '@stone/utils/analytics';\nimport ProductTilesListContext from '@stone/scripts/contexts/ProductTilesListContext';\nimport ProductTilesRail from '@stone/components/product/ProductTilesRail';\nconst ProductRecommendation = (props) => {\n /* ADD ANALYTICS CONTEXT */\n const listContextData = useMemo(() => {\n return { analyticsData: { item_list_name: compileListName(`/recommended/${props.slot}`) } };\n }, [props.product, props.productList]);\n return (React.createElement(ProductTilesListContext.Provider, { value: listContextData },\n React.createElement(ProductTilesRail, { railType: \"CAROUSEL\", tileType: \"RECS\", limit: props.limit, slot: props.slot, product: props.product })));\n};\nexport default ProductRecommendation;\n"],"names":["props","_accordion","useMemo","accordion","JSON","parse","isSingle","length","renderAccordionContent","content","className","_a","_b","item","src","first_image","path","srcMobile","first_imageMobile","alt","first_imageAlt","second_image","second_imageMobile","second_imageAlt","title","renderSingle","map","i","index","isTitleMarkup","showCounter","toString","padStart","isInitialOpen","key","ID","accordionId","Object","assign","appElement","document","getElementById","getElementsByTagName","t","closeButton","type","closeInvertedSm","onClick","e","stopPropagation","onRequestClose","contentLabel","closeTimeoutMS","overlayClassName","a11yBar","buttonInHeader","hideHeader","hideContentLabel","id","visuallyhidden","subtitle","hasDivisor","children","EVENTNAME","InstalmentButton","showButton","setShowButton","useState","window","hasEditorialInstalment","useLayoutEffect","handler","data","distroy","action","originalEvent","requestInstalmentDrawerOpen","isOpen","setIsOpen","openerElement","useRef","tabComponetns","componentsDrawer","components","useEffect","current","target","destroy","product","handleClose","setTimeout","focus","com","_i","tabname","forceRender","logo","link","linktext","href","classList","contains","onImageClick","ariaLabel","zoomTimerId","useTranslation","startingValues","x","y","scale","maxZoom","zoomRef","imgRef","isDragging","setIsDragging","zoomPos","setZoomPos","zoomOut","scaleTo","innerWidth","innerHeight","zoomIn","isActiveIndex","scaling","scaled","some","media","includes","ProductVideo","url","disabled","Math","round","containerProps","ref","onUpdate","img","clearTimeout","value","style","setProperty","minZoom","onDragStart","onDragEnd","tapZoomFactor","dragging","loading","swiperInstance","setSwiperInstance","thumbsSwiper","setThumbsSwiper","activeIndex","setActiveIndex","isBeginning","setIsBeginning","isEnd","setIsEnd","currentBreakpoint","useBreakpoint","sizeMainMap","MD","LG","direction","mqObj","md","paginationMessage","updateProgressThumb","swiper","ModalDialog","noPadding","fullWidth","fullHeight","initialSlide","onAfterClose","scrollHeight","scrollTo","onSwiper","swipr","onSlideChange","keyboard","navigation","nextEl","prevEl","mousewheel","forceToAxis","thresholdDelta","allowTouchMove","effect","speed","thumbs","loop","loopPreventsSlide","slidesPerView","split","pop","imageutils","imgs","isZoom","onTransitionStart","onTransitionEnd","watchOverflow","spaceBetween","watchSlidesProgress","modules","start","end","freeMode","enabled","sticky","slideToClickedSlide","centerInsufficientSlides","grabCursor","threshold","slideTo","replace","SM","ProductActionReserveInBoutique","showOverlay","setShowOverlay","Button","cls","buttonType","analytics","color","productId","ariaHaspopup","overrideLabel","ProductBoutiqueModal","mode","size","colourVariations","sizeVariations","setSizeGuideOpen","defaultProps","getTimezoneOffset","loc","destinationOffset","Intl","DateTimeFormat","timeZone","timeZoneName","formatToParts","Date","filter","isNegativeDestination","destinationTimeParts","destinationNumericOffset","Number","userOffset","isNegativeUser","userTimeParts","userNumericOffset","printToUserTimezone","ISOdate","format","forceISO","timezones","userTz","resolvedOptions","actualTimezone","tzDate","setMinutes","getMinutes","formatter","dateStyle","timeStyle","language","toLowerCase","country","toUpperCase","focusOnError","onSubmit","onMoveToBag","errors","setErrors","amountErrors","setAmountErrors","formdef","setFormdef","initialValues","setInitialValues","selectedAmount","setSelectedAmount","customVisible","setCustomVisible","messageVisible","setMessageVisible","messageLength","setMessageLength","dateVisible","setDateVisible","maxDelayedDate","setMaxDelayedDate","toISOString","selectedDate","setSelectedDate","i18n","amountRef","intlNumberFormater","NumberFormat","locale","regexRemoveMask","deliveryTimeRangeOptions","options","Array","from","_","baseTime","toLocaleTimeString","hour","minute","startTime","toLocaleLowerCase","endTime","now","selectedDateFormatted","timeOffset","toDateString","getHours","label","unshift","val","api","then","singleItemValue","price","sales","amount","gcConfigurations","find","am","number","giftCardAttributes","message","isDelayed","sendDate","deliveryDate","selectedOption","htmlValue","option","checked","selected","changeDelayDate","currentDate","getTime","currentTime","delayedDate","delayedTime","includeMessage","receiverEmail","recipientEmail","receiverEmailVerification","receiverName","recipientName","yourMessage","validate","async","values","delayedErrors","formutils","parseFloat","gcLimits","maxValue","minValue","formattedValue","isInteger","delay","setDate","getDate","gcMaxDelayDate","closeModal","backgroundImage","urls","isAddToBag","keys","actualDate","actualDateConversion","giftCard","gcAmount","gcEmail","gcName","gcMessage","gcDate","gcUUID","UUID","gcPID","decorators","render","handleSubmit","form","submitting","pristine","card","batch","change","formatted","ErrorBox","DwFormField","def","name","autocomplete","altLabel","requiredLabel","maxLength","textPrefix","gcCurrency","onChange","isValidNumber","isNaN","slice","Tooltip","icon","text","preventPaste","groupClassName","hiddenLabel","fieldType","minDate","getFullYear","getMonth","maxDate","scrollIntoView","block","LoginModal","_c","_d","showAddToBagMessage","setShowAddToBagMessage","loginOpen","setLoginOpen","giftCardPurchase","setGiftCardPurchase","quickShopTimeout","addToBag","onAddStart","console","log","triggerOpenSize","error","updateErrorMessage","updateErrorTitle","quantityTotal","header","querySelector","firstRefine","removeProperty","fromMinicart","isSearchTile","remove","add","isLookCarousel","pid","fromAddToBag","isGiftCard","pushAnalytics","callback","btnModifiers","noModifiers","btnClass","secondary","inverted","loggedin","loginUrl","unlock","inPDP","inShopTheLook","reloadPage","incontext","modalStatus","updateStatus","status","variationAttributes","va","preorderable","productName","longDescription","shortDescription","suggest","setSuggets","refillId","buttonStyleInverted","fromKeyboard","currentSize","currentColor","showReserveInBoutiqueButton","trackAddToBag","afterAdd","errorMessage","setErrorMessage","errorLabel","setErrorLabel","addToBagAvailable","isNotUnshoppableWindow","unshoppable","isNotBoutiqueExclusive","isBoutiqueExclusive","isBoutiqueExclusivePDP","isSizeSelectable","selectable","isNotOutOfStock","availability","isOutOfStock","isNotComingSoon","isComingSoon","isShoppable","notShoppable","isPreview","priceExists","ErrorModal","onClose","undefined","isParfum","parfumAttributes","suggestedProducts","available","msg","hierarchy","excludeForA11N","stickyPDP","productStatus","ProductActionNotifyMe","customClasses","isNotAvailableSelectable","isInverted","onSelect","productUuid","enableOutofstockLabel","ProductSelectionColorPDP","isWideDesktop","useMediaQueries","swiperRef","slideMove","querySelectorAll","forEach","prev","setAttribute","removeAttribute","next","swiperConf","a11y","slideRole","slideLabelMessage","autoplay","breakpoints","lg","onInit","prevs","nexts","prevHandler","preventDefault","slidePrev","nextHandler","slideNext","addEventListener","startingSlideIndex","variationValues","findIndex","el","currentId","renderColorSwatch","variation","displayValue","alwaysAvailable","boutiqueAvailability","onChangeVariation","ColorSwatch","ariaHidden","tabIndex","visibility","position","height","width","padding","origin","productUrl","dropdown","gsap","ScrollTrigger","markers","cookie","setRef","headerHeight","setHeaderHeight","offsetHeight","isReduceMotion","isDesktop","negativeMapper","setScrollTriggers","resetScrollTriggers","onSetHeight","IDS","kill","ctas","tlSticky","paused","ease","set","to","hasDetails","trigger","scrub","progress","indent","onEnter","isPdp","onLeaveBack","changeSize","variantPrice","sizeSelectorError","updateSizeSelectorError","openTray","setOpenTray","stickyBarRef","forward","container","ProductPrice","promotions","inline","parentSelector","Icon","family","colorVariation","changeColor","masterId","ProductSelectionSizesExpanded","sizeVariation","setSizeguideOpen","showSizeFit","showSizeFitMobile","currentProduct","state","filterAttributes","attributeType","attributes","attribute","compositionAndCareTextSelector","stylistNoteTextSelector","ContentItem","description","dangerouslySetInnerHTML","__html","ShippingAndReturn","shippingblocks","regions","_n","returntext","SpecialServices","services","typeid","renderComponent","requestProductDetailsOpen","_e","_f","_g","_h","compositionAndCareText","stylistNoteText","opener","shippingAndReturns","specialServicesPdp","ModalDrawer","Accordion","gap","AccordionItem","headerClass","pdpIcons","Image","compositionAndCare","showCareDescription","care","composition","icons","printValuesCare","madeIn","firstProductDate","importedBy","traceability","showMoreLinks","setShowMoreLinks","contactusModalOpen","setContactusModalOpen","serviceLinksArray","linksNeedShowMore","renderStandardServices","isReserveLinkShowable","signupSaleProduct","renderAdditionalServices","arr","IconButton","hideborder","ariaExpanded","ariaControls","contentClassName","role","isClothing","GetInTouch","layout","hideCountrySelector","notInSection","showEmail","activeSlide","setActiveSlide","looks","lookProducts","slidesPerGroup","itemRoleDescriptionMessage","prevSlideMessage","nextSlideMessage","look","uuid","onLookClick","lookIndex","ProductImage","ExpressPaymentsModal","ProductSelection","inLook","currentLook","forcedProduct","history","expressProps","termsandconditions","privacypolicy","hideSummary","modalNoPadding","modalFullWidth","isReflow","buttonRef","profile","userShoppingInfo","variantSizeObj","setCurrentSize","setVariantPrice","setCurrentColor","setSizeSelectorError","colorSelected","v","onSizeSelection","sendAnalytics","context","detail","push","route","blockAnalytics","s","triggerSizeSelectionOpen","selectSize","colors","groupPid","sizeError","lastItem","ATS","noboutiqueavailability","isOnlineExclusive","isReservable","showReserveInBoutiqueLink","isMbm","expressCheckoutAvailable","expressCheckoutPDP","limitColorLength","preorder","PRODUCT_STATUS","guest","sale","saleSignupCountryCode","customerGroups","g","imageLoaded","createPortal","breadcrumbs","parentCategory","breadcrumb","ProductLabels","lineIconsContainer","seoName","additionalShortDescription","showCurrency","wrapperId","contactformurl","sizeguideOpen","inPdp","isFullyOutOfStock","startsWith","sizesShown","ctasRef","shopTheLook","ProductWishlistToggle","productSize","productColor","section","modifierClass","Suspense","fallback","isVideo","checkArray","check","ScrollToPlugin","imageSizes","HeroImagesCarousel","heroGalleryImage","galleryRef","clientHeight","pinSpacing","pin","invalidateOnRefresh","pagination","clickable","touchStartPreventDefault","tag","heroRef","endRef","stickyColumnRef","showSticky","setShowSticky","galleryInitialSlide","setGalleryInitialSlide","buttons","setButtons","pinned","setPinned","isAnchorScrollVisible","anchorToScroll","animVariants","initial","opacity","animate","observer","ResizeObserver","entries","contentRect","body","observe","disconnect","handleButtonState","mediaUrl","inGallery","overrideButtonID","handleOverrideButtonState","sizes","onToggle","self","isActive","onKeyborardModeEnabled","isKeyboardMode","disable","enable","refresh","order","variants","_isVideo","captionText","productContent","stickyBarHeight","getBoundingClientRect","duration","offsetY","onComplete","scrollToAnimation","deliveryurl","ordermgrurl","aftercareurl","heroImageLoaded","ProductZoomGallery","scrollY","baseUrl","apiroot","dateTimeFormat","reviver","test","instance","baseURL","headers","accept","device","appmode","transformResponse","validateStatus","numberOfAjaxCAllPending","interceptors","request","use","config","controller","isBmPipeline","paramsSerializer","params","arrayFormat","response","Promise","reject","getMenu","get","getFooter","getPdp","editiorialPage","cid","cachekill","startingItem","currentItem","setCurrentItem","formattedCurrentNumber","formattedTotalNumber","fromModule","fromMainModule","virtualTranslate","touchAngle","ProductTile","fullExpanded","inShopTheLookPanel","onSuccessAddToBag","activeProduct","setActiveProduct","smBreakpoint","parseInt","sm","lgBreakpoint","xxlBreakpoint","xxl","progressionLabel","ariaLabelProgression","renderProductTile","inShopTheLookModule","onShopTheLookClick","onTileClickMobile","last","event","scrollBy","top","left","behavior","ProductTileVisual","visual1","lookMainAsset","visual2","long","renderProductImage","isShopTheLookOpen","setIsShopTheLookOpen","activeLook","setActiveLook","panelCalledByMainModule","setPanelCalledByMainModule","analyticsListName","products","isScroll","item_list_name","lookProduct","analyticsAction","listContextData","analyticsData","ProductTilesListContext","setMedia","previousPid","setpreviousPid","previousPid2","setpreviousPid2","setHeroImageLoaded","ssr","editorials","setEditorials","setCurrentProduct","dispatch","sendAnalyticsEvents","datalayerdata","pageCategory","refreshPDP","payload","productSchemaData","image","brand","offers","location","priceCurrency","currency","itemCondition","getProductSchema","breadcrumbSchemaData","itemListElement","firstShow","editorialPageId","handle","newMedia","videos","splice","substring","handleImageLoaded","mbm","palettes","firstLoad","editorialPage","res","_editorials","page","region","indexOf","drawer","storyListing","storylisting","story_listing","stories","componentDetails","details","instalmentpayments","onRenderDetails","useCallback","Metatags","pageMetaTags","meta","JsonLd","open","isProduct","ProductRecommendation","slot","Breadcrumb","StoryListing","productList","railType","tileType","limit"],"sourceRoot":""}