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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/reserve/ProductActionReserveInBoutique.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/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/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, { 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) }))));\n};\nProductActionReserveInBoutique.defaultProps = {\n buttonType: 'tertiary',\n};\nexport default ProductActionReserveInBoutique;\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';\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 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 = () => {\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).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.pushAnalytics) {\n props.pushAnalytics();\n }\n // sposto qui la callback, in modo che viene eseguita come ultima operazione se la chiamata va a buon fine\n if (props.callback) {\n props.callback();\n }\n }\n });\n };\n 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 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(Button, { type: \"button\", cls: btnModifiers, ariaHaspopup: \"dialog\", onClick: () => addToBag() }, ((_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) ? t('button.preordernow') : t('button.addtobag')));\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, 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, useLayoutEffect, 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 [isSticky, setIsSticky] = useState(false);\n const [isDetails, setIsDetails] = useState(false);\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 // Funzione da chiamare quando l'elemento con l'ID specifico viene aggiunto\n // Configurazione del MutationObserver\n const observer = new MutationObserver((mutationsList) => {\n for (let mutation of mutationsList) {\n if (mutation.type === 'childList') {\n mutation.addedNodes.forEach((node) => {\n if (node instanceof HTMLElement && node.id === 'pdp-details-out') {\n setIsDetails(true);\n observer.disconnect();\n }\n });\n }\n }\n });\n // Nodo target da osservare\n const targetNode = document.querySelector('.product-content');\n // Opzioni di configurazione per l'osservatore\n const config = { childList: true, subtree: true };\n // Inizia l'osservazione\n observer.observe(targetNode, config);\n // Cleanup function\n return () => {\n observer.disconnect();\n };\n }, []);\n useEffect(() => {\n if ((ref === null || ref === void 0 ? void 0 : ref.firstChild) && isDesktop) {\n customEventBus.on('header:onprogress', (offset) => {\n console.log('isSticky', isSticky);\n gsap.set(ref.firstChild, {\n y: isSticky ? offset.scroll + offset.height - 1 : 0,\n });\n });\n customEventBus.on('header:setheight', (props) => setHeaderHeight(props.height));\n return () => {\n customEventBus.off('header:onprogress', () => { });\n customEventBus.off('header:setheight', () => { });\n };\n }\n }, [isSticky, ref, isDesktop]);\n const IDS = ['pdp-sticky-in', 'pdp-sticky-out', 'pdp-sticky-mobile', 'pdp-header-in'];\n // SECTION - GSAP --------------------------------------------------------------------\n useLayoutEffect(() => {\n if (ref && !isReduceMotion) {\n const tlSticky = gsap.timeline({ paused: true, ease: '' });\n const ctas = document === null || document === void 0 ? void 0 : document.querySelector('.product-selection__ctas');\n if (ref) {\n tlSticky.to(ref, {\n y: '100%',\n });\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 (isDetails) {\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 onEnterBack: () => setIsSticky(false),\n onLeave: () => setIsSticky(true),\n onLeaveBack: () => {\n setIsSticky(false);\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 return () => {\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 }, [isReduceMotion, isDesktop, ref, isDetails, headerHeight]);\n // !SECTION - END GSAP\n return setRef;\n};\nexport default useStickybarAnimation;\n","import useBreakpoint from '@utils/useBreakpoint';\nimport classNames from 'classnames';\nimport React, { useMemo, useRef, 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';\n// import analytics from '@common/utils/analytics';\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 stickyBar = useRef();\n const { isDesktop, isWideDesktop } = useMediaQueries();\n // useEffect(() => {\n // if (!show) {\n // setOpenTray(false);\n // }\n // }, [show]);\n const triggerSizeSelectionOpen = () => {\n if (openTray) {\n updateSizeSelectorError(true);\n }\n setOpenTray(true);\n };\n const expressCheckoutAvailable = useMemo(() => {\n var _a, _b, _c, _d;\n return (window.expressCheckoutPDP &&\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 (currentSize == undefined || (currentSize === null || currentSize === void 0 ? void 0 : currentSize.selectable)));\n }, [current, currentSize]);\n const stickyBarRef = useStickybarAnimation();\n return (React.createElement(\"div\", { ref: stickyBarRef, className: classNames('sticky-tray'), \"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, triggerOpenSize: triggerSizeSelectionOpen, trackAddToBag: trackAddToBag, showReserveInBoutiqueButton: showReserveInBoutiqueButton, afterAdd: () => setOpenTray(false), 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: \"shipping-returns\", isInitialOpen: isOpen === 'delivery' },\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') })),\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 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';\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 } = 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 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\", null, 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\" }, 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 React.createElement(\"div\", { ref: buttonRef }, renderButtons())),\n React.createElement(ProductServiceLinks, { current: current, currentSize: currentSize, currentColor: currentColor, sizeVariations: sizeVariations, colourVariations: colourVariations, isReserveLinkShowable: isReserveLinkShowable }))));\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 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 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 [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\" }, 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', { 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(\"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, { useRef, useState, useEffect, useMemo, Suspense } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport ProductHero from '@stone/components/product/ProductHero';\nimport { useTranslation } from 'react-i18next';\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 customEventBus from '@common/scripts/libs/eventBus';\nconst ProductInstalmentDrawer = React.lazy(() => import('./ProductInstalmentDrawer'));\n// const TestRecent = () => (\n// \n// \n// \n// \n// Recently viewed\n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// {/* dwMarker=\"product\" dwContentID=\"c2fb956f6900d01ba2ee1e8237\" */}\n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// 635F3 STONE ISLAND GHOST PIECE\n// \n// \n// POLO SWEATSHIRT\n// \n// \n// \n// \n// \n// \n// \n// \n// 3 COLOURS\n// \n// \n// \n// \n// \n// \n// \n// \n// Military Green\n// \n// \n// \n// \n// \n// Black\n// \n// \n// \n// \n// \n// Beige\n// \n// \n// \n// \n// \n// \n// \n// \n// \n// € 370,00 \n// \n// € 370,00\n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// \n// );\nconst ProductPage = (props) => {\n var _a, _b;\n const { t } = useTranslation();\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 EFFECT ----------------------------------------------------------------------------------------------------------------------------------------\n const firstShow = useRef(true);\n const editorialPageId = useRef(null);\n const pdpRef = 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 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 // * 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 // 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 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(React.Fragment, null,\n React.createElement(\"div\", { id: \"pdp-details-in\" }),\n React.createElement(Details, Object.assign({}, componentDetails)),\n React.createElement(\"div\", { id: \"pdp-details-out\" }))),\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","ProductActionReserveInBoutique","useTranslation","showOverlay","setShowOverlay","Button","cls","buttonType","analytics","color","productId","ariaHaspopup","overrideLabel","ProductBoutiqueModal","mode","size","colourVariations","sizeVariations","defaultProps","LoginModal","_c","_d","showAddToBagMessage","setShowAddToBagMessage","loginOpen","setLoginOpen","quickShopTimeout","clearTimeout","addToBag","onAddStart","console","log","triggerOpenSize","api","then","error","updateErrorMessage","message","updateErrorTitle","label","quantityTotal","header","querySelector","firstRefine","style","removeProperty","fromMinicart","isSearchTile","classList","remove","add","isLookCarousel","pid","fromAddToBag","pushAnalytics","callback","btnModifiers","noModifiers","btnClass","secondary","inverted","loggedin","loginUrl","unlock","inPDP","inShopTheLook","reloadPage","incontext","modalStatus","updateStatus","status","variationAttributes","find","va","values","selected","preorderable","ModalDialog","noPadding","img","imgs","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","price","sales","value","ErrorModal","onClose","undefined","isParfum","parfumAttributes","suggestedProducts","available","msg","hierarchy","excludeForA11N","stickyPDP","productStatus","ProductActionNotifyMe","from","customClasses","isNotAvailableSelectable","disabled","isInverted","onChange","onSelect","name","productUuid","checked","enableOutofstockLabel","ProductSelectionColorPDP","isWideDesktop","useMediaQueries","swiperRef","slideMove","swiper","querySelectorAll","forEach","prev","isBeginning","setAttribute","removeAttribute","next","isEnd","swiperConf","a11y","slideRole","slideLabelMessage","slideToClickedSlide","slidesPerView","spaceBetween","autoplay","threshold","breakpoints","mqObj","lg","onSlideChange","onInit","prevs","nexts","prevHandler","preventDefault","slidePrev","nextHandler","slideNext","addEventListener","startingSlideIndex","variationValues","findIndex","el","currentId","renderColorSwatch","variation","displayValue","alwaysAvailable","boutiqueAvailability","onChangeVariation","ColorSwatch","ariaHidden","onSwiper","initialSlide","tabIndex","visibility","position","height","width","padding","origin","productUrl","dropdown","gsap","ScrollTrigger","markers","cookie","ref","setRef","isSticky","setIsSticky","isDetails","setIsDetails","headerHeight","setHeaderHeight","offsetHeight","isReduceMotion","isDesktop","negativeMapper","observer","MutationObserver","mutationsList","mutation","addedNodes","node","HTMLElement","disconnect","targetNode","observe","childList","subtree","firstChild","offset","y","scroll","IDS","tlSticky","paused","ease","ctas","to","trigger","start","end","scrub","onUpdate","progress","indent","onEnter","isPdp","onEnterBack","onLeave","onLeaveBack","kill","changeSize","variantPrice","sizeSelectorError","updateSizeSelectorError","currentBreakpoint","useBreakpoint","openTray","setOpenTray","stickyBarRef","expressCheckoutPDP","isMbm","container","ProductPrice","promotions","inline","parentSelector","fullWidth","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","block","_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","url","printValuesCare","madeIn","firstProductDate","importedBy","traceability","showMoreLinks","setShowMoreLinks","contactusModalOpen","setContactusModalOpen","serviceLinksArray","linksNeedShowMore","renderStandardServices","isReserveLinkShowable","signupSaleProduct","renderAdditionalServices","arr","IconButton","icon","hideborder","ariaExpanded","ariaControls","ariaLabel","contentClassName","role","fullHeight","isClothing","GetInTouch","layout","hideCountrySelector","notInSection","showEmail","ExpressPaymentsModal","ProductSelection","inLook","currentLook","forcedProduct","history","expressProps","termsandconditions","privacypolicy","hideSummary","modalNoPadding","modalFullWidth","buttonRef","profile","userShoppingInfo","variantSizeObj","setCurrentSize","setVariantPrice","setCurrentColor","setSizeSelectorError","colorSelected","v","onSizeSelection","sendAnalytics","context","detail","push","route","blockAnalytics","s","triggerSizeSelectionOpen","selectSize","colors","groupPid","filter","sizeError","lastItem","ATS","noboutiqueavailability","isOnlineExclusive","isReservable","showReserveInBoutiqueLink","expressCheckoutAvailable","limitColorLength","preorder","PRODUCT_STATUS","guest","sale","saleSignupCountryCode","country","customerGroups","some","g","includes","imageLoaded","createPortal","breadcrumbs","parentCategory","htmlValue","breadcrumb","ProductLabels","lineIconsContainer","seoName","additionalShortDescription","showCurrency","wrapperId","contactformurl","sizeguideOpen","inPdp","isFullyOutOfStock","errors","startsWith","sizesShown","ctasRef","shopTheLook","ProductWishlistToggle","productSize","productColor","section","modifierClass","Suspense","fallback","isVideo","checkArray","check","ScrollToPlugin","imageSizes","SM","MD","LG","HeroImagesCarousel","heroGalleryImage","galleryRef","clientHeight","pinSpacing","pin","invalidateOnRefresh","speed","keyboard","pagination","clickable","direction","touchStartPreventDefault","watchOverflow","media","tag","heroRef","endRef","stickyColumnRef","showSticky","setShowSticky","buttons","setButtons","pinned","setPinned","isAnchorScrollVisible","anchorToScroll","animVariants","initial","opacity","animate","ResizeObserver","entries","contentRect","body","setProperty","handleButtonState","mediaUrl","ProductVideo","inGallery","overrideButtonID","handleOverrideButtonState","ProductImage","urls","sizes","onToggle","self","isActive","onKeyborardModeEnabled","isKeyboardMode","disable","enable","refresh","order","variants","_isVideo","captionText","productContent","stickyBarHeight","getBoundingClientRect","duration","scrollTo","offsetY","innerHeight","onComplete","delay","scrollToAnimation","deliveryurl","ordermgrurl","aftercareurl","heroImageLoaded","baseUrl","apiroot","dateTimeFormat","reviver","test","Date","instance","baseURL","headers","accept","device","appmode","transformResponse","validateStatus","numberOfAjaxCAllPending","interceptors","request","use","config","controller","split","replace","isBmPipeline","paramsSerializer","params","arrayFormat","response","Promise","reject","getMenu","async","get","getFooter","getPdp","editiorialPage","cid","cachekill","setMedia","previousPid","setpreviousPid","previousPid2","setpreviousPid2","setHeroImageLoaded","ssr","editorials","setEditorials","setCurrentProduct","dispatch","refreshPDP","payload","firstShow","editorialPageId","datalayerdata","pageCategory","handle","newMedia","videos","splice","parseInt","substring","handleImageLoaded","mbm","palettes","firstLoad","editorialPage","res","_editorials","page","keys","region","indexOf","drawer","productSchemaData","image","brand","offers","location","priceCurrency","currency","itemCondition","getProductSchema","breadcrumbSchemaData","itemListElement","event","storyListing","storylisting","story_listing","stories","componentDetails","details","instalmentpayments","Metatags","pageMetaTags","meta","JsonLd","open","isProduct","ProductRecommendation","slot","Breadcrumb","StoryListing","listContextData","analyticsData","item_list_name","productList","railType","tileType","limit"],"sourceRoot":""}
POLO SWEATSHIRT