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AAkB,gBAClBC,EAAe,cAEfC,EAAuB,GAEvBC,EAAkB,kBAElBC,EAAW,KACXC,EAAyB,QACzBC,EAAc,yBACdC,EAAsB,8BAGtBC,EAAgB,gBAChBC,EAAiB,iBAGjBC,EAA2B,CACtC,MACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,MACA,KACA,MAGWC,EAAyC,CACpD,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MAGWC,EAA0B,IAC1BC,EAA6B,CACxC,CACEC,MAAO,KACPC,eAAgB,QAChBC,oBAAqB,CAAC,UAAW,cAEnC,CACEF,MAAO,KACPC,eAAgB,QAChBC,oBAAqB,CAAC,YAAa,YAI1BC,EAAyB,oCACzBC,EAAmB,oCAKnBC,EAAe,CAC1BxK,KAAM,OACNyK,OAAQ,UAGGC,EAA2B,QAC3BC,EAA6B,EAE7BC,EACX,0CAEWC,EAA0B,uBAC1BC,EAA4B,IAC5BC,EACX,yCACWC,EACX,8CAEWC,EAAyB,sBAEzBC,EAAsC,2BACtCC,EACX,gCAEWC,EACX,8CAEWhH,EAAM,MACNiH,EAAM,MACNC,EAAS,SACTC,EAAO,OAEPC,EAA4B,CACvC,KACA,MACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,OAGWC,EAA+B,eAE/BC,EACX,mCAEWC,EAAyB,qBAEzBC,EAAuB,OACvBC,EAA2B,WAG3BC,EAAgB,K,2GCjQ7B,MAAMC,GAAqBC,EAAAA,EAAAA,eAAc,MAE5BC,EAAsB/d,IAAkB,IAAjB,SAAEge,GAAUhe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2B,OAAA,EAA3BA,EAA6BlH,YAAW,EAE7BmH,EAAiB99B,IAAA,IAAC,QAAEJ,GAASI,EAAA,OACxC82B,EAAAA,EAAAA,IAAwBl3B,GAAW0c,EAAAA,GAAaxK,KAAOwK,EAAAA,GAAaC,MAAM,C","sources":["webpack://asos-web-productpage/./src/client/analytics/backInStock.js","webpack://asos-web-productpage/./src/client/analytics/common.js","webpack://asos-web-productpage/./src/client/analytics/events.js","webpack://asos-web-productpage/./src/client/analytics/fitAssistantCommon.js","webpack://asos-web-productpage/./src/client/analytics/looks/common.js","webpack://asos-web-productpage/./src/client/utils/getPreviousValue.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/singleVsMixAndMatch.js","webpack://asos-web-productpage/./src/client/utils/getTotalInStock.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/pageLoad.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/general.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/stockStatus.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/sponsoredAds.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/categoryPageCarousel.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/featuredProducts.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/visitorIdentifier.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/ratings.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/paymentPromo.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/pageLoadTrackingFired.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/price.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/shippingSources.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/saveCount.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/pricingIcon.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/productFlags.js","webpack://asos-web-productpage/./src/client/analytics/postPageLoad/backInStock.js","webpack://asos-web-productpage/./src/client/analytics/postPageLoad/fitAssistant.js","webpack://asos-web-productpage/./src/client/analytics/ratings.js","webpack://asos-web-productpage/./src/client/api/makeRequest.js","webpack://asos-web-productpage/./src/client/api/stockPriceApi.js","webpack://asos-web-productpage/./src/client/components/facets/utils/shouldShowColour.js","webpack://asos-web-productpage/./src/client/components/looks/utils/hasAssociatedLooks.js","webpack://asos-web-productpage/./src/client/config.js","webpack://asos-web-productpage/./src/client/constants.js","webpack://asos-web-productpage/./src/client/context/backInStock/BackInStockContext.js","webpack://asos-web-productpage/./src/client/context/featuresReady/FeaturesReadyContext.js","webpack://asos-web-productpage/./src/client/context/isInStock/IsInStockContext.js","webpack://asos-web-productpage/./src/client/context/isInStock/useIsInStock.js","webpack://asos-web-productpage/./src/client/context/liveRegion/LiveRegionContext.js","webpack://asos-web-productpage/./src/client/analytics/pageLoad/looks.js","webpack://asos-web-productpage/./src/client/context/looks/LooksProductsContext.js","webpack://asos-web-productpage/./src/client/context/looks/SelectedLooksProductContext.js","webpack://asos-web-productpage/./src/client/context/privacy/PrivacyContext.js","webpack://asos-web-productpage/./src/client/context/runtimeConstants/RuntimeConstantsContext.js","webpack://asos-web-productpage/./src/client/context/saveForLater/SaveForLaterContext.js","webpack://asos-web-productpage/./src/client/context/stockPrice/StockPriceContext.js","webpack://asos-web-productpage/./src/client/context/stockPrice/usePriceAndProductData.js","webpack://asos-web-productpage/./src/client/context/stockPrice/getRestockingSoonDetails.js","webpack://asos-web-productpage/./src/client/context/variant/facetVariants.js","webpack://asos-web-productpage/./src/client/hooks/useMatchMedia.js","webpack://asos-web-productpage/./src/client/context/viewport/ViewportContext.js","webpack://asos-web-productpage/./src/client/hooks/useLayoutState.js","webpack://asos-web-productpage/./src/client/api/backInStockApi.js","webpack://asos-web-productpage/./src/client/hooks/useBackInStock.js","webpack://asos-web-productpage/./src/client/hooks/useSessionStorage.js","webpack://asos-web-productpage/./src/client/hooks/useEventBus.js","webpack://asos-web-productpage/./src/client/analytics/postPageLoad/componentPerformance.js","webpack://asos-web-productpage/./src/client/CriticalApp.js","webpack://asos-web-productpage/./src/client/hooks/useLoginReturn.js","webpack://asos-web-productpage/./src/client/hooks/useFeatures.js","webpack://asos-web-productpage/./src/client/hooks/useAnalytics.js","webpack://asos-web-productpage/./src/client/analytics/postPageLoad/postPageLoad.js","webpack://asos-web-productpage/./src/client/Providers.js","webpack://asos-web-productpage/./src/client/utils/addPageAttributesToReporting.js","webpack://asos-web-productpage/./src/client/index.js","webpack://asos-web-productpage/./src/client/pages/index.js","webpack://asos-web-productpage/./src/client/utils/analyticsBreadcrumbs.js","webpack://asos-web-productpage/./src/client/utils/getParamFromReferrer.js","webpack://asos-web-productpage/./src/client/buildUrlParamsObject.js","webpack://asos-web-productpage/./src/client/runtimeConstants.js","webpack://asos-web-productpage/./src/client/utils/discountPriceData.js","webpack://asos-web-productpage/./src/client/utils/calculatePercentageDiscount.js","webpack://asos-web-productpage/./src/client/utils/eventBusEmitter.js","webpack://asos-web-productpage/./src/client/utils/features.js","webpack://asos-web-productpage/./src/client/utils/getTotalUniqueSizes.js","webpack://asos-web-productpage/./src/client/utils/identity.js","webpack://asos-web-productpage/./src/client/utils/newRelicLogger.js","webpack://asos-web-productpage/./src/client/utils/pricing/currentPrice.js","webpack://asos-web-productpage/./src/client/utils/pricing/lowestPriceInLast30Days.js","webpack://asos-web-productpage/./src/client/utils/pricing/markedDownPrice.js","webpack://asos-web-productpage/./src/client/utils/pricing/outletPrice.js","webpack://asos-web-productpage/./src/client/utils/product.js","webpack://asos-web-productpage/./src/client/utils/requests.js","webpack://asos-web-productpage/./src/client/utils/sdks.js","webpack://asos-web-productpage/./src/client/utils/sendBeacon/constants.js","webpack://asos-web-productpage/./src/client/utils/sendBeacon/index.js","webpack://asos-web-productpage/./src/client/utils/sendBeacon/getProductBeaconsMapFromStorage.js","webpack://asos-web-productpage/./src/client/utils/storage.js","webpack://asos-web-productpage/./src/client/utils/url.js","webpack://asos-web-productpage/./src/client/utils/window.js","webpack://asos-web-productpage/./src/mappers/price.js","webpack://asos-web-productpage/./src/mappers/variant.js","webpack://asos-web-productpage/./src/utils/sourceSellerHelper.js","webpack://asos-web-productpage/./src/utils/variantUtils.js"],"sourcesContent":["import { waitForPageLoadAnalytics } from \"./pageLoad\";\nimport { getCommons, getGlobalEvars } from \"./common\";\nimport { getCommonLooksTrackingValues } from \"./looks/common\";\nimport getWindow from \"../utils/window\";\nimport { clearEvents, setEvents, setLinkTrackEvents } from \"./events\";\n\nexport const BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME =\n \"backInStockNotifyMeClick\";\n\nexport default async function fireNotifyMeClickAnalytics(\n selectedVariantId,\n pageArea,\n looksProducts\n) {\n await waitForPageLoadAnalytics;\n\n const s = getWindow().s;\n const trackVars = [];\n let overrides = {};\n\n clearEvents({ trackingName: BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME });\n setEvents({\n events: [\"event214\"],\n trackingName: BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME,\n });\n s.products = `;${selectedVariantId}`;\n\n if (pageArea === \"looks\") {\n const commonLooksTracking = getCommonLooksTrackingValues({\n products: looksProducts,\n });\n\n overrides = {\n ...overrides,\n ...commonLooksTracking,\n };\n\n trackVars.push(...Object.keys(commonLooksTracking));\n }\n\n overrides = {\n ...overrides,\n linkTrackEvents: setLinkTrackEvents({\n trackingName: BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME,\n }),\n linkTrackVars: getCommons().setLinkTrackVars([\n ...getGlobalEvars(),\n ...trackVars,\n ]),\n };\n\n s.tl(true, \"o\", \"back in stock - notify me\", overrides);\n}\n","import { PAGE_AREAS } from \"../constants\";\nimport getWindow from \"../utils/window\";\n\nconst { MIGHT_LIKE, BUY_THE_LOOK, RECENTLY_VIEWED, OUT_OF_STOCK, MAIN } =\n PAGE_AREAS;\n\nlet commons;\n\nexport function getCommons() {\n if (!commons && window.CommonAnalytics) {\n commons = new window.CommonAnalytics();\n }\n return commons;\n}\n\nexport function getProductAreaAttribute(pageArea) {\n return {\n [BUY_THE_LOOK]: \"buy the look\",\n [MIGHT_LIKE]: \"you might also like\",\n [RECENTLY_VIEWED]: \"recently viewed\",\n [OUT_OF_STOCK]: \"oos product page\",\n [MAIN]: \"product page\",\n }[pageArea.toLowerCase()];\n}\n\nexport function addMerchEVarToProducts(sProductsString, evar) {\n const delimiter = \",;\";\n\n return (sProductsString || \"\")\n .split(delimiter)\n .map((product) => {\n if (/.*;;;;evar/i.test(product)) {\n product = product + \"|\" + evar;\n } else {\n product = product + \";;;;\" + evar;\n }\n\n return product;\n })\n .join(delimiter);\n}\n\nexport function getGlobalEvars() {\n return [\n \"eVar1\",\n \"eVar6\",\n \"eVar10\",\n \"eVar15\",\n \"eVar17\",\n \"eVar18\",\n \"eVar19\",\n \"eVar20\",\n \"eVar29\",\n \"eVar30\",\n \"eVar45\",\n \"eVar47\",\n \"eVar60\",\n \"eVar61\",\n \"eVar69\",\n \"eVar112\",\n \"eVar113\",\n \"eVar198\",\n ];\n}\n\nexport function getAsosFulfilsPrefix({ sellerId, sourceId }) {\n return sellerId && sellerId !== \"asos\" && sourceId !== sellerId\n ? \"afs - \"\n : \"\";\n}\n\nexport function getCtaRef(caseInsensitive = true) {\n const s = getWindow()?.s;\n return s && s.getQueryParamValue(\"ctaref\", caseInsensitive);\n}\n","import getWindow from \"../utils/window\";\nimport { BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME } from \"./backInStock\";\n\nconst trackingEvents = {\n pageLoad: new Set(),\n postPageLoad: new Set(),\n addToBag: new Set(),\n addToBagError: new Set(),\n sourcingLocation: new Set(),\n fitAssistantOpen: new Set(),\n fitAssistantClose: new Set(),\n [BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME]: new Set(),\n looksModalOpen: new Set(),\n addToBagLooks: new Set(),\n looksProductView: new Set(),\n looksCtaView: new Set(),\n looksButtonScroll: new Set(),\n looksContentView: new Set(),\n};\n\nfunction getEventsForTrackingName(trackingName) {\n return trackingEvents[trackingName];\n}\n\nfunction getEventNameFromEvent(event) {\n return event.split(\"=\")[0];\n}\n\nexport function setEvents({ events, trackingName }) {\n const currentEvents = getEventsForTrackingName(trackingName);\n\n for (const event of events) {\n const matchedEvent = [...currentEvents].find((currentEvent) =>\n currentEvent.includes(`${getEventNameFromEvent(event)}=`)\n );\n if (matchedEvent) {\n currentEvents.delete(matchedEvent);\n }\n currentEvents.add(event);\n }\n}\n\nexport function setLinkTrackEvents({ trackingName }) {\n const s = getWindow().s;\n const currentEvents = [...getEventsForTrackingName(trackingName)];\n\n s.events = currentEvents.join(\",\");\n\n return currentEvents.map((event) => getEventNameFromEvent(event)).join(\",\");\n}\n\nexport function clearEvents({ trackingName }) {\n trackingEvents[trackingName].clear();\n}\n","import { getCustomerIsAuthenticated } from \"../utils/identity\";\n\nexport const NEW_USER = \"new user\";\n\nfunction getFitAssistantState({\n recommendedSize,\n outOfScale,\n isPartialRecommendation,\n isProductUnsupported,\n}) {\n if (recommendedSize === NEW_USER) {\n if (!isProductUnsupported) {\n return \"first time interaction\";\n }\n return \"fa not present\";\n }\n\n if (outOfScale) {\n return \"out of scale\";\n }\n\n return isPartialRecommendation\n ? \"partial recommendation\"\n : \"full recommendation\";\n}\n\nasync function getSignedInStatus() {\n const customerisAuthenticated = await getCustomerIsAuthenticated();\n\n return customerisAuthenticated ? \"signed in\" : \"not signed in\";\n}\n\nfunction getUserProfile({ usedPastPurchases, isProductUnsupported }) {\n if (isProductUnsupported) {\n return null;\n }\n\n return usedPastPurchases\n ? \"previous purchase data\"\n : \"no previous purchase data\";\n}\n\nfunction getCategory({ category, isProductUnsupported }) {\n return category && !isProductUnsupported ? category : null;\n}\n\nfunction getStockStatus({ outOfStock, isProductUnsupported }) {\n if (isProductUnsupported) {\n return \"na\";\n }\n return outOfStock ? \"recommendation not in stock\" : \"recommendation in stock\";\n}\n\nexport const getFitAssistantStatus = async ({\n recommendedSize,\n outOfScale,\n isPartialRecommendation,\n isProductUnsupported,\n usedPastPurchases,\n category,\n customerPreferences,\n outOfStock,\n invalidFitProduct,\n noFitStatus,\n}) => {\n const signedInStatus = await getSignedInStatus();\n\n if (noFitStatus) {\n return `${signedInStatus}-fa status not available-null-null-na`;\n }\n\n if (invalidFitProduct) {\n return `${signedInStatus}-fa not present-null-null-na`;\n }\n\n if (!customerPreferences) {\n return `${signedInStatus}-cookies blocked-null-null-na`;\n }\n\n const fitAssistantState = getFitAssistantState({\n recommendedSize,\n outOfScale,\n isPartialRecommendation,\n isProductUnsupported,\n });\n const userProfile = getUserProfile({\n usedPastPurchases,\n isProductUnsupported,\n });\n const bodyCategory = getCategory({ category, isProductUnsupported });\n const stockStatus = getStockStatus({ outOfStock, isProductUnsupported });\n\n return `${signedInStatus}-${fitAssistantState}-${userProfile}-${bodyCategory}-${stockStatus}`;\n};\n\nexport const getFitAssistantSize = ({ storeCode, recommendedSize }) =>\n `${storeCode}|${\n recommendedSize === NEW_USER ? \"no recommended size set\" : recommendedSize\n }`.toLowerCase();\n","import getWindow from \"../../utils/window\";\n\nexport const getCommonLooksTrackingValues = ({ products }) => {\n const s = getWindow().s;\n const heroProduct = products.find(({ isHero }) => isHero);\n\n return {\n pageName: `look: ${heroProduct?.id}`,\n prop4: `${s.prop1}~${s.prop2}~${s.prop3}`,\n prop8: \"buy the look\",\n eVar60: \"buy the look\",\n eVar61: \"buy the look\",\n };\n};\n","import getWindow from \"./window\";\n\nconst getPreviousValue = (key) => {\n const s = getWindow().s;\n\n const value = s.getPreviousValue(null, key);\n\n return value === \"no value\" || value === \"\" ? null : value;\n};\n\nexport default getPreviousValue;\n","import getWindow from \"../../utils/window\";\nimport getRuntimeConstants from \"../../runtimeConstants\";\nimport { setEvents } from \"../events\";\nimport { addMerchEVarToProducts } from \"../common\";\nimport { isProductWithSupplierColours } from \"../../components/facets/utils/shouldShowColour\";\n\nconst getPageName = ({ isMixAndMatch, webContext }) => {\n const pageType = isMixAndMatch ? \"mix&match\" : \"product\";\n const platform = webContext.platform;\n const storeId = webContext.storeId.toLowerCase();\n\n return `${platform} ${storeId}|${pageType}|${getWindow().document.title}`;\n};\n\nconst getProductIds = ({ isMixAndMatch, product }) =>\n isMixAndMatch\n ? `;${product.products.map(({ id }) => id).join(\",;\")}`\n : `;${product.id}`;\n\nconst isSizeGuideVisible = ({ isMixAndMatch, product }) =>\n isMixAndMatch\n ? product.products.some(({ sizeGuideVisible }) => sizeGuideVisible)\n : product.sizeGuideVisible;\n\nconst addMixAndMatchOnlyValues = ({ events, s, isMixAndMatch }) => {\n if (isMixAndMatch) {\n s.eVar181 = \"mix & match\";\n\n events.push(\"event15\");\n }\n};\n\nconst addShippingRestrictions = ({ product, events }) => {\n if (product.shippingRestrictions?.shippingRestrictionsVisible) {\n events.push(\"event217\");\n }\n};\n\nconst addVideo = ({ product, events }) => {\n if (product.media?.catwalkUrl?.length) {\n events.push(\"event245\");\n }\n};\n\nconst addIngredients = ({ product, events }) => {\n if (product.isInStock && product.hasVariantsWithIngredients) {\n events.push(\"event281\");\n }\n};\n\nconst addSellingFast = ({ product, s }) => {\n if (product.sellingFast) {\n s.eVar152 = \"selling fast\";\n }\n};\n\nconst addFacets = ({ product, s }) => {\n if (s?.products && isProductWithSupplierColours(product)) {\n s.products = addMerchEVarToProducts(s.products, \"eVar246=more colours\");\n }\n};\n\nconst addSingleProductOnlyValues = ({ events, s, isMixAndMatch, product }) => {\n if (!isMixAndMatch) {\n addShippingRestrictions({ product, events });\n addVideo({ product, events });\n addIngredients({ product, events });\n addSellingFast({ product, s });\n addFacets({ product, s });\n }\n};\n\nexport function setSingleAndMixAndMatchPageLoadValues({ product }) {\n const s = getWindow().s;\n const events = [];\n\n const { isMixAndMatch, webContext } = getRuntimeConstants();\n\n s.pageName = getPageName({ isMixAndMatch, webContext });\n s.products = getProductIds({ isMixAndMatch, product });\n\n const previousPageName = s.getPreviousValue(s.pageName, \"gpv_p10\", \"\");\n\n if (previousPageName && previousPageName !== \"no value\") {\n s.prop10 = previousPageName.toLowerCase();\n }\n\n if (isSizeGuideVisible({ isMixAndMatch, product })) {\n s.eVar183 = product.brandName;\n events.push(\"event256\");\n }\n\n addMixAndMatchOnlyValues({ events, s, isMixAndMatch });\n addSingleProductOnlyValues({ events, s, isMixAndMatch, product });\n\n setEvents({ events, trackingName: \"pageLoad\" });\n}\n","import { getInStockVariants } from \"../../utils/variantUtils\";\n\nexport const getTotalInStock = ({ variants }) =>\n getInStockVariants(variants).length;\n","import getWindow from \"../../utils/window\";\nimport { setRatings } from \"./ratings\";\nimport { setGeneralPageLoadAnalytics } from \"./general\";\nimport { setSingleAndMixAndMatchPageLoadValues } from \"./singleVsMixAndMatch\";\nimport { setStockStatusPageLoadValues } from \"./stockStatus\";\nimport { setSponsoredAdsPageLoadValues } from \"./sponsoredAds\";\nimport { setCategoryPageCarouselAnalytics } from \"./categoryPageCarousel\";\nimport { setFeatureProductAnalytics } from \"./featuredProducts\";\nimport { setVisitorIdentifierAnalytics } from \"./visitorIdentifier\";\nimport { setLinkTrackEvents } from \"../events\";\nimport { addMerchEVarToProducts, getCommons } from \"../common\";\nimport sendBeacon from \"../../utils/sendBeacon\";\nimport { getProductFlags } from \"./productFlags\";\nimport getRuntimeConstants from \"../../runtimeConstants\";\n\nlet resolvePageLoad;\n\nexport const waitForPageLoadAnalytics = new Promise((resolve) => {\n resolvePageLoad = () => {\n const time = Date.now();\n const linkTrackEventDelay = Math.ceil(time / 1000) * 1000 - time;\n setTimeout(resolve, linkTrackEventDelay);\n };\n});\n\nfunction readyToFireFeatures({ product, areFeaturesReady }) {\n return product && areFeaturesReady && getWindow()?.s;\n}\n\nexport const initialiseAnalytics = ({ product, areFeaturesReady, ratings }) => {\n // the page load function is *fired* after 2 events are complete\n // optimizely (features) are ready\n // and stockPrice has resolved\n // and one trip round the eventloop so that any analytics set\n // by synchronous processes resolved by those promises\n // are in place before firing\n\n if (!readyToFireFeatures({ product, areFeaturesReady })) {\n return;\n }\n\n const { isMixAndMatch } = getRuntimeConstants();\n\n setGeneralPageLoadAnalytics();\n setSingleAndMixAndMatchPageLoadValues({ product });\n setStockStatusPageLoadValues({ product });\n setSponsoredAdsPageLoadValues();\n setCategoryPageCarouselAnalytics();\n setFeatureProductAnalytics();\n setVisitorIdentifierAnalytics();\n\n if (product.isInStock) {\n setRatings(ratings);\n }\n\n const s = getWindow().s;\n if (s) {\n setTimeout(() => {\n const productFlags = getProductFlags();\n\n if (productFlags.length) {\n s.eVar248 = productFlags;\n s.products = addMerchEVarToProducts(\n s.products,\n `eVar247=${productFlags}`\n );\n }\n\n if (\n !isMixAndMatch &&\n product.restockingSoonDetails.shouldShowRestockingSoon\n ) {\n s.products = addMerchEVarToProducts(\n s.products,\n \"eVar236=restocking soon\"\n );\n }\n\n getWindow().s.linkTrackEvents = setLinkTrackEvents({\n trackingName: \"pageLoad\",\n });\n getCommons().setLinkTrackVars(\n [\"products\"],\n \"eVar185\",\n \"eVar186\",\n \"eVar201\"\n );\n s.t();\n resolvePageLoad();\n getWindow().asos.eventBus.emit(\"pageLoadAnalyticsFired\");\n getWindow().dispatchEvent(new Event(\"pageLoadAnalyticsFired\"));\n sendBeacon(product.id, \"onClickBeacon\");\n }, 0);\n }\n};\n","import getWindow from \"../../utils/window\";\nimport getRuntimeConstants from \"../../runtimeConstants\";\nimport { setEvents } from \"../events\";\nimport getPreviousValue from \"../../utils/getPreviousValue\";\n\nconst getViewportDimensions = () => {\n const height = getWindow().innerHeight;\n const width = getWindow().innerWidth;\n\n return width && height ? `${width}:${height}` : \"\";\n};\n\nconst getChannel = ({ urlParams, referrerData }) => {\n if (referrerData?.cid) {\n return referrerData.cid;\n }\n\n if (referrerData?.searchQuery) {\n return \"search\";\n }\n\n if (urlParams.ctaref) {\n return getCtarefChannel(urlParams);\n }\n\n return \"product page\";\n};\n\nconst getCtarefChannel = ({ ctaref }) => {\n if (ctaref.includes(\"bag\")) {\n return \"basket page\";\n }\n if (ctaref.includes(\"saved items\")) {\n return \"saved items\";\n }\n if (ctaref.includes(\"wishlists\")) {\n return \"wishlists\";\n }\n};\n\nexport const setGeneralPageLoadAnalytics = () => {\n const s = getWindow()?.s;\n const events = s.events ? s.events.split(\",\") : [];\n\n const {\n webContext,\n appVersion,\n urlParams,\n analyticsBreadcrumbs,\n referrerData,\n } = getRuntimeConstants();\n\n s.channel = getChannel({ urlParams, referrerData });\n s.prop8 = \"product page\";\n s.server = `${webContext.platform} ${webContext.storeId.toLowerCase()}`;\n s.campaign = s.getCampaignID();\n s.eVar1 = s.getVisitNum();\n s.eVar17 = s.getNewRepeat(365);\n s.eVar70 = s.getBagItems();\n s.prop5 = s.getCustomTimeDate();\n s.eVar45 = appVersion;\n s.eVar112 = webContext.browseCountry.toLowerCase();\n s.eVar113 = webContext.browseCurrency.toLowerCase();\n s.prop11 = encodeURI(getWindow().location.href.replace(/%20/gi, \"+\"));\n s.eVar19 = getViewportDimensions();\n s.eVar25 = referrerData?.searchQuery;\n s.prop6 = s.getQueryParamValue(\"ctaref\", true)?.toLowerCase();\n\n const eVar231 = getPreviousValue(\"gpv_e231\");\n if (eVar231) {\n s.eVar231 = eVar231;\n }\n\n s.setContentHierarchy(\n \"product page\",\n analyticsBreadcrumbs,\n referrerData?.cid\n );\n\n if (\"performance\" in getWindow()) {\n const navApi = getWindow().performance.timing;\n const responseToNavigation = navApi.responseStart - navApi.navigationStart;\n const domContentToNavigation =\n navApi.domContentLoadedEventEnd - navApi.navigationStart;\n\n s.eVar29 = responseToNavigation;\n s.eVar30 = domContentToNavigation;\n events.push(`event128=${domContentToNavigation}`);\n }\n\n events.push(\"prodView\");\n events.push(\"event1\");\n events.push(\"event35\");\n\n s.eVar20 = s.eVar6;\n\n setEvents({ events, trackingName: \"pageLoad\" });\n};\n","import getWindow from \"../../utils/window\";\nimport getRuntimeConstants from \"../../runtimeConstants\";\nimport { setEvents } from \"../events\";\nimport { getTotalUniqueSizes } from \"../../utils/getTotalUniqueSizes\";\nimport { getTotalInStock } from \"../../utils/getTotalInStock\";\n\nconst getVariantStockStatus = ({ variants }) => {\n if (!variants) {\n return \"\";\n }\n\n const stockStatuses = variants.map(\n ({\n variantId,\n isInStock,\n price: {\n current: { value: variantPrice },\n },\n }) =>\n `variantstockstatus:${variantId}_${isInStock ? \"1\" : \"0\"}_${variantPrice}`\n );\n\n return stockStatuses.join(\",\");\n};\n\nconst areAllMixAndMatchProductsInStock = ({ product }) =>\n product.products.some(({ isInStock }) => isInStock);\n\nconst getSingleProductStockStatusEvent = ({ product }) => {\n if (product.isDiscontinued || getTotalInStock(product) === 0) {\n return \"event45\";\n }\n\n if (getTotalInStock(product) === product.variants.length) {\n return \"event43\";\n }\n\n return \"event44\";\n};\n\nconst getMixAndMatchStockStatusEvent = ({ product }) =>\n areAllMixAndMatchProductsInStock({ product }) ? \"event43\" : \"event45\";\n\nexport const setStockStatusPageLoadValues = ({ product } = {}) => {\n const s = getWindow().s;\n const events = [];\n\n const { isMixAndMatch } = getRuntimeConstants();\n\n if (isMixAndMatch) {\n events.push(getMixAndMatchStockStatusEvent({ product }));\n } else {\n events.push(getSingleProductStockStatusEvent({ product }));\n }\n\n if (!isMixAndMatch) {\n const uniqueSizes = getTotalUniqueSizes(product);\n const totalNumberOfVariants = product.variants.length;\n const numberOfInStockVariants = getTotalInStock(product);\n const productAvailability = numberOfInStockVariants / totalNumberOfVariants;\n const percentOfVariantsInStock =\n totalNumberOfVariants === 0\n ? \"0\"\n : `${(productAvailability * 100).toFixed(2)}%`;\n\n s.eVar26 = uniqueSizes;\n events.push(`event271=${uniqueSizes}`);\n events.push(`event277=${numberOfInStockVariants}`);\n\n s.list1 = getVariantStockStatus(product);\n\n s.eVar31 =\n s.eVar36 = `${totalNumberOfVariants}|${numberOfInStockVariants}|${percentOfVariantsInStock}|null|null|null|null|null|null`;\n\n if (totalNumberOfVariants > 0) {\n events.push(`event294=${productAvailability.toFixed(3)}`);\n }\n }\n\n setEvents({ events, trackingName: \"pageLoad\" });\n};\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\nimport { addMerchEVarToProducts } from \"../common\";\nimport getPreviousValue from \"../../utils/getPreviousValue\";\n\nexport function setSponsoredAdsPageLoadValues() {\n const s = getWindow().s;\n const eVar230FromPLP = getPreviousValue(\"gpv_eVar230\");\n\n if (!eVar230FromPLP) {\n return;\n }\n\n s.eVar230 = eVar230FromPLP;\n\n const eVar10FromPLP = getPreviousValue(\"gpv_eVar10\");\n\n if (eVar10FromPLP) {\n s.eVar10 = eVar10FromPLP;\n }\n\n s.products = addMerchEVarToProducts(\n s.products,\n `eVar243=${s.getAndPersistValue(null, \"gpv_eVar243\")}`\n );\n\n setEvents({ events: [\"event330\"], trackingName: \"pageLoad\" });\n}\n","import { setEvents } from \"../events\";\nimport getWindow from \"../../utils/window\";\nimport { addMerchEVarToProducts } from \"../common\";\nimport getPreviousValue from \"../../utils/getPreviousValue\";\n\nexport function setCategoryPageCarouselAnalytics() {\n const s = getWindow().s;\n const eVar234FromPLP = getPreviousValue(\"gpv_eVar234\");\n if (!eVar234FromPLP) {\n return;\n }\n\n s.gpv_eVar234 = eVar234FromPLP;\n s.products = addMerchEVarToProducts(s.products, `eVar234=${eVar234FromPLP}`);\n\n setEvents({ events: [\"event316\"], trackingName: \"pageLoad\" });\n}\n","import getWindow from \"../../utils/window\";\nimport { addMerchEVarToProducts } from \"../common\";\nimport getPreviousValue from \"../../utils/getPreviousValue\";\n\nexport function setFeatureProductAnalytics() {\n const s = getWindow().s;\n const eVar193FromPLP = getPreviousValue(\"gpv_eVar193\");\n if (!eVar193FromPLP) {\n return;\n }\n\n s.gpv_eVar193 = eVar193FromPLP;\n s.products = addMerchEVarToProducts(s.products, `eVar193=${eVar193FromPLP}`);\n}\n","import getWindow from \"../../utils/window\";\nimport getPreviousValue from \"../../utils/getPreviousValue\";\n\nexport function setVisitorIdentifierAnalytics() {\n const s = getWindow().s;\n const eVar198FromPLP = getPreviousValue(\"gpv_e198\");\n if (!eVar198FromPLP) {\n return;\n }\n\n s.eVar198 = eVar198FromPLP;\n}\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\nimport {\n getAverageOverallRating,\n getMostRecentRating,\n getTotalReviewCount,\n hasRatings,\n} from \"../ratings\";\n\nexport const setRatings = (ratings) => {\n const s = getWindow()?.s;\n const events = [];\n\n if (hasRatings(ratings)) {\n const { eVar185, event257 } = getAverageOverallRating(ratings);\n const { eVar186, event258 } = getTotalReviewCount(ratings);\n\n s.eVar185 = eVar185;\n s.eVar186 = eVar186;\n\n events.push(event257);\n events.push(event258);\n events.push(\"event275\");\n\n if (ratings.mostRecent) {\n const { eVar201, event274 } = getMostRecentRating(ratings);\n\n s.eVar201 = eVar201;\n events.push(event274);\n }\n }\n\n setEvents({ events, trackingName: \"pageLoad\" });\n};\n","import { setEvents } from \"../events\";\nimport getWindow from \"../../utils/window\";\n\nexport const setPaymentPromoViewed = ({ providers }) => {\n const s = getWindow()?.s;\n\n if (providers.length && !s.eVar238) {\n setEvents({ events: [\"event324\"], trackingName: \"pageLoad\" });\n s.eVar238 = providers.join(\"|\");\n }\n};\n","import { waitForPageLoadAnalytics } from \"./pageLoad\";\n\nlet pageLoadTrackingSent = false;\n\nwaitForPageLoadAnalytics.then(() => {\n pageLoadTrackingSent = true;\n});\n\nexport const hasPageLoadFired = () => pageLoadTrackingSent;\n","import getWindow from \"../../utils/window\";\nimport { getDiscountAmount } from \"../../utils/discountPriceData\";\nimport { hasPageLoadFired } from \"./pageLoadTrackingFired\";\n\nexport const setDiscountOnPrice = ({ priceData }) => {\n if (!getWindow() || hasPageLoadFired()) {\n return;\n }\n\n const s = getWindow().s;\n\n const discountAmount = getDiscountAmount(priceData);\n\n if (discountAmount && !s.eVar161) {\n s.eVar161 = discountAmount.toString();\n }\n};\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\nimport { allVariantsAsosFulfils } from \"../../../utils/variantUtils\";\nimport { hasPageLoadFired } from \"./pageLoadTrackingFired\";\n\nconst sources = new Set();\n\nconst getNumberOfUniqueNonPrimarySources = (variants) => {\n variants.forEach((variant) => {\n if (variant.source) {\n sources.add(variant.source?.id);\n } else if (variant.seller) {\n sources.add(variant.seller?.id);\n }\n }, []);\n\n return sources.size;\n};\n\nconst appendToList = (listString, value) => {\n const list = listString ? listString.split(\",\") : [];\n\n if (!list.includes(value)) {\n list.push(value);\n }\n\n return list.join(\",\");\n};\n\nconst createSourceInfo = (productId, variants, fulfillerId) =>\n `${productId}:${\n allVariantsAsosFulfils(variants) ? \"afs - \" : \"\"\n }${fulfillerId}`;\n\nlet event288 = false;\n\nconst shouldUpdateEvent288 = (hasShippedByLabel) => {\n if (hasShippedByLabel && !event288) {\n event288 = true;\n return true;\n }\n return false;\n};\n\nconst setEVar210 = ({ s, productId, variants, fulfillerId }) => {\n s.eVar210 = appendToList(\n s.eVar210,\n createSourceInfo(productId, variants, fulfillerId.toLowerCase())\n );\n};\n\nconst setEVar212 = ({ s, variants }) => {\n s.eVar212 = getNumberOfUniqueNonPrimarySources(variants).toString();\n};\n\nconst setEVar214 = ({ s, sellerId, productId, variants }) => {\n if (!sellerId) {\n s.eVar214 = appendToList(s.eVar214, `${productId}:asos`);\n } else {\n s.eVar214 = appendToList(\n s.eVar214,\n createSourceInfo(productId, variants, sellerId.toLowerCase())\n );\n }\n};\n\nexport const setShippingSourcesForProduct = ({\n fulfillerId,\n sellerId,\n hasShippedByLabel,\n productId,\n variants,\n}) => {\n const s = getWindow()?.s;\n\n if (!s || hasPageLoadFired()) {\n return;\n }\n\n setEVar212({ s, variants });\n\n if (!fulfillerId) {\n return;\n }\n\n setEVar210({ s, variants, productId, fulfillerId });\n setEVar214({ s, sellerId, productId, variants });\n\n if (shouldUpdateEvent288(hasShippedByLabel)) {\n setEvents({ events: [\"event288\"], trackingName: \"pageLoad\" });\n }\n};\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\nimport { addMerchEVarToProducts } from \"../common\";\n\nlet isShowing = false;\n\nexport const setSaveCount = (numSaves) => {\n if (!getWindow()) {\n return;\n }\n const s = getWindow().s;\n\n if (!isShowing) {\n s.products = addMerchEVarToProducts(s.products, `eVar228=${numSaves}`);\n setEvents({ events: [\"event313\"], trackingName: \"pageLoad\" });\n isShowing = true;\n getWindow().asos.pdp.config.product.saveCount.isShowing = true;\n }\n};\n\nexport const isShowingSaveCount = () => {\n return isShowing;\n};\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\n\nexport const setPricingIconLoad = () => {\n if (!getWindow()) {\n return;\n }\n setEvents({ events: [\"event332\"], trackingName: \"pageLoad\" });\n};\n","const productFlags = new Set();\n\nexport function getProductFlags() {\n return Array.from(productFlags).join(\"~\");\n}\n\nexport function setProductFlag(value) {\n productFlags.add(value);\n}\n\nexport function buildProductFlag({ key, shown }) {\n return `${key}:${shown ? \"y\" : \"n\"}`;\n}\n","import { setEvents } from \"../events\";\n\nlet backInStockResolve;\n\nexport const backInStockPromise = new Promise(\n (resolve) => (backInStockResolve = resolve)\n);\n\nexport const ignoreBackInStockAnalytics = () => backInStockResolve();\n\nexport const setBackInStockAnalytics = async () => {\n setEvents({ events: [\"event225\"], trackingName: \"postPageLoad\" });\n backInStockResolve();\n};\n","import getWindow from \"../../utils/window\";\nimport {\n getFitAssistantSize,\n getFitAssistantStatus,\n} from \"../fitAssistantCommon\";\nimport { setEvents } from \"../events\";\n\nlet fitAssistantResolve;\n\nexport const fitAssistantPromise = new Promise(\n (resolve) => (fitAssistantResolve = resolve)\n);\n\nexport const ignoreFitAssistantAnalytics = () => fitAssistantResolve();\n\nexport const setFitAssistantAnalytics = async ({\n recommendedSize,\n outOfScale,\n isPartialRecommendation,\n isProductUnsupported,\n usedPastPurchases,\n category,\n customerPreferences,\n outOfStock,\n storeCode,\n invalidFitProduct,\n}) => {\n const s = getWindow().s;\n\n s.prop36 = await getFitAssistantStatus({\n recommendedSize,\n outOfScale,\n isPartialRecommendation,\n isProductUnsupported,\n usedPastPurchases,\n category,\n customerPreferences,\n outOfStock,\n invalidFitProduct,\n });\n\n if (customerPreferences && !invalidFitProduct) {\n s.eVar50 = getFitAssistantSize({ storeCode, recommendedSize });\n setEvents({ events: [\"event50\"], trackingName: \"postPageLoad\" });\n }\n fitAssistantResolve();\n};\n","function getRatingAsPercent(rating) {\n return (rating / 5).toFixed(2);\n}\n\nfunction formatPercent(percent) {\n return (percent / 100).toFixed(2);\n}\n\nexport function hasRatings(ratings) {\n return !!ratings && !!Object.keys(ratings).length;\n}\n\nexport function getAverageOverallRating(ratings) {\n let eVar185;\n let merchEVar189;\n let event257;\n\n if (hasRatings(ratings)) {\n if (ratings.averageOverallRating) {\n const averageOverallRating = getRatingAsPercent(\n ratings.averageOverallRating\n );\n eVar185 = averageOverallRating;\n merchEVar189 = `eVar189=${averageOverallRating}`;\n event257 = `event257=${averageOverallRating}`;\n }\n } else {\n merchEVar189 = \"eVar189=value not in response\";\n }\n\n return {\n eVar185,\n merchEVar189,\n event257,\n };\n}\n\nexport function getTotalReviewCount(ratings) {\n let eVar186;\n let merchEVar190;\n let event258;\n\n if (hasRatings(ratings)) {\n if (ratings.totalReviewCount) {\n const totalReviewCount = ratings.totalReviewCount.toString();\n\n eVar186 = totalReviewCount;\n merchEVar190 = `eVar190=${totalReviewCount}`;\n event258 = `event258=${totalReviewCount}`;\n }\n } else {\n merchEVar190 = \"eVar190=value not in response\";\n }\n\n return {\n eVar186,\n merchEVar190,\n event258,\n };\n}\n\nexport function getPercentageRecommended(ratings) {\n let eVar187;\n let merchEVar191;\n let event259;\n\n if (hasRatings(ratings)) {\n if (ratings.percentageRecommended) {\n eVar187 = ratings.percentageRecommended;\n event259 = `event259=${ratings.percentageRecommended}`;\n merchEVar191 = `eVar191=${ratings.percentageRecommended}`;\n }\n } else {\n merchEVar191 = \"eVar191=value not in response\";\n }\n\n return {\n eVar187,\n merchEVar191,\n event259,\n };\n}\n\nexport function getMostRecentRating(ratings) {\n let eVar201;\n let merchEVar202;\n let event274;\n\n if (hasRatings(ratings)) {\n if (ratings.mostRecent?.rating) {\n const mostRecentRating = getRatingAsPercent(ratings.mostRecent.rating);\n\n eVar201 = mostRecentRating;\n merchEVar202 = `eVar202=${mostRecentRating}`;\n event274 = `event274=${mostRecentRating}`;\n }\n } else {\n merchEVar202 = \"eVar202=value not in response\";\n }\n\n return {\n eVar201,\n merchEVar202,\n event274,\n };\n}\n\nexport function getFirstSubRatingValue(ratings) {\n let eVar188 = \"value not in response|value not in response\";\n let merchEVar192;\n let event260;\n\n if (hasRatings(ratings)) {\n if (ratings.subRatings?.length) {\n const firstSubRating = ratings.subRatings[0];\n const firstSubRatingPercentage = formatPercent(firstSubRating.percentage);\n\n eVar188 = `${firstSubRating.id}|${firstSubRatingPercentage}`;\n merchEVar192 = `eVar192=${firstSubRating.id} ${firstSubRatingPercentage}`;\n event260 = `event260=${firstSubRatingPercentage}`;\n }\n } else {\n merchEVar192 = \"eVar192=value not in response\";\n }\n\n return {\n eVar188,\n merchEVar192,\n event260,\n };\n}\n","import getRequest from \"../utils/requests\";\nimport { logError, ERROR_TYPE } from \"../utils/newRelicLogger\";\nimport { queryObjectToString } from \"../utils/url\";\nimport { GET } from \"../constants\";\n\nfunction removeAuthorizationHeader(headers) {\n const redactedHeaders = { ...headers };\n delete redactedHeaders[\"authorization\"];\n return redactedHeaders;\n}\n\nexport default async function makeRequest({\n params,\n url,\n timeout,\n headers,\n requestType,\n apiName,\n caller,\n mapData,\n body,\n handleErrorReturnValue,\n method = GET,\n}) {\n return getRequest()\n [method]({\n url,\n params,\n timeout,\n headers,\n body,\n additionalLoggingParams: {\n requestType,\n },\n })\n .then(({ data }) => {\n if (mapData) {\n return mapData(data);\n }\n return data;\n })\n .catch((error) => {\n logError(ERROR_TYPE.AjaxError, {\n apiName,\n caller,\n requestUrl: `${url}${params ? \"?\" + queryObjectToString(params) : \"\"}`,\n message: error.message,\n status: error.response?.status,\n response: error.response?.data,\n requestHeaders: removeAuthorizationHeader(error.config?.headers),\n responseHeaders: error.response?.headers,\n });\n if (handleErrorReturnValue) {\n return handleErrorReturnValue(error);\n }\n });\n}\n","import getWindow from \"../utils/window\";\n\nlet stockPriceResponse;\n\nexport default async function getStockPrice(product, retry) {\n if (product.isDiscontinued) {\n return [];\n }\n\n if (getWindow() && (!stockPriceResponse || retry)) {\n stockPriceResponse = getWindow().asos.pdp.getStockPrice(retry);\n }\n\n return stockPriceResponse;\n}\n","import { PRODUCT_COLOUR_POSITIONS, SMALL_VIEWPORT } from \"../../../constants\";\n\nexport const isProductWithSupplierColours = (product) => {\n return (\n !!product?.facetGroup &&\n product.facetGroup.facets.some((facet) => facet.type === \"SupplierColour\")\n );\n};\n\nexport const shouldShowFacets = ({ product, areFeaturesReady, getFeature }) => {\n if (!isProductWithSupplierColours(product)) {\n return false;\n }\n\n return isFacetFeatureEnabled({ getFeature, areFeaturesReady });\n};\n\nexport const shouldShowFacetCarousel = ({\n viewportCategory,\n position,\n product,\n areFeaturesReady,\n getFeature,\n}) =>\n viewportCategory === SMALL_VIEWPORT &&\n position === PRODUCT_COLOUR_POSITIONS.TOP &&\n shouldShowFacets({\n product,\n areFeaturesReady,\n getFeature,\n });\n\nexport const shouldShowFacetPalette = ({\n viewportCategory,\n product,\n position,\n areFeaturesReady,\n getFeature,\n}) =>\n viewportCategory !== SMALL_VIEWPORT &&\n position === PRODUCT_COLOUR_POSITIONS.MIDDLE &&\n shouldShowFacets({\n product,\n areFeaturesReady,\n getFeature,\n });\n\nexport const shouldShowProductColour = ({\n product,\n colours,\n position,\n getFeature,\n areFeaturesReady,\n}) =>\n colours.length === 1 &&\n position === PRODUCT_COLOUR_POSITIONS.MIDDLE &&\n !(\n !!product?.facetGroup &&\n isFacetFeatureEnabled({ getFeature, areFeaturesReady })\n );\n\nconst isFacetFeatureEnabled = ({ getFeature, areFeaturesReady }) => {\n if (areFeaturesReady) {\n const facetGroupFeature = getFeature(\"plp-pdp-facet-groups\", null, {\n app: \"pdp\",\n });\n\n //An exception where we're using the variable \"PDP: true\" to decide whether to show the feature,\n // but we still need to call isEnabled for optimizely to know its been seen\n facetGroupFeature.isEnabled();\n\n return facetGroupFeature.getVariables()?.bucket !== \"v2\";\n }\n return false;\n};\n","export const hasAssociatedLooks = ({ looksProducts }) =>\n looksProducts?.some((product) => product.isHero === false);\n","const config = {};\nlet loaded = false;\n\nconst getConfig = () => {\n if (!loaded) {\n Object.assign(config, window.asos.pdp.config);\n loaded = true;\n }\n\n return config;\n};\n\nexport default getConfig;\n","export const LARGE_VIEWPORT = \"large-viewport\";\nexport const MEDIUM_VIEWPORT = \"medium-viewport\";\nexport const SMALL_VIEWPORT = \"small-viewport\";\nexport const MAX_RECENTLY_VIEWED_PRODUCTS = 25;\n\nexport const IMAGE_SUFFIXES = {\n carousel: {\n 168: \"?$n_240w$&wid=168&fit=constrain\",\n 317: \"?$n_320w$&wid=317&fit=constrain\",\n 476: \"?$n_480w$&wid=476&fit=constrain\",\n 513: \"?$n_640w$&wid=513&fit=constrain\",\n 750: \"?$n_750w$&wid=750&fit=constrain\",\n },\n hero: {\n 317: \"?$n_320w$&wid=317&fit=constrain\",\n 476: \"?$n_480w$&wid=476&fit=constrain\",\n 513: \"?$n_640w$&wid=513&fit=constrain\",\n 750: \"?$n_750w$&wid=750&fit=constrain\",\n 952: \"?$n_960w$&wid=952&fit=constrain\",\n 1125: \"?$n_1280w$&wid=1125&fit=constrain\",\n 1926: \"?$n_1920w$&wid=1926&fit=constrain\",\n },\n thumbnail: {\n 40: \"?$n_240w$&wid=40&fit=constrain\",\n 56: \"?$n_240w$&wid=56&fit=constrain\",\n 75: \"?$n_240w$&wid=75&fit=constrain\",\n 120: \"?$n_240w$&wid=120&fit=constrain\",\n 240: \"?$n_240w$&wid=168&fit=constrain\",\n 317: \"?$n_320w$&wid=317&fit=constrain\",\n },\n collage: {\n 240: \"&$n_240w$&wid=240&fit=constrain\",\n 320: \"&$n_320w$&wid=320&fit=constrain\",\n 480: \"&$n_480w$&wid=480&fit=constrain\",\n 640: \"&$n_640w$&wid=640&fit=constrain\",\n 750: \"&$n_750w$&wid=750&fit=constrain\",\n 960: \"&$n_960w$&wid=960&fit=constrain\",\n 1280: \"&$n_1280w$&wid=1280&fit=constrain\",\n 1920: \"&$n_1920w$&wid=1920&fit=constrain\",\n },\n card: {\n 163: \"?$n_240w$&wid=163&fit=constrain\",\n 218: \"?$n_240w$&wid=218&fit=constrain\",\n 326: \"?$n_480w$&wid=326&fit=constrain\",\n 436: \"?$n_480w$&wid=436&fit=constrain\",\n 489: \"?$n_640w$&wid=489&fit=constrain\",\n 654: \"?$n_750w$&wid=654&fit=constrain\",\n },\n};\n\nexport const CAROUSEL_IMAGE_SIZE = 168;\n\nexport const PAGE_AREAS = {\n MIGHT_LIKE: \"youmightlike\",\n LOOKS: \"looks\",\n LOOKS_SIMILAR_ITEMS: \"lookssimilaritems\",\n BUY_THE_LOOK: \"buythelook\",\n RECENTLY_VIEWED: \"recentlyviewed\",\n OUT_OF_STOCK: \"oosproduct\",\n MAIN: \"main\",\n PEOPLE_ALSO_BOUGHT: \"peoplealsobought\",\n};\n\nexport const PRODUCT_COLOUR_POSITIONS = {\n TOP: \"top\",\n MIDDLE: \"middle\",\n};\n\nexport const PRODUCT_COLOUR_TYPES = {\n WITHIN_CAROUSEL_FACETS: \"withinCarouselFacets\",\n DEFAULT: \"\",\n};\n\nexport const MODAL_TYPE = {\n CENTER: \"centerModal\",\n CENTER_LARGE: \"centerModalLarge\",\n SIDE: \"sideModal\",\n};\n\nexport const TEXT_SIZES = {\n london1: \"london1\",\n london2: \"london2\",\n london3: \"london3\",\n london4: \"london4\",\n london5: \"london5\",\n leavesden1: \"leavesden1\",\n leavesden2: \"leavesden2\",\n leavesden3: \"leavesden3\",\n leavesden4: \"leavesden4\",\n};\n\nexport const VIEW_MORE_OFFSET = 10;\nexport const VIEW_MORE_ERROR = \"viewmoreerror\";\nexport const FILTER_ERROR = \"filtererror\";\nexport const RATINGS_API_TIMEOUT = 5000;\nexport const MIGHT_LIKE_API_LIMIT = 18;\n\nexport const PROMISE_PENDING = \"PROMISE PENDING\";\n\nexport const US_STORE = \"US\";\nexport const CALIFORNIA_REGION_CODE = \"US-CA\";\nexport const PROP_65_URL = \"www.P65Warnings.ca.gov\";\nexport const PROP_65_SESSION_KEY = \"Asos.PDP.Prop65.Should.Show\";\n\nexport const INLINE_SPINNER = \"inline-spinner\";\nexport const SMALL_SPINNER = \"small-spinner\";\nexport const MEDIUM_SPINNER = \"medium-spinner\";\nexport const LARGE_SPINNER = \"large-spinner\";\n\nexport const REVIEW_DISCLAIMER_STORES = [\n \"COM\",\n \"DE\",\n \"FR\",\n \"ES\",\n \"IT\",\n \"PL\",\n \"DK\",\n \"SE\",\n \"RU\",\n \"ROE\",\n \"ROW\",\n \"US\",\n \"NL\",\n];\n\nexport const LOWEST_PRICE_IN_LAST_30_DAYS_COUNTRIES = [\n \"AD\",\n \"AL\",\n \"AM\",\n \"AT\",\n \"AX\",\n \"AZ\",\n \"BA\",\n \"BE\",\n \"BG\",\n \"BL\",\n \"CY\",\n \"CZ\",\n \"DE\",\n \"DK\",\n \"EE\",\n \"ES\",\n \"FI\",\n \"FO\",\n \"FR\",\n \"GE\",\n \"GF\",\n \"GL\",\n \"GP\",\n \"GR\",\n \"HR\",\n \"HU\",\n \"IE\",\n \"IT\",\n \"KG\",\n \"KZ\",\n \"LT\",\n \"LU\",\n \"LV\",\n \"MC\",\n \"MD\",\n \"ME\",\n \"MF\",\n \"MK\",\n \"MQ\",\n \"MT\",\n \"NC\",\n \"NL\",\n \"NO\",\n \"PF\",\n \"PL\",\n \"PM\",\n \"PT\",\n \"RE\",\n \"RO\",\n \"RS\",\n \"SE\",\n \"SI\",\n \"SJ\",\n \"SK\",\n \"SM\",\n \"TF\",\n \"TR\",\n \"VA\",\n \"WF\",\n \"YT\",\n];\n\nexport const LEGISLATION_API_TIMEOUT = 5000;\nexport const SUSTAINABILITY_INFO_CONFIG = [\n {\n store: \"FR\",\n browseLanguage: \"fr-FR\",\n includedInformation: [\"product\", \"packaging\"],\n },\n {\n store: \"IT\",\n browseLanguage: \"it-IT\",\n includedInformation: [\"packaging\", \"images\"],\n },\n];\n\nexport const SITE_CHROME_MODALS_URL = \"/web/pages/seller-info/index.html\";\nexport const SIMPLE_MODAL_URL = \"web/pages/simple-modal/index.html\";\n\nexport const LOCAL_STORAGE_KEY_BACK_IN_STOCK_BANNER_DISMISSED =\n \"Asos.ProductPage.BackInStockBannerDismissed\";\n\nexport const VARIANT_TYPE = {\n size: \"size\",\n colour: \"colour\",\n};\n\nexport const customerPreferenceCookie = \"C0003\";\nexport const fitAssistantLoggingPercent = 5;\n\nexport const FACET_PRODUCT_SIZE_SELECTION =\n \"asos-pdp-lastFacetedProductSizeSelected\";\n\nexport const BACK_IN_STOCK_BUTTON_ID = \"back-in-stock-button\";\nexport const BACK_IN_STOCK_API_TIMEOUT = 5000;\nexport const BACK_IN_STOCK_VARIANT_IDS_SESSION_KEY =\n \"Asos.ProductPage.BackInStockVariantIds\";\nexport const BACK_IN_STOCK_SELECTED_VARIANT =\n \"Asos.ProductPage.BackInStockSelectedVariant\";\n\nexport const PRIORITY_BACK_IN_STOCK = \"PriorityBackInStock\";\n\nexport const BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY = \"NOTIFY_ME_MODAL_COPY_KEY\";\nexport const BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY =\n \"TURN_OFF_ALERT_MODAL_COPY_KEY\";\n\nexport const BACK_IN_STOCK_SELECTED_PRODUCT =\n \"Asos.ProductPage.BackInStockSelectedProduct\";\n\nexport const GET = \"get\";\nexport const PUT = \"put\";\nexport const DELETE = \"delete\";\nexport const POST = \"post\";\n\nexport const PRODUCT_PROMO_LIVE_STORES = [\n \"FR\",\n \"ROE\",\n \"AU\",\n \"DK\",\n \"ES\",\n \"IT\",\n \"NL\",\n \"PL\",\n \"RU\",\n \"SE\",\n \"COM\",\n \"DE\",\n \"US\",\n \"ROW\",\n];\n\nexport const LOOKS_RECOMMENDATIONS_HEADER = \"pdp_ymal_btl\";\n\nexport const REPORT_LEGAL_CONCERN_LINK_PATH =\n \"/concerns/report-a-legal-concern\";\n\nexport const NOTIFICATION_DRAWER_ID = \"notificationDrawer\";\n\nexport const CUSTOMER_ACCESS_VIEW = \"view\";\nexport const CUSTOMER_ACCESS_PURCHASE = \"purchase\";\nexport const CUSTOMER_ACCESS_NONE = \"none\";\n\nexport const BULLET_SYMBOL = \" \\u2022 \";\n","import { createContext, useContext, useState, useEffect } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport {\n BACK_IN_STOCK_SELECTED_VARIANT,\n BACK_IN_STOCK_SELECTED_PRODUCT,\n} from \"../../constants\";\nimport {\n removeSessionStorageItem,\n getSessionStorageItem,\n} from \"../../utils/storage\";\n\nconst BackInStockContext = createContext(null);\n\nexport const BackInStockProvider = ({ children }) => {\n const [previousBackInStockVariantId, setPreviousBackInStockVariantId] =\n useState(null);\n const [previousBackInStockProductId, setPreviousBackInStockProductId] =\n useState(null);\n\n useEffect(() => {\n const originalVariantId = getSessionStorageItem(\n BACK_IN_STOCK_SELECTED_VARIANT\n );\n const originalProductId = getSessionStorageItem(\n BACK_IN_STOCK_SELECTED_PRODUCT\n );\n setPreviousBackInStockVariantId(originalVariantId);\n setPreviousBackInStockProductId(originalProductId);\n setTimeout(() => {\n removeSessionStorageItem(BACK_IN_STOCK_SELECTED_VARIANT);\n removeSessionStorageItem(BACK_IN_STOCK_SELECTED_PRODUCT);\n }, 1);\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nBackInStockProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const usePreviousBackInStock = () => useContext(BackInStockContext);\n","import { createContext, useEffect, useContext, useState } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport { onReady } from \"../../utils/features\";\n\nconst FeaturesReadyContext = createContext({});\n\nexport const FeaturesReadyProvider = ({ children }) => {\n const [areFeaturesReady, setAreFeaturesReady] = useState(false);\n\n useEffect(() => {\n onReady().then(() => setAreFeaturesReady(true));\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nFeaturesReadyProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useFeaturesReady = () => useContext(FeaturesReadyContext);\n","import { createContext, useContext } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport { useIsInStock } from \"./useIsInStock\";\n\nconst IsInStockContext = createContext(null);\n\nexport const IsInStockContextProvider = ({ children }) => {\n const isInStock = useIsInStock();\n\n return (\n \n {children}\n \n );\n};\n\nIsInStockContextProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useIsInStockContext = () => useContext(IsInStockContext);\n","import { useEffect, useState } from \"react\";\nimport { useRuntimeConstants } from \"../runtimeConstants/RuntimeConstantsContext\";\nimport { useStockPrice } from \"../stockPrice/StockPriceContext\";\n\nfunction getVariants({ products, isMixAndMatch }) {\n if (isMixAndMatch) {\n return products.products?.map(({ variants }) => variants).flat();\n }\n\n return products.variants;\n}\n\nexport const useIsInStock = () => {\n const { product, isMixAndMatch } = useRuntimeConstants();\n const { products } = useStockPrice();\n const [isInStock, setIsInStock] = useState(null);\n\n useEffect(() => {\n if (!products) {\n return;\n }\n\n const variants = getVariants({ products, isMixAndMatch });\n\n if (product.isDiscontinued || variants.length === 0) {\n setIsInStock(false);\n return;\n }\n\n setIsInStock(variants.some((variant) => variant.isInStock));\n }, [product, products, isMixAndMatch]);\n\n return isInStock;\n};\n","import {\n createContext,\n useRef,\n useContext,\n useState,\n useCallback,\n} from \"react\";\nimport { PropTypes } from \"prop-types\";\n\nconst LiveRegionContext = createContext(null);\n\nexport const LiveRegionProvider = ({ children }) => {\n const [liveRegionText, setLiveRegionText] = useState(\"\");\n const liveRegionTimeoutIdRef = useRef(null);\n\n const updateLiveRegion = useCallback((text) => {\n liveRegionTimeoutIdRef.current &&\n clearTimeout(liveRegionTimeoutIdRef.current);\n\n setLiveRegionText(text);\n\n liveRegionTimeoutIdRef.current = setTimeout(() => {\n setLiveRegionText(\"\");\n }, 1000);\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nLiveRegionProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useLiveRegion = () => useContext(LiveRegionContext);\n","import { setProductFlag, buildProductFlag } from \"./productFlags\";\nimport { setEvents } from \"../events\";\n\nexport default function setLooksTracking(looksShown) {\n if (looksShown) {\n setEvents({ events: [\"event341\"], trackingName: \"pageLoad\" });\n }\n\n setProductFlag(buildProductFlag({ key: \"bca\", shown: looksShown }));\n}\n","import { createContext, useContext, useState, useEffect } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport getStockPrice from \"../../api/stockPriceApi\";\nimport { useRuntimeConstants } from \"../runtimeConstants/RuntimeConstantsContext\";\nimport { variantMapper } from \"../../../mappers/variant\";\nimport { hasAssociatedLooks } from \"../../components/looks/utils/hasAssociatedLooks\";\nimport setLooksTracking from \"../../analytics/pageLoad/looks\";\n\nexport const LooksProductsContext = createContext({});\n\nconst shouldMapLooksProducts = ({ isMixAndMatch, looksData }) =>\n looksData?.looksProductsFromServer.length > 0 && !isMixAndMatch;\n\nexport const LooksProductsProvider = ({ children }) => {\n const { product, looksData, isMixAndMatch } = useRuntimeConstants();\n\n const [looksProducts, setLooksProducts] = useState(null);\n const [shouldShowLooksSection, setShouldShowLooksSection] = useState(null);\n\n useEffect(() => {\n (async function mapLooksProducts() {\n if (\n shouldMapLooksProducts({\n isMixAndMatch,\n looksData,\n })\n ) {\n const stockPriceProducts = await getStockPrice(product);\n const mappedLooksProducts = mapLooksProductsWithStockPrice({\n stockPriceProducts,\n looksData,\n });\n setLooksProducts(mappedLooksProducts);\n const showLooksCTA = hasAssociatedLooks({\n looksProducts: mappedLooksProducts,\n });\n setShouldShowLooksSection(showLooksCTA);\n setLooksTracking(showLooksCTA);\n return;\n }\n setShouldShowLooksSection(false);\n if (!isMixAndMatch) {\n setLooksTracking(false);\n }\n })();\n }, [product, looksData, isMixAndMatch]);\n\n return (\n \n {children}\n \n );\n};\n\nconst mapLooksProductsWithStockPrice = ({ stockPriceProducts, looksData }) => {\n const looksProducts = looksData.looksProductsFromServer.map(\n (looksProduct) => {\n let mappedLooksProduct;\n const stockPriceForProduct = stockPriceProducts.find(\n (stockPriceProduct) => stockPriceProduct.productId === looksProduct.id\n );\n\n if (stockPriceForProduct) {\n mappedLooksProduct = {\n ...looksProduct,\n hasMultipleColoursInStock:\n stockPriceForProduct.hasMultipleColoursInStock,\n hasMultiplePricesInStock:\n stockPriceForProduct.hasMultiplePricesInStock,\n isInStock: stockPriceForProduct.isInStock,\n price: stockPriceForProduct.productPrice,\n restockingSoonDetails: stockPriceForProduct.restockingSoonDetails || {\n shouldShowRestockingSoon: false,\n },\n };\n\n mappedLooksProduct.variants = mappedLooksProduct.variants?.map(\n (looksVariant) => {\n const stockPriceForVariant = stockPriceForProduct.variants?.find(\n (stockPriceVariant) =>\n stockPriceVariant.id === looksVariant.variantId\n );\n\n const stockPriceMapping = variantMapper(\n stockPriceForVariant,\n !!stockPriceForProduct.productPrice &&\n !!stockPriceForVariant.price\n );\n\n return {\n ...stockPriceMapping,\n ...looksVariant,\n };\n }\n );\n }\n\n return mappedLooksProduct;\n }\n );\n\n return filterOutProductsWithoutPrice(looksProducts.filter(Boolean));\n};\n\nconst filterOutProductsWithoutPrice = (looksProducts) =>\n looksProducts.filter(\n (looksProduct) => looksProduct.isHero || looksProduct.price !== undefined\n );\n\nexport const useLooksProducts = () => useContext(LooksProductsContext);\n\nLooksProductsProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n","import {\n createContext,\n useCallback,\n useContext,\n useState,\n useEffect,\n} from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport { useLooksProducts } from \"./LooksProductsContext\";\nimport { getPreselectedProduct } from \"../../utils/product\";\nimport { usePreviousBackInStock } from \"../backInStock/BackInStockContext\";\n\nexport const SelectedLooksProductContext = createContext({});\n\nexport const SelectedLooksProductProvider = ({ children }) => {\n const { looksProducts } = useLooksProducts();\n const [selectedLooksProduct, setSelectedLooksProduct] = useState(() => {\n if (looksProducts?.length) {\n return looksProducts[1];\n }\n });\n const { previousBackInStockProductId } = usePreviousBackInStock();\n\n useEffect(() => {\n if (!selectedLooksProduct && looksProducts?.length) {\n setSelectedLooksProduct(looksProducts[1]);\n }\n }, [selectedLooksProduct, looksProducts]);\n\n const handleLooksCarouselClick = useCallback(\n (productId) => {\n setSelectedLooksProduct(looksProducts.find(({ id }) => productId === id));\n },\n [looksProducts]\n );\n\n useEffect(() => {\n const preSelectedLooksProduct = getPreselectedProduct(\n looksProducts,\n previousBackInStockProductId\n );\n if (preSelectedLooksProduct) {\n setSelectedLooksProduct(preSelectedLooksProduct);\n }\n }, [looksProducts, previousBackInStockProductId]);\n\n return (\n \n {children}\n \n );\n};\n\nexport const useSelectedLooksProduct = () =>\n useContext(SelectedLooksProductContext);\n\nSelectedLooksProductProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n","import { createContext, useContext, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport useEventBus from \"../../hooks/useEventBus\";\nimport { customerPreferenceCookie } from \"../../constants\";\n\nconst PrivacyContext = createContext({});\n\nexport const PrivacyContextProvider = ({ children }) => {\n const [customerPreferences, setCustomerPreferences] = useState(null);\n\n useEventBus(\"onetrust.consentChanged\", (consentIds) => {\n const consentArray = consentIds.split(\",\");\n setCustomerPreferences(consentArray.includes(customerPreferenceCookie));\n });\n\n return (\n \n {children}\n \n );\n};\n\nexport const usePrivacy = () => useContext(PrivacyContext);\n\nPrivacyContextProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n","import { createContext, useState, useContext } from \"react\";\nimport { PropTypes } from \"prop-types\";\n\nexport const RuntimeConstantsContext = createContext({});\n\nexport const RuntimeConstantsProvider = ({ runtimeConstants, children }) => {\n const [{ translations, ...runtimeConstantsState }] =\n useState(runtimeConstants);\n\n const getTranslation = (translationKey, dynamicValue) => {\n return dynamicValue\n ? translations.t(translationKey, dynamicValue)\n : translations.t(translationKey);\n };\n\n return (\n \n {children}\n \n );\n};\n\nRuntimeConstantsProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n runtimeConstants: PropTypes.object.isRequired,\n};\n\nexport const useRuntimeConstants = () => useContext(RuntimeConstantsContext);\n","import { createContext, useState, useContext } from \"react\";\nimport { PropTypes } from \"prop-types\";\n\nconst SaveForLaterContext = createContext(null);\n\nexport const SaveForLaterProvider = ({ defaultState, children }) => {\n const [saveForLaterState, setSaveForLaterState] = useState(\n defaultState || {}\n );\n\n const saveForLater = (variantIdentifier) =>\n setSaveForLaterState({\n ...saveForLaterState,\n [variantIdentifier]: { isSavedForLater: true, animationHasFired: false },\n });\n\n const saveForLaterAnimationFired = (variantIdentifier) =>\n setSaveForLaterState({\n ...saveForLaterState,\n [variantIdentifier]: {\n ...saveForLaterState[variantIdentifier],\n animationHasFired: true,\n },\n });\n\n const isSavedForLater = (variantIdentifier) =>\n saveForLaterState[variantIdentifier]?.isSavedForLater || false;\n\n const hasSavedForLaterAnimationFired = (variantIdentifier) =>\n saveForLaterState[variantIdentifier]?.animationHasFired || false;\n\n return (\n \n {children}\n \n );\n};\n\nSaveForLaterProvider.propTypes = {\n defaultState: PropTypes.object,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useSaveForLater = () => useContext(SaveForLaterContext);\n","import { createContext, useContext, useReducer } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport { usePriceAndProductData } from \"./usePriceAndProductData\";\n\nexport const StockPriceContext = createContext({});\n\nexport const StockPriceProvider = ({ children }) => {\n const [retrying, retryStockPriceCall] = useReducer(\n (state, action) => action,\n false\n );\n\n const { products, hasError } = usePriceAndProductData({\n retry: retrying,\n retryStockPriceCall,\n });\n\n return (\n \n {children}\n \n );\n};\n\nStockPriceProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useStockPrice = () => useContext(StockPriceContext);\n","import { useEffect, useState } from \"react\";\nimport getStockPrice from \"../../api/stockPriceApi\";\nimport { variantMapper } from \"../../../mappers/variant\";\nimport { useRuntimeConstants } from \"../runtimeConstants/RuntimeConstantsContext\";\nimport { productIsInStock } from \"../../utils/product\";\nimport getWindow from \"../../utils/window\";\nimport { ERROR_TYPE, logError } from \"../../utils/newRelicLogger\";\nimport getRestockingSoonDetails from \"./getRestockingSoonDetails\";\n\nconst filterInvalidVariants = (products) => {\n return products.map((product) => ({\n ...product,\n variants: product.variants.filter(({ price }) => !!price),\n }));\n};\n\nexport const usePriceAndProductData = ({ retry, retryStockPriceCall }) => {\n const { product, stockPriceApiUrl } = useRuntimeConstants();\n const [products, setProducts] = useState(null);\n const [hasError, setHasError] = useState(false);\n\n useEffect(() => {\n getStockPrice(product, retry)\n .then((stockPriceProducts) => {\n if (!stockPriceProducts) {\n return;\n }\n\n const hasMultiProducts = !!product.products;\n\n const productList = hasMultiProducts\n ? [...product.products]\n : [{ ...product }];\n\n const mappedProducts = productList.map((productItem) => {\n const stockPriceProduct = stockPriceProducts.find(\n ({ productId }) => productItem.id === productId\n );\n\n const matchedVariants = productItem.variants.map((serverVariant) => {\n const stockPriceVariant = stockPriceProduct?.variants.find(\n ({ id }) => serverVariant.variantId === id\n );\n\n if (!stockPriceVariant) {\n return serverVariant;\n }\n\n const stockPriceVariantHasPrice = !!stockPriceVariant.price;\n const mappedStockPriceVariant = variantMapper(\n stockPriceVariant,\n stockPriceVariantHasPrice\n );\n\n const { price, isInStock, seller, source, isLowInStock } =\n mappedStockPriceVariant;\n\n return {\n ...serverVariant,\n price,\n isInStock,\n seller,\n source,\n isLowInStock,\n };\n });\n\n const stockStatus =\n matchedVariants[0].isInStock !== undefined\n ? { isInStock: productIsInStock(stockPriceProduct) }\n : {};\n\n const price = stockPriceProduct?.productPrice || null;\n\n const restockingSoonDetails = getRestockingSoonDetails({\n stockPriceProduct,\n stockStatus,\n });\n\n return {\n ...productItem,\n ...stockStatus,\n restockingSoonDetails,\n price,\n variants: [...matchedVariants],\n };\n });\n\n const mappedProductsWithFilteredVariants =\n filterInvalidVariants(mappedProducts);\n\n setProducts(\n hasMultiProducts\n ? {\n ...product,\n products: mappedProductsWithFilteredVariants,\n }\n : mappedProductsWithFilteredVariants[0]\n );\n setHasError(false);\n\n getWindow().asos.eventBus.emit(\"productAndPriceData\", {\n ...product,\n products: mappedProductsWithFilteredVariants,\n });\n })\n .catch((error) => {\n setHasError(true);\n logError(ERROR_TYPE.StockPriceError, {\n action: \"getStockPrice\",\n caller: \"stockPrice\",\n apiName: \"stockPrice\",\n url: stockPriceApiUrl,\n message: error.message || error.statusText,\n status: error.status,\n response: error.data,\n responseHeaders: error.headers,\n });\n })\n .finally(() => {\n retryStockPriceCall(false);\n });\n }, [product, retry, retryStockPriceCall, stockPriceApiUrl]);\n\n return { products, hasError };\n};\n","const getRestockingSoonDetails = ({\n stockPriceProduct = {\n isRestockingSoon: false,\n restockingLeadTime: null,\n },\n stockStatus = { isInStock: false },\n}) => ({\n shouldShowRestockingSoon:\n stockPriceProduct.isRestockingSoon && !stockStatus.isInStock,\n restockingLeadTimeWeeks: Math.ceil(\n (stockPriceProduct.restockingLeadTime || 1) / 7\n ),\n});\n\nexport default getRestockingSoonDetails;\n","import { getLocalStorageItem, setLocalStorageItem } from \"../../utils/storage\";\nimport { FACET_PRODUCT_SIZE_SELECTION } from \"../../constants\";\nimport getRuntimeConstants from \"../../runtimeConstants\";\n\nexport function getVariantForFacet({ variants }) {\n const {\n product: { facetGroup },\n } = getRuntimeConstants();\n const preSelectedFacetSize = getLocalStorageItem(\n FACET_PRODUCT_SIZE_SELECTION\n );\n\n if (\n facetGroup &&\n preSelectedFacetSize &&\n facetGroup.facetGroupId === preSelectedFacetSize.facetGroupId\n ) {\n return variants.find(\n ({ size, isInStock }) => size === preSelectedFacetSize.size && isInStock\n );\n }\n}\n\nexport function setVariantForFacet({ variant }) {\n const {\n product: { facetGroup },\n } = getRuntimeConstants();\n\n if (facetGroup) {\n setLocalStorageItem(FACET_PRODUCT_SIZE_SELECTION, {\n facetGroupId: facetGroup.facetGroupId,\n size: variant.size,\n });\n }\n}\n","import { useEffect } from \"react\";\n\nimport getWindow from \"../utils/window\";\n\nconst useMatchMedia = (mediaQueryString, onChangeHandler) => {\n useEffect(() => {\n if (!getWindow()) {\n return;\n }\n const mediaQueryList = getWindow().matchMedia(mediaQueryString);\n\n mediaQueryList.addEventListener\n ? mediaQueryList.addEventListener(\"change\", onChangeHandler)\n : mediaQueryList.addListener(onChangeHandler);\n\n onChangeHandler(mediaQueryList);\n\n return () => {\n mediaQueryList.removeEventListener\n ? mediaQueryList.removeEventListener(\"change\", onChangeHandler)\n : mediaQueryList.removeListener(onChangeHandler);\n };\n }, [mediaQueryString, onChangeHandler]);\n};\n\nexport default useMatchMedia;\n","import { createContext, useContext } from \"react\";\nimport { PropTypes } from \"prop-types\";\nimport useLayoutState from \"../../hooks/useLayoutState\";\n\nconst ViewportContext = createContext(null);\n\nexport const ViewportProvider = ({ children }) => {\n const viewportCategory = useLayoutState();\n\n return (\n \n {children}\n \n );\n};\n\nViewportProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n};\n\nexport const useViewport = () => useContext(ViewportContext);\n","import { useState, useCallback } from \"react\";\nimport { SMALL_VIEWPORT, MEDIUM_VIEWPORT, LARGE_VIEWPORT } from \"../constants\";\nimport useMatchMedia from \"./useMatchMedia\";\n\nconst SMALL_VIEWPORT_MEDIA_QUERY = \"(max-width: 720px)\";\nconst MEDIUM_VIEWPORT_MEDIA_QUERY =\n \"(min-width: 721px) and (max-width: 1023px)\";\nconst LARGE_VIEWPORT_MEDIA_QUERY = \"(min-width: 1024px)\";\n\nconst useLayoutState = () => {\n const [viewportCategory, setViewportCategory] = useState(SMALL_VIEWPORT);\n\n const smallViewportOnChangeHandler = useCallback(\n ({ matches }) => matches && setViewportCategory(SMALL_VIEWPORT),\n []\n );\n\n const mediumViewportOnChangeHandler = useCallback(\n ({ matches }) => matches && setViewportCategory(MEDIUM_VIEWPORT),\n []\n );\n\n const largeViewportOnChangeHandler = useCallback(\n ({ matches }) => matches && setViewportCategory(LARGE_VIEWPORT),\n []\n );\n\n useMatchMedia(SMALL_VIEWPORT_MEDIA_QUERY, smallViewportOnChangeHandler);\n useMatchMedia(MEDIUM_VIEWPORT_MEDIA_QUERY, mediumViewportOnChangeHandler);\n useMatchMedia(LARGE_VIEWPORT_MEDIA_QUERY, largeViewportOnChangeHandler);\n\n return viewportCategory;\n};\n\nexport default useLayoutState;\n","import makeRequest from \"./makeRequest\";\nimport getRuntimeConstants from \"../runtimeConstants\";\nimport {\n getAuthorisationHeader,\n getCustomerIsAuthenticated,\n} from \"../utils/identity\";\nimport {\n BACK_IN_STOCK_API_TIMEOUT,\n BACK_IN_STOCK_BUTTON_ID,\n BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY,\n BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY,\n PUT,\n DELETE,\n} from \"../constants\";\nimport getWindow from \"../utils/window\";\n\nconst BACK_IN_STOCK_DISABLE_NOTIFICATION_COPY_KEY =\n \"back_in_stock_disable_confirmation\";\nconst BACK_IN_STOCK_NOTIFICATION_COPY_KEY = \"back_in_stock_confirmation\";\nconst BACK_IN_STOCK_NOTIFICATION_PRIORITY_COPY_KEY =\n \"pdp_early_back_in_stock_toast_message\";\nconst BACK_IN_STOCK_ERROR_COPY_KEY = \"pdp_status_error_technical_difficulties\";\n\nconst initiateLogin = async ({ variantId, productId, copyKey } = {}) => {\n getWindow().asos.eventBus.emit(\"loginModalOpen\", {\n focusOnCloseElement: getWindow().document.getElementById(\n BACK_IN_STOCK_BUTTON_ID\n ),\n copyKey,\n selectedVariantId: variantId,\n selectedProductId: productId,\n });\n};\n\nconst getApiData = async () => {\n const {\n webContext: { storeId },\n } = getRuntimeConstants();\n\n const Authorization = await getAuthorisationHeader();\n\n return {\n url: getBackInStockEndpoint(storeId),\n timeout: BACK_IN_STOCK_API_TIMEOUT,\n handleErrorReturnValue: (error) => {\n throw error;\n },\n headers: {\n Authorization,\n },\n };\n};\n\nconst makeResponseHandler = (config) => () => {\n const { translations } = getRuntimeConstants();\n\n getWindow().asos.eventBus.emit(\"notificationBar\", {\n type: config.type,\n copy: translations.t(config.copyKey),\n refocusId: BACK_IN_STOCK_BUTTON_ID,\n });\n};\n\nconst handleError = makeResponseHandler({\n copyKey: BACK_IN_STOCK_ERROR_COPY_KEY,\n type: \"error\",\n});\n\nconst handleNotifySuccess = makeResponseHandler({\n copyKey: BACK_IN_STOCK_NOTIFICATION_COPY_KEY,\n type: \"success\",\n});\n\nconst handleNotifyPrioritySuccess = makeResponseHandler({\n copyKey: BACK_IN_STOCK_NOTIFICATION_PRIORITY_COPY_KEY,\n type: \"success\",\n});\n\nconst handleTurnOffSuccess = makeResponseHandler({\n copyKey: BACK_IN_STOCK_DISABLE_NOTIFICATION_COPY_KEY,\n type: \"success\",\n});\n\nexport async function getBackInStockVariantIds() {\n const isAuthenticated = await getCustomerIsAuthenticated();\n\n if (!isAuthenticated) {\n return null;\n }\n\n const apiData = await getApiData();\n\n if (!apiData) {\n return null;\n }\n\n return makeRequest({\n ...apiData,\n mapData: (data) => data.variantIds,\n });\n}\n\nfunction getBackInStockEndpoint(storeId) {\n return `/api/marketing/backinstock/v1/customers/me/stores/${storeId}/variants`;\n}\n\nexport async function addVariantToNotifications({\n variantId,\n productId,\n suppressLogin,\n suppressNotification,\n isPriority,\n} = {}) {\n const isAuthenticated = await getCustomerIsAuthenticated();\n\n if (!isAuthenticated) {\n if (!suppressLogin) {\n initiateLogin({\n variantId,\n productId,\n copyKey: BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY,\n });\n }\n return null;\n }\n\n const apiData = await getApiData();\n\n if (!apiData || !variantId) {\n return null;\n }\n\n return makeRequest({\n ...apiData,\n body: {\n variantId,\n },\n headers: {\n ...apiData.headers,\n \"content-type\": \"application/json\",\n },\n method: PUT,\n })\n .then(() => {\n if (!suppressNotification) {\n isPriority ? handleNotifyPrioritySuccess() : handleNotifySuccess();\n }\n })\n .catch((error) => {\n if (!suppressNotification) {\n handleError(error);\n }\n });\n}\n\nexport async function removeVariantFromNotifications({\n variantId,\n productId,\n suppressLogin,\n suppressNotification,\n} = {}) {\n const isAuthenticated = await getCustomerIsAuthenticated();\n\n if (!isAuthenticated) {\n if (!suppressLogin) {\n initiateLogin({\n variantId,\n productId,\n copyKey: BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY,\n });\n }\n return null;\n }\n\n const apiData = await getApiData();\n\n if (!apiData || !variantId) {\n return null;\n }\n\n return makeRequest({\n ...apiData,\n url: `${apiData.url}/${variantId}`,\n headers: {\n ...apiData.headers,\n \"content-type\": \"application/json\",\n },\n method: DELETE,\n })\n .then(() => {\n if (!suppressNotification) {\n handleTurnOffSuccess();\n }\n })\n .catch((error) => {\n if (!suppressNotification) {\n handleError(error);\n }\n });\n}\n","import { useCallback, useEffect, useRef } from \"react\";\nimport useSessionStorage from \"./useSessionStorage\";\nimport {\n getBackInStockVariantIds,\n addVariantToNotifications,\n removeVariantFromNotifications,\n} from \"../api/backInStockApi\";\nimport { BACK_IN_STOCK_VARIANT_IDS_SESSION_KEY } from \"../constants\";\nimport { setSessionStorageItem } from \"../utils/storage\";\n\nconst setBackInStockSessionStorage = (variantIds) =>\n setSessionStorageItem(BACK_IN_STOCK_VARIANT_IDS_SESSION_KEY, variantIds);\n\nexport default function useBackInStock() {\n const backInStockVariantIds = useSessionStorage(\n BACK_IN_STOCK_VARIANT_IDS_SESSION_KEY\n );\n const getBackInStockVariantIdsPromise = useRef();\n\n const hasNotification = useCallback(\n (variantId) => {\n if (!variantId) {\n return false;\n }\n\n return !!backInStockVariantIds?.includes(variantId);\n },\n [backInStockVariantIds]\n );\n\n useEffect(() => {\n if (Array.isArray(backInStockVariantIds)) {\n return;\n }\n\n getBackInStockVariantIdsPromise.current = getBackInStockVariantIds().then(\n (variantIds) => {\n if (variantIds) {\n setBackInStockSessionStorage(variantIds);\n }\n return variantIds;\n }\n );\n }, [backInStockVariantIds]);\n\n const addBackInStockVariant = useCallback(\n async (buttonActionArguments) => {\n let response = null;\n try {\n response = await addVariantToNotifications(buttonActionArguments);\n } catch (error) {\n // no op\n }\n const requestVariantIds = await getBackInStockVariantIdsPromise.current;\n if (response !== null) {\n const currentVariantIds = new Set([\n ...(requestVariantIds || []),\n ...(backInStockVariantIds || []),\n ]);\n setBackInStockSessionStorage([\n ...currentVariantIds,\n buttonActionArguments.variantId,\n ]);\n }\n },\n [backInStockVariantIds]\n );\n\n const removeBackInStockVariant = useCallback(\n (buttonActionArguments) => {\n removeVariantFromNotifications(buttonActionArguments).then((response) => {\n if (response !== null) {\n setBackInStockSessionStorage(\n backInStockVariantIds.filter(\n (currentId) => currentId !== buttonActionArguments.variantId\n )\n );\n }\n });\n },\n [backInStockVariantIds]\n );\n\n return {\n hasNotification,\n addVariantToNotifications: addBackInStockVariant,\n removeVariantFromNotifications: removeBackInStockVariant,\n };\n}\n","import { useState } from \"react\";\n\nimport {\n buildSessionStorageEventName,\n getSessionStorageItem,\n} from \"../utils/storage\";\nimport useEventBus from \"./useEventBus\";\n\nexport default function useSessionStorage(key) {\n const [value, setValue] = useState(() => getSessionStorageItem(key));\n useEventBus(buildSessionStorageEventName(key), setValue, [key]);\n\n return value;\n}\n","import { useEffect } from \"react\";\nimport getWindow from \"../utils/window\";\n\nexport default function useEventBus(eventName, callback, dependencies) {\n useEffect(() => {\n if (!getWindow()) {\n return;\n }\n const listener = getWindow().asos.eventBus.addListener(eventName, callback);\n\n return () => {\n listener?.remove();\n };\n }, dependencies);\n}\n","import getWindow from \"../../utils/window\";\nimport { setEvents } from \"../events\";\n\nconst PERFORMANCE_ADOBE_VARIABLES = {\n \"pdp:start\": { eVar: \"eVar163\", event: \"event233\" },\n \"pdp:hero_image_displayed\": { eVar: \"eVar164\", event: \"event234\" },\n \"pdp:title_displayed\": { eVar: \"eVar165\", event: \"event235\" },\n \"pdp:stock_api_returned\": { eVar: \"eVar166\", event: \"event236\" },\n \"pdp:price_displayed\": { eVar: \"eVar167\", event: \"event237\" },\n \"pdp:size_selector_interactive\": { eVar: \"eVar168\", event: \"event238\" },\n \"pdp:add_to_bag_interactive\": { eVar: \"eVar169\", event: \"event239\" },\n \"pdp:save_for_later_interactive\": { eVar: \"eVar170\", event: \"event240\" },\n};\n\nexport function setComponentPerformance() {\n if (!getWindow().performance.getEntriesByType) {\n return;\n }\n\n const s = getWindow().s;\n const events = [];\n\n getWindow()\n .performance.getEntriesByType(\"measure\")\n .filter(({ name }) =>\n Object.keys(PERFORMANCE_ADOBE_VARIABLES).includes(name)\n )\n .map(({ name, duration }) => {\n const { eVar, event } = PERFORMANCE_ADOBE_VARIABLES[name];\n const roundedDuration = Math.floor(duration);\n\n s[eVar] = roundedDuration;\n events.push(`${event}=${roundedDuration}`);\n });\n\n if (events.length) {\n setEvents({\n events,\n trackingName: \"postPageLoad\",\n });\n }\n}\n","import { useEffect } from \"react\";\nimport useFeatures from \"./hooks/useFeatures\";\nimport useAnalytics from \"./hooks/useAnalytics\";\nimport { postPageLoad } from \"./analytics/postPageLoad/postPageLoad\";\nimport { useRuntimeConstants } from \"./context/runtimeConstants/RuntimeConstantsContext\";\nimport { MixAndMatchPage, SingleProductPage } from \"./pages\";\nimport useSetNotificationsOnReturnFromLogin from \"./hooks/useLoginReturn\";\n\nexport default function CriticalApp() {\n const { isMixAndMatch } = useRuntimeConstants();\n\n useSetNotificationsOnReturnFromLogin();\n useFeatures();\n useAnalytics();\n\n useEffect(() => {\n postPageLoad();\n }, []);\n\n return isMixAndMatch ? : ;\n}\n","import { useEffect } from \"react\";\nimport { usePreviousBackInStock } from \"../context/backInStock/BackInStockContext\";\nimport useBackInStock from \"./useBackInStock\";\n\nexport default function useSetNotificationsOnReturnFromLogin() {\n const { previousBackInStockVariantId } = usePreviousBackInStock();\n const {\n hasNotification,\n addVariantToNotifications,\n removeVariantFromNotifications,\n } = useBackInStock();\n useEffect(() => {\n if (previousBackInStockVariantId) {\n if (hasNotification(previousBackInStockVariantId)) {\n removeVariantFromNotifications({\n variantId: previousBackInStockVariantId,\n suppressLogin: true,\n });\n } else {\n addVariantToNotifications({\n variantId: previousBackInStockVariantId,\n suppressLogin: true,\n });\n }\n }\n }, [previousBackInStockVariantId]);\n}\n","import { useEffect } from \"react\";\nimport { useIsInStockContext } from \"../context/isInStock/IsInStockContext\";\nimport { initialiseFeatures } from \"../utils/features\";\nimport { useRuntimeConstants } from \"../context/runtimeConstants/RuntimeConstantsContext\";\n\nexport default function useFeatures() {\n const { isStockStateReady, isInStock } = useIsInStockContext();\n const { isMixAndMatch } = useRuntimeConstants();\n\n useEffect(() => {\n if (isStockStateReady) {\n initialiseFeatures(isMixAndMatch, isInStock);\n }\n }, [isStockStateReady, isMixAndMatch, isInStock]);\n}\n","import { useStockPrice } from \"../context/stockPrice/StockPriceContext\";\nimport { initialiseAnalytics } from \"../analytics/pageLoad\";\nimport { useFeaturesReady } from \"../context/featuresReady/FeaturesReadyContext\";\nimport { useRuntimeConstants } from \"../context/runtimeConstants/RuntimeConstantsContext\";\nimport { useEffect } from \"react\";\n\nexport default function useAnalytics() {\n const { products } = useStockPrice();\n const { areFeaturesReady } = useFeaturesReady();\n const { ratings } = useRuntimeConstants();\n\n useEffect(() => {\n initialiseAnalytics({ product: products, areFeaturesReady, ratings });\n }, [products, areFeaturesReady, ratings]);\n}\n","import { waitForPageLoadAnalytics } from \"../pageLoad\";\nimport { fitAssistantPromise } from \"./fitAssistant\";\nimport { getCommons, getGlobalEvars } from \"../common\";\nimport getWindow from \"../../utils/window\";\nimport { setComponentPerformance } from \"./componentPerformance\";\nimport { setEvents, setLinkTrackEvents } from \"../events\";\nimport { backInStockPromise } from \"./backInStock\";\n\nexport const postPageLoad = async () => {\n await waitForPageLoadAnalytics;\n await fitAssistantPromise;\n await backInStockPromise;\n\n setComponentPerformance();\n setEvents({ events: [\"event344\"], trackingName: \"postPageLoad\" });\n\n const s = getWindow().s;\n const commons = getCommons();\n\n const overrides = {\n linkTrackVars: commons.setLinkTrackVars([\n ...getGlobalEvars(),\n \"prop36\",\n \"eVar50\",\n \"eVar163\",\n \"eVar164\",\n \"eVar165\",\n \"eVar166\",\n \"eVar167\",\n \"eVar168\",\n \"eVar169\",\n \"eVar170\",\n ]),\n linkTrackEvents: setLinkTrackEvents({ trackingName: \"postPageLoad\" }),\n };\n\n s.tl(true, \"o\", \"post page load\", overrides);\n};\n","import { RuntimeConstantsProvider } from \"./context/runtimeConstants/RuntimeConstantsContext\";\nimport { SaveForLaterProvider } from \"./context/saveForLater/SaveForLaterContext\";\nimport { ViewportProvider } from \"./context/viewport/ViewportContext\";\nimport { LiveRegionProvider } from \"./context/liveRegion/LiveRegionContext\";\nimport { FeaturesReadyProvider } from \"./context/featuresReady/FeaturesReadyContext\";\nimport { IsInStockContextProvider } from \"./context/isInStock/IsInStockContext\";\nimport { StockPriceProvider } from \"./context/stockPrice/StockPriceContext\";\nimport { PrivacyContextProvider } from \"./context/privacy/PrivacyContext\";\nimport { LooksProductsProvider } from \"./context/looks/LooksProductsContext\";\nimport CriticalApp from \"./CriticalApp\";\nimport PropTypes from \"prop-types\";\nimport { BackInStockProvider } from \"./context/backInStock/BackInStockContext\";\nimport { SelectedLooksProductProvider } from \"./context/looks/SelectedLooksProductContext\";\n\nconst Providers = ({ runtimeConstants }) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Providers;\n\nProviders.propTypes = {\n runtimeConstants: PropTypes.object.isRequired,\n};\n","import getWindow from \"./window\";\nimport getRuntimeConstants from \"../runtimeConstants\";\n\nconst SERVER_TIMING_HEADERS = [\n \"edge\",\n \"origin\",\n \"ew-onclientrequest\",\n \"ew-onclientresponse\",\n \"ew-responseprovider\",\n];\n\nfunction setPageViewAttribute(name, value) {\n getWindow().newrelic.setCustomAttribute(name, value);\n}\n\nfunction addTimings() {\n const navPerformance = getWindow().performance.getEntriesByType(\"navigation\");\n\n if (navPerformance?.[0]?.serverTiming) {\n SERVER_TIMING_HEADERS.forEach((header) => {\n const timingForHeader = navPerformance[0].serverTiming.find(\n ({ name }) => name === header\n );\n\n if (timingForHeader) {\n setPageViewAttribute(`timing-${header}`, timingForHeader.duration);\n }\n });\n }\n}\n\nfunction addEdgeVersion() {\n if (getWindow().asos.pdp.config.edgeWorkerVersion) {\n setPageViewAttribute(\n \"edgeWorkerVersion\",\n getWindow().asos.pdp.config.edgeWorkerVersion\n );\n }\n}\n\nfunction addPageAttributes() {\n const {\n webContext: {\n storeId,\n platform,\n keyStoreDataversion,\n browseCountry,\n browseCurrency,\n browseLanguage,\n browseSizeSchema,\n templateVersion,\n buildVersion,\n },\n appVersion,\n } = getRuntimeConstants();\n\n setPageViewAttribute(\"version\", appVersion);\n setPageViewAttribute(\"storeId\", storeId);\n setPageViewAttribute(\"platform\", platform);\n setPageViewAttribute(\"keyStoreDataversion\", keyStoreDataversion);\n setPageViewAttribute(\"browseCountry\", browseCountry);\n setPageViewAttribute(\"browseCurrency\", browseCurrency);\n setPageViewAttribute(\"browseLanguage\", browseLanguage);\n setPageViewAttribute(\"browseSizeSchema\", browseSizeSchema);\n setPageViewAttribute(\"siteChromeTemplateVersion\", templateVersion);\n setPageViewAttribute(\"siteChromeTemplateBuild\", buildVersion);\n setPageViewAttribute(\"userAgent\", getWindow().navigator.userAgent);\n}\n\nexport function addPageAttributesToReporting() {\n if (getWindow().newrelic) {\n addPageAttributes();\n addTimings();\n addEdgeVersion();\n }\n}\n","import ReactDOM from \"react-dom\";\nimport { loadableReady } from \"@loadable/component\";\nimport Providers from \"./Providers\";\nimport { addPageAttributesToReporting } from \"./utils/addPageAttributesToReporting\";\nimport getRuntimeConstants from \"./runtimeConstants\";\nimport getWindow from \"./utils/window\";\n\ngetWindow().dispatchEvent(new Event(\"PDPApplicationStart\"));\ngetWindow().asos.pdp.appStarted = true;\n\nloadableReady(() => {\n ReactDOM.hydrate(\n ,\n document.getElementById(\"pdp-react-critical-app\")\n );\n});\n\naddPageAttributesToReporting();\n","import loadable from \"@loadable/component\";\n\nconst SingleProductPage = loadable(\n () =>\n import(/* webpackChunkName: \"page-singleProduct\" */ \"./SingleProductPage\"),\n {\n ssr: true,\n }\n);\nconst MixAndMatchPage = loadable(\n () => import(/* webpackChunkName: \"page-mixAndMatch\" */ \"./MixAndMatchPage\"),\n {\n ssr: true,\n }\n);\n\nexport { SingleProductPage, MixAndMatchPage };\n","export const getBreadcrumbsForAnalytics = ({\n breadcrumbsData,\n defaultAnalyticsBreadcrumbs,\n referrerData,\n}) => {\n if (!breadcrumbsData) {\n return;\n }\n\n const homeLabel = breadcrumbsData[0].Label;\n\n if (referrerData?.searchQuery && !referrerData?.cid) {\n return `${homeLabel}//${referrerData.searchQuery}`;\n }\n\n if (referrerData?.cid) {\n return defaultAnalyticsBreadcrumbs;\n }\n\n return undefined;\n};\n","import getWindow from \"./window\";\n\nexport const getParamFromReferrer = ({ param }) => {\n const referrer = getWindow().document.referrer;\n return referrer\n ? new URLSearchParams(new URL(referrer).search).get(param) || undefined\n : undefined;\n};\n","import getWindow from \"./utils/window\";\n\nconst URL_PARAM_NUMBER_IDS = [\"colourwayid\", \"variantid\"];\n\nconst buildParamsObject = () => {\n const { hash, searchParams } = new URL(getWindow().location);\n const hashParams = {};\n const queryParams = {};\n\n const hashAsSearchString = hash\n .replace(\"#\", \"?\")\n .replace(/-/g, \"=\")\n .toLowerCase();\n\n const hashAsSearchParam = new URLSearchParams(hashAsSearchString);\n\n for (const [key, value] of hashAsSearchParam.entries()) {\n hashParams[key.toLowerCase()] = value;\n }\n for (const [key, value] of searchParams.entries()) {\n queryParams[key.toLowerCase()] = value;\n }\n\n return { ...queryParams, ...hashParams };\n};\n\nconst checkIfParamIsNumber = (param) => URL_PARAM_NUMBER_IDS.includes(param);\n\nconst buildUrlParamsObject = () => {\n const urlParams = buildParamsObject();\n\n for (const [key, value] of Object.entries(urlParams)) {\n checkIfParamIsNumber(key)\n ? (urlParams[key] = parseInt(value, 10))\n : (urlParams[key] = value);\n }\n\n return urlParams;\n};\n\nexport default buildUrlParamsObject;\n","import Polyglot from \"node-polyglot\";\nimport getWindow from \"./utils/window\";\nimport { getBreadcrumbsForAnalytics } from \"./utils/analyticsBreadcrumbs\";\nimport { getParamFromReferrer } from \"./utils/getParamFromReferrer\";\nimport buildUrlParamsObject from \"./buildUrlParamsObject\";\nimport getConfig from \"./config\";\n\nlet runtimeConstants;\n\nexport default function getRuntimeConstants() {\n if (!getWindow()?.asos) {\n return {};\n }\n\n if (!runtimeConstants) {\n const {\n breadcrumbsData,\n defaultAnalyticsBreadcrumbs,\n looks,\n translations: phrases,\n ...rest\n } = getConfig();\n\n const translations = new Polyglot({\n phrases,\n locale: getWindow()\n .asos.webContext.getWebContext()\n .browseLanguage.split(\"-\")[0],\n });\n\n const hostAndPath = getWindow()\n .location.href.split(\"?\")[0]\n .replace(/\\/$/, \"\");\n const isMixAndMatch = getWindow().location.pathname.includes(\"/grp/\");\n const urlParams = buildUrlParamsObject();\n\n const canonicalUrl = getWindow().document.querySelector(\n \"link[rel=canonical]\"\n ).href;\n\n const webContext = getWindow().asos.webContext.getWebContext();\n\n const referrerData = {\n searchQuery: getParamFromReferrer({ param: \"q\" }),\n cid: getParamFromReferrer({ param: \"cid\" }),\n };\n\n const analyticsBreadcrumbs = getBreadcrumbsForAnalytics({\n breadcrumbsData,\n defaultAnalyticsBreadcrumbs,\n referrerData,\n });\n\n const looksData = looks\n ? {\n lookImageUrl: looks[0].lookImageUrl,\n looksProductsFromServer: looks[0].products,\n }\n : undefined;\n\n const oosVariantsAreSelectable = webContext.storeId !== \"DE\";\n\n runtimeConstants = {\n ...rest,\n hostAndPath,\n canonicalUrl,\n urlParams,\n isMixAndMatch,\n translations,\n webContext,\n analyticsBreadcrumbs,\n breadcrumbsData,\n referrerData,\n looksData,\n oosVariantsAreSelectable,\n };\n }\n return runtimeConstants;\n}\n","import { calculatePercentageDiscount } from \"./calculatePercentageDiscount\";\nimport {\n buildCurrentPrice,\n buildCurrentAriaLabel,\n buildMarkedDownPrice,\n buildMarkedDownAriaLabel,\n buildOutletPrice,\n buildOutletAriaLabel,\n buildLowestPriceInLast30DaysPrice,\n buildLowestPriceInLast30DaysPercentageDiscountLabel,\n} from \"./pricing\";\n\nexport function isDiscounted({ isMarkedDown, isOutletPrice }) {\n return isMarkedDown || isOutletPrice;\n}\n\nexport function getDiscountAmount(priceData) {\n if (isDiscounted(priceData)) {\n if (priceData.discountPercentage) {\n return priceData.discountPercentage;\n }\n return calculatePercentageDiscount(\n priceData.current.value,\n priceData.isOutletPrice ? priceData.rrp.value : priceData.previous.value\n );\n }\n}\n\nfunction getInStockVariants(variants) {\n return variants.filter(({ isInStock }) => isInStock);\n}\n\nfunction getOutOfStockVariants(variants) {\n return variants.filter((variant) => !variant.isInStock);\n}\n\nexport function getLowestPriceInStockVariant({ variants }) {\n if (!variants.length) {\n return;\n }\n\n return getInStockVariants(variants).reduce(\n (lowestPriceVariant, variant) => {\n if (\n lowestPriceVariant.price?.current?.value > variant.price.current.value\n ) {\n return variant;\n }\n return lowestPriceVariant;\n },\n { price: { current: { value: Infinity } } }\n );\n}\n\nexport function areAllInStockVariantsTheSamePrice({ variants }) {\n const firstVariantPriceValue = variants[0].price.current.value;\n\n return getInStockVariants(variants).every(\n ({\n price: {\n current: { value },\n },\n }) => value === firstVariantPriceValue\n );\n}\n\nexport function areAllOOSVariantsTheSamePrice({ variants }) {\n const firstVariantPriceValue = variants[0].price.current.value;\n\n return getOutOfStockVariants(variants).every(\n ({\n price: {\n current: { value },\n },\n }) => value === firstVariantPriceValue\n );\n}\n\nexport function getPrice({\n translations,\n priceData = {},\n showFromLabel = false,\n showWasNowLabel = false,\n showLowestPriceInLast30Days = false,\n}) {\n const {\n current,\n previous,\n rrp,\n isMarkedDown,\n isOutletPrice,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysPercentage,\n discountPercentage,\n } = priceData;\n\n const price = {\n currentPriceText: buildCurrentPrice({\n current,\n translations,\n showFromLabel,\n showNowLabel: showWasNowLabel,\n }),\n };\n\n if (!isDiscounted({ isMarkedDown, isOutletPrice })) {\n price.priceAriaLabel = buildCurrentAriaLabel({\n current,\n translations,\n showFromLabel,\n showNowLabel: showWasNowLabel,\n });\n price.percentageDiscountLabel = \"\";\n\n return price;\n }\n\n price.percentageDiscountLabel = `-${getDiscountAmount({\n current,\n previous,\n rrp,\n isMarkedDown,\n isOutletPrice,\n discountPercentage,\n })}%`;\n\n price.previousPriceText = isOutletPrice\n ? buildOutletPrice({ rrp, translations })\n : buildMarkedDownPrice({\n previous,\n translations,\n showWasLabel: showWasNowLabel,\n });\n\n price.priceAriaLabel = isOutletPrice\n ? buildOutletAriaLabel({\n rrp,\n current,\n translations,\n showFromLabel,\n showWasNowLabel,\n showLowestPriceInLast30Days,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n })\n : buildMarkedDownAriaLabel({\n previous,\n current,\n translations,\n showFromLabel,\n showWasLabel: showWasNowLabel,\n showLowestPriceInLast30Days,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n });\n\n if (showLowestPriceInLast30Days) {\n price.lowestPriceInLast30DaysText = buildLowestPriceInLast30DaysPrice({\n translations,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysPercentage,\n });\n price.lowestPriceInLast30DaysPercentageDiscountLabel =\n buildLowestPriceInLast30DaysPercentageDiscountLabel(\n lowestPriceInLast30DaysPercentage\n );\n }\n\n return price;\n}\n","export function calculatePercentageDiscount(newPrice, oldPrice) {\n return Math.floor((oldPrice * 1000 - newPrice * 1000) / (oldPrice * 10));\n}\n","import getWindow from \"./window\";\n\nexport default function eventBusEmitter(eventName, value) {\n return getWindow().asos.eventBus.emit(eventName, value);\n}\n","import getSdks from \"./sdks\";\nimport getWindow from \"./window\";\nimport { ERROR_TYPE, logError } from \"./newRelicLogger\";\n\nconst PDP_FIXED_ATTRIBUTES = {\n app: \"pdp\",\n};\n\nlet resolveSdkPromise;\nlet getFeatureFromSdk = {\n getFeatures: () => ({\n isEnabled: () => false,\n getVariables: () => null,\n }),\n track: () => null,\n};\n\nconst onReadyPromise = new Promise((resolve) => {\n resolveSdkPromise = resolve;\n});\n\nexport const onReady = () => onReadyPromise;\n\nexport const getFeature = (key, id, attributes) => ({\n track: (featureId) => getFeatureFromSdk.track(featureId),\n ...getFeatureFromSdk.getFeatures(key, id, {\n ...PDP_FIXED_ATTRIBUTES,\n ...attributes,\n }),\n});\n\nconst enableEdgeMVT = ({ isMixAndMatch, isInStock, isEnabled }) => {\n if (isMixAndMatch === false && isInStock === false) {\n isEnabled();\n }\n};\n\nexport const initialiseFeatures = (isInStock, isMixAndMatch) => {\n getSdks()?.features.then(async (featureSdk) => {\n const {\n getFeature: featuresSdkGetFeature,\n onReady: featuresSdkOnReady,\n track: featuresSdkTrack,\n } = featureSdk;\n await featuresSdkOnReady();\n getFeatureFromSdk = {\n getFeatures: featuresSdkGetFeature,\n track: featuresSdkTrack,\n };\n resolveSdkPromise(); // this resolution must happen last to avoid race conditions\n });\n\n onReady().then(() => {\n if (getWindow().asos.pdp.config.edgeFeature) {\n const { featureId, bucket: serverBucket } =\n getWindow().asos.pdp.config.edgeFeature;\n\n const { isEnabled, getVariables } = getFeature(featureId);\n\n const clientBucket = getVariables()?.bucket;\n if (clientBucket !== serverBucket) {\n logError(ERROR_TYPE.EdgeError, {\n featureId,\n serverBucket,\n clientBucket,\n action: \"edgeMVTVariables\",\n message: `Server bucket [${serverBucket}] does not match bucket returned on the client [${clientBucket}]`,\n });\n } else {\n enableEdgeMVT({ isMixAndMatch, isInStock, isEnabled });\n }\n }\n });\n};\n","export const getTotalUniqueSizes = ({ variants }) =>\n variants.reduce((uniqueSizes, variant) => {\n uniqueSizes.add(variant.size);\n return uniqueSizes;\n }, new Set()).size;\n","import getSdks from \"./sdks\";\nimport { logError, ERROR_TYPE } from \"./newRelicLogger\";\n\nexport async function getAuthorisationHeader() {\n const BOT_AUTH_HEADER = \"Bearer 11111111111111111111111111111111\";\n const IDENTITY_V2_TIMEOUT_MS = 10_000;\n let getAuthHeader, isAuthHeaderCached, isAsosAuthStorageError;\n\n try {\n ({ getAuthHeader, isAuthHeaderCached, isAsosAuthStorageError } =\n await getSdks().identity);\n\n if (!isAuthHeaderCached()) {\n return BOT_AUTH_HEADER;\n }\n return await getAuthHeader({\n timeoutMs: IDENTITY_V2_TIMEOUT_MS,\n retries: 0,\n });\n } catch (error) {\n if (!isAsosAuthStorageError(error)) {\n logError(ERROR_TYPE.SdkError, {\n sdk: \"identity\",\n action: \"getAuthorisationHeader\",\n message: error.message,\n });\n }\n return BOT_AUTH_HEADER;\n }\n}\n\nexport async function getCustomerId() {\n const { customer } = await getSdks().identity;\n return customer.customerId();\n}\n\nexport async function getCustomerIsAuthenticated() {\n const { customer } = await getSdks().identity;\n return customer.isAuthenticated();\n}\n\nexport async function loginRedirect() {\n const identitySdk = await getSdks().identity;\n identitySdk.login();\n}\n","import getConstants from \"../runtimeConstants\";\nimport getWindow from \"./window\";\n\nexport const ERROR_TYPE = {\n AjaxError: \"Ajax Error\",\n ParseError: \"Parse Error\",\n UserActionFailed: \"User Action Failed\",\n FitAssistantError: \"Fit Assistant Error\",\n SdkError: \"SDK Error\",\n EdgeError: \"Edge Error\",\n UnknownError: \"Unknown Error\",\n NonCriticalAppError: \"Non Critical App Error\",\n StockPriceError: \"Stock Price Error\",\n};\n\nexport function logError(type = ERROR_TYPE.UnknownError, data) {\n const { appVersion, isMixAndMatch } = getConstants();\n\n if (getWindow().newrelic) {\n const errorData = {\n ...data,\n pageVersion: appVersion,\n pageUrl: getWindow().location.href,\n pageType: isMixAndMatch\n ? \"ProductPage.MixAndMatch\"\n : \"ProductPage.SingleProduct\",\n codebase: \"React\",\n };\n\n getWindow().newrelic.addPageAction(type, errorData);\n }\n}\n","function getCurrentPricePrefix({ translations, showFromLabel, showNowLabel }) {\n if (showFromLabel) {\n return `${translations(\"pdp_misc_from\")} `;\n }\n if (showNowLabel) {\n return `${translations(\"now_pricing_label\")} `;\n }\n return \"\";\n}\n\nexport function buildCurrentPrice({\n current,\n translations,\n showFromLabel,\n showNowLabel,\n}) {\n if (!current?.text) {\n return \"\";\n }\n\n return `${getCurrentPricePrefix({\n translations,\n showFromLabel,\n showNowLabel,\n })}${current.text}`;\n}\n\nexport function buildCurrentAriaLabel({\n current,\n translations,\n showFromLabel,\n showNowLabel,\n}) {\n if (!current?.text) {\n return \"\";\n }\n\n return `${getCurrentPricePrefix({\n translations,\n showFromLabel,\n showNowLabel,\n })}${current.text}`;\n}\n","import { LOWEST_PRICE_IN_LAST_30_DAYS_COUNTRIES } from \"../../constants\";\n\nexport function isLowestPriceInLast30DaysEnabled(browseCountry) {\n return LOWEST_PRICE_IN_LAST_30_DAYS_COUNTRIES.includes(browseCountry);\n}\n\nfunction isUndefined(\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysPercentage\n) {\n return (\n lowestPriceInLast30DaysPercentage === undefined ||\n lowestPriceInLast30DaysValue === undefined ||\n lowestPriceInLast30DaysText === undefined\n );\n}\n\nexport function buildLowestPriceInLast30DaysPrice({\n translations,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysPercentage,\n}) {\n if (\n isUndefined(\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysPercentage\n ) ||\n (lowestPriceInLast30DaysPercentage === null &&\n lowestPriceInLast30DaysValue === null &&\n lowestPriceInLast30DaysText === null)\n ) {\n return \"\";\n }\n\n return `${translations(\n \"lowest_price_last_thirty_days\"\n )} ${lowestPriceInLast30DaysText}`;\n}\n\nexport function buildLowestPriceInLast30DaysPercentageDiscountLabel(\n lowestPriceInLast30DaysPercentage\n) {\n const isNumber =\n lowestPriceInLast30DaysPercentage &&\n typeof lowestPriceInLast30DaysPercentage === \"number\";\n\n if (lowestPriceInLast30DaysPercentage === 0) {\n return `${lowestPriceInLast30DaysPercentage}%`;\n }\n return isNumber\n ? `${\n lowestPriceInLast30DaysPercentage < 0\n ? `+${-lowestPriceInLast30DaysPercentage}`\n : `${-lowestPriceInLast30DaysPercentage}`\n }%`\n : \"\";\n}\n\nexport function buildLowestPriceInLast30DaysAriaLabel({\n translations,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n}) {\n const text = buildLowestPriceInLast30DaysPrice({\n translations,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n });\n\n if (!text) {\n return \"\";\n }\n\n const percentage = buildLowestPriceInLast30DaysPercentageDiscountLabel(\n lowestPriceInLast30DaysPercentage\n );\n\n return `${text} (${percentage})`;\n}\n","import { buildCurrentAriaLabel } from \"./currentPrice\";\nimport { buildLowestPriceInLast30DaysAriaLabel } from \"./lowestPriceInLast30Days\";\n\nfunction getMarkedDownPricePrefix({ translations, showWasLabel }) {\n if (showWasLabel) {\n return `${translations(\"was_pricing_label_pdp\")} `;\n }\n\n return \"\";\n}\n\nexport function buildMarkedDownPrice({ previous, translations, showWasLabel }) {\n if (!previous?.text) {\n return \"\";\n }\n\n return `${getMarkedDownPricePrefix({ translations, showWasLabel })}${\n previous.text\n }`;\n}\n\nexport function buildMarkedDownAriaLabel({\n previous,\n current,\n translations,\n showFromLabel,\n showWasLabel,\n showLowestPriceInLast30Days,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n}) {\n if (!previous?.text || !current?.text) {\n return \"\";\n }\n\n if (showWasLabel) {\n const buildWasAriaLabel = () => {\n const currentPriceAriaLabel = buildCurrentAriaLabel({\n current,\n translations,\n showFromLabel,\n showNowLabel: true,\n });\n\n const lowestPriceInLast30DaysAriaLabel =\n showLowestPriceInLast30Days &&\n buildLowestPriceInLast30DaysAriaLabel({\n translations,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n });\n\n const markedDownArialLabel = buildMarkedDownPrice({\n previous,\n translations,\n showWasLabel,\n });\n\n return `${currentPriceAriaLabel}. ${\n lowestPriceInLast30DaysAriaLabel\n ? `${lowestPriceInLast30DaysAriaLabel}. `\n : \"\"\n }${markedDownArialLabel}.`;\n };\n\n return buildWasAriaLabel();\n }\n\n return `${translations(\"pdp_price_was\")} ${previous.text}.${\n showFromLabel ? ` ${translations(\"pdp_misc_from\")}` : \"\"\n } ${translations(\"pdp_price_sale\")} ${current.text}.`;\n}\n","import { buildCurrentAriaLabel } from \"./currentPrice\";\nimport { buildLowestPriceInLast30DaysAriaLabel } from \"./lowestPriceInLast30Days\";\n\nexport function buildOutletPrice({ rrp, translations }) {\n if (!rrp?.text) {\n return \"\";\n }\n\n return `${translations(\"pdp_price_rrp\")} ${rrp.text}`;\n}\n\nexport function buildOutletAriaLabel({\n rrp,\n current,\n translations,\n showFromLabel,\n showWasNowLabel,\n showLowestPriceInLast30Days,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n}) {\n if (!rrp?.text || !current?.text) {\n return \"\";\n }\n\n if (showWasNowLabel) {\n const buildWasNowAriaLabel = () => {\n const currentPriceAriaLabel = buildCurrentAriaLabel({\n current,\n translations,\n showFromLabel,\n showNowLabel: true,\n });\n\n const lowestPriceInLast30DaysAriaLabel =\n showLowestPriceInLast30Days &&\n buildLowestPriceInLast30DaysAriaLabel({\n translations,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n lowestPriceInLast30DaysPercentage,\n });\n\n const rrpAriaLabel = `${translations(\"pdp_price_rrp_longform\")} ${\n rrp.text\n }`;\n\n return `${currentPriceAriaLabel}. ${\n lowestPriceInLast30DaysAriaLabel\n ? `${lowestPriceInLast30DaysAriaLabel}. `\n : \"\"\n }${rrpAriaLabel}.`;\n };\n\n return buildWasNowAriaLabel();\n }\n\n return `${translations(\"pdp_price_rrp_longform\")} ${rrp.text}.${\n showFromLabel ? ` ${translations(\"pdp_misc_from\")}` : \"\"\n } ${translations(\"pdp_price_sale\")} ${current.text}.`;\n}\n","import { getVariantForFacet } from \"../context/variant/facetVariants\";\nimport { getVariantFromUrl } from \"./url\";\nimport { getInStockVariants } from \"../../utils/variantUtils\";\n\nexport const getPrimaryImage = (images) => {\n const primary = images.find((image) => image.isPrimary);\n return primary || images[0];\n};\n\nexport const getPrimaryImageName = (images) => {\n return getPrimaryImage(images)?.url.split(\"/\").pop();\n};\n\nexport const getPrimaryVariant = (variants) => {\n const primary = variants.find((variant) => variant.isPrimary);\n return primary || variants[0];\n};\n\nexport const getVariantImage = (images, variant) => {\n return images.find((image) => image.colourWayId === variant.colourWayId);\n};\n\nexport const productHasMultipleColours = (product) =>\n product?.totalNumberOfColours > 1;\n\nexport const productHasMultipleSizes = (product) =>\n !!(product && !(product?.isOneSize || product?.isNoSize));\n\nexport const productHasMultipleVariants = (product) =>\n product?.variants?.length > 1;\n\nexport const shouldDisplayVariantSelectBasedOnVariants = (\n product,\n oosVariantsAreSelectable\n) => {\n if (!product?.variants) {\n return false;\n }\n\n if (!oosVariantsAreSelectable && productHasMultipleColours(product)) {\n return getInStockVariants(product.variants).length > 1;\n }\n\n return productHasMultipleVariants(product);\n};\n\nexport const productIsInStock = (product) =>\n product?.variants.some((variant) => variant.isInStock);\n\nexport const getPreselectedVariant = (\n product,\n previousBackInStockVariantId\n) => {\n const variantFromNotificationLoginFlow = product?.variants?.find(\n ({ variantId }) => variantId === previousBackInStockVariantId\n );\n\n if (variantFromNotificationLoginFlow) {\n return variantFromNotificationLoginFlow;\n }\n\n const variantFromUrl = getVariantFromUrl(product);\n\n if (variantFromUrl) {\n return variantFromUrl;\n }\n\n const variantFromFacetSelection = getVariantForFacet(product);\n\n if (variantFromFacetSelection) {\n return variantFromFacetSelection;\n }\n};\n\nexport const getFirstVariant = (product) => {\n if (!productHasMultipleVariants(product) && product?.variants?.length) {\n return product.variants[0];\n }\n return null;\n};\n\nexport const getPreselectedProduct = (\n products,\n previousBackInStockProductId\n) => {\n return products?.find(({ id }) => id === previousBackInStockProductId);\n};\n\nexport const getOOSProducts = (products) =>\n products.filter((product) => !product.isInStock);\n","import getConfig from \"../config\";\n\nconst getRequest = () => {\n const { appVersion: version } = getConfig();\n return window.asos.webRequest.configureRequest({\n client: {\n name: \"asos-web-productpage\",\n version,\n },\n });\n};\n\nexport default getRequest;\n","import getWindow from \"./window\";\n\nlet sdks;\n\nfunction getSdk(sdkName, callback) {\n sdks[sdkName] = new Promise(function (resolve) {\n const resolveSdk = () => {\n if (callback) {\n callback(getWindow().asos.sdk[sdkName]);\n }\n resolve(getWindow().asos.sdk[sdkName]);\n };\n if (getWindow().asos.sdk && getWindow().asos.sdk[sdkName]) {\n resolveSdk();\n } else {\n getWindow().asos.eventBus.once(`${sdkName}-sdk-ready`, resolveSdk);\n }\n });\n}\n\nexport default function getSdks() {\n if (getWindow() && !sdks) {\n sdks = {};\n getSdk(\"identity\");\n getSdk(\"bag\");\n getSdk(\"savedItems\");\n getSdk(\"features\");\n getSdk(\"loyalty\");\n }\n\n return sdks;\n}\n","export const PRODUCT_BEACONS_MAP_KEY = \"productBeaconsMap\";\n","import getProductBeaconsMapFromStorage from \"./getProductBeaconsMapFromStorage\";\nimport { PRODUCT_BEACONS_MAP_KEY } from \"./constants\";\nimport getWindow from \"../window\";\n\nconst sendBeacon = (productId, beaconName) => {\n const productBeaconsMap = getProductBeaconsMapFromStorage();\n const productBeacons = productBeaconsMap[productId];\n if (!productBeacons) {\n return;\n }\n\n const beacon = productBeacons[beaconName];\n\n if (!beacon) {\n return;\n }\n\n getWindow().navigator.sendBeacon(beacon);\n delete productBeacons[beaconName];\n\n if (Object.keys(productBeacons).length === 0) {\n delete productBeaconsMap[productId];\n }\n\n sessionStorage.setItem(\n PRODUCT_BEACONS_MAP_KEY,\n JSON.stringify(productBeaconsMap)\n );\n};\n\nexport default sendBeacon;\n","import { PRODUCT_BEACONS_MAP_KEY } from \"./constants\";\n\nconst getProductBeaconsMapFromStorage = () => {\n let productBeaconsMap;\n try {\n productBeaconsMap =\n JSON.parse(sessionStorage.getItem(PRODUCT_BEACONS_MAP_KEY)) || {};\n } catch (_) {\n productBeaconsMap = {};\n }\n\n return productBeaconsMap;\n};\n\nexport default getProductBeaconsMapFromStorage;\n","import eventBusEmitter from \"./eventBusEmitter\";\nimport getWindow from \"./window\";\n\nexport const getLocalStorageItem = (key) => getStorage(\"localStorage\", key);\nexport const removeLocalStorageItem = (key) =>\n removeStorage(\"localStorage\", key);\nexport const setLocalStorageItem = (key, value) =>\n setStorage(\"localStorage\", key, value);\n\nexport const getSessionStorageItem = (key) => getStorage(\"sessionStorage\", key);\nexport const removeSessionStorageItem = (key) =>\n removeStorage(\"sessionStorage\", key);\nexport const setSessionStorageItem = (key, value) =>\n setStorage(\"sessionStorage\", key, value);\n\nfunction setStorage(storageType, key, value) {\n try {\n const valueToStore =\n typeof value === \"object\" && value ? JSON.stringify(value) : value;\n\n getWindow()[storageType].setItem(key, valueToStore);\n eventBusEmitter(buildStorageEventName(storageType, key), value);\n } catch (error) {\n // no-op\n }\n}\n\nfunction getStorage(storageType, key) {\n let item = null;\n\n try {\n item = getWindow()[storageType].getItem(key);\n\n if (item === \"undefined\") {\n return undefined;\n }\n\n return JSON.parse(item);\n } catch (error) {\n return item;\n }\n}\n\nfunction removeStorage(storageType, key) {\n getWindow()[storageType].removeItem(key);\n eventBusEmitter(buildStorageEventName(storageType, key), undefined);\n}\n\nfunction buildStorageEventName(storageType, key) {\n return `${storageType}:${key}`;\n}\n\nexport function buildSessionStorageEventName(key) {\n return buildStorageEventName(\"sessionStorage\", key);\n}\n","import getRuntimeConstants from \"../runtimeConstants\";\nimport getSeoPath from \"asos-web-seo-path\";\n\nconst getProductId = (hostAndPath) => {\n const splitOfPath = hostAndPath.match(/\\/prd\\/([0-9]+)/);\n if (splitOfPath) {\n return splitOfPath[1];\n }\n};\nconst getVariantFromProductUsingVariantId = (product, variantId) =>\n product.variants.find(\n (variant) => variant.variantId === parseInt(variantId, 10)\n );\nconst getVariantFromProductUsingColourwayId = (product, colourwayId) =>\n shouldUseVariantFromColourWayId(colourwayId, product) &&\n product.variants.find((variant) => variant.colourWayId === colourwayId);\nconst productHasOneSizeOrLess = (product) =>\n product.isOneSize || product.isNoSize;\nconst shouldUseVariantFromColourWayId = (colourWayId, product) =>\n colourWayId &&\n product.totalNumberOfColours > 1 &&\n productHasOneSizeOrLess(product);\n\nexport function formatUrl(url) {\n if (typeof url !== \"string\") {\n return \"\";\n }\n\n if (url.substring(0, 4) === \"http\") {\n return url.replace(\"http:\", \"https:\");\n }\n\n if (url.substring(0, 2) === \"//\") {\n return url.replace(\"//\", \"https://\");\n }\n\n if (url.substring(0, 1) === \"/\") {\n return url;\n }\n\n return \"https://\" + url;\n}\n\nexport function getProductUrl(brandName, productName, productId) {\n const { siteDomain, webContext } = getRuntimeConstants();\n\n if (!productId) {\n return siteDomain;\n }\n\n let path = \"\";\n\n if (brandName && productName && webContext?.browseLanguage) {\n path = `/${getSeoPath()(\n productName,\n brandName,\n webContext.browseLanguage\n )}`;\n }\n\n return `${siteDomain}${path}/prd/${productId}`;\n}\n\nexport function getVariantFromUrl(product) {\n const { hostAndPath, urlParams } = getRuntimeConstants();\n const variantFromPath = getProductId(hostAndPath);\n\n return (\n getVariantFromProductUsingVariantId(product, variantFromPath) ||\n getVariantFromProductUsingVariantId(product, urlParams.variantid) ||\n getVariantFromProductUsingColourwayId(product, urlParams.colourwayid)\n );\n}\n\nexport function queryObjectToString(params) {\n return Object.keys(params)\n .map((key) => `${key}=${params[key]}`)\n .join(\"&\");\n}\n","export default function getWindow() {\n return globalThis.window;\n}\n","export function priceMapper({\n price: {\n current,\n previous,\n rrp,\n xrp,\n isMarkedDown,\n isOutletPrice,\n currency,\n startDateTime,\n wasPriceStartDate,\n previousEndDate,\n lowestPriceInLast30DaysEndDate,\n lowestPriceInLast30DaysPercentage,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n discountPercentage,\n },\n}) {\n return {\n current: {\n text: current.text,\n value: current.value,\n },\n previous: {\n text: previous.text,\n value: previous.value,\n },\n rrp: {\n text: rrp.text,\n value: rrp.value,\n },\n xrp: {\n text: xrp.text,\n value: xrp.value,\n },\n isMarkedDown,\n isOutletPrice,\n currency,\n startDateTime,\n wasPriceStartDate,\n lowestPriceInLast30DaysEndDate,\n lowestPriceInLast30DaysPercentage,\n lowestPriceInLast30DaysText,\n lowestPriceInLast30DaysValue,\n previousEndDate,\n discountPercentage,\n };\n}\n","import { priceMapper } from \"./price\";\n\nfunction getVariantSize({ displaySizeText, brandSize }) {\n if (displaySizeText) {\n return displaySizeText;\n }\n\n return brandSize;\n}\n\nexport const variantMapper = (variant, shouldMapPrice) => {\n const {\n isInStock,\n hasIngredients,\n sizeId,\n colour,\n colourWayId,\n isPrimary,\n sizeOrder,\n seller,\n source,\n ean,\n sku,\n } = variant;\n\n return {\n variantId: variant.id,\n size: getVariantSize(variant),\n price: shouldMapPrice ? priceMapper(variant) : undefined,\n isLowInStock: shouldMapPrice ? variant.isLowInStock : undefined,\n isInStock,\n hasIngredients,\n sizeId,\n colour,\n colourWayId,\n isPrimary,\n sizeOrder,\n seller,\n source,\n ean,\n sku,\n };\n};\n","const DEFAULT_INFO = {\n isPrimary: false,\n isSecondary: false,\n isPartnerFulfils: false,\n isAsosFulfils: false,\n sellerLabel: null,\n sourceLabel: null,\n sourceId: null,\n sellerId: null,\n};\n\nObject.freeze(DEFAULT_INFO);\n\nconst isPartnerFulfils = ({ source = null, seller = null }) => {\n if (source !== null && seller !== null && source.id === seller.id) {\n return true;\n }\n};\n\nconst isSecondaryAsosFulfils = ({ source = null, seller = null }) => {\n if (source !== null && seller !== null && source.id !== seller.id) {\n return true;\n }\n};\n\nconst isPrimaryAsosFulfils = ({ source = null, seller = null }) => {\n if (source === null && seller !== null) {\n return true;\n }\n};\n\nconst isSecondary = ({ source = null, seller = null }) => {\n if (source !== null && seller?.id !== source.id) {\n return true;\n }\n};\n\nconst isPrimary = ({ source = null }) => {\n if (source === null) {\n return true;\n }\n};\n\nconst isAsosSold = ({ seller }) => seller === null;\n\nconst areAllAsosFulfils = ({ variants }) => {\n return variants.every(\n (variant) =>\n isPrimaryAsosFulfils(variant) || isSecondaryAsosFulfils(variant)\n );\n};\n\nconst areAllPartnerFulfils = ({ variants }) => {\n return variants.every((variant) => isPartnerFulfils(variant));\n};\n\nconst areAllSameSecondary = ({ variants }) => {\n if (isSecondary(variants[0])) {\n const firstInfo = variants[0].source;\n return variants.every((variant) => {\n return isSecondary(variant) && firstInfo.id === variant.source?.id;\n });\n }\n};\n\nconst consistentSourceSeller = ({ variants }) => {\n const { source, seller } = variants[0];\n return variants.every(\n (variant) =>\n variant.source?.id === source?.id && variant.seller?.id === seller?.id\n );\n};\n\nconst areAllSecondary = ({ variants }) => {\n return variants.every((variant) => isSecondary(variant));\n};\n\nconst areAllPrimary = ({ variants }) => {\n return variants.every((variant) => isPrimary(variant));\n};\n\nexport const getVariantSourceSellerInfo = ({ seller = null, source = null }) =>\n getProductSourceSellerInfo({ variants: [{ seller, source }] });\n\n/* eslint-disable complexity */\nexport const getProductSourceSellerInfo = ({ variants }) => {\n if (!variants?.length) {\n return { ...DEFAULT_INFO, isAllAsosSold: true };\n }\n const { source, seller } = variants[0];\n const isPrimary = areAllPrimary({ variants });\n const isSecondary = areAllSecondary({ variants });\n const isConsistent = consistentSourceSeller({ variants });\n const isAllAsosSold = isConsistent && isAsosSold({ seller });\n\n if (areAllAsosFulfils({ variants })) {\n if (isPrimary) {\n return {\n ...DEFAULT_INFO,\n isConsistent,\n isPrimary,\n isSecondary,\n isAsosFulfils: true,\n sourceId: \"primary\",\n sourceLabel: \"ASOS\",\n sellerLabel: seller.description,\n sellerId: seller.id,\n isAllAsosSold: false,\n };\n } else if (isSecondary) {\n return {\n ...DEFAULT_INFO,\n isConsistent,\n isPrimary,\n isSecondary,\n isAsosFulfils: true,\n sourceId: source.id,\n sourceLabel: source.description,\n sellerLabel: seller.description,\n sellerId: seller.id,\n isAllAsosSold: false,\n };\n } else {\n return {\n ...DEFAULT_INFO,\n isConsistent,\n isPrimary,\n isSecondary,\n isAsosFulfils: true,\n sourceId: \"ASOS\",\n sourceLabel: \"ASOS\",\n sellerLabel: seller.description,\n sellerId: seller.id,\n isAllAsosSold: false,\n };\n }\n }\n\n if (areAllPartnerFulfils({ variants })) {\n return {\n ...DEFAULT_INFO,\n isConsistent,\n isPrimary,\n isSecondary,\n isPartnerFulfils: true,\n sourceLabel: source.description,\n sourceId: source.id,\n sellerLabel: seller.description,\n sellerId: seller.id,\n isAllAsosSold: false,\n };\n }\n\n if (areAllSameSecondary({ variants })) {\n return {\n ...DEFAULT_INFO,\n isConsistent,\n sourceLabel: source.description,\n sourceId: source.id,\n isSecondary: true,\n isAllAsosSold,\n };\n }\n\n return { ...DEFAULT_INFO, isConsistent, isPrimary, isAllAsosSold };\n};\n/* eslint-enable complexity */\n","import {\n getProductSourceSellerInfo,\n getVariantSourceSellerInfo,\n} from \"./sourceSellerHelper\";\nimport { productHasMultipleSizes } from \"../client/utils/product\";\nimport { VARIANT_TYPE } from \"../client/constants\";\n\nexport const getInStockVariants = (variants) => {\n return variants.filter((variant) => variant.isInStock);\n};\n\nexport const getColours = (variants = []) => [\n ...new Set(variants.map((variant) => variant.colour)),\n];\n\nexport const allVariantsHaveSeller = (variants) =>\n variants.every((variant) => getVariantSourceSellerInfo(variant).sellerId);\n\nexport const allVariantsPartnerFulfils = (variants) => {\n return getProductSourceSellerInfo({ variants }).isPartnerFulfils;\n};\n\nexport const allVariantsPrimarySource = (variants) =>\n getProductSourceSellerInfo({ variants }).isPrimary;\n\nexport const allVariantsSecondarySource = (variants) =>\n getProductSourceSellerInfo({ variants }).isSecondary;\n\nexport const allVariantsAsosFulfils = (variants) => {\n return getProductSourceSellerInfo({ variants }).isAsosFulfils;\n};\n\nexport const isVariantPartnerFulfils = (variants, variantId) => {\n const variant = variants.find((variant) => variant.variantId === variantId);\n if (variant) {\n return getVariantSourceSellerInfo(variant).isPartnerFulfils;\n }\n return false;\n};\n\nexport const isVariantAsosFulfils = (variants, variantId) => {\n const variant = variants.find((variant) => variant.variantId === variantId);\n if (variant) {\n return getVariantSourceSellerInfo(variant).isAsosFulfils;\n }\n return false;\n};\n\nexport const doesVariantHaveSeller = (variants, variantId) => {\n const variant = variants.find((variant) => variant.variantId === variantId);\n return !!(variant && getVariantSourceSellerInfo(variant).sellerId);\n};\n\nexport const getPrimaryVariant = (variants) =>\n variants.find((variant) => variant.isPrimary === true);\n\nexport const getVariantsColourWayId = (variants, variantId) =>\n variants.find((variant) => variant.variantId === variantId)?.colourWayId ||\n getPrimaryVariant(variants)?.colourWayId;\n\nexport const getVariantType = ({ product }) =>\n productHasMultipleSizes(product) ? VARIANT_TYPE.size : VARIANT_TYPE.colour;\n\nexport const getSelectedOrAvailableVariants = ({\n selectedVariant,\n product,\n}) => {\n if (selectedVariant) {\n return [selectedVariant];\n }\n\n if (product) {\n return getInStockVariants(product.variants);\n }\n};\n"],"names":["BACK_IN_STOCK_NOTIFY_ME_CLICK_TRACKING_NAME","async","fireNotifyMeClickAnalytics","selectedVariantId","pageArea","looksProducts","waitForPageLoadAnalytics","s","getWindow","trackVars","overrides","clearEvents","trackingName","setEvents","events","products","commonLooksTracking","getCommonLooksTrackingValues","push","Object","keys","linkTrackEvents","setLinkTrackEvents","linkTrackVars","getCommons","setLinkTrackVars","getGlobalEvars","tl","MIGHT_LIKE","BUY_THE_LOOK","RECENTLY_VIEWED","OUT_OF_STOCK","MAIN","PAGE_AREAS","commons","window","CommonAnalytics","getProductAreaAttribute","toLowerCase","addMerchEVarToProducts","sProductsString","evar","split","map","product","test","join","getAsosFulfilsPrefix","_ref","sellerId","sourceId","getCtaRef","_getWindow","caseInsensitive","arguments","length","undefined","getQueryParamValue","trackingEvents","pageLoad","Set","postPageLoad","addToBag","addToBagError","sourcingLocation","fitAssistantOpen","fitAssistantClose","looksModalOpen","addToBagLooks","looksProductView","looksCtaView","looksButtonScroll","looksContentView","getEventsForTrackingName","getEventNameFromEvent","event","currentEvents","matchedEvent","find","currentEvent","includes","delete","add","_ref2","_ref3","clear","NEW_USER","getFitAssistantStatus","recommendedSize","outOfScale","isPartialRecommendation","isProductUnsupported","usedPastPurchases","category","customerPreferences","outOfStock","invalidFitProduct","noFitStatus","_ref5","signedInStatus","getCustomerIsAuthenticated","getSignedInStatus","fitAssistantState","getFitAssistantState","userProfile","getUserProfile","bodyCategory","getCategory","stockStatus","_ref4","getStockStatus","getFitAssistantSize","_ref6","storeCode","heroProduct","isHero","pageName","id","prop4","prop1","prop2","prop3","prop8","eVar60","eVar61","key","value","getPreviousValue","setSingleAndMixAndMatchPageLoadValues","_ref13","isMixAndMatch","webContext","getRuntimeConstants","pageType","platform","storeId","document","title","getPageName","getProductIds","previousPageName","prop10","some","sizeGuideVisible","isSizeGuideVisible","eVar183","brandName","eVar181","addMixAndMatchOnlyValues","_ref12","_ref7","_product$shippingRest","shippingRestrictions","shippingRestrictionsVisible","addShippingRestrictions","_ref8","_product$media","media","catwalkUrl","addVideo","_ref9","isInStock","hasVariantsWithIngredients","addIngredients","_ref10","sellingFast","eVar152","addSellingFast","_ref11","isProductWithSupplierColours","addFacets","addSingleProductOnlyValues","getTotalInStock","variants","getInStockVariants","resolvePageLoad","Promise","resolve","time","Date","now","linkTrackEventDelay","Math","ceil","setTimeout","initialiseAnalytics","areFeaturesReady","ratings","readyToFireFeatures","setGeneralPageLoadAnalytics","_s$getQueryParamValue","appVersion","urlParams","analyticsBreadcrumbs","referrerData","channel","cid","searchQuery","ctaref","getCtarefChannel","getChannel","server","campaign","getCampaignID","eVar1","getVisitNum","eVar17","getNewRepeat","eVar70","getBagItems","prop5","getCustomTimeDate","eVar45","eVar112","browseCountry","eVar113","browseCurrency","prop11","encodeURI","location","href","replace","eVar19","getViewportDimensions","height","innerHeight","width","innerWidth","eVar25","prop6","eVar231","setContentHierarchy","navApi","performance","timing","responseToNavigation","responseStart","navigationStart","domContentToNavigation","domContentLoadedEventEnd","eVar29","eVar30","eVar20","eVar6","areAllMixAndMatchProductsInStock","getMixAndMatchStockStatusEvent","isDiscontinued","getSingleProductStockStatusEvent","uniqueSizes","getTotalUniqueSizes","totalNumberOfVariants","numberOfInStockVariants","productAvailability","percentOfVariantsInStock","toFixed","eVar26","list1","variantId","price","current","variantPrice","getVariantStockStatus","eVar31","eVar36","setStockStatusPageLoadValues","eVar230FromPLP","eVar230","eVar10FromPLP","eVar10","getAndPersistValue","setSponsoredAdsPageLoadValues","eVar234FromPLP","gpv_eVar234","setCategoryPageCarouselAnalytics","eVar193FromPLP","gpv_eVar193","setFeatureProductAnalytics","eVar198FromPLP","eVar198","setVisitorIdentifierAnalytics","hasRatings","eVar185","event257","getAverageOverallRating","eVar186","event258","getTotalReviewCount","mostRecent","eVar201","event274","getMostRecentRating","setRatings","productFlags","getProductFlags","eVar248","restockingSoonDetails","shouldShowRestockingSoon","t","asos","eventBus","emit","dispatchEvent","Event","sendBeacon","setPaymentPromoViewed","providers","eVar238","pageLoadTrackingSent","then","hasPageLoadFired","setDiscountOnPrice","priceData","discountAmount","getDiscountAmount","eVar161","toString","sources","appendToList","listString","list","createSourceInfo","productId","fulfillerId","allVariantsAsosFulfils","event288","setShippingSourcesForProduct","hasShippedByLabel","eVar212","forEach","variant","_variant$source","source","seller","_variant$seller","size","getNumberOfUniqueNonPrimarySources","setEVar212","eVar210","setEVar210","eVar214","setEVar214","shouldUpdateEvent288","isShowing","setSaveCount","numSaves","pdp","config","saveCount","isShowingSaveCount","setPricingIconLoad","Array","from","setProductFlag","buildProductFlag","shown","backInStockResolve","backInStockPromise","ignoreBackInStockAnalytics","setBackInStockAnalytics","fitAssistantResolve","fitAssistantPromise","ignoreFitAssistantAnalytics","setFitAssistantAnalytics","prop36","eVar50","getRatingAsPercent","rating","merchEVar189","averageOverallRating","merchEVar190","totalReviewCount","getPercentageRecommended","eVar187","merchEVar191","event259","percentageRecommended","merchEVar202","_ratings$mostRecent","mostRecentRating","getFirstSubRatingValue","merchEVar192","event260","eVar188","_ratings$subRatings","subRatings","firstSubRating","firstSubRatingPercentage","percentage","removeAuthorizationHeader","headers","redactedHeaders","makeRequest","params","url","timeout","requestType","apiName","caller","mapData","body","handleErrorReturnValue","method","GET","getRequest","additionalLoggingParams","data","catch","error","_error$response","_error$response2","_error$config","_error$response3","logError","ERROR_TYPE","AjaxError","requestUrl","queryObjectToString","message","status","response","requestHeaders","responseHeaders","stockPriceResponse","getStockPrice","retry","facetGroup","facets","facet","type","shouldShowFacets","getFeature","isFacetFeatureEnabled","shouldShowFacetCarousel","viewportCategory","position","SMALL_VIEWPORT","PRODUCT_COLOUR_POSITIONS","TOP","shouldShowFacetPalette","MIDDLE","shouldShowProductColour","colours","_facetGroupFeature$ge","facetGroupFeature","app","isEnabled","getVariables","bucket","hasAssociatedLooks","loaded","getConfig","assign","LARGE_VIEWPORT","MEDIUM_VIEWPORT","MAX_RECENTLY_VIEWED_PRODUCTS","IMAGE_SUFFIXES","carousel","hero","thumbnail","collage","card","CAROUSEL_IMAGE_SIZE","LOOKS","LOOKS_SIMILAR_ITEMS","PEOPLE_ALSO_BOUGHT","PRODUCT_COLOUR_TYPES","WITHIN_CAROUSEL_FACETS","DEFAULT","MODAL_TYPE","CENTER","CENTER_LARGE","SIDE","TEXT_SIZES","london1","london2","london3","london4","london5","leavesden1","leavesden2","leavesden3","leavesden4","VIEW_MORE_OFFSET","VIEW_MORE_ERROR","FILTER_ERROR","MIGHT_LIKE_API_LIMIT","PROMISE_PENDING","US_STORE","CALIFORNIA_REGION_CODE","PROP_65_URL","PROP_65_SESSION_KEY","SMALL_SPINNER","MEDIUM_SPINNER","REVIEW_DISCLAIMER_STORES","LOWEST_PRICE_IN_LAST_30_DAYS_COUNTRIES","LEGISLATION_API_TIMEOUT","SUSTAINABILITY_INFO_CONFIG","store","browseLanguage","includedInformation","SITE_CHROME_MODALS_URL","SIMPLE_MODAL_URL","VARIANT_TYPE","colour","customerPreferenceCookie","fitAssistantLoggingPercent","FACET_PRODUCT_SIZE_SELECTION","BACK_IN_STOCK_BUTTON_ID","BACK_IN_STOCK_API_TIMEOUT","BACK_IN_STOCK_VARIANT_IDS_SESSION_KEY","BACK_IN_STOCK_SELECTED_VARIANT","PRIORITY_BACK_IN_STOCK","BACK_IN_STOCK_NOTIFY_MODAL_COPY_KEY","BACK_IN_STOCK_TURN_OFF_ALERT_MODAL_COPY_KEY","BACK_IN_STOCK_SELECTED_PRODUCT","PUT","DELETE","POST","PRODUCT_PROMO_LIVE_STORES","LOOKS_RECOMMENDATIONS_HEADER","REPORT_LEGAL_CONCERN_LINK_PATH","NOTIFICATION_DRAWER_ID","CUSTOMER_ACCESS_VIEW","CUSTOMER_ACCESS_PURCHASE","BULLET_SYMBOL","BackInStockContext","createContext","BackInStockProvider","children","previousBackInStockVariantId","setPreviousBackInStockVariantId","useState","previousBackInStockProductId","setPreviousBackInStockProductId","useEffect","originalVariantId","getSessionStorageItem","originalProductId","removeSessionStorageItem","_jsx","Provider","usePreviousBackInStock","useContext","FeaturesReadyContext","FeaturesReadyProvider","setAreFeaturesReady","onReady","useFeaturesReady","IsInStockContext","IsInStockContextProvider","useIsInStock","useRuntimeConstants","useStockPrice","setIsInStock","_products$products","flat","getVariants","isStockStateReady","useIsInStockContext","LiveRegionContext","LiveRegionProvider","liveRegionText","setLiveRegionText","liveRegionTimeoutIdRef","useRef","updateLiveRegion","useCallback","text","clearTimeout","useLiveRegion","setLooksTracking","looksShown","LooksProductsContext","LooksProductsProvider","looksData","setLooksProducts","shouldShowLooksSection","setShouldShowLooksSection","looksProductsFromServer","shouldMapLooksProducts","stockPriceProducts","mappedLooksProducts","mapLooksProductsWithStockPrice","showLooksCTA","looksProduct","mappedLooksProduct","stockPriceForProduct","stockPriceProduct","_mappedLooksProduct$v","hasMultipleColoursInStock","hasMultiplePricesInStock","productPrice","looksVariant","_stockPriceForProduct","stockPriceForVariant","stockPriceVariant","variantMapper","filterOutProductsWithoutPrice","filter","Boolean","useLooksProducts","SelectedLooksProductContext","SelectedLooksProductProvider","selectedLooksProduct","setSelectedLooksProduct","handleLooksCarouselClick","preSelectedLooksProduct","getPreselectedProduct","useSelectedLooksProduct","PrivacyContext","PrivacyContextProvider","setCustomerPreferences","useEventBus","consentIds","consentArray","usePrivacy","RuntimeConstantsContext","RuntimeConstantsProvider","runtimeConstants","translations","runtimeConstantsState","getTranslation","translationKey","dynamicValue","SaveForLaterContext","SaveForLaterProvider","defaultState","saveForLaterState","setSaveForLaterState","saveForLater","variantIdentifier","isSavedForLater","animationHasFired","saveForLaterAnimationFired","_saveForLaterState$va","hasSavedForLaterAnimationFired","_saveForLaterState$va2","useSaveForLater","StockPriceContext","StockPriceProvider","retrying","retryStockPriceCall","useReducer","state","action","hasError","stockPriceApiUrl","setProducts","setHasError","hasMultiProducts","mappedProductsWithFilteredVariants","filterInvalidVariants","productItem","matchedVariants","serverVariant","stockPriceVariantHasPrice","mappedStockPriceVariant","isLowInStock","productIsInStock","isRestockingSoon","restockingLeadTime","restockingLeadTimeWeeks","getRestockingSoonDetails","StockPriceError","statusText","finally","usePriceAndProductData","shouldRetry","getVariantForFacet","preSelectedFacetSize","getLocalStorageItem","facetGroupId","setVariantForFacet","setLocalStorageItem","useMatchMedia","mediaQueryString","onChangeHandler","mediaQueryList","matchMedia","addEventListener","addListener","removeEventListener","removeListener","ViewportContext","ViewportProvider","useLayoutState","setViewportCategory","smallViewportOnChangeHandler","matches","mediumViewportOnChangeHandler","largeViewportOnChangeHandler","useViewport","initiateLogin","copyKey","focusOnCloseElement","getElementById","selectedProductId","getApiData","Authorization","getAuthorisationHeader","getBackInStockEndpoint","makeResponseHandler","copy","refocusId","handleError","handleNotifySuccess","handleNotifyPrioritySuccess","handleTurnOffSuccess","setBackInStockSessionStorage","variantIds","setSessionStorageItem","useBackInStock","backInStockVariantIds","setValue","buildSessionStorageEventName","useSessionStorage","getBackInStockVariantIdsPromise","hasNotification","isArray","apiData","getBackInStockVariantIds","addBackInStockVariant","suppressLogin","suppressNotification","isPriority","addVariantToNotifications","buttonActionArguments","requestVariantIds","currentVariantIds","removeBackInStockVariant","removeVariantFromNotifications","currentId","eventName","callback","dependencies","listener","remove","PERFORMANCE_ADOBE_VARIABLES","eVar","CriticalApp","useSetNotificationsOnReturnFromLogin","initialiseFeatures","useFeatures","useAnalytics","getEntriesByType","name","duration","roundedDuration","floor","setComponentPerformance","MixAndMatchPage","SingleProductPage","SERVER_TIMING_HEADERS","setPageViewAttribute","newrelic","setCustomAttribute","appStarted","loadableReady","ReactDOM","Providers","keyStoreDataversion","browseSizeSchema","templateVersion","buildVersion","navigator","userAgent","addPageAttributes","_navPerformance$","navPerformance","serverTiming","header","timingForHeader","addTimings","edgeWorkerVersion","loadable","resolved","chunkName","isReady","props","__webpack_modules__","importAsync","requireAsync","requireSync","__webpack_require__","ssr","getBreadcrumbsForAnalytics","breadcrumbsData","defaultAnalyticsBreadcrumbs","homeLabel","Label","getParamFromReferrer","param","referrer","URLSearchParams","URL","search","get","URL_PARAM_NUMBER_IDS","buildUrlParamsObject","buildParamsObject","hash","searchParams","hashParams","queryParams","hashAsSearchString","hashAsSearchParam","entries","parseInt","looks","phrases","rest","Polyglot","locale","getWebContext","hostAndPath","pathname","canonicalUrl","querySelector","lookImageUrl","oosVariantsAreSelectable","isDiscounted","isMarkedDown","isOutletPrice","discountPercentage","newPrice","oldPrice","rrp","previous","getLowestPriceInStockVariant","reduce","lowestPriceVariant","_lowestPriceVariant$p","Infinity","areAllInStockVariantsTheSamePrice","firstVariantPriceValue","every","areAllOOSVariantsTheSamePrice","getOutOfStockVariants","getPrice","showFromLabel","showWasNowLabel","showLowestPriceInLast30Days","lowestPriceInLast30DaysValue","lowestPriceInLast30DaysText","lowestPriceInLast30DaysPercentage","currentPriceText","buildCurrentPrice","showNowLabel","percentageDiscountLabel","previousPriceText","buildOutletPrice","buildMarkedDownPrice","showWasLabel","priceAriaLabel","buildOutletAriaLabel","buildMarkedDownAriaLabel","buildLowestPriceInLast30DaysPrice","lowestPriceInLast30DaysPercentageDiscountLabel","buildLowestPriceInLast30DaysPercentageDiscountLabel","buildCurrentAriaLabel","eventBusEmitter","PDP_FIXED_ATTRIBUTES","resolveSdkPromise","getFeatureFromSdk","getFeatures","track","onReadyPromise","attributes","featureId","_getSdks","getSdks","features","featuresSdkGetFeature","featuresSdkOnReady","featuresSdkTrack","featureSdk","edgeFeature","_getVariables","serverBucket","clientBucket","EdgeError","enableEdgeMVT","BOT_AUTH_HEADER","getAuthHeader","isAuthHeaderCached","isAsosAuthStorageError","identity","timeoutMs","retries","SdkError","sdk","getCustomerId","customer","customerId","isAuthenticated","loginRedirect","login","ParseError","UserActionFailed","FitAssistantError","UnknownError","NonCriticalAppError","getConstants","errorData","pageVersion","pageUrl","codebase","addPageAction","getCurrentPricePrefix","isLowestPriceInLast30DaysEnabled","isUndefined","buildLowestPriceInLast30DaysAriaLabel","getMarkedDownPricePrefix","buildWasAriaLabel","currentPriceAriaLabel","lowestPriceInLast30DaysAriaLabel","buildWasNowAriaLabel","getPrimaryImage","images","image","isPrimary","getPrimaryVariant","getVariantImage","colourWayId","productHasMultipleColours","totalNumberOfColours","productHasMultipleSizes","isOneSize","isNoSize","productHasMultipleVariants","_product$variants","shouldDisplayVariantSelectBasedOnVariants","getPreselectedVariant","_product$variants2","variantFromNotificationLoginFlow","variantFromUrl","getVariantFromUrl","getFirstVariant","_product$variants3","getOOSProducts","version","webRequest","configureRequest","client","sdks","getSdk","sdkName","resolveSdk","once","PRODUCT_BEACONS_MAP_KEY","beaconName","productBeaconsMap","getProductBeaconsMapFromStorage","JSON","parse","sessionStorage","getItem","_","productBeacons","beacon","setItem","stringify","getStorage","setStorage","storageType","removeItem","buildStorageEventName","removeStorage","valueToStore","item","getProductId","splitOfPath","match","getVariantFromProductUsingVariantId","getVariantFromProductUsingColourwayId","colourwayId","shouldUseVariantFromColourWayId","productHasOneSizeOrLess","formatUrl","substring","getProductUrl","productName","siteDomain","path","getSeoPath","variantFromPath","variantid","colourwayid","globalThis","priceMapper","xrp","currency","startDateTime","wasPriceStartDate","previousEndDate","lowestPriceInLast30DaysEndDate","getVariantSize","displaySizeText","brandSize","shouldMapPrice","hasIngredients","sizeId","sizeOrder","ean","sku","DEFAULT_INFO","isSecondary","isPartnerFulfils","isAsosFulfils","sellerLabel","sourceLabel","freeze","areAllSameSecondary","firstInfo","areAllSecondary","getVariantSourceSellerInfo","getProductSourceSellerInfo","_ref14","isAllAsosSold","areAllPrimary","isConsistent","_variant$source2","consistentSourceSeller","isAsosSold","isPrimaryAsosFulfils","isSecondaryAsosFulfils","areAllAsosFulfils","description","areAllPartnerFulfils","getColours","allVariantsHaveSeller","allVariantsPartnerFulfils","allVariantsPrimarySource","isVariantPartnerFulfils","doesVariantHaveSeller","getVariantsColourWayId","_variants$find","_getPrimaryVariant","getVariantType"],"sourceRoot":""}