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,EAAAA,KAACshB,EAAAA,EAAoB,KACrBthB,EAAAA,EAAAA,KAACoH,EAAAA,EAAW,KACZpH,EAAAA,EAAAA,KAAC8d,EAAAA,EAAiB,UAIrBuF,EAAAA,EAAAA,KACGC,EAAAA,cACEtjB,EAAAA,EAAAA,KAACulB,EAAAA,EAAa,CAAAxlB,UACZC,EAAAA,EAAAA,KAAC8iB,EAAG,OAENO,EAAAA,EAAAA,KAAYE,SAASC,eAAe,kBAEtC,OAGV,C,kCCnKO,MAAMvjB,EAAwBulB,IACnC,MAAM1I,EAAO,IAAI3N,KAAKqW,GAkBtB,MAAQ,GAhBQ,IAAIC,KAAKC,eAAe,QAAS,CAAEC,QAAS,UACzDC,OAAO9I,GACP+I,iBACS/I,EAAKgJ,UAAUC,WAAWC,SAAS,EAAG,QAChC,IAAIP,KAAKC,eAAe,QAAS,CAAEO,MAAO,UACzDL,OAAO9I,GACP+I,kBACU,IAAIJ,KAAKC,eAAe,QAAS,CAC5CQ,KAAM,UACNC,OAAQ,UACRC,QAAQ,EACRC,aAAc,UAEbT,OAAO9I,GACPvI,MAAM,KAEsC,IAAI,C,kCCnB9C,MAAM3R,EAAoB3B,IACf,CACdqlB,QAAS,yBACTC,UAAW,yBACXpkB,IAAK,qBACLqkB,OAAQ,qBACRpkB,KAAM,qBACNqkB,QAAS,yBACTC,UAAW,yBACXC,MAAO,uBACPC,QAAS,wBACT3lB,IAEyB,0B,kCCZ7B,SAAgB,eAAiB,Q","sources":["webpack://asos-web-productpage/./src/client/components/asosWorldBox/AsosWorldBox.js","webpack://asos-web-productpage/./src/client/components/asosWorldBox/AsosWorldBox.scss?7820","webpack://asos-web-productpage/./src/client/components/conditional/IfInStock.js","webpack://asos-web-productpage/./src/client/components/conditional/IfStockStateReady.js","webpack://asos-web-productpage/./src/client/components/customerFitRating/CustomerFitRating.scss?d273","webpack://asos-web-productpage/./src/client/components/customerFitRating/CustomerFitRating.js","webpack://asos-web-productpage/./src/client/components/errorPage/ErrorPage.scss?56bf","webpack://asos-web-productpage/./src/client/components/errorPage/ErrorPage.js","webpack://asos-web-productpage/./src/client/components/priceData/useVariantPrice.js","webpack://asos-web-productpage/./src/client/components/priceData/PriceData.scss?bfa5","webpack://asos-web-productpage/./src/client/components/priceData/PriceData.js","webpack://asos-web-productpage/./src/client/components/productCode/ProductCode.scss?c2b6","webpack://asos-web-productpage/./src/client/components/productCode/ProductCode.js","webpack://asos-web-productpage/./src/client/components/facets/facetThumbnail/FacetThumbnail.scss?c44a","webpack://asos-web-productpage/./src/client/components/selectableTile/SelectableTile.scss?2ba1","webpack://asos-web-productpage/./src/client/components/selectableTile/SelectableTile.js","webpack://asos-web-productpage/./src/client/components/facets/facetThumbnail/FacetThumbnail.js","webpack://asos-web-productpage/./src/client/components/carousel/sideScrollCarousel/SideScrollCarousel.js","webpack://asos-web-productpage/./src/client/components/carousel/sideScrollCarousel/SideScrollCarousel.scss?e3d9","webpack://asos-web-productpage/./src/client/components/facets/facetCarousel/FacetCarousel.js","webpack://asos-web-productpage/./src/client/components/facets/facetCarousel/FacetCarousel.scss?a12b","webpack://asos-web-productpage/./src/client/components/facets/facetPalette/FacetPalette.js","webpack://asos-web-productpage/./src/client/components/facets/facetPalette/FacetPalette.scss?430a","webpack://asos-web-productpage/./src/client/components/productColourContainer/ProductColourContainer.js","webpack://asos-web-productpage/./src/client/components/productDescription/ProductDescription.scss?e85b","webpack://asos-web-productpage/./src/client/components/productDescription/GenericAccordionItem.js","webpack://asos-web-productpage/./src/client/components/productDescription/ProductDetails.js","webpack://asos-web-productpage/./src/client/components/sustainabilityInfo/SustainabilityInfoContainer.scss?03dd","webpack://asos-web-productpage/./src/client/components/hr/Hr.scss?7dc8","webpack://asos-web-productpage/./src/client/components/hr/Hr.js","webpack://asos-web-productpage/./src/client/components/sustainabilityInfo/SustainabilityInfo.scss?c59b","webpack://asos-web-productpage/./src/client/components/sustainabilityInfo/SustainabilityInfo.js","webpack://asos-web-productpage/./src/client/api/sustainabilityApi.js","webpack://asos-web-productpage/./src/client/components/sustainabilityInfo/SustainabilityInfoContainer.js","webpack://asos-web-productpage/./src/client/components/productDescription/AboutMe.js","webpack://asos-web-productpage/./src/client/components/productDescription/MoreInfo.js","webpack://asos-web-productpage/./src/client/components/productDescription/SizeAndFit.js","webpack://asos-web-productpage/./src/client/components/productDescription/ProductDescription.js","webpack://asos-web-productpage/./src/client/components/productPromo/ProductPromo.scss?9767","webpack://asos-web-productpage/./src/client/api/promotionsMessagingApi.js","webpack://asos-web-productpage/./src/client/components/productPromo/ProductPromo.js","webpack://asos-web-productpage/./src/client/utils/replaceTokensInString.js","webpack://asos-web-productpage/./src/client/components/ratingBar/RatingBar.scss?6148","webpack://asos-web-productpage/./src/client/utils/ratingsAriaLabels.js","webpack://asos-web-productpage/./src/client/components/ratingBar/RatingBar.js","webpack://asos-web-productpage/./src/client/components/releaseDateBanner/ReleaseDateBanner.scss?8f70","webpack://asos-web-productpage/./src/client/components/releaseDateBanner/ReleaseDateBanner.js","webpack://asos-web-productpage/./src/client/components/releaseDateBanner/useTranslatedText.js","webpack://asos-web-productpage/./src/client/components/repeatedTextBanner/RepeatedTextBanner.scss?e44d","webpack://asos-web-productpage/./src/client/components/repeatedTextBanner/RepeatedTextBanner.js","webpack://asos-web-productpage/./src/client/components/repeatedTextBanner/getTranslatedText.js","webpack://asos-web-productpage/./src/client/components/reportProductLink/ReportProductLink.scss?ef34","webpack://asos-web-productpage/./src/client/components/reportProductLink/ReportProductLink.js","webpack://asos-web-productpage/./src/client/components/restockingSoonBanner/RestockingSoonBanner.js","webpack://asos-web-productpage/./src/client/components/restockingSoonBanner/RestockingSoonBanner.scss?2cda","webpack://asos-web-productpage/./src/client/components/skeletonPrimaryActions/SkeletonPrimaryActions.scss?ef93","webpack://asos-web-productpage/./src/client/components/skeletonPrimaryActions/SkeletonPrimaryActions.js","webpack://asos-web-productpage/./src/client/components/ingredientsModal/IngredientsModal.scss?1b63","webpack://asos-web-productpage/./src/client/components/ingredientsModal/IngredientsModal.js","webpack://asos-web-productpage/./src/client/components/ingredientsButton/IngredientsButton.js","webpack://asos-web-productpage/./src/client/components/ingredientsButton/IngredientsButton.scss?e1f4","webpack://asos-web-productpage/./src/client/containers/IngredientsContainer/IngredientsContainer.js","webpack://asos-web-productpage/./src/client/containers/clientOnly/ClientOnly.js","webpack://asos-web-productpage/./src/client/pages/SingleProductPage.js","webpack://asos-web-productpage/./src/client/utils/formatDateForLoyalty.js","webpack://asos-web-productpage/./src/client/utils/getSubRatingIcon.js","webpack://asos-web-productpage/./src/client/pages/SingleProductPage.scss?f2ec"],"sourcesContent":["import { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { formatDateForLoyalty } from \"../../utils/formatDateForLoyalty\";\nimport { getCustomerLoyaltyAccess } from \"../../utils/getCustomerLoyaltyAccess\";\nimport { CUSTOMER_ACCESS_VIEW } from \"../../constants\";\nimport styles from \"./AsosWorldBox.scss\";\n\nconst AsosWorldBox = () => {\n const { getTranslation, product } = useRuntimeConstants();\n const { customerAccess, endDate } = getCustomerLoyaltyAccess(product);\n\n if (customerAccess !== CUSTOMER_ACCESS_VIEW) {\n return null;\n }\n\n return (\n
\n
\n
\n
\n

\n {getTranslation(\"early_access_product_tier_one\")}\n {getTranslation(\"early_access_product_tier_one_purplebox\")}\n

\n

\n {getTranslation(\"early_access_product_tier_one_date\", {\n endDate: formatDateForLoyalty(endDate),\n })}\n

\n
\n );\n};\n\nexport default AsosWorldBox;\n","// extracted by mini-css-extract-plugin\nexport default {\"date\":\"xf1yN\",\"description\":\"CYoiq\",\"asosWorldBox\":\"uSKaD\",\"icon\":\"pNtUB\"};","import PropTypes from \"prop-types\";\n\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\n\nconst IfInStock = ({ children }) => {\n const { isStockStateReady, isInStock } = useIsInStockContext();\n\n return isStockStateReady && isInStock === true && <>{children};\n};\n\nIfInStock.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport default IfInStock;\n","import PropTypes from \"prop-types\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\n\nexport default function IfStockStateReady({ children }) {\n const { isStockStateReady } = useIsInStockContext();\n\n return isStockStateReady ? children : null;\n}\n\nIfStockStateReady.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"fitInfoContainer\":\"RI2VV\",\"fitInfoLabel\":\"FrIS2\",\"fitInfoBar\":\"rRc2z\",\"icon\":\"JeSkM\"};","import { useEffect, useState } from \"react\";\nimport classnamesBind from \"classnames/bind\";\n\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { getFeature } from \"../../utils/features\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport RatingBar from \"../ratingBar/RatingBar\";\nimport { getSubRatingIcon } from \"../../utils/getSubRatingIcon\";\n\nimport styles from \"./CustomerFitRating.scss\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst CustomerFitRating = () => {\n const [subRatingFitInfo, setSubRatingFitInfo] = useState(null);\n const { areFeaturesReady } = useFeaturesReady();\n const { ratings, getTranslation } = useRuntimeConstants();\n\n useEffect(() => {\n if (!isSubratedProduct(ratings)) {\n return;\n }\n\n if (areFeaturesReady && getFeature(\"pdp-sizing-slider\").isEnabled()) {\n setSubRatingFitInfo(ratings?.subRatings?.find(subRatingMatcher));\n }\n }, [areFeaturesReady, ratings, ratings?.subRatings]);\n\n const heading =\n subRatingFitInfo &&\n translateTitleForSubRatingId(getTranslation, subRatingFitInfo);\n\n return subRatingFitInfo && heading ? (\n
\n
\n
\n

{heading}

\n
\n
\n \n
\n
\n ) : null;\n};\n\nfunction isSubratedProduct(ratings) {\n return ratings?.subRatings?.some(subRatingMatcher);\n}\n\nfunction subRatingMatcher(subRating) {\n return subRating.id === \"Size\" || subRating.id === \"Fit\";\n}\n\nfunction translateTitleForSubRatingId(getTranslation, subRating = {}) {\n const titleMap = {\n Fit: \"pdp_ratings_reviews_slider_fitmessage\",\n Size: \"pdp_ratings_reviews_slider_sizemessage\",\n };\n return getTranslation(titleMap[subRating.id]);\n}\n\nexport default CustomerFitRating;\n","// extracted by mini-css-extract-plugin\nexport default {\"heading\":\"NSpSx\",\"paragraph\":\"WTNXS\",\"main\":\"Vmph9\",\"errorMessage\":\"kEY0V\",\"face\":\"IbEux\"};","import styles from \"./ErrorPage.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { PropTypes } from \"prop-types\";\n\nexport default function ErrorPage({ text }) {\n const { getTranslation } = useRuntimeConstants();\n return (\n
\n
\n \n\n
\n

\n {getTranslation(\"pdp_misc_error_oops\")}\n

\n

\n {text || getTranslation(\"pdp_misc_error_technical_difficulties\")}\n

\n
\n
\n
\n );\n}\n\nErrorPage.propTypes = {\n text: PropTypes.string,\n};\n","import { useMemo } from \"react\";\n\nexport default function useVariantPrice({ selectedVariantId, product }) {\n return useMemo(() => {\n if (!product?.variants?.length) {\n return {\n showFromLabel: false,\n priceData: null,\n };\n }\n\n if (selectedVariantId) {\n const selectedVariantPrice = getPriceForSelectedVariant({\n selectedVariantId,\n variants: product.variants,\n });\n\n if (selectedVariantPrice) {\n return {\n showFromLabel: false,\n priceData: selectedVariantPrice,\n };\n }\n }\n\n const inStockVariants = getInStockVariants(product.variants);\n\n if (!inStockVariants.length) {\n return {\n showFromLabel: false,\n priceData: product.price,\n };\n }\n\n const lowestPriceInStockVariants = getLowestPriceVariants(inStockVariants);\n\n return {\n showFromLabel:\n lowestPriceInStockVariants.length !== inStockVariants.length,\n priceData: getPriceForNoSelection(lowestPriceInStockVariants),\n };\n }, [selectedVariantId, product]);\n}\n\nfunction getInStockVariants(variants) {\n return variants.filter(({ isInStock }) => isInStock);\n}\n\nfunction getLowestPriceVariants(variants) {\n return variants.reduce(\n (lowestCurrentPriceVariants, variant, index) => {\n if (index === 0) {\n return lowestCurrentPriceVariants;\n }\n\n const lowestPrice = lowestCurrentPriceVariants[0].price.current.value;\n const currentVariantPrice = variant.price.current.value;\n\n if (currentVariantPrice < lowestPrice) {\n return [variant];\n }\n\n if (currentVariantPrice === lowestPrice) {\n lowestCurrentPriceVariants.push(variant);\n }\n return lowestCurrentPriceVariants;\n },\n [variants[0]]\n );\n}\n\nfunction getPriceForSelectedVariant({ selectedVariantId, variants }) {\n return variants.find((variant) => variant.variantId === selectedVariantId)\n ?.price;\n}\n\nfunction priceIsNotMarkedDownOrOutlet({ isMarkedDown, isOutletPrice }) {\n return !isMarkedDown && !isOutletPrice;\n}\n\nfunction getPriceForNoSelection(lowestPriceVariantsInStock) {\n const doesNextVariantPriceHaveMoreExpensivePrice = (\n currentVariantPrice,\n nextVariantPrice,\n priceProp\n ) => {\n const currentPrice = currentVariantPrice[priceProp]?.value;\n const nextPrice = nextVariantPrice[priceProp].value;\n\n return typeof currentPrice !== \"number\" || nextPrice > currentPrice;\n };\n\n const doesNextVariantPriceHaveMoreExpensiveRrp = (\n currentVariantPrice,\n nextVariantPrice\n ) => {\n if (!currentVariantPrice.isOutletPrice && nextVariantPrice.isOutletPrice) {\n return true;\n }\n\n return !!(\n nextVariantPrice.isOutletPrice &&\n doesNextVariantPriceHaveMoreExpensivePrice(\n currentVariantPrice,\n nextVariantPrice,\n \"rrp\"\n )\n );\n };\n\n const doesNextVariantPriceHaveMoreExpensivePreviousPrice = (\n currentVariantPrice,\n nextVariantPrice\n ) => {\n if (\n priceIsNotMarkedDownOrOutlet(currentVariantPrice) &&\n nextVariantPrice.isMarkedDown\n ) {\n return true;\n }\n\n return !!(\n nextVariantPrice.isMarkedDown &&\n !currentVariantPrice.isOutletPrice &&\n doesNextVariantPriceHaveMoreExpensivePrice(\n currentVariantPrice,\n nextVariantPrice,\n \"previous\"\n )\n );\n };\n\n return lowestPriceVariantsInStock.reduce(\n (currentVariantPrice, { price: nextVariantPrice }) =>\n !currentVariantPrice ||\n doesNextVariantPriceHaveMoreExpensiveRrp(\n currentVariantPrice,\n nextVariantPrice\n ) ||\n doesNextVariantPriceHaveMoreExpensivePreviousPrice(\n currentVariantPrice,\n nextVariantPrice\n )\n ? nextVariantPrice\n : currentVariantPrice,\n\n null\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"skeleton\":\"UTFMZ\",\"loading\":\"ZpHnB\"};","import { PrimaryPrice } from \"../priceComponents\";\nimport PaymentPromo from \"../paymentPromo/PaymentPromo\";\nimport useVariantPrice from \"./useVariantPrice\";\nimport { useVariant } from \"../../context/variant/VariantContext\";\nimport styles from \"./PriceData.scss\";\nimport {\n setDiscountOnPrice,\n setPricingIconLoad,\n} from \"../../analytics/pageLoad\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport setComponentPerformance from \"../../utils/setComponentPerformance\";\nimport { firePricingModalOpen } from \"../../analytics/pageInteraction\";\n\nexport default function PriceData() {\n const { products, shouldRetry } = useStockPrice();\n const { selectedVariantId } = useVariant();\n\n const { priceData, showFromLabel } = useVariantPrice({\n product: products,\n selectedVariantId,\n });\n\n if (shouldRetry) {\n return null;\n }\n\n if (!priceData) {\n return
;\n }\n\n setComponentPerformance({ metric: \"pdp:price_displayed\" });\n setDiscountOnPrice({ priceData });\n\n return (\n <>\n \n {products?.isInStock && (\n \n )}\n \n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"productCode\":\"nNF2H\",\"label\":\"HjoK9\"};","import { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport styles from \"./ProductCode.scss\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\n\nexport default function ProductCode() {\n const { getTranslation, product } = useRuntimeConstants();\n const { isInStock } = useIsInStockContext();\n\n if (isInStock !== false) {\n return null;\n }\n\n return (\n
\n \n {getTranslation(\"pdp_description_product_code_title\")}\n \n  \n {product.productCode}\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"smallImage\":\"apTU7\",\"largeImage\":\"B0C8G\",\"oosOverlay\":\"UsjgH\",\"oosOverlayLine\":\"DNSG7\",\"facetThumbnailLink\":\"PSk4r\",\"isCarousel\":\"vjLDe\",\"facetThumbnailLinkDisabled\":\"j93mc\"};","// extracted by mini-css-extract-plugin\nexport default {\"tile\":\"rTbjG\",\"side-scroll\":\"eoC9i\",\"grid\":\"veWvn\",\"selected\":\"gRxnj\"};","import styles from \"./SelectableTile.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport PropTypes from \"prop-types\";\n\nconst classnames = classnamesBind.bind(styles);\nexport const SELECTABLE_TILE_TYPES = {\n SIDE_SCROLL: \"side-scroll\",\n GRID: \"grid\",\n};\n\nconst SelectableTile = ({ isSelected, type, hasFocus, testId, children }) => {\n const handleTileFocus = (focused) => hasFocus && hasFocus(focused);\n\n return (\n handleTileFocus(true)}\n onMouseLeave={() => handleTileFocus(false)}\n onFocus={() => handleTileFocus(true)}\n onBlur={() => handleTileFocus(false)}\n data-testid={testId}\n >\n {children}\n \n );\n};\n\nSelectableTile.propTypes = {\n isSelected: PropTypes.bool,\n hasFocus: PropTypes.func,\n testId: PropTypes.string,\n children: PropTypes.node.isRequired,\n type: PropTypes.oneOf(Object.keys(SELECTABLE_TILE_TYPES)).isRequired,\n isTab: PropTypes.bool,\n};\n\nexport default SelectableTile;\n","/* eslint-disable jsx-a11y/anchor-is-valid */\n/* https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/906 */\n\nimport classnamesBind from \"classnames/bind\";\nimport { formatUrl, getProductUrl } from \"../../../utils/url\";\nimport styles from \"./FacetThumbnail.scss\";\nimport { PropTypes } from \"prop-types\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport getImageSource from \"../../../../common/imagePresets/imagePresets\";\nimport SelectableTile, {\n SELECTABLE_TILE_TYPES,\n} from \"../../selectableTile/SelectableTile\";\n\nconst classnames = classnamesBind.bind(styles);\nconst WARM_THUMBNAIL_WIDTH = 75;\n\nconst FacetThumbnail = ({ productFacet, isCarousel, onFocus }) => {\n const { getTranslation } = useRuntimeConstants();\n const {\n productId,\n isSelected,\n isInStock,\n brandName,\n imageUrl,\n name,\n description,\n } = productFacet;\n\n const toggleThumbnailFocus = (toggleOn) => {\n if (isCarousel || isSelected || !onFocus) {\n return;\n }\n\n onFocus({ productFacet, isFocused: toggleOn });\n };\n\n const getImage = () => (\n <>\n {!isInStock && (\n
\n
\n
\n )}\n \n \n );\n\n const createAriaLabel = () => {\n if (!isInStock) {\n return `${description}. ${getTranslation(\n \"pdp_grouping_accessibility_colour_oos\"\n )}.`;\n } else {\n return description;\n }\n };\n\n const createDataTestId = () =>\n `facetThumbnail${isSelected ? `--selected` : ``}`;\n\n return (\n \n {!isSelected ? (\n onFocus && onFocus({ productFacet })}\n aria-label={createAriaLabel()}\n >\n {getImage()}\n \n ) : (\n \n {getImage()}\n \n )}\n \n );\n};\n\nFacetThumbnail.propTypes = {\n isCarousel: PropTypes.bool,\n onFocus: PropTypes.func,\n productFacet: PropTypes.shape({\n name: PropTypes.string,\n productId: PropTypes.number,\n description: PropTypes.string,\n imageUrl: PropTypes.string,\n isSelected: PropTypes.bool,\n isInStock: PropTypes.bool,\n brandName: PropTypes.string,\n }).isRequired,\n};\n\nexport default FacetThumbnail;\n","import { forwardRef } from \"react\";\nimport styles from \"./SideScrollCarousel.scss\";\nimport PropTypes from \"prop-types\";\n\nconst SideScrollCarousel = forwardRef(({ children, testId }, ref) => (\n
    \n {children}\n
\n));\n\nSideScrollCarousel.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n PropTypes.string,\n ]).isRequired,\n testId: PropTypes.string,\n};\n\nSideScrollCarousel.displayName = \"SideScrollCarousel\";\n\nexport default SideScrollCarousel;\n","// extracted by mini-css-extract-plugin\nexport default {\"carousel\":\"o3gf3\"};","import { useRef, useLayoutEffect } from \"react\";\nimport styles from \"./FacetCarousel.scss\";\nimport FacetThumbnail from \"../facetThumbnail/FacetThumbnail\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { PropTypes } from \"prop-types\";\nimport ProductColour from \"../../productColour/ProductColour\";\nimport { PRODUCT_COLOUR_TYPES } from \"../../../constants\";\nimport SideScrollCarousel from \"../../carousel/sideScrollCarousel/SideScrollCarousel\";\n\nconst FacetCarousel = ({ facet, colourLabel }) => {\n const { getTranslation } = useRuntimeConstants();\n const carouselRef = useRef();\n\n useLayoutEffect(() => {\n if (!carouselRef.current) return;\n const targetIndex = facet.products.findIndex(\n (facetProduct) => facetProduct.isSelected\n );\n\n const targetPosition =\n carouselRef.current.children[targetIndex].getBoundingClientRect();\n\n const offset = (targetPosition.right - targetPosition.left) / 2;\n\n carouselRef.current.scrollLeft = targetPosition.left - offset;\n }, [facet.products]);\n\n return (\n
\n \n \n \n {facet.products.map((productFacet) => (\n \n ))}\n \n \n
\n );\n};\n\nFacetCarousel.propTypes = {\n facet: PropTypes.shape({\n facetGroupId: PropTypes.string,\n products: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n productId: PropTypes.number,\n description: PropTypes.string,\n imageUrl: PropTypes.string,\n isSelected: PropTypes.bool,\n isInStock: PropTypes.bool,\n brandName: PropTypes.string,\n }).isRequired\n ).isRequired,\n }).isRequired,\n colourLabel: PropTypes.string.isRequired,\n};\n\nexport default FacetCarousel;\n","// extracted by mini-css-extract-plugin\nexport default {\"facetCarouselContainer\":\"IWMlj\",\"navigation\":\"Tu2Ty\"};","import styles from \"./FacetPalette.scss\";\nimport FacetThumbnail from \"../facetThumbnail/FacetThumbnail\";\nimport { PropTypes } from \"prop-types\";\nimport ProductColour from \"../../productColour/ProductColour\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst FacetPalette = ({ facet, handleColourLabel, colourLabel }) => {\n const { getTranslation } = useRuntimeConstants();\n\n return (\n
\n \n \n
    \n {facet.products.map((productFacet) => (\n \n ))}\n
\n \n
\n );\n};\n\nFacetPalette.propTypes = {\n facet: PropTypes.shape({\n facetGroupId: PropTypes.string,\n products: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n productId: PropTypes.number,\n description: PropTypes.string,\n imageUrl: PropTypes.string,\n isSelected: PropTypes.bool,\n isInStock: PropTypes.bool,\n brandName: PropTypes.string,\n }).isRequired\n ).isRequired,\n }).isRequired,\n handleColourLabel: PropTypes.func.isRequired,\n colourLabel: PropTypes.string.isRequired,\n};\n\nexport default FacetPalette;\n","// extracted by mini-css-extract-plugin\nexport default {\"facetPaletteList\":\"w51hY\"};","import { useState, useEffect } from \"react\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport FacetCarousel from \"../facets/facetCarousel/FacetCarousel\";\nimport FacetPalette from \"../facets/facetPalette/FacetPalette\";\nimport ProductColour from \"../productColour/ProductColour\";\nimport { getColours, getInStockVariants } from \"../../../utils/variantUtils\";\nimport {\n shouldShowFacetCarousel,\n shouldShowFacetPalette,\n shouldShowProductColour,\n} from \"../facets/utils/shouldShowColour\";\nimport { PropTypes } from \"prop-types\";\nimport { getFeature } from \"../../utils/features\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\n\nconst getFacetGroupType = (facetGroups, type) =>\n facetGroups ? facetGroups.find((facet) => facet.type === type) : undefined;\n\nconst ProductColourContainer = ({ position }) => {\n const [colours, setColours] = useState([]);\n const { product, oosVariantsAreSelectable } = useRuntimeConstants();\n const { products } = useStockPrice();\n const { viewportCategory } = useViewport();\n const [colourLabel, setColourLabel] = useState(\"\");\n const facet = getFacetGroupType(\n product?.facetGroup?.facets,\n \"SupplierColour\"\n );\n const { areFeaturesReady } = useFeaturesReady();\n const handleFacetColourLabel = ({ productFacet, isFocused }) =>\n setColourLabel(isFocused ? productFacet.description : colours[0]);\n\n useEffect(() => {\n if (!products) {\n return;\n }\n const stockedVariants = getInStockVariants(products.variants);\n const productIsInStock = !!stockedVariants.length;\n const coloursList = getColours(\n productIsInStock && !oosVariantsAreSelectable\n ? stockedVariants\n : product?.variants\n );\n\n setColours(coloursList);\n setColourLabel(coloursList[0]);\n }, [products, product, oosVariantsAreSelectable]);\n\n if (\n shouldShowFacetCarousel({\n viewportCategory,\n product,\n position,\n areFeaturesReady,\n getFeature,\n })\n ) {\n return ;\n }\n\n if (\n shouldShowFacetPalette({\n viewportCategory,\n product,\n position,\n areFeaturesReady,\n getFeature,\n })\n ) {\n return (\n \n );\n }\n\n if (\n shouldShowProductColour({\n product,\n colours,\n position,\n areFeaturesReady,\n getFeature,\n })\n ) {\n return ;\n }\n\n return null;\n};\n\nProductColourContainer.propTypes = {\n position: PropTypes.string.isRequired,\n};\n\nexport default ProductColourContainer;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"PKNvT\",\"content\":\"F_yfF\",\"link\":\"SukvD\",\"productCode\":\"Jk9Oz\",\"badges\":\"XJ4Fw\"};","import styles from \"./ProductDescription.scss\";\nimport PropTypes from \"prop-types\";\n\nexport function GenericAccordionItem({ isVisible, content }) {\n if (!isVisible) {\n return null;\n }\n\n return (\n \n );\n}\n\nGenericAccordionItem.propTypes = {\n isVisible: PropTypes.bool,\n content: PropTypes.string,\n};\n","import styles from \"./ProductDescription.scss\";\nimport PropTypes from \"prop-types\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport function ProductDetails({\n productDescriptionVisible,\n productDescription,\n}) {\n const {\n product: { productCode },\n getTranslation,\n } = useRuntimeConstants();\n\n return (\n <>\n {productDescriptionVisible && (\n \n )}\n

\n {`${getTranslation(\n \"pdp_description_product_code_title\"\n )}: ${productCode}`}\n

\n \n );\n}\n\nProductDetails.propTypes = {\n productDescriptionVisible: PropTypes.bool,\n productDescription: PropTypes.string,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"sustainabilityInfoButton\":\"zpa0U\",\"hideButton\":\"Tkypl\"};","// extracted by mini-css-extract-plugin\nexport default {\"hr\":\"_tGXd\"};","import styles from \"./Hr.scss\";\n\nexport default function Hr() {\n return
;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"qCxug\",\"images\":\"d7iDC\"};","import { useEffect, useState } from \"react\";\nimport { PropTypes } from \"prop-types\";\n\nimport ErrorPage from \"../errorPage/ErrorPage\";\nimport Hr from \"../hr/Hr\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport getVariantSustainabilityData from \"../../api/sustainabilityApi\";\nimport styles from \"./SustainabilityInfo.scss\";\nimport { SUSTAINABILITY_INFO_CONFIG } from \"../../constants\";\n\nconst SustainabilityInfoSection = ({\n type,\n browseLanguage,\n titleKey,\n children,\n}) => {\n const { getTranslation } = useRuntimeConstants();\n const countryInformation = SUSTAINABILITY_INFO_CONFIG.find((information) => {\n return (\n information.browseLanguage.toLowerCase() === browseLanguage.toLowerCase()\n );\n })?.includedInformation;\n\n if (!(countryInformation?.includes(type) && children)) {\n return null;\n }\n\n return (\n <>\n {titleKey &&

{getTranslation(titleKey)}

}\n {children}\n \n );\n};\n\nexport default function SustainabilityInfo({\n colourWayId,\n browseLanguage,\n onInfoReceived,\n}) {\n const [information, setInformation] = useState(null);\n const [error, setError] = useState(false);\n const { getTranslation } = useRuntimeConstants();\n\n useEffect(() => {\n const onError = () => {\n onInfoReceived && onInfoReceived(false);\n setError(true);\n };\n if (!colourWayId || !browseLanguage) {\n onError();\n return;\n }\n\n setError(false);\n\n getVariantSustainabilityData(colourWayId, browseLanguage)\n .then((sustainabilityInformation) => {\n onInfoReceived && onInfoReceived(true);\n setInformation(sustainabilityInformation);\n })\n .catch(onError);\n }, [colourWayId, browseLanguage, onInfoReceived]);\n\n if (error) {\n return (\n \n );\n }\n\n return (\n information && (\n
\n

{getTranslation(\"pdp_environmental_quality_info_subtitle\")}

\n
\n {buildSustainabilitySections({ ...information }, browseLanguage)}\n

\n {information.lastUpdatedDate && (\n

\n {`${getTranslation(\n \"pdp_environmental_quality_last_updated_date\"\n )}: ${new Date(information.lastUpdatedDate).toLocaleDateString(\n information.language\n )}`}\n

\n )}\n
\n )\n );\n}\n\nfunction mapSustainabilityData({ data, type }) {\n if (!data) {\n return null;\n }\n\n if (type === \"images\") {\n return (\n
\n {data.map(({ attributeName, attributeValue }) => {\n return (\n \n );\n })}\n
\n );\n }\n\n return data\n .filter(({ attributeName, attributeValues }) => {\n return (\n attributeName &&\n Array.isArray(attributeValues) &&\n attributeValues.some((attributeValue) => attributeValue?.length > 0)\n );\n })\n .map(({ attributeName, attributeValues }) => {\n const content = `${attributeName}: ${attributeValues.join(\", \")}`;\n return

{content}

;\n });\n}\n\nfunction buildSustainabilitySections(\n { product, packaging, logoUrls },\n browseLanguage\n) {\n return (\n <>\n {product?.length > 0 && (\n \n {mapSustainabilityData({ data: product })}\n \n )}\n {packaging?.length > 0 && (\n \n {mapSustainabilityData({ data: packaging })}\n \n )}\n {logoUrls?.length > 0 && (\n \n {mapSustainabilityData({ data: logoUrls, type: \"images\" })}\n \n )}\n \n );\n}\n\nSustainabilityInfoSection.propTypes = {\n type: PropTypes.string.isRequired,\n browseLanguage: PropTypes.string.isRequired,\n titleKey: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n};\n\nSustainabilityInfo.propTypes = {\n colourWayId: PropTypes.string.isRequired,\n browseLanguage: PropTypes.string.isRequired,\n onInfoReceived: PropTypes.func,\n};\n","import { LEGISLATION_API_TIMEOUT } from \"../constants\";\nimport makeRequest from \"./makeRequest\";\n\nexport default async function getVariantSustainabilityData(\n colourWayId,\n browseLanguage\n) {\n return makeRequest({\n url: `/assets/legislation/${colourWayId}.${browseLanguage}.json`,\n timeout: LEGISLATION_API_TIMEOUT,\n mapData: (response) => response.legislationData,\n handleErrorReturnValue: () => {\n throw new Error(\"Error getting sustainability data\");\n },\n });\n}\n","import { useState, useRef, useEffect, useCallback } from \"react\";\nimport classnamesBind from \"classnames/bind\";\n\nimport styles from \"./SustainabilityInfoContainer.scss\";\nimport Modal from \"../modal/Modal\";\nimport {\n MODAL_TYPE,\n SUSTAINABILITY_INFO_CONFIG,\n TEXT_SIZES,\n} from \"../../constants\";\nimport SustainabilityInfo from \"./SustainabilityInfo\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { getFeature } from \"../../utils/features\";\nimport {\n allVariantsPartnerFulfils,\n isVariantPartnerFulfils,\n getVariantsColourWayId,\n} from \"../../../utils/variantUtils\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { useVariant } from \"../../context/variant/VariantContext\";\nimport { fireSustainabilityInfoLinkClick } from \"../../analytics/pageInteraction\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport Button from \"../buttons/button/Button\";\nimport { BUTTON_TYPES } from \"../buttons/button/ButtonTypes\";\n\nconst classnames = classnamesBind.bind(styles);\n\nfunction isValidSustainabilityStore({ storeId }) {\n return SUSTAINABILITY_INFO_CONFIG.find(\n (sustainabilityInfoStore) =>\n sustainabilityInfoStore.store.toLowerCase() === storeId?.toLowerCase()\n );\n}\n\nexport default function SustainabilityInfoContainer() {\n const { products: product } = useStockPrice();\n const { getTranslation, webContext } = useRuntimeConstants();\n const { areFeaturesReady } = useFeaturesReady();\n const modalId = \"sustainabilityInfoModal\";\n const buttonRef = useRef();\n const [modalOpen, setModalOpen] = useState(false);\n const [shouldRenderSustainabilityInfo, setShouldRenderSustainabilityInfo] =\n useState(false);\n const [\n shouldShowSustainabilityInfoLink,\n setShouldShowSustainabilityInfoLink,\n ] = useState(true);\n const [contentLoaded, setContentLoaded] = useState(false);\n const { selectedVariantId } = useVariant();\n\n useEffect(() => {\n if (areFeaturesReady && product) {\n setShouldRenderSustainabilityInfo(\n !!isValidSustainabilityStore({ storeId: webContext?.storeId }) &&\n !allVariantsPartnerFulfils(product.variants) &&\n getFeature(\"pdp-sustainability-info\").isEnabled()\n );\n }\n }, [product, areFeaturesReady, webContext]);\n\n useEffect(() => {\n setShouldShowSustainabilityInfoLink(\n selectedVariantId === null ||\n !isVariantPartnerFulfils(product.variants, selectedVariantId)\n );\n }, [product, selectedVariantId]);\n\n const onSustainabilityInfoReceived = useCallback((isSuccess) => {\n fireSustainabilityInfoLinkClick(isSuccess);\n setContentLoaded(true);\n }, []);\n\n const onModalClose = () => {\n setModalOpen(false);\n setContentLoaded(false);\n };\n\n if (!shouldRenderSustainabilityInfo) {\n return null;\n }\n\n const colourWayId = getVariantsColourWayId(\n product.variants,\n selectedVariantId\n );\n\n return (\n <>\n setModalOpen(true)}\n type={BUTTON_TYPES.naked}\n >\n {getTranslation(\"pdp_environmental_quality\")}\n \n \n {modalOpen && (\n \n )}\n \n \n );\n}\n","import styles from \"./ProductDescription.scss\";\nimport PropTypes from \"prop-types\";\nimport SustainabilityInfoContainer from \"../sustainabilityInfo/SustainabilityInfoContainer\";\n\nexport function AboutMe({ aboutMeVisible, aboutMe }) {\n const sustainabilityInfo = SustainabilityInfoContainer();\n\n if (!aboutMeVisible && !sustainabilityInfo) {\n return null;\n }\n\n return (\n <>\n {aboutMeVisible && (\n \n )}\n {sustainabilityInfo}\n \n );\n}\n\nAboutMe.propTypes = {\n aboutMeVisible: PropTypes.bool,\n aboutMe: PropTypes.string,\n};\n","import styles from \"./ProductDescription.scss\";\nimport PropTypes from \"prop-types\";\n\nexport function MoreInfo({ moreInfoVisible, badges }) {\n if (!badges?.length || !moreInfoVisible) {\n return null;\n }\n\n return (\n
    \n {badges.map(({ contentUrl, imageUrl, tooltip }) => (\n
  • \n \n {tooltip}\n \n
  • \n ))}\n
\n );\n}\n\nMoreInfo.propTypes = {\n moreInfoVisible: PropTypes.bool,\n badges: PropTypes.arrayOf(\n PropTypes.shape({\n contentUrl: PropTypes.string.isRequired,\n tooltip: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n })\n ),\n};\n","import styles from \"./ProductDescription.scss\";\nimport PropTypes from \"prop-types\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport SizeGuideButton, {\n SIZE_GUIDE_BUTTON_SIZE,\n} from \"../sizeGuideButton/SizeGuideButton\";\nimport { NEW_USER } from \"../../analytics/fitAssistantCommon\";\nimport { useSizing } from \"../../context/sizing/SizingContext\";\n\nconst getSizingTranslation = ({\n getTranslation,\n recommendedSize,\n isPartialRecommendation,\n}) => {\n if (recommendedSize === NEW_USER) {\n return getTranslation(\"pdp_fit_analytics_sizing_help_profile_none\");\n }\n if (recommendedSize !== NEW_USER && isPartialRecommendation) {\n return getTranslation(\"pdp_fit_analytics_sizing_help_profile_partial\");\n }\n return getTranslation(\"pdp_fit_analytics_sizing_help_profile_complete\");\n};\n\nconst handleKeyPress = (handleFitAssistantLinkClick) => (event) => {\n if (event.key === \"Enter\") {\n handleFitAssistantLinkClick(event);\n }\n};\n\nconst getSizingHelpText = ({\n getTranslation,\n recommendedSize,\n sizeGuideUrl,\n isPartialRecommendation,\n handleFitAssistantLinkClick,\n}) => {\n const introText = getTranslation(\"pdp_fit_analytics_sizing_help_intro\");\n const sizingTranslation = getSizingTranslation({\n getTranslation,\n recommendedSize,\n isPartialRecommendation,\n });\n\n const [fitAssistantLinkText, sizeGuideText] =\n sizingTranslation.split(\"%{splitPoint}\");\n\n const [sizeGuideIntroText, sizeGuideButtonText] =\n sizeGuideText.split(\"%{link}\");\n\n return (\n

\n {introText}\n {fitAssistantLinkText && (\n \n {\" \"}\n {fitAssistantLinkText}\n \n )}\n {sizeGuideUrl && (\n <>\n {\" \"}\n {sizeGuideIntroText}\n \n \n )}\n

\n );\n};\n\nconst checkRecommendations = ({ recommendedSize, isPartialRecommendation }) =>\n recommendedSize === NEW_USER ||\n (recommendedSize !== NEW_USER && isPartialRecommendation);\n\nconst showSizingHelp = ({\n sizeGuideUrl,\n recommendedSize,\n isPartialRecommendation,\n}) =>\n sizeGuideUrl ||\n checkRecommendations({\n recommendedSize,\n isPartialRecommendation,\n });\n\nconst showSizeAndFit = ({\n sizeAndFitVisible,\n sizeGuideUrl,\n recommendedSize,\n isPartialRecommendation,\n}) =>\n sizeAndFitVisible ||\n (sizeGuideUrl && recommendedSize !== null) ||\n checkRecommendations({\n recommendedSize,\n isPartialRecommendation,\n });\n\nexport const SizeAndFit = ({ sizeAndFitVisible, sizeAndFit }) => {\n const { getTranslation } = useRuntimeConstants();\n const {\n sizeGuideUrl,\n recommendedSize,\n isPartialRecommendation,\n handleFitAssistantLinkClick,\n } = useSizing();\n\n if (\n !showSizeAndFit({\n sizeAndFitVisible,\n sizeGuideUrl,\n recommendedSize,\n isPartialRecommendation,\n })\n ) {\n return null;\n }\n\n return (\n <>\n {sizeAndFitVisible && (\n \n )}\n {showSizingHelp({\n sizeGuideUrl,\n recommendedSize,\n isPartialRecommendation,\n }) && (\n \n

{getTranslation(\"pdp_fit_analytics_sizing_help_title\")}

\n {getSizingHelpText({\n getTranslation,\n recommendedSize,\n sizeGuideUrl,\n isPartialRecommendation,\n handleFitAssistantLinkClick,\n })}\n
\n )}\n \n );\n};\n\nSizeAndFit.propTypes = {\n sizeAndFitVisible: PropTypes.bool,\n sizeAndFit: PropTypes.string,\n};\n","import { useEffect, useState } from \"react\";\nimport { Accordion } from \"@asosteam/asos-web-component-library-accordion\";\nimport styles from \"./ProductDescription.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { getFeature } from \"../../utils/features\";\nimport { fireProductDetailsAccordionItemOpened } from \"../../analytics/pageInteraction\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { GenericAccordionItem } from \"./GenericAccordionItem\";\nimport { ProductDetails } from \"./ProductDetails\";\nimport { AboutMe } from \"./AboutMe\";\nimport { MoreInfo } from \"./MoreInfo\";\nimport { SizeAndFit } from \"./SizeAndFit\";\n\nexport default function ProductDescription() {\n const {\n product: { pdpLayout, showCmaTitle },\n productDescription,\n getTranslation,\n } = useRuntimeConstants();\n const [isAccordionTrackingEnabled, setIsAccordionTrackingEnabled] =\n useState(false);\n const { areFeaturesReady } = useFeaturesReady();\n\n useEffect(() => {\n if (areFeaturesReady) {\n setIsAccordionTrackingEnabled(\n getFeature(\"pdp-accordion-tracking\").isEnabled()\n );\n }\n }, [areFeaturesReady]);\n\n const onItemClickHandler = (_, itemClicked, isOpen) => {\n if (isOpen && isAccordionTrackingEnabled) {\n const { analyticsId } = itemClicked;\n fireProductDetailsAccordionItemOpened(analyticsId);\n }\n };\n\n const getAboutMeTitleTranslationKey = () => {\n switch (true) {\n case pdpLayout === \"Face & Body\":\n return \"facebody_pdp_info_howtouse\";\n case showCmaTitle:\n return \"pdp_description_about_me_title_cma\";\n default:\n return \"pdp_description_about_me_title\";\n }\n };\n\n return (\n
\n \n
\n );\n}\n\nfunction buildAccordionItems(\n productDescription,\n getTranslation,\n getAboutMeTitleTranslationKey\n) {\n return [\n {\n id: \"productDescriptionDetails\",\n analyticsId: \"Product Details\",\n title: getTranslation(\"pdp_description_product_details_title\"),\n component: ProductDetails(productDescription),\n },\n {\n id: \"productDescriptionBrand\",\n analyticsId: \"Brand\",\n title: getTranslation(\"pdp_description_brand_title\"),\n component: GenericAccordionItem({\n content: productDescription.brandDescription,\n isVisible: productDescription.brandDescriptionVisible,\n }),\n },\n {\n id: \"productDescriptionSizeAndFit\",\n analyticsId: \"Size & Fit\",\n title: getTranslation(\"pdp_description_size_and_fit_title\"),\n component: SizeAndFit(productDescription),\n },\n {\n id: \"productDescriptionCareInfo\",\n analyticsId: \"Care Info\",\n title: getTranslation(\"pdp_description_care_info_title\"),\n component: GenericAccordionItem({\n content: productDescription.careInfo,\n isVisible: productDescription.careInfoVisible,\n }),\n },\n {\n id: \"productDescriptionAboutMe\",\n analyticsId: \"About Me\",\n title: getTranslation(getAboutMeTitleTranslationKey()),\n component: AboutMe(productDescription),\n },\n {\n id: \"productDescriptionMoreInfo\",\n analyticsId: \"More Info\",\n title: getTranslation(\"pdp_description_more_info_title\"),\n component: MoreInfo(productDescription),\n },\n ]\n .filter((item) => !!item.component)\n .map(({ title, id, analyticsId, component }) => ({\n contentId: id,\n analyticsId,\n title,\n content: component,\n }));\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"promoText\":\"XfX1K\",\"productPromo\":\"Iutj6\",\"hidden\":\"VXLsc\",\"promoBox\":\"MEwVh\",\"icon\":\"qgKez\",\"discountCode\":\"BMrLg\",\"visuallyHidden\":\"wmFhV\"};","import getRuntimeConstants from \"../runtimeConstants\";\nimport makeRequest from \"./makeRequest\";\nimport { POST } from \"../constants\";\nimport { getAuthorisationHeader } from \"../utils/identity\";\n\nasync function fetchPromoMessages(url, body, params) {\n const Authorization = await getAuthorisationHeader();\n\n return makeRequest({\n url,\n body,\n params,\n method: POST,\n apiName: \"Promotion Messages\",\n caller: \"Promotion Messages\",\n headers: {\n \"Content-Type\": \"application/json\",\n Authorization,\n },\n });\n}\n\nfunction getSellers(variants) {\n const sellers = new Set();\n variants.forEach((variant) => {\n if (typeof variant.seller === \"object\") {\n sellers.add(JSON.stringify(variant.seller));\n }\n });\n return Array.from(sellers).map((seller) => JSON.parse(seller));\n}\n\nfunction getProductsObj(product) {\n const sellers = getSellers(product.variants);\n const plpIds = product.plpIds.map((plpId) => plpId.id);\n\n return {\n productId: product.id,\n isMarkedDown: product.price?.isMarkedDown,\n isOutletPrice: product.price?.isOutletPrice,\n plpIds,\n sellers,\n };\n}\n\nexport default function getPromoMessaging(product) {\n const {\n webContext: {\n browseCurrency,\n browseLanguage,\n browseCountry,\n storeId,\n keyStoreDataversion,\n },\n promotionsMessagingApi,\n } = getRuntimeConstants();\n\n const body = {\n store: storeId,\n currency: browseCurrency,\n lang: browseLanguage,\n country: browseCountry,\n products: [getProductsObj(product)],\n };\n\n return fetchPromoMessages(promotionsMessagingApi, body, {\n keyStoreDataversion,\n });\n}\n","import { useState, useEffect } from \"react\";\nimport { useVariant } from \"../../context/variant/VariantContext\";\nimport {\n getInStockVariants,\n doesVariantHaveSeller,\n allVariantsHaveSeller,\n} from \"../../../utils/variantUtils\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport styles from \"./ProductPromo.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport getPromoMessaging from \"../../api/promotionsMessagingApi\";\nimport { replaceTokensWithBoldStyling } from \"../../utils/replaceTokensInString\";\nimport { useProduct } from \"../../context/product/ProductContext\";\nimport { PRODUCT_PROMO_LIVE_STORES } from \"../../constants\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst ProductPromo = () => {\n const { webContext } = useRuntimeConstants();\n const { selectedVariantId, selectedVariant } = useVariant();\n const [isSoldByPartner, setIsSoldByPartner] = useState(false);\n const [promoMessages, setPromoMessages] = useState([]);\n const [showNewPromoMessages, setShowNewPromoMessages] = useState(false);\n const { product } = useProduct();\n\n const getPromoMessage = () => {\n let seller;\n if (allVariantsHaveSeller(product.variants)) {\n seller = product.variants[0].seller;\n } else {\n seller = selectedVariant ? selectedVariant.seller : null;\n }\n\n return promoMessages?.find((message) => message.seller?.id === seller?.id);\n };\n\n //This will replace the return method when optimizely is no longer used.\n //Leaving as a small child component here until then\n const PromoBox = () => {\n if (!promoMessages.length || !product) {\n return null;\n }\n\n const promoMessage = getPromoMessage();\n\n if (!promoMessage) {\n return null;\n }\n\n const message = replaceTokensWithBoldStyling(\n promoMessage.displayMessage,\n {\n discountCode: promoMessage.discountCode,\n },\n styles.discountCode\n );\n\n return (\n \n
\n
\n
\n \n

{promoMessage.readerMessage}

\n
\n );\n };\n\n useEffect(() => {\n setShowNewPromoMessages(\n PRODUCT_PROMO_LIVE_STORES.includes(webContext?.storeId)\n );\n }, [webContext]);\n\n useEffect(() => {\n async function storePromoMessages() {\n const result = await getPromoMessaging(product);\n if (!result?.productMessages?.length) {\n setShowNewPromoMessages(false);\n }\n\n if (result?.productMessages) {\n setPromoMessages(result.productMessages);\n }\n }\n\n if (showNewPromoMessages && !promoMessages.length && product) {\n storePromoMessages();\n }\n }, [product, promoMessages, showNewPromoMessages]);\n\n useEffect(() => {\n if (product) {\n const inStockVariants = getInStockVariants(product.variants);\n const doAllVariantsHaveSeller = allVariantsHaveSeller(inStockVariants);\n\n setIsSoldByPartner(\n (doAllVariantsHaveSeller ||\n doesVariantHaveSeller(inStockVariants, selectedVariantId)) &&\n inStockVariants.length\n );\n }\n }, [product, selectedVariantId]);\n\n return (\n <>\n {showNewPromoMessages ? (\n \n ) : (\n <>\n \n \n \n )}\n \n );\n};\n\nexport default ProductPromo;\n","export const replaceTokensWithBoldStyling = (text, replacements, styling) =>\n Object.keys(replacements).reduce((accumulator, currentKey) => {\n const nextString = accumulator.replace(\n new RegExp(`{${currentKey}}`, \"g\"),\n `${\n replacements[currentKey]\n }`\n );\n return nextString;\n }, text);\n\nexport const replaceTokens = (text, replacements) =>\n Object.keys(replacements).reduce((accumulator, currentKey) => {\n const nextString = accumulator.replace(\n new RegExp(`{${currentKey}}`, \"g\"),\n replacements[currentKey]\n );\n return nextString;\n }, text);\n","// extracted by mini-css-extract-plugin\nexport default {\"ratingBar\":\"LDIS_\",\"ratingProgress\":\"qKPxB\",\"ratingsLabels\":\"ZpsiA\",\"ratingsLabelMid\":\"GHAyt\",\"ratingsLabelMax\":\"IHWfv\"};","const ariaTranslations = {\n 2: [\n {\n minValue: 0,\n maxValue: 33,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_0_25_description\",\n },\n {\n minValue: 34,\n maxValue: 65,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_25_35_description\",\n },\n {\n minValue: 66,\n maxValue: 100,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_75_100_description\",\n },\n ],\n 3: [\n {\n minValue: 0,\n maxValue: 24,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_0_25_description\",\n },\n {\n minValue: 25,\n maxValue: 34,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_25_35_description\",\n },\n {\n minValue: 35,\n maxValue: 65,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_35_65_description\",\n },\n {\n minValue: 66,\n maxValue: 75,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_65_75_description\",\n },\n {\n minValue: 76,\n maxValue: 100,\n labelKey: \"pdp_ratings_reviews_accessibility_slider_75_100_description\",\n },\n ],\n};\n\nfunction getNumberOfLabels({ minLabel, midLabel, maxLabel }) {\n return [minLabel, midLabel, maxLabel].filter((label) => label).length;\n}\n\nfunction getAriaLabelForTwoLabels(\n getTranslation,\n { label, minLabel, maxLabel, percentage }\n) {\n const midLabel = maxLabel;\n const { labelKey } = ariaTranslations[2].find(({ minValue, maxValue }) => {\n return percentage >= minValue && percentage <= maxValue;\n });\n return getTranslation(labelKey, {\n secondaryRatingAverage: label,\n minLabel,\n midLabel,\n maxLabel,\n });\n}\n\nfunction getAriaLabelForThreeLabels(\n getTranslation,\n { label, minLabel, midLabel, maxLabel, percentage }\n) {\n const { labelKey } = ariaTranslations[3].find(({ minValue, maxValue }) => {\n return percentage >= minValue && percentage <= maxValue;\n });\n return getTranslation(labelKey, {\n secondaryRatingAverage: label,\n minLabel,\n midLabel,\n maxLabel,\n });\n}\n\nexport function getAriaLabel(\n getTranslation,\n { label, minLabel, midLabel, maxLabel, percentage }\n) {\n const numberOfLabels = getNumberOfLabels({ minLabel, midLabel, maxLabel });\n\n if (numberOfLabels === 3) {\n return getAriaLabelForThreeLabels(getTranslation, {\n label,\n minLabel,\n midLabel,\n maxLabel,\n percentage,\n });\n } else if (numberOfLabels === 2) {\n return getAriaLabelForTwoLabels(getTranslation, {\n label,\n minLabel,\n maxLabel,\n percentage,\n });\n }\n}\n","import styles from \"./RatingBar.scss\";\nimport PropTypes from \"prop-types\";\nimport { getAriaLabel } from \"../../utils/ratingsAriaLabels\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst RatingBar = ({ percentage, minLabel, midLabel, maxLabel, label }) => {\n const { getTranslation } = useRuntimeConstants();\n return (\n \n \n \n
\n \n
{minLabel}
\n {midLabel &&
{midLabel}
}\n
{maxLabel}
\n
\n
\n );\n};\n\nexport default RatingBar;\n\nRatingBar.propTypes = {\n percentage: PropTypes.number.isRequired,\n label: PropTypes.string.isRequired,\n minLabel: PropTypes.string.isRequired,\n midLabel: PropTypes.string,\n maxLabel: PropTypes.string.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"releaseDateBanner\":\"_Pf4u\",\"access-view\":\"SGlNU\",\"access-purchase\":\"H_t8G\",\"date\":\"EzDi5\"};","import classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useTranslatedText } from \"./useTranslatedText\";\nimport { getCustomerLoyaltyAccess } from \"../../utils/getCustomerLoyaltyAccess\";\nimport styles from \"./ReleaseDateBanner.scss\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst ReleaseDateBanner = () => {\n const { getTranslation, product } = useRuntimeConstants();\n const { customerAccess, endDate } = getCustomerLoyaltyAccess(product);\n\n const textToRender = useTranslatedText(\n getTranslation,\n customerAccess,\n endDate\n );\n\n if (!textToRender) {\n return null;\n }\n\n const accessClass = customerAccess ? `access-${customerAccess}` : \"\";\n\n return (\n
\n {textToRender.releaseBannerTranslation}:{\" \"}\n {textToRender.formattedEndDate}\n
\n );\n};\n\nexport default ReleaseDateBanner;\n","import { useMemo } from \"react\";\nimport { formatDateForLoyalty } from \"../../utils/formatDateForLoyalty\";\nimport { CUSTOMER_ACCESS_PURCHASE } from \"../../constants\";\n\nexport const useTranslatedText = (getTranslation, customerAccess, endDate) => {\n return useMemo(() => {\n if (!customerAccess || customerAccess !== CUSTOMER_ACCESS_PURCHASE) {\n return \"\";\n }\n\n const releaseBannerTranslation = getTranslation(\n \"plp_banner_header_early_access\"\n );\n\n if (releaseBannerTranslation) {\n const formattedEndDate = endDate ? formatDateForLoyalty(endDate) : \"\";\n return {\n releaseBannerTranslation,\n formattedEndDate,\n };\n }\n\n return \"\";\n }, [getTranslation, customerAccess, endDate]);\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"repeatedTextBanner\":\"Twb_r\",\"partOfProductGallery\":\"ZhPCM\",\"access-view\":\"eHsYo\",\"access-purchase\":\"_DUBc\",\"bannerText\":\"ZWooV\"};","import { useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { getTranslatedText } from \"./getTranslatedText\";\nimport { getCustomerLoyaltyAccess } from \"../../utils/getCustomerLoyaltyAccess\";\nimport { BULLET_SYMBOL } from \"../../constants\";\nimport styles from \"./RepeatedTextBanner.scss\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst RepeatedTextBanner = ({ className }) => {\n const bannerRef = useRef(null);\n const textRef = useRef(null);\n const { getTranslation, product } = useRuntimeConstants();\n const { customerAccess } = getCustomerLoyaltyAccess(product);\n const textToRender = getTranslatedText(getTranslation, customerAccess);\n const repetitions = 10;\n\n if (!textToRender) {\n return null;\n }\n\n const repeatedText = `${textToRender}${BULLET_SYMBOL}`;\n\n const accessClass = customerAccess ? `access-${customerAccess}` : \"\";\n\n return (\n \n \n {repeatedText.repeat(repetitions)}\n \n \n );\n};\n\nRepeatedTextBanner.propTypes = {\n className: PropTypes.string,\n};\n\nexport default RepeatedTextBanner;\n","export const getTranslatedText = (getTranslation, customerAccess) => {\n const translationMap = {\n view: getTranslation(\"coming_soon_label\"),\n purchase: getTranslation(\"early_access_label\"),\n };\n\n return translationMap[customerAccess] || \"\";\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"link\":\"ZAwAR\",\"container\":\"JxXi1\",\"icon\":\"_ZO5O\"};","import styles from \"./ReportProductLink.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { REPORT_LEGAL_CONCERN_LINK_PATH } from \"../../constants\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst buildLink = ({ product }) => {\n const queryParams = new URLSearchParams({\n productCode: product?.productCode,\n productTitle: product?.name,\n });\n\n return `${REPORT_LEGAL_CONCERN_LINK_PATH}?${queryParams}`;\n};\n\nconst ReportProductLink = () => {\n const {\n getTranslation,\n product,\n digitalServicesAct: { isDsaEnabledCountry },\n } = useRuntimeConstants();\n\n if (!isDsaEnabledCountry) {\n return null;\n }\n\n return (\n
\n \n {getTranslation(\"pdp_digital_services_act_link\")}\n \n \n
\n );\n};\n\nexport default ReportProductLink;\n","import React from \"react\";\nimport styles from \"./RestockingSoonBanner.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useProduct } from \"../../context/product/ProductContext\";\n\nconst RestockingSoonBanner = () => {\n const { getTranslation } = useRuntimeConstants();\n const { product } = useProduct();\n\n if (!product) {\n return null;\n }\n\n const { shouldShowRestockingSoon, restockingLeadTimeWeeks } =\n product.restockingSoonDetails;\n\n if (!shouldShowRestockingSoon) {\n return null;\n }\n\n return (\n
\n

\n {getTranslation(\"back_in_stock_soon_message_title\")}\n

\n

\n {getTranslation(\"back_in_stock_soon_message_description\", {\n smart_count: restockingLeadTimeWeeks,\n restockingLeadTimeWeeks,\n })}\n

\n
\n );\n};\n\nexport default RestockingSoonBanner;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"kg73l\",\"title\":\"fydSU\",\"ringGrow\":\"RJ9i4\",\"bodyText\":\"DMbT3\"};","// extracted by mini-css-extract-plugin\nexport default {\"variantSelectorSkeleton\":\"CoDk_\",\"addToBagSkeleton\":\"Impwc\",\"saveForLaterSkeleton\":\"Zkbmc\",\"loading\":\"wylP2\",\"actionsSkeleton\":\"ataVP\",\"container\":\"QkQ6k\"};","import { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport styles from \"./SkeletonPrimaryActions.scss\";\n\nexport default function SkeletonPrimaryActions() {\n const { products, shouldRetry } = useStockPrice();\n\n if (products || shouldRetry) {\n return null;\n }\n\n return (\n
\n
\n
\n
\n
\n
\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"frame\":\"TP1RV\",\"hidden\":\"GqPdP\"};","import { useState, useRef, useCallback, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./IngredientsModal.scss\";\nimport Modal from \"../modal/Modal\";\nimport ErrorPage from \"../errorPage/ErrorPage\";\nimport { MODAL_TYPE } from \"../../constants\";\nimport { connect } from \"@asos-web-messaging-bridge/bridge-web\";\nimport { logError, ERROR_TYPE } from \"../../utils/newRelicLogger\";\nimport classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport { useVariant } from \"../../context/variant/VariantContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst IngredientsModal = ({ open, focusOnClose, close }) => {\n const { ingredientsPageUrl, ingredientsModalTimeout, webContext } =\n useRuntimeConstants();\n const { products } = useStockPrice();\n\n const [connectedToFrame, setConnectedToFrame] = useState(false);\n const [showError, setShowError] = useState(false);\n const { selectedVariant } = useVariant();\n const bridgeConnection = useRef(null);\n const timeoutRef = useRef(null);\n\n const requestUrl = `${ingredientsPageUrl}?lang=${webContext.browseLanguage}`;\n const modalId = \"ingredientsModal\";\n\n const colourVariantMapper = useCallback(() => {\n const inStockVariantsWithIngredients = [];\n\n products?.variants?.forEach((variant) => {\n if (variant.isInStock && variant.hasIngredients) {\n const { ean, sku } = variant;\n const isSelected = variant.colour === selectedVariant?.colour;\n\n inStockVariantsWithIngredients.push({\n id: ean || sku,\n type: ean ? \"ean\" : \"sku\",\n name: variant.colour,\n isSelected,\n });\n }\n });\n return inStockVariantsWithIngredients;\n }, [products, selectedVariant]);\n\n useEffect(() => {\n return () => {\n disconnect();\n };\n }, []);\n\n const disconnect = () => {\n clearTimeout(timeoutRef.current);\n bridgeConnection.current?.disconnect();\n };\n\n const closeModal = () => {\n setShowError(false);\n setConnectedToFrame(false);\n disconnect();\n close();\n };\n\n const afterRender = useCallback(\n (iframeElement) => {\n let bridgeWebConnection;\n\n if (open && iframeElement) {\n new Promise((resolve, reject) => {\n timeoutRef.current = setTimeout(() => {\n reject(\n `Skin Match page request timed out after ${ingredientsModalTimeout} ms`\n );\n }, ingredientsModalTimeout);\n\n connect(iframeElement, requestUrl, (message, connection) => {\n clearTimeout(timeoutRef.current);\n resolve(connection);\n });\n })\n .then((connection) => {\n bridgeConnection.current = connection;\n bridgeWebConnection = connection;\n return connection;\n })\n .then(async (iFrameConnection) => {\n const availableColours = await colourVariantMapper();\n\n if (!iFrameConnection) {\n return null;\n }\n\n setConnectedToFrame(true);\n iFrameConnection.send(availableColours);\n })\n .catch((error) => {\n setShowError(true);\n\n logError(ERROR_TYPE.UserActionFailed, {\n caller: \"IngredientsModal\",\n action: \"IngredientsModalTimeout\",\n requestUrl: requestUrl,\n message: error,\n });\n });\n }\n\n if (!iframeElement) {\n clearTimeout(timeoutRef.current);\n bridgeWebConnection?.disconnect();\n }\n },\n [open, requestUrl, ingredientsModalTimeout]\n );\n\n return (\n \n {showError ? (\n \n ) : (\n \n )}\n \n );\n};\n\nexport default IngredientsModal;\n\nIngredientsModal.propTypes = {\n open: PropTypes.bool.isRequired,\n focusOnClose: PropTypes.node,\n close: PropTypes.func.isRequired,\n};\n","import PropTypes from \"prop-types\";\nimport styles from \"./IngredientsButton.scss\";\nimport { fireIngredientsButtonClickAnalytics } from \"../../analytics/pageInteraction\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst IngredientsButton = ({ onClick }) => {\n const { getTranslation } = useRuntimeConstants();\n\n const handleClick = (event) => {\n onClick(event);\n fireIngredientsButtonClickAnalytics();\n };\n\n return (\n \n \n {getTranslation(\"pdp_description_ingredients_title\")}\n \n );\n};\n\nexport default IngredientsButton;\n\nIngredientsButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"ingredientsButton\":\"DMTP1\"};","import { useState } from \"react\";\nimport IngredientsModal from \"../../components/ingredientsModal/IngredientsModal\";\nimport IngredientsButton from \"../../components/ingredientsButton/IngredientsButton\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\n\nexport default function IngredientsContainer() {\n const { product } = useRuntimeConstants();\n const [openIngredients, setOpenIngredients] = useState(false);\n const { isInStock } = useIsInStockContext();\n const [ingredientsButtonFocusTarget, setIngredientsButtonFocusTarget] =\n useState(null);\n\n const renderIngredientsButton = () =>\n product.hasVariantsWithIngredients &&\n isInStock && (\n {\n setOpenIngredients(true);\n setIngredientsButtonFocusTarget(event.target);\n }}\n />\n );\n\n return (\n <>\n {renderIngredientsButton()}\n {\n setOpenIngredients(false);\n }}\n />\n \n );\n}\n","import { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\n\nexport default function ClientOnly({ children }) {\n const [isClientPostRender, setIsClientPostRender] = useState(false);\n\n useEffect(() => {\n setIsClientPostRender(true);\n }, []);\n\n return isClientPostRender ? <>{children} : null;\n}\n\nClientOnly.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n","import ReactDOM from \"react-dom\";\nimport loadable from \"@loadable/component\";\nimport getWindow from \"../utils/window\";\nimport ErrorBoundary from \"../components/errorBoundary/ErrorBoundary\";\nimport PriceData from \"../components/priceData/PriceData\";\nimport ProductName from \"../components/productName/ProductName\";\nimport ClientOnly from \"../containers/clientOnly/ClientOnly\";\nimport OutOfStockLabel from \"../components/outOfStockLabels/OutOfStockLabel\";\nimport { ProductContextProvider } from \"../context/product/ProductContext\";\nimport { VariantContextProvider } from \"../context/variant/VariantContext\";\nimport ProductColourContainer from \"../components/productColourContainer/ProductColourContainer\";\nimport ProductPromo from \"../components/productPromo/ProductPromo\";\nimport ReleaseDateBanner from \"../components/releaseDateBanner/ReleaseDateBanner\";\nimport RepeatedTextBanner from \"../components/repeatedTextBanner/RepeatedTextBanner\";\nimport AsosWorldBox from \"../components/asosWorldBox/AsosWorldBox\";\nimport ProductSize from \"../components/productSize/ProductSize\";\nimport Rating from \"../components/ratingComponents/rating/Rating\";\nimport { PRODUCT_COLOUR_POSITIONS } from \"../constants\";\nimport ProductCode from \"../components/productCode/ProductCode\";\nimport CustomerFitRating from \"../components/customerFitRating/CustomerFitRating\";\nimport VariantSelectionContainer from \"../containers/variantSelection/VariantSelectionContainer\";\nimport { SizingContextProvider } from \"../context/sizing/SizingContext\";\nimport DeliveryAndReturnsContainer from \"../containers/deliveryAndReturnsContainer/DeliveryAndReturnsContainer\";\nimport IfInStock from \"../components/conditional/IfInStock\";\nimport StockPriceRetry from \"../components/stockPriceRetry/StockPriceRetry\";\nimport LiveRegion from \"../components/liveRegion/LiveRegion\";\nimport ProductDescription from \"../components/productDescription/ProductDescription\";\nimport IngredientsContainer from \"../containers/IngredientsContainer/IngredientsContainer\";\nimport SkeletonPrimaryActions from \"../components/skeletonPrimaryActions/SkeletonPrimaryActions\";\nimport { useStockPrice } from \"../context/stockPrice/StockPriceContext\";\nimport { useRuntimeConstants } from \"../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useIsInStockContext } from \"../context/isInStock/IsInStockContext\";\nimport IfStockStateReady from \"../components/conditional/IfStockStateReady\";\nimport ShowOnProductStockStatus from \"../components/conditional/ShowOnProductStockStatus\";\nimport {\n fireAddToBagAnalytics,\n fireAddToBagErrorAnalytics,\n} from \"../analytics/addToBag\";\nimport { fireAddToBagMarketing } from \"../utils/marketingTracking/marketingTrackingEvents\";\nimport fireNotifyMeClickAnalytics from \"../analytics/backInStock\";\nimport { fireSourcingLocationAnalytics } from \"../analytics/sourcingLocation\";\nimport Spacing, { SPACING } from \"../components/spacing/Spacing\";\nimport ReportProductLink from \"../components/reportProductLink/ReportProductLink\";\nimport RestockingSoonBanner from \"../components/restockingSoonBanner/RestockingSoonBanner\";\nimport styles from \"./SingleProductPage.scss\";\n\nconst OutOfStockHero = loadable(\n () => import(/* webpackChunkName: \"deferred\" */ \"../LoadableComponents\"),\n {\n ssr: false,\n resolveComponent: ({ OutOfStockHero }) => OutOfStockHero,\n }\n);\n\nconst App = loadable(\n () => import(/* webpackChunkName: \"deferred\" */ \"../LoadableComponents\"),\n {\n ssr: false,\n resolveComponent: ({ App }) => App,\n }\n);\n\nconst SocialShare = loadable(\n () => import(/* webpackChunkName: \"deferred\" */ \"../LoadableComponents\"),\n {\n ssr: false,\n resolveComponent: ({ SocialShare }) => SocialShare,\n }\n);\n\nexport default function SingleProductPage() {\n const { products } = useStockPrice();\n const { product } = useRuntimeConstants();\n const { isInStock } = useIsInStockContext();\n\n const mainProducts = products ? [products] : [];\n\n return (\n <>\n \n \n {getWindow()\n ? ReactDOM.createPortal(\n ,\n getWindow().document.getElementById(\"pdp-oos-hero\")\n )\n : null}\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 \n \n \n \n \n \n \n \n \n \n \n \n \n {!product?.isDiscontinued ? (\n \n \n \n ) : null}\n \n \n \n \n \n \n \n \n \n \n
\n\n {getWindow()\n ? ReactDOM.createPortal(\n \n \n ,\n getWindow().document.getElementById(\"pdp-react-app\")\n )\n : null}\n \n );\n}\n","export const formatDateForLoyalty = (isoDateString) => {\n const date = new Date(isoDateString);\n\n const dayName = new Intl.DateTimeFormat(\"en-GB\", { weekday: \"short\" })\n .format(date)\n .toUpperCase();\n const day = date.getDate().toString().padStart(2, \"0\");\n const monthName = new Intl.DateTimeFormat(\"en-GB\", { month: \"short\" })\n .format(date)\n .toUpperCase();\n const time = new Intl.DateTimeFormat(\"en-GB\", {\n hour: \"2-digit\",\n minute: \"2-digit\",\n hour12: false,\n timeZoneName: \"short\",\n })\n .format(date)\n .split(\" \");\n\n return `${dayName} ${day} ${monthName}, ${time[0]}`;\n};\n","export const getSubRatingIcon = (id) => {\n const knownId = {\n Comfort: \"product-rating-comfort\",\n Comfort_1: \"product-rating-comfort\",\n Fit: \"product-rating-fit\",\n Fit_22: \"product-rating-fit\",\n Size: \"product-rating-fit\",\n Quality: \"product-rating-quality\",\n Quality_1: \"product-rating-quality\",\n Value: \"product-rating-value\",\n Value_1: \"product-rating-value\",\n }[id];\n\n return knownId ? knownId : \"product-rating-fallback\";\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"titleContainer\":\"aK0eQ\"};"],"names":["AsosWorldBox","getTranslation","product","useRuntimeConstants","customerAccess","endDate","getCustomerLoyaltyAccess","CUSTOMER_ACCESS_VIEW","_jsxs","className","children","_jsx","formatDateForLoyalty","IfInStock","_ref","isStockStateReady","isInStock","useIsInStockContext","_Fragment","propTypes","PropTypes","isRequired","IfStockStateReady","classnames","classnamesBind","styles","subRatingMatcher","subRating","id","CustomerFitRating","subRatingFitInfo","setSubRatingFitInfo","useState","areFeaturesReady","useFeaturesReady","ratings","useEffect","_ratings$subRatings","_ratings$subRatings2","subRatings","some","isSubratedProduct","getFeature","isEnabled","find","heading","Fit","Size","arguments","length","undefined","translateTitleForSubRatingId","fitInfoContainer","fitInfoLabel","icon","getSubRatingIcon","fitInfoBar","RatingBar","label","minLabel","maxLabel","percentage","ErrorPage","text","main","errorMessage","alt","face","src","paragraph","getPriceForNoSelection","lowestPriceVariantsInStock","doesNextVariantPriceHaveMoreExpensivePrice","currentVariantPrice","nextVariantPrice","priceProp","_currentVariantPrice$","currentPrice","value","nextPrice","reduce","_ref5","price","doesNextVariantPriceHaveMoreExpensiveRrp","isOutletPrice","doesNextVariantPriceHaveMoreExpensivePreviousPrice","_ref4","isMarkedDown","priceIsNotMarkedDownOrOutlet","PriceData","_priceData$current","products","shouldRetry","useStockPrice","selectedVariantId","useVariant","priceData","showFromLabel","useMemo","_product$variants","variants","selectedVariantPrice","_ref3","_variants$find","variant","variantId","getPriceForSelectedVariant","inStockVariants","filter","_ref2","lowestPriceInStockVariants","lowestCurrentPriceVariants","index","lowestPrice","current","push","useVariantPrice","setComponentPerformance","metric","setDiscountOnPrice","PrimaryPrice","testId","firePricingModalOpen","setPricingIconLoad","PaymentPromo","priceValue","skeleton","ProductCode","productCode","isSelected","type","hasFocus","handleTileFocus","focused","tile","selected","onMouseEnter","onMouseLeave","onFocus","onBlur","productFacet","isCarousel","productId","brandName","imageUrl","name","description","getImage","oosOverlay","oosOverlayLine","getImageSource","formatUrl","smallImage","largeImage","createAriaLabel","SelectableTile","toggleOn","isFocused","role","facetThumbnailLink","facetThumbnailLinkDisabled","href","getProductUrl","SideScrollCarousel","forwardRef","ref","displayName","facet","colourLabel","carouselRef","useRef","useLayoutEffect","targetIndex","findIndex","facetProduct","targetPosition","getBoundingClientRect","offset","right","left","scrollLeft","ProductColour","PRODUCT_COLOUR_TYPES","WITHIN_CAROUSEL_FACETS","map","FacetThumbnail","facetGroupId","handleColourLabel","_product$facetGroup","position","colours","setColours","oosVariantsAreSelectable","viewportCategory","useViewport","setColourLabel","facetGroups","facetGroup","facets","getFacetGroupType","stockedVariants","getInStockVariants","productIsInStock","coloursList","getColours","shouldShowFacetCarousel","FacetCarousel","shouldShowFacetPalette","FacetPalette","shouldShowProductColour","GenericAccordionItem","isVisible","content","dangerouslySetInnerHTML","__html","ProductDetails","productDescriptionVisible","productDescription","Hr","hr","SustainabilityInfoSection","_SUSTAINABILITY_INFO_","browseLanguage","titleKey","countryInformation","SUSTAINABILITY_INFO_CONFIG","information","toLowerCase","includedInformation","includes","SustainabilityInfo","colourWayId","onInfoReceived","setInformation","error","setError","onError","async","makeRequest","url","timeout","LEGISLATION_API_TIMEOUT","mapData","response","legislationData","handleErrorReturnValue","Error","getVariantSustainabilityData","then","sustainabilityInformation","catch","container","buildSustainabilitySections","lastUpdatedDate","Date","toLocaleDateString","language","mapSustainabilityData","data","images","attributeName","attributeValue","attributeValues","Array","isArray","_ref6","join","_ref7","packaging","logoUrls","AboutMe","aboutMeVisible","aboutMe","sustainabilityInfo","webContext","buttonRef","modalOpen","setModalOpen","shouldRenderSustainabilityInfo","setShouldRenderSustainabilityInfo","shouldShowSustainabilityInfoLink","setShouldShowSustainabilityInfoLink","contentLoaded","setContentLoaded","storeId","sustainabilityInfoStore","store","isValidSustainabilityStore","allVariantsPartnerFulfils","isVariantPartnerFulfils","onSustainabilityInfoReceived","useCallback","isSuccess","fireSustainabilityInfoLinkClick","getVariantsColourWayId","Button","additionalClasses","sustainabilityInfoButton","hideButton","size","TEXT_SIZES","leavesden3","dataTestId","handleClick","BUTTON_TYPES","naked","Modal","title","open","closeModal","onModalClose","focusOnClose","modalId","modalType","MODAL_TYPE","SIDE","SustainabilityInfoContainer","MoreInfo","moreInfoVisible","badges","contentUrl","tooltip","target","rel","handleKeyPress","handleFitAssistantLinkClick","event","key","getSizingHelpText","recommendedSize","sizeGuideUrl","isPartialRecommendation","introText","sizingTranslation","NEW_USER","getSizingTranslation","fitAssistantLinkText","sizeGuideText","split","sizeGuideIntroText","sizeGuideButtonText","tabIndex","onClick","onKeyDown","link","SizeGuideButton","replace","SIZE_GUIDE_BUTTON_SIZE","LARGE","checkRecommendations","showSizingHelp","SizeAndFit","sizeAndFitVisible","sizeAndFit","useSizing","showSizeAndFit","ProductDescription","pdpLayout","showCmaTitle","isAccordionTrackingEnabled","setIsAccordionTrackingEnabled","Accordion","items","buildAccordionItems","getAboutMeTitleTranslationKey","onItemClick","onItemClickHandler","_","itemClicked","isOpen","analyticsId","fireProductDetailsAccordionItemOpened","headingElement","component","brandDescription","brandDescriptionVisible","careInfo","careInfoVisible","item","contentId","getProductsObj","_product$price","_product$price2","sellers","Set","forEach","seller","add","JSON","stringify","from","parse","getSellers","plpIds","plpId","ProductPromo","selectedVariant","isSoldByPartner","setIsSoldByPartner","promoMessages","setPromoMessages","showNewPromoMessages","setShowNewPromoMessages","useProduct","PromoBox","promoMessage","getPromoMessage","allVariantsHaveSeller","message","_message$seller","_seller","displayMessage","replacements","discountCode","styling","Object","keys","accumulator","currentKey","RegExp","replaceTokensWithBoldStyling","promoBox","promoText","visuallyHidden","readerMessage","PRODUCT_PROMO_LIVE_STORES","_result$productMessag","result","browseCurrency","browseCountry","keyStoreDataversion","promotionsMessagingApi","getRuntimeConstants","body","params","Authorization","getAuthorisationHeader","method","POST","apiName","caller","headers","fetchPromoMessages","currency","lang","country","getPromoMessaging","productMessages","storePromoMessages","doAllVariantsHaveSeller","doesVariantHaveSeller","productPromo","hidden","ariaTranslations","minValue","maxValue","labelKey","getAriaLabel","midLabel","numberOfLabels","getNumberOfLabels","secondaryRatingAverage","getAriaLabelForThreeLabels","getAriaLabelForTwoLabels","style","ReleaseDateBanner","textToRender","useTranslatedText","CUSTOMER_ACCESS_PURCHASE","releaseBannerTranslation","formattedEndDate","accessClass","releaseDateBanner","date","bannerRef","textRef","getTranslatedText","view","purchase","repeatedText","BULLET_SYMBOL","repeatedTextBanner","bannerText","repeat","buildLink","queryParams","URLSearchParams","productTitle","REPORT_LEGAL_CONCERN_LINK_PATH","ReportProductLink","digitalServicesAct","isDsaEnabledCountry","RestockingSoonBanner","shouldShowRestockingSoon","restockingLeadTimeWeeks","restockingSoonDetails","smart_count","SkeletonPrimaryActions","variantSelectorSkeleton","actionsSkeleton","addToBagSkeleton","saveForLaterSkeleton","close","ingredientsPageUrl","ingredientsModalTimeout","connectedToFrame","setConnectedToFrame","showError","setShowError","bridgeConnection","timeoutRef","requestUrl","colourVariantMapper","_products$variants","inStockVariantsWithIngredients","hasIngredients","ean","sku","colour","disconnect","_bridgeConnection$cur","clearTimeout","afterRender","iframeElement","bridgeWebConnection","_bridgeWebConnection","Promise","resolve","reject","setTimeout","connect","connection","availableColours","iFrameConnection","send","logError","ERROR_TYPE","UserActionFailed","action","withScrollBar","forceDOMRewrite","useFocusTrapCatchAll","withDarkThemeSupport","frame","fireIngredientsButtonClickAnalytics","IngredientsContainer","openIngredients","setOpenIngredients","ingredientsButtonFocusTarget","setIngredientsButtonFocusTarget","hasVariantsWithIngredients","IngredientsButton","IngredientsModal","ClientOnly","isClientPostRender","setIsClientPostRender","OutOfStockHero","loadable","resolved","chunkName","isReady","props","__webpack_modules__","importAsync","requireAsync","requireSync","__webpack_require__","ssr","resolveComponent","App","SocialShare","SingleProductPage","mainProducts","ProductContextProvider","VariantContextProvider","fireSourcingLocationAnalytics","getWindow","ReactDOM","document","getElementById","LiveRegion","ProductColourContainer","PRODUCT_COLOUR_POSITIONS","TOP","RepeatedTextBanner","titleContainer","Spacing","SPACING","TWELVE","excludeFirst","ShowOnProductStockStatus","productStockStatus","OutOfStockLabel","ProductName","StockPriceRetry","Rating","SIXTEEN","TWENTY","MIDDLE","SizingContextProvider","ProductSize","isDiscontinued","VariantSelectionContainer","shouldShowSave","fireAddToBagAnalytics","fireAddToBagErrorAnalytics","fireAddToBagMarketing","fireNotifyMeClickAnalytics","isLooksProduct","DeliveryAndReturnsContainer","ErrorBoundary","isoDateString","Intl","DateTimeFormat","weekday","format","toUpperCase","getDate","toString","padStart","month","hour","minute","hour12","timeZoneName","Comfort","Comfort_1","Fit_22","Quality","Quality_1","Value","Value_1"],"sourceRoot":""}