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,QAAS,wBACTpuC,IAEyB,0B,8ECUdqH,eAAe8+B,EAAgBjnC,GAG3C,IAFD2L,SAAS,0BAAEwjC,GAA2B,UACtC1sC,GACDzC,EACC,MACE2B,YAAY,QAAEwQ,KACZ6B,EAAAA,EAAAA,KAEJ,GAAI7B,IAAYi9B,EAAAA,KAAaD,IAA8B1sC,EACzD,OAAO,EAGT,MAAM4sC,GACJvlC,EAAAA,EAAAA,KAAYwlC,eAAetY,QAAQuY,EAAAA,IAErC,MAAI,CAAC,OAAQ,SAAS5qB,SAAS0qB,GACW,SAAjCA,QA9BXlnC,iBACE,MAAMqnC,QCPO,WACb,MACE7tC,YAAY,oBAAE+T,GAAqB,aACnC+5B,EAAY,gBACZC,IACE17B,EAAAA,EAAAA,KAEJ,OAAOwC,EAAAA,EAAAA,GAAY,CACjB5Q,IAAK6pC,EACL3mC,QAAS4mC,EACT55B,OAAQ,CACNJ,uBAEFvB,YAAa,YACbC,QAAS,UACTC,OAAQ,SAEZ,CDVuBs7B,GACrB,IAAIC,GAAa,EASjB,YAPeluC,IAAX8tC,IACFI,IACIJ,GACFA,EAAOxkB,MAAKvrB,IAAA,IAAC,OAAEowC,GAAQpwC,EAAA,OAAKowC,IAAWC,EAAAA,EAAsB,KAC/DhmC,EAAAA,EAAAA,KAAYwlC,eAAe/X,QAAQgY,EAAAA,GAAqBK,IAGnDA,CACT,CAqBeG,EACf,C","sources":["webpack://asos-web-productpage/./src/client/components/buttons/backToTop/BackToTop.scss?b2a7","webpack://asos-web-productpage/./src/client/components/buttons/backToTop/BackToTop.js","webpack://asos-web-productpage/./src/client/components/prop65/Prop65FullWarning.scss?b08f","webpack://asos-web-productpage/./src/client/components/prop65/Prop65FullWarning.js","webpack://asos-web-productpage/./src/client/analytics/postPageLoad/prop65.js","webpack://asos-web-productpage/./src/client/utils/isProduction.js","webpack://asos-web-productpage/./src/client/components/advertBanner/AdvertBanner.js","webpack://asos-web-productpage/./src/client/hooks/useAdverts.js","webpack://asos-web-productpage/./src/client/components/advertBanner/AdvertBanner.scss?7fab","webpack://asos-web-productpage/./src/client/components/sizeGuideModal/SizeGuideModal.scss?7bb0","webpack://asos-web-productpage/./src/client/components/sizeGuideModal/SizeGuideModal.js","webpack://asos-web-productpage/./src/client/components/icon/Icon.js","webpack://asos-web-productpage/./src/client/components/faceEmoji/FaceEmoji.js","webpack://asos-web-productpage/./src/client/components/faceEmoji/index.js","webpack://asos-web-productpage/./src/client/components/faceEmoji/FaceEmoji.scss?780f","webpack://asos-web-productpage/./src/client/components/backInStock/BackInStockLoginModal.js","webpack://asos-web-productpage/./src/client/components/backInStock/BackInStockLoginModal.scss?c5db","webpack://asos-web-productpage/./src/client/components/faceEmoji/constants.js","webpack://asos-web-productpage/./src/client/components/looks/LooksCarousel.scss?9d67","webpack://asos-web-productpage/./src/client/utils/debounce.js","webpack://asos-web-productpage/./src/client/utils/setIntersectionObserver.js","webpack://asos-web-productpage/./src/client/components/looks/LooksCarousel.js","webpack://asos-web-productpage/./src/client/components/looks/LooksProduct.scss?c592","webpack://asos-web-productpage/./src/client/components/looks/LooksProduct.js","webpack://asos-web-productpage/./src/client/analytics/looks/looksModal.js","webpack://asos-web-productpage/./src/client/analytics/looks/looksProduct.js","webpack://asos-web-productpage/./src/client/components/mightLike/MightLike.scss?e988","webpack://asos-web-productpage/./src/client/components/rankingDisclaimerMessage/RankingDisclaimerMessage.scss?d6e6","webpack://asos-web-productpage/./src/client/components/rankingDisclaimerMessage/RankingDisclaimerMessage.js","webpack://asos-web-productpage/./src/client/components/mightLike/MightLike.js","webpack://asos-web-productpage/./src/client/api/mightLikeApi.js","webpack://asos-web-productpage/./src/client/components/mightLike/useRecommendations.js","webpack://asos-web-productpage/./src/client/components/grid/Grid.scss?1f99","webpack://asos-web-productpage/./src/client/components/grid/Grid.js","webpack://asos-web-productpage/./src/client/components/productTile/buildProductTileAriaLabel.js","webpack://asos-web-productpage/./src/client/components/productTile/ProductTile.scss?db91","webpack://asos-web-productpage/./src/client/components/buttons/circle/CircleButton.scss?0234","webpack://asos-web-productpage/./src/client/components/buttons/circle/CircleButton.js","webpack://asos-web-productpage/./src/client/components/productTile/ProductTile.js","webpack://asos-web-productpage/./src/client/components/productTile/TitleThenPrice.scss?5047","webpack://asos-web-productpage/./src/client/components/productTile/TitleThenPrice.js","webpack://asos-web-productpage/./src/client/components/productTile/ProductTileSkeleton.scss?ecc1","webpack://asos-web-productpage/./src/client/components/productTile/ProductTileSkeleton.js","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/LooksSimilarItemsFailure.scss?71ca","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/LooksSimilarItemsFailure.js","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/LooksSimilarItemsFailed.js","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/LooksSimilarItemsNoItems.js","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/LooksSimilarItems.js","webpack://asos-web-productpage/./src/client/components/looks/looksSimilarItems/index.js","webpack://asos-web-productpage/./src/client/components/looks/LooksModal.js","webpack://asos-web-productpage/./src/client/analytics/looks/seeSimilarModal.js","webpack://asos-web-productpage/./src/client/components/looks/seeSimilarModal/SeeSimilarModal.js","webpack://asos-web-productpage/./src/client/containers/appModals/AppModals.js","webpack://asos-web-productpage/./src/client/containers/appNotificationBar/AppNotificationBar.scss?ffc3","webpack://asos-web-productpage/./src/client/hooks/useElementWhenReady.js","webpack://asos-web-productpage/./src/client/utils/whenElementExists.js","webpack://asos-web-productpage/./src/client/hooks/useInteractOutside.js","webpack://asos-web-productpage/./src/client/containers/appNotificationBar/AppNotificationBar.js","webpack://asos-web-productpage/./src/client/components/buyTheLook/BuyTheLook.scss?2240","webpack://asos-web-productpage/./src/client/utils/getDefaultCarouselSettings.js","webpack://asos-web-productpage/./src/client/components/buyTheLook/BuyTheLook.js","webpack://asos-web-productpage/./src/client/components/grid/useGrid.js","webpack://asos-web-productpage/./src/client/components/productTile/PriceThenTitle.scss?52b8","webpack://asos-web-productpage/./src/client/components/productTile/PriceThenTitle.js","webpack://asos-web-productpage/./src/client/components/mightLike/getRecommendationsTitleAriaLabel.js","webpack://asos-web-productpage/./src/client/components/youMightAlsoLike/YouMightAlsoLike.js","webpack://asos-web-productpage/./src/client/components/ratingsAndReviews/RatingsAndReviews.scss?5ed8","webpack://asos-web-productpage/./src/client/components/review/Review.scss?438d","webpack://asos-web-productpage/./src/client/components/expandableText/ExpandableText.scss?8a4b","webpack://asos-web-productpage/./src/client/components/expandableText/ExpandableText.js","webpack://asos-web-productpage/./src/client/components/review/Review.js","webpack://asos-web-productpage/./src/client/components/recommended/Recommended.scss?34ae","webpack://asos-web-productpage/./src/client/utils/composeTranslation.js","webpack://asos-web-productpage/./src/client/components/recommended/Recommended.js","webpack://asos-web-productpage/./src/client/components/subRatings/SubRatings.scss?4300","webpack://asos-web-productpage/./src/client/components/subRatings/SubRatings.js","webpack://asos-web-productpage/./src/client/components/ratingsAndReviews/RatingsAndReviews.js","webpack://asos-web-productpage/./src/client/components/ratingsAndReviewsModal/RatingsAndReviewsModal.scss?8953","webpack://asos-web-productpage/./src/client/components/ratingsDistribution/RatingsDistribution.scss?3258","webpack://asos-web-productpage/./src/client/components/ratingsDistribution/RatingsDistribution.js","webpack://asos-web-productpage/./src/client/components/reviews/Reviews.scss?2c3f","webpack://asos-web-productpage/./src/client/components/reviews/Reviews.js","webpack://asos-web-productpage/./src/client/components/reviewPhotoGallery/ReviewPhotoGallery.scss?0520","webpack://asos-web-productpage/./src/client/components/reviewPhotoGallery/ReviewPhotoGallery.js","webpack://asos-web-productpage/./src/client/hooks/useTouchControl.js","webpack://asos-web-productpage/./src/client/components/buttons/pill/Pill.scss?4369","webpack://asos-web-productpage/./src/client/components/buttons/pill/Pill.js","webpack://asos-web-productpage/./src/client/components/toast/Toast.scss?c79e","webpack://asos-web-productpage/./src/client/components/toast/Toast.js","webpack://asos-web-productpage/./src/client/components/ratingsAndReviewsModal/RatingsAndReviewsModal.js","webpack://asos-web-productpage/./src/client/utils/scrollIntoView/scrollIntoView.js","webpack://asos-web-productpage/./src/mappers/review.js","webpack://asos-web-productpage/./src/client/RatingsAndReviewsApp.js","webpack://asos-web-productpage/./src/client/api/ratingsApi.js","webpack://asos-web-productpage/./src/client/components/recentlyViewed/recentlyViewedLocalStorage.js","webpack://asos-web-productpage/./src/client/components/recentlyViewed/RecentlyViewed.scss?39cf","webpack://asos-web-productpage/./src/client/components/buttons/square/SquareButton.scss","webpack://asos-web-productpage/./src/client/components/buttons/square/SquareButton.js","webpack://asos-web-productpage/./src/client/components/recentlyViewed/RecentlyViewed.js","webpack://asos-web-productpage/./src/client/utils/edgeFeature.js","webpack://asos-web-productpage/./src/client/components/peopleAlsoBought/PeopleAlsoBought.scss?d068","webpack://asos-web-productpage/./src/client/components/peopleAlsoBought/PeopleAlsoBought.js","webpack://asos-web-productpage/./src/client/components/looks/LooksImageButton.scss?73a4","webpack://asos-web-productpage/./src/client/components/looks/LooksImageButton.js","webpack://asos-web-productpage/./src/client/components/looks/utils/heroProductUtils.js","webpack://asos-web-productpage/./src/client/components/looks/LooksDesktopSection.js","webpack://asos-web-productpage/./src/client/components/looks/LooksSection.scss?40f8","webpack://asos-web-productpage/./src/client/analytics/looks/looksButtonClickScroll.js","webpack://asos-web-productpage/./src/client/components/looks/LooksSection.js","webpack://asos-web-productpage/./src/client/hooks/useFiftyPercentInView.js","webpack://asos-web-productpage/./src/client/analytics/looks/looksScrollToView.js","webpack://asos-web-productpage/./src/client/api/buyTheLookApi.js","webpack://asos-web-productpage/./src/client/containers/carouselsAndReviews/useBuyTheLookProducts.js","webpack://asos-web-productpage/./src/client/containers/carouselsAndReviews/useRecommendationProducts.js","webpack://asos-web-productpage/./src/client/containers/carouselsAndReviews/CarouselsAndReviews.js","webpack://asos-web-productpage/./src/client/containers/saveForLaterPortal/SaveForLaterPortal.js","webpack://asos-web-productpage/./src/client/components/saveCount/SaveCount.scss?38f2","webpack://asos-web-productpage/./src/client/utils/readableNumbers.js","webpack://asos-web-productpage/./src/client/components/saveCount/SaveCount.js","webpack://asos-web-productpage/./src/client/components/buttons/galleryButton/GalleryButton.scss?26ae","webpack://asos-web-productpage/./src/client/components/buttons/galleryButton/GalleryButton.js","webpack://asos-web-productpage/./src/client/components/looks/utils/handleLooksScroll.js","webpack://asos-web-productpage/./src/client/components/looks/LooksButton.js","webpack://asos-web-productpage/./src/client/components/looks/LooksButton.scss?4a2f","webpack://asos-web-productpage/./src/client/containers/repeatedTextBannerPortal/RepeatedTextBannerPortal.js","webpack://asos-web-productpage/./src/client/containers/mixAndMatchPaymentPromoContainer/MixAndMatchPaymentPromoContainer.scss?b8f3","webpack://asos-web-productpage/./src/client/containers/mixAndMatchPaymentPromoContainer/MixAndMatchPaymentPromoContainer.js","webpack://asos-web-productpage/./src/client/containers/mixAndMatchRatingsContainer/mixAndMatchRatingsContainer.js","webpack://asos-web-productpage/./src/client/containers/reactPortals/ReactPortals.js","webpack://asos-web-productpage/./src/client/components/conditional/IfSingleProduct.js","webpack://asos-web-productpage/./src/client/utils/schemaOrg/schemaOrgTemplates.js","webpack://asos-web-productpage/./src/client/utils/schemaOrg/schemaOrg.js","webpack://asos-web-productpage/./src/client/utils/schemaOrg/dataMapper.js","webpack://asos-web-productpage/./src/client/utils/displayBreadcrumbs.js","webpack://asos-web-productpage/./src/client/utils/trackCtaRefInOptimizely.js","webpack://asos-web-productpage/./src/client/App.js","webpack://asos-web-productpage/./src/client/utils/edgeError.js","webpack://asos-web-productpage/./src/client/components/outOfStockHero/outOfStockHeader/OutOfStockHeader.scss?4192","webpack://asos-web-productpage/./src/client/components/outOfStockHero/outOfStockHeader/OutOfStockHeader.js","webpack://asos-web-productpage/./src/client/components/outOfStockHero/OutOfStockHero.scss?d35c","webpack://asos-web-productpage/./src/client/components/outOfStockHero/OutOfStockHero.js","webpack://asos-web-productpage/./src/client/components/socialShare/SocialShare.scss?022d","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareLinks.scss?3681","webpack://asos-web-productpage/./src/client/components/socialShareBar/useShareLinks.js","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareLinks.js","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareBar.js","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareBar.scss?27fe","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareBox.js","webpack://asos-web-productpage/./src/client/components/socialShareBar/SocialShareBox.scss?cda0","webpack://asos-web-productpage/./src/client/components/socialShare/SocialShare.js","webpack://asos-web-productpage/./src/client/components/image/Image.scss?046d","webpack://asos-web-productpage/./src/client/components/image/Image.js","webpack://asos-web-productpage/./src/client/components/productCard/ProductCard.scss?1426","webpack://asos-web-productpage/./src/client/components/productColour/ProductColourForProductCard.js","webpack://asos-web-productpage/./src/client/components/productCard/ProductCard.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/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/utils/getSubRatingIcon.js","webpack://asos-web-productpage/./src/client/utils/shouldShowProp65.js","webpack://asos-web-productpage/./src/client/api/storeApi.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"button\":\"BtyqQ\",\"icon\":\"Vq4Bh\"};","import styles from \"./BackToTop.scss\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\n\nfunction focusToTopOfPage() {\n document.querySelector(\"#product-gallery\").focus();\n}\n\nexport default function BackToTop() {\n const { getTranslation } = useRuntimeConstants();\n\n return (\n \n \n {getTranslation(\"pdp_misc_back_to_top\")}\n \n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"I47Rd\",\"content\":\"L9J4k\",\"link\":\"GHGSj\",\"subContainer\":\"bjvPR\",\"container\":\"Kk4pV\",\"warningIcon\":\"lPOe3\",\"warningText\":\"xrsEn\"};","import { useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { PROP_65_URL } from \"../../constants\";\nimport classnamesBind from \"classnames/bind\";\nimport styles from \"./Prop65FullWarning.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useLiveRegion } from \"../../context/liveRegion/LiveRegionContext\";\nimport { setProp65Tracking } from \"../../analytics/postPageLoad/prop65\";\n\nconst classnames = classnamesBind.bind(styles);\n\nfunction getMessageString(translation, { linkStyle }) {\n return translation(\"prop65_pdp_message_text\", {\n warning: `${translation(\n \"prop65_message_title\"\n )}`,\n link: `${PROP_65_URL}`,\n });\n}\n\nexport default function Prop65FullWarning({\n linkStyle,\n contentStyle,\n containerStyle,\n subContainerStyle,\n titleStyle,\n}) {\n const { updateLiveRegion } = useLiveRegion();\n const { getTranslation } = useRuntimeConstants();\n\n useEffect(() => {\n updateLiveRegion(\n getTranslation(\"prop65_pdp_message_text\", {\n warning: getTranslation(\"prop65_message_title\"),\n link: PROP_65_URL,\n })\n );\n }, []);\n\n setProp65Tracking();\n\n return (\n \n \n

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

\n

\n \n \n

\n \n \n );\n}\n\nProp65FullWarning.propTypes = {\n titleStyle: PropTypes.string,\n contentStyle: PropTypes.string,\n linkStyle: PropTypes.string,\n containerStyle: PropTypes.string,\n subContainerStyle: PropTypes.string,\n};\n","import { setEvents } from \"../events\";\n\nexport function setProp65Tracking() {\n setEvents({\n events: [\"event276\"],\n trackingName: \"postPageLoad\",\n });\n}\n","const isProduction = (siteDomain) =>\n !!siteDomain?.startsWith(\"https://www.asos.com\");\n\nexport default isProduction;\n","import useAdverts from \"../../hooks/useAdverts\";\nimport { PLACEMENT, APP } from \"@asosteam/asos-web-adverts-sdk\";\nimport Advert from \"@asosteam/asos-web-adverts-display\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport { getFirstVariant, getPreselectedVariant } from \"../../utils/product\";\nimport styles from \"./AdvertBanner.scss\";\nimport { usePreviousBackInStock } from \"../../context/backInStock/BackInStockContext\";\n\nconst FALLBACK_PRICE = 1;\n\nconst AdvertBanner = () => {\n const { advertsSdkInstance } = useAdverts();\n const { isStockStateReady, isInStock } = useIsInStockContext();\n const { products } = useStockPrice();\n const { previousBackInStockVariantId } = usePreviousBackInStock();\n\n const getSelectedOrOnlyVariantId = () => {\n const selectedVariant = getPreselectedVariant(\n products,\n previousBackInStockVariantId\n );\n\n if (selectedVariant) {\n return selectedVariant.variantId;\n }\n\n const onlyVariant = getFirstVariant(products);\n\n if (onlyVariant) {\n return onlyVariant.variantId;\n }\n\n return undefined;\n };\n\n return isStockStateReady ? (\n
\n \n
\n ) : null;\n};\n\nexport default AdvertBanner;\n","import { useEffect, useState } from \"react\";\nimport { useRuntimeConstants } from \"../context/runtimeConstants/RuntimeConstantsContext\";\nimport { sdk } from \"@asosteam/asos-web-adverts-sdk\";\nimport getSdks from \"../utils/sdks\";\nimport { onReady, getFeature } from \"../utils/features\";\nimport isProduction from \"../utils/isProduction\";\n\nconst useAdverts = () => {\n const [advertsSdkInstance, setSdkInstance] = useState(undefined);\n const { siteDomain, webContext } = useRuntimeConstants();\n\n useEffect(() => {\n setSdkInstance(\n sdk({\n production: isProduction(siteDomain),\n webContextDelegate: webContext,\n identityDelegatePromise: getSdks()?.identity,\n featuresDelegatePromise: onReady().then(() => ({ getFeature })),\n })\n );\n }, [siteDomain, webContext]);\n\n return { advertsSdkInstance };\n};\n\nexport default useAdverts;\n","// extracted by mini-css-extract-plugin\nexport default {\"advertContainer\":\"C3f8u\"};","// extracted by mini-css-extract-plugin\nexport default {\"iframe\":\"cJ3l5\"};","import { useState, useRef } from \"react\";\nimport { MODAL_TYPE } from \"../../constants\";\nimport Modal from \"../modal/Modal\";\nimport styles from \"./SizeGuideModal.scss\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport useEventListener from \"../../hooks/useEventListener\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function SizeGuideModal() {\n const modalId = `${MODAL_TYPE.SIDE}${Math.floor(Math.random() * 10000)}`;\n\n const [open, setOpen] = useState(false);\n const [contentLoaded, setContentLoaded] = useState(false);\n const [sizeGuideUrl, setSizeGuideUrl] = useState(null);\n const [focusOnCloseElement, setFocusOnCloseElement] = useState(null);\n\n const { getTranslation } = useRuntimeConstants();\n const iframeRef = useRef(null);\n\n const handleIframeMessage = ({ data }) => {\n if (data === \"sizeGuides-closeButton\") {\n closeModal();\n }\n if (data === \"sizeGuides-ready\") {\n setContentLoaded(true);\n }\n };\n const closeModal = () => setOpen(false);\n\n const focusCloseButton = () => {\n iframeRef?.current.contentWindow.postMessage(\n \"size-guides-focus-close\",\n \"*\"\n );\n };\n\n useEventBus(\n \"sizeGuideOpen\",\n ({ url, focusOnClose }) => {\n setOpen(true);\n setSizeGuideUrl(url);\n setFocusOnCloseElement(focusOnClose);\n\n if (iframeRef?.current) {\n focusCloseButton();\n }\n },\n []\n );\n useEventListener(\"message\", handleIframeMessage, []);\n\n return (\n \n {\n focusCloseButton();\n }}\n />\n \n );\n}\n","import PropTypes from \"prop-types\";\nimport getConfig from \"../../config\";\n\nconst { symbolsSpriteUrl } = getConfig();\n\nconst Icon = ({ id, className }) => {\n return (\n \n \n \n );\n};\n\nIcon.propTypes = {\n id: PropTypes.string.isRequired,\n className: PropTypes.string,\n};\n\nexport default Icon;\n","import Icon from \"../icon/Icon\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./FaceEmoji.scss\";\nimport classnames from \"classnames\";\nimport * as types from \"./constants\";\n\nconst FaceEmoji = ({ type, className }) => (\n
\n \n \n
\n);\n\nFaceEmoji.propTypes = {\n type: PropTypes.oneOf(Object.values(types)),\n className: PropTypes.string,\n};\n\nexport default FaceEmoji;\n","import FaceEmoji from \"./FaceEmoji\";\n\nexport default FaceEmoji;\nexport * from \"./constants\";\n","// extracted by mini-css-extract-plugin\nexport default {\"faceEmoji\":\"Dg5e8\",\"face\":\"zt_Gu\",\"features\":\"LUolg\"};","import { useRef, useState } from \"react\";\nimport {\n MODAL_TYPE,\n BACK_IN_STOCK_SELECTED_VARIANT,\n BACK_IN_STOCK_SELECTED_PRODUCT,\n BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY,\n BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY,\n} from \"../../constants\";\nimport Modal from \"../modal/Modal\";\nimport Button from \"../buttons/button/Button\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { loginRedirect } from \"../../utils/identity\";\nimport { setSessionStorageItem } from \"../../utils/storage\";\n\nimport styles from \"./BackInStockLoginModal.scss\";\nimport { BUTTON_TYPES } from \"../buttons/button/ButtonTypes\";\nimport FaceEmoji, { DOH } from \"../faceEmoji\";\n\nconst BackInStockLoginModal = () => {\n const focusOnCloseElement = useRef(null);\n const [modalParameters, setModalParameters] = useState(null);\n const { getTranslation } = useRuntimeConstants();\n\n const closeModal = () => {\n setModalParameters(null);\n };\n\n useEventBus(\n \"loginModalOpen\",\n (eventData) => {\n const { focusOnCloseElement: eventFocusElement, ...restOfEventData } =\n eventData;\n focusOnCloseElement.current = eventFocusElement;\n setModalParameters(restOfEventData);\n },\n []\n );\n\n if (!modalParameters) {\n return null;\n }\n\n const copyConfig = {\n [BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY]: {\n signInButtonCopy: getTranslation(\"back_in_stock_sign_in_modal_button\"),\n signInTitleCopy: getTranslation(\"back_in_stock_sign_in_modal_heading\"),\n signInTextCopy: `${getTranslation(\n \"back_in_stock_sign_in_modal_title\"\n )}. ${getTranslation(\"back_in_stock_sign_in_modal_text\")}`,\n },\n [BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY]: {\n signInButtonCopy: getTranslation(\n \"pdp_login_box_session_timeout_sign_in_button\"\n ),\n signInTitleCopy: getTranslation(\n \"pdp_login_box_turn_off_alert_sign_in_title\"\n ),\n signInTextCopy: getTranslation(\"pdp_login_session_expiry_message\"),\n },\n };\n const { copyKey, selectedVariantId, selectedProductId } = modalParameters;\n\n const setBackInStockSessionStorage = () => {\n if (selectedProductId) {\n setSessionStorageItem(BACK_IN_STOCK_SELECTED_PRODUCT, selectedProductId);\n }\n if (selectedVariantId) {\n setSessionStorageItem(BACK_IN_STOCK_SELECTED_VARIANT, selectedVariantId);\n }\n };\n\n const backInStockSignIn = async () => {\n setBackInStockSessionStorage();\n if (selectedVariantId) {\n loginRedirect();\n }\n };\n\n const { signInButtonCopy, signInTitleCopy, signInTextCopy } =\n copyConfig[copyKey];\n\n return (\n \n
\n \n

{signInTitleCopy}

\n

{signInTextCopy}

\n \n {signInButtonCopy}\n \n
\n \n );\n};\n\nexport default BackInStockLoginModal;\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"zJSnT\",\"text\":\"q7Egw\",\"container\":\"bsQwq\",\"faceEmoji\":\"XDuVw\",\"button\":\"jORq8\"};","/* istanbul ignore file */\n\nexport const UNAMUSED = \"unamused\";\nexport const DOH = \"doh\";\nexport const DISAPPOINTED = \"disappointed\";\n","// extracted by mini-css-extract-plugin\nexport default {\"image\":\"X30le\",\"loading\":\"ndQB1\",\"carousel\":\"sJE_e\",\"carouselThumbnailContainer\":\"qvmfR\",\"tile\":\"NXSCd\",\"selected\":\"p7QNC\",\"scrollButton\":\"Pg4B7\",\"navigationButtons\":\"__pnq\",\"scrollButtonRight\":\"cfTqs\",\"scrollButtonLeft\":\"siQ4i\"};","export const debounce = (func, wait) => {\n let timeout;\n\n return (...args) => {\n const callNow = !timeout;\n\n clearTimeout(timeout);\n\n timeout = setTimeout(() => {\n timeout = null;\n if (!callNow) {\n func(...args);\n }\n }, wait);\n\n if (callNow) {\n func(...args);\n }\n };\n};\n","import { debounce } from \"./debounce\";\nimport getWindow from \"./window\";\n\nexport function setIntersectionObserver({\n element,\n options,\n handleIntersectionData,\n observeIntersectionOnce,\n}) {\n const Window = getWindow();\n let observer;\n\n if (element) {\n observer = new Window.IntersectionObserver(\n debounce((entries) => {\n entries.forEach((entry) => {\n handleIntersectionData(entry, observer, element);\n if (entry.isIntersecting && observeIntersectionOnce) {\n unsetIntersectionObserver(element, observer);\n }\n });\n }, 200),\n options\n );\n observer.observe(element);\n\n return observer;\n }\n}\n\nexport function unsetIntersectionObserver(element, observer) {\n if (!!element && !!observer) {\n observer.unobserve(element);\n }\n}\n","import { useState, useLayoutEffect, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport Image from \"../image/Image\";\nimport { getPrimaryImage } from \"../../utils/product\";\nimport { useSelectedLooksProduct } from \"../../context/looks/SelectedLooksProductContext\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { SMALL_VIEWPORT } from \"../../constants\";\nimport styles from \"./LooksCarousel.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport classnamesBind from \"classnames/bind\";\nimport {\n setIntersectionObserver,\n unsetIntersectionObserver,\n} from \"../../utils/setIntersectionObserver\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function LooksCarousel({ includeHeroProduct }) {\n const { looksProducts } = useLooksProducts();\n const { selectedLooksProduct, setSelectedLooksProduct } =\n useSelectedLooksProduct();\n const { viewportCategory } = useViewport();\n const { getTranslation } = useRuntimeConstants();\n const [scrollPosition, setScrollPosition] = useState(0);\n const [shouldShowRightScrollButton, setShouldShowRightScrollButton] =\n useState(true);\n const imageSize = viewportCategory === SMALL_VIEWPORT ? 56 : 75;\n const tileSize = imageSize + 10;\n const carousel = useRef(null);\n const element = useRef(null);\n\n let carouselProducts = looksProducts;\n if (!includeHeroProduct) {\n carouselProducts = looksProducts.filter((product) => !product.isHero);\n }\n\n const handleScrollButton = ({ direction }) => {\n setScrollPosition((scrollPosition) =>\n direction === \"right\" ? scrollPosition + 1 : scrollPosition - 1\n );\n };\n\n const handleSelectedLooksProduct = ({ selectedProductId }) => {\n setSelectedLooksProduct(selectedProductId);\n };\n\n useLayoutEffect(() => {\n const handleLastItemScroll = (observation) => {\n setShouldShowRightScrollButton(!observation?.isIntersecting);\n };\n\n let observer = null;\n if (element.current && carousel.current) {\n observer = setIntersectionObserver({\n element: element.current,\n options: {\n root: carousel.current,\n threshold: 0,\n rootMargin: `0px -${imageSize}px 0px 0px`,\n },\n handleIntersectionData: handleLastItemScroll,\n });\n }\n return () => {\n unsetIntersectionObserver(element.current, observer);\n };\n }, [carousel, element, imageSize]);\n\n return (\n \n {scrollPosition > 0 && (\n handleScrollButton({ direction: \"left\" })}\n aria-label={getTranslation(\"generic_scroll_previous\")}\n >\n
\n \n )}\n \n {carouselProducts.map(({ id, images, name }, index) => {\n const primaryImage = getPrimaryImage(images);\n const isSelected = id === selectedLooksProduct?.id;\n\n return (\n \n handleSelectedLooksProduct({ selectedProductId: id })\n }\n aria-selected={isSelected}\n data-testid=\"looksCarouselTile\"\n role=\"tab\"\n aria-disabled={isSelected}\n ref={carouselProducts.length === index + 1 ? element : null}\n >\n \n \n );\n })}\n \n {shouldShowRightScrollButton && (\n handleScrollButton({ direction: \"right\" })}\n hidden={false}\n aria-label={getTranslation(\"generic_scroll_next\")}\n >\n \n \n )}\n \n );\n}\n\nLooksCarousel.propTypes = {\n includeHeroProduct: PropTypes.bool.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"xPQgt\"};","import React from \"react\";\nimport { getPrimaryImage, getPrimaryVariant } from \"../../utils/product\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport saveForLater from \"../../utils/saveForLater\";\nimport { useProduct } from \"../../context/product/ProductContext\";\nimport { useVariant } from \"../../context/variant/VariantContext\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport {\n PAGE_AREAS,\n LOOKS_RECOMMENDATIONS_HEADER,\n SMALL_VIEWPORT,\n} from \"../../constants\";\nimport { fireLooksAddToBagAnalytics } from \"../../analytics/addToBag\";\nimport fireNotifyMeClickAnalytics from \"../../analytics/backInStock\";\nimport ProductCard from \"../productCard/ProductCard\";\nimport { PrimaryPrice } from \"../priceComponents\";\nimport { COMPLEMENTARY_PRIMARY_PRICE } from \"../priceComponents/priceTypes\";\nimport styles from \"./LooksProduct.scss\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\n\nconst productLink = ({ looksProducts, product, isMobile }) => {\n const indexInCarousel = looksProducts.findIndex(\n ({ id }) => id === product.id\n );\n const btlType = isMobile ? \"pop+up\" : \"content\";\n\n return `${product.pdpUrl}#ctaRef-btl+${btlType}+-+btl+carousel_${\n indexInCarousel + 1\n }&featureref1-btl+${btlType}+btl+carousel`;\n};\n\nexport default function LooksProduct(props) {\n const { product } = useProduct();\n const { selectedVariant } = useVariant();\n const { looksProducts } = useLooksProducts();\n const { viewportCategory } = useViewport();\n const { isMobile } = useRuntimeConstants();\n\n if (!product) {\n return null;\n }\n\n const defaultColourWayId = getPrimaryVariant(product.variants).colourWayId;\n const variantIdentifier = selectedVariant\n ? `variantId:${selectedVariant.variantId}`\n : `colourWayId:${defaultColourWayId}`;\n\n const handleSaveClick = (event) => {\n event.stopPropagation();\n event.preventDefault();\n\n const identifier = selectedVariant\n ? { variantId: selectedVariant.variantId }\n : { colourWayId: defaultColourWayId };\n\n saveForLater({\n product,\n items: [{ productId: product.id, ...identifier }],\n pageArea: PAGE_AREAS.LOOKS,\n looksProducts,\n });\n };\n\n const enhanceNotifyMeClickAnalytics = (selectedVariantId) => {\n fireNotifyMeClickAnalytics(\n selectedVariantId,\n PAGE_AREAS.LOOKS,\n looksProducts\n );\n };\n\n return (\n
\n (\n \n ),\n }}\n />\n
\n );\n}\n","import getWindow from \"../../utils/window\";\nimport { getOOSProducts } from \"../../utils/product\";\n\nimport { setEvents, setLinkTrackEvents } from \"../events\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport { getCommonLooksTrackingValues } from \"./common\";\nimport { waitForPageLoadAnalytics } from \"../pageLoad\";\n\nexport const LOOKS_POSITION = {\n TOP: \"top\",\n BOTTOM: \"bottom\",\n};\n\nexport const fireLooksModalOpen = async ({ products, position }) => {\n await waitForPageLoadAnalytics;\n\n const s = getWindow().s;\n const commons = getCommons();\n\n setEvents({\n events: [\n `event342=${products.length}`,\n `event343=${getOOSProducts(products).length}`,\n ],\n trackingName: \"looksModalOpen\",\n });\n\n const commonLooksTracking = getCommonLooksTrackingValues({ products });\n\n s.tl(true, \"o\", \"btl - pop up page\", {\n ...commonLooksTracking,\n prop6: `btl cta ${position}`,\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n ...Object.keys(commonLooksTracking),\n \"prop6\",\n ]),\n linkTrackEvents: setLinkTrackEvents({ trackingName: \"looksModalOpen\" }),\n });\n};\n","import getWindow from \"../../utils/window\";\nimport { clearEvents, setEvents, setLinkTrackEvents } from \"../events\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport { getCommonLooksTrackingValues } from \"./common\";\nimport { waitForPageLoadAnalytics } from \"../pageLoad\";\n\nconst trackedProducts = new Set();\n\nexport const resetLooksTrackedProducts = () => trackedProducts.clear();\n\nexport const fireLooksProductViewTracking = async ({\n looksProducts,\n selectedLooksProduct,\n isMobile,\n}) => {\n await waitForPageLoadAnalytics;\n\n if (trackedProducts.has(selectedLooksProduct.id)) {\n return;\n }\n clearEvents({ trackingName: \"looksProductView\" });\n\n const s = getWindow().s;\n const commons = getCommons();\n\n setEvents({\n events: [\"event172\"],\n trackingName: \"looksProductView\",\n });\n\n const index = looksProducts.indexOf(selectedLooksProduct);\n const btlType = isMobile ? \"pop up\" : \"content\";\n s.eVar106 = `btl ${btlType}|product|view_${index}`;\n s.products = `;${selectedLooksProduct.id}`;\n\n const commonLooksTracking = getCommonLooksTrackingValues({\n products: looksProducts,\n });\n\n s.tl(true, \"o\", `btl ${btlType} product view`, {\n ...commonLooksTracking,\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n ...Object.keys(commonLooksTracking),\n \"eVar106\",\n ]),\n linkTrackEvents: setLinkTrackEvents({ trackingName: \"looksProductView\" }),\n });\n trackedProducts.add(selectedLooksProduct.id);\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"nnYzW\",\"itemCount\":\"v7mPC\",\"fullwidth_container\":\"QqXWv\",\"container\":\"wvnna\",\"header\":\"S4fIZ\",\"section-grid-looks-desktop\":\"Sa6mQ\",\"container-grid\":\"gjw0q\",\"container-grid-looks-mobile\":\"X7jSM\",\"container-grid-looks-desktop\":\"l83cO\",\"hasItemCount\":\"VGdw_\",\"header-grid-looks-mobile\":\"SaY7r\",\"header-grid-looks-desktop\":\"ns6n6\"};","// extracted by mini-css-extract-plugin\nexport default {\"link\":\"YN1pr\"};","import styles from \"./RankingDisclaimerMessage.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function RankingDisclaimerMessage() {\n const {\n getTranslation,\n rankingDisclaimerLinks,\n webContext: { storeId },\n } = useRuntimeConstants();\n\n if (!rankingDisclaimerLinks || !rankingDisclaimerLinks[storeId]) return null;\n\n return (\n \n {getTranslation(\"how_we_rank_content\")}\n \n \n );\n}\n","import PropTypes from \"prop-types\";\nimport styles from \"./MightLike.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport classnamesBind from \"classnames/bind\";\nimport RankingDisclaimerMessage from \"../rankingDisclaimerMessage/RankingDisclaimerMessage\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport const RECOMMENDATION_TYPES = {\n CAROUSEL: \"carousel\",\n GRID: \"grid\",\n GRID_LOOKS_MOBILE: \"grid-looks-mobile\",\n GRID_LOOKS_DESKTOP: \"grid-looks-desktop\",\n};\n\nexport default function MightLike({\n title,\n titleAriaLabel,\n id = \"mightLike\",\n itemCount,\n children,\n trackingRef,\n type = RECOMMENDATION_TYPES.CAROUSEL,\n}) {\n const { getTranslation } = useRuntimeConstants();\n const shouldRenderItemCount = itemCount > 0;\n\n return (\n \n \n \n {type != RECOMMENDATION_TYPES.GRID_LOOKS_DESKTOP && (\n

\n {title}\n

\n )}\n {shouldRenderItemCount && (\n

\n {getTranslation(\"buy_the_look_items_count\", {\n smart_count: itemCount,\n count: itemCount,\n })}\n

\n )}\n \n \n {children}\n \n \n );\n}\n\nMightLike.propTypes = {\n title: PropTypes.string,\n titleAriaLabel: PropTypes.string,\n id: PropTypes.string,\n itemCount: PropTypes.number,\n children: PropTypes.arrayOf(PropTypes.node),\n trackingRef: PropTypes.string,\n type: PropTypes.oneOf(Object.keys(RECOMMENDATION_TYPES)),\n};\n","import makeRequest from \"./makeRequest\";\nimport getRuntimeConstants from \"../runtimeConstants\";\nimport {\n LOOKS_RECOMMENDATIONS_HEADER,\n MIGHT_LIKE_API_LIMIT,\n} from \"../constants\";\nimport { formatUrl, getProductUrl } from \"../utils/url\";\nimport { getFeature, onReady } from \"../utils/features\";\nimport { getAuthorisationHeader } from \"../utils/identity\";\n\nconst getMightLikeUrl = ({\n brandName,\n name,\n id,\n index,\n type,\n scope,\n isMobile,\n}) => {\n const productUrl = getProductUrl(brandName, name, id);\n let ctaref, featureref1;\n\n if (type === \"complementary\") {\n ctaref = \"complementary+items\";\n featureref1 = \"complementary+items\";\n } else if (scope === LOOKS_RECOMMENDATIONS_HEADER) {\n [ctaref, featureref1] = isMobile\n ? [\"btl+pop+up+-+ymal+carousel\", \"btl+pop+up+ymal+carousel\"]\n : [\n \"buy+the+look+-+see+similar+product+grid\",\n \"buy+the+look+-+see+similar+product\",\n ];\n } else {\n ctaref = \"we+recommend+carousel\";\n featureref1 = \"we+recommend+pers\";\n }\n\n return `${productUrl}#ctaref-${ctaref}_${index}&featureref1-${featureref1}`;\n};\n\nconst getHeaderScope = ({ type, scope, isInStock }) => {\n if (scope) {\n return scope;\n }\n\n if (type === \"complementary\") {\n return isInStock ? `pdp_comp` : `pdp_comp_oos`;\n }\n\n return isInStock ? `pdp_ymal` : `pdp_ymal_oos`;\n};\n\nconst getRequestProperties = ({\n authorisationHeader,\n isInStock,\n type,\n scope,\n}) => {\n const { mightLikeApiPath, mightLikeApiTimeout, isMobile } =\n getRuntimeConstants();\n return {\n url: mightLikeApiPath,\n timeout: mightLikeApiTimeout,\n headers: {\n authorization: authorisationHeader,\n \"asos-c-recs-scope\": getHeaderScope({ type, scope, isInStock }),\n },\n requestType: \"MIGHT_LIKE_API\",\n apiName: \"Presentation\",\n caller: type === \"complementary\" ? \"People Also Bought\" : \"YMAL\",\n mapData: (data) => mapRecsData({ data, type, scope, isMobile }),\n };\n};\n\nconst mapRecsData = ({ data, type, scope, isMobile }) => {\n return data.recommendations.map(\n ({ id, imageUrl, name, brandName, colourWayId, price }, index) => {\n return {\n productId: id,\n url: getMightLikeUrl({\n brandName,\n name,\n id,\n index,\n type,\n scope,\n isMobile,\n }),\n imageUrl: formatUrl(imageUrl),\n productTitle: name,\n brandName,\n colourWayId,\n priceData: price,\n };\n }\n );\n};\n\nconst getRecsMVT = async () => {\n await onReady();\n\n const recsAlgorithm = getFeature(\"pdp-ymal-alg\");\n const recsVersion = recsAlgorithm.getVariables()?.tstRecVersion;\n\n if (recsAlgorithm.isEnabled() && recsVersion !== \"\") {\n return recsVersion;\n }\n};\n\nexport default async function getRecommendations({\n isInStock,\n type,\n productId,\n handleErrorReturnValue = () => [],\n scope,\n}) {\n const {\n webContext: {\n browseCountry,\n browseCurrency,\n browseLanguage,\n keyStoreDataversion,\n storeId,\n },\n product: { id },\n features: { recommendationsEnabled },\n } = getRuntimeConstants();\n\n if (!recommendationsEnabled) {\n return [];\n }\n\n const authorisationHeader = await getAuthorisationHeader();\n\n const params = {\n productids: productId ? productId : id,\n type: type ? type : \"ymal\",\n expand: \"products\",\n limit: MIGHT_LIKE_API_LIMIT,\n store: storeId,\n country: browseCountry,\n currency: browseCurrency,\n lang: browseLanguage,\n keyStoreDataversion,\n };\n\n const recsMVT = await getRecsMVT();\n\n if (recsMVT) {\n params[\"tst-rec-version\"] = recsMVT;\n }\n\n return makeRequest({\n params,\n ...getRequestProperties({ authorisationHeader, isInStock, type, scope }),\n handleErrorReturnValue,\n });\n}\n","import { useEffect, useState } from \"react\";\nimport getRecommendations from \"../../api/mightLikeApi\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function useRecommendations({ productId, scope }) {\n const { isStockStateReady, isInStock } = useIsInStockContext();\n const { isMixAndMatch } = useRuntimeConstants();\n const [mightLikeProducts, setMightLikeProducts] = useState(null);\n const [hasFetchedRecs, setHasFetchedRecs] = useState(false);\n const [apiFailed, setApiFailed] = useState(false);\n const [fetchedProductId, setFetchedProductId] = useState(null);\n\n useEffect(() => {\n if (isMixAndMatch || !isStockStateReady || !productId) {\n return;\n }\n\n getRecommendations({\n isInStock,\n scope,\n productId,\n handleErrorReturnValue: () => {\n setApiFailed(true);\n },\n }).then((products) => {\n setMightLikeProducts(products);\n setHasFetchedRecs(true);\n setFetchedProductId(productId);\n });\n }, [productId, isMixAndMatch, isStockStateReady, isInStock, scope]);\n\n useEffect(() => {\n if (productId !== fetchedProductId) {\n setApiFailed(false);\n setHasFetchedRecs(false);\n setMightLikeProducts(null);\n }\n }, [productId, fetchedProductId]);\n\n return { mightLikeProducts, hasFetchedRecs, apiFailed };\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"grid\":\"xibkZ\",\"list\":\"G4N4r\",\"listItem\":\"SuUpL\",\"grid-looks-desktop\":\"Kzewv\"};","import PropTypes from \"prop-types\";\nimport styles from \"./Grid.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport { RECOMMENDATION_TYPES } from \"../mightLike/MightLike\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function Grid({ gridTestId, children, type }) {\n return (\n \n
    \n {children.map((item, index) => (\n
  • \n {item}\n
  • \n ))}\n
\n \n );\n}\n\nGrid.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n gridTestId: PropTypes.string.isRequired,\n type: PropTypes.oneOf(Object.keys(RECOMMENDATION_TYPES)),\n};\n","import { getPrice } from \"../../utils/discountPriceData\";\n\nexport function buildProductTileAriaLabel({\n getTranslation,\n title,\n priceData,\n showDiscountPercentage,\n}) {\n const { priceAriaLabel, percentageDiscountLabel } = getPrice({\n translations: getTranslation,\n priceData,\n });\n\n let ariaLabel = `${title}.`;\n if (priceAriaLabel) {\n ariaLabel += ` ${priceAriaLabel}`;\n\n if (showDiscountPercentage) {\n ariaLabel += ` ${percentageDiscountLabel}`;\n }\n }\n return ariaLabel;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"skeleton\":\"RYzPg\",\"loading\":\"HEwPA\",\"container\":\"YV2UQ\",\"link\":\"Usg4d\",\"image\":\"koNJl\",\"closeButton\":\"G9vDy\",\"closeIcon\":\"ZRsZ4\"};","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"r4030\"};","import PropTypes from \"prop-types\";\nimport styles from \"./CircleButton.scss\";\n\nexport default function CircleButton({\n iconClass,\n handleClick,\n ariaLabel,\n additionalClasses,\n testId,\n}) {\n const classes = additionalClasses\n ? `${styles.button} ${additionalClasses}`\n : styles.button;\n\n return (\n \n \n \n );\n}\n\nCircleButton.propTypes = {\n iconClass: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired,\n handleClick: PropTypes.func.isRequired,\n additionalClasses: PropTypes.string,\n testId: PropTypes.string,\n};\n","import { useRef, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnamesBind from \"classnames/bind\";\n\nimport styles from \"./ProductTile.scss\";\nimport SaveForLaterButton from \"../buttons/saveForLaterButton/SaveForLaterButton\";\nimport CircleButton from \"../buttons/circle/CircleButton\";\nimport { CAROUSEL_IMAGE_SIZE, PAGE_AREAS } from \"../../constants\";\nimport Image from \"../image/Image\";\nimport saveForLater from \"../../utils/saveForLater\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { getFeature } from \"../../utils/features\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst { MIGHT_LIKE, BUY_THE_LOOK, RECENTLY_VIEWED, OUT_OF_STOCK, MAIN } =\n PAGE_AREAS;\n\nexport default function ProductTile({\n productId,\n url,\n imageUrl,\n title,\n colourWayId,\n isMixAndMatch,\n removeFunction,\n screenHoverable,\n pageArea,\n shouldShowTitle,\n saveForLaterClass,\n children,\n productTileAriaLabel,\n}) {\n const variantIdentifier = `colourWayId:${colourWayId}`;\n\n const blurTimer = useRef(null);\n const [shouldShowRemoveButton, setShouldShowRemoveButton] = useState(false);\n const { getTranslation } = useRuntimeConstants();\n const { areFeaturesReady } = useFeaturesReady();\n const { looksProducts } = useLooksProducts();\n\n const showRemoveButton = () => {\n clearTimeout(blurTimer.current);\n setShouldShowRemoveButton(true);\n };\n\n const hideRemoveButton = () => {\n blurTimer.current = setTimeout(() => setShouldShowRemoveButton(false));\n };\n\n const handleRemoveClick = (event) => {\n event.stopPropagation();\n event.preventDefault();\n removeFunction(productId, title);\n };\n\n const handleSaveClick = (event) => {\n event.stopPropagation();\n event.preventDefault();\n\n saveForLater({\n product: { id: productId },\n items: [{ productId, colourWayId }],\n pageArea,\n looksProducts,\n });\n };\n\n const renderImage = () => (\n
\n \n
\n );\n\n const renderRemoveItemRecentlyViewed = () => (\n <>\n {removeFunction && (shouldShowRemoveButton || !screenHoverable) && (\n \n )}\n \n );\n\n const createLinkButtonElement = () => (\n <>\n \n {renderImage()}\n {children}\n \n {renderRemoveItemRecentlyViewed()}\n {renderSaveForLater()}\n \n );\n\n const showSFL = () =>\n pageArea !== MIGHT_LIKE ||\n (areFeaturesReady && getFeature(\"pdp-sfl-ymal\").isEnabled());\n\n const renderSaveForLater = () => {\n if (!isMixAndMatch && showSFL()) {\n return (\n \n );\n }\n };\n\n return (\n \n {createLinkButtonElement()}\n \n );\n}\n\nProductTile.propTypes = {\n productId: PropTypes.number.isRequired,\n url: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n colourWayId: PropTypes.number.isRequired,\n isMixAndMatch: PropTypes.bool,\n removeFunction: PropTypes.func,\n screenHoverable: PropTypes.bool,\n pageArea: PropTypes.oneOf([\n MIGHT_LIKE,\n BUY_THE_LOOK,\n RECENTLY_VIEWED,\n OUT_OF_STOCK,\n MAIN,\n ]),\n shouldShowTitle: PropTypes.bool,\n saveForLaterClass: PropTypes.string,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n productTileAriaLabel: PropTypes.string.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"o2xVk\"};","import PropTypes from \"prop-types\";\nimport { SecondaryPrice } from \"../priceComponents\";\nimport styles from \"./TitleThenPrice.scss\";\n\nexport default function TitleThenPrice({ priceData, title }) {\n return (\n <>\n

\n {title}\n

\n \n \n );\n}\n\nTitleThenPrice.propTypes = {\n priceData: PropTypes.shape({\n current: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }).isRequired,\n previous: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }),\n rrp: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }),\n isMarkedDown: PropTypes.bool,\n isOutletPrice: PropTypes.bool,\n }).isRequired,\n title: PropTypes.string.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"skeletonImage\":\"ftDfH\",\"skeletonPrice\":\"Ky9di\",\"skeletonBrand\":\"h5CSc\",\"loading\":\"MsCA3\",\"skeletonTile\":\"Hdr6o\"};","import styles from \"./ProductTileSkeleton.scss\";\n\nexport default function ProductTileSkeleton() {\n return (\n
\n
\n
\n
\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"UtJss\",\"text\":\"k3rwd\",\"similarItemsFailure\":\"gQqCB\",\"faceEmoji\":\"b9kD3\"};","import PropTypes from \"prop-types\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport FaceEmoji, { UNAMUSED, DISAPPOINTED } from \"../../faceEmoji\";\n\nimport styles from \"./LooksSimilarItemsFailure.scss\";\n\nconst LooksSimilarItemsFailure = ({\n emojiType,\n titleTranslationKey,\n subTitleTranslationKey,\n}) => {\n const { getTranslation } = useRuntimeConstants();\n\n return (\n
\n \n

{getTranslation(titleTranslationKey)}

\n \n {getTranslation(subTitleTranslationKey)}\n \n
\n );\n};\n\nLooksSimilarItemsFailure.propTypes = {\n emojiType: PropTypes.oneOf([UNAMUSED, DISAPPOINTED]),\n titleTranslationKey: PropTypes.string.isRequired,\n subTitleTranslationKey: PropTypes.string.isRequired,\n};\n\nexport default LooksSimilarItemsFailure;\n","import LooksSimilarItemsFailure from \"./LooksSimilarItemsFailure\";\nimport { DISAPPOINTED } from \"../../faceEmoji\";\n\nconst LooksSimilarItemsFailed = () => (\n \n);\n\nexport default LooksSimilarItemsFailed;\n","import LooksSimilarItemsFailure from \"./LooksSimilarItemsFailure\";\nimport { UNAMUSED } from \"../../faceEmoji\";\n\nconst LooksSimilarItemsNoItems = () => (\n \n);\n\nexport default LooksSimilarItemsNoItems;\n","import MightLike, { RECOMMENDATION_TYPES } from \"../../mightLike/MightLike\";\nimport useRecommendations from \"../../mightLike/useRecommendations\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useSelectedLooksProduct } from \"../../../context/looks/SelectedLooksProductContext\";\nimport { LOOKS_RECOMMENDATIONS_HEADER, PAGE_AREAS } from \"../../../constants\";\nimport Grid from \"../../grid/Grid\";\nimport { buildProductTileAriaLabel } from \"../../productTile/buildProductTileAriaLabel\";\nimport ProductTile from \"../../productTile/ProductTile\";\nimport useDiscountPercentage from \"../../../hooks/useDiscountPercentage\";\nimport TitleThenPrice from \"../../productTile/TitleThenPrice\";\nimport ProductTileSkeleton from \"../../productTile/ProductTileSkeleton\";\nimport Failed from \"./LooksSimilarItemsFailed\";\nimport NoItems from \"./LooksSimilarItemsNoItems\";\n\nfunction getProductTiles({\n mightLikeProducts,\n showDiscountPercentage,\n getTranslation,\n}) {\n return mightLikeProducts.map(\n (\n { url, productTitle, priceData, colourWayId, productId, imageUrl },\n index\n ) => (\n \n \n \n )\n );\n}\n\nconst getRecommendationType = (isMobile) => {\n return isMobile\n ? RECOMMENDATION_TYPES.GRID_LOOKS_MOBILE\n : RECOMMENDATION_TYPES.GRID_LOOKS_DESKTOP;\n};\n\nexport default function LooksSimilarItems() {\n const { getTranslation, isMobile } = useRuntimeConstants();\n const { selectedLooksProduct } = useSelectedLooksProduct();\n const { mightLikeProducts, hasFetchedRecs, apiFailed } = useRecommendations({\n productId: selectedLooksProduct?.id,\n scope: LOOKS_RECOMMENDATIONS_HEADER,\n });\n const { showDiscountPercentage } = useDiscountPercentage();\n\n if (apiFailed) {\n return ;\n }\n\n if (hasFetchedRecs && !mightLikeProducts?.length) {\n return ;\n }\n\n return (\n \n \n {mightLikeProducts?.length\n ? getProductTiles({\n mightLikeProducts,\n showDiscountPercentage,\n getTranslation,\n })\n : [, ]}\n \n \n );\n}\n","import LooksSimilarItems from \"./LooksSimilarItems\";\n\nexport default LooksSimilarItems;\n","import { useState, useEffect } from \"react\";\nimport { MODAL_TYPE } from \"../../constants\";\nimport Modal from \"../modal/Modal\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport LooksCarousel from \"./LooksCarousel\";\nimport LooksProduct from \"./LooksProduct\";\nimport { ProductContextProvider } from \"../../context/product/ProductContext\";\nimport { VariantContextProvider } from \"../../context/variant/VariantContext\";\nimport { useSelectedLooksProduct } from \"../../context/looks/SelectedLooksProductContext\";\nimport { fireLooksModalOpen } from \"../../analytics/looks/looksModal\";\nimport {\n resetLooksTrackedProducts,\n fireLooksProductViewTracking,\n} from \"../../analytics/looks/looksProduct\";\nimport { getPreselectedProduct } from \"../../utils/product\";\nimport getWindow from \"../../utils/window\";\nimport { usePreviousBackInStock } from \"../../context/backInStock/BackInStockContext\";\nimport LooksSimilarItems from \"./looksSimilarItems\";\nimport { LOOKS_OPEN_MODAL_EVENT } from \"./constants\";\n\nexport default function LooksModal() {\n const [modalId] = useState(\n `${MODAL_TYPE.SIDE}${Math.floor(Math.random() * 10000)}`\n );\n\n const [open, setOpen] = useState(false);\n const [contentLoaded, setContentLoaded] = useState(false);\n const [focusOnCloseElement, setFocusOnCloseElement] = useState(null);\n\n const { getTranslation } = useRuntimeConstants();\n const { looksProducts } = useLooksProducts();\n const { selectedLooksProduct } = useSelectedLooksProduct();\n const { previousBackInStockProductId } = usePreviousBackInStock();\n\n useEventBus(\n LOOKS_OPEN_MODAL_EVENT,\n ({ focusOnCloseElement, position }) => {\n setOpen(true);\n setContentLoaded(true);\n setFocusOnCloseElement(focusOnCloseElement);\n fireLooksModalOpen({ products: looksProducts, position });\n resetLooksTrackedProducts();\n },\n [looksProducts]\n );\n\n useEffect(() => {\n const preselectedProduct = getPreselectedProduct(\n looksProducts,\n previousBackInStockProductId\n );\n if (preselectedProduct) {\n setOpen(true);\n setContentLoaded(true);\n setFocusOnCloseElement(\n getWindow().document.getElementsByTagName(\"main\")[0]\n );\n }\n }, [focusOnCloseElement, looksProducts, previousBackInStockProductId]);\n\n useEffect(() => {\n if (open) {\n fireLooksProductViewTracking({\n looksProducts,\n selectedLooksProduct,\n isMobile: true,\n });\n }\n }, [open, looksProducts, selectedLooksProduct]);\n\n if (!looksProducts?.length) {\n return null;\n }\n\n return (\n setOpen(false)}\n contentLoaded={contentLoaded}\n open={open}\n focusOnClose={focusOnCloseElement}\n >\n \n {looksProducts.map((looksProduct) =>\n looksProduct.id === selectedLooksProduct?.id ? (\n \n \n \n \n \n \n ) : null\n )}\n \n );\n}\n","import getWindow from \"../../utils/window\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport { waitForPageLoadAnalytics } from \"../pageLoad\";\nimport { getCommonLooksTrackingValues } from \"./common\";\n\nexport const fireSeeSimilarModalOpen = async ({ position, products }) => {\n await waitForPageLoadAnalytics;\n\n const s = getWindow().s;\n const commons = getCommons();\n const commonLooksTracking = getCommonLooksTrackingValues({ products });\n const seeSimilarEventText = \"btl - see similar button\";\n\n s.tl(true, \"o\", \"see similar - pop up page\", {\n ...commonLooksTracking,\n eVar60: seeSimilarEventText,\n eVar61: seeSimilarEventText,\n prop6: `${seeSimilarEventText}_${position}`,\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n ...Object.keys(commonLooksTracking),\n \"prop6\",\n ]),\n });\n};\n","import { useState } from \"react\";\nimport Modal from \"../../modal/Modal\";\nimport { v4 } from \"uuid\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { resetLooksTrackedProducts } from \"../../../analytics/looks/looksProduct\";\nimport { MODAL_TYPE } from \"../../../constants\";\nimport { SEE_SIMILAR_OPEN_MODAL_EVENT } from \"../constants\";\nimport { fireSeeSimilarModalOpen } from \"../../../analytics/looks/seeSimilarModal\";\nimport { useLooksProducts } from \"../../../context/looks/LooksProductsContext\";\nimport useEventBus from \"../../../hooks/useEventBus\";\nimport LooksSimilarItems from \"../looksSimilarItems\";\nimport LooksProduct from \"../LooksProduct\";\nimport { VariantContextProvider } from \"../../../context/variant/VariantContext\";\nimport { ProductContextProvider } from \"../../../context/product/ProductContext\";\nimport { useSelectedLooksProduct } from \"../../../context/looks/SelectedLooksProductContext\";\n\nexport default function SeeSimilarItemsModal() {\n const [open, setOpen] = useState(false);\n const [modalId] = useState(`${MODAL_TYPE.SIDE}-${v4()}`);\n const [focusOnCloseElement, setFocusOnCloseElement] = useState(null);\n const { getTranslation } = useRuntimeConstants();\n const { looksProducts } = useLooksProducts();\n const { selectedLooksProduct } = useSelectedLooksProduct();\n\n useEventBus(\n SEE_SIMILAR_OPEN_MODAL_EVENT,\n ({ focusOnCloseElement, position }) => {\n setOpen(true);\n setFocusOnCloseElement(focusOnCloseElement);\n fireSeeSimilarModalOpen({ position, products: looksProducts });\n resetLooksTrackedProducts();\n },\n [looksProducts]\n );\n\n return (\n setOpen(false)}\n contentLoaded={true}\n open={open}\n focusOnClose={focusOnCloseElement}\n >\n {looksProducts?.map((looksProduct) =>\n looksProduct.id === selectedLooksProduct?.id ? (\n \n \n \n \n \n ) : null\n )}\n {open && }\n \n );\n}\n","import { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport SizeGuideModal from \"../../components/sizeGuideModal/SizeGuideModal\";\nimport BackInStockLoginModal from \"../../components/backInStock/BackInStockLoginModal\";\nimport LooksModal from \"../../components/looks/LooksModal\";\nimport SeeSimilarModal from \"../../components/looks/seeSimilarModal/SeeSimilarModal\";\n\nexport default function AppModals() {\n const { isMixAndMatch, isMobile } = useRuntimeConstants();\n\n return (\n <>\n \n {!isMixAndMatch && (\n <>\n {isMobile && }\n \n \n )}\n \n \n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"apiErrorMessage\":\"sflOU\",\"notificationDrawer\":\"NaMgp\",\"show\":\"JPbix\"};","import { useState, useEffect } from \"react\";\nimport getWindow from \"../utils/window\";\nimport whenElementExists from \"../utils/whenElementExists\";\n\nconst useElementWhenReady = (elementSelector) => {\n const [element, setElement] = useState(null);\n\n useEffect(() => {\n const root = getWindow().document.querySelector(\"main\");\n\n whenElementExists(elementSelector, root, setElement);\n }, [elementSelector]);\n\n return element;\n};\n\nexport default useElementWhenReady;\n","import getWindow from \"./window\";\n// For use of checking existence of elements outside React codebase\n\nexport default function whenElementExists(elementSelector, root, callbackFunc) {\n let elementNode;\n\n new Promise((resolve) => {\n elementNode = getWindow().document.querySelector(elementSelector);\n if (elementNode) {\n return resolve();\n }\n\n const mutationObserver = getWindow().MutationObserver;\n\n const observer = new mutationObserver(() => {\n elementNode = getWindow().document.querySelector(elementSelector);\n if (elementNode) {\n resolve();\n observer.disconnect();\n }\n });\n\n observer.observe(root, {\n childList: true,\n subtree: true,\n });\n }).then(() => {\n callbackFunc(elementNode);\n });\n}\n","import useEventListener from \"./useEventListener\";\nimport { NOTIFICATION_DRAWER_ID } from \"../constants\";\n\nconst useInteractOutside = (wrapperRef, callback, dependencies = []) => {\n const handleMouseDown = (event) => {\n if (\n wrapperRef.current &&\n !wrapperRef.current.contains(event.target) &&\n wrapperRef.current.id !== NOTIFICATION_DRAWER_ID\n ) {\n callback(event);\n }\n };\n\n const handleKeyDown = (event) => {\n if (event.keyCode === 27 || event.key === \"escape\") {\n callback(event);\n }\n };\n\n useEventListener(\"keydown\", handleKeyDown, dependencies);\n\n useEventListener(\"mousedown\", handleMouseDown, dependencies);\n};\n\nexport default useInteractOutside;\n","import { useEffect, useRef, useState } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport styles from \"./AppNotificationBar.scss\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport { NotificationBar } from \"@asosteam/asos-web-component-library-notification-bar\";\nimport getWindow from \"../../utils/window\";\nimport useInteractOutside from \"../../hooks/useInteractOutside\";\nimport { NOTIFICATION_DRAWER_ID } from \"../../constants\";\n\nconst renderBarInPortal = (Component, portalElement) => {\n return portalElement && ReactDOM.createPortal(, portalElement);\n};\nconst isClick = (event) => event.type === \"click\";\nconst isEnterKey = (event) => event.code === \"Enter\" || event.keyCode === 13;\nconst isTab = (event) => event.code === \"Tab\" || event.keyCode === 9;\n\nconst refocus = (refocusId) => {\n if (refocusId) {\n const refocusElement = getWindow().document.getElementById(refocusId);\n if (refocusElement) {\n refocusElement.focus();\n }\n }\n};\n\nexport default function AppNotificationBar() {\n const [notificationBarData, setNotificationBarData] = useState(null);\n const [open, setOpen] = useState(false);\n const [refocusId, setRefocusId] = useState(null);\n const notificationDrawer = useRef(null);\n const portalElement = useElementWhenReady(\"body\");\n\n const barCloseHandler = () => {\n refocus(refocusId);\n setOpen(false);\n };\n\n const barOpenHandler = ({ copy, type, refocusId }) => {\n setNotificationBarData({\n type,\n copy,\n });\n setRefocusId(refocusId);\n setOpen(true);\n };\n\n useInteractOutside(notificationDrawer, barCloseHandler, [refocusId]);\n useEventBus(\"notificationBar\", barOpenHandler, []);\n useEffect(() => {\n if (notificationDrawer.current && open) {\n const button = notificationDrawer.current.getElementsByTagName(\"button\");\n button[0] && button[0].focus();\n }\n }, [open]);\n\n return renderBarInPortal(\n () => (\n \n {notificationBarData && open && (\n {\n if (isEnterKey(event) || isClick(event) || isTab(event)) {\n event.preventDefault();\n if (isTab(event)) return;\n barCloseHandler();\n }\n }}\n >\n {notificationBarData.copy}\n \n )}\n \n ),\n portalElement\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"WMMDb\",\"container\":\"E5FMc\",\"header\":\"tPjnF\",\"btl_full_width_container\":\"eheuK\",\"tileWrapper\":\"QRvmu\"};","import { LARGE_VIEWPORT, MEDIUM_VIEWPORT, SMALL_VIEWPORT } from \"../constants\";\n\nconst getDefaultCarouselItemsPerRow = (viewport) => {\n return {\n [SMALL_VIEWPORT]: 16,\n [MEDIUM_VIEWPORT]: 3,\n [LARGE_VIEWPORT]: 4,\n }[viewport];\n};\n\nconst getDefaultCarouselSettings = ({\n getTranslation,\n viewportCategory,\n CarouselMode,\n}) => ({\n itemsPerRow: getDefaultCarouselItemsPerRow(viewportCategory),\n carouselTestId: \"carousel\",\n paginationLabelNoNext: getTranslation(\"pdp_carousel_pagination_no_next\"),\n paginationLabelNoPrevious: getTranslation(\n \"pdp_carousel_pagination_no_previous\"\n ),\n paginationLabel: getTranslation(\"pdp_carousel_pagination_label\"),\n paginationTabLabel: (lower, upper, total) =>\n getTranslation(\"pdp_carousel_pagination_tab_label\", {\n lowercount: lower,\n uppercount: upper,\n totalcount: total,\n }),\n paginationTabPanelLabel: (lower, upper, total) =>\n getTranslation(\"pdp_carousel_pagination_tabpanel_label\", {\n lowercount: lower,\n uppercount: upper,\n totalcount: total,\n }),\n carouselMode:\n viewportCategory === SMALL_VIEWPORT\n ? CarouselMode.endlessSideScroll\n : CarouselMode.pagination,\n});\n\nexport default getDefaultCarouselSettings;\n","import PropTypes from \"prop-types\";\nimport {\n Carousel,\n CarouselMode,\n} from \"@asosteam/asos-web-component-library-carousel\";\nimport ProductTile from \"../productTile/ProductTile\";\nimport styles from \"./BuyTheLook.scss\";\nimport { PAGE_AREAS } from \"../../constants\";\nimport getDefaultCarouselSettings from \"../../utils/getDefaultCarouselSettings\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { buildProductTileAriaLabel } from \"../productTile/buildProductTileAriaLabel\";\nimport TitleThenPrice from \"../productTile/TitleThenPrice\";\n\nexport default function BuyTheLook({ sdks, products, showDiscountPercentage }) {\n const { viewportCategory } = useViewport();\n const { getTranslation } = useRuntimeConstants();\n return (\n
\n \n
\n

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

\n
\n \n {products.map(\n (\n {\n productId,\n url,\n imageUrl,\n productTitle,\n colourWayId,\n priceData,\n },\n index\n ) => (\n
\n \n \n \n
\n )\n )}\n \n \n
\n );\n}\n\nBuyTheLook.propTypes = {\n sdks: PropTypes.shape({ savedItems: PropTypes.object.isRequired }).isRequired,\n products: PropTypes.arrayOf(\n PropTypes.shape({\n productId: PropTypes.number.isRequired,\n url: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n productTitle: PropTypes.string.isRequired,\n colourWayId: PropTypes.number.isRequired,\n priceData: PropTypes.shape({\n current: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }).isRequired,\n }).isRequired,\n })\n ).isRequired,\n showDiscountPercentage: PropTypes.bool.isRequired,\n};\n","import { useEffect, useState } from \"react\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { getFeature } from \"../../utils/features\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function useGrid({ isInStock }) {\n const [gridEnabled, setGridEnabled] = useState(null);\n const { areFeaturesReady } = useFeaturesReady();\n const { urlParams } = useRuntimeConstants();\n const affiliateId = urlParams?.affid ?? null;\n\n useEffect(() => {\n if (areFeaturesReady) {\n setGridEnabled(\n getFeature(\"pdp-rec-grid\", null, {\n affiliateId,\n isInStock,\n }).isEnabled()\n );\n }\n }, [affiliateId, isInStock, areFeaturesReady]);\n\n return { gridEnabled };\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"rc1H2\"};","import PropTypes from \"prop-types\";\nimport { GridPrice } from \"../priceComponents\";\nimport styles from \"./PriceThenTitle.scss\";\n\nexport default function PriceThenTitle({ priceData, title }) {\n return (\n <>\n \n

\n {title}\n

\n \n );\n}\n\nPriceThenTitle.propTypes = {\n priceData: PropTypes.shape({\n current: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }).isRequired,\n previous: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }),\n rrp: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }),\n isMarkedDown: PropTypes.bool,\n isOutletPrice: PropTypes.bool,\n }).isRequired,\n title: PropTypes.string.isRequired,\n};\n","export default function getRecommendationsTitleAriaLabel({\n getTranslation,\n gridEnabled,\n isInStock,\n}) {\n if (gridEnabled) {\n return isInStock\n ? getTranslation(\"pdp_grid_recommendations_aria\")\n : getTranslation(\"pdp_grid_recommendations_out_of_stock_aria\");\n }\n\n return isInStock\n ? getTranslation(\"pdp_carousel_recommendations_aria\")\n : getTranslation(\"pdp_carousel_recommendations_out_of_stock_aria\");\n}\n","import { useCallback, useEffect, useRef } from \"react\";\nimport MightLike, { RECOMMENDATION_TYPES } from \"../mightLike/MightLike\";\nimport useRecommendations from \"../mightLike/useRecommendations\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { PAGE_AREAS } from \"../../constants\";\nimport getDefaultCarouselSettings from \"../../utils/getDefaultCarouselSettings\";\nimport {\n Carousel,\n CarouselMode,\n} from \"@asosteam/asos-web-component-library-carousel\";\nimport useGrid from \"../grid/useGrid\";\nimport Grid from \"../grid/Grid\";\nimport { buildProductTileAriaLabel } from \"../productTile/buildProductTileAriaLabel\";\nimport PriceThenTitle from \"../productTile/PriceThenTitle\";\nimport TitleThenPrice from \"../productTile/TitleThenPrice\";\nimport ProductTile from \"../productTile/ProductTile\";\nimport useDiscountPercentage from \"../../hooks/useDiscountPercentage\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\nimport getRecommendationsTitleAriaLabel from \"../mightLike/getRecommendationsTitleAriaLabel\";\nimport {\n setIntersectionObserver,\n unsetIntersectionObserver,\n} from \"../../utils/setIntersectionObserver\";\nimport { fireMightLikeVisibleAnalytics } from \"../../analytics/pageInteraction\";\n\nconst INTERSECTION_OPTIONS = {\n rootMargin: \"0px 0px -350px 0px\",\n threshold: 0,\n};\n\nfunction getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n}) {\n const PriceAndTitle = gridEnabled ? PriceThenTitle : TitleThenPrice;\n return mightLikeProducts.map(\n (\n { url, productTitle, priceData, colourWayId, productId, imageUrl },\n index\n ) => (\n \n \n \n )\n );\n}\n\nfunction handleFireMightLikeVisibleAnalytics(intersectionData) {\n if (intersectionData.isIntersecting) {\n fireMightLikeVisibleAnalytics();\n }\n}\n\nfunction shouldNotRender({ gridEnabled, mightLikeProducts }) {\n return gridEnabled === null || !mightLikeProducts?.length;\n}\n\nexport default function YouMightAlsoLike() {\n const { product, getTranslation } = useRuntimeConstants();\n const { mightLikeProducts } = useRecommendations({\n productId: product?.id,\n });\n const { isInStock } = useIsInStockContext();\n const { gridEnabled } = useGrid({ isInStock });\n const { showDiscountPercentage } = useDiscountPercentage();\n const { viewportCategory } = useViewport();\n const observer = useRef(null);\n const element = useRef(null);\n\n const trackingRef = useCallback((node) => {\n if (node) {\n element.current = node;\n observer.current = setIntersectionObserver({\n element: element.current,\n options: INTERSECTION_OPTIONS,\n handleIntersectionData: handleFireMightLikeVisibleAnalytics,\n observeIntersectionOnce: true,\n });\n }\n }, []);\n\n useEffect(() => {\n return () => {\n unsetIntersectionObserver(element.current, observer.current);\n };\n }, []);\n\n if (shouldNotRender({ gridEnabled, mightLikeProducts })) {\n return null;\n }\n\n return (\n \n {gridEnabled ? (\n \n {getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n })}\n \n ) : (\n \n {getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n })}\n \n )}\n \n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"viewAllReviews\":\"iOgob\",\"title\":\"GijrV\",\"mostRecentReviewTitle\":\"A4plY\",\"recommended\":\"kXbO9\",\"sectionContainer\":\"x5rH4\",\"maxWidthContainer\":\"RgEAY\",\"customerReviews\":\"NqeH1\",\"customerRatings\":\"f8emy\",\"subContainer\":\"gv_U3\"};","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"DBTNB\",\"recency\":\"L0xqb\",\"source\":\"m0ehn\",\"thumbnail\":\"ep18o\",\"loading\":\"Sjp38\",\"rating\":\"brt7x\",\"button\":\"Uol0g\",\"headerSpace\":\"ncNks\",\"contentSpace\":\"QhXeD\",\"starsAndRecencyContainer\":\"pMZ4k\",\"thumbnails\":\"CyPJT\",\"thumbnailImage\":\"ZSnoo\"};","// extracted by mini-css-extract-plugin\nexport default {\"paragraphText\":\"vT3j6\",\"disclaimerText\":\"O8OBO\",\"headerSpace\":\"aAQO2\",\"contentSpace\":\"haTvR\",\"text\":\"QWoXf\",\"button\":\"o1jZR\",\"expanded\":\"n5ICr\",\"showMoreContainer\":\"EBPsU\",\"readMore\":\"Fqrwq\",\"fade\":\"itM5P\",\"paragraphFade\":\"mnxSz\",\"disclaimerFade\":\"_zSVO\",\"loading\":\"dc5Bj\"};","import { useEffect, useState, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnamesBind from \"classnames/bind\";\nimport styles from \"./ExpandableText.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport const textStyles = {\n PARAGRAPH: \"PARAGRAPH\",\n DISCLAIMER: \"DISCLAIMER\",\n};\n\nconst getFirstWordsToNumber = (text, number) => {\n return text.split(\" \").slice(0, number).join(\" \");\n};\n\nconst getCondensedText = ({ text, readMoreText }) => {\n return `${getFirstWordsToNumber(text, 20)}... ${readMoreText}`;\n};\n\nconst getTextClass = (textStyle) => {\n return {\n [textStyles.PARAGRAPH]: styles.paragraphText,\n [textStyles.DISCLAIMER]: styles.disclaimerText,\n }[textStyle];\n};\n\nconst ExpandableText = ({\n text,\n hasTitle,\n readMoreTranslationKey,\n testId,\n textStyle = textStyles.PARAGRAPH,\n}) => {\n const { getTranslation } = useRuntimeConstants();\n const textElement = useRef();\n const [expandable, setExpandable] = useState(false);\n const [expanded, setExpanded] = useState(false);\n\n useEffect(() => {\n if (textElement.current) {\n const { scrollHeight, clientHeight } = textElement.current;\n\n if (scrollHeight > clientHeight) {\n setExpandable(true);\n }\n }\n }, [textElement]);\n\n return (\n <>\n {!expandable && (\n \n {text}\n

\n )}\n {expandable && (\n {\n setExpanded(true);\n }}\n data-testid={testId}\n aria-expanded={expanded}\n aria-label={\n !expanded\n ? getCondensedText({\n text,\n readMoreText: getTranslation(readMoreTranslationKey),\n })\n : undefined\n }\n >\n {text}\n {!expanded && (\n \n \n
\n {getTranslation(readMoreTranslationKey)}\n
\n
\n )}\n \n )}\n \n );\n};\n\nExpandableText.propTypes = {\n testId: PropTypes.string.isRequired,\n readMoreTranslationKey: PropTypes.string.isRequired,\n hasTitle: PropTypes.bool,\n text: PropTypes.string,\n textStyle: PropTypes.oneOf([textStyles.PARAGRAPH, textStyles.DISCLAIMER]),\n};\n\nexport default ExpandableText;\n","import { useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { StarRating } from \"../ratingComponents\";\nimport styles from \"./Review.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport ExpandableText from \"../expandableText/ExpandableText\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst SYNDICATED_REVIEW = \"syndicatedReview\";\nconst STAFF_REVIEW = \"staffReview\";\nconst VERIFIED_REVIEW = \"verifiedReview\";\n\nconst Review = ({\n title,\n reviewText,\n rating,\n submissionRecency,\n syndicationSource,\n badgesOrder,\n photos,\n additionalClasses,\n displayPhotos,\n togglePhotoGallery,\n}) => {\n const { getTranslation } = useRuntimeConstants();\n\n const reviewSource = getReviewSource(syndicationSource, badgesOrder);\n const ratingsAriaLabel = useRef(\n getRatingAriaLabel(getTranslation, {\n submissionRecency,\n syndicationSource,\n rating,\n reviewSource,\n })\n );\n const ratingsText = useRef(\n getSourceText(getTranslation, {\n syndicationSource,\n rating,\n reviewSource,\n })\n );\n\n return (\n \n \n
\n \n \n {submissionRecency}\n \n
\n

\n {ratingsText.current}\n

\n \n {title && (\n \n {title}\n \n )}\n {reviewText && (\n \n )}\n {shouldDisplayPhotos({ photos, displayPhotos, togglePhotoGallery }) && (\n
\n {photos.map(({ thumbnailUrl }, index) => (\n \n togglePhotoGallery(true, photos, index, event.target)\n }\n >\n \n \n ))}\n
\n )}\n \n );\n};\n\nReview.propTypes = {\n title: PropTypes.string,\n reviewText: PropTypes.string,\n rating: PropTypes.number.isRequired,\n submissionRecency: PropTypes.string.isRequired,\n syndicationSource: PropTypes.shape({ name: PropTypes.string.isRequired }),\n badgesOrder: PropTypes.array.isRequired,\n photos: PropTypes.arrayOf(\n PropTypes.shape({\n thumbnailUrl: PropTypes.string.isRequired,\n })\n ).isRequired,\n additionalClasses: PropTypes.string,\n displayPhotos: PropTypes.bool,\n togglePhotoGallery: PropTypes.func,\n};\n\nconst shouldDisplayPhotos = ({ photos, displayPhotos, togglePhotoGallery }) =>\n !!(displayPhotos && togglePhotoGallery && photos.length);\n\nconst getReviewSource = (syndicationSource, badgesOrder) => {\n if (syndicationSource) {\n return SYNDICATED_REVIEW;\n }\n if (badgesOrder.length) {\n if (badgesOrder.includes(\"Staff\")) {\n return STAFF_REVIEW;\n }\n return VERIFIED_REVIEW;\n }\n};\n\nconst getSourceText = (\n translation,\n { syndicationSource = null, reviewSource = null }\n) => {\n return {\n [SYNDICATED_REVIEW]: translation(\n \"pdp_ratings_reviews_syndication_badge_text\",\n {\n syndicationSourceName: syndicationSource?.name,\n }\n ),\n [STAFF_REVIEW]: translation(\n \"pdp_ratings_reviews_verified_staff_purchase_badge_text\"\n ),\n [VERIFIED_REVIEW]: translation(\n \"pdp_ratings_reviews_verified_purchaser_badge_text\"\n ),\n }[reviewSource];\n};\n\nconst getRatingAriaLabel = (\n translation,\n { submissionRecency, syndicationSource, rating, reviewSource }\n) => {\n if (reviewSource === SYNDICATED_REVIEW) {\n translation(\n \"pdp_ratings_reviews_accessibility_individual_review_intro_syndicated\",\n {\n submissionRecency: submissionRecency,\n syndicationSourceName: syndicationSource.name,\n rating: rating,\n }\n );\n }\n\n translation(\n \"pdp_ratings_reviews_accessibility_individual_review_intro_verified_purchaser\",\n {\n submissionRecency: submissionRecency,\n badgeName: getSourceText(translation, {\n syndicationSource,\n reviewSource,\n }),\n rating: rating,\n }\n );\n};\n\nexport default Review;\n","// extracted by mini-css-extract-plugin\nexport default {\"recommended\":\"NeBNz\"};","export function composeTranslation(translationString, substitutions) {\n if (typeof substitutions === \"object\") {\n Object.keys(substitutions).forEach((key) => {\n translationString = translationString.replace(\n `%{${key}}`,\n substitutions[key]\n );\n });\n }\n if (translationString.match(/%{.*}/)) {\n throw new Error(`Missing substitution for ${translationString}`);\n }\n\n return translationString;\n}\n","import PropTypes from \"prop-types\";\nimport styles from \"./Recommended.scss\";\nimport { getIntlNumberFormat } from \"../../utils/format\";\nimport { composeTranslation } from \"../../utils/composeTranslation\";\nimport classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function Recommended({\n percentageRecommended,\n language,\n additionalClasses,\n}) {\n const { getTranslation } = useRuntimeConstants();\n if (percentageRecommended === null) {\n return null;\n }\n\n return (\n

\n {composeTranslation(\n getTranslation(\"pdp_ratings_reviews_recommendation_percentage\"),\n {\n percentageRecommeded: getIntlNumberFormat({\n value: percentageRecommended / 100,\n language,\n options: { style: \"percent\" },\n }),\n }\n )}\n

\n );\n}\n\nRecommended.propTypes = {\n percentageRecommended: PropTypes.number,\n language: PropTypes.string.isRequired,\n additionalClasses: PropTypes.string,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"NNzvB\",\"subRatingTitle\":\"HsBiz\",\"subRating\":\"cnock\",\"titleRow\":\"GYl4f\",\"icon\":\"jm_NI\"};","import PropTypes from \"prop-types\";\nimport classnamesBind from \"classnames/bind\";\nimport styles from \"./SubRatings.scss\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport RatingBar from \"../ratingBar/RatingBar\";\nimport { getSubRatingIcon } from \"../../utils/getSubRatingIcon\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function SubRatings({ subRatings, additionalClasses }) {\n const { getTranslation } = useRuntimeConstants();\n\n if (subRatings.length === 0) {\n return null;\n }\n\n return (\n
\n

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

\n {subRatings.map(\n ({ id, label, minLabel, midLabel, maxLabel, percentage }) => (\n
\n
\n
\n

{label}:

\n
\n \n
\n )\n )}\n
\n );\n}\n\nSubRatings.propTypes = {\n subRatings: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n minLabel: PropTypes.string.isRequired,\n midLabel: PropTypes.string,\n maxLabel: PropTypes.string.isRequired,\n percentage: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n additionalClasses: PropTypes.string,\n};\n","import PropTypes from \"prop-types\";\nimport styles from \"./RatingsAndReviews.scss\";\nimport { StarRatingGroup } from \"../ratingComponents\";\nimport Review from \"../review/Review\";\nimport Recommended from \"../recommended/Recommended\";\nimport SubRatings from \"../subRatings/SubRatings\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport ExpandableText, { textStyles } from \"../expandableText/ExpandableText\";\nimport { REVIEW_DISCLAIMER_STORES } from \"../../constants\";\n\nfunction displayDisclaimer(storeId) {\n return REVIEW_DISCLAIMER_STORES.includes(storeId);\n}\n\nexport default function RatingsAndReviews({\n ratings,\n language,\n openRatingsModal,\n}) {\n const {\n averageOverallStarRating,\n averageOverallRating,\n totalReviewCount,\n percentageRecommended,\n mostRecent,\n } = ratings;\n\n const {\n getTranslation,\n webContext: { storeId },\n } = useRuntimeConstants();\n\n return (\n
\n
\n

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

\n
\n
\n \n \n
\n
\n \n
\n
\n
\n
\n

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

\n \n \n {getTranslation(\"pdp_ratings_reviews_view_all_reviews_cta\")}\n \n {displayDisclaimer(storeId) && (\n \n )}\n
\n
\n
\n
\n );\n}\n\nRatingsAndReviews.propTypes = {\n ratings: PropTypes.shape({\n averageOverallStarRating: PropTypes.number.isRequired,\n averageOverallRating: PropTypes.number.isRequired,\n totalReviewCount: PropTypes.number.isRequired,\n percentageRecommended: PropTypes.number.isRequired,\n subRatings: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n minLabel: PropTypes.string.isRequired,\n midLabel: PropTypes.string,\n maxLabel: PropTypes.string.isRequired,\n percentage: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n mostRecent: PropTypes.shape({\n title: PropTypes.string,\n reviewText: PropTypes.string,\n rating: PropTypes.number.isRequired,\n submissionRecency: PropTypes.string.isRequired,\n syndicationSource: PropTypes.shape({ name: PropTypes.string.isRequired }),\n badgesOrder: PropTypes.array.isRequired,\n }).isRequired,\n }).isRequired,\n language: PropTypes.string.isRequired,\n openRatingsModal: PropTypes.func.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"apiErrorMessage\":\"gNzI4\",\"apiErrorButton\":\"ob2sk\",\"recommended\":\"hc3ro\",\"ratingsAndReviewsModal\":\"Qh7q6\",\"subRatings\":\"PzQwe\",\"reviews\":\"FkYmn\",\"reviewsUnFiltered\":\"wLb6M\",\"ratingsPillContainer\":\"iPWhY\",\"closeIcon\":\"LCudf\",\"apiFilterErrorMessage\":\"UE9Wu\"};","// extracted by mini-css-extract-plugin\nexport default {\"distributionContainer\":\"vn2gG\",\"container\":\"P11WK\",\"ratingBar\":\"PR36S\",\"count\":\"mRPxW\",\"progress\":\"XZ6TK\",\"selectContainer\":\"tCQpd\",\"rating\":\"r6UXx\",\"ratingFocus\":\"i5wck\"};","import { Fragment } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./RatingsDistribution.scss\";\nimport classnamesBind from \"classnames/bind\";\n\nconst classnames = classnamesBind.bind(styles);\nimport { getIntlNumberFormat } from \"../../utils/format\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nexport default function RatingsDistribution({\n ratingDistribution,\n totalReviewCount,\n filterParam,\n language,\n filterByRatingCallback,\n}) {\n const { getTranslation } = useRuntimeConstants();\n function getDistributionBar(count) {\n const progression = Math.round((count / totalReviewCount) * 100);\n return (\n
\n
\n
\n );\n }\n\n function getRatingsDistributionCounts() {\n return [5, 4, 3, 2, 1].map((ratingsValue) => {\n const distribution = ratingDistribution.find(\n (rating) => ratingsValue === rating.ratingsValue\n );\n\n return {\n ratingsValue,\n count: distribution ? distribution.count : 0,\n };\n });\n }\n\n if (ratingDistribution.length === 0) {\n return null;\n }\n\n return (\n
\n
\n {getRatingsDistributionCounts().map(({ ratingsValue, count }) => (\n \n
\n {getTranslation(\"rdp_ratings_reviews_distribution_label\", {\n smart_count: ratingsValue,\n ratingsValue,\n })}\n
\n {getDistributionBar(count)}\n
\n ({getIntlNumberFormat({ language, value: count })})\n
\n
\n ))}\n
\n \n {getRatingsDistributionCounts().map(({ ratingsValue, count }) => {\n const disabled =\n !count || filterParam === `Rating:eq:${ratingsValue}`;\n return (\n \n );\n })}\n
\n
\n );\n}\n\nRatingsDistribution.propTypes = {\n ratingDistribution: PropTypes.arrayOf(\n PropTypes.shape({\n ratingsValue: PropTypes.number.isRequired,\n count: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n totalReviewCount: PropTypes.number.isRequired,\n filterParam: PropTypes.string,\n language: PropTypes.string.isRequired,\n filterByRatingCallback: PropTypes.func.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"viewMore\":\"qJUek\",\"reviewsCount\":\"WxNob\",\"review\":\"r_I7h\",\"viewMoreContainer\":\"qtmvh\",\"reviewsProgress\":\"_sR12\",\"spinner\":\"wVnTh\"};","import PropTypes from \"prop-types\";\nimport styles from \"./Reviews.scss\";\nimport Review from \"../review/Review\";\nimport StandardSpinner from \"../spinner/standard/StandardSpinner\";\nimport { getIntlNumberFormat } from \"../../utils/format\";\nimport getWindow from \"../../utils/window\";\nimport { SMALL_SPINNER } from \"../../constants\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function Reviews({\n reviews,\n totalReviewCount,\n getReviewsCallback,\n viewMorePending,\n language,\n togglePhotoGallery,\n}) {\n const { getTranslation } = useRuntimeConstants();\n function getReviewKey(index, review) {\n if (review.title) {\n return `${index}-${review.title.slice(0, 10)}`;\n }\n if (review.reviewText) {\n return `${index}-${review.reviewText.slice(0, 10)}`;\n }\n return index;\n }\n\n function getIntlNumber(value) {\n return getIntlNumberFormat({ language, value });\n }\n\n async function viewMore() {\n await getReviewsCallback();\n const reviewElement = getWindow().document.querySelectorAll(\n \"[data-testid='reviewsModalReview']\"\n )[reviews.length + 1];\n reviewElement && reviewElement.focus();\n }\n\n return (\n <>\n {reviews.map((review, index) => (\n \n ))}\n
\n

\n {getTranslation(\"rdp_ratings_reviews_progress_text\", {\n viewedReviews: getIntlNumber(reviews.length),\n totalResults: getIntlNumber(totalReviewCount),\n smart_count: totalReviewCount,\n })}\n

\n {totalReviewCount > 10 && (\n <>\n \n {viewMorePending ? (\n \n ) : (\n reviews.length < totalReviewCount && (\n \n {getTranslation(\n \"rdp_ratings_reviews_distribution_view_more_cta\"\n )}\n \n )\n )}\n \n )}\n
\n \n );\n}\n\nReviews.propTypes = {\n totalReviewCount: PropTypes.number.isRequired,\n reviews: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n reviewText: PropTypes.string,\n rating: PropTypes.number.isRequired,\n submissionRecency: PropTypes.string.isRequired,\n syndicationSource: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }),\n badgesOrder: PropTypes.array.isRequired,\n }).isRequired\n ),\n getReviewsCallback: PropTypes.func.isRequired,\n viewMorePending: PropTypes.bool.isRequired,\n language: PropTypes.string.isRequired,\n togglePhotoGallery: PropTypes.func.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"INjos\",\"backBtn\":\"UsoRN\",\"imageContainer\":\"F6eb8\",\"image\":\"yKWro\",\"previousButton\":\"GN6m6\",\"nextButton\":\"I0qt7\",\"paginationButtons\":\"d_ytC\",\"paginationButtonsContainer\":\"Qr8Es\",\"galleryContainer\":\"hlnjx\",\"animated\":\"Qamie\",\"chevron\":\"PdfKB\",\"circleButtons\":\"STWxX\",\"selected\":\"iQwo9\"};","import { useState, useRef, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./ReviewPhotoGallery.scss\";\nimport getWindow from \"../../utils/window\";\nimport classnamesBind from \"classnames/bind\";\nimport BrandedSpinner from \"../spinner/branded/BrandedSpinner\";\nimport useTrapFocus from \"../../hooks/useTrapFocus\";\nimport useEventListener from \"../../hooks/useEventListener\";\nimport useTouchControl from \"../../hooks/useTouchControl\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nfunction getChildNodes(elements) {\n if (Array.from(elements).some((element) => element.childNodes.length)) {\n return Array.from(elements)\n .filter((element) => element.childNodes.length)\n .flatMap((element) => [\n ...element.childNodes,\n ...getChildNodes(element.childNodes),\n ]);\n }\n return [];\n}\n\nfunction movingFirstToLastImage({\n previousImageIndex,\n imageIndex,\n lastImageIndex,\n}) {\n return previousImageIndex === 0 && imageIndex === lastImageIndex;\n}\nfunction movingLastToFirstImage({\n previousImageIndex,\n imageIndex,\n lastImageIndex,\n}) {\n return previousImageIndex === lastImageIndex && imageIndex === 0;\n}\n\nexport default function ReviewPhotoGallery({\n togglePhotoGallery,\n gallery,\n screenHoverable,\n}) {\n const shouldRenderSingleImage =\n gallery?.reviewPhotoList.length === 1 && gallery.atIndex !== null;\n const reviewPhotoListLength = gallery.reviewPhotoList.length;\n\n const [overlayId] = useState(`overlay${Math.floor(Math.random() * 10000)}`);\n const [imageLoaded, setImageLoaded] = useState(false);\n const [imageIndex, setImageIndex] = useState(\n gallery?.atIndex ? gallery.atIndex : 0\n );\n const [galleryWidth, setGalleryWidth] = useState(0);\n const [animated, setAnimated] = useState(false);\n const [touchStartPosition, setTouchStartPosition] = useState(null);\n const paginationButtonRefs = useRef([]);\n const chevronButtonRefs = useRef([]);\n const backButtonRef = useRef(null);\n const galleryContainerRef = useRef(null);\n const initialRender = useRef(true);\n const previousIndex = useRef(imageIndex);\n const lastImageIndex = reviewPhotoListLength - 1;\n const { getTranslation } = useRuntimeConstants();\n\n const handleKeyDown = (event) => {\n if (event.keyCode === 27 || event.key === \"escape\") {\n togglePhotoGallery(false);\n }\n };\n\n useEffect(() => {\n const previousImageIndex = previousIndex.current;\n previousIndex.current = imageIndex;\n\n const setGalleryContainerMarginLeft = ({\n galleryStartPosition,\n index = imageIndex,\n } = {}) => {\n if (shouldRenderSingleImage) {\n return;\n }\n if (galleryStartPosition === undefined) {\n galleryStartPosition = galleryWidth;\n }\n galleryContainerRef.current.style.marginLeft = `-${\n galleryWidth * index + galleryStartPosition\n }px`;\n\n setTimeout(() => setAnimated(true));\n };\n\n if (animated || initialRender.current) {\n setGalleryContainerMarginLeft();\n return;\n }\n\n if (\n movingLastToFirstImage({ previousImageIndex, imageIndex, lastImageIndex })\n ) {\n setGalleryContainerMarginLeft({ galleryStartPosition: 0 });\n return;\n }\n\n if (\n movingFirstToLastImage({ previousImageIndex, imageIndex, lastImageIndex })\n ) {\n setGalleryContainerMarginLeft({ index: lastImageIndex + 1 });\n }\n }, [\n animated,\n imageIndex,\n lastImageIndex,\n galleryWidth,\n shouldRenderSingleImage,\n ]);\n\n useEffect(() => {\n backButtonRef.current?.focus();\n const sideModal = getWindow().document.querySelector(\n \"[data-testid='sideModal']\"\n );\n const sideModalWidth = sideModal.getBoundingClientRect().width;\n\n setGalleryWidth(sideModalWidth);\n }, []);\n\n useEffect(() => {\n initialRender.current = false;\n }, []);\n\n useEventListener(\"keydown\", handleKeyDown, []);\n\n const setModalRef = useTrapFocus();\n\n const setPaginationButtonRefs = (element) => {\n if (element) {\n paginationButtonRefs.current.push(element);\n paginationButtonRefs.current.push(...getChildNodes([element]));\n }\n };\n const setChevronButtonRefs = (element) => {\n if (element) {\n chevronButtonRefs.current.push(element);\n chevronButtonRefs.current.push(...getChildNodes([element]));\n }\n };\n\n const handleNextClick = () => {\n if (imageIndex === lastImageIndex) {\n setAnimated(false);\n setImageIndex(0);\n } else {\n setImageIndex((imageIndex) => imageIndex + 1);\n }\n };\n\n const handlePreviousClick = () => {\n if (imageIndex === 0) {\n setAnimated(false);\n setImageIndex(lastImageIndex);\n } else {\n setImageIndex((imageIndex) => imageIndex - 1);\n }\n };\n\n const paginationButtons = () => {\n chevronButtonRefs.current = [];\n return gallery.reviewPhotoList.map((image, index) => {\n const selected = imageIndex === index;\n return (\n setImageIndex(index)}\n aria-current={selected}\n aria-label={getTranslation(\"pdp_ratings_review_gallery_image_count\", {\n index: index + 1,\n total: reviewPhotoListLength,\n })}\n >\n
\n \n );\n });\n };\n\n const mapImage = () => {\n return gallery.reviewPhotoList.map((image, index) => (\n setImageLoaded(true)}\n aria-hidden={imageIndex !== index}\n />\n ));\n };\n\n const displayChevrons = () => {\n paginationButtonRefs.current = [];\n return (\n
\n \n
\n \n \n
\n \n
\n );\n };\n\n const touchStartHandler = (event) =>\n setTouchStartPosition(\n event.touches.length === 1 ? event.changedTouches[0].clientX : null\n );\n\n const shouldFireTouchEvent = (event) => {\n const clickableElements = [\n ...paginationButtonRefs.current,\n ...chevronButtonRefs.current,\n ];\n\n return (\n !clickableElements.includes(event.srcElement) &&\n touchStartPosition !== null\n );\n };\n\n const touchEndHandler = (event) => {\n if (shouldFireTouchEvent(event)) {\n const endTouchPosition = event.changedTouches[0].clientX;\n const direction = endTouchPosition - touchStartPosition;\n\n direction <= 0 ? handleNextClick() : handlePreviousClick();\n }\n\n setTouchStartPosition(null);\n };\n\n useTouchControl({\n startHandler: touchStartHandler,\n endHandler: touchEndHandler,\n });\n\n const renderGallery = () => {\n return (\n \n \n {mapImage()}\n \n {screenHoverable ? (\n displayChevrons()\n ) : (\n
\n {paginationButtons()}\n
\n )}\n
\n );\n };\n\n const renderImage = () =>\n shouldRenderSingleImage ? (\n
{mapImage()}
\n ) : (\n renderGallery()\n );\n\n return gallery?.reviewPhotoList.length ? (\n
\n togglePhotoGallery(false)}\n ref={backButtonRef}\n >\n
\n \n {!imageLoaded && }\n {renderImage()}\n
\n ) : null;\n}\n\nReviewPhotoGallery.propTypes = {\n togglePhotoGallery: PropTypes.func.isRequired,\n gallery: PropTypes.shape({\n isOpen: PropTypes.bool,\n reviewPhotoList: PropTypes.arrayOf(\n PropTypes.shape({\n fullSizeUrl: PropTypes.string.isRequired,\n })\n ),\n atIndex: PropTypes.number,\n }),\n screenHoverable: PropTypes.bool,\n};\n","import { useEffect } from \"react\";\nimport getWindow from \"../utils/window\";\n\nexport default function useTouchControl({\n startHandler,\n endHandler,\n moveHandler,\n cancelHandler,\n}) {\n useEffect(() => {\n startHandler && getWindow().addEventListener(\"touchstart\", startHandler);\n\n return () => {\n getWindow().removeEventListener(\"touchstart\", startHandler);\n };\n }, [startHandler]);\n\n useEffect(() => {\n endHandler && getWindow().addEventListener(\"touchend\", endHandler);\n\n return () => {\n getWindow().removeEventListener(\"touchend\", endHandler);\n };\n }, [endHandler]);\n\n useEffect(() => {\n moveHandler && getWindow().addEventListener(\"touchmove\", moveHandler);\n\n return () => {\n getWindow().removeEventListener(\"touchmove\", moveHandler);\n };\n }, [moveHandler]);\n\n useEffect(() => {\n cancelHandler && getWindow().addEventListener(\"touchcancel\", cancelHandler);\n\n return () => {\n getWindow().removeEventListener(\"touchcancel\", cancelHandler);\n };\n }, [cancelHandler]);\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"content\":\"XEbcU\",\"pill\":\"Plbr2\",\"pillButton\":\"GWpZ0\"};","import PropTypes from \"prop-types\";\nimport styles from \"./Pill.scss\";\nimport classnamesBind from \"classnames/bind\";\n\nconst classnames = classnamesBind.bind(styles);\nexport default function Pill({\n iconClass,\n ariaLabel,\n additionalClasses,\n testId,\n label,\n handleClick,\n}) {\n return (\n \n
\n {label}\n \n
\n \n );\n}\n\nPill.propTypes = {\n iconClass: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n handleClick: PropTypes.func.isRequired,\n additionalClasses: PropTypes.string,\n testId: PropTypes.string,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"closeButton\":\"mZ1sg\",\"toast\":\"Hii0u\",\"icon\":\"mWae8\",\"content\":\"ycqyf\",\"closeIcon\":\"gqHKD\"};","import { useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./Toast.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function Toast({ children, close, ariaLabelledBy }) {\n const { getTranslation } = useRuntimeConstants();\n const closeButtonRef = useCallback((node) => node && node.focus(), []);\n\n return (\n \n \n
\n \n
\n
{children}
\n
\n );\n}\n\nToast.propTypes = {\n children: PropTypes.node.isRequired,\n close: PropTypes.func.isRequired,\n ariaLabelledBy: PropTypes.string.isRequired,\n};\n","import { useState, useRef, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styles from \"./RatingsAndReviewsModal.scss\";\nimport Modal from \"../modal/Modal\";\nimport { StarRatingGroup } from \"../ratingComponents\";\nimport { RATINGS_LARGE } from \"../ratingComponents/ratingTypes\";\nimport Recommended from \"../recommended/Recommended\";\nimport RatingsDistribution from \"../ratingsDistribution/RatingsDistribution\";\nimport SubRatings from \"../subRatings/SubRatings\";\nimport Reviews from \"../reviews/Reviews\";\nimport ModalOverlay from \"../modalOverlay/ModalOverlay\";\nimport ReviewPhotoGallery from \"../reviewPhotoGallery/ReviewPhotoGallery\";\nimport Pill from \"../buttons/pill/Pill\";\nimport Toast from \"../toast/Toast\";\nimport { FILTER_ERROR, VIEW_MORE_ERROR, MODAL_TYPE } from \"../../constants\";\nimport classnamesBind from \"classnames/bind\";\nimport scrollIntoView from \"../../utils/scrollIntoView/scrollIntoView\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { MODAL_OVERLAY_TYPES } from \"../modalOverlay/modalOverlayTypes\";\n\nconst classnames = classnamesBind.bind(styles);\nconst FILTER_PILL_ID = \"filterPill\";\n\nexport default function RatingsAndReviewsModal({\n getReviewsCallback,\n filterParam,\n filterValue,\n removeFilter,\n screenHoverable,\n open,\n closeRatingsModal,\n ratingsModalFocusOnClose,\n filterPending,\n ratings,\n language,\n ratingsApiError,\n dismissApiError,\n ratingsApiErrorTranslation,\n viewMorePending,\n filteredReviewCount,\n}) {\n const { getTranslation } = useRuntimeConstants();\n const timeoutRef = useRef();\n const [gallery, setGallery] = useState({});\n const [modalId] = useState(\n `${MODAL_TYPE.SIDE}${Math.floor(Math.random() * 10000)}`\n );\n\n useEffect(() => {\n return () => {\n timeoutRef.current && clearTimeout(timeoutRef.current);\n };\n }, []);\n\n const togglePhotoGallery = (\n isOpen,\n reviewPhotoList,\n atIndex,\n targetElement\n ) => {\n if (!isOpen && gallery.targetElement) {\n let focusTarget = gallery.targetElement;\n\n if (focusTarget.tagName.toLowerCase() === \"img\") {\n focusTarget = focusTarget.parentElement;\n }\n\n focusTarget && focusTarget.focus();\n }\n\n setGallery({\n isOpen,\n reviewPhotoList,\n atIndex,\n targetElement,\n });\n };\n\n const renderFilterPill = () => {\n if (filterParam)\n return (\n
\n \n
\n );\n };\n\n const renderPhotoGallery = () => {\n if (gallery.isOpen) {\n return (\n \n \n \n );\n }\n };\n\n const renderToast = () => {\n if (ratingsApiError) {\n return (\n \n \n {getTranslation(ratingsApiErrorTranslation)}\n

\n {ratingsApiError === VIEW_MORE_ERROR && (\n \n {getTranslation(\"plp_web_errors_retry\")}\n \n )}\n \n );\n }\n };\n\n const handleOverlayClick = () => {\n timeoutRef.current && clearTimeout(timeoutRef.current);\n\n timeoutRef.current = setTimeout(() => {\n togglePhotoGallery(false);\n }, 500);\n };\n\n const filterByRatingCallback = (ratingsValue) => async () => {\n await getReviewsCallback(ratingsValue);\n scrollIntoView(FILTER_PILL_ID, \"start\");\n };\n\n return (\n <>\n \n \n \n \n \n \n {renderFilterPill()}\n \n \n
\n
\n {renderPhotoGallery()}\n {renderToast()}\n \n \n );\n}\n\nRatingsAndReviewsModal.propTypes = {\n open: PropTypes.bool.isRequired,\n ratingsModalFocusOnClose: PropTypes.node,\n closeRatingsModal: PropTypes.func.isRequired,\n ratings: PropTypes.shape({\n averageOverallStarRating: PropTypes.number.isRequired,\n averageOverallRating: PropTypes.number.isRequired,\n totalReviewCount: PropTypes.number.isRequired,\n percentageRecommended: PropTypes.number.isRequired,\n subRatings: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n minLabel: PropTypes.string.isRequired,\n midLabel: PropTypes.string,\n maxLabel: PropTypes.string.isRequired,\n percentage: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n ratingDistribution: PropTypes.arrayOf(\n PropTypes.shape({\n ratingsValue: PropTypes.number.isRequired,\n count: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n reviews: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n reviewText: PropTypes.string,\n rating: PropTypes.number.isRequired,\n submissionRecency: PropTypes.string.isRequired,\n syndicationSource: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }),\n badgesOrder: PropTypes.array.isRequired,\n }).isRequired\n ),\n }),\n language: PropTypes.string.isRequired,\n getReviewsCallback: PropTypes.func.isRequired,\n viewMorePending: PropTypes.bool.isRequired,\n filterPending: PropTypes.bool.isRequired,\n ratingsApiError: PropTypes.oneOf([FILTER_ERROR, VIEW_MORE_ERROR, false])\n .isRequired,\n ratingsApiErrorTranslation: PropTypes.string,\n dismissApiError: PropTypes.func.isRequired,\n filteredReviewCount: PropTypes.number,\n filterParam: PropTypes.string,\n filterValue: PropTypes.number,\n removeFilter: PropTypes.func.isRequired,\n screenHoverable: PropTypes.bool,\n};\n","import getWindow from \"../window\";\n\nexport default function scrollIntoView(elementToScrollToId, block = \"center\") {\n const supportsNativeSmoothScroll =\n \"scrollBehavior\" in getWindow().document.documentElement.style;\n\n const getElement = getWindow().document.getElementById(elementToScrollToId);\n\n getElement.scrollIntoView({\n behavior: supportsNativeSmoothScroll ? \"smooth\" : \"instant\",\n block,\n });\n}\n","function mapReviewPhotos(photos) {\n return photos.map(({ sizes: { thumbnail, normal } }) => ({\n thumbnailUrl: thumbnail.url,\n fullSizeUrl: normal.url,\n }));\n}\n\nexport function reviewMapper(result) {\n const {\n rating,\n title,\n reviewText,\n submissionRecency,\n syndicationSource,\n badgesOrder,\n photos = [],\n } = result;\n\n return {\n rating,\n title,\n reviewText,\n submissionRecency,\n syndicationSource,\n badgesOrder,\n photos: mapReviewPhotos(photos),\n };\n}\n","import { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { VIEW_MORE_OFFSET, VIEW_MORE_ERROR, FILTER_ERROR } from \"./constants\";\nimport RatingsAndReviews from \"./components/ratingsAndReviews/RatingsAndReviews\";\nimport RatingsAndReviewsModal from \"./components/ratingsAndReviewsModal/RatingsAndReviewsModal\";\nimport getReviews from \"./api/ratingsApi\";\nimport { fireRatingsAndReviewsOpenAnalytics } from \"./analytics/pageInteraction\";\nimport getWindow from \"./utils/window\";\nimport { useLiveRegion } from \"./context/liveRegion/LiveRegionContext\";\nimport { useRuntimeConstants } from \"./context/runtimeConstants/RuntimeConstantsContext\";\n\nconst DEFAULTS = {\n filterParamDefault: null,\n filterErrorParamDefault: null,\n filteredReviewCountDefault: null,\n filterValueDefault: 0,\n isFilterPendingDefault: false,\n isViewMorePendingDefault: false,\n viewMoreOffsetDefault: VIEW_MORE_OFFSET,\n ratingsApiErrorDefault: false,\n ratingsApiErrorTranslationDefault: null,\n};\n\nexport default function RatingsAndReviewsApp({ screenHoverable }) {\n const {\n getTranslation,\n webContext,\n ratings: defaultRatings,\n } = useRuntimeConstants();\n const { updateLiveRegion } = useLiveRegion();\n const [isRatingsModalOpen, setIsRatingsModalOpen] = useState(false);\n const [filterParam, setFilterParam] = useState(DEFAULTS.filterParamDefault);\n const [filterErrorParam, setFilterErrorParam] = useState(\n DEFAULTS.filterErrorParamDefault\n );\n const [filteredReviewCount, setFilteredReviewCount] = useState(\n DEFAULTS.filteredReviewCountDefault\n );\n const [filterValue, setFilterValue] = useState(DEFAULTS.filterValueDefault);\n const [isFilterPending, setIsFilterPending] = useState(\n DEFAULTS.isFilterPendingDefault\n );\n const [isViewMorePending, setIsViewMorePending] = useState(\n DEFAULTS.isViewMorePendingDefault\n );\n const [viewMoreOffset, setViewMoreOffset] = useState(\n DEFAULTS.viewMoreOffsetDefault\n );\n const [ratingsApiError, setRatingsApiError] = useState(\n DEFAULTS.ratingsApiErrorDefault\n );\n const [ratingsApiErrorTranslation, setRatingsApiErrorTranslation] = useState(\n DEFAULTS.ratingsApiErrorTranslationDefault\n );\n const [ratings, setRatings] = useState(defaultRatings);\n const [ratingsModalFocusOnClose, setRatingsModalFocusOnClose] =\n useState(null);\n\n const closeRatingsModal = () => {\n setIsRatingsModalOpen(false);\n setRatingsApiError(false);\n };\n\n const focusFilter = (filterParam) => {\n getWindow().document.getElementById(\n \"ratingsAndReviewsModal\"\n ).parentElement.scrollTop = 0;\n const filterElement = getWindow().document.getElementById(\n `ratingSelect-${filterParam}`\n );\n\n filterElement && filterElement.focus();\n };\n\n const removeFilter = () => {\n const currentFilterParam = filterParam;\n\n setFilterParam(DEFAULTS.filterParamDefault);\n setFilterErrorParam(DEFAULTS.filterErrorParamDefault);\n setFilteredReviewCount(DEFAULTS.filteredReviewCountDefault);\n setFilterValue(DEFAULTS.filterValueDefault);\n setIsFilterPending(DEFAULTS.isFilterPendingDefault);\n setIsViewMorePending(DEFAULTS.isViewMorePendingDefault);\n setViewMoreOffset(DEFAULTS.viewMoreOffsetDefault);\n setRatingsApiError(DEFAULTS.ratingsApiErrorDefault);\n setRatingsApiErrorTranslation(DEFAULTS.ratingsApiErrorTranslationDefault);\n setRatings(defaultRatings);\n\n updateLiveRegion(\n getTranslation(\"rdp_ratings_reviews_accessibility_filter_removed\")\n );\n\n setTimeout(() => {\n focusFilter(currentFilterParam);\n }, 500);\n };\n\n const getReviewsCallback = (filterArg) => {\n const offset = filterArg ? 0 : viewMoreOffset;\n const filter = filterArg ? `Rating:eq:${filterArg}` : filterParam;\n setIsFilterPending(Boolean(filterArg));\n setIsViewMorePending(!filterArg);\n setRatingsApiError(false);\n\n const loadingSpinner =\n getWindow().document.getElementById(\"loadingSpinner\");\n\n loadingSpinner && loadingSpinner.focus();\n\n return new Promise((resolve) => {\n getReviews({\n offset,\n filter,\n })\n .then(({ results, totalResults }) => {\n const reviews = filterArg\n ? results\n : [...ratings.reviews, ...results];\n\n const newFilteredReviewCount = filter ? totalResults : null;\n\n setRatings({ ...ratings, reviews });\n setIsFilterPending(false);\n setIsViewMorePending(false);\n setViewMoreOffset(offset + VIEW_MORE_OFFSET);\n setFilterParam(filter);\n setFilterErrorParam(null);\n setFilteredReviewCount(newFilteredReviewCount);\n setFilterValue(filterArg || filterValue);\n\n resolve();\n })\n .catch(() => {\n const error = filter\n ? {\n type: FILTER_ERROR,\n translation: getTranslation(\n \"checkout_api_timeout_dialogue_message\"\n ),\n }\n : {\n type: VIEW_MORE_ERROR,\n translation: getTranslation(\n \"pdp_ratings_reviews_reviews_api_error_message\"\n ),\n };\n\n setIsFilterPending(false);\n setIsViewMorePending(false);\n setRatingsApiError(error.type);\n setRatingsApiErrorTranslation(error.translation);\n setFilterErrorParam(filter || null);\n\n resolve();\n });\n });\n };\n\n const openRatingsModal = (event) => {\n setIsRatingsModalOpen(true);\n setRatingsModalFocusOnClose(event.target);\n fireRatingsAndReviewsOpenAnalytics(ratings);\n };\n\n const dismissApiError = () => {\n const currentRatingsApiError = ratingsApiError;\n setRatingsApiError(false);\n\n if (currentRatingsApiError === FILTER_ERROR) {\n focusFilter(filterErrorParam);\n } else {\n const viewMoreElement =\n getWindow().document.getElementById(\"viewMoreRatings\");\n\n viewMoreElement && viewMoreElement.focus();\n }\n };\n\n return (\n <>\n \n \n \n );\n}\n\nRatingsAndReviewsApp.propTypes = {\n screenHoverable: PropTypes.bool,\n};\n","import makeRequest from \"./makeRequest\";\nimport { reviewMapper } from \"../../mappers/review\";\nimport getRuntimeConstants from \"../runtimeConstants\";\n\nexport default async function getReviews({ offset, filter } = {}) {\n const {\n webContext: { browseLanguage, storeId },\n product: { id },\n ratingsApiPath,\n ratingsApiTimeout,\n } = getRuntimeConstants();\n\n const url = `${ratingsApiPath}/${id}`;\n const params = {\n offset,\n filter,\n limit: 10,\n include: \"Products\",\n store: storeId,\n lang: browseLanguage,\n filteredStats: \"reviews\",\n sort: \"SubmissionTime:desc\",\n };\n\n const mapData = ({ results, totalResults }) => {\n return {\n results: results.map((result) => reviewMapper(result)),\n totalResults,\n };\n };\n\n const handleErrorReturnValue = (error) => {\n throw error;\n };\n\n return makeRequest({\n url,\n params,\n timeout: ratingsApiTimeout,\n requestType: \"RATINGS_API\",\n apiName: \"Ratings\",\n caller: \"Ratings\",\n mapData,\n handleErrorReturnValue,\n });\n}\n","import { MAX_RECENTLY_VIEWED_PRODUCTS } from \"../../constants\";\nimport getConstants from \"../../runtimeConstants\";\nimport { getVariantFromUrl } from \"../../utils/url\";\nimport getWindow from \"../../utils/window\";\n\nconst STORAGE_KEY = \"asos-pdp-recentlyViewed\";\n\nexport async function savePageToLocalStorage() {\n const { hostAndPath, product, isMixAndMatch } = getConstants();\n const { id: productId, name: productTitle } = product;\n const imageUrl = product.images[0].url;\n let colourWayId;\n\n if (!isMixAndMatch) {\n const variantFromUrl = getVariantFromUrl(product);\n if (variantFromUrl) {\n colourWayId = variantFromUrl.colourWayId;\n } else {\n colourWayId = product.variants[0].colourWayId;\n }\n }\n\n setProduct({\n productId,\n url: `${hostAndPath}#ctaref-recently+viewed`,\n imageUrl,\n colourWayId,\n productTitle,\n isMixAndMatch,\n });\n}\n\nfunction getSavedObjectInStorage() {\n const recentlyViewedInLocalStorage =\n getWindow().localStorage.getItem(STORAGE_KEY);\n if (typeof recentlyViewedInLocalStorage === \"string\") {\n return JSON.parse(recentlyViewedInLocalStorage);\n }\n return { products: [] };\n}\n\nexport function getProductsInStorage() {\n const { webContext } = getConstants();\n const { storeId } = webContext;\n\n if (getSavedObjectInStorage().savedStore !== storeId) {\n clearProducts();\n return [];\n }\n return getSavedObjectInStorage().products;\n}\n\nexport function clearProducts() {\n getWindow().localStorage.removeItem(STORAGE_KEY);\n}\n\nexport function removeProduct(removeProductId) {\n const { webContext } = getConstants();\n const { storeId } = webContext;\n const products = [...getProductsInStorage()];\n\n const pageIndex = products.findIndex(\n ({ productId }) => productId === removeProductId\n );\n\n if (pageIndex !== -1) {\n products.splice(pageIndex, 1);\n }\n\n saveProductToLocalStorage({\n savedStore: storeId,\n products,\n });\n}\n\nfunction setProduct(value) {\n const { webContext } = getConstants();\n const { storeId } = webContext;\n const { products } = getSavedObjectInStorage();\n const currentlySavedProducts = [...products];\n const pageIndex = currentlySavedProducts.findIndex(\n ({ productId }) => productId === value.productId\n );\n\n if (pageIndex !== -1) {\n currentlySavedProducts.splice(pageIndex, 1);\n }\n\n currentlySavedProducts.unshift(value);\n if (currentlySavedProducts.length > MAX_RECENTLY_VIEWED_PRODUCTS) {\n currentlySavedProducts.pop();\n }\n saveProductToLocalStorage({\n savedStore: storeId,\n products: currentlySavedProducts,\n });\n}\n\nfunction saveProductToLocalStorage(savedObject) {\n getWindow().localStorage.setItem(STORAGE_KEY, JSON.stringify(savedObject));\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"clearButton\":\"EHMyj\",\"title\":\"kESX_\",\"container\":\"FxvrR\",\"subContainer\":\"sq11P\",\"header\":\"x_1UE\",\"screenreaderOnly\":\"BtxFF\"};","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"SRJr1\"};","import PropTypes from \"prop-types\";\nimport styles from \"./SquareButton.scss\";\n\nexport default function SquareButton({\n text,\n handleClick,\n additionalClasses,\n ariaDescribedby,\n testId,\n}) {\n const classes = additionalClasses\n ? `${styles.button} ${additionalClasses}`\n : styles.button;\n\n return (\n \n {text}\n \n );\n}\n\nSquareButton.propTypes = {\n text: PropTypes.string.isRequired,\n handleClick: PropTypes.func.isRequired,\n additionalClasses: PropTypes.string,\n ariaDescribedby: PropTypes.string,\n testId: PropTypes.string,\n};\n","import { useState, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Carousel,\n CarouselMode,\n} from \"@asosteam/asos-web-component-library-carousel\";\nimport {\n clearProducts,\n removeProduct as removeProductFromLocalStorage,\n getProductsInStorage,\n savePageToLocalStorage,\n} from \"./recentlyViewedLocalStorage\";\nimport getDefaultCarouselSettings from \"../../utils/getDefaultCarouselSettings\";\nimport {\n PAGE_AREAS,\n SMALL_VIEWPORT,\n MEDIUM_VIEWPORT,\n LARGE_VIEWPORT,\n MAX_RECENTLY_VIEWED_PRODUCTS,\n} from \"../../constants\";\nimport { fireClearAllAnalytics } from \"../../analytics/pageInteraction\";\nimport styles from \"./RecentlyViewed.scss\";\nimport ProductTile from \"../productTile/ProductTile\";\nimport SquareButton from \"../buttons/square/SquareButton\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useLiveRegion } from \"../../context/liveRegion/LiveRegionContext\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { buildProductTileAriaLabel } from \"../productTile/buildProductTileAriaLabel\";\n\nexport default function RecentlyViewed({ screenHoverable }) {\n const { viewportCategory } = useViewport();\n const { updateLiveRegion } = useLiveRegion();\n const [products, setProducts] = useState(getProductsInStorage);\n const { getTranslation } = useRuntimeConstants();\n\n useEffect(() => {\n savePageToLocalStorage();\n }, []);\n\n const removeProductFromState = (productId) => {\n const filteredProducts = products.filter(\n (product) => product.productId !== productId\n );\n setProducts(filteredProducts);\n };\n\n const handleClearClick = () => {\n updateLiveRegion(\n getTranslation(\"pdp_carousel_recently_viewed_clear_all_complete\")\n );\n clearProducts();\n fireClearAllAnalytics();\n setProducts([]);\n savePageToLocalStorage();\n };\n\n const handleRemoveClick = (productId, title) => {\n updateLiveRegion(\n `${title} - ${getTranslation(\n \"pdp_carousel_recently_viewed_clear_item_complete\"\n )}`\n );\n removeProductFromLocalStorage(productId);\n removeProductFromState(productId);\n };\n\n const getTitleAriaLabel = () => {\n return `${getTranslation(\n \"pdp_carousel_recently_viewed_title\"\n )}, ${getTranslation(\"pdp_misc_count_products\", {\n total: products.length,\n })}`;\n };\n\n return (\n products.length > 0 && (\n \n
\n
\n \n {getTranslation(\"pdp_carousel_recently_viewed_title\")}\n \n \n {getTranslation(\"pdp_carousel_recently_viewed_description\")}\n

\n \n
\n {\n \n {products.map(\n (\n {\n productId,\n url,\n imageUrl,\n productTitle,\n colourWayId,\n isMixAndMatch,\n },\n index\n ) => (\n \n )\n )}\n \n }\n
\n \n )\n );\n}\n\nfunction getCarouselItemsPerRow(viewport) {\n return {\n [SMALL_VIEWPORT]: MAX_RECENTLY_VIEWED_PRODUCTS,\n [MEDIUM_VIEWPORT]: 3,\n [LARGE_VIEWPORT]: 4,\n }[viewport];\n}\n\nRecentlyViewed.propTypes = {\n screenHoverable: PropTypes.bool.isRequired,\n};\n","export const EDGE_FEATURE_BUCKET = { OUT_OF_STOCK_HERO: \"oosRecsHero\" };\n\nexport function showOutOfStockHero(edgeFeature, isInStock) {\n return !!(\n edgeFeature &&\n edgeFeature.bucket === EDGE_FEATURE_BUCKET.OUT_OF_STOCK_HERO &&\n isInStock === false\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"eUXiS\",\"fullwidth_container\":\"jfUWa\",\"container\":\"GOzIr\",\"header\":\"uaDjd\",\"screenreaderOnly\":\"ZumgF\"};","import PropTypes from \"prop-types\";\nimport {\n Carousel,\n CarouselMode,\n} from \"@asosteam/asos-web-component-library-carousel\";\nimport ProductTile from \"../productTile/ProductTile\";\nimport styles from \"./PeopleAlsoBought.scss\";\nimport RankingDisclaimerMessage from \"../rankingDisclaimerMessage/RankingDisclaimerMessage\";\nimport { PAGE_AREAS } from \"../../constants\";\nimport getDefaultCarouselSettings from \"../../utils/getDefaultCarouselSettings\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { buildProductTileAriaLabel } from \"../productTile/buildProductTileAriaLabel\";\nimport TitleThenPrice from \"../productTile/TitleThenPrice\";\n\nexport default function PeopleAlsoBought({\n sdks,\n products,\n showDiscountPercentage,\n}) {\n const { viewportCategory } = useViewport();\n const { getTranslation } = useRuntimeConstants();\n\n return (\n
\n

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

\n \n
\n

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

\n \n
\n \n {products.map(\n (\n {\n productId,\n url,\n imageUrl,\n productTitle,\n colourWayId,\n priceData,\n },\n index\n ) => (\n \n \n \n )\n )}\n \n \n
\n );\n}\n\nPeopleAlsoBought.propTypes = {\n sdks: PropTypes.shape({ savedItems: PropTypes.object.isRequired }).isRequired,\n products: PropTypes.arrayOf(\n PropTypes.shape({\n productId: PropTypes.number.isRequired,\n url: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n productTitle: PropTypes.string.isRequired,\n colourWayId: PropTypes.number.isRequired,\n priceData: PropTypes.shape({\n current: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired,\n }).isRequired,\n }).isRequired,\n })\n ).isRequired,\n showDiscountPercentage: PropTypes.bool.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"HAYSQ\",\"title\":\"mv5Tr\",\"subtitle\":\"yKsKB\",\"section\":\"lPqrc\",\"container\":\"Sfp8G\",\"image\":\"WWK_e\",\"tagContainer\":\"P7I2Y\"};","import { useRef } from \"react\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport Image from \"../image/Image\";\nimport { handleModalTriggerEvent } from \"./utils/handleModalTriggerEvent\";\nimport styles from \"./LooksImageButton.scss\";\nimport { LOOKS_POSITION } from \"../../analytics/looks/looksModal\";\nimport { LOOKS_OPEN_MODAL_EVENT } from \"./constants\";\n\nconst LooksImageButton = () => {\n const { getTranslation, isMobile, looksData } = useRuntimeConstants();\n\n const buttonRef = useRef(null);\n\n const handleClick = () => {\n handleModalTriggerEvent({\n focusOnCloseElement: buttonRef.current,\n position: LOOKS_POSITION.BOTTOM,\n eventKey: LOOKS_OPEN_MODAL_EVENT,\n isMobile,\n });\n };\n\n return (\n
\n \n
\n

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

\n

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

\n\n \n
\n \n
\n );\n};\n\nexport default LooksImageButton;\n","import { getPrimaryImage } from \"../../../utils/product\";\n\nconst getLookHeroProduct = (looksProducts) => {\n return looksProducts.find((product) => product.isHero) || looksProducts[0];\n};\n\nexport const getLookHeroImageUrl = ({ product, looksProducts }) =>\n getLookHeroProduct(looksProducts)?.lookProductImage\n ? `//${getLookHeroProduct(looksProducts).lookProductImage}`\n : getPrimaryImage(product.images).url;\n","import { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport LooksCarousel from \"./LooksCarousel\";\nimport Image from \"../image/Image\";\nimport LooksProduct from \"./LooksProduct\";\nimport styles from \"./LooksSection.scss\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useSelectedLooksProduct } from \"../../context/looks/SelectedLooksProductContext\";\nimport { VariantContextProvider } from \"../../context/variant/VariantContext\";\nimport { ProductContextProvider } from \"../../context/product/ProductContext\";\nimport { LOOKS_SECTION_ID } from \"./constants\";\nimport { fireLooksProductViewTracking } from \"../../analytics/looks/looksProduct\";\nimport { getLookHeroImageUrl } from \"./utils/heroProductUtils\";\n\nconst LooksDesktopSection = ({ product }) => {\n const { getTranslation } = useRuntimeConstants();\n const { looksProducts } = useLooksProducts();\n const { selectedLooksProduct } = useSelectedLooksProduct();\n const [selected, setSelected] = useState(selectedLooksProduct.id);\n\n const { length: looksProductCount } = looksProducts.filter(\n (product) => product.isHero === false\n );\n\n useEffect(() => {\n if (selected !== selectedLooksProduct?.id) {\n fireLooksProductViewTracking({\n looksProducts,\n selectedLooksProduct,\n isMobile: false,\n });\n setSelected(selectedLooksProduct.id);\n }\n }, [looksProducts, selected, selectedLooksProduct]);\n\n return (\n \n
\n
\n
\n

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

\n

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

\n
\n

\n {getTranslation(\"buy_the_look_items_count\", {\n smart_count: looksProductCount,\n count: looksProductCount,\n })}\n

\n
\n
\n \n
\n \n \n \n \n \n \n
\n
\n
\n \n );\n};\n\nLooksDesktopSection.propTypes = {\n product: PropTypes.object.isRequired,\n};\n\nexport default LooksDesktopSection;\n","// extracted by mini-css-extract-plugin\nexport default {\"header\":\"RdElA\",\"title\":\"UKrXW\",\"subtitle\":\"VIvdZ\",\"itemCount\":\"jxoum\",\"container\":\"SG0a_\",\"subContainer\":\"kxcK8\",\"tagContainer\":\"XLCpP\",\"product\":\"Od_Fh\",\"heroImage\":\"FmMPc\",\"productAside\":\"xJ9Te\"};","import getWindow from \"../../utils/window\";\nimport { getOOSProducts } from \"../../utils/product\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport { setEvents, setLinkTrackEvents } from \"../events\";\nimport { waitForPageLoadAnalytics } from \"../pageLoad\";\nimport { getCommonLooksTrackingValues } from \"./common\";\n\nexport let defuseScrollIntoViewTracking = false;\n\nexport const fireLooksButtonClickScrollTracking = async ({ products }) => {\n await waitForPageLoadAnalytics;\n\n defuseScrollIntoViewTracking = true;\n\n const s = getWindow().s;\n const commons = getCommons();\n const BTL_BTN_SCROLL_CLICK = \"looksButtonScroll\";\n const nonHeroProducts = products.filter(({ isHero }) => !isHero);\n const looksProductsIds = nonHeroProducts.map(({ id }) => id);\n\n s.products = looksProductsIds.map((id) => `;${id};;;;`).join(\",\");\n\n setEvents({\n events: [\n `event342=${products.length}`,\n `event343=${getOOSProducts(products).length}`,\n ],\n trackingName: BTL_BTN_SCROLL_CLICK,\n });\n\n const commonLooksTracking = getCommonLooksTrackingValues({ products });\n\n s.tl(true, \"o\", \"btl PDP content scroll\", {\n ...commonLooksTracking,\n prop6: \"btl cta\",\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n ...Object.keys(commonLooksTracking),\n \"prop6\",\n ]),\n linkTrackEvents: setLinkTrackEvents({ trackingName: BTL_BTN_SCROLL_CLICK }),\n });\n};\n","import PropTypes from \"prop-types\";\nimport LooksImageButton from \"./LooksImageButton\";\nimport LooksDesktopSection from \"./LooksDesktopSection\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport useFiftyPercentInView from \"../../hooks/useFiftyPercentInView\";\nimport { fireLooksScrollToView } from \"../../analytics/looks/looksScrollToView\";\n\nconst LooksSection = ({ product }) => {\n const { isMobile } = useRuntimeConstants();\n const { looksProducts } = useLooksProducts();\n const ref = useFiftyPercentInView(() =>\n fireLooksScrollToView({\n products: looksProducts,\n isMobile,\n })\n );\n\n if (!looksProducts?.length) {\n return null;\n }\n\n return (\n
\n {isMobile ? (\n \n ) : (\n \n )}\n
\n );\n};\n\nLooksSection.propTypes = {\n product: PropTypes.object.isRequired,\n};\n\nexport default LooksSection;\n","import { useRef, useEffect } from \"react\";\nimport {\n setIntersectionObserver,\n unsetIntersectionObserver,\n} from \"../utils/setIntersectionObserver\";\n\nconst useFiftyPercentInView = (callback) => {\n const observer = useRef(null);\n const element = useRef(null);\n\n const refCallback = (node) => {\n if (node && !observer.current) {\n element.current = node;\n observer.current = setIntersectionObserver({\n element: element.current,\n options: {\n threshold: 0.5,\n },\n handleIntersectionData: ({ isIntersecting }) => {\n if (isIntersecting) callback();\n },\n observeIntersectionOnce: true,\n });\n }\n };\n\n useEffect(\n () => () => {\n unsetIntersectionObserver(element.current, observer.current);\n },\n []\n );\n\n return refCallback;\n};\n\nexport default useFiftyPercentInView;\n","import { waitForPageLoadAnalytics } from \"../pageLoad\";\nimport getWindow from \"../../utils/window\";\nimport { getOOSProducts } from \"../../utils/product\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport { setEvents, setLinkTrackEvents } from \"../events\";\nimport { getCommonLooksTrackingValues } from \"./common\";\nimport { defuseScrollIntoViewTracking } from \"./looksButtonClickScroll\";\n\nexport const fireLooksScrollToView = async ({ products, isMobile }) => {\n if (defuseScrollIntoViewTracking) {\n return;\n }\n\n await waitForPageLoadAnalytics;\n\n const s = getWindow().s;\n const commons = getCommons();\n const TRACKING_NAME = isMobile ? \"looksCtaView\" : \"looksContentView\";\n const TRACKING_AREA = isMobile ? \"CTA\" : \"content\";\n\n let events = [\"event172\"];\n\n if (!isMobile) {\n events = [\n ...events,\n `event342=${products.length}`,\n `event343=${getOOSProducts(products).length}`,\n ];\n }\n\n setEvents({\n events,\n trackingName: TRACKING_NAME,\n });\n\n s.eVar106 = `btl|${TRACKING_AREA}|impression`;\n\n const commonLooksTracking = getCommonLooksTrackingValues({ products });\n\n s.tl(true, \"o\", `btl ${TRACKING_AREA.toLowerCase()} impression`, {\n ...commonLooksTracking,\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n ...Object.keys(commonLooksTracking),\n \"eVar106\",\n ]),\n linkTrackEvents: setLinkTrackEvents({\n trackingName: TRACKING_NAME,\n }),\n });\n};\n","import getRequest from \"../utils/requests\";\nimport { formatUrl, queryObjectToString } from \"../utils/url\";\nimport getRuntimeConstants from \"../runtimeConstants\";\nimport { logError, ERROR_TYPE } from \"../utils/newRelicLogger\";\n\nfunction formatProductLink(url, indexZeroBased) {\n const separator = url.includes(\"#\") ? \"&\" : \"#\";\n const queryString = `${separator}CTAref-Complete+the+Look+Carousel_${\n indexZeroBased + 1\n }&featureref1-complete+the+look`;\n\n return `${url}${queryString}`;\n}\n\nexport default async function getBuyTheLook() {\n const {\n webContext: {\n keyStoreDataversion,\n browseCurrency,\n browseLanguage,\n storeId,\n browseCountry,\n },\n product: { id },\n buyTheLookFromSearchUrl,\n buyTheLookFromSearchTimeout,\n siteDomain,\n } = getRuntimeConstants();\n\n const url = `${buyTheLookFromSearchUrl}${id}`;\n const params = {\n keyStoreDataversion,\n store: storeId,\n currency: browseCurrency,\n lang: browseLanguage,\n country: browseCountry,\n };\n\n return getRequest()\n .get({\n url,\n timeout: buyTheLookFromSearchTimeout,\n params,\n additionalLoggingParams: {\n requestType: \"BUY_THE_LOOK_API\",\n },\n })\n .then((response) => {\n if ([202, 204].includes(response.status)) {\n return [];\n }\n return response.data.products.map(\n ({ id, url, imageUrl, name, colourWayId, price }, index) => ({\n productId: id,\n url: formatProductLink(`${siteDomain}/${url}`, index),\n imageUrl: formatUrl(imageUrl),\n productTitle: name,\n colourWayId,\n priceData: price,\n })\n );\n })\n .catch((error) => {\n logError(ERROR_TYPE.AjaxError, {\n apiName: \"Search\",\n caller: \"BuyTheLook\",\n requestUrl: `${url}?${queryObjectToString(params)}`,\n message: error.message,\n status: error.response?.status,\n response: error.response?.data,\n requestHeaders: error.config?.headers,\n responseHeaders: error.response?.headers,\n });\n return [];\n });\n}\n","import { useEffect, useState } from \"react\";\nimport { getFeature } from \"../../utils/features\";\nimport getBuyTheLook from \"../../api/buyTheLookApi\";\n\nconst useBuyTheLookProducts = ({\n showUpSell,\n areFeaturesReady,\n isMixAndMatch,\n shouldShowLooksSection,\n}) => {\n const [buyTheLookProducts, setBuyTheLookProducts] = useState([]);\n const [shouldDisplayBuyTheLook, setShouldDisplayBuyTheLook] = useState(false);\n\n useEffect(() => {\n if (showUpSell && areFeaturesReady) {\n const features = {\n \"pdp-btl-from-search\": getFeature(\"pdp-btl-from-search\").isEnabled(),\n };\n\n setShouldDisplayBuyTheLook(features[\"pdp-btl-from-search\"]);\n }\n }, [showUpSell, areFeaturesReady]);\n\n useEffect(() => {\n if (\n !isMixAndMatch &&\n shouldDisplayBuyTheLook &&\n shouldShowLooksSection === false\n ) {\n getBuyTheLook().then(setBuyTheLookProducts);\n }\n }, [shouldDisplayBuyTheLook, isMixAndMatch, shouldShowLooksSection]);\n\n return buyTheLookProducts;\n};\n\nexport default useBuyTheLookProducts;\n","import { useState, useEffect } from \"react\";\nimport { getFeature } from \"../../utils/features\";\nimport getRecommendations from \"../../api/mightLikeApi\";\n\nconst shouldDisplayPeopleAlsoBought = ({ showUpSell, isInStock }) =>\n showUpSell &&\n getFeature(\"pdp-people-also-bought\", null, {\n isInStock,\n }).isEnabled();\n\nconst useRecommendationProducts = ({\n showUpSell,\n isInStock,\n isStockStateReady,\n areFeaturesReady,\n isMixAndMatch,\n}) => {\n const [recommendationProducts, setRecommendationProducts] = useState([]);\n\n useEffect(() => {\n if (\n isStockStateReady &&\n areFeaturesReady &&\n !isMixAndMatch &&\n shouldDisplayPeopleAlsoBought({ showUpSell, isInStock })\n ) {\n getRecommendations({ isInStock, type: \"complementary\" }).then(\n (products) => {\n setRecommendationProducts(products);\n }\n );\n }\n }, [\n showUpSell,\n isInStock,\n isStockStateReady,\n areFeaturesReady,\n isMixAndMatch,\n ]);\n\n return recommendationProducts;\n};\n\nexport default useRecommendationProducts;\n","import PropTypes from \"prop-types\";\nimport BuyTheLook from \"../../components/buyTheLook/BuyTheLook\";\nimport YouMightAlsoLike from \"../../components/youMightAlsoLike/YouMightAlsoLike\";\nimport RatingsAndReviewsApp from \"../../RatingsAndReviewsApp\";\nimport RecentlyViewed from \"../../components/recentlyViewed/RecentlyViewed\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\nimport useRatingsFeatureRequirements from \"../../hooks/ratingsFeatureRequirements/useRatingsFeatureRequirements\";\nimport { showOutOfStockHero } from \"../../utils/edgeFeature\";\nimport getSdks from \"../../utils/sdks\";\nimport getWindow from \"../../utils/window\";\nimport PeopleAlsoBought from \"../../components/peopleAlsoBought/PeopleAlsoBought\";\nimport LooksSection from \"../../components/looks/LooksSection\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport useDiscountPercentage from \"../../hooks/useDiscountPercentage\";\nimport useBuyTheLookProducts from \"./useBuyTheLookProducts\";\nimport useRecommendationProducts from \"./useRecommendationProducts\";\n\nexport default function CarouselsAndReviews({ product }) {\n const { isStockStateReady, isInStock } = useIsInStockContext();\n const { areFeaturesReady } = useFeaturesReady();\n const { isMixAndMatch, edgeFeature, ratings } = useRuntimeConstants();\n const { showDiscountPercentage } = useDiscountPercentage();\n const ratingsFeatureRequirementsAchieved = useRatingsFeatureRequirements(\n ratings,\n isInStock\n );\n function isScreenHoverable() {\n return getWindow().matchMedia(\"(hover: hover)\").matches;\n }\n const screenHoverable = isScreenHoverable();\n const { showUpSell } = product;\n const { shouldShowLooksSection } = useLooksProducts();\n const recommendationProducts = useRecommendationProducts({\n showUpSell,\n isInStock,\n isStockStateReady,\n areFeaturesReady,\n isMixAndMatch,\n });\n const buyTheLookProducts = useBuyTheLookProducts({\n showUpSell,\n areFeaturesReady,\n isMixAndMatch,\n shouldShowLooksSection,\n });\n\n const renderBuyTheLook = () =>\n buyTheLookProducts.length > 0 && (\n \n );\n\n const renderPeopleAlsoBought = () =>\n recommendationProducts.length > 0 && (\n \n );\n\n const renderRatingsAndReviewsApp = () =>\n !isMixAndMatch &&\n ratingsFeatureRequirementsAchieved &&\n ratings?.displayRatingsSection && (\n \n );\n\n const renderMightLike = () =>\n showUpSell &&\n isStockStateReady &&\n !showOutOfStockHero(edgeFeature, isInStock) && ;\n\n const renderLooksSection = () =>\n showUpSell && shouldShowLooksSection && ;\n\n const renderRecentlyViewed = () =>\n showUpSell && ;\n\n return (\n
\n {renderMightLike()}\n {renderLooksSection()}\n {renderPeopleAlsoBought()}\n {renderBuyTheLook()}\n {renderRatingsAndReviewsApp()}\n {renderRecentlyViewed()}\n
\n );\n}\n\nCarouselsAndReviews.propTypes = {\n product: PropTypes.object.isRequired,\n};\n","import { useEffect, useState } from \"react\";\nimport { fireSaveForLaterMarketing } from \"../../utils/marketingTracking/marketingTrackingEvents\";\nimport ReactDOM from \"react-dom\";\nimport PropTypes from \"prop-types\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport SaveForLaterButton from \"../../components/buttons/saveForLaterButton/SaveForLaterButton\";\nimport saveForLater from \"../../utils/saveForLater\";\nimport { PAGE_AREAS } from \"../../constants\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport { getVariantFromUrl } from \"../../utils/url\";\nimport { getPrimaryVariant } from \"../../utils/product\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nfunction SaveForLaterPortal({ product, ...transferredProps }) {\n const { isMixAndMatch } = useRuntimeConstants();\n const portalElement = useElementWhenReady(\n `#save-for-later-portal-${product.id}`\n );\n const getVariant = getVariantFromUrl(product);\n\n const defaultItems = product.products || [{ ...product }];\n const hasMultipleProductItems = defaultItems.length > 1;\n const defaultColourWayId = getPrimaryVariant(\n defaultItems[0].variants\n ).colourWayId;\n const preSelectedVariant = isMixAndMatch ? null : getVariant?.variantId;\n const initialItemLookup = defaultItems.reduce(\n (accumulator, product) => mapItem(accumulator, product),\n {}\n );\n\n const defaultVariantIdentifier = `colourWayId:${defaultColourWayId}`;\n const [itemLookup, setItemLookup] = useState(initialItemLookup);\n const [variantIdentifier, setVariantIdentifier] = useState(\n defaultVariantIdentifier\n );\n\n const noVariantSelection = (productId) => {\n const productAppendix = hasMultipleProductItems ? `:${productId}` : \"\";\n setVariantIdentifier(`${defaultVariantIdentifier}${productAppendix}`);\n setItemLookup((itemLookup) => ({\n ...itemLookup,\n [productId]: {\n ...initialItemLookup[productId],\n },\n }));\n };\n\n const variantSelection = (variantId, productId) => {\n setVariantIdentifier(`variantId:${variantId}`);\n setItemLookup((itemLookup) => {\n const { sellingFast = false } = itemLookup[productId];\n return {\n ...itemLookup,\n [productId]: {\n sellingFast,\n variantId,\n productId,\n },\n };\n });\n };\n\n useEffect(() => {\n if (preSelectedVariant) {\n variantSelection(preSelectedVariant, product.id);\n }\n }, [preSelectedVariant, product.id]);\n\n useEventBus(\n \"sizeChanged\",\n ({ variantId, productId }) => {\n const shouldUpdate = hasMultipleProductItems || productId === product.id;\n\n if (shouldUpdate) {\n if (variantId) {\n variantSelection(variantId, productId);\n } else {\n noVariantSelection(productId);\n }\n }\n },\n [hasMultipleProductItems]\n );\n\n const handleSaveClick = () => {\n const items = Object.values(itemLookup);\n\n saveForLater({\n product,\n items,\n pageArea: PAGE_AREAS.MAIN,\n });\n\n const selectedVariant = product.variants.find((variant) => {\n return variant.variantId === items[0].variantId;\n });\n\n fireSaveForLaterMarketing(\n product,\n selectedVariant ? [selectedVariant] : product.variants\n );\n };\n\n if (!portalElement) return null;\n\n const keys = hasMultipleProductItems ? { key: variantIdentifier } : {};\n\n return ReactDOM.createPortal(\n ,\n portalElement\n );\n}\n\nSaveForLaterPortal.propTypes = {\n transferredProps: PropTypes.object,\n product: PropTypes.object.isRequired,\n};\n\nfunction mapItem(previousValue, { variants, id, sellingFast = false }) {\n return {\n ...previousValue,\n [id]: {\n colourWayId: getPrimaryVariant(variants).colourWayId,\n productId: id,\n sellingFast,\n },\n };\n}\n\nexport default SaveForLaterPortal;\n","// extracted by mini-css-extract-plugin\nexport default {\"saveCountWrapper\":\"ii5iT\",\"saveCountvalue\":\"BFMOG\",\"saveCountHeartIcon\":\"Qg1xL\"};","const COUNT_FORMATS = [\n {\n letter: \"\",\n limit: 1e3,\n roundValue: 1,\n },\n {\n letter: \"K\",\n limit: 1e6,\n roundValue: 1000,\n },\n {\n letter: \"M\",\n limit: Infinity,\n roundValue: 1000000,\n },\n];\n\nexport const getShortScale = (value, storeCode = \"COM\") =>\n storeCode === \"DK\"\n ? \"\"\n : COUNT_FORMATS.find((format) => value < format.limit)?.letter;\n\nexport const getShortValue = (value, storeCode = \"COM\") => {\n const format = COUNT_FORMATS.find((format) => value < format.limit);\n\n if (storeCode === \"DK\")\n return value.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\n\n return Math.round(value / format.roundValue);\n};\n","import { useState, useEffect } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { useFeaturesReady } from \"../../context/featuresReady/FeaturesReadyContext\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport { getFeature } from \"../../utils/features\";\nimport classnamesBind from \"classnames/bind\";\nimport styles from \"./SaveCount.scss\";\nimport { getShortValue, getShortScale } from \"../../utils/readableNumbers\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport { setSaveCount } from \"../../analytics/pageLoad\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport const DEFAULT_SAVE_THRESHOLD = 50;\n\nconst SaveCount = () => {\n const { areFeaturesReady } = useFeaturesReady();\n const portalElement = useElementWhenReady(`#image-overlay-slot`);\n const [showSavedBadge, setShowSavedBadge] = useState(false);\n const [saveThreshold, setSaveThreshold] = useState(DEFAULT_SAVE_THRESHOLD);\n const [videoPlaying, setVideoPlaying] = useState(false);\n const { isInStock } = useIsInStockContext();\n\n useEventBus(\"videoPlaybackStarted\", () => setVideoPlaying(true));\n useEventBus(\"videoPlaybackStopped\", () => setVideoPlaying(false));\n\n const {\n webContext: { storeId },\n product: { saveCount },\n getTranslation,\n } = useRuntimeConstants();\n\n useEffect(() => {\n if (areFeaturesReady && isInStock === true) {\n const feature = getFeature(\"pdp-save-count\");\n setShowSavedBadge(feature.isEnabled());\n setSaveThreshold(\n feature.getVariables()?.thresholdSavesToShow || DEFAULT_SAVE_THRESHOLD\n );\n }\n }, [areFeaturesReady, isInStock]);\n\n const getSaveCountString = (value) => {\n switch (getShortScale(value, storeId)) {\n case \"K\":\n return getTranslation(\"pdp_saved_count_social_proofing_thousands\", {\n saveCount: getShortValue(value, storeId),\n });\n case \"M\":\n return getTranslation(\"pdp_saved_count_social_proofing_millions\", {\n saveCount: getShortValue(value, storeId),\n });\n default:\n return getShortValue(value, storeId);\n }\n };\n\n saveCount.value = saveCount.value || 0;\n\n const shouldHideSaveCount = () =>\n !portalElement ||\n !showSavedBadge ||\n saveCount.value < saveThreshold ||\n !saveCount.canShowSaveCount ||\n videoPlaying;\n\n if (shouldHideSaveCount()) {\n return null;\n }\n\n setSaveCount(saveCount.value);\n\n return ReactDOM.createPortal(\n \n \n {getSaveCountString(saveCount.value)}\n \n \n
,\n portalElement\n );\n};\n\nexport default SaveCount;\n","// extracted by mini-css-extract-plugin\nexport default {\"galleryButton\":\"qj3QU\",\"icon\":\"qktS0\",\"text\":\"LE9Nz\"};","import { forwardRef } from \"react\";\nimport Button from \"../button/Button\";\nimport styles from \"./GalleryButton.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport PropTypes from \"prop-types\";\nimport { BUTTON_TYPES } from \"../button/ButtonTypes\";\nimport { TEXT_SIZES } from \"../../../constants\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst GalleryButton = forwardRef(\n ({ iconClass, ariaLabel, buttonText, handleClick, dataTestId }, ref) => {\n return (\n \n <>\n {iconClass && (\n \n )}\n {buttonText}\n \n \n );\n }\n);\n\nGalleryButton.propTypes = {\n ariaLabel: PropTypes.string.isRequired,\n buttonText: PropTypes.string.isRequired,\n handleClick: PropTypes.func.isRequired,\n iconClass: PropTypes.string,\n dataTestId: PropTypes.string,\n};\n\nGalleryButton.displayName = \"GalleryButton\";\n\nexport default GalleryButton;\n","import scrollTo from \"../../../utils/scrollTo/scrollTo\";\nimport { fireLooksButtonClickScrollTracking } from \"../../../analytics/looks/looksButtonClickScroll\";\n\nexport const handleLooksScroll = ({ event, looksProducts }) => {\n fireLooksButtonClickScrollTracking({ products: looksProducts });\n scrollTo(\"buyTheLookTitle\", event);\n};\n","import { useRef, useState, useEffect } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport GalleryButton from \"../buttons/galleryButton/GalleryButton\";\nimport { handleModalTriggerEvent } from \"./utils/handleModalTriggerEvent\";\nimport { hasAssociatedLooks } from \"./utils/hasAssociatedLooks\";\nimport { useLooksProducts } from \"../../context/looks/LooksProductsContext\";\nimport { LOOKS_POSITION } from \"../../analytics/looks/looksModal\";\nimport { LOOKS_OPEN_MODAL_EVENT } from \"./constants.js\";\nimport { handleLooksScroll } from \"./utils/handleLooksScroll\";\nimport styles from \"./LooksButton.scss\";\n\nconst LooksButton = () => {\n const [shouldShowLooksButton, setShouldShowLooksButton] = useState(false);\n const mobilePortalElement = useElementWhenReady(`#looks-button-portal`);\n const desktopPortalElement = useElementWhenReady(\n `#looks-button-portal-desktop`\n );\n const { getTranslation, isMobile } = useRuntimeConstants();\n const buttonText = getTranslation(\"pdp_associated_buy_the_look_title\");\n const looksButtonRef = useRef();\n const { looksProducts } = useLooksProducts();\n\n useEffect(() => {\n if (mobilePortalElement || desktopPortalElement) {\n setShouldShowLooksButton(hasAssociatedLooks({ looksProducts }));\n }\n }, [mobilePortalElement, desktopPortalElement, looksProducts]);\n\n if (!shouldShowLooksButton) {\n return null;\n }\n\n const handleClick = (event) => {\n if (isMobile) {\n handleModalTriggerEvent({\n focusOnCloseElement: looksButtonRef.current,\n position: LOOKS_POSITION.TOP,\n eventKey: LOOKS_OPEN_MODAL_EVENT,\n });\n } else {\n handleLooksScroll({ event, looksProducts });\n }\n };\n\n return createPortal(\n
\n \n
,\n isMobile ? mobilePortalElement : desktopPortalElement\n );\n};\n\nexport default LooksButton;\n","// extracted by mini-css-extract-plugin\nexport default {\"looksButtonWrapper\":\"vDJuQ\"};","import { createPortal } from \"react-dom\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport RepeatedTextBanner from \"../../components/repeatedTextBanner/RepeatedTextBanner\";\n\nconst RepeatedTextBannerPortal = () => {\n const portalElement = useElementWhenReady(\n \"#early-access-product-banner-portal\"\n );\n\n if (!portalElement) {\n return null;\n }\n\n return createPortal(\n ,\n portalElement\n );\n};\n\nexport default RepeatedTextBannerPortal;\n","// extracted by mini-css-extract-plugin\nexport default {\"mixAndMatchPaymentPromoContainer\":\"F9erN\"};","import ReactDOM from \"react-dom\";\nimport PropTypes from \"prop-types\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport PaymentPromo from \"../../components/paymentPromo/PaymentPromo\";\nimport styles from \"./MixAndMatchPaymentPromoContainer.scss\";\nimport { getLowestPriceInStockVariant } from \"../../utils/discountPriceData\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\n\nconst PortalComponent = ({ portalId, price }) => {\n const portalElement = useElementWhenReady(\n `#payment-promo-portal-${portalId}`\n );\n\n if (!portalElement) {\n return null;\n }\n\n return ReactDOM.createPortal(\n
\n \n
,\n portalElement\n );\n};\n\nPortalComponent.propTypes = {\n price: PropTypes.string.isRequired,\n portalId: PropTypes.string.isRequired,\n};\n\nconst PaymentPromoPortalsList = ({ products }) => {\n return products.map((singleProduct) => {\n const lowestInStockVariant = getLowestPriceInStockVariant(singleProduct);\n return singleProduct.isInStock ? (\n \n ) : null;\n });\n};\n\nconst MixAndMatchPaymentPromoContainer = () => {\n const { isMixAndMatch } = useRuntimeConstants();\n const { products } = useStockPrice();\n\n const isMixAndMatchWithProducts = isMixAndMatch && products?.products?.length;\n\n if (!isMixAndMatchWithProducts) {\n return null;\n }\n\n return ;\n};\n\nexport default MixAndMatchPaymentPromoContainer;\n","import ReactDOM from \"react-dom\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport useElementWhenReady from \"../../hooks/useElementWhenReady\";\nimport { StarRatingGroup } from \"../../components/ratingComponents\";\nimport { RATINGS_WITHOUT_REVIEWS_TEXT } from \"../../components/ratingComponents/ratingTypes\";\nimport useRatingsFeatureRequirements from \"../../hooks/ratingsFeatureRequirements/useRatingsFeatureRequirements\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\nimport PropTypes from \"prop-types\";\n\nconst MixAndMatchRatingsContainerItem = ({\n portalId,\n ratings,\n language,\n isInStock,\n}) => {\n const ratingsFeatureRequirementsAchieved = useRatingsFeatureRequirements(\n ratings,\n isInStock\n );\n const portalElement = useElementWhenReady(\n `#overall-rating-portal-${portalId}`\n );\n\n if (!ratingsFeatureRequirementsAchieved) {\n return null;\n }\n\n return (\n portalElement &&\n ReactDOM.createPortal(\n ,\n portalElement\n )\n );\n};\n\nconst MixAndMatchRatingsContainer = () => {\n const { isMixAndMatch, webContext } = useRuntimeConstants();\n const { products } = useStockPrice();\n\n if (!isMixAndMatch || !products?.products) {\n return null;\n }\n\n return products.products.map((product) => (\n \n ));\n};\n\nMixAndMatchRatingsContainerItem.propTypes = {\n portalId: PropTypes.string.isRequired,\n ratings: PropTypes.shape({\n averageOverallStarRating: PropTypes.number.isRequired,\n averageOverallRating: PropTypes.number.isRequired,\n totalReviewCount: PropTypes.number.isRequired,\n percentageRecommended: PropTypes.number.isRequired,\n subRatings: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n minLabel: PropTypes.string.isRequired,\n midLabel: PropTypes.string,\n maxLabel: PropTypes.string.isRequired,\n percentage: PropTypes.number.isRequired,\n }).isRequired\n ).isRequired,\n mostRecent: PropTypes.shape({\n title: PropTypes.string,\n reviewText: PropTypes.string,\n rating: PropTypes.number.isRequired,\n submissionRecency: PropTypes.string.isRequired,\n syndicationSource: PropTypes.shape({ name: PropTypes.string.isRequired }),\n badgesOrder: PropTypes.array.isRequired,\n }).isRequired,\n }).isRequired,\n language: PropTypes.string.isRequired,\n isInStock: PropTypes.bool,\n};\n\nexport default MixAndMatchRatingsContainer;\n","import SaveForLaterPortal from \"../saveForLaterPortal/SaveForLaterPortal\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport SaveCount from \"../../components/saveCount/SaveCount\";\nimport LooksButton from \"../../components/looks/LooksButton\";\nimport RepeatedTextBannerPortal from \"../repeatedTextBannerPortal/RepeatedTextBannerPortal\";\nimport MixAndMatchPaymentPromoContainer from \"../mixAndMatchPaymentPromoContainer/MixAndMatchPaymentPromoContainer\";\nimport MixAndMatchRatingsContainer from \"../mixAndMatchRatingsContainer/mixAndMatchRatingsContainer\";\nimport { useStockPrice } from \"../../context/stockPrice/StockPriceContext\";\n\nexport default function ReactPortals() {\n const { products } = useStockPrice();\n const { isMixAndMatch } = useRuntimeConstants();\n\n const renderMixAndMatchSaveButton = () => {\n return products.products\n .filter(({ variants }) => variants.length)\n .map((productItem) => (\n \n ));\n };\n\n const renderMainSaveButton = () => {\n if (products) {\n return isMixAndMatch && renderMixAndMatchSaveButton();\n }\n };\n\n return (\n <>\n \n \n \n \n \n {renderMainSaveButton()}\n \n );\n}\n","import PropTypes from \"prop-types\";\n\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\n\nconst IfSingleProduct = ({ children }) => {\n const { isMixAndMatch } = useRuntimeConstants();\n\n return !isMixAndMatch && <>{children};\n};\n\nIfSingleProduct.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport default IfSingleProduct;\n","const individualProductTemplate = (data) => ({\n \"@type\": \"IndividualProduct\",\n name: data.name,\n sku: data.sku,\n color: data.color,\n image: data.image,\n brand: brandTemplate(data.brand),\n});\n\nexport const brandTemplate = (data) => ({\n \"@type\": \"Brand\",\n name: data.name,\n});\n\nconst sellerTemplate = () => ({\n \"@type\": \"Organization\",\n name: \"ASOS\",\n});\n\nexport const mapOffersToTemplate = (data) =>\n data.offers.map((offer) => offerTemplate(offer));\n\nexport const offerTemplate = (data) => ({\n \"@type\": \"Offer\",\n price: data.price,\n priceCurrency: data.currency,\n itemOffered: individualProductTemplate(data.product),\n seller: sellerTemplate(),\n availability: data.isInStock\n ? \"https://schema.org/InStock\"\n : \"https://schema.org/OutOfStock\",\n itemCondition: \"https://schema.org/NewCondition\",\n});\n\nexport const ratingsTemplate = (ratings) => ({\n \"@type\": \"AggregateRating\",\n ratingValue: ratings.averageOverallRating,\n ratingCount: ratings.totalReviewCount,\n bestRating: 5,\n worstRating: 1,\n});\n","import { logError } from \"../newRelicLogger\";\nimport getWindow from \"../window\";\nimport { mapOffersToTemplate, ratingsTemplate } from \"./schemaOrgTemplates\";\nimport { dataMapper } from \"./dataMapper\";\n\nexport const createAndInsertInToPage = async ({ products, ratings }) => {\n try {\n const data = dataMapper(products, ratings);\n\n const splitStructuredDataElement = getWindow().document.getElementById(\n \"split-structured-data\"\n );\n\n await insertAdditionalData(splitStructuredDataElement, data);\n } catch (error) {\n logError(error, {\n action: \"RenderingStructuredDataToPage\",\n message: \"Error while generating/adding structured data\",\n });\n }\n};\n\nconst insertAdditionalData = async (element, data) => {\n const splitStructuredData = getStructuredData(element);\n\n if (dataHasGraphStructure(splitStructuredData)) {\n addProductDataToGraphStructure(splitStructuredData, data);\n insertStructuredDataIntoPage(element, splitStructuredData);\n } else {\n splitStructuredData.offers = mapOffersToTemplate(data.offers);\n\n if (data.ratings) {\n splitStructuredData.aggregateRating = ratingsTemplate(data.ratings);\n }\n\n insertStructuredDataIntoPage(element, splitStructuredData);\n }\n};\n\nconst addProductDataToGraphStructure = (splitStructuredData, data) => {\n const productItem = splitStructuredData[\"@graph\"].find(\n (graphItem) => graphItem[\"@type\"] === \"Product\"\n );\n\n if (productItem) {\n productItem.offers = mapOffersToTemplate(data.offers);\n\n if (data.ratings) {\n productItem.aggregateRating = ratingsTemplate(data.ratings);\n }\n }\n};\n\nconst dataHasGraphStructure = (splitStructuredData) => {\n return Array.isArray(splitStructuredData[\"@graph\"]);\n};\n\nconst getStructuredData = (element) => {\n try {\n return JSON.parse(element.textContent);\n } catch (error) {\n logError(error, {\n action: \"getStructuredData\",\n message: \"Error while parsing structured data from page to JSON\",\n });\n }\n};\n\nconst insertStructuredDataIntoPage = (element, splitStructuredData) => {\n element.textContent = JSON.stringify(splitStructuredData);\n};\n","import { getVariantImage } from \"../product\";\n\nexport const dataMapper = (productData, ratings) => {\n return {\n product: {\n name: productData.name,\n images: productData.images,\n contentUrl: productData.media.catwalkUrl,\n startDateTime: productData.variants[0]?.price?.startDateTime,\n },\n offers: {\n price: productData.variants[0].price.current.value,\n currency: productData.variants[0].price.currency,\n isInStock: productData.isInStock,\n offers: productData.variants.map((variant) => ({\n price: variant.price.current.value,\n currency: variant.price.currency,\n isInStock: variant.isInStock,\n product: {\n name: productData.name,\n sku: variant.sku,\n color: variant.colour,\n image: getVariantImage(productData.images, variant).url,\n brand: {\n name: productData.brandName,\n },\n },\n })),\n },\n ratings: Object.keys(ratings)?.length > 0 ? ratings : undefined,\n };\n};\n","import getWindow from \"./window\";\nimport getRuntimeConstants from \"../runtimeConstants\";\nimport { logError, ERROR_TYPE } from \"./newRelicLogger\";\n\nconst setBreadcrumbsSafely = (breadcrumbs) => {\n try {\n getWindow().asos.siteChrome.setBreadcrumbs(breadcrumbs);\n } catch (error) {\n logError(ERROR_TYPE.NonCriticalAppError, {\n message: error.message,\n action: \"setBreadcrumbsSafely\",\n });\n }\n};\n\nconst encodeSearchQuery = ({ searchQuery }) =>\n getWindow().encodeURIComponent(searchQuery).replaceAll(\"%20\", \"+\");\n\nconst setSearchBreadcrumbsData = ({\n getTranslation,\n breadcrumbsData,\n siteDomain,\n searchQuery,\n}) => {\n const home = breadcrumbsData[0];\n const name = breadcrumbsData[breadcrumbsData.length - 1];\n const displayedBreadcrumbs = [\n home,\n {\n Url: `${siteDomain}/search/?q=${encodeSearchQuery({ searchQuery })}`,\n Label: getTranslation(\"pdp_breadcrumbs_search_results_for\", {\n searchQuery,\n }),\n },\n name,\n ];\n return setBreadcrumbsSafely(displayedBreadcrumbs);\n};\n\nexport const updateDisplayedBreadcrumbs = ({\n breadcrumbsData,\n siteDomain,\n getTranslation,\n}) => {\n const { referrerData } = getRuntimeConstants();\n const searchQuery = referrerData?.searchQuery;\n\n if (searchQuery) {\n setSearchBreadcrumbsData({\n breadcrumbsData,\n siteDomain,\n getTranslation,\n searchQuery,\n });\n } else if (breadcrumbsData?.length) {\n setBreadcrumbsSafely(breadcrumbsData);\n }\n};\n","import { getCtaRef } from \"../analytics/common\";\nimport { getFeature } from \"./features\";\n\nexport const trackCtaRefInOptimizely = async () => {\n let ctaRef = getCtaRef();\n if (ctaRef) {\n ctaRef = ctaRef && ctaRef.split(\"_\")[0].toLowerCase();\n const matchedTracker = window.asos.pdp.config.featuresCtaTracking.find(\n (feature) => feature.matchCta.toLowerCase() === ctaRef\n )?.trackingKey;\n if (matchedTracker) {\n const { track } = getFeature(matchedTracker);\n await track(matchedTracker);\n }\n }\n};\n","import { useState, useEffect } from \"react\";\nimport { PROMISE_PENDING } from \"./constants\";\nimport BackToTop from \"./components/buttons/backToTop/BackToTop\";\nimport getWindow from \"./utils/window\";\nimport Prop65FullWarning from \"./components/prop65/Prop65FullWarning\";\nimport AdvertBanner from \"./components/advertBanner/AdvertBanner\";\nimport shouldShowProp65 from \"./utils/shouldShowProp65\";\nimport { useRuntimeConstants } from \"./context/runtimeConstants/RuntimeConstantsContext\";\nimport AppModals from \"./containers/appModals/AppModals\";\nimport AppNotificationBar from \"./containers/appNotificationBar/AppNotificationBar\";\nimport CarouselsAndReviews from \"./containers/carouselsAndReviews/CarouselsAndReviews\";\nimport ReactPortals from \"./containers/reactPortals/ReactPortals\";\nimport IfSingleProduct from \"./components/conditional/IfSingleProduct\";\nimport { checkForEdgeError } from \"./utils/edgeError\";\nimport { createAndInsertInToPage } from \"./utils/schemaOrg/schemaOrg\";\nimport useEventBus from \"./hooks/useEventBus\";\nimport {\n fireAddToBagMarketing,\n firePageLoadMarketing,\n} from \"./utils/marketingTracking/marketingTrackingEvents\";\nimport { updateDisplayedBreadcrumbs } from \"./utils/displayBreadcrumbs\";\nimport { useIsInStockContext } from \"./context/isInStock/IsInStockContext\";\nimport { useStockPrice } from \"./context/stockPrice/StockPriceContext\";\nimport ErrorBoundary from \"./components/errorBoundary/ErrorBoundary\";\nimport { useFeaturesReady } from \"./context/featuresReady/FeaturesReadyContext\";\nimport { trackCtaRefInOptimizely } from \"./utils/trackCtaRefInOptimizely\";\n\nexport default function App() {\n const {\n isMixAndMatch,\n product,\n breadcrumbsData,\n siteDomain,\n getTranslation,\n ratings,\n } = useRuntimeConstants();\n const { isInStock } = useIsInStockContext();\n const { products } = useStockPrice();\n const { areFeaturesReady } = useFeaturesReady();\n\n const [shouldShowProp65State, setShouldShowProp65State] =\n useState(PROMISE_PENDING);\n\n useEffect(() => {\n updateDisplayedBreadcrumbs({\n breadcrumbsData,\n siteDomain,\n getTranslation,\n });\n checkForEdgeError();\n }, []);\n\n useEffect(() => {\n if (areFeaturesReady) {\n trackCtaRefInOptimizely();\n }\n }, [areFeaturesReady]);\n\n useEffect(() => {\n if (products) {\n createAndInsertInToPage({ products, ratings });\n }\n }, [products, ratings]);\n\n useEffect(() => {\n if (\n !isMixAndMatch &&\n shouldShowProp65State === PROMISE_PENDING &&\n isInStock !== null\n ) {\n shouldShowProp65({ product, isInStock }).then((prop65Shown) => {\n setShouldShowProp65State(prop65Shown);\n getWindow().asos.pdp[\"prop65Shown\"] = prop65Shown;\n getWindow().asos.eventBus.emit(\"prop65Shown\");\n });\n }\n }, [shouldShowProp65State, isMixAndMatch, product, isInStock]);\n\n useEventBus(\n \"fireAddToBagMarketingEvent\",\n (variantsAddedList) =>\n fireAddToBagMarketing({ products, variantsAddedList }),\n [products]\n );\n\n useEventBus(\n \"pageLoadAnalyticsFired\",\n () => firePageLoadMarketing({ products }),\n [products]\n );\n\n const renderProp65 = () =>\n shouldShowProp65State === true && ;\n\n return (\n <>\n {renderProp65()}\n \n \n \n \n \n \n \n \n \n \n \n );\n}\n","import getWindow from \"./window\";\nimport { logError, ERROR_TYPE } from \"./newRelicLogger\";\n\nexport function checkForEdgeError() {\n const stockPriceEdgeError = getWindow().asos.pdp.config.stockPriceEdgeError;\n if (stockPriceEdgeError) {\n logError(ERROR_TYPE.EdgeError, { message: stockPriceEdgeError });\n }\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"mIhH4\",\"smallViewport\":\"xpeLp\",\"message\":\"TuLPz\",\"header\":\"CLA2B\",\"image\":\"cWbhx\"};","import { useLayoutEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Image from \"../../image/Image\";\nimport { useRuntimeConstants } from \"../../../context/runtimeConstants/RuntimeConstantsContext\";\nimport styles from \"./OutOfStockHeader.scss\";\nimport classnamesBind from \"classnames/bind\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function OutOfStockHeader({\n productImageUrl,\n productImageAlt,\n title,\n message,\n}) {\n const { isMobile } = useRuntimeConstants();\n\n useLayoutEffect(() => {\n const loader = document.getElementById(\"oos-hero-skeleton-header\");\n\n if (loader) {\n loader.parentElement.removeChild(loader);\n }\n }, []);\n\n return (\n
\n \n
\n \n {title}\n \n \n {message}\n

\n
\n
\n );\n}\n\nOutOfStockHeader.propTypes = {\n title: PropTypes.string.isRequired,\n message: PropTypes.string.isRequired,\n productImageUrl: PropTypes.string.isRequired,\n productImageAlt: PropTypes.string.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"section\":\"jFg8g\",\"largeViewport\":\"vmgi8\"};","import { useLayoutEffect } from \"react\";\n\nimport { getPrimaryImage } from \"../../utils/product\";\nimport OutOfStockHeader from \"./outOfStockHeader/OutOfStockHeader\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport MightLike, { RECOMMENDATION_TYPES } from \"../mightLike/MightLike\";\nimport { showOutOfStockHero } from \"../../utils/edgeFeature\";\nimport { useIsInStockContext } from \"../../context/isInStock/IsInStockContext\";\nimport styles from \"./OutOfStockHero.scss\";\nimport classnamesBind from \"classnames/bind\";\nimport useRecommendations from \"../mightLike/useRecommendations\";\nimport getWindow from \"../../utils/window\";\nimport Grid from \"../grid/Grid\";\nimport {\n Carousel,\n CarouselMode,\n} from \"@asosteam/asos-web-component-library-carousel\";\nimport getDefaultCarouselSettings from \"../../utils/getDefaultCarouselSettings\";\nimport ProductTile from \"../productTile/ProductTile\";\nimport { PAGE_AREAS } from \"../../constants\";\nimport { buildProductTileAriaLabel } from \"../productTile/buildProductTileAriaLabel\";\nimport PriceThenTitle from \"../productTile/PriceThenTitle\";\nimport TitleThenPrice from \"../productTile/TitleThenPrice\";\nimport useGrid from \"../grid/useGrid\";\nimport useDiscountPercentage from \"../../hooks/useDiscountPercentage\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport getRecommendationsTitleAriaLabel from \"../mightLike/getRecommendationsTitleAriaLabel\";\n\nconst classnames = classnamesBind.bind(styles);\n\nfunction getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n}) {\n return mightLikeProducts.map(\n (\n {\n url,\n productTitle,\n brandName,\n priceData,\n colourWayId,\n productId,\n imageUrl,\n },\n index\n ) => (\n \n {gridEnabled ? (\n \n ) : (\n \n )}\n \n )\n );\n}\n\nfunction shouldRender({\n gridEnabled,\n isStockStateReady,\n edgeFeature,\n isInStock,\n mightLikeProducts,\n}) {\n return (\n gridEnabled !== null &&\n mightLikeProducts?.length &&\n isStockStateReady &&\n showOutOfStockHero(edgeFeature, isInStock)\n );\n}\n\nexport default function OutOfStockHero() {\n const { getTranslation, product, edgeFeature, isMobile } =\n useRuntimeConstants();\n const { isStockStateReady, isInStock } = useIsInStockContext();\n const { mightLikeProducts, hasFetchedRecs } = useRecommendations({\n productId: product?.id,\n });\n const { gridEnabled } = useGrid({ isInStock });\n const { showDiscountPercentage } = useDiscountPercentage();\n const { viewportCategory } = useViewport();\n\n useLayoutEffect(() => {\n if (hasFetchedRecs) {\n const loader = getWindow().document.getElementById(\n \"oos-hero-skeleton-recs\"\n );\n\n if (loader) {\n loader.parentElement.removeChild(loader);\n }\n }\n }, [hasFetchedRecs]);\n\n const primaryImageUrl = getPrimaryImage(product.images).url;\n\n return shouldRender({\n gridEnabled,\n isStockStateReady,\n edgeFeature,\n isInStock,\n mightLikeProducts,\n }) ? (\n \n \n \n {gridEnabled ? (\n \n {getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n })}\n \n ) : (\n \n {getProductTiles({\n mightLikeProducts,\n gridEnabled,\n showDiscountPercentage,\n getTranslation,\n })}\n \n )}\n \n \n ) : null;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"socialShareWrapper\":\"lz7dG\",\"icon\":\"vjoku\"};","// extracted by mini-css-extract-plugin\nexport default {\"socialShareBar\":\"UcVdt\",\"listItem\":\"zK1ik\",\"link\":\"gU_QY\",\"icon\":\"Ahq5v\"};","import { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useEffect, useState } from \"react\";\nimport { formatUrl } from \"../../utils/url\";\nimport { getPrimaryImage } from \"../../utils/product\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport {\n LARGE_VIEWPORT,\n MEDIUM_VIEWPORT,\n SMALL_VIEWPORT,\n} from \"../../constants\";\n\nconst encodeShareParams = (params) => {\n const encodedItems = [];\n const paramKeys = Object.keys(params);\n for (let i = 0; i < paramKeys.length; i++) {\n const key = paramKeys[i];\n encodedItems.push(`${key}=${encodeURIComponent(params[key])}`);\n }\n return encodedItems.join(\"&\");\n};\n\nconst buildPlatforms = ({ name, canonicalUrl, productImageUrl }) => [\n {\n storeId: \"RU\",\n icon: \"product-vk-icon\",\n platform: \"vk\",\n link: `http://vk.com/share.php?${encodeShareParams({\n url: `${canonicalUrl}#ctaref-product_share_vk`,\n })}`,\n viewports: [SMALL_VIEWPORT, MEDIUM_VIEWPORT, LARGE_VIEWPORT],\n },\n {\n icon: \"product-facebook-icon\",\n platform: \"facebook\",\n link: `https://www.facebook.com/sharer/sharer.php?${encodeShareParams({\n u: `${canonicalUrl}#ctaref-product_share_facebook`,\n })}`,\n viewports: [SMALL_VIEWPORT, MEDIUM_VIEWPORT, LARGE_VIEWPORT],\n },\n {\n icon: \"product-pinterest-icon\",\n platform: \"pinterest\",\n link: `https://pinterest.com/pin/create/button/?${encodeShareParams({\n url: `${canonicalUrl}#ctaref-product_share_pinterest`,\n media: productImageUrl,\n description: name,\n })}`,\n viewports: [SMALL_VIEWPORT, MEDIUM_VIEWPORT, LARGE_VIEWPORT],\n },\n {\n icon: \"product-whatsapp-icon\",\n platform: \"whatsapp\",\n link: `https://wa.me/?${encodeShareParams({\n text: `${name} ${canonicalUrl}#ctaref-product_share_whatsapp`,\n })}`,\n viewports: [SMALL_VIEWPORT],\n },\n {\n icon: \"product-email-icon\",\n platform: \"email\",\n link: `mailto:?${encodeShareParams({\n subject: name,\n body: `${name} ${canonicalUrl}#ctaref-product_share_email`,\n })}`,\n viewports: [SMALL_VIEWPORT],\n },\n];\n\nexport default function useShareLinks() {\n const [sharePlatforms, setSharePlatforms] = useState([]);\n const {\n product: { images, name },\n webContext: { storeId },\n canonicalUrl,\n } = useRuntimeConstants();\n const { viewportCategory } = useViewport();\n\n useEffect(() => {\n const visiblePlatforms = buildPlatforms({\n name,\n canonicalUrl,\n productImageUrl: formatUrl(getPrimaryImage(images).url),\n })\n .filter(\n (shareIcon) =>\n (!shareIcon.storeId || shareIcon.storeId === storeId) &&\n shareIcon.viewports.includes(viewportCategory)\n )\n .map(({ platform, link, icon }) => ({ platform, link, icon }));\n\n setSharePlatforms(visiblePlatforms);\n }, [canonicalUrl, name, images, storeId, viewportCategory]);\n\n return sharePlatforms;\n}\n","import { useEffect, useRef } from \"react\";\nimport styles from \"./SocialShareLinks.scss\";\nimport useTrapFocus from \"../../hooks/useTrapFocus\";\nimport useShareLinks from \"./useShareLinks\";\nimport { fireSocialShareIntent } from \"../../analytics/pageInteraction\";\nimport classnamesBind from \"classnames/bind\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function SocialShareLinks() {\n const firstElement = useRef();\n const focusTrap = useTrapFocus();\n\n useEffect(() => {\n firstElement.current?.focus();\n }, [firstElement]);\n\n const visibleShareLinks = useShareLinks();\n\n return (\n \n {visibleShareLinks.map(({ platform, icon, link }, key) => (\n
  • \n fireSocialShareIntent(platform)}\n data-id={platform}\n aria-label={platform}\n ref={key === 0 ? firstElement : undefined}\n className={styles.link}\n >\n \n \n
  • \n ))}\n \n );\n}\n","import { forwardRef } from \"react\";\nimport styles from \"./SocialShareBar.scss\";\nimport SocialShareLinks from \"./SocialShareLinks\";\n\nconst SocialShareBar = forwardRef((_, ref) => {\n return (\n
    \n \n
    \n );\n});\n\nSocialShareBar.displayName = \"SocialShareBar\";\n\nexport default SocialShareBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"socialShareBarWrapper\":\"nyzdD\"};","import { forwardRef } from \"react\";\nimport styles from \"./SocialShareBox.scss\";\nimport SocialShareLinks from \"./SocialShareLinks\";\n\nconst SocialShareBox = forwardRef((_, ref) => {\n return (\n
    \n \n
    \n );\n});\n\nSocialShareBox.displayName = \"SocialShareBar\";\n\nexport default SocialShareBox;\n","// extracted by mini-css-extract-plugin\nexport default {\"socialShareBoxWrapper\":\"y_nI1\"};","import { useState, useRef } from \"react\";\nimport useInteractOutside from \"../../hooks/useInteractOutside\";\nimport styles from \"./SocialShare.scss\";\nimport SocialShareBar from \"../socialShareBar/SocialShareBar\";\nimport SocialShareBox from \"../socialShareBar/SocialShareBox\";\nimport { fireSocialShareIntent } from \"../../analytics/pageInteraction\";\nimport { useRuntimeConstants } from \"../../context/runtimeConstants/RuntimeConstantsContext\";\nimport { logError, ERROR_TYPE } from \"../../utils/newRelicLogger\";\nimport getWindow from \"../../utils/window\";\nimport { useViewport } from \"../../context/viewport/ViewportContext\";\nimport { SMALL_VIEWPORT } from \"../../constants\";\nimport classnamesBind from \"classnames/bind\";\n\nconst classnames = classnamesBind.bind(styles);\n\nconst SocialShare = () => {\n const [showSocialShareBar, setShowSocialShareBar] = useState(false);\n const [hasFiredSocialShareIntent, setHasFiredSocialShareIntent] =\n useState(false);\n const focusOnClose = useRef();\n const socialShareBarRef = useRef();\n const socialShareButton = useRef();\n const socialShareIcon = useRef();\n const { viewportCategory } = useViewport();\n const {\n getTranslation,\n product: { name },\n canonicalUrl,\n } = useRuntimeConstants();\n\n const closeSocialShare = () => {\n setShowSocialShareBar(false);\n focusOnClose.current?.focus();\n };\n\n useInteractOutside(socialShareBarRef, ({ target }) => {\n if (\n !socialShareButton.current?.contains(target) ||\n !socialShareIcon.current?.contains(target)\n ) {\n closeSocialShare();\n }\n });\n\n const triggerAnalyticIntent = () => {\n if (!hasFiredSocialShareIntent) {\n fireSocialShareIntent();\n setHasFiredSocialShareIntent(true);\n }\n };\n\n const openShareBar = () => {\n focusOnClose.current = getWindow().document.activeElement;\n setShowSocialShareBar(true);\n };\n\n const openNativeShare = async () => {\n if (getWindow().navigator.share) {\n try {\n await getWindow().navigator.share({\n title: name,\n text: name,\n url: `${canonicalUrl}#ctaref-product_share_native`,\n });\n return true;\n } catch (error) {\n if (error instanceof DOMException && error.name === \"AbortError\") {\n return true;\n }\n logError(ERROR_TYPE.UserActionFailed, {\n message: error.message,\n errorName: error.name,\n });\n }\n }\n\n return false;\n };\n\n const onShareIconClick = async () => {\n if (showSocialShareBar) {\n closeSocialShare();\n return;\n }\n\n if (!(await openNativeShare())) {\n openShareBar();\n }\n\n triggerAnalyticIntent();\n };\n\n return (\n <>\n
    \n \n \n \n
    \n {showSocialShareBar ? (\n viewportCategory === SMALL_VIEWPORT ? (\n \n ) : (\n \n )\n ) : null}\n \n );\n};\n\nexport default SocialShare;\n","// extracted by mini-css-extract-plugin\nexport default {\"image\":\"gb1Ne\"};","import PropTypes from \"prop-types\";\nimport classnamesBind from \"classnames/bind\";\nimport getImageSource, {\n getImageSourceSet,\n} from \"../../../common/imagePresets/imagePresets\";\nimport styles from \"./Image.scss\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function Image({\n additionalClasses,\n loadingType,\n url,\n width,\n type,\n alternateText,\n ariaHidden,\n}) {\n return (\n \n );\n}\n\nImage.propTypes = {\n url: PropTypes.string.isRequired,\n alternateText: PropTypes.string.isRequired,\n type: PropTypes.oneOf([\"hero\", \"carousel\", \"thumbnail\", \"collage\"])\n .isRequired,\n additionalClasses: PropTypes.string,\n loadingType: PropTypes.string,\n width: PropTypes.number.isRequired,\n ariaHidden: PropTypes.bool,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"sjIov\",\"imageLink\":\"j91wo\",\"loading\":\"ynAXu\",\"container\":\"SBUGb\",\"imageContainer\":\"waEmW\",\"aside\":\"eEJiE\",\"link\":\"Sqqu_\",\"smallImageOnly\":\"yTqSp\"};","import ProductColour from \"./ProductColour\";\nimport { useProduct } from \"../../context/product/ProductContext\";\nimport { getColours } from \"../../../utils/variantUtils\";\nimport { TEXT_SIZES } from \"../../constants\";\n\nexport default function ProductColourForProductCard() {\n const { product } = useProduct();\n const colourList = getColours(product?.variants);\n\n if (colourList?.length !== 1) {\n return null;\n }\n\n return (\n \n );\n}\n","import PropTypes from \"prop-types\";\nimport styles from \"./ProductCard.scss\";\nimport Image from \"../image/Image\";\nimport SaveForLaterButton from \"../buttons/saveForLaterButton/SaveForLaterButton\";\nimport Spacing, { SPACING } from \"../spacing/Spacing\";\nimport ShowOnProductStockStatus from \"../conditional/ShowOnProductStockStatus\";\nimport OutOfStockLabel from \"../outOfStockLabels/OutOfStockLabel\";\nimport { SECONDARY_LABEL } from \"../outOfStockLabels/labelTypes\";\nimport SoldShippedHeader from \"../deliveryAndReturns/soldShippedHeader/SoldShippedHeader\";\nimport { TEXT_SIZES } from \"../../constants\";\nimport ProductColourForProductCard from \"../productColour/ProductColourForProductCard\";\nimport ProductSize from \"../productSize/ProductSize\";\nimport VariantSelectionContainer from \"../../containers/variantSelection/VariantSelectionContainer\";\nimport classnamesBind from \"classnames/bind\";\nimport { fireAfsAnalytics } from \"../../analytics/pageInteraction\";\n\nconst classnames = classnamesBind.bind(styles);\n\nexport default function ProductCard({\n product,\n productLink,\n handleSaveClick,\n variantIdentifier,\n fireAddToBagAnalytics,\n fireAddToBagErrorAnalytics,\n fireAddToBagMarketing,\n fireNotifyMeClickAnalytics,\n variantSelectorId,\n scope,\n imageWidth,\n primaryImageUrl,\n shouldShowProductControls = true,\n shouldRetainSmallImageSize,\n priceRenderProp,\n ratingRenderProp = () => null,\n}) {\n return (\n
    \n
    \n \n \n \n {shouldShowProductControls && (\n \n )}\n
    \n
    \n \n \n \n \n \n

    {product.name}

    \n \n {priceRenderProp()}\n \n {ratingRenderProp()}\n \n \n {!product?.isDiscontinued ? (\n \n {shouldShowProductControls && (\n \n )}\n \n ) : null}\n
    \n
    \n
    \n );\n}\n\nProductCard.propTypes = {\n product: PropTypes.shape({\n name: PropTypes.string.isRequired,\n isDiscontinued: PropTypes.bool.isRequired,\n isInStock: PropTypes.bool.isRequired,\n shouldShowSave: PropTypes.bool.isRequired,\n images: PropTypes.arrayOf({\n isPrimary: PropTypes.bool.isRequired,\n url: PropTypes.string.isRequired,\n }).isRequired,\n price: PropTypes.shape({\n current: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number,\n }).isRequired,\n previous: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number,\n }),\n rrp: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.number,\n }),\n isMarkedDown: PropTypes.bool,\n isOutletPrice: PropTypes.bool,\n startDateTime: PropTypes.string,\n }).isRequired,\n id: PropTypes.number.isRequired,\n }).isRequired,\n productLink: PropTypes.string.isRequired,\n handleSaveClick: PropTypes.func.isRequired,\n variantIdentifier: PropTypes.string.isRequired,\n fireAddToBagAnalytics: PropTypes.func,\n fireAddToBagErrorAnalytics: PropTypes.func,\n fireAddToBagMarketing: PropTypes.func,\n fireNotifyMeClickAnalytics: PropTypes.func,\n variantSelectorId: PropTypes.string.isRequired,\n scope: PropTypes.string,\n imageWidth: PropTypes.number.isRequired,\n primaryImageUrl: PropTypes.string.isRequired,\n shouldShowProductControls: PropTypes.bool,\n shouldRetainSmallImageSize: PropTypes.bool,\n priceRenderProp: PropTypes.func.isRequired,\n ratingRenderProp: PropTypes.func,\n};\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 {\"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","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","import getStores from \"../api/storeApi\";\nimport {\n CALIFORNIA_REGION_CODE,\n US_STORE,\n PROP_65_SESSION_KEY,\n} from \"../constants\";\nimport getRuntimeConstants from \"../runtimeConstants\";\nimport getWindow from \"./window\";\n\nasync function shouldShowBasedOnStoreApi() {\n const stores = await getStores();\n let shouldShow = false;\n\n if (stores !== undefined) {\n shouldShow =\n !!stores &&\n stores.some(({ region }) => region === CALIFORNIA_REGION_CODE);\n getWindow().sessionStorage.setItem(PROP_65_SESSION_KEY, shouldShow);\n }\n\n return shouldShow;\n}\n\nexport default async function shouldShowProp65({\n product: { hasVariantsWithProp65Risk },\n isInStock,\n}) {\n const {\n webContext: { storeId },\n } = getRuntimeConstants();\n\n if (storeId !== US_STORE || !hasVariantsWithProp65Risk || !isInStock) {\n return false;\n }\n\n const shouldShowFromSessionStorage =\n getWindow().sessionStorage.getItem(PROP_65_SESSION_KEY);\n\n if ([\"true\", \"false\"].includes(shouldShowFromSessionStorage)) {\n return shouldShowFromSessionStorage === \"true\";\n }\n\n return await shouldShowBasedOnStoreApi();\n}\n","import makeRequest from \"./makeRequest\";\nimport getRuntimeConstants from \"../runtimeConstants\";\n\nexport default function getStores() {\n const {\n webContext: { keyStoreDataversion },\n storeApiPath,\n storeApiTimeout,\n } = getRuntimeConstants();\n\n return makeRequest({\n url: storeApiPath,\n timeout: storeApiTimeout,\n params: {\n keyStoreDataversion,\n },\n requestType: \"STORE_API\",\n apiName: \"Fashion\",\n caller: \"Store\",\n });\n}\n"],"names":["focusToTopOfPage","document","querySelector","focus","BackToTop","getTranslation","useRuntimeConstants","_jsxs","className","styles","button","onClick","children","_jsx","icon","classnames","classnamesBind","getMessageString","translation","_ref","linkStyle","warning","warningText","link","PROP_65_URL","Prop65FullWarning","_ref2","contentStyle","containerStyle","subContainerStyle","titleStyle","updateLiveRegion","useLiveRegion","useEffect","setEvents","events","trackingName","container","subContainer","title","id","content","warningIcon","dangerouslySetInnerHTML","__html","siteDomain","startsWith","AdvertBanner","advertsSdkInstance","useAdverts","setSdkInstance","useState","undefined","webContext","_getSdks","sdk","production","isProduction","webContextDelegate","identityDelegatePromise","getSdks","identity","featuresDelegatePromise","onReady","then","getFeature","isStockStateReady","isInStock","useIsInStockContext","products","useStockPrice","previousBackInStockVariantId","usePreviousBackInStock","Advert","sdkInstance","app","APP","PDP","placement","PLACEMENT","BOTTOM","requestSponsoredProducts","requestDisplayAdverts","parameters","item","getSelectedOrOnlyVariantId","selectedVariant","getPreselectedVariant","variantId","onlyVariant","getFirstVariant","price","availability","Number","rootMargin","SizeGuideModal","modalId","MODAL_TYPE","SIDE","Math","floor","random","open","setOpen","contentLoaded","setContentLoaded","sizeGuideUrl","setSizeGuideUrl","focusOnCloseElement","setFocusOnCloseElement","iframeRef","useRef","closeModal","focusCloseButton","current","contentWindow","postMessage","useEventBus","url","focusOnClose","useEventListener","data","Modal","modalType","hideCloseButton","withScrollBar","useFocusTrapCatchAll","seamless","src","ref","iframe","onLoad","symbolsSpriteUrl","getConfig","href","type","Icon","BackInStockLoginModal","modalParameters","setModalParameters","eventData","eventFocusElement","restOfEventData","copyConfig","BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY","signInButtonCopy","signInTitleCopy","signInTextCopy","BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY","copyKey","selectedVariantId","selectedProductId","CENTER","forceDOMRewrite","FaceEmoji","Button","handleClick","async","setSessionStorageItem","BACK_IN_STOCK_SELECTED_PRODUCT","BACK_IN_STOCK_SELECTED_VARIANT","loginRedirect","BUTTON_TYPES","primary","additionalClasses","debounce","func","wait","timeout","_len","arguments","length","args","Array","_key","callNow","clearTimeout","setTimeout","setIntersectionObserver","element","options","handleIntersectionData","observeIntersectionOnce","Window","getWindow","observer","IntersectionObserver","entries","forEach","entry","isIntersecting","unsetIntersectionObserver","observe","unobserve","LooksCarousel","includeHeroProduct","looksProducts","useLooksProducts","selectedLooksProduct","setSelectedLooksProduct","useSelectedLooksProduct","viewportCategory","useViewport","scrollPosition","setScrollPosition","shouldShowRightScrollButton","setShouldShowRightScrollButton","imageSize","SMALL_VIEWPORT","tileSize","carousel","carouselProducts","filter","product","isHero","handleScrollButton","direction","useLayoutEffect","root","threshold","observation","scrollButton","scrollButtonLeft","navigationButtons","carouselThumbnailContainer","style","right","role","map","_ref4","index","images","name","primaryImage","getPrimaryImage","isSelected","tile","selected","_ref3","handleSelectedLooksProduct","Image","image","alternateText","width","scrollButtonRight","hidden","productLink","isMobile","indexInCarousel","findIndex","btlType","pdpUrl","LooksProduct","props","useProduct","useVariant","defaultColourWayId","getPrimaryVariant","variants","colourWayId","variantIdentifier","ProductCard","handleSaveClick","event","stopPropagation","preventDefault","identifier","saveForLater","items","productId","pageArea","PAGE_AREAS","LOOKS","variantSelectorId","scope","LOOKS_RECOMMENDATIONS_HEADER","fireAddToBagAnalytics","fireLooksAddToBagAnalytics","fireNotifyMeClickAnalytics","imageWidth","primaryImageUrl","priceRenderProp","PrimaryPrice","priceData","testId","priceType","COMPLEMENTARY_PRIMARY_PRICE","fireLooksModalOpen","position","waitForPageLoadAnalytics","s","commons","getCommons","getOOSProducts","commonLooksTracking","getCommonLooksTrackingValues","tl","prop6","linkTrackVars","setLinkTrackVars","getGlobalEvars","Object","keys","linkTrackEvents","setLinkTrackEvents","trackedProducts","Set","resetLooksTrackedProducts","clear","fireLooksProductViewTracking","has","clearEvents","indexOf","eVar106","add","RankingDisclaimerMessage","rankingDisclaimerLinks","storeId","target","rel","RECOMMENDATION_TYPES","CAROUSEL","GRID","GRID_LOOKS_MOBILE","GRID_LOOKS_DESKTOP","MightLike","titleAriaLabel","itemCount","trackingRef","shouldRenderItemCount","fullwidth_container","header","hasItemCount","smart_count","count","getMightLikeUrl","brandName","productUrl","getProductUrl","ctaref","featureref1","getHeaderScope","getRequestProperties","authorisationHeader","mightLikeApiPath","mightLikeApiTimeout","getRuntimeConstants","headers","authorization","requestType","apiName","caller","mapData","mapRecsData","recommendations","_ref5","imageUrl","formatUrl","productTitle","getRecsMVT","_recsAlgorithm$getVar","recsAlgorithm","recsVersion","getVariables","tstRecVersion","isEnabled","getRecommendations","_ref6","handleErrorReturnValue","browseCountry","browseCurrency","browseLanguage","keyStoreDataversion","features","recommendationsEnabled","getAuthorisationHeader","params","productids","expand","limit","MIGHT_LIKE_API_LIMIT","store","country","currency","lang","recsMVT","makeRequest","useRecommendations","isMixAndMatch","mightLikeProducts","setMightLikeProducts","hasFetchedRecs","setHasFetchedRecs","apiFailed","setApiFailed","fetchedProductId","setFetchedProductId","Grid","gridTestId","grid","list","listItem","buildProductTileAriaLabel","showDiscountPercentage","priceAriaLabel","percentageDiscountLabel","getPrice","translations","ariaLabel","CircleButton","iconClass","classes","MIGHT_LIKE","BUY_THE_LOOK","RECENTLY_VIEWED","OUT_OF_STOCK","MAIN","ProductTile","removeFunction","screenHoverable","shouldShowTitle","saveForLaterClass","productTileAriaLabel","blurTimer","shouldShowRemoveButton","setShouldShowRemoveButton","areFeaturesReady","useFeaturesReady","showRemoveButton","hideRemoveButton","onMouseEnter","onMouseLeave","onFocus","onBlur","_Fragment","skeleton","ariaHidden","CAROUSEL_IMAGE_SIZE","loadingType","closeButton","closeIcon","renderSaveForLater","SaveForLaterButton","TitleThenPrice","SecondaryPrice","ProductTileSkeleton","emojiType","titleTranslationKey","subTitleTranslationKey","LooksSimilarItemsFailed","LooksSimilarItemsFailure","LooksSimilarItemsNoItems","getProductTiles","LOOKS_SIMILAR_ITEMS","getRecommendationType","useDiscountPercentage","Failed","ariaDescribedby","NoItems","LooksModal","previousBackInStockProductId","LOOKS_OPEN_MODAL_EVENT","getPreselectedProduct","getElementsByTagName","subtitle","looksProduct","ProductContextProvider","VariantContextProvider","LooksSimilarItems","fireSeeSimilarModalOpen","seeSimilarEventText","eVar60","eVar61","SeeSimilarItemsModal","v4","SEE_SIMILAR_OPEN_MODAL_EVENT","shouldShowProductControls","shouldRetainSmallImageSize","AppModals","SeeSimilarModal","elementSelector","setElement","callbackFunc","elementNode","Promise","resolve","mutationObserver","MutationObserver","disconnect","childList","subtree","whenElementExists","wrapperRef","callback","dependencies","keyCode","key","contains","NOTIFICATION_DRAWER_ID","renderBarInPortal","Component","portalElement","ReactDOM","isClick","isEnterKey","code","isTab","refocus","refocusId","refocusElement","getElementById","AppNotificationBar","notificationBarData","setNotificationBarData","setRefocusId","notificationDrawer","useElementWhenReady","barCloseHandler","useInteractOutside","copy","NotificationBar","onClose","CarouselMode","itemsPerRow","viewport","MEDIUM_VIEWPORT","LARGE_VIEWPORT","carouselTestId","paginationLabelNoNext","paginationLabelNoPrevious","paginationLabel","paginationTabLabel","lower","upper","total","lowercount","uppercount","totalcount","paginationTabPanelLabel","carouselMode","endlessSideScroll","pagination","BuyTheLook","sdks","btl_full_width_container","Carousel","getDefaultCarouselSettings","tileWrapper","useGrid","_urlParams$affid","gridEnabled","setGridEnabled","urlParams","affiliateId","affid","PriceThenTitle","GridPrice","getRecommendationsTitleAriaLabel","INTERSECTION_OPTIONS","PriceAndTitle","handleFireMightLikeVisibleAnalytics","intersectionData","fireMightLikeVisibleAnalytics","YouMightAlsoLike","useCallback","node","shouldNotRender","textStyles","PARAGRAPH","DISCLAIMER","getCondensedText","text","readMoreText","getFirstWordsToNumber","number","split","slice","join","getTextClass","textStyle","paragraphText","disclaimerText","hasTitle","readMoreTranslationKey","textElement","expandable","setExpandable","expanded","setExpanded","scrollHeight","clientHeight","headerSpace","showMoreContainer","fade","paragraphFade","disclaimerFade","readMore","SYNDICATED_REVIEW","STAFF_REVIEW","VERIFIED_REVIEW","shouldDisplayPhotos","photos","displayPhotos","togglePhotoGallery","getSourceText","syndicationSource","reviewSource","syndicationSourceName","reviewText","rating","submissionRecency","badgesOrder","getReviewSource","includes","ratingsAriaLabel","getRatingAriaLabel","badgeName","ratingsText","tabIndex","starsAndRecencyContainer","StarRating","recency","source","contentSpace","ExpandableText","thumbnails","thumbnailUrl","thumbnail","thumbnailImage","loading","alt","composeTranslation","translationString","substitutions","replace","match","Error","Recommended","percentageRecommended","language","recommended","percentageRecommeded","getIntlNumberFormat","value","SubRatings","subRatings","label","minLabel","midLabel","maxLabel","percentage","subRating","titleRow","getSubRatingIcon","subRatingTitle","RatingBar","displayDisclaimer","REVIEW_DISCLAIMER_STORES","RatingsAndReviews","ratings","openRatingsModal","averageOverallStarRating","averageOverallRating","totalReviewCount","mostRecent","sectionContainer","maxWidthContainer","customerRatings","StarRatingGroup","customerReviews","mostRecentReviewTitle","Review","viewAllReviews","RatingsDistribution","ratingDistribution","filterParam","filterByRatingCallback","getDistributionBar","progression","round","ratingBar","progress","getRatingsDistributionCounts","ratingsValue","distribution","find","distributionContainer","Fragment","selectContainer","disabled","ratingFocus","Reviews","reviews","getReviewsCallback","viewMorePending","getIntlNumber","review","getReviewKey","viewMoreContainer","reviewsCount","viewedReviews","totalResults","reviewsProgress","max","StandardSpinner","spinner","size","SMALL_SPINNER","viewMore","reviewElement","querySelectorAll","getChildNodes","elements","from","some","childNodes","flatMap","ReviewPhotoGallery","gallery","shouldRenderSingleImage","reviewPhotoList","atIndex","reviewPhotoListLength","overlayId","imageLoaded","setImageLoaded","imageIndex","setImageIndex","galleryWidth","setGalleryWidth","animated","setAnimated","touchStartPosition","setTouchStartPosition","paginationButtonRefs","chevronButtonRefs","backButtonRef","galleryContainerRef","initialRender","previousIndex","lastImageIndex","previousImageIndex","setGalleryContainerMarginLeft","galleryStartPosition","marginLeft","movingLastToFirstImage","movingFirstToLastImage","_backButtonRef$curren","sideModalWidth","getBoundingClientRect","setModalRef","useTrapFocus","setPaginationButtonRefs","push","setChevronButtonRefs","handleNextClick","handlePreviousClick","mapImage","fullSizeUrl","startHandler","endHandler","moveHandler","cancelHandler","addEventListener","removeEventListener","useTouchControl","touches","changedTouches","clientX","srcElement","shouldFireTouchEvent","backBtn","BrandedSpinner","colour","imageContainer","galleryContainer","chevron","nextButton","previousButton","paginationButtonsContainer","paginationButtons","circleButtons","Pill","pillButton","pill","Toast","close","ariaLabelledBy","closeButtonRef","toast","FILTER_PILL_ID","RatingsAndReviewsModal","filterValue","removeFilter","closeRatingsModal","ratingsModalFocusOnClose","filterPending","ratingsApiError","dismissApiError","ratingsApiErrorTranslation","filteredReviewCount","timeoutRef","setGallery","isOpen","targetElement","focusTarget","tagName","toLowerCase","parentElement","overlayOpen","handleOverlayClick","ratingsAndReviewsModal","RATINGS_LARGE","elementToScrollToId","block","supportsNativeSmoothScroll","documentElement","scrollIntoView","behavior","renderFilterPill","ratingsPillContainer","reviewsUnFiltered","renderPhotoGallery","ModalOverlay","MODAL_OVERLAY_TYPES","dark","renderToast","apiErrorMessage","apiFilterErrorMessage","FILTER_ERROR","VIEW_MORE_ERROR","apiErrorButton","mapReviewPhotos","sizes","normal","DEFAULTS","filterParamDefault","filterErrorParamDefault","filteredReviewCountDefault","filterValueDefault","isFilterPendingDefault","isViewMorePendingDefault","viewMoreOffsetDefault","VIEW_MORE_OFFSET","ratingsApiErrorDefault","ratingsApiErrorTranslationDefault","RatingsAndReviewsApp","defaultRatings","isRatingsModalOpen","setIsRatingsModalOpen","setFilterParam","filterErrorParam","setFilterErrorParam","setFilteredReviewCount","setFilterValue","isFilterPending","setIsFilterPending","isViewMorePending","setIsViewMorePending","viewMoreOffset","setViewMoreOffset","setRatingsApiError","setRatingsApiErrorTranslation","setRatings","setRatingsModalFocusOnClose","focusFilter","scrollTop","filterElement","fireRatingsAndReviewsOpenAnalytics","filterArg","offset","Boolean","loadingSpinner","ratingsApiPath","ratingsApiTimeout","include","filteredStats","sort","results","result","reviewMapper","error","getReviews","newFilteredReviewCount","catch","currentRatingsApiError","viewMoreElement","currentFilterParam","STORAGE_KEY","savePageToLocalStorage","hostAndPath","getConstants","variantFromUrl","getVariantFromUrl","getSavedObjectInStorage","currentlySavedProducts","pageIndex","splice","unshift","MAX_RECENTLY_VIEWED_PRODUCTS","pop","saveProductToLocalStorage","savedStore","setProduct","recentlyViewedInLocalStorage","localStorage","getItem","JSON","parse","getProductsInStorage","clearProducts","removeItem","savedObject","setItem","stringify","SquareButton","RecentlyViewed","setProducts","handleRemoveClick","removeProductId","removeProductFromLocalStorage","filteredProducts","removeProductFromState","screenreaderOnly","handleClearClick","fireClearAllAnalytics","clearButton","EDGE_FEATURE_BUCKET","OUT_OF_STOCK_HERO","showOutOfStockHero","edgeFeature","bucket","PeopleAlsoBought","PEOPLE_ALSO_BOUGHT","LooksImageButton","looksData","buttonRef","handleModalTriggerEvent","eventKey","lookImageUrl","getLookHeroProduct","getLookHeroImageUrl","_getLookHeroProduct","lookProductImage","setSelected","looksProductCount","LOOKS_SECTION_ID","defuseScrollIntoViewTracking","useFiftyPercentInView","TRACKING_NAME","TRACKING_AREA","fireLooksScrollToView","LooksDesktopSection","formatProductLink","indexZeroBased","separator","showUpSell","shouldShowLooksSection","buyTheLookProducts","setBuyTheLookProducts","shouldDisplayBuyTheLook","setShouldDisplayBuyTheLook","buyTheLookFromSearchUrl","buyTheLookFromSearchTimeout","getRequest","get","additionalLoggingParams","response","status","_error$response","_error$response2","_error$config","_error$response3","logError","ERROR_TYPE","AjaxError","requestUrl","queryObjectToString","message","requestHeaders","config","responseHeaders","getBuyTheLook","recommendationProducts","setRecommendationProducts","shouldDisplayPeopleAlsoBought","CarouselsAndReviews","ratingsFeatureRequirementsAchieved","useRatingsFeatureRequirements","matchMedia","matches","useRecommendationProducts","useBuyTheLookProducts","LooksSection","displayRatingsSection","transferredProps","getVariant","defaultItems","hasMultipleProductItems","preSelectedVariant","initialItemLookup","reduce","accumulator","previousValue","sellingFast","mapItem","defaultVariantIdentifier","itemLookup","setItemLookup","setVariantIdentifier","variantSelection","noVariantSelection","values","variant","fireSaveForLaterMarketing","COUNT_FORMATS","letter","roundValue","Infinity","getShortValue","storeCode","format","toString","SaveCount","showSavedBadge","setShowSavedBadge","saveThreshold","setSaveThreshold","videoPlaying","setVideoPlaying","saveCount","_feature$getVariables","feature","thresholdSavesToShow","canShowSaveCount","setSaveCount","saveCountWrapper","saveCountvalue","_COUNT_FORMATS$find","getShortScale","getSaveCountString","saveCountHeartIcon","GalleryButton","forwardRef","buttonText","dataTestId","TEXT_SIZES","london3","naked","galleryButton","displayName","LooksButton","shouldShowLooksButton","setShouldShowLooksButton","mobilePortalElement","desktopPortalElement","looksButtonRef","hasAssociatedLooks","createPortal","BTL_BTN_SCROLL_CLICK","looksProductsIds","fireLooksButtonClickScrollTracking","scrollTo","handleLooksScroll","RepeatedTextBannerPortal","RepeatedTextBanner","PortalComponent","portalId","PaymentPromo","priceValue","PaymentPromoPortalsList","singleProduct","lowestInStockVariant","getLowestPriceInStockVariant","MixAndMatchPaymentPromoContainer","_products$products","MixAndMatchRatingsContainerItem","RATINGS_WITHOUT_REVIEWS_TEXT","MixAndMatchRatingsContainer","ReactPortals","renderMainSaveButton","productItem","SaveForLaterPortal","IfSingleProduct","propTypes","PropTypes","isRequired","individualProductTemplate","sku","color","brand","brandTemplate","mapOffersToTemplate","offers","offer","offerTemplate","priceCurrency","itemOffered","seller","itemCondition","ratingsTemplate","ratingValue","ratingCount","bestRating","worstRating","createAndInsertInToPage","dataMapper","productData","_productData$variants","_Object$keys","contentUrl","media","catwalkUrl","startDateTime","getVariantImage","splitStructuredDataElement","insertAdditionalData","action","splitStructuredData","getStructuredData","dataHasGraphStructure","addProductDataToGraphStructure","insertStructuredDataIntoPage","aggregateRating","graphItem","isArray","textContent","setBreadcrumbsSafely","breadcrumbs","asos","siteChrome","setBreadcrumbs","NonCriticalAppError","encodeSearchQuery","searchQuery","encodeURIComponent","replaceAll","updateDisplayedBreadcrumbs","breadcrumbsData","referrerData","home","displayedBreadcrumbs","Url","Label","setSearchBreadcrumbsData","trackCtaRefInOptimizely","ctaRef","getCtaRef","_window$asos$pdp$conf","matchedTracker","window","pdp","featuresCtaTracking","matchCta","trackingKey","track","App","shouldShowProp65State","setShouldShowProp65State","PROMISE_PENDING","stockPriceEdgeError","EdgeError","checkForEdgeError","shouldShowProp65","prop65Shown","eventBus","emit","variantsAddedList","fireAddToBagMarketing","firePageLoadMarketing","ErrorBoundary","OutOfStockHeader","productImageUrl","productImageAlt","loader","removeChild","smallViewport","OutOfStockHero","shouldRender","section","largeViewport","encodeShareParams","encodedItems","paramKeys","i","SocialShareLinks","firstElement","focusTrap","_firstElement$current","visibleShareLinks","sharePlatforms","setSharePlatforms","canonicalUrl","visiblePlatforms","platform","viewports","u","description","subject","body","buildPlatforms","shareIcon","useShareLinks","socialShareBar","fireSocialShareIntent","SocialShareBar","_","SocialShareBox","SocialShare","showSocialShareBar","setShowSocialShareBar","hasFiredSocialShareIntent","setHasFiredSocialShareIntent","socialShareBarRef","socialShareButton","socialShareIcon","closeSocialShare","_focusOnClose$current","_socialShareButton$cu","_socialShareIcon$curr","socialShareWrapper","navigator","share","DOMException","UserActionFailed","errorName","openNativeShare","activeElement","getImageSource","srcSet","getImageSourceSet","ProductColourForProductCard","colourList","getColours","ProductColour","colourLabel","leavesden3","fireAddToBagErrorAnalytics","ratingRenderProp","imageLink","smallImageOnly","aside","Spacing","SPACING","EIGHT","excludeFirst","ShowOnProductStockStatus","productStockStatus","OutOfStockLabel","labelStyle","SECONDARY_LABEL","SoldShippedHeader","fireSellerInfoAnalytics","fireAfsAnalytics","ProductSize","isDiscontinued","TWELVE","VariantSelectionContainer","shouldShowSave","ariaTranslations","minValue","maxValue","labelKey","getAriaLabel","numberOfLabels","getNumberOfLabels","secondaryRatingAverage","getAriaLabelForThreeLabels","getAriaLabelForTwoLabels","left","bannerRef","textRef","customerAccess","getCustomerLoyaltyAccess","textToRender","getTranslatedText","view","purchase","repeatedText","BULLET_SYMBOL","accessClass","repeatedTextBanner","bannerText","repeat","Comfort","Comfort_1","Fit","Fit_22","Size","Quality","Quality_1","Value","Value_1","hasVariantsWithProp65Risk","US_STORE","shouldShowFromSessionStorage","sessionStorage","PROP_65_SESSION_KEY","stores","storeApiPath","storeApiTimeout","getStores","shouldShow","region","CALIFORNIA_REGION_CODE","shouldShowBasedOnStoreApi"],"sourceRoot":""}