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AAA,EAAAA,IAAe,mBAADt0B,OAAoB+6C,GAAqB/oB,EAAAA,GACzEipB,EAAkBJ,IAAqB13C,IAC7C,OAAI83C,GAAmBD,GAAmBA,EAAgB73C,MAAQ83C,EACzDD,EAEF,IACT,EAEaE,EAAsB,SAACH,EAAmB59C,EAASg+C,IAC9DrpB,EAAAA,EAAAA,IAAgB,mBAAD9xB,OACM+6C,GACnB,CACEK,KAAMj+C,EAAQi+C,KACdrlC,UAAW5Y,EAAQM,GACnB0F,IAAKhG,EAAQgG,IACbg4C,WAAAA,GAEFnpB,EAAAA,EAEJ,8DCvBQ6X,EAAoBptC,OAAOC,mBAA3BmtC,gBAoBR,QAlB4B,SAAAwR,GAI1B,OAAQA,GACN,KAJmB,IAKnB,KAJgB,IAKd5+C,OAAOyC,SAAW2qC,EAClB,MACF,QACEptC,OAAO68B,SAAS,EAAG,IACnB/G,EAAAA,EAAAA,IAAU,CACRc,UAAWI,EAAAA,EACX6nB,UAAU,IAGlB","sources":["webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/addToBagAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/formsAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/gtmAnalyticsConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/gtmAnalyticsUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/gtmVirtualPagesAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/productListAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/qubit/qubitAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/qubit/qubitAnalyticsUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/qubit/qubitDataUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/wishlistAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/cart/cartConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/checkout/checkoutConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/checkout/components/checkoutPayment/checkoutPaymentConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/checkoutV2/checkoutConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/checkoutV2/components/checkoutPayment/checkoutPaymentConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/analytics/productCarouselAnalytics.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/cmscomponents/carousel/productCarousel/productCarousel.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/cmscomponents/footer/footerConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/atoms/button.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/atoms/checkbox.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/atoms/errorMessage.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/atoms/input.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/atoms/label.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/commonComponents/modal/modalWrapper.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/formComponents/formComponentsConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/formComponents/formComponentsUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/formComponents/formikHOC.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/formComponents/passwordTextInput/passwordTextInputConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/formComponents/passwordTextInput/passwordTextInputReducer.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/globalMessages/globalMessagesClient.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/globalMessages/globalMessagesConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/globalMessages/globalMessagesUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/header/miniCart/miniCartConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/header/miniWishlist/miniWishlistConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/productDetails/productDetailsConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/imageServerUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/productDetails/productDetailsUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/accessibility/accessibilityUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/accessibility/trapFocus.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/ajaxHelpers.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/domHelpers.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/freeDeliveryUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/globalDataHelpers.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/helpers.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/checkout/components/checkoutPayment/checkoutPaymentUtils.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/image.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/localStorage/localStorage.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/localStorage/localStorageConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/mediaQueries.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/providerHOC/providerHOC.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/redirects.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/referrerTracker/referrerTrackerConstants.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/referrerTracker/referrers.js","webpack://fitflop-storefront/./core-app/grails-app/assets/javascripts/app/utils/serverErrors.js"],"sourcesContent":["import { find } from 'lodash';\nimport { DL_EVENT_ADD_TO_CART, DL_EVENT_REMOVE_FROM_CART, DL_EVENT_VIEW_CART } from './gtmAnalyticsConstants';\nimport { getPLPOrSRPProps } from './productListAnalytics';\nimport {\n getProductData,\n replaceSpecialChars,\n formatDataLayer,\n getProductName,\n getAttributeFromClassificationData,\n clearEcommerceAndPushToDataLayer,\n getProductEcommerceObject,\n getCartEcommerceObject,\n convertStringCurrencyToNumber,\n getStockLevel,\n} from './gtmAnalyticsUtils';\n\nconst { locale, pageType } = window.inlineGlobalConfig;\n\nexport function dlViewCart(cartItems) {\n clearEcommerceAndPushToDataLayer(DL_EVENT_VIEW_CART, getCartEcommerceObject(cartItems));\n}\n\nconst getTotalUnitPrice = (product, cart) => {\n const findProductInCart = cart.entries.find(p => p.id === product.id);\n const totalUnitPrice = convertStringCurrencyToNumber(findProductInCart.totalPrice) / findProductInCart.quantity;\n return totalUnitPrice;\n};\n\nfunction dlRemoveFromCart(product) {\n clearEcommerceAndPushToDataLayer(DL_EVENT_REMOVE_FROM_CART, getProductEcommerceObject(product));\n}\n\nexport function getListPropsForAddToBagAndAddToWishlist(index) {\n const nullifyForPDP =\n pageType === 'product'\n ? {\n item_list_id: undefined,\n item_list_name: undefined,\n }\n : {};\n\n return { ...getPLPOrSRPProps(pageType, index), ...nullifyForPDP };\n}\n\nexport function dlRemoveOneFromCart(product, cart) {\n dlRemoveFromCart({ ...product, quantity: 1, totalPrice: getTotalUnitPrice(product, cart) });\n}\n\nexport function dlRemoveAllFromCart(product) {\n dlRemoveFromCart(product);\n}\n\nexport function dlAddOneMoreToCart(product, cart) {\n dlAddToCart({ ...product, quantity: 1, totalPrice: getTotalUnitPrice(product, cart) });\n}\n\nexport function dlAddToCart(product, listProps) {\n // eslint-disable-next-line camelcase\n clearEcommerceAndPushToDataLayer(\n DL_EVENT_ADD_TO_CART,\n getProductEcommerceObject({ ...product, stock_level: getStockLevel(product) }, listProps)\n );\n}\n\nexport function dlTrackProductDecrease({ product, location, quantity = 1, cart, successFlag }) {\n const productAnalytics = getProductData({\n ...product,\n selectedSize: product.variationValues[0].dataLayerName,\n });\n\n window.dataLayer.push({ bag: undefined });\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'remove from bag',\n bag_value: `-${productAnalytics.price * quantity}`,\n success_flag: successFlag ? 'success' : 'error',\n ecommerce: {\n currencyCode: locale.currentCurrency,\n remove: {\n products: [\n {\n id: product.id,\n quantity,\n ...productAnalytics,\n },\n ],\n },\n },\n remove_from_bag_loc: location,\n bag: generateBagObject(cart),\n });\n}\n\nexport function dlTrackProductIncrease({ product, location, selectedSize, cart, successFlag }) {\n const productAnalytics = getProductData({\n ...product,\n selectedSize,\n });\n\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'add to bag',\n bag_value: productAnalytics.price,\n success_flag: successFlag ? 'success' : 'error',\n ecommerce: {\n currencyCode: locale.currentCurrency,\n add: {\n products: [\n {\n id: product.id,\n quantity: 1,\n ...productAnalytics,\n },\n ],\n },\n },\n add_to_bag_loc: location,\n bag: generateBagObject(cart),\n });\n}\n\nexport function dlTrackAddToBagError({ product, selectedSize }) {\n try {\n const productAnalytics = getProductData({\n ...product,\n selectedSize,\n });\n\n window.dataLayer.push({\n add_to_bag_loc: replaceSpecialChars(pageType),\n event: 'visitor interaction',\n interaction_name: 'add to bag',\n bag_value: productAnalytics.price,\n success_flag: 'error - sorry the last one is already in your bag',\n ecommerce: {\n currencyCode: locale.currentCurrency,\n add: {\n products: [\n {\n quantity: 1,\n ...productAnalytics,\n },\n ],\n },\n },\n });\n } catch (error) {\n console.error(error);\n }\n}\n\nexport function dlTrackViewBag(cartItems) {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'view bag',\n success_flag: 'success',\n bag: generateBagObject(cartItems),\n });\n}\n\nfunction generateBagObject(bagInfo) {\n const { entries, totalItems, totalPriceValue, totalPrice } = bagInfo;\n const products = getProductItems(entries);\n\n return {\n id: bagInfo.id,\n currencyCode: locale.currentCurrency,\n total_quantity: totalItems,\n total_price:\n (totalPriceValue && totalPriceValue.toFixed(2)) ||\n (totalPrice && totalPrice.replace(/^\\D+/g, '').replace(/,/g, '.')),\n products,\n };\n}\n\nfunction getProductItems(products) {\n return products.map(product => {\n const { baseId, link, quantity, variationValues, dataLayerMap, price, baseImage, creationtime } = product;\n\n const unitPrice = price.replace(/^\\D+/g, '').replace(/,/g, '.');\n const color = getAttributeFromClassificationData(dataLayerMap, 'color');\n const productData = Object.entries({\n id: baseId,\n name: `${getProductName(product.name || '')} ${product.dataLayerDescription || ''} ${color}`,\n variant: color,\n size: variationValues[0].dataLayerName,\n technology: find(dataLayerMap.entry, entry => entry.key === 'technology').value,\n class: find(dataLayerMap.entry, entry => entry.key === 'clearanceStatus').value,\n price: unitPrice,\n quantity,\n total_item_price: (quantity * unitPrice).toFixed(2),\n }).reduce(formatDataLayer, {});\n\n productData.image = `https:${baseImage}`;\n productData.url = window.location.origin + link;\n productData.added_on = creationtime.replace(/[^0-9-:]/g, ' ').trim();\n\n return productData;\n });\n}\n","export function dlTrackFormFields({ formName, formField }) {\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'form tracking',\n form_name: formName.replace(/([A-Z])/g, ' $1').toLowerCase(),\n form_field: formField\n .replace(/([A-Z])/g, ' $1')\n .toLowerCase()\n .replace('username', 'email')\n .replace('line', 'address'),\n });\n } catch (error) {\n console.error(error);\n }\n}\n\nexport function dlTrackFormSubmit({ errorMsgs, formName }) {\n try {\n const hasErrors = Object.keys(errorMsgs).length;\n const errorFieldName = Object.keys(errorMsgs)[0];\n const formSubmitAnalytics = {\n event: 'visitor interaction',\n interaction_name: hasErrors ? 'form error' : 'form submit',\n [hasErrors ? 'form_error_name' : 'form_name']: formName.replace(/([A-Z])/g, ' $1').toLowerCase(),\n };\n if (hasErrors) {\n formSubmitAnalytics.form_error_field = errorFieldName\n .replace(/([A-Z])/g, ' $1')\n .toLowerCase()\n .replace('username', 'email')\n .replace('line', 'address');\n formSubmitAnalytics.form_error_message = errorMsgs[errorFieldName]\n ?.replace(/([A-Z])/g, '$1')\n .toLowerCase()\n .trim();\n }\n window.dataLayer.push(formSubmitAnalytics);\n } catch (e) {\n console.error(e);\n }\n}\n\nexport function dlTrackPoBoxValidationError() {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'PO box or exchange address validation failure',\n });\n}\n","export const DL_USER_LOGGED_STATUS = 'DL_USER_LOGGED_STATUS';\nexport const DL_USER_BAG_ID = 'DL_USER_BAG_ID';\nexport const DL_CHECKOUT_TYPE_WEBSITE = 'website';\nexport const DL_CHECKOUT_TYPE_PAYPAL_EXPRESS = 'express - paypal';\nexport const DL_CHECKOUT_TYPE_APPLE_PAY = 'express - apple pay';\nexport const DL_CHECKOUT_TYPE_GOOGLE_PAY = 'express - google pay';\n\nexport const DL_STEP_DELIVERY = 'delivery';\nexport const DL_STEP_BILLING = 'billing';\nexport const DL_STEP_REVIEW = 'review';\n\nexport const DL_EVENT_VIEW_PROMOTION = 'view_promotion';\nexport const DL_EVENT_SELECT_PROMOTION = 'select_promotion';\nexport const DL_EVENT_USE_VALID_COUPON = 'use_valid_coupon';\nexport const DL_EVENT_USE_INVALID_COUPON = 'use_invalid_coupon';\nexport const DL_EVENT_ADD_TO_WISHLIST = 'add_to_wishlist';\nexport const DL_EVENT_VIEW_ITEM_LIST = 'view_item_list';\nexport const DL_EVENT_VIEW_ITEM = 'view_item';\nexport const DL_EVENT_SELECT_ITEM = 'select_item';\nexport const DL_EVENT_ADD_TO_CART = 'add_to_cart';\nexport const DL_EVENT_VIEW_CART = 'view_cart';\nexport const DL_EVENT_REMOVE_FROM_CART = 'remove_from_cart';\nexport const DL_EVENT_BEGIN_CHECKOUT = 'begin_checkout';\nexport const DL_EVENT_CHECKOUT_PROGRESS = 'checkout_progress';\nexport const DL_EVENT_ADD_SHIPPING_INFO = 'add_shipping_info';\nexport const DL_EVENT_ADD_PAYMENT_INFO = 'add_payment_info';\nexport const DL_EVENT_PURCHASE = 'purchase';\n\nexport const DL_ITEM_LIST_YMAL = 'you may also like';\n","/* eslint-disable camelcase */\nimport { omit, isNumber, isBoolean } from 'lodash';\nimport { PAYMENT_METHOD } from 'app/checkoutV2/components/checkoutPayment/checkoutPaymentConstants';\nimport { getSizeData } from 'app/productDetails/productDetailsUtils';\nimport {\n DL_CHECKOUT_TYPE_APPLE_PAY,\n DL_CHECKOUT_TYPE_PAYPAL_EXPRESS,\n DL_CHECKOUT_TYPE_WEBSITE,\n} from './gtmAnalyticsConstants';\n\nconst { locale } = window.inlineGlobalConfig;\nconst currency = locale.currentCurrency;\n\nconst clearanceStatusMap = cStatus => {\n if (cStatus === 'normal') {\n return 'full price';\n }\n if (cStatus === 'sale') {\n return 'markdown';\n }\n return cStatus?.toLowerCase();\n};\n\nconst timestamp = () => Date.now();\n\nconst clearEcommerce = () => {\n window.dataLayer.push({\n ecommerce: null,\n });\n};\n\nexport const convertStringCurrencyToNumber = price => {\n if (typeof price === 'number') {\n return price;\n }\n\n return price && Number(price.replace(/^\\D+/g, '').replace(/,/g, '.'));\n};\n\nconst getValue = eventData => {\n const { totalPriceValue, totalPrice, price } = eventData;\n return totalPriceValue || convertStringCurrencyToNumber(totalPrice) || convertStringCurrencyToNumber(price);\n};\n\nconst getCartValue = eventData => {\n const { totalPriceWithoutTax } = eventData;\n return convertStringCurrencyToNumber(totalPriceWithoutTax);\n};\n\nconst getOrderValue = eventData => {\n const { totalPrice } = eventData;\n return totalPrice?.value;\n};\n\nconst fixFloatingPointPrecission = num => {\n return Number.parseFloat(num.toFixed(2));\n};\n\nconst getDiscountValueNew = (price, wasPrice) => fixFloatingPointPrecission(wasPrice - price);\n\nconst getCoupon = eventData => {\n const { appliedVouchers, declinedCoupon, appliedVoucher } = eventData;\n const coupon = declinedCoupon || (appliedVouchers && appliedVouchers[0]?.voucherCode) || appliedVoucher || '';\n return coupon === '' ? undefined : coupon.toLowerCase();\n};\n\nconst getCustomerType = () => {\n if (window.inlineOrderConfirmation.orderConfirmation) {\n return window.inlineOrderConfirmation.orderConfirmation.newCustomer ? 'new customer' : 'existing customer';\n }\n\n return null;\n};\n\nconst getAttributeFromClassificationDataNew = (classificationData, attribute) => {\n const data =\n classificationData.entry?.find(group => group.key === attribute) ||\n classificationData.entry?.find(group => group.key === `${attribute}_en_string`) ||\n classificationData.entry?.find(group => group.key === `${attribute}_en_uk_string`);\n\n return data?.value || undefined;\n};\n\nconst getStockCount = (code, data) => data.find(s => s.sku === code)?.count;\nconst getStockLevelAtCartAndWishlist = product => product.stockLevel;\nconst getStockLevelAtPDP = product => getStockCount(product.code, getSizeData(product));\nconst getStockLevelAtPLP = product => getStockCount(product.code, product.details?.sizes);\nexport const getStockLevel = product =>\n getStockLevelAtCartAndWishlist(product) || getStockLevelAtPDP(product) || getStockLevelAtPLP(product);\n\nconst isProductOutOfStock = product => product?.stockLevel <= 0;\n\nexport const getCheckoutType = paymentInfo => {\n switch (paymentInfo?.type) {\n case undefined:\n case null:\n return { checkout_type: undefined };\n case PAYMENT_METHOD.PAYPAL_EXPRESS:\n return { checkout_type: DL_CHECKOUT_TYPE_PAYPAL_EXPRESS };\n case PAYMENT_METHOD.APPLE_PAY:\n return { checkout_type: DL_CHECKOUT_TYPE_APPLE_PAY };\n default:\n return { checkout_type: DL_CHECKOUT_TYPE_WEBSITE };\n }\n};\n\nexport const getProductName = name => name.replace(/<sup>™<\\/sup>|<sup>™<\\/sup>/, '');\n\nexport const getProductAge = nrOfDays => {\n const productAgeTypes = [\n {\n value: 14,\n content: '2 weeks',\n },\n {\n value: 90,\n content: '3 months',\n },\n {\n value: 182,\n content: '6 months',\n },\n {\n value: 365,\n content: 'year',\n },\n ];\n const productAgeTypesLength = productAgeTypes.length;\n if (productAgeTypes[0].value > nrOfDays) {\n return `past ${productAgeTypes[0].content}`;\n }\n for (let i = 1; i < productAgeTypesLength; i++) {\n if (productAgeTypes[i - 1].value <= nrOfDays && nrOfDays < productAgeTypes[i].value) {\n return `past ${productAgeTypes[i].content}`;\n }\n }\n return 'past more than one year';\n};\n\nexport const getLocaleDataByUid = uid => {\n switch (uid) {\n case 'uk':\n return {\n country: 'united kingdom',\n gaAccount: 'UA-17766798-1',\n currency: '£',\n };\n case 'ca':\n return {\n country: 'canada',\n gaAccount: 'UA-17766798-4',\n currency: 'C$',\n };\n case 'us':\n return {\n country: 'united states',\n gaAccount: 'UA-17766798-2',\n currency: '$',\n };\n case 'eu':\n return {\n country: 'europe',\n gaAccount: 'UA-17766798-3',\n currency: '€',\n };\n default:\n return {\n country: 'united kingdom',\n gaAccount: 'UA-17766798-1',\n currency: '£',\n };\n }\n};\n\nexport const getLanguageName = language => {\n switch (language) {\n case 'en':\n return 'english';\n case 'de':\n return 'german';\n case 'fr':\n return 'french';\n case 'it':\n return 'italian';\n default:\n return 'english';\n }\n};\n\nexport const getDiscountLevel = (price, wasPrice) => {\n const maxPercentage = 100;\n const discountPercentage = ((wasPrice - price) * maxPercentage) / wasPrice;\n switch (true) {\n case 0 < discountPercentage && discountPercentage < 20: // eslint-disable-line\n return 'less than 20%';\n case 20 <= discountPercentage && discountPercentage < 35: // eslint-disable-line\n return '20% to 35%';\n case 35 <= discountPercentage && discountPercentage < 50: // eslint-disable-line\n return '35% to 50%';\n case 50 <= discountPercentage && discountPercentage < 70: // eslint-disable-line\n return '50% to 70%';\n case discountPercentage >= 70: // eslint-disable-line\n return '70%+';\n default:\n return '';\n }\n};\n\nexport const getDiscountValue = (price, wasPrice) => (wasPrice - price).toFixed(2); // eslint-disable-line\n\nexport const getProductAvailability = sizes => {\n const maxPercentage = 100;\n let numberOfNoStockSizes = 0;\n sizes.forEach(size => {\n if (size.count <= 0) {\n numberOfNoStockSizes += 1;\n }\n });\n return Math.round(maxPercentage - (numberOfNoStockSizes * maxPercentage) / sizes.length);\n};\n\nexport const parseToGTMFloat = number => parseFloat(number).toFixed(2); // eslint-disable-line\n\nexport const getAttributeFromClassificationData = (classificationData, attribute) =>\n (() =>\n classificationData.entry.filter(group => group.key === attribute)[0] ||\n classificationData.entry.filter(group => group.key === `${attribute}_en_string`)[0] ||\n classificationData.entry.filter(group => group.key === `${attribute}_en_uk_string`)[0] || {\n value: '',\n })().value;\n\nexport const formatDataLayer = (acc, [key, value]) => {\n const newValueFormat =\n value && !isNumber(value) && !isBoolean(value)\n ? value\n .toLowerCase()\n .replace(/&/gi, 'and')\n .replace(/_/gi, ' ')\n .replace(/ü/g, 'u')\n .replace(/[^A-Za-z0-9\\s./-]/g, '')\n .trim()\n : value;\n\n return {\n ...acc,\n [key]: newValueFormat,\n };\n};\n\nexport const getProductData = product => {\n const genderMap = {\n women: 'womens',\n femme: 'womens',\n donna: 'womens',\n damen: 'womens',\n men: 'mens',\n homme: 'mens',\n uomo: 'mens',\n herren: 'mens',\n };\n const classificationData = product.dataLayerMap || product.classificationData;\n const color = getAttributeFromClassificationData(classificationData, 'color');\n const gender = getAttributeFromClassificationData(classificationData, 'gender').toLowerCase();\n const silhouette = getAttributeFromClassificationData(classificationData, 'silhouette');\n const productCode = product.productCode || getAttributeFromClassificationData(classificationData, 'baseProductCode');\n const price = parseToGTMFloat(product.price.replace(/^\\D+/g, '').replace(/,/g, '.'));\n const wasPrice = parseToGTMFloat(product.wasPrice.replace(/^\\D+/g, '').replace(/,/g, '.'));\n const clearanceStatus = getAttributeFromClassificationData(classificationData, 'clearanceStatus');\n\n const productData = {\n variant: color,\n name: `${getProductName(product.name || '')} ${product.dataLayerDescription || ''} ${color}`,\n price,\n category: `${genderMap[gender]}/${silhouette}`,\n brand: getAttributeFromClassificationData(classificationData, 'family'),\n dimension1: `${getProductName(product.name || '')} ${product.dataLayerDescription || ''}`,\n dimension2: product.selectedSize || '',\n dimension3: productCode.split('-')[0],\n dimension4: productCode,\n dimension5: product.markdown ? 'reduced price' : 'full price',\n dimension6: product.markdown ? getDiscountLevel(price, wasPrice) : '',\n dimension7: product.markdown ? getDiscountValue(price, wasPrice) : '',\n dimension8: getAttributeFromClassificationData(classificationData, 'technology'),\n dimension9: getAttributeFromClassificationData(classificationData, 'material'),\n dimension10: getProductAge(product.productAge ? product.productAge : 0),\n dimension14: replaceSpecialChars(product.crossSell || ''),\n dimension15: clearanceStatusMap(clearanceStatus.toLowerCase()),\n };\n return Object.entries(productData).reduce(formatDataLayer, {});\n};\n\nexport const positionRemapping = position => {\n switch (position) {\n case 'media-banner__copy-top-left':\n return 'top left';\n case 'media-banner__copy-top-center':\n return 'top center';\n case 'media-banner__copy-top-right':\n return 'top right';\n case 'media-banner__copy-middle-left':\n return 'middle left';\n case 'media-banner__copy-middle-center':\n return 'middle center';\n case 'media-banner__copy-middle-right':\n return 'middle right';\n case 'media-banner__copy-bottom-left':\n return 'bottom left';\n case 'media-banner__copy-bottom-center':\n return 'bottom center';\n case 'media-banner__copy-bottom-right':\n return 'bottom right';\n case 'media-buttons-banner__copy--center':\n return 'center';\n case 'media-buttons-banner__copy--left':\n return 'left';\n case 'media-buttons-banner__copy--right':\n return 'right';\n default:\n return position;\n }\n};\n\nexport const findParentRowComponent = element => {\n if (element.nodeName === 'BODY' || element.nodeName === 'HTML') {\n return '';\n }\n if (element.parentNode.classList.contains('row-component')) {\n return element.parentNode.dataset.slotName;\n }\n return findParentRowComponent(element.parentNode);\n};\n\nexport function replaceSpecialChars(string = '') {\n return string\n .replace(/[_-]/g, ' ')\n .replace(/&/g, ' and ')\n .replace(/\\n/gi, '')\n .replace(/[^A-Za-z0-9\\s.]/g, '')\n .replace(/\\s\\s+/g, ' ')\n .replace(/%/g, '')\n .toLowerCase();\n}\n\nexport const checkForTextExistence = (element, type) => {\n if (element && element.dataset[type]) {\n const datasetText = element.dataset[type].replace('<br>', ' ');\n const placeholder = document.createElement('div');\n placeholder.innerHTML = datasetText;\n return placeholder.innerText || placeholder.textContent;\n }\n return '';\n};\n\nexport const reduceProductFields = productsAnalytics =>\n productsAnalytics.map(product =>\n omit(product, ['brand', 'variant', 'dimension1', 'dimension3', 'dimension8', 'dimension9'])\n );\n\nexport const getElementIndex = el => Array.prototype.indexOf.call(el.parentNode.children, el);\n\nexport const pushAnalyticsOnTabClick = e => {\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'tab click',\n tab_name: e.target.innerText.toLowerCase().trim() || '',\n });\n } catch (err) {\n console.error(err);\n }\n};\n\nconst getDataLayerItem = (product, otherProps) => {\n const {\n classificationData,\n code,\n dataLayerDescription,\n dataLayerMap,\n id,\n markdown,\n name,\n productAge,\n product_availability,\n quantity = 1,\n selectedSize,\n stock_level,\n variationValues,\n } = product;\n\n const { index, item_list_id, item_list_name, coupon } = otherProps || {};\n\n const features = dataLayerMap || classificationData;\n const color = getAttributeFromClassificationDataNew(features, 'color');\n const productCode = product.productCode || getAttributeFromClassificationDataNew(features, 'baseProductCode') || id;\n const totalValue = convertStringCurrencyToNumber(product.totalPrice);\n const price = convertStringCurrencyToNumber(product.price);\n const wasPrice = convertStringCurrencyToNumber(product.wasPrice);\n const clearanceStatus = getAttributeFromClassificationDataNew(features, 'clearanceStatus')?.toLowerCase();\n\n const productData = {\n coupon,\n discount: markdown ? getDiscountValueNew(price, wasPrice) : null, // dimension7\n discount_band: markdown ? getDiscountLevel(price, wasPrice) : undefined, // dimension6\n discount_flag: markdown ? 'reduced price' : 'full price', // dimension5\n index: index === undefined ? index : index + 1,\n item_age: getProductAge(productAge || 0), // dimension10\n item_brand: getAttributeFromClassificationDataNew(features, 'family'),\n item_category: getAttributeFromClassificationDataNew(features, 'gender'),\n item_category2: getAttributeFromClassificationDataNew(features, 'silhouette'),\n item_category3: getAttributeFromClassificationDataNew(features, 'technologyGroup'), // dimension8\n item_category4: undefined,\n item_category5: undefined,\n item_id: productCode,\n item_list_id,\n item_list_name,\n item_material: getAttributeFromClassificationDataNew(features, 'materialGroup'), // dimension9\n item_name: `${getProductName(name || '')} ${dataLayerDescription || ''} ${color || ''}`,\n item_nav_code: productCode, // dimension4\n item_size: selectedSize || (variationValues && variationValues[0].dataLayerName) || undefined, // dimension2\n item_style_code: productCode.split('-')[0], // dimension3\n item_trading_clasification: clearanceStatusMap(clearanceStatus), // dimension15\n item_variant: color,\n out_of_stock_flag: isProductOutOfStock(product),\n price,\n product_availability,\n quantity,\n sku: code,\n stock_level,\n totalValue,\n wasPrice,\n };\n\n return Object.entries(productData).reduce(formatDataLayer, {});\n};\n\nconst getProductItems = (products, otherProps) => products.map(product => getDataLayerItem(product, otherProps));\n\nexport function getProductEcommerceObject(product, otherProps) {\n return {\n currency,\n value: getValue(product),\n items: [getDataLayerItem(product, otherProps)],\n };\n}\n\nexport function getProductListEcommerceObject(products, otherProps) {\n return {\n currency,\n items: products.map((product, index) => getDataLayerItem(product, { ...otherProps, index })),\n };\n}\n\nconst fillInTheSku = product => {\n if (!product.code) {\n product.code = product.id;\n }\n\n return product;\n};\n\nexport function getCartEcommerceObject(bagInfo) {\n const { entries } = bagInfo;\n const coupon = getCoupon(bagInfo);\n const value = getCartValue(bagInfo);\n const otherProps = {\n coupon,\n };\n\n return {\n currency,\n coupon,\n value,\n items: getProductItems(entries.map(fillInTheSku), otherProps),\n };\n}\n\nexport function getCheckoutEcommerceObject(bagInfo) {\n const {\n deliveryMode: { priceValue, deliveryCost, nameEn },\n paymentInfo,\n } = bagInfo;\n return {\n ...getCartEcommerceObject(bagInfo),\n shipping: priceValue ?? deliveryCost.value,\n shipping_tier: nameEn,\n payment_type: paymentInfo?.type,\n };\n}\n\nexport function getPurchaseEcommerceObject(order) {\n const { code, totalTax } = order;\n return {\n ...getCheckoutEcommerceObject(order),\n value: getOrderValue(order),\n tax: totalTax.value,\n transaction_id: code,\n customer_type_flag: getCustomerType(),\n };\n}\n\nexport const clearEcommerceAndPushToDataLayer = (event, ecommerce, additionalProps) => {\n clearEcommerce();\n const data = {\n event,\n timestamp: timestamp(),\n ecommerce,\n ...additionalProps,\n };\n window.dataLayer.push(data);\n};\n","const { pageName } = window.inlineGlobalConfig;\n\nexport function dlTrackVirtualPage(virtualPage, extendData = {}) {\n window.dataLayer.push({\n event: 'virtual page view',\n page_name: `/ga-virtual${pageName}/${virtualPage}`,\n ...extendData,\n });\n}\n","/* eslint-disable camelcase */\nimport { getLoggedUserInfo } from 'app/utils/globalDataHelpers';\nimport {\n getProductData,\n replaceSpecialChars,\n reduceProductFields,\n clearEcommerceAndPushToDataLayer,\n getProductEcommerceObject,\n getProductListEcommerceObject,\n} from './gtmAnalyticsUtils';\nimport { DL_EVENT_SELECT_ITEM, DL_EVENT_VIEW_ITEM_LIST } from './gtmAnalyticsConstants';\n\nconst { locale, pageType } = window.inlineGlobalConfig;\nconst { categoryId, query } = window.inlinePlp || {};\n\nexport function getBasicListProps(listId, listName) {\n return { item_list_id: listId, item_list_name: listName || listId };\n}\n\nexport function dlSelectItem(product, listProps) {\n clearEcommerceAndPushToDataLayer(DL_EVENT_SELECT_ITEM, getProductEcommerceObject(product, listProps));\n}\n\nexport function getPLPOrSRPProps(listId, index) {\n return { index, ...getBasicListProps(listId, query || categoryId || undefined) };\n}\n\nexport function dlSelectPLPOrSRPItem(product, index) {\n dlSelectItem(product, getPLPOrSRPProps(pageType, index));\n}\n\nexport function dlViewItemList(products, listProps) {\n clearEcommerceAndPushToDataLayer(DL_EVENT_VIEW_ITEM_LIST, getProductListEcommerceObject(products, listProps));\n}\n\nexport function dlViewPLPOrSRPItemList(products) {\n dlViewItemList(products, getPLPOrSRPProps(pageType));\n}\n\nexport function dlTrackProductClick({ product, position, listName }) {\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'select product',\n page_type: replaceSpecialChars(pageType),\n ecommerce: {\n currencyCode: locale.currentCurrency,\n click: {\n products: [\n {\n ...getProductData({ ...product, productCode: product.id }),\n position,\n list: replaceSpecialChars(listName || pageType),\n },\n ],\n },\n },\n });\n } catch (error) {\n console.error(error);\n }\n}\n\nexport function dlTrackProductsReceive(products, totalItems) {\n getLoggedUserInfo().then(userInfo => {\n const productsLimit = 20;\n try {\n const productsAnalytics = products.map((product, index) =>\n Object.assign({}, getProductData({ ...product, productCode: product.id }), {\n position: index,\n list: replaceSpecialChars(pageType),\n })\n );\n\n const searchQuery = new URL(window.location).searchParams.get('query');\n\n const dataLayerInfo = {\n event: 'visitor interaction',\n interaction_name: 'product impression',\n user_status: userInfo['userInfo/index']?.username ? 'logged in' : 'not logged in',\n num_products: totalItems,\n ecommerce: {\n currencyCode: locale.currentCurrency,\n impressions: reduceProductFields(productsAnalytics).slice(0, productsLimit),\n },\n ...(searchQuery ? { search_term: searchQuery } : {}),\n };\n\n window.dataLayer.push(dataLayerInfo);\n } catch (error) {\n console.error(error);\n }\n });\n}\n\nexport function dlTrackFilterSelecting({ isSelected, facetHeaderName, facetItemId, totalItems }) {\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: isSelected ? 'apply filter' : 'remove filter',\n [isSelected ? 'apply_filter_category' : 'remove_filter_category']: facetHeaderName\n ? facetHeaderName.toLowerCase()\n : '',\n [isSelected ? 'apply_filter_value' : 'remove_filter_value']: facetItemId\n .replace(/C\\$/g, '')\n .replace(/\\$/g, '')\n .replace(/€/g, '')\n .replace(/£/g, '')\n .replace(/,/g, '.')\n .toLowerCase(),\n [isSelected ? 'apply_filter_results' : 'remove_filter_results']: totalItems,\n });\n } catch (error) {\n console.error(error);\n }\n}\n\nexport function dlTrackToggleView(nrOfColumns) {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'change product list view',\n prod_list_view: nrOfColumns === 1 ? '1 column' : `${nrOfColumns} columns`,\n });\n}\n\nexport function dlTrackSorting(sortName) {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'product list sort',\n prod_list_sort_by: replaceSpecialChars(sortName),\n });\n}\n\nexport function dlTrackBackToTopClick() {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'back to top click',\n });\n}\n\nexport function dlTrackPLPBreadcrumb(url) {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'breadcrumb click',\n breadcrumb_url: url,\n });\n}\n","import { convertCurrencyToNumber, decodeHtml } from 'app/utils/helpers';\nimport { getLoggedUserInfo, getGlobalCartInfo } from 'app/utils/globalDataHelpers';\nimport { getBasket, getBasketItem, isEcViewEventFired } from './qubitAnalyticsUtils';\n\nconst { locale, pageType } = window.inlineGlobalConfig;\nconst { language, country, currentCurrency } = locale;\n\nif (pageType !== 'product' && !isEcViewEventFired()) {\n qubitEmitEcViewEvent();\n qubitEmitEcUserEvent();\n qubitEmitEcBasketEvents();\n}\n\nexport function qubitEmitEcUserEvent() {\n getLoggedUserInfo().then(userInfo => {\n if (userInfo['userInfo/index']?.username) {\n window.uv.emit('ecUser', {\n user: {\n id: userInfo['userInfo/index'].encodedId,\n email: userInfo['userInfo/index'].username,\n },\n });\n }\n });\n}\n\nexport function qubitEmitEcBasketEvents() {\n getGlobalCartInfo().then(({ entries, totalItems, subtotal, totalPrice }) => {\n if (entries.length > 0) {\n const basket = getBasket({\n subtotal: convertCurrencyToNumber(subtotal),\n subtotalWithTax: convertCurrencyToNumber(subtotal),\n total: convertCurrencyToNumber(totalPrice),\n quantity: totalItems,\n });\n\n entries.forEach(entry => {\n window.uv.emit('ecBasketItem', getBasketItem(basket, entry));\n });\n window.uv.emit('ecBasketSummary', { basket });\n }\n });\n}\n\nexport function qubitEmitEcBasketAction(productId, sku, action) {\n window.uv.emit('ecBasketItemAction', {\n product: { productId, sku },\n action,\n });\n}\n\nexport function qubitEmitEcViewEvent({ subtypes } = {}) {\n const pageTypeMapToQubit = {\n homepage: 'home',\n 'product-list': 'category',\n 'search-results': 'search',\n product: 'product',\n bag: 'basket',\n checkout: 'checkout',\n 'order-confirmation': 'confirmation',\n 'customer-support': 'help',\n 'my-account': 'account',\n };\n const mappedPageType = pageTypeMapToQubit[pageType];\n window.uv.emit(\n 'ecView',\n Object.assign(\n {\n type: mappedPageType || 'other',\n language: `${language.toLowerCase()}-${country.toLowerCase()}`,\n country: country.toUpperCase(),\n currency: currentCurrency,\n },\n subtypes ? { subtypes: subtypes.map(subType => decodeHtml(subType)) } : null\n )\n );\n}\n","import { convertCurrencyToNumber } from 'app/utils/helpers';\nimport { getProductName } from '../gtmAnalyticsUtils';\n\nconst { currentCurrency } = window.inlineGlobalConfig.locale;\nconst { pageType, locale } = window.inlineGlobalConfig;\n\nconst getColorCode = product => {\n const colorCode = product?.classificationData?.entry?.find(entryObj => entryObj.key === 'colorCode').value ?? null;\n return colorCode ? `#${colorCode}` : '';\n};\n\nexport const createImageSet = (baseUrl, queryPostfix, totalImages = 3) => {\n const composeMap = new Map();\n for (let i = 0; i < totalImages; i++) {\n composeMap.set(i, `${baseUrl}${i > 0 ? `_${i}` : ''}${queryPostfix ? `?${queryPostfix}` : ''}`);\n }\n return composeMap;\n};\n\nexport const getBasket = ({ subtotal, subtotalWithTax, total, quantity, additionalValue = {} }) =>\n Object.assign(\n {},\n { quantity },\n total\n ? {\n total: {\n currency: currentCurrency,\n value: total,\n },\n }\n : {},\n subtotalWithTax\n ? {\n subtotalIncludingTax: {\n currency: currentCurrency,\n value: subtotalWithTax,\n },\n }\n : {},\n subtotal\n ? {\n subtotal: {\n currency: currentCurrency,\n value: subtotal,\n },\n }\n : {},\n additionalValue\n );\n\nexport const getBasketItem = (basket, entry) => {\n const {\n baseId,\n baseImage,\n description,\n id,\n name,\n price,\n primaryCategoryName,\n quantity,\n stockLevel,\n subtotal,\n url,\n totalPrice,\n link,\n } = entry;\n return {\n basket,\n product: {\n sku: id,\n productId: baseId,\n name,\n stock: stockLevel,\n price: {\n currency: currentCurrency,\n value: convertCurrencyToNumber(price),\n },\n url: url || link,\n description,\n categories: [primaryCategoryName],\n images: [...createImageSet(baseImage, 'w=375').values()],\n },\n quantity,\n subtotal: {\n currency: currentCurrency,\n value: convertCurrencyToNumber(subtotal || totalPrice),\n },\n subtotalIncludingTax: {\n currency: currentCurrency,\n value: convertCurrencyToNumber(subtotal || totalPrice),\n },\n };\n};\n\nexport const getProductData = product =>\n Object.assign(\n {\n sku: product.sku || '',\n productId: product.productCode,\n name: getProductName(product.name),\n price: {\n currency: locale.currentCurrency,\n value: convertCurrencyToNumber(product.price),\n },\n },\n product.size ? { size: product.size } : null,\n pageType === 'product'\n ? {\n originalPrice: {\n currency: locale.currentCurrency,\n value: convertCurrencyToNumber(product.markdown ? product.wasPrice : product.price),\n },\n url: `${window.location.pathname}${getColorCode(product)}`,\n description: product.description,\n categories: [product.primaryCategoryName],\n images: product.imageSet.items ? [...product.imageSet.items.map(image => `${image.src}?w=375`)] : [''],\n }\n : null,\n {\n stock: product.stock === undefined ? '' : product.stock,\n }\n );\n\nexport const isEcViewEventFired = () => {\n const { events } = window.uv;\n return events.some(event => event.meta.type === 'ecView');\n};\n","export const extractProductClearanceStatus = classificationDataAttributes => {\n const [status] = classificationDataAttributes.entry.filter(item => item.key === 'clearanceStatus').map(toQubitFormat);\n return status;\n};\n\n// Fn with side-effect: adds data attributes to <div id='pdpDetails'> node (mount point for PDP Root app)\n// values must be set dynamically, since changing the colour variants should change the data-sku value\nexport const updateQubitAttributesOnProductDetailsDOMNode = pdpProductData => {\n const pdpDetailsDOMElement = document.querySelector('#pdpDetails');\n const { productCode, dataLayerMap } = pdpProductData;\n const clearanceStatus = extractProductClearanceStatus(dataLayerMap);\n\n pdpDetailsDOMElement.setAttribute('data-classification-status', clearanceStatus);\n pdpDetailsDOMElement.setAttribute('data-sku', productCode);\n\n return pdpProductData;\n};\n\nfunction toQubitFormat(classificationAttribute) {\n return (classificationAttribute.value || '').toLowerCase().replace(' ', '');\n}\n","import { dlAddToCart } from './addToBagAnalytics';\nimport { DL_EVENT_ADD_TO_WISHLIST } from './gtmAnalyticsConstants';\nimport {\n getProductData,\n replaceSpecialChars,\n clearEcommerceAndPushToDataLayer,\n getProductEcommerceObject,\n} from './gtmAnalyticsUtils';\nimport { dlSelectItem, dlViewItemList, getBasicListProps } from './productListAnalytics';\n\nconst { locale, pageType } = window.inlineGlobalConfig;\n\nexport function dlSelectWishlistItem(product, index) {\n dlSelectItem(product, { ...getBasicListProps(pageType), index });\n}\n\nexport function dlViewWishlistItemList(products) {\n dlViewItemList(products, getBasicListProps(pageType));\n}\n\nexport function dlAddToWishlistNew(product, listProps) {\n clearEcommerceAndPushToDataLayer(DL_EVENT_ADD_TO_WISHLIST, getProductEcommerceObject(product, listProps));\n}\n\nexport function dlAddToCartFromWishlist(product, index) {\n dlAddToCart(product, { index, ...getBasicListProps(pageType) });\n}\n\nexport function dlAddToWishlist({ product, selectedSize }) {\n const { name, price, category, dimension2, dimension4, dimension6 } = getProductData({\n ...product,\n selectedSize,\n });\n\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'add to wishlist',\n success_flag: selectedSize ? 'success' : 'please select a size',\n add_to_wishlist_loc: replaceSpecialChars(pageType),\n wl_prod_name: name,\n wl_prod_price: price,\n wl_prod_currency: locale.currentCurrency,\n wl_prod_category: category,\n wl_prod_size: dimension2,\n wl_prod_nav_code: dimension4 || product.id.toLowerCase(),\n wl_prod_discount_band: dimension6,\n });\n}\n\nexport function dlRemoveFromWishlist({ product, location, operationResult = 'success' }) {\n const { name, price, category, dimension2, dimension4, dimension6 } = getProductData({\n ...product,\n selectedSize: product.variationValues[0].dataLayerName,\n });\n\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'remove from wishlist',\n success_flag: operationResult.toLowerCase(),\n remove_from_wishlist_loc: location,\n wishlist_remove_reason:\n (product.isNotActive && 'discontinued') || (product.stockLevel < 1 && 'out of stock') || 'none',\n wl_prod_name: name,\n wl_prod_price: price,\n wl_prod_currency: locale.currentCurrency,\n wl_prod_category: category,\n wl_prod_size: dimension2,\n wl_prod_nav_code: dimension4,\n wl_prod_discount_band: dimension6,\n });\n}\n","export const CART_SOURCES = {\n FETCH_CART: 'fetchCart',\n UPDATE_CART_ITEM: 'updateCart',\n REMOVE_CART_ITEM: 'removeCartItem',\n VALIDATE_CART: 'validateOrder',\n HANDLE_CART_COUPON: 'handleCoupon',\n};\n\nexport const CART_ACTIONS = {\n CHECKOUT_STARTED: 'checkoutStarted',\n CHECKOUT_FINISHED: 'checkoutFailed',\n CHECKOUT_DISABLED: 'checkoutDisabled',\n CHECKOUT_ENABLED: 'checkoutEnabled',\n PAYPAL_EXPRESS_STARTED: 'paypalExpressStarted',\n PAYPAL_EXPRESS_FINISHED: 'paypalExpressFinished',\n};\n\nexport const CART_VALIDATION_FLAG = 'CART_VALIDATION_FLAG';\n\nexport const REDIRECTED_WITH_NOTIFICATION = 'REDIRECTED_WITH_NOTIFICATION';\n\nexport const INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK';\n","export const USER_STATE = 'USER_STATE';\nexport const SET_USERNAME = 'SET_USERNAME';\nexport const SET_CHECKOUT_CART_DATA = 'SET_CHECKOUT_CART_DATA';\n\nexport const AUTH_URL = '/auth';\n\nexport const LOGIN_URL = '/auth/login';\n\nexport const FORGOT_PASSWORD_URL = '/forgotPassword';\nexport const FORGOT_PASSWORD_CONFIRMATION_URL = '/passwordConfirmation';\n\nexport const GUEST_URL = '/auth/guest';\n\nexport const DELIVERY_URL = '/delivery';\nexport const DELIVERY_HOME_ADDRESS_URL = `${DELIVERY_URL}/home-delivery-details`;\nexport const DELIVERY_DPD_URL = `${DELIVERY_URL}/dpd`;\nexport const DPD_STEP_1 = 'find-collection-point';\nexport const DPD_STEP_2 = 'choose-collection-point';\nexport const DPD_STEP_3 = 'collection-details';\nexport const DELIVERY_DPD_STEP = `${DELIVERY_DPD_URL}/:step`;\nexport const DELIVERY_DPD_FIND_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_1}`;\nexport const DELIVERY_DPD_CHOOSE_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_2}`;\nexport const DELIVERY_DPD_DETAILS_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_3}`;\n\nexport const BILLING_URL = '/billing';\nexport const CARD_URL = '/billing/card';\nexport const PAYPAL_URL = '/billing/paypal';\nexport const AFTERPAY_URL = '/billing/afterpay';\nexport const KLARNA_URL = '/billing/klarna';\n\nexport const REVIEW_URL = '/review';\n\nexport const SCROLL_TO_ADDRESS_FORM_DURATION = 500;\n\nexport const CHECKOUT_APP = 'CHECKOUT_APP';\n\nexport const PREDEFINED_ADDRESS = 'PredefinedAddressZoneDeliveryModeModel';\n\nexport const REMOVED_COUPON = 'REMOVED_COUPON';\n\nexport const SET_CART_PAYMENT_INFO = 'SET_CART_PAYMENT_INFO';\n\nexport const SET_CART_DELIVERY_ADDRESS = 'SET_CART_DELIVERY_ADDRESS';\n\nexport const KLARNA_SDK_URL = 'https://x.klarnacdn.net/kp/lib/v1/api.js';\n","import { CARD_URL, PAYPAL_URL, KLARNA_URL } from '../../checkoutConstants';\n\nexport const PAYMENT_METHOD = {\n CARD: 'CARD',\n PAYPAL: 'PAYPAL',\n ZEROVALUE: 'ZEROVALUE',\n KLARNA: 'KLARNA',\n PAYPAL_EXPRESS: 'PAYPAL_EXPRESS',\n GOOGLE_PAY: 'GOOGLE_PAY',\n APPLE_PAY: 'APPLE_PAY',\n AFTERPAY: 'AFTERPAY'\n};\n\nexport const CARD_ICON_MAPPER = {\n visa: 'visa',\n paypal: 'paypal',\n klarna: 'klarna',\n mc: 'mastercard',\n amex: 'americanexpress',\n discover: 'discover',\n afterpay: 'afterpay',\n};\n\nexport const PAYMENT_TYPES_MAP = {\n [CARD_URL]: PAYMENT_METHOD.CARD,\n [PAYPAL_URL]: PAYMENT_METHOD.PAYPAL,\n [KLARNA_URL]: PAYMENT_METHOD.KLARNA,\n};\n\nexport const SET_PAYMENT_TYPE = 'SET_PAYMENT_TYPE';\n","export const USER_STATE = 'USER_STATE';\nexport const SET_USERNAME = 'SET_USERNAME';\nexport const SET_CHECKOUT_CART_DATA = 'SET_CHECKOUT_CART_DATA';\n\nexport const AUTH_URL = '/auth';\n\nexport const LOGIN_URL = '/auth/login';\n\nexport const FORGOT_PASSWORD_URL = '/forgotPassword';\nexport const FORGOT_PASSWORD_CONFIRMATION_URL = '/passwordConfirmation';\n\nexport const GUEST_URL = '/auth/guest';\n\nexport const DELIVERY_URL = '/delivery';\nexport const DELIVERY_HOME_ADDRESS_URL = `${DELIVERY_URL}/home-delivery-details`;\nexport const DELIVERY_DPD_URL = `${DELIVERY_URL}/dpd`;\nexport const DPD_STEP_1 = 'find-collection-point';\nexport const DPD_STEP_2 = 'choose-collection-point';\nexport const DPD_STEP_3 = 'collection-details';\nexport const DELIVERY_DPD_STEP = `${DELIVERY_DPD_URL}/:step`;\nexport const DELIVERY_DPD_FIND_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_1}`;\nexport const DELIVERY_DPD_CHOOSE_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_2}`;\nexport const DELIVERY_DPD_DETAILS_URL = `${DELIVERY_DPD_URL}/${DPD_STEP_3}`;\n\nexport const SET_CONTACT_DETAILS_STEP = 'SET_CONTACT_DETAILS_STEP';\nexport const SET_DELIVERY_STEP = 'SET_DELIVERY_STEP';\nexport const SET_PAYMENTS_STEP = 'SET_PAYMENTS_STEP';\nexport const SET_USER_DATA = 'SET_USER_DATA';\n\nexport const SET_SELECTED_PAYMENT_ACCORDION_MODE = 'SET_SELECTED_PAYMENT_ACCORDION_MODE';\n\nexport const BILLING_URL = '/billing';\nexport const CARD_URL = '/billing/card';\nexport const PAYPAL_URL = '/billing/paypal';\nexport const AFTERPAY_URL = '/billing/afterpay';\nexport const KLARNA_URL = '/billing/klarna';\n\nexport const REVIEW_URL = '/review';\n\nexport const CHECKOUT_APP = 'CHECKOUT_APP';\n\nexport const PREDEFINED_ADDRESS = 'PredefinedAddressZoneDeliveryModeModel';\n\nexport const REMOVED_COUPON = 'REMOVED_COUPON';\n\nexport const SET_CART_PAYMENT_INFO = 'SET_CART_PAYMENT_INFO';\n\nexport const SET_CART_DELIVERY_ADDRESS = 'SET_CART_DELIVERY_ADDRESS';\n\nexport const KLARNA_SDK_URL = 'https://x.klarnacdn.net/kp/lib/v1/api.js';\n","import { CARD_URL, PAYPAL_URL, KLARNA_URL, AFTERPAY_URL } from '../../checkoutConstants';\n\nexport const PAYMENT_METHOD = {\n CARD: 'CARD',\n PAYPAL: 'PAYPAL',\n ZEROVALUE: 'ZEROVALUE',\n KLARNA: 'KLARNA',\n PAYPAL_EXPRESS: 'PAYPAL_EXPRESS',\n GOOGLE_PAY: 'GOOGLE_PAY',\n APPLE_PAY: 'APPLE_PAY',\n AFTERPAY: 'AFTERPAY',\n};\n\nexport const CARD_ICON_MAPPER = {\n visa: 'visa',\n paypal: 'paypal',\n klarna: 'klarna',\n mc: 'mastercard',\n amex: 'americanexpress',\n discover: 'discover',\n afterpay: 'afterpay',\n};\n\nexport const PAYMENT_TYPES_MAP = {\n [CARD_URL]: PAYMENT_METHOD.CARD,\n [PAYPAL_URL]: PAYMENT_METHOD.PAYPAL,\n [KLARNA_URL]: PAYMENT_METHOD.KLARNA,\n [AFTERPAY_URL]: PAYMENT_METHOD.AFTERPAY,\n};\n\nexport const SET_PAYMENT_TYPE = 'SET_PAYMENT_TYPE';\n","import { decodeHtml } from 'app/utils/helpers';\nimport { getProductData, reduceProductFields } from './gtmAnalyticsUtils';\nimport { DL_ITEM_LIST_YMAL } from './gtmAnalyticsConstants';\nimport { dlSelectItem, dlViewItemList, getBasicListProps } from './productListAnalytics';\n\nconst { locale, pageType } = window.inlineGlobalConfig;\nconst listName = `${pageType} ${DL_ITEM_LIST_YMAL}`;\n\nfunction dlViewProductCarouselItemList(products) {\n dlViewItemList(products, getBasicListProps(listName));\n}\n\nfunction dlSelectProductCarouselItem(product, index) {\n dlSelectItem(product, {\n ...getBasicListProps(listName),\n index,\n });\n}\n\nexport function mountAnalytics() {\n const PRODUCTS_DATA_CONTAINER_ID = '#products-data';\n try {\n const products = getProductsDataFromPage(PRODUCTS_DATA_CONTAINER_ID);\n if (products.length > 0) {\n dlViewProductCarouselItemList(products);\n const productElementsNew = document.querySelectorAll(`.carousel-cell > a`);\n productElementsNew.forEach((element, i) => {\n element.addEventListener('click', () => {\n dlSelectProductCarouselItem(products[i], i);\n });\n });\n\n dlTrackProductImpressions(products, DL_ITEM_LIST_YMAL);\n const viewportSizes = ['small-only', 'medium-up'];\n let productElements;\n viewportSizes.forEach(size => {\n productElements = document.querySelectorAll(`.show-for-${size} .carousel-cell > a`);\n productElements.forEach((element, i) => {\n element.addEventListener('click', () => {\n dlTrackProductSelect({\n product: products[i],\n position: i,\n title: DL_ITEM_LIST_YMAL,\n });\n });\n });\n });\n }\n } catch (error) {\n console.error(error);\n }\n}\n\nfunction getProductsDataFromPage(elementId) {\n const dataHolderElement = document.querySelector(elementId);\n if (!dataHolderElement) {\n return [];\n }\n\n const products = JSON.parse(dataHolderElement.dataset.products);\n return products.map(productDataAdapter);\n}\n\nfunction productDataAdapter(product) {\n return {\n ...product,\n productCode: product.id,\n name: decodeHtml(product.name.replace(/&/g, '&')) || '',\n price: `${product.price.symbol}${Number.parseFloat(product.price.value).toFixed(2)}`,\n wasPrice: product.wasPrice\n ? `${product.wasPrice.symbol}${Number.parseFloat(product.wasPrice.value).toFixed(2)}`\n : '',\n markdown: product.wasPrice && product.wasPrice.value - product.price.value > 0,\n };\n}\n\nfunction dlTrackProductImpressions(products, title) {\n const productsAnalytics = products.map((product, position) => ({\n ...getProductData(product),\n dimension14: title,\n position,\n list: `${pageType} - ${title}`,\n }));\n\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'product impression',\n ecommerce: {\n currencyCode: locale.currentCurrency,\n impressions: reduceProductFields(productsAnalytics),\n },\n });\n } catch (error) {\n console.error(error);\n }\n}\n\nfunction dlTrackProductSelect({ product, position, title }) {\n try {\n window.dataLayer.push({\n event: 'visitor interaction',\n interaction_name: 'select product',\n ecommerce: {\n currencyCode: locale.currentCurrency,\n click: {\n products: [\n {\n ...getProductData(product),\n dimension14: title,\n position,\n list: `${pageType} - ${title}`,\n },\n ],\n },\n },\n });\n } catch (error) {\n console.error(error);\n }\n}\n","import Siema from 'siema';\nimport { filter } from 'lodash';\nimport mediaQueries, { getMinSizeByBreakpoint } from 'app/utils/mediaQueries';\nimport { mountAnalytics } from 'app/analytics/productCarouselAnalytics';\n\nexport const SMALL_BREAKPOINT = 'small-only';\nexport const MEDIUM_BREAKPOINT = 'medium';\nexport const LARGE_BREAKPOINT = 'large';\n\nexport const getActualScreenSize = () => {\n if (mediaQueries.is_large_up()) {\n return LARGE_BREAKPOINT;\n }\n\n if (mediaQueries.is_medium_only()) {\n return MEDIUM_BREAKPOINT;\n }\n\n return SMALL_BREAKPOINT;\n};\n\nexport const updateArrows = (mySiema, slidesPerPage) => {\n const firstSlideIndex = 0;\n const currentSlide = mySiema.currentSlide || 0;\n mySiema.prevArrow.disabled = firstSlideIndex === currentSlide;\n mySiema.nextArrow.disabled = currentSlide + slidesPerPage === mySiema.innerElements.length;\n};\n\nconst DEFAULT_CAROUSEL_SELECTOR = '.product-carousel-standard';\nconst slidesPerSmallPage = 1;\nconst slidesPerMediumPage = 3;\nconst slidesPerLargeUpPage = 4;\n\nconst slidesPerPageSizeDefault = {\n [SMALL_BREAKPOINT]: slidesPerSmallPage,\n [MEDIUM_BREAKPOINT]: slidesPerMediumPage,\n [LARGE_BREAKPOINT]: slidesPerLargeUpPage,\n};\n\nconst replaceImgSrcWithAltImg = event => {\n const pictureSources = event.currentTarget.children[0].children;\n\n for (let i = 0; i < pictureSources.length; i++) {\n const source = pictureSources[i];\n const mainImageSource = source.getAttribute('src') || source.getAttribute('srcset');\n const mainImageUrl = new URL(`https:${mainImageSource}`);\n const altImage = source.getAttribute('dataaltimage');\n\n if (!altImage) {\n break;\n }\n\n const mainImageRegExp = new RegExp(`//${mainImageUrl.hostname}${mainImageUrl.pathname}`, 'g');\n\n if (source.getAttribute('src')) {\n source.setAttribute('src', source.getAttribute('src').replace(mainImageRegExp, altImage));\n }\n\n source.setAttribute('srcset', source.getAttribute('srcset').replace(mainImageRegExp, altImage));\n source.setAttribute('dataaltimage', `//${mainImageUrl.hostname}${mainImageUrl.pathname}`);\n }\n};\n\nexport function addArrowsDefault(siema) {\n siema.prevArrow = document.createElement('button');\n siema.nextArrow = document.createElement('button');\n siema.prevArrow.setAttribute('aria-label', 'previous');\n siema.prevArrow.classList.add('product-carousel__prev');\n siema.nextArrow.setAttribute('aria-label', 'next');\n siema.nextArrow.classList.add('product-carousel__next');\n siema.selector.appendChild(siema.prevArrow);\n siema.selector.appendChild(siema.nextArrow);\n siema.prevArrow.addEventListener('click', () => siema.prev());\n siema.nextArrow.addEventListener('click', () => siema.next());\n}\n\nfunction configurePaginationDefault(siema) {\n const ul = document.createElement('ul');\n const nrOfSlidesPerPage = slidesPerPageSizeDefault[getActualScreenSize()];\n const nrOfDots = siema.innerElements.length - nrOfSlidesPerPage + 1;\n const slickDots = siema.selector.querySelector('.product-carousel__dots');\n if (slickDots) {\n slickDots.parentNode.removeChild(slickDots);\n }\n ul.classList.add('product-carousel__dots');\n siema.selector.appendChild(ul);\n if (nrOfDots === 1) {\n return;\n }\n for (let i = 0; i < nrOfDots; i++) {\n const li = document.createElement('li');\n const button = document.createElement('button');\n button.setAttribute('aria-label', 'Carousel pagination button');\n button.setAttribute('type', 'button');\n button.addEventListener('click', () => siema.goTo(i));\n li.appendChild(button);\n ul.appendChild(li);\n }\n if (ul.children[siema.currentSlide]) {\n ul.children[siema.currentSlide].classList.add('active');\n }\n}\n\nconst handleChangeDefault = (mySiema, carousel) => {\n updateArrows(mySiema, slidesPerPageSizeDefault[getActualScreenSize()]);\n\n const carouselDots = carousel.querySelector('.product-carousel__dots');\n if (!carouselDots || !carouselDots.children) {\n return;\n }\n\n const currentSlide = mySiema.currentSlide || 0;\n [].forEach.call(carouselDots.children, (element, index) => {\n if (index === currentSlide) {\n element.classList.add('active');\n return;\n }\n element.classList.remove('active');\n });\n};\n\nexport function initProductCarousels({\n selector = DEFAULT_CAROUSEL_SELECTOR,\n currentSlides = [],\n reinitializeAll = false,\n slidesPerPage = slidesPerPageSizeDefault[getActualScreenSize()],\n perPage = {\n [getMinSizeByBreakpoint(SMALL_BREAKPOINT)]: slidesPerSmallPage,\n [getMinSizeByBreakpoint(MEDIUM_BREAKPOINT)]: slidesPerMediumPage,\n [getMinSizeByBreakpoint(LARGE_BREAKPOINT)]: slidesPerLargeUpPage,\n },\n addPagination = configurePaginationDefault,\n onChange = handleChangeDefault,\n addArrows = addArrowsDefault,\n} = {}) {\n let carousels = document.querySelectorAll(selector);\n const carouselClones = [];\n const siemaCarousels = [];\n\n // Note:\n // Every independent carousel component is calling this productCarousel.js function\n // the problem is that this file initializes all carousels in the page, so\n // every carousel initializes all carousels multiple times, that generates different errors\n // see: HYB-1986, this needs to be refactorized so every carousel acts independently,\n // maybe by passing a carousel html element to intialize.\n // by now this does the trick, but it feels wrong:\n if (!reinitializeAll) {\n // on a simple initialize remove carousels already initialized HYB-1986\n carousels = filter(carousels, carousel => !carousel.classList.contains('initialized'));\n }\n\n return (() => {\n for (let idx = 0; idx < carousels.length; idx++) {\n let carousel = carousels[idx];\n const firstSlideIndex = 0;\n const isDraggable = carousel.children.length > slidesPerPage;\n\n if (!carouselClones[idx]) {\n carouselClones[idx] = carousel.cloneNode(true);\n } else {\n const carouselParent = carousel.parentNode;\n carouselParent.removeChild(carousel);\n carousel = carouselClones[idx].cloneNode(true);\n carouselParent.appendChild(carousel);\n }\n\n const disableSingleArrow = siema => {\n const hidePrevArrow = siema.selector.lastChild.firstChild?.classList?.contains('active') || false;\n const hideNextArrow = siema.selector.lastChild.lastChild?.classList?.contains('active') || false;\n if (hidePrevArrow) {\n siema.prevArrow.disabled = true;\n }\n if (hideNextArrow) {\n siema.nextArrow.disabled = true;\n }\n };\n\n const disableArrows = siema => {\n if (siema.nextArrow && siema.prevArrow) {\n siema.nextArrow.disabled = true;\n siema.prevArrow.disabled = true;\n }\n };\n\n const initArrowsAndPagination = siema => {\n addArrows(siema);\n addPagination(siema);\n };\n\n const mySiema = new Siema({\n selector: carousel,\n duration: 300,\n easing: 'linear',\n draggable: isDraggable,\n loop: false,\n perPage,\n onChange: () => onChange(mySiema, carousel),\n onInit() {\n initArrowsAndPagination(this);\n },\n });\n\n carousel.classList.add('initialized');\n const currentSlide = currentSlides[idx] || 0;\n mySiema.goTo(currentSlide);\n if (mySiema.prevArrow && mySiema.nextArrow) {\n mySiema.prevArrow.disabled = firstSlideIndex === currentSlide;\n mySiema.nextArrow.disabled =\n slidesPerPage >= mySiema.innerElements.length ||\n currentSlide === mySiema.innerElements.length - slidesPerPage;\n }\n\n window.addEventListener('resize', () => {\n initArrowsAndPagination(mySiema);\n const slidesCount = mySiema.innerElements.length;\n const screenSize = getActualScreenSize();\n if (slidesCount >= slidesPerLargeUpPage) {\n return screenSize === LARGE_BREAKPOINT && slidesCount === slidesPerLargeUpPage\n ? disableArrows(mySiema)\n : disableSingleArrow(mySiema);\n }\n if (slidesCount > slidesPerSmallPage && slidesCount <= slidesPerMediumPage) {\n return screenSize !== SMALL_BREAKPOINT ? disableArrows(mySiema) : disableSingleArrow(mySiema);\n }\n return disableArrows(mySiema);\n });\n\n siemaCarousels.push(mySiema);\n\n [].forEach.call(document.querySelectorAll(`${selector} .product-carousel__image-container`), element => {\n element.addEventListener('mouseover', replaceImgSrcWithAltImg);\n element.addEventListener('mouseout', replaceImgSrcWithAltImg);\n });\n }\n mountAnalytics();\n })();\n}\n","export const REMOVE_FOOTER_INVISIBILITY = 'REMOVE_FOOTER_INVISIBILITY';\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst Button = ({ buttonClassName, buttonOnClick, buttonText, isDisabled }) => (\n <button\n disabled={isDisabled}\n type=\"submit\"\n className={`button ${buttonClassName || ''} ${isDisabled ? 'disabled' : ''}`}\n onClick={buttonOnClick}\n >\n <span>{buttonText}</span>\n </button>\n);\n\nButton.defaultProps = {\n buttonClassName: '',\n buttonOnClick: null,\n isDisabled: false,\n};\n\nButton.propTypes = {\n buttonText: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,\n buttonClassName: PropTypes.string,\n buttonOnClick: PropTypes.func,\n isDisabled: PropTypes.bool,\n};\n\nexport default Button;\n","import { connect } from 'formik';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormattedMessage } from 'react-intl';\nimport Label from 'app/commonComponents/atoms/label';\nimport Field from 'app/commonComponents/atoms/input';\n\nconst Checkbox = ({\n checkboxName,\n checkboxClass,\n checkboxLabelClass,\n checkboxInputClass,\n checkboxLabel,\n checkboxLabelId,\n checkboxOnChange,\n formik: { handleChange, values, errors },\n ...props\n}) => (\n <Label htmlFor={checkboxName} className={checkboxClass || ''}>\n <span className=\"form-checkbox\">\n <Field\n type=\"checkbox\"\n name={checkboxName}\n id={checkboxName}\n className={`form-checkbox__input ${checkboxInputClass || ''}`}\n checked={values[checkboxName] || false}\n onChange={checkboxOnChange || handleChange}\n {...props}\n />\n <span className={`form-checkbox__checkbox ${errors[checkboxName] ? 'form-checkbox__highlight-error' : ''}`} />\n </span>\n <span className={`form-checkbox__label ${checkboxLabelClass || ''}`}>\n {checkboxLabel || <FormattedMessage id={checkboxLabelId} />}\n </span>\n </Label>\n);\n\nCheckbox.defaultProps = {\n checkboxClass: '',\n checkboxLabelClass: '',\n checkboxLabelId: '',\n checkboxLabel: '',\n checkboxInputClass: '',\n checkboxOnChange: null,\n};\n\nCheckbox.propTypes = {\n checkboxName: PropTypes.string.isRequired,\n checkboxClass: PropTypes.string,\n checkboxLabelClass: PropTypes.string,\n checkboxLabelId: PropTypes.string,\n checkboxLabel: PropTypes.string,\n checkboxInputClass: PropTypes.string,\n checkboxOnChange: PropTypes.func,\n formik: PropTypes.object.isRequired,\n};\n\nexport default connect(Checkbox);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { ErrorMessage as Message } from 'formik';\n\nfunction ErrorMessage({ ...props }) {\n return <Message component=\"span\" className=\"form-msg-error\" role=\"alert\" {...props} />;\n}\n\nErrorMessage.propTypes = {\n name: PropTypes.string.isRequired,\n};\n\nexport default ErrorMessage;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { handleErrorClass } from 'app/formComponents/formComponentsUtils';\nimport { Field, connect } from 'formik';\nimport { pick } from 'lodash';\nimport { formConnect, getErrorMsgsInEnglish } from 'app/formComponents/formikHOC';\nimport { dlTrackFormFields, dlTrackFormSubmit } from 'app/analytics/formsAnalytics';\n\nlet isValueChangedBeforeBlur = false;\n\nfunction Input({\n formik: { errors, touched, validateForm, handleBlur, handleChange, setFieldValue, ...settings },\n formContext: { formName, validations },\n className,\n name,\n onChange: customOnChange,\n onBlur: customOnBlur,\n onClick,\n ...props\n}) {\n function onChange(e) {\n isValueChangedBeforeBlur = true;\n if (customOnChange) {\n customOnChange(e);\n } else {\n handleChange(e);\n }\n }\n\n function onBlur(e) {\n e.persist();\n if (isValueChangedBeforeBlur) {\n validateForm().then(currentErrors => {\n if (currentErrors[name]) {\n dlTrackFormSubmit({\n errorMsgs: pick(getErrorMsgsInEnglish(validations, currentErrors), [name]),\n formName,\n });\n } else {\n dlTrackFormFields({\n formName,\n formField: name,\n });\n }\n if (!customOnBlur) {\n handleBlur(e);\n }\n });\n }\n\n if (customOnBlur) {\n customOnBlur(e);\n }\n\n isValueChangedBeforeBlur = false;\n }\n\n function clickHandler() {\n if (onClick) onClick(settings);\n }\n\n return (\n <Field\n className={`${className} ${handleErrorClass({ errors, touched }, name)}`}\n name={name}\n onChange={onChange}\n onBlur={onBlur}\n onClick={clickHandler}\n {...props}\n />\n );\n}\n\nInput.defaultProps = {\n className: '',\n formik: {},\n name: '',\n};\n\nInput.propTypes = {\n formik: PropTypes.object,\n className: PropTypes.string,\n name: PropTypes.string,\n};\n\nexport default connect(formConnect(Input));\n","import { createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { handleErrorClass } from 'app/formComponents/formComponentsUtils';\nimport { connect } from 'formik';\nimport { formConnect } from 'app/formComponents/formikHOC';\nimport { listify } from 'app/utils/helpers';\n\nfunction Label({\n formik: { errors, touched },\n formContext: { requiredFields = [] },\n htmlFor,\n children,\n className,\n type,\n}) {\n // eslint-disable-next-line react/no-children-prop\n return createElement(type, {\n className: `${className}\n ${\n listify(htmlFor)\n .map(inputName => handleErrorClass({ errors, touched }, inputName))\n .find(value => value) || ''\n }\n ${listify(htmlFor).find(inputName => requiredFields.includes(inputName)) ? 'form-input__label--required' : ''}`,\n htmlFor: type === 'label' ? htmlFor : null,\n children,\n });\n}\n\nLabel.defaultProps = {\n type: 'label',\n formik: null,\n htmlFor: '',\n children: null,\n className: '',\n};\n\nLabel.propTypes = {\n formik: PropTypes.object,\n htmlFor: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\n children: PropTypes.oneOfType([\n PropTypes.array,\n PropTypes.element,\n PropTypes.string,\n PropTypes.object,\n PropTypes.node,\n ]),\n className: PropTypes.string,\n formContext: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object]))\n .isRequired,\n type: PropTypes.string,\n};\n\nexport default connect(formConnect(Label));\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { FormattedMessage, injectIntl } from 'react-intl';\nimport { isEscPressed } from 'app/utils/accessibility/accessibilityUtils';\nimport TrapFocus from 'app/utils/accessibility/trapFocus';\nimport './modal.scss';\n\nclass ModalWrapper extends Component {\n constructor() {\n super();\n\n this.htmlElement = document.querySelector('html');\n this.handleBackgroundClick = this.handleBackgroundClick.bind(this);\n this.handleCloseOnEsc = this.handleCloseOnEsc.bind(this);\n this.modalBackdropRef = React.createRef();\n }\n\n componentDidUpdate(prevProps) {\n const { isModalOpen, isWithinSticky } = this.props;\n if (isModalOpen !== prevProps.isModalOpen) {\n if (isModalOpen) {\n this.htmlElement.classList.add('modal-is-opened');\n } else {\n this.htmlElement.classList.remove('modal-is-opened');\n }\n\n if (isModalOpen && isWithinSticky) {\n this.htmlElement.classList.add('modal-is-opened-within-sticky');\n } else {\n this.htmlElement.classList.remove('modal-is-opened-within-sticky');\n }\n }\n\n if (isModalOpen) {\n document.addEventListener('keydown', this.handleCloseOnEsc);\n const modalBackdrop = this.modalBackdropRef.current;\n modalBackdrop.addEventListener('click', this.handleBackgroundClick);\n }\n }\n\n getContent() {\n const { children, isHTMLContent } = this.props;\n\n if (isHTMLContent) {\n return <div dangerouslySetInnerHTML={{ __html: children }} />;\n }\n return children;\n }\n\n getTitle() {\n const { titleMsg, titleMsgID, titleMsgHTML } = this.props;\n\n let result;\n if (titleMsg) {\n result = <h2>{titleMsg}</h2>;\n } else if (titleMsgID) {\n result = (\n <h2>\n <FormattedMessage id={titleMsgID} />\n </h2>\n );\n } else if (titleMsgHTML) {\n result = <h2 dangerouslySetInnerHTML={{ __html: titleMsgHTML }} />;\n }\n\n return result ? (\n <div id=\"modal__window-heading\" className=\"modal__window-heading\">\n {result}\n </div>\n ) : null;\n }\n\n handleCloseOnEsc(e) {\n const { modalToggle, isModalOpen } = this.props;\n if (isEscPressed(e) && isModalOpen) {\n modalToggle();\n document.removeEventListener('keydown', this.handleCloseOnEsc);\n }\n }\n\n handleBackgroundClick(e) {\n const { modalToggle } = this.props;\n\n if (e.target === e.currentTarget) {\n modalToggle();\n }\n }\n\n render() {\n const { maxWidth, customParentClass, isModalOpen, modalToggle, isCloseOutside, isForbidClose, intl } = this.props;\n\n if (isModalOpen === false) {\n return null;\n }\n\n const closeButton = (\n <button\n type=\"button\"\n className=\"modal__window-close icon-close\"\n onClick={() => modalToggle()}\n aria-label={intl.formatMessage({ id: 'header.modal.close' })}\n />\n );\n const title = this.getTitle();\n const a11yAttrs = {\n role: 'dialog',\n 'aria-modal': true,\n };\n if (title) {\n a11yAttrs['aria-labelledby'] = 'modal__window-heading';\n }\n\n return (\n <TrapFocus enabled={isModalOpen}>\n <div className=\"modal__backdrop\" ref={this.modalBackdropRef}>\n {!isForbidClose && isCloseOutside && closeButton}\n <div {...a11yAttrs} className={`modal__window modal__window-size--${maxWidth} ${customParentClass}`}>\n {!isForbidClose && !isCloseOutside && closeButton}\n {title}\n <div className=\"modal__window-container\">{this.getContent()}</div>\n </div>\n </div>\n </TrapFocus>\n );\n }\n}\n\nModalWrapper.defaultProps = {\n isHTMLContent: false,\n titleMsg: '',\n titleMsgID: '',\n titleMsgHTML: '',\n isCloseOutside: false,\n isWithinSticky: false,\n isForbidClose: false,\n maxWidth: 500,\n customParentClass: '',\n};\n\nModalWrapper.propTypes = {\n isModalOpen: PropTypes.bool.isRequired,\n modalToggle: PropTypes.func.isRequired,\n isForbidClose: PropTypes.bool,\n customParentClass: PropTypes.string,\n maxWidth: PropTypes.number,\n children: PropTypes.oneOfType([\n PropTypes.array,\n PropTypes.element,\n PropTypes.string,\n PropTypes.object,\n PropTypes.node,\n ]).isRequired,\n isHTMLContent: PropTypes.bool,\n titleMsg: PropTypes.string,\n titleMsgID: PropTypes.string,\n titleMsgHTML: PropTypes.string,\n isCloseOutside: PropTypes.bool,\n isWithinSticky: PropTypes.bool,\n};\n\nexport default injectIntl(ModalWrapper);\n","export const ANIMATION_TIME = 600;\nexport const TIME_FOR_CLOSING_KEYBOARD = 500;\n","import { isEmpty, pickBy } from 'lodash';\nimport {\n ajaxRequest,\n replaceKeyName,\n scrollToPosition,\n isElementVisible,\n getElementPosition,\n getElementHeightNoPadding,\n} from 'app/utils/helpers';\nimport { ANIMATION_TIME } from './formComponentsConstants';\n\nconst { getAddressData, validatePostcodeData } = window.inlineGlobalConfig;\n\nconst defaultScrollGutter = 20;\nexport const scrollToError = (containerSelector, extraGutter = defaultScrollGutter) => {\n const container = document.querySelector(containerSelector);\n const firstErrorInput = [...container.querySelectorAll('._is-error')].find(el => isElementVisible(el));\n\n if (!firstErrorInput) return;\n\n const elementScrollTo = firstErrorInput.length > 0 ? firstErrorInput : container;\n const stickyHeader = getElementHeightNoPadding(document.querySelector('.header.header--fixed')) + extraGutter;\n const scrollTop = getElementPosition(elementScrollTo) - stickyHeader;\n scrollToPosition(scrollTop, ANIMATION_TIME);\n};\n\nexport const scrollToEl = (element, extraGutter = defaultScrollGutter) => {\n const container = typeof element === 'string' ? document.querySelector(element) : element;\n const stickyHeader = getElementHeightNoPadding(document.querySelector('.header.header--fixed')) + extraGutter;\n const scrollTop = getElementPosition(container) - stickyHeader;\n scrollToPosition(scrollTop, ANIMATION_TIME);\n};\n\n// TODO remove usage of this function. replace with utils.getQASAddressDetails()\nexport const getValidAddressDetails = (stringAddress, values, setValues, updateState) => {\n if (stringAddress !== null) {\n ajaxRequest('POST', getAddressData, { addressId: stringAddress.id }).then(addressDataResponse => {\n const formValuesForReplacement = pickBy(\n replaceKeyName(addressDataResponse, 'town', 'city'),\n (value, key) => value !== null && values[key] !== undefined\n );\n setValues(Object.assign({}, values, formValuesForReplacement));\n\n updateState({\n selectedRegion: formValuesForReplacement.region,\n });\n });\n }\n};\n\nexport const validatePostcode = (formData, updateState) => {\n const postcodeFormLabel = document.querySelector('label[for=postalCode]');\n const postcodeFormField = document.querySelector('input[name=postalCode]');\n const incorrectPostcodeErrorMsg = document.querySelector('.address-form__incorrect-postcode-error');\n\n const postcodeError = () => {\n postcodeFormLabel.classList.remove('_is-error');\n postcodeFormField.classList.remove('_is-error');\n incorrectPostcodeErrorMsg.classList.remove('display-block');\n };\n\n postcodeFormField.removeEventListener('keydown', postcodeError);\n\n ajaxRequest('POST', validatePostcodeData, formData).then(validationResponse => {\n if (validationResponse.length > 0 && !isEmpty(validationResponse[0].id)) {\n updateState({\n postcodeEntries: validationResponse,\n showPostcodeSelectAddress: true,\n });\n } else if (validationResponse.length === 1 && isEmpty(validationResponse[0].id)) {\n postcodeFormLabel.classList.add('_is-error');\n postcodeFormField.classList.add('_is-error');\n incorrectPostcodeErrorMsg.classList.add('display-block');\n postcodeFormField.addEventListener('keydown', postcodeError);\n }\n });\n};\n\nexport const handleErrorClass = ({ errors, touched }, fieldName) =>\n errors[fieldName] && touched[fieldName] ? '_is-error' : '';\n\nexport const getFieldErrorMessage = ({ errors, touched }, fieldName) => touched[fieldName] && errors[fieldName];\n\nexport const validateBy = (validationProcessor, errorsPopulator, validationRules) => values => {\n Object.entries(values).forEach(([key, value]) => {\n validationProcessor.validate(key, value, {}, values);\n });\n const getAllErrors = errorsPopulator.getAll(Object.keys(values));\n return Object.entries(getAllErrors)\n .filter(([key]) => (validationRules.rules[key] && validationRules.rules[key].required) || !isEmpty(values[key]))\n .reduce(\n (acc, [key, value]) => Object.assign({}, acc, Object.values(value)[0] ? { [key]: Object.values(value)[0] } : {}),\n {}\n );\n};\n\nexport const getRequiredFields = validationRules =>\n Object.entries(validationRules)\n .filter(rule => rule[1].required)\n .map(([title]) => title);\n","import React, { Component, createContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { withFormik } from 'formik';\nimport { get } from 'lodash';\nimport { dlTrackFormSubmit } from 'app/analytics/formsAnalytics';\n\nconst FormContext = createContext(null);\n\nexport const formConnect = WrappedComponent => props =>\n (\n <FormContext.Consumer>\n {formContext => <WrappedComponent formContext={formContext} {...props} />}\n </FormContext.Consumer>\n );\n\nexport default function formsHOC({ mapPropsToValues, validate, validations, formName, requiredFields }) {\n return WrappedComponent => {\n const formikHOC = withFormik({\n mapPropsToValues,\n validate,\n handleSubmit() {},\n });\n\n class FormikWrapper extends Component {\n constructor() {\n super();\n\n this.submitForm = this.submitForm.bind(this);\n }\n\n submitForm() {\n const { submitForm } = this.props;\n return submitForm().then(() => {\n const { errors, values } = this.props;\n dlTrackFormSubmit({\n errorMsgs: getErrorMsgsInEnglish(validations, errors),\n formName,\n });\n return { errors, values };\n });\n }\n\n render() {\n return (\n <FormContext.Provider\n value={{\n formName,\n requiredFields,\n validations,\n }}\n >\n <WrappedComponent {...this.props} formName={formName} submitForm={this.submitForm} />\n </FormContext.Provider>\n );\n }\n }\n\n FormikWrapper.propTypes = {\n submitForm: PropTypes.func.isRequired,\n errors: PropTypes.objectOf(PropTypes.string).isRequired,\n values: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool])).isRequired,\n };\n\n return formikHOC(FormikWrapper);\n };\n}\n\nexport function getErrorMsgsInEnglish(validation, errors) {\n const { messages, messagesEn } = validation;\n const enErrors = {};\n Object.keys(errors).forEach(key => {\n enErrors[key] = get(messagesEn, getPathOfValue(messages, errors[key]));\n });\n return enErrors;\n}\n\nfunction getPathOfValue(obj, value) {\n let isPathFound = false;\n\n function findPath(innerObj, innerValue) {\n return Object.keys(innerObj).reduce((acc, currentKey) => {\n let pathOfValue = '';\n if (!isPathFound) {\n if (innerObj[currentKey] === innerValue) {\n pathOfValue = currentKey;\n isPathFound = true;\n } else if (typeof innerObj[currentKey] === 'object') {\n const currentPath = findPath(innerObj[currentKey], innerValue);\n pathOfValue = currentPath ? `${currentKey}.${currentPath}` : '';\n }\n }\n return acc && pathOfValue ? `${acc}.${pathOfValue}` : pathOfValue || acc;\n }, '');\n }\n\n return findPath(obj, value);\n}\n","export const TOGGLE_PASSWORD_TYPE = 'TOGGLE_PASSWORD_TYPE';\n","import { TOGGLE_PASSWORD_TYPE } from './passwordTextInputConstants';\n\nconst PasswordTextInputReducer = (state = {}, action) => {\n switch (action.type) {\n case TOGGLE_PASSWORD_TYPE:\n return {\n ...state,\n [action.typeKey]: action.isPassword,\n };\n default:\n return state;\n }\n};\n\nexport default PasswordTextInputReducer;\n","import { isPlainObject, isString } from 'lodash';\nimport { saveStorageData } from 'app/utils/localStorage/localStorage';\nimport { SESSION_STORAGE } from 'app/utils/localStorage/localStorageConstants';\nimport {\n TYPE_ERROR,\n TYPE_SUCCESS,\n TYPE_WARNING,\n SHOW_MESSAGE_EVENT,\n HIDE_MESSAGE_EVENT,\n FLASH_MESSAGES_STORAGE,\n TYPE_DELIVERY_THRESHOLD,\n} from './globalMessagesConstants';\nimport { getGlobalMessagesRoot, isServiceActive } from './globalMessagesUtils';\n\n/*\n TODO Method candidates:\n showStickyMessage\n method to scrollToTop and show message\n */\n\nexport function showMessage(messageDescriptor) {\n if (isServiceActive()) {\n getGlobalMessagesRoot().dispatchEvent(new CustomEvent(SHOW_MESSAGE_EVENT, { detail: messageDescriptor }));\n } else {\n saveStorageData(FLASH_MESSAGES_STORAGE, messageDescriptor, SESSION_STORAGE);\n }\n}\n\nexport function hideMessage() {\n getGlobalMessagesRoot().dispatchEvent(new CustomEvent(HIDE_MESSAGE_EVENT, {}));\n}\n\nexport function showSuccess(messageDescriptor) {\n showMessage({ ...messageDescriptor, type: TYPE_SUCCESS });\n}\n\nexport function showWarning(messageDescriptor) {\n showMessage({ ...messageDescriptor, type: TYPE_WARNING });\n}\n\nexport function showError(messageDescriptor) {\n showMessage({ ...messageDescriptor, type: TYPE_ERROR });\n}\n\n// thresholdAttrs = autoHide, displayTime, sticky, customColor, message\nexport function showDeliveryThreshold(thresholdAttrs) {\n const messageDescriptor = createMessageDescriptor(thresholdAttrs.message, TYPE_DELIVERY_THRESHOLD, thresholdAttrs);\n showMessage({ ...messageDescriptor, type: TYPE_DELIVERY_THRESHOLD });\n}\n\nexport function flashMessage(message, type) {\n const messageDescriptor = createMessageDescriptor(message, type);\n saveStorageData(FLASH_MESSAGES_STORAGE, messageDescriptor, SESSION_STORAGE);\n}\n\nexport function flashSuccessMessage(message) {\n flashMessage(message, TYPE_SUCCESS);\n}\n\nexport function flashWarningMessage(message) {\n flashMessage(message, TYPE_WARNING);\n}\n\nexport function flashErrorMessage(message) {\n flashMessage(message, TYPE_ERROR);\n}\n\nfunction createMessageDescriptor(message, type, attrs = {}) {\n if (!message || !type) {\n throw new Error('Missing mandatory arguments: \"message\" or \"type\"');\n }\n if (type === TYPE_DELIVERY_THRESHOLD) {\n return {\n ...attrs,\n type,\n };\n }\n if (isString(message)) {\n return {\n messageId: message,\n type,\n sticky: true, // TODO On My Account messages should not be sticky\n };\n }\n if (isPlainObject(message)) {\n return {\n sticky: true,\n ...message,\n type,\n };\n }\n throw new Error('Could not create the message descriptor');\n}\n","export const TYPE_ERROR = 'alert';\nexport const TYPE_SUCCESS = 'success';\nexport const TYPE_WARNING = 'warning';\nexport const TYPE_DELIVERY_THRESHOLD = 'delivery';\n\nexport const MAX_DISPLAY_TIME = 5;\n\nexport const DEFAULT_ERROR_MSG = 'error.default.error.message';\n\nexport const FLASH_MESSAGES_STORAGE = 'FLASH_MESSAGES_STORAGE';\nexport const NOTIFICATIONS_SERVICE = 'NOTIFICATIONS_SERVICE';\nexport const STATUS_ACTIVE = 'STATUS_ACTIVE';\n\nexport const SHOW_MESSAGE_EVENT = 'showMessage';\nexport const HIDE_MESSAGE_EVENT = 'hideMessage';\n\nexport const HIGHEST_MESSAGE_PRIORITY = 1;\nexport const LOWEST_MESSAGE_PRIORITY = 10;\n","import { popStorageData, saveStorageData, getStorageData } from 'app/utils/localStorage/localStorage';\nimport { SESSION_STORAGE } from 'app/utils/localStorage/localStorageConstants';\nimport {\n FLASH_MESSAGES_STORAGE,\n HIGHEST_MESSAGE_PRIORITY,\n NOTIFICATIONS_SERVICE,\n STATUS_ACTIVE,\n} from './globalMessagesConstants';\n\nexport function getGlobalMessagesRoot() {\n return document.getElementById('globalMessages');\n}\n\nexport function getFlashStorageRecord() {\n return popStorageData(FLASH_MESSAGES_STORAGE, SESSION_STORAGE);\n}\n\nexport function getMessagePriority(descriptor) {\n return descriptor.priority || HIGHEST_MESSAGE_PRIORITY;\n}\n\nexport function onServiceStart() {\n saveStorageData(NOTIFICATIONS_SERVICE, STATUS_ACTIVE, SESSION_STORAGE);\n}\n\nexport function onServiceStop() {\n popStorageData(NOTIFICATIONS_SERVICE, SESSION_STORAGE);\n}\n\nexport function isServiceActive() {\n return !!getStorageData(NOTIFICATIONS_SERVICE, SESSION_STORAGE);\n}\n\nexport function getPageSpecificOptions(pageType) {\n const options = {};\n switch (pageType) {\n case 'product-list':\n options.headerSelector = 'header, .header__promo, .product-list__product-filter';\n options.stickyClass = 'is-sticky--plp-fixed';\n break;\n case 'checkout':\n options.headerSelector = '.checkout-wrapper > .row';\n options.stickyClass = 'is-sticky--checkout-fixed';\n break;\n default:\n options.headerSelector = '.header__promo';\n }\n return options;\n}\n","export const RECEIVE_MINI_CART = 'RECEIVE_MINI_CART';\nexport const MINI_CART_IS_FETCHING = 'MINI_CART_IS_FETCHING';\n\nexport const MINI_CART_ROOT_ELEMENT = document.getElementById('mini-cart');\nexport const TRANSFER_MINI_CART_ADD = 'TRANSFER_MINI_CART_ADD';\nexport const TRANSFER_MINI_CART_REMOVE = 'TRANSFER_MINI_CART_REMOVE';\n","export const RECEIVE_MINI_WISHLIST = 'RECEIVE_MINI_WISHLIST';\nexport const MINI_WISHLIST_IS_FETCHING = 'MINI_WISHLIST_IS_FETCHING';\n\nexport const MINI_WISHLIST_ROOT_ELEMENT = document.getElementById('mini-wishlist');\nexport const TRANSFER_MINI_WISHLIST_ADD = 'TRANSFER_MINI_WISHLIST_ADD';\nexport const TRANSFER_MINI_WISHLIST_REMOVE = 'TRANSFER_MINI_WISHLIST_REMOVE';\n","export const DETAILS_LOADED = 'DETAILS_LOADED';\nexport const ADD_TO_COLLECTION = 'ADD_TO_COLLECTION';\nexport const SIZE_SELECTED = 'SIZE_SELECTED';\nexport const SIZE_DESELECTED = 'SIZE_DESELECTED';\nexport const UPDATE_IN_WISHLIST_PRODUCTS = 'UPDATE_IN_WISHLIST_PRODUCTS';\nexport const PRODUCT_NOT_FOUND = 'PRODUCT_NOT_FOUND';\nexport const FETCH_USER_ENCODED_ID = 'FETCH_USER_ENCODED_ID';\n\n// Product types\nexport const STICKER = 'Sticker';\nexport const SHOE = 'Shoe';\nexport const LEISUREWEAR = 'Leisurewear';\nexport const SOCK = 'Sock';\nexport const CHARM = 'Charm';\n","const { imageBasePath, client } = window.inlineGlobalConfig;\n\nexport const IMAGE_SERVER_URL = `${imageBasePath}i/${client}/`;\n\nexport const buildSwatchMediaURL = mediaCode => `${IMAGE_SERVER_URL}${mediaCode}_swatch.jpg`;\n","import { isEmpty, findIndex, filter } from 'lodash';\nimport { buildSwatchMediaURL } from 'app/utils/imageServerUtils';\nimport { CHARM, STICKER } from './productDetailsConstants';\n\nconst { classificationGroupId } = window.inlineGlobalConfig;\n\nexport const findColorSwatches = classificationGroups => {\n const productGroup = classificationGroups.find(\n classificationGroup => classificationGroup.id === classificationGroupId\n );\n return productGroup && productGroup.classificationGroup ? productGroup.classificationGroup : [];\n};\n\nexport const getActualSwatch = (colorSwatches, actualColorId) =>\n !isEmpty(colorSwatches) || actualColorId ? [...colorSwatches].find(swatch => actualColorId === swatch.id) : {};\n\nexport const buildMediaURL = colorSwatches =>\n colorSwatches.map(swatch => ({\n ...swatch,\n mediaURL: swatch.swatchUrl ? swatch.swatchUrl : buildSwatchMediaURL(swatch.mediaCode),\n }));\n\nexport const getSizeData = data => {\n let sizeVariationIndex = -1;\n\n if (data.variationFields) {\n sizeVariationIndex = findIndex(data.variationFields, field => field.name === 'size');\n }\n\n return sizeVariationIndex >= 0\n ? data.skus.map(size => ({\n sku: size.id,\n name: size.variationValues[sizeVariationIndex].name,\n size: size.variationValues[sizeVariationIndex].value,\n dataLayerName: size.variationValues[sizeVariationIndex].dataLayerName,\n count: size.stock,\n hybrisSizeCode: size.variationValues[sizeVariationIndex].id,\n }))\n : [];\n};\n\nexport const isFullPrice = data => {\n if (!data) return false;\n const { classificationData } = data;\n const { value: clearanceStatus } = classificationData.entry.find(element => element.key === 'clearanceStatus');\n return clearanceStatus === 'Full Price' || clearanceStatus === '';\n};\n\nexport const isColourVariantFullPrice = data => {\n if (!data) return false;\n const { clearanceStatus } = data;\n return clearanceStatus === 'N';\n};\n\nexport const getStyleId = loadedProduct =>\n loadedProduct.classificationData.entry.find(e => e.key === 'styleCode').value;\n\nexport const getColorId = loadedProduct =>\n loadedProduct.classificationData.entry.find(e => e.key === 'colorCode').value;\n\nexport const isMultiVariantProduct = productType => productType !== CHARM && productType !== STICKER;\n\nexport const getClassificationProperty = (classificationData, propertyName) => {\n return (\n classificationData &&\n !isEmpty(classificationData.entry) &&\n filter(classificationData.entry, dataObject => dataObject.key === propertyName)[0].value\n );\n};\n\nexport const getClassificationPropertyDetailed = (classifications, propertyName) => {\n return classifications[0]?.features?.find(f => f.featureCode === propertyName)?.featureValues[0];\n};\n","export function isSpacePressed({ which }) {\n return which === 32;\n}\n\nexport function isEnterPressed({ which }) {\n return which === 13;\n}\n\nexport function isEscPressed({ which }) {\n return which === 27;\n}\n\nexport function isUpArrowPressed({ which }) {\n return which === 38;\n}\n\nexport function isDownArrowPressed({ which }) {\n return which === 40;\n}\n\nexport function isRightArrowPressed({ which }) {\n return which === 39;\n}\n\nexport function isLeftArrowPressed({ which }) {\n return which === 37;\n}\n\nexport function isTabPressed({ which }) {\n return which === 9;\n}\n\nexport function isUserTabbing() {\n return document.querySelector('body').classList.contains('user-is-tabbing');\n}\n\nexport function getFocusableElements(root = document) {\n return root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])');\n}\n","import React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { getFocusableElements } from './accessibilityUtils';\n\nconst TrapFocus = ({ enabled, children }) => {\n const trapRef = React.createRef();\n useEffect(() => {\n const focusable = getFocusableElements(trapRef.current.firstChild);\n const firstFocusable = focusable[0]; // eslint-disable-line\n const lastFocusable = focusable[focusable.length - 1];\n let currentFocus = firstFocusable;\n let scrollY = null;\n\n const onTrapFocus = e => {\n if (!trapRef.current) {\n return;\n }\n\n const elInsideFocusableParent = trapRef.current.firstChild.contains(e.target);\n if (!elInsideFocusableParent && enabled) {\n if (currentFocus === firstFocusable) {\n lastFocusable.focus();\n } else if (currentFocus === lastFocusable) {\n firstFocusable.focus();\n }\n } else {\n currentFocus = e.target;\n if (!scrollY) {\n scrollY = window.scrollY; // eslint-disable-line\n }\n }\n\n if (enabled && scrollY) {\n window.scrollTo(window.scrollX, scrollY);\n }\n };\n\n document.addEventListener('focus', onTrapFocus, true);\n\n return function cleanup() {\n document.removeEventListener('focus', onTrapFocus, true);\n };\n });\n\n return <div ref={trapRef}>{children}</div>;\n};\n\nTrapFocus.propTypes = {\n children: PropTypes.node.isRequired,\n enabled: PropTypes.bool.isRequired,\n};\n\nexport default TrapFocus;\n","import { isArray } from 'lodash';\n\nconst iterateThroughObject = (object = {}, callback) => {\n Object.entries(object).forEach(([key, value]) => {\n callback(key, value);\n });\n};\n\nconst ajaxFormQueryParams = data => {\n const bracketsRegEx = /\\[\\]$/;\n const query = [];\n\n const add = (key, value) => {\n let val;\n if (typeof value === 'function') {\n val = value();\n } else if (value === null || value === undefined) {\n val = '';\n } else {\n val = value;\n }\n query[query.length] = `${encodeURIComponent(key)}=${encodeURIComponent(val)}`;\n };\n\n const build = (prefix, obj) => {\n if (prefix) {\n if (isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n if (bracketsRegEx.test(prefix)) {\n add(prefix, obj[i]);\n } else {\n build(`${prefix}[${typeof obj[i] === 'object' ? i : ''}]`, obj[i]);\n }\n }\n } else if (obj && String(obj) === '[object Object]') {\n Object.entries(obj).forEach(([key, value]) => {\n build(`${prefix}[${key}]`, value);\n });\n } else {\n add(prefix, obj);\n }\n } else if (isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n add(obj[i].name, obj[i].value);\n }\n } else if (obj) {\n Object.entries(obj).forEach(([key, value]) => {\n build(key, value);\n });\n }\n\n return query;\n };\n\n return build('', data).join('&').replace(/%20/g, '+');\n};\n\nexport const customFetch = (\n method,\n url,\n formData,\n timeStampRequired = false,\n requestHeaders = {\n 'Content-type': 'application/x-www-form-urlencoded',\n 'X-Requested-With': 'XMLHttpRequest',\n }\n) =>\n new Promise(resolve => {\n const xhttp = new XMLHttpRequest();\n const params =\n requestHeaders['Content-type'] === 'application/json' ? JSON.stringify(formData) : ajaxFormQueryParams(formData);\n const requestUrl = method === 'GET' && params ? `${url}?${params}` : url;\n\n xhttp.open(method, timeStampRequired ? `${requestUrl}?t=${Date.now()}` : requestUrl, true);\n iterateThroughObject(requestHeaders, (key, value) => xhttp.setRequestHeader(key, value));\n xhttp.send(method === 'GET' ? undefined : params);\n\n resolve(xhttp);\n });\n\nexport const isJsonString = jsonString => {\n try {\n const o = JSON.parse(jsonString);\n return o && typeof o === 'object' && o !== null;\n } catch (e) {\n return false;\n }\n};\n\nexport const loadAsyncScript = url =>\n new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n document.head.appendChild(script);\n\n script.onload = () => {\n resolve(true);\n };\n\n script.onerror = () => {\n reject(new Error('Unable to load the script'));\n };\n });\n","import { curry, forEach } from 'lodash';\nimport { listify } from './helpers';\n\nexport const addClass = curry((className, els) => {\n forEach(listify(els), el => {\n if (className && el.className.indexOf(className) === -1) {\n el.className += el.className ? ` ${className}` : `${className}`; // eslint-disable-line\n }\n });\n return els;\n});\n\nexport const removeClass = curry((className, els) => {\n forEach(listify(els), el => {\n el.classList.remove(className);\n });\n return els;\n});\n\nexport const insertContent = curry((content, el) => {\n el.appendChild(content);\n return el;\n});\n\nexport const prependContent = curry((content, el) => {\n el.insertBefore(content, el.firstChild);\n return el;\n});\n\nexport const removeContent = curry((content, el) => {\n el.removeChild(content);\n return el;\n});\n\nconst nrOfParams = 3;\nexport const setAttribute = curry((attr, value, els) => {\n forEach(listify(els), el => {\n el.setAttribute(attr, value);\n });\n return els;\n}, nrOfParams);\n\nexport const removeAttribute = curry((attr, els) => {\n forEach(listify(els), el => {\n el.removeAttribute(attr);\n });\n return els;\n});\n\nexport const addStyle = curry((prop, value, el) => {\n const props = listify(prop);\n const values = listify(value);\n props.forEach((propName, index) => {\n el.style[propName] = values[index]; // eslint-disable-line\n });\n return el;\n}, nrOfParams);\n\nexport const removeStyle = curry((prop, el) => {\n el.style.removeProperty(prop);\n return el;\n});\n","const {\n freeDeliveryVisible,\n threshold,\n msgBelowThreshold,\n msgAboveThreshold,\n backgroundBelowThreshold,\n backgroundAboveThreshold,\n displaySeconds,\n} = window.inlineFreeDeliveryThreshold || {};\n\nexport const FREE_DELIVERY_VISIBLE = freeDeliveryVisible;\nexport const THRESHOLD = threshold;\nexport const ABOVE_THRESHOLD_MSG = msgAboveThreshold;\nexport const BELOW_THRESHOLD_BG = backgroundBelowThreshold || '#228B22';\nexport const ABOVE_THRESHOLD_BG = backgroundAboveThreshold || '#228B22';\nexport const DISPLAY_SECONDS = parseInt(displaySeconds, 10) || 5;\n\nconst CURRENCY_SYMBOL = {\n GBP: '£',\n CAD: 'C$',\n EUR: '€',\n USD: '$',\n};\n\nexport const getZeroPrice = ccy => {\n switch (ccy) {\n case ccy:\n return `${CURRENCY_SYMBOL[ccy]}0.00`;\n\n default:\n return `0.00`;\n }\n};\n\nconst PLACEHOLDER = '[CURRENT_DIFFERENCE] ';\nconst CODE_LENGTH = 3;\n\nexport const getBelowThresholdMsg = subTotal => {\n const placeholderLength = PLACEHOLDER.length;\n const startIndex = msgBelowThreshold.indexOf(PLACEHOLDER) + placeholderLength;\n const endIndex = startIndex + CODE_LENGTH;\n const currency = msgBelowThreshold.slice(startIndex, endIndex);\n\n return msgBelowThreshold.replace(\n `${PLACEHOLDER}${currency}`,\n `${CURRENCY_SYMBOL[currency]}${(threshold - subTotal).toFixed(2)}`\n );\n};\n","import { saveStorageData } from 'app/utils/localStorage/localStorage';\nimport { isEmpty } from 'lodash';\nimport { customFetch, isJsonString } from './ajaxHelpers';\nimport { REMOVE_FOOTER_INVISIBILITY } from '../cmscomponents/footer/footerConstants';\n\nconst { loggedUserInfoUrl, pageType, baseStoreUrl, locale } = window.inlineGlobalConfig;\n\nwindow.globalData = window.globalData || {};\n\nwindow.globalData.cartInfo =\n window.globalData.cartInfo ||\n (() => {\n let resolveCartInfoPromise = null;\n const data = new Promise(resolve => {\n resolveCartInfoPromise = resolve;\n });\n return {\n set(cartInfo) {\n resolveCartInfoPromise(cartInfo);\n },\n get() {\n return data;\n },\n };\n })();\n\nexport function setGlobalCartInfo(cartInfo) {\n window.globalData.cartInfo.set(cartInfo);\n return cartInfo;\n}\n\nexport function getGlobalCartInfo() {\n return window.globalData.cartInfo.get();\n}\n\n// TOOD: Refactor to merge with cartInfo\n// -----------------------------------------\nwindow.globalData.wishlistInfo =\n window.globalData.wishlistInfo ||\n (() => {\n let setInfo;\n return {\n set(wishlistInfo) {\n setInfo = wishlistInfo;\n },\n get() {\n return new Promise(resolve => {\n const intervalId = setInterval(() => {\n if (setInfo) {\n clearInterval(intervalId);\n resolve(setInfo);\n }\n }, 200);\n });\n },\n };\n })();\n\nexport function setGlobalWishlistInfo(wishlistInfo) {\n window.globalData.wishlistInfo.set(wishlistInfo);\n return Promise.resolve(wishlistInfo);\n}\n\nexport function getGlobalWishlistInfo() {\n return window.globalData.wishlistInfo.get();\n}\n// -----------------------------------------\n\nexport function getLoggedUserInfo() {\n if (!window.globalData.loggedUserInfo) {\n window.globalData.loggedUserInfo = customFetch('GET', `${loggedUserInfoUrl}&_=${Date.now()}`).then(\n xhttp =>\n new Promise((resolve, reject) => {\n /* eslint-disable no-param-reassign */\n xhttp.onload = () =>\n resolve(isJsonString(xhttp.responseText) ? JSON.parse(xhttp.responseText) : xhttp.responseText);\n xhttp.onerror = () => reject(xhttp.statusText);\n /* eslint-enable no-param-reassign */\n })\n );\n }\n return window.globalData.loggedUserInfo;\n}\n\nexport function isGuestUser() {\n return getLoggedUserInfo().then(userInfo => isEmpty(userInfo['userInfo/index'].username));\n}\n\nexport function getBaseStoreData() {\n if (!window.globalData.baseStoreData) {\n window.globalData.baseStoreData = customFetch('GET', baseStoreUrl).then(\n xhttp =>\n new Promise((resolve, reject) => {\n /* eslint-disable no-param-reassign */\n xhttp.onload = () =>\n resolve(isJsonString(xhttp.responseText) ? JSON.parse(xhttp.responseText) : xhttp.responseText);\n xhttp.onerror = () => reject(xhttp.statusText);\n /* eslint-enable no-param-reassign */\n })\n );\n }\n return window.globalData.baseStoreData;\n}\n\nexport function getCurrentStoreData() {\n return getBaseStoreData().then(baseStore =>\n baseStore.stores.find(store => store.uid === locale.country.toUpperCase())\n );\n}\n\nexport function displayFooter() {\n window.globalData.isFooterDisplayed = window.globalData.isFooterDisplayed || false;\n\n if (!window.globalData.isFooterDisplayed) {\n const footer = document.querySelector('.footer');\n\n if (footer) {\n footer.classList.remove('invisible');\n } else {\n saveStorageData(REMOVE_FOOTER_INVISIBILITY, 'true');\n }\n\n if (pageType === 'bag') {\n try {\n const $mediaBanner = document.querySelector('.cart__media-banner');\n if ($mediaBanner) {\n $mediaBanner.classList.remove('invisible');\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n window.globalData.isFooterDisplayed = true;\n }\n}\n\nexport function waitPageLoadAnalytics() {\n if (!window.globalData.isPageAnalyticsPushed) {\n window.globalData.isPageAnalyticsPushed = new Promise(resolve => {\n if (isPageLoadAnalyticsPushed()) {\n resolve();\n } else {\n setInterval(() => {\n if (isPageLoadAnalyticsPushed()) {\n resolve();\n }\n }, 200);\n }\n });\n }\n return window.globalData.isPageAnalyticsPushed;\n}\n\nfunction isPageLoadAnalyticsPushed() {\n for (let i = 0; i < window.dataLayer.length; i++) {\n if (window.dataLayer[i].ga_account) {\n return true;\n }\n }\n return false;\n}\n","import { isArrayLike } from 'lodash';\nimport mediaQueries from 'app/utils/mediaQueries';\nimport { PAYMENT_METHOD } from 'app/checkout/components/checkoutPayment/checkoutPaymentConstants';\nimport { getCardIconsFromPaymentMethods } from 'app/checkout/components/checkoutPayment/checkoutPaymentUtils';\nimport { saveStorageData, popStorageData } from 'app/utils/localStorage/localStorage';\nimport { SESSION_STORAGE } from 'app/utils/localStorage/localStorageConstants';\nimport { redirectWithWarning } from './redirects';\nimport { customFetch, isJsonString } from './ajaxHelpers';\nimport { isGuestUser } from './globalDataHelpers';\nimport { CART_VALIDATION_FLAG, REDIRECTED_WITH_NOTIFICATION } from '../cart/cartConstants';\n\nconst { accountLoginUrl } = window.inlineGlobalConfig;\nconst { baseCartUrl } = window.inlineCartConfiguration;\n\nexport const isElementVisible = elem =>\n elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;\n\nexport const isElementVisibleWithinParent = elem => elem.offsetParent !== null;\n\nexport const fadeIn = (fadeElement, speed, display) => {\n if (!fadeElement) {\n return;\n }\n const element = fadeElement;\n element.style.display = display || 'block';\n element.classList.add(`fade-in-${speed}`);\n setTimeout(() => {\n element.classList.remove(`fade-in-${speed}`);\n }, speed);\n};\n\nexport const fadeOut = (fadeElement, speed, callback) => {\n const element = fadeElement;\n element.classList.add(`fade-out-${speed}`);\n setTimeout(() => {\n element.style.display = 'none';\n element.classList.remove(`fade-out-${speed}`);\n return callback || true;\n }, speed);\n};\n\nexport const getElementHeight = element => {\n if (!element) {\n return 0;\n }\n const elementStyle = element.getAttribute('style');\n element.setAttribute('style', 'display: block; max-height: none;');\n const height = element.offsetHeight;\n element.setAttribute('style', elementStyle);\n return height;\n};\n\nexport function getElementAbsoluteHeights(elements) {\n const elementHeights = [];\n [].forEach.call(elements, (element, i) => {\n element.classList.add('temporary-hide-element');\n const paddingTop = parseInt(window.getComputedStyle(element, null).getPropertyValue('padding-top'), 10);\n const paddingBottom = parseInt(window.getComputedStyle(element, null).getPropertyValue('padding-bottom'), 10);\n const elementHeight = element.clientHeight;\n elementHeights[i] = elementHeight - paddingTop - paddingBottom;\n element.classList.remove('temporary-hide-element');\n });\n return elementHeights;\n}\n\nexport function topWrapperOffset(action, offset, className) {\n const html = document.querySelector('html');\n const wrapper = document.querySelector('#wrapper');\n if (action === 'open') {\n html.classList.add(className);\n wrapper.style.marginTop = `-${offset}px`;\n } else if (action === 'close') {\n html.classList.remove(className);\n wrapper.style.removeProperty('margin-top');\n window.scrollTo(0, offset);\n }\n}\n\nexport function scrollToPosition(yPos, scrollDuration) {\n return new Promise(resolve => {\n const distance = yPos - window.scrollY;\n const currentPosition = window.scrollY;\n const denominator = 2;\n const cosParameter = distance / denominator;\n let scrollCount = 0;\n let oldTimestamp = performance.now();\n const step = newTimestamp => {\n scrollCount += Math.PI / (scrollDuration / (newTimestamp - oldTimestamp));\n if (scrollCount >= Math.PI || window.scrollY === yPos) {\n window.scrollTo(0, yPos);\n resolve();\n return;\n }\n window.scrollTo(\n 0,\n currentPosition + (distance - Math.round(cosParameter + cosParameter * Math.cos(scrollCount)))\n );\n oldTimestamp = newTimestamp;\n window.requestAnimationFrame(step);\n };\n window.requestAnimationFrame(step);\n });\n}\n\nexport const getElementPosition = element => {\n const bodyRect = document.body.getBoundingClientRect();\n const elementRect = element.getBoundingClientRect();\n return elementRect.top - bodyRect.top;\n};\n\nexport const getElementHeightNoPadding = element => {\n if (element) {\n const computedStyle = getComputedStyle(element);\n return element.clientHeight - parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom);\n }\n return 0;\n};\n\nexport const getParams = query => {\n if (!query) {\n return {};\n }\n\n return (/^[?#]/.test(query) ? query.slice(1) : query).split('&').reduce((params, param) => {\n const paramsCopy = { ...params };\n const [key, value] = param.split('=');\n paramsCopy[key] = value ? decodeURIComponent(value.replace(/\\+/g, ' ')) : '';\n return paramsCopy;\n }, {});\n};\n\nexport const getQueryParams = () => {\n const currentURL = window.location.href;\n return getParams(currentURL.substring(currentURL.indexOf('?')));\n};\n\nexport const usernamePadding = () => {\n const naveAccountWelcomeEl = document.querySelector('.nav__account-label--name');\n if (naveAccountWelcomeEl) {\n if (mediaQueries.is_large_up()) {\n const navSignoutEl = document.querySelector('.nav__account-label--signout');\n const width = navSignoutEl && navSignoutEl.offsetWidth;\n const bonusWidth = 7;\n naveAccountWelcomeEl.style.paddingRight = `${width + bonusWidth}px`;\n } else {\n naveAccountWelcomeEl.style.removeProperty('padding-right');\n }\n }\n};\n\nexport const findAncestorBySelector = (element, selector) => {\n let el = element.parentElement;\n\n if (!Element.prototype.matches) {\n Element.prototype.matches = Element.prototype.msMatchesSelector;\n }\n\n if (typeof el.closest === 'function') {\n return element.closest(selector);\n }\n\n while (el) {\n if (el.matches(selector)) {\n return el;\n }\n el = el.parentElement;\n }\n\n return null;\n};\n\nexport function debounce(func, wait, immediate) {\n let timeout;\n return function debounceCb(...args) {\n const context = this;\n const argsCopy = args;\n const later = () => {\n timeout = null;\n if (!immediate) {\n func.apply(context, argsCopy);\n }\n };\n const callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n func.apply(context, argsCopy);\n }\n };\n}\n\nexport const debounceCallback = (wait = 300) => {\n let timeout;\n return (param, callback) => {\n if (timeout) {\n window.clearTimeout(timeout);\n }\n\n timeout = window.setTimeout(() => callback(param), wait);\n };\n};\n\nconst handleRedirects = (xhttp, customErrorHandler) =>\n new Promise(resolve => {\n if (customErrorHandler && customErrorHandler.status === xhttp.status) {\n const { redirectHandler, redirectUrl, messageId } = customErrorHandler;\n redirectHandler(redirectUrl, messageId);\n }\n\n const statusCodeActionsMap = {\n 403: async () => {\n const isGuest = await isGuestUser();\n if (isGuest) {\n redirectWithWarning(window.location.origin + baseCartUrl, 'checkout.sessionExpired.guest.error');\n } else {\n redirectWithWarning(window.location.origin + accountLoginUrl, 'checkout.sessionExpired.registeredUser.error');\n }\n },\n };\n\n if (Object.keys(statusCodeActionsMap).includes(`${xhttp.status}`)) {\n return statusCodeActionsMap[xhttp.status]();\n }\n\n return resolve(xhttp);\n });\n\nexport const ajaxRequest = (\n method,\n url,\n formData,\n customErrorHandler = null,\n timeStampRequired = false,\n requestHeaders = {\n 'Content-type': 'application/x-www-form-urlencoded',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-CSRF-TOKEN': getMeta('_csrf'),\n }\n) =>\n customFetch(method, url, formData, timeStampRequired, requestHeaders).then(\n xhttp =>\n new Promise((resolve, reject) => {\n /* eslint-disable no-param-reassign */\n xhttp.onload = () =>\n handleRedirects(xhttp, customErrorHandler).then(() =>\n resolve(isJsonString(xhttp.responseText) ? JSON.parse(xhttp.responseText) : xhttp.responseText)\n );\n xhttp.onerror = () => reject(xhttp.statusText);\n /* eslint-enable no-param-reassign */\n })\n );\n\nexport const decodeHtml = html => {\n const txt = document.createElement('textarea');\n const slashUnicode = '\u002f';\n txt.innerHTML = html.replace(slashUnicode, '/');\n return txt.value;\n};\n\nexport const convertCurrencyToNumber = value =>\n typeof value === 'string' ? parseFloat(parseFloat(value.replace(/[^\\d.]/g, '')).toFixed(2)) || 0 : value;\n\nexport const listify = listOrItem => {\n if (typeof listOrItem === 'string' || !isArrayLike(listOrItem)) {\n return [listOrItem];\n }\n return listOrItem;\n};\n\nexport const replaceKeyName = (obj, currentKeys, nextKeys) => {\n const arrayOfCurrentKeys = listify(currentKeys);\n const arrayOfNextKeys = listify(nextKeys);\n return Object.keys(obj).reduce((acc, key) => {\n const indexOfCurrentKey = arrayOfCurrentKeys.indexOf(key);\n if (obj[key] && typeof obj[key] === 'object' && !isArrayLike(obj[key]) && indexOfCurrentKey === -1) {\n return Object.assign(acc, {\n [key]: replaceKeyName(obj[key], currentKeys, nextKeys),\n });\n }\n if (indexOfCurrentKey !== -1) {\n return Object.assign(acc, {\n [arrayOfNextKeys[indexOfCurrentKey]]: obj[key],\n });\n }\n return Object.assign(acc, { [key]: obj[key] });\n }, {});\n};\n\nexport const emptyObjectProperties = obj =>\n Object.entries(obj).reduce((prev, [key]) => Object.assign(prev, { [key]: '' }), {});\n\nexport function mkQueue({ batchSize: _batchSize, onBatch } = {}) {\n let batchSize = _batchSize;\n let currentPromise = null;\n let queue = [];\n\n function tick() {\n if (currentPromise) return;\n\n if (queue.length) {\n currentPromise = Promise.all(queue.splice(0, batchSize).map(cb => cb()))\n .then(onBatch)\n .then(() => {\n currentPromise = null;\n tick();\n });\n } else {\n currentPromise = null;\n }\n }\n\n return {\n enqueue(...cbs) {\n queue.push(...cbs);\n tick();\n },\n\n setBatchSizeAndRestart(newBatchSize) {\n queue = [];\n currentPromise = null;\n batchSize = newBatchSize;\n },\n };\n}\n\nfunction whichTransitionEvent() {\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n };\n\n const element = document.createElement('element');\n const transitionEvent = Object.entries(transitions).find(([api]) => element.style[api] !== undefined);\n\n return transitionEvent ? transitionEvent[1] : null;\n}\n\nexport function transitionEndEvent(element, callback = undefined) {\n return new Promise(resolve => {\n const transitionEvent = whichTransitionEvent();\n element.addEventListener(transitionEvent, function transCallback() {\n element.removeEventListener(transitionEvent, transCallback);\n return resolve(callback);\n });\n });\n}\n\nexport function getFocusPoint(event) {\n const { pageX = 0, pageY = 0 } = event.type.includes('touch') ? event.touches[0] || event.changedTouches[0] : event;\n return {\n x: pageX,\n y: pageY,\n };\n}\n\nexport function convertSimpleYamlMapToJson(yaml) {\n return yaml\n .match(/\\{(.*)\\}/i)[1]\n .split(', ')\n .reduce(\n (acc, current) => ({\n ...acc,\n [current.split('=')[0]]: current.split('=')[1],\n }),\n {}\n );\n}\n\nexport function convertSimpleYamlListMapToJson(yaml) {\n return yaml\n .replace(/\\[(.*)\\]/g, '$1')\n .replace(/=/g, ':')\n .replace(/(\\w+)/g, '\"$1\"')\n .replace(/, {/g, '__{')\n .split('__')\n .map(network => JSON.parse(network))\n .reduce((acc, cur) => ({ ...acc, ...cur }), {});\n}\n\nexport function convertSimpleYamlListToArray(yaml) {\n return yaml.replace(/\\[(.*)\\]/g, '$1').split(', ');\n}\n\nexport function getMeta(metaName) {\n const metas = document.getElementsByTagName('meta');\n\n for (let i = 0; i < metas.length; i++) {\n if (metas[i].getAttribute('name') === metaName) {\n return metas[i].getAttribute('content');\n }\n }\n\n return '';\n}\n\nexport const ajaxJsonRequest = async (method, url, data) =>\n ajaxRequest(method, url, data, null, false, {\n 'Content-type': 'application/json',\n charset: 'UTF-8',\n });\n\nconst paymentMethodsExceptPaypalExpressThatHasTheSameIconAsPaypal = ({ paymentMethod }) =>\n paymentMethod !== PAYMENT_METHOD.PAYPAL_EXPRESS;\n\nconst googlePayMethodLast = (a, b) => {\n if (a.paymentMethod === PAYMENT_METHOD.GOOGLE_PAY) {\n return 1;\n }\n if (b.paymentMethod === PAYMENT_METHOD.GOOGLE_PAY) {\n return -1;\n }\n return 0;\n};\n\nconst applePayMethodLast = (a, b) => {\n if (a.paymentMethod === PAYMENT_METHOD.APPLE_PAY) {\n return 1;\n }\n if (b.paymentMethod === PAYMENT_METHOD.APPLE_PAY) {\n return -1;\n }\n return 0;\n};\n\nexport const getPaymentIcons = paymentTypes => {\n const iconsOfAllPaymentMethodsExceptCards = paymentTypes\n .filter(({ paymentMethod }) => paymentMethod !== PAYMENT_METHOD.CARD)\n .filter(paymentMethodsExceptPaypalExpressThatHasTheSameIconAsPaypal)\n .sort(applePayMethodLast)\n .sort(googlePayMethodLast)\n .map(({ paymentMethod }) => paymentMethod.toLowerCase());\n\n const cardsIcons = getCardIconsFromPaymentMethods(paymentTypes);\n\n return cardsIcons.concat(iconsOfAllPaymentMethodsExceptCards);\n};\n\nexport const setRedirectedWithMessageFlag = () => {\n saveStorageData(REDIRECTED_WITH_NOTIFICATION, true, SESSION_STORAGE);\n};\n\nexport function isRedirectedWithMessageFlagSet() {\n return !!popStorageData(REDIRECTED_WITH_NOTIFICATION, SESSION_STORAGE);\n}\n\nexport function setCartValidationFlag() {\n saveStorageData(CART_VALIDATION_FLAG, true, SESSION_STORAGE);\n}\n","import { uniq } from 'lodash';\nimport { PAYMENT_METHOD, CARD_ICON_MAPPER } from './checkoutPaymentConstants';\n\nexport function getCardBrands(supportedCarts) {\n const brandArray = supportedCarts\n .filter(paymentMode => paymentMode.paymentMethod === PAYMENT_METHOD.CARD)\n .map(card => card.cardBrands)\n .flat();\n\n return uniq(brandArray);\n}\n\nexport function getCardIcons(brands) {\n return brands.map(brand => CARD_ICON_MAPPER[brand]);\n}\n\nexport function isCardPaymentMethodEnabled(paymentMethods) {\n return paymentMethods.some(method => method.paymentMethod === PAYMENT_METHOD.CARD);\n}\n\nexport function isKlarnaPaymentEnabledForAddress(supportedPaymentModes, selectedDeliveryAddress) {\n return (\n supportedPaymentModes.find(paymentMode => paymentMode.paymentMethod === PAYMENT_METHOD.KLARNA) &&\n window.inlineCheckout.klarnaEnabledCountries.split(', ').includes(selectedDeliveryAddress.country)\n );\n}\n\nexport function isPaypalPaymentEnabled(paymentMethods) {\n return paymentMethods.some(method => method.paymentMethod === PAYMENT_METHOD.PAYPAL);\n}\n\nexport function isAfterpayPaymentEnabled(paymentMethods) {\n return paymentMethods.some(method => method.paymentMethod === PAYMENT_METHOD.AFTERPAY);\n}\n\nexport function getCardIconsFromPaymentMethods(paymentMethods) {\n const cardBrands = getCardBrands(paymentMethods);\n return getCardIcons(cardBrands);\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nconst { webpQuality, enableWebpQuality, mediaQueries } = window.inlineGlobalConfig;\n\nconst getWebpQuality = width => {\n let prevValue = 0;\n let quality = Object.values(webpQuality).slice(-1)[0];\n\n Object.entries(mediaQueries).forEach(([key, value]) => {\n if (prevValue < width && width <= value) {\n quality = webpQuality[key];\n }\n prevValue = value;\n });\n\n return quality;\n};\n\nconst computeQualityParameter = (explicitQuality, imageWidth) => {\n if (explicitQuality) {\n return `&qlt=${explicitQuality}`;\n }\n return enableWebpQuality ? `&qlt=${getWebpQuality(imageWidth)}` : '';\n};\n\nconst setTransformationTemplate = template => (template ? `&${template}` : '');\n\nconst renderImageUrl = (url, width, quality, transformationTemplate) => {\n if (!url) {\n return '/assets/images/no_product_image.png';\n }\n\n const imageURL = new URL(url.includes('https') ? url : `https:${url}`);\n const searchParams = imageURL.search ? `${imageURL.search}&` : '?';\n const bgParam = 'bg=rgb(242,242,242)';\n\n return `${imageURL.origin}${imageURL.pathname}${searchParams}w=${width}&${bgParam}${computeQualityParameter(\n quality,\n width\n )}${setTransformationTemplate(transformationTemplate)}`;\n};\n\nconst renderImageUrlWithWidth = (url, size, quality, retinaMultiplier = 1, transformationTemplate) => {\n const width = parseInt(size * retinaMultiplier, 10);\n return `${renderImageUrl(url, width, quality, transformationTemplate)} ${width}w`;\n};\n\nconst addWebpExtension = url => {\n const [path, query] = url.split('?');\n return `${path}.webp${(query && `?${query}`) || ''}`;\n};\n\nconst getSrcsetURLs = (srcset, url, quality, transformationTemplate) => {\n const retinaMultiplierX2 = 2;\n const retinaMultiplierX3 = 3;\n const nonRetina = srcset.map(size => renderImageUrlWithWidth(url, size, quality, 1, transformationTemplate));\n const x2 = srcset.map(size =>\n renderImageUrlWithWidth(url, size, quality, retinaMultiplierX2, transformationTemplate)\n );\n const x3 = srcset.map(size =>\n renderImageUrlWithWidth(url, size, quality, retinaMultiplierX3, transformationTemplate)\n );\n return [...new Set([...nonRetina, ...x2, ...x3])];\n};\n\nconst getSrcsets = sizes => {\n let prevSize = '100vw';\n const sizesAvailable = Object.keys(mediaQueries).map(key => {\n const currentSize = sizes[key] ? sizes[key] : prevSize;\n prevSize = currentSize;\n return {\n [key]: currentSize,\n };\n });\n\n const srcSets = sizesAvailable.map(sizeObj => {\n const LAST_TWO_CHARACTERS = -2;\n const hundredPercent = 100;\n const sizeKey = Object.keys(sizeObj)[0];\n const sizeValue = sizeObj[sizeKey];\n const unit = sizeValue.slice(LAST_TWO_CHARACTERS);\n const mediaQuery = parseInt(sizeValue.replace(unit, ''), 10);\n return unit === 'px' ? mediaQuery : Math.round((mediaQueries[sizeKey] * mediaQuery) / hundredPercent);\n });\n\n return [...new Set(srcSets)];\n};\n\nconst mediaQueriesMinWidth = () => {\n let prevKey = '';\n return Object.keys(mediaQueries)\n .map(key => {\n const currentMinWidth = mediaQueries[prevKey] ? mediaQueries[prevKey] + 1 : 0;\n prevKey = key;\n return {\n [key]: currentMinWidth,\n };\n })\n .reduce((prev, curr) => Object.assign(prev, curr), {});\n};\n\nconst getSizes = sizes =>\n Object.keys(sizes)\n .map(sizeKey => `(min-width:${mediaQueriesMinWidth()[sizeKey]}px) ${sizes[sizeKey]}`)\n .reverse();\n\nclass Image extends Component {\n render() {\n const { alt, wrapperClassName, className, media, onPictureRef, sizes, style, ...restOfProps } = this.props;\n\n const { url: mediaUrl, quality, transformationTemplate = null } = media;\n const srcSets = getSrcsets(sizes);\n\n const imgUrl = renderImageUrl(mediaUrl, Math.min(...srcSets), null, transformationTemplate);\n const imgSizes = getSizes(sizes).join(',');\n const isWebp = !mediaUrl.match('/static/');\n const imgType = isWebp ? 'image/webp' : 'image/jpg';\n const srcSet = mediaUrl ? getSrcsetURLs(srcSets, mediaUrl, quality, transformationTemplate) : [];\n const imgSrcSetAttr = srcSet.join(',');\n const sourceSrcSetAttr = isWebp ? srcSet.map(addWebpExtension).join(',') : imgSrcSetAttr;\n\n return (\n <picture ref={onPictureRef} className={wrapperClassName}>\n <source sizes={imgSizes} srcSet={sourceSrcSetAttr} type={imgType} />\n <img\n alt={alt}\n className={className}\n sizes={imgSizes}\n src={imgUrl}\n srcSet={imgSrcSetAttr}\n style={style}\n {...restOfProps}\n />\n </picture>\n );\n }\n}\n\nImage.propTypes = {\n alt: PropTypes.string,\n className: PropTypes.string,\n media: PropTypes.shape({\n url: PropTypes.string.isRequired,\n quality: PropTypes.number,\n transformationTemplate: PropTypes.string,\n }).isRequired,\n onPictureRef: PropTypes.func,\n sizes: PropTypes.shape({\n l: PropTypes.string,\n s: PropTypes.string,\n }).isRequired,\n style: PropTypes.objectOf(PropTypes.string),\n};\n\nImage.defaultProps = {\n alt: '',\n className: '',\n onPictureRef: null,\n style: {},\n};\n\nexport default Image;\n","export function getStorageData(key, storageType = 'localStorage') {\n try {\n const serializedState = window[storageType].getItem(key);\n if (serializedState === null) {\n return undefined;\n }\n return JSON.parse(serializedState);\n } catch (err) {\n console.error('loadStorageData', err);\n return undefined;\n }\n}\n\nexport function saveStorageData(key, val, storageType = 'localStorage') {\n try {\n const serializedState = JSON.stringify(val);\n window[storageType].setItem(key, serializedState);\n } catch (err) {\n console.error('saveStorageData', err);\n }\n}\n\nexport function removeStorageData(key, storageType = 'localStorage') {\n try {\n window[storageType].removeItem(key);\n } catch (err) {\n console.error('removeStorageData', err);\n }\n}\n\nexport function popStorageData(key, storageType = 'localStorage') {\n try {\n const serializedState = window[storageType].getItem(key);\n if (serializedState === null) {\n return undefined;\n }\n const data = JSON.parse(serializedState);\n window[storageType].removeItem(key);\n return data;\n } catch (err) {\n console.error('loadStorageData', err);\n return undefined;\n }\n}\n","export const SESSION_STORAGE = 'sessionStorage';\n","export const breakpoints = {\n 'landscape-orientation': '(orientation: landscape)',\n 'large-only': 'only screen and (min-width:64.0625rem) and (max-width:80rem)',\n 'portrait-orientation': '(orientation: portrait)',\n 'small-only': 'only screen and (max-width: 40rem)',\n 'xlarge-only': 'only screen and (min-width:80.0625rem) and (max-width:120rem)',\n large: 'only screen and (min-width: 64.0625rem)',\n medium: 'only screen and (min-width:40.0625rem)',\n 'tablet-down': 'only screen and (max-width:48rem)',\n 'tablet-up': 'only screen and (min-width:48.0625rem)',\n 'medium-down': 'only screen and (max-width:64rem)',\n 'medium-only': 'only screen and (min-width:40.0625rem) and (max-width:64rem)',\n 'medium-to-large': 'only screen and (min-width:40.0625rem) and (max-width: 1200px)',\n topbar: 'only screen and (min-width:64.0625rem)',\n xlarge: 'only screen and (min-width:80.0625rem)',\n xxlarge: 'only screen and (min-width:120.0625rem)',\n};\n\nconst mediaQueries = {\n is_landscape: () => window.matchMedia(breakpoints['landscape-orientation']).matches,\n is_large_only: () => window.matchMedia(breakpoints['large-only']).matches,\n is_large_up: () => window.matchMedia(breakpoints.large).matches,\n is_tablet_up: () => window.matchMedia(breakpoints['tablet-up']).matches,\n is_tablet_down: () => window.matchMedia(breakpoints['tablet-down']).matches,\n is_medium_down: () => window.matchMedia(breakpoints['medium-down']).matches,\n is_medium_only: () => window.matchMedia(breakpoints['medium-only']).matches,\n is_medium_up: () => window.matchMedia(breakpoints.medium).matches,\n is_medium_to_large: () => window.matchMedia(breakpoints['medium-to-large']).matches,\n is_portrait: () => window.matchMedia(breakpoints['portrait-orientation']).matches,\n is_small_only: () => window.matchMedia(breakpoints['small-only']).matches,\n is_xlarge_only: () => window.matchMedia(breakpoints['xlarge-only']).matches,\n is_xlarge_up: () => window.matchMedia(breakpoints.xlarge).matches,\n is_xxlarge_up: () => window.matchMedia(breakpoints.xxlarge).matches,\n};\n\nconst EM_NUMBER_OF_PIXEL = parseFloat(getComputedStyle(document.querySelector('html')).fontSize);\n\nexport const getMinSizeByBreakpoint = breakpointName => {\n const mediaQuery = breakpoints[breakpointName];\n const re = /.*min-width:(.*)rem.*/g;\n\n let result = 0;\n\n if (re.test(mediaQuery)) {\n result = mediaQuery.replace(re, '$1') * EM_NUMBER_OF_PIXEL;\n }\n\n return result;\n};\n\nexport default mediaQueries;\n","/*eslint-disable */\nimport React, { Component } from 'react';\nimport { Provider } from 'react-redux';\nimport { IntlProvider } from 'react-intl';\nimport { ajaxRequest } from 'app/utils/helpers';\nimport { getStorageData, saveStorageData, removeStorageData } from 'app/utils/localStorage/localStorage';\n\nconst { messagesUrl, locale } = window.inlineGlobalConfig;\n\nlet globalTranslations = null;\n\nconst ProviderHOC =\n (store = null, props = {}) =>\n WrappedComponent =>\n class ProviderWrapper extends Component {\n constructor() {\n super();\n\n this.state = {\n translations: null,\n };\n\n this.setTranslations = this.setTranslations.bind(this);\n this.setMessageProperties = this.setMessageProperties.bind(this);\n this.handleLocalisationFailure = this.handleLocalisationFailure.bind(this);\n this.handleLocalisationSuccess = this.handleLocalisationSuccess.bind(this);\n }\n\n componentDidMount() {\n this.setMessageProperties();\n }\n\n get localStoragePrefix() {\n const { language, country } = locale;\n return `localisationMessages_${language}-${country}`;\n }\n\n get localStorageKey() {\n return `${this.localStoragePrefix}_${messagesUrl}`;\n }\n\n setTranslations(translations) {\n this.setState({\n translations,\n });\n globalTranslations = translations;\n }\n\n setMessageProperties() {\n const translations = getStorageData(this.localStorageKey);\n\n if (translations) {\n this.setTranslations(translations);\n } else if (window.hasTranslationsBeenRequested) {\n window.translationPromise.then(response => this.setTranslations(response));\n } else {\n window.translationPromise = ajaxRequest('GET', messagesUrl)\n .then(response => this.handleLocalisationSuccess(response))\n .catch(this.handleLocalisationFailure);\n window.hasTranslationsBeenRequested = true;\n }\n }\n\n removeLocalisationMessages() {\n Object.keys(localStorage).forEach(key => key.includes(this.localStoragePrefix) && removeStorageData(key));\n }\n\n handleLocalisationFailure() {\n console.error('No localisable messages');\n\n this.setTranslations();\n }\n\n handleLocalisationSuccess(translations) {\n this.removeLocalisationMessages();\n\n saveStorageData(this.localStorageKey, translations);\n this.setTranslations(translations);\n\n return translations;\n }\n\n render() {\n const { translations } = this.state;\n\n if (!translations) {\n return null;\n }\n\n if (!store) {\n return (\n <IntlProvider locale={locale.language} messages={translations}>\n <WrappedComponent {...props} />\n </IntlProvider>\n );\n }\n\n return (\n <IntlProvider locale={locale.language} messages={translations}>\n <Provider store={store}>\n <WrappedComponent {...props} />\n </Provider>\n </IntlProvider>\n );\n }\n };\n\nexport const getTranslations = () => Object.assign({}, globalTranslations);\nexport default ProviderHOC;\n","import { flashSuccessMessage, flashWarningMessage, flashErrorMessage } from 'app/globalMessages/globalMessagesClient';\n\nexport const redirectTo = url => {\n window.location.replace(url);\n};\n\nexport function redirectWithSuccess(url, message) {\n flashSuccessMessage(message);\n redirectTo(url);\n}\n\nexport function redirectWithWarning(url, message) {\n flashWarningMessage(message);\n redirectTo(url);\n}\n\nexport function redirectWithError(url, message) {\n flashErrorMessage(message);\n redirectTo(url);\n}\n","export const PAGE_REFERRER_STORAGE_KEY = 'referrer';\n","import { getStorageData, saveStorageData } from '../localStorage/localStorage';\nimport { PAGE_REFERRER_STORAGE_KEY } from './referrerTrackerConstants';\nimport { SESSION_STORAGE } from '../localStorage/localStorageConstants';\n\nexport const getPageReferrerUrl = () => getStorageData(PAGE_REFERRER_STORAGE_KEY, SESSION_STORAGE) || { url: '' };\n\nexport const getProductReferrer = listingCategoryId => {\n const productReferrer = getStorageData(`referrerProduct/${listingCategoryId}`, SESSION_STORAGE);\n const pageReferrerUrl = getPageReferrerUrl().url;\n if (pageReferrerUrl && productReferrer && productReferrer.url === pageReferrerUrl) {\n return productReferrer;\n }\n return null;\n};\n\nexport const saveProductReferrer = (listingCategoryId, product, isGridView) => {\n saveStorageData(\n `referrerProduct/${listingCategoryId}`,\n {\n page: product.page,\n productId: product.id,\n url: product.url,\n isGridView,\n },\n SESSION_STORAGE\n );\n};\n","import { DEFAULT_ERROR_MSG } from 'app/globalMessages/globalMessagesConstants';\nimport { showError } from 'app/globalMessages/globalMessagesClient';\n\nconst { accountLoginUrl } = window.inlineGlobalConfig;\n\nconst genericErrorHandler = statusCode => {\n const unauthorized = 401;\n const forbidden = 403;\n\n switch (statusCode) {\n case unauthorized:\n case forbidden:\n window.location = accountLoginUrl;\n break;\n default:\n window.scrollTo(0, 0);\n showError({\n messageId: DEFAULT_ERROR_MSG,\n autoHide: true,\n });\n }\n};\n\nexport default genericErrorHandler;\n"],"names":["_window$inlineGlobalC","window","inlineGlobalConfig","locale","pageType","dlViewCart","cartItems","clearEcommerceAndPushToDataLayer","DL_EVENT_VIEW_CART","getCartEcommerceObject","getTotalUnitPrice","product","cart","findProductInCart","entries","find","p","id","convertStringCurrencyToNumber","totalPrice","quantity","dlRemoveFromCart","DL_EVENT_REMOVE_FROM_CART","getProductEcommerceObject","getListPropsForAddToBagAndAddToWishlist","index","nullifyForPDP","item_list_id","undefined","item_list_name","_objectSpread","getPLPOrSRPProps","dlRemoveOneFromCart","dlRemoveAllFromCart","dlAddOneMoreToCart","dlAddToCart","listProps","DL_EVENT_ADD_TO_CART","stock_level","getStockLevel","dlTrackProductDecrease","_ref","location","_ref$quantity","successFlag","productAnalytics","getProductData","selectedSize","variationValues","dataLayerName","dataLayer","push","bag","event","interaction_name","bag_value","concat","price","success_flag","ecommerce","currencyCode","currentCurrency","remove","products","remove_from_bag_loc","generateBagObject","dlTrackProductIncrease","_ref2","add","add_to_bag_loc","dlTrackAddToBagError","_ref3","replaceSpecialChars","error","console","dlTrackViewBag","bagInfo","totalItems","totalPriceValue","map","baseId","link","dataLayerMap","baseImage","creationtime","unitPrice","replace","color","getAttributeFromClassificationData","productData","Object","name","getProductName","dataLayerDescription","variant","size","technology","_find","entry","key","value","class","total_item_price","toFixed","reduce","formatDataLayer","image","url","origin","added_on","trim","getProductItems","total_quantity","total_price","dlTrackFormFields","formName","formField","form_name","toLowerCase","form_field","dlTrackFormSubmit","errorMsgs","_errorMsgs$errorField","hasErrors","keys","length","errorFieldName","formSubmitAnalytics","form_error_field","form_error_message","e","dlTrackPoBoxValidationError","DL_USER_LOGGED_STATUS","DL_USER_BAG_ID","DL_CHECKOUT_TYPE_WEBSITE","DL_CHECKOUT_TYPE_PAYPAL_EXPRESS","DL_CHECKOUT_TYPE_APPLE_PAY","DL_CHECKOUT_TYPE_GOOGLE_PAY","DL_STEP_DELIVERY","DL_STEP_BILLING","DL_STEP_REVIEW","DL_EVENT_USE_VALID_COUPON","DL_EVENT_USE_INVALID_COUPON","DL_EVENT_ADD_TO_WISHLIST","DL_EVENT_VIEW_ITEM_LIST","DL_EVENT_VIEW_ITEM","DL_EVENT_SELECT_ITEM","DL_EVENT_BEGIN_CHECKOUT","DL_EVENT_CHECKOUT_PROGRESS","DL_EVENT_ADD_SHIPPING_INFO","DL_EVENT_ADD_PAYMENT_INFO","DL_EVENT_PURCHASE","DL_ITEM_LIST_YMAL","currency","clearanceStatusMap","cStatus","Number","getValue","eventData","getCartValue","totalPriceWithoutTax","getOrderValue","getDiscountValueNew","wasPrice","num","parseFloat","getCoupon","_appliedVouchers$","appliedVouchers","declinedCoupon","appliedVoucher","coupon","voucherCode","getCustomerType","inlineOrderConfirmation","orderConfirmation","newCustomer","getAttributeFromClassificationDataNew","classificationData","attribute","_classificationData$e","_classificationData$e2","_classificationData$e3","data","group","getStockCount","code","_data$find","s","sku","count","stockLevel","getStockLevelAtCartAndWishlist","getSizeData","getStockLevelAtPDP","_product$details","details","sizes","getStockLevelAtPLP","isProductOutOfStock","getCheckoutType","paymentInfo","type","checkout_type","PAYMENT_METHOD","getProductAge","nrOfDays","productAgeTypes","content","productAgeTypesLength","i","getLocaleDataByUid","uid","country","gaAccount","getLanguageName","language","getDiscountLevel","discountPercentage","getDiscountValue","getProductAvailability","numberOfNoStockSizes","forEach","Math","round","parseToGTMFloat","number","filter","acc","newValueFormat","_isNumber","_isBoolean","_defineProperty","gender","silhouette","productCode","clearanceStatus","category","women","femme","donna","damen","men","homme","uomo","herren","brand","dimension1","dimension2","dimension3","split","dimension4","dimension5","markdown","dimension6","dimension7","dimension8","dimension9","dimension10","productAge","dimension14","crossSell","dimension15","positionRemapping","position","findParentRowComponent","element","nodeName","parentNode","classList","contains","dataset","slotName","arguments","checkForTextExistence","datasetText","placeholder","document","createElement","innerHTML","innerText","textContent","reduceProductFields","productsAnalytics","_omit","getElementIndex","el","Array","prototype","indexOf","call","children","pushAnalyticsOnTabClick","tab_name","target","err","getDataLayerItem","otherProps","_getAttributeFromClas","product_availability","_product$quantity","features","totalValue","discount","discount_band","discount_flag","item_age","item_brand","item_category","item_category2","item_category3","item_category4","item_category5","item_id","item_material","item_name","item_nav_code","item_size","item_style_code","item_trading_clasification","item_variant","out_of_stock_flag","items","getProductListEcommerceObject","fillInTheSku","getCheckoutEcommerceObject","_bagInfo$deliveryMode","deliveryMode","priceValue","deliveryCost","nameEn","shipping","shipping_tier","payment_type","getPurchaseEcommerceObject","order","totalTax","tax","transaction_id","customer_type_flag","additionalProps","timestamp","Date","now","pageName","dlTrackVirtualPage","virtualPage","extendData","page_name","inlinePlp","categoryId","query","getBasicListProps","listId","listName","dlSelectItem","dlSelectPLPOrSRPItem","dlViewItemList","dlViewPLPOrSRPItemList","dlTrackProductClick","page_type","click","list","dlTrackProductsReceive","getLoggedUserInfo","then","userInfo","_userInfo$userInfoIn","assign","searchQuery","URL","searchParams","get","dataLayerInfo","user_status","username","num_products","impressions","slice","search_term","dlTrackFilterSelecting","isSelected","facetHeaderName","facetItemId","_window$dataLayer$pus","dlTrackSorting","sortName","prod_list_sort_by","dlTrackBackToTopClick","dlTrackPLPBreadcrumb","breadcrumb_url","qubitEmitEcUserEvent","uv","emit","user","encodedId","email","qubitEmitEcBasketEvents","getGlobalCartInfo","subtotal","basket","getBasket","convertCurrencyToNumber","subtotalWithTax","total","getBasketItem","qubitEmitEcBasketAction","productId","action","qubitEmitEcViewEvent","subtypes","mappedPageType","homepage","checkout","toUpperCase","subType","decodeHtml","isEcViewEventFired","getColorCode","_product$classificati","_product$classificati2","_product$classificati3","colorCode","entryObj","createImageSet","baseUrl","queryPostfix","totalImages","composeMap","Map","set","_ref$additionalValue","additionalValue","subtotalIncludingTax","description","primaryCategoryName","stock","categories","images","_toConsumableArray","values","originalPrice","pathname","imageSet","src","events","some","meta","extractProductClearanceStatus","classificationDataAttributes","item","toQubitFormat","updateQubitAttributesOnProductDetailsDOMNode","pdpProductData","pdpDetailsDOMElement","querySelector","setAttribute","classificationAttribute","dlSelectWishlistItem","dlViewWishlistItemList","dlAddToWishlistNew","dlAddToCartFromWishlist","dlAddToWishlist","_getProductData","add_to_wishlist_loc","wl_prod_name","wl_prod_price","wl_prod_currency","wl_prod_category","wl_prod_size","wl_prod_nav_code","wl_prod_discount_band","dlRemoveFromWishlist","_ref2$operationResult","operationResult","_getProductData2","remove_from_wishlist_loc","wishlist_remove_reason","isNotActive","CART_SOURCES","FETCH_CART","UPDATE_CART_ITEM","REMOVE_CART_ITEM","VALIDATE_CART","HANDLE_CART_COUPON","CART_ACTIONS","CHECKOUT_STARTED","CHECKOUT_FINISHED","CHECKOUT_DISABLED","CHECKOUT_ENABLED","PAYPAL_EXPRESS_STARTED","PAYPAL_EXPRESS_FINISHED","CART_VALIDATION_FLAG","REDIRECTED_WITH_NOTIFICATION","INSUFFICIENT_STOCK","SET_CHECKOUT_CART_DATA","DELIVERY_URL","DELIVERY_DPD_URL","DPD_STEP_1","DPD_STEP_2","DPD_STEP_3","CARD_URL","PAYPAL_URL","KLARNA_URL","PREDEFINED_ADDRESS","REMOVED_COUPON","SET_CART_DELIVERY_ADDRESS","CARD","PAYPAL","ZEROVALUE","KLARNA","PAYPAL_EXPRESS","GOOGLE_PAY","APPLE_PAY","AFTERPAY","CARD_ICON_MAPPER","visa","paypal","klarna","mc","amex","discover","afterpay","_PAYMENT_TYPES_MAP","USER_STATE","SET_USERNAME","LOGIN_URL","FORGOT_PASSWORD_URL","FORGOT_PASSWORD_CONFIRMATION_URL","SET_CONTACT_DETAILS_STEP","SET_DELIVERY_STEP","SET_PAYMENTS_STEP","SET_USER_DATA","SET_SELECTED_PAYMENT_ACCORDION_MODE","AFTERPAY_URL","SET_CART_PAYMENT_INFO","KLARNA_SDK_URL","PAYMENT_TYPES_MAP","SET_PAYMENT_TYPE","productDataAdapter","symbol","SMALL_BREAKPOINT","MEDIUM_BREAKPOINT","LARGE_BREAKPOINT","getActualScreenSize","mediaQueries","updateArrows","mySiema","slidesPerPage","currentSlide","prevArrow","disabled","nextArrow","innerElements","DEFAULT_CAROUSEL_SELECTOR","slidesPerSmallPage","slidesPerMediumPage","slidesPerLargeUpPage","slidesPerPageSizeDefault","_slidesPerPageSizeDef","replaceImgSrcWithAltImg","pictureSources","currentTarget","source","mainImageSource","getAttribute","mainImageUrl","altImage","mainImageRegExp","RegExp","hostname","addArrowsDefault","siema","selector","appendChild","addEventListener","prev","next","configurePaginationDefault","ul","nrOfSlidesPerPage","nrOfDots","slickDots","removeChild","_loop","li","button","goTo","handleChangeDefault","carousel","carouselDots","initProductCarousels","_ref$selector","_ref$currentSlides","currentSlides","_ref$reinitializeAll","reinitializeAll","_ref$slidesPerPage","_ref$perPage","perPage","getMinSizeByBreakpoint","_ref$addPagination","addPagination","_ref$onChange","onChange","_ref$addArrows","addArrows","carousels","querySelectorAll","carouselClones","siemaCarousels","_filter","_loop2","idx","isDraggable","carouselParent","cloneNode","disableSingleArrow","_siema$selector$lastC","_siema$selector$lastC2","_siema$selector$lastC3","_siema$selector$lastC4","hidePrevArrow","lastChild","firstChild","hideNextArrow","disableArrows","initArrowsAndPagination","Siema","duration","easing","draggable","loop","onInit","this","slidesCount","screenSize","dataHolderElement","JSON","parse","dlViewProductCarouselItemList","title","dlTrackProductImpressions","dlTrackProductSelect","mountAnalytics","REMOVE_FOOTER_INVISIBILITY","Button","buttonClassName","buttonOnClick","buttonText","isDisabled","React","className","onClick","defaultProps","propTypes","PropTypes","isRequired","Checkbox","checkboxName","checkboxClass","checkboxLabelClass","checkboxInputClass","checkboxLabel","checkboxLabelId","checkboxOnChange","_ref$formik","formik","handleChange","errors","props","_objectWithoutProperties","_excluded","Label","htmlFor","Field","_extends","checked","FormattedMessage","connect","ErrorMessage","_objectDestructuringEmpty","Message","component","role","isValueChangedBeforeBlur","Input","touched","validateForm","handleBlur","settings","setFieldValue","_ref$formContext","formContext","validations","customOnChange","customOnBlur","onBlur","_excluded2","handleErrorClass","persist","currentErrors","_pick","getErrorMsgsInEnglish","formConnect","_ref$formContext$requ","requiredFields","listify","inputName","includes","ModalWrapper","_Component","_inherits","_super","_this","_classCallCheck","htmlElement","handleBackgroundClick","bind","_assertThisInitialized","handleCloseOnEsc","modalBackdropRef","prevProps","_this$props","isModalOpen","isWithinSticky","current","_this$props2","isHTMLContent","dangerouslySetInnerHTML","__html","result","_this$props3","titleMsg","titleMsgID","titleMsgHTML","_this$props4","modalToggle","isEscPressed","removeEventListener","_this$props5","maxWidth","customParentClass","isCloseOutside","isForbidClose","intl","closeButton","formatMessage","getTitle","a11yAttrs","TrapFocus","enabled","ref","getContent","Component","injectIntl","ANIMATION_TIME","TIME_FOR_CLOSING_KEYBOARD","getAddressData","validatePostcodeData","scrollToError","containerSelector","extraGutter","container","firstErrorInput","isElementVisible","elementScrollTo","stickyHeader","getElementHeightNoPadding","scrollTop","getElementPosition","scrollToPosition","scrollToEl","getValidAddressDetails","stringAddress","setValues","updateState","ajaxRequest","addressId","addressDataResponse","formValuesForReplacement","_pickBy","replaceKeyName","selectedRegion","region","validatePostcode","formData","postcodeFormLabel","postcodeFormField","incorrectPostcodeErrorMsg","postcodeError","validationResponse","_isEmpty","postcodeEntries","showPostcodeSelectAddress","fieldName","getFieldErrorMessage","validateBy","validationProcessor","errorsPopulator","validationRules","_ref4","_slicedToArray","validate","getAllErrors","getAll","_ref5","rules","required","_ref7","_ref8","getRequiredFields","rule","_ref10","FormContext","createContext","WrappedComponent","Consumer","formsHOC","mapPropsToValues","formikHOC","withFormik","handleSubmit","FormikWrapper","submitForm","_this2","_this2$props","Provider","validation","messages","messagesEn","enErrors","obj","isPathFound","_get","findPath","innerObj","innerValue","currentKey","pathOfValue","_typeof","currentPath","TOGGLE_PASSWORD_TYPE","state","typeKey","isPassword","showMessage","messageDescriptor","isServiceActive","getGlobalMessagesRoot","dispatchEvent","CustomEvent","SHOW_MESSAGE_EVENT","detail","saveStorageData","FLASH_MESSAGES_STORAGE","SESSION_STORAGE","hideMessage","HIDE_MESSAGE_EVENT","showSuccess","TYPE_SUCCESS","showWarning","TYPE_WARNING","showError","TYPE_ERROR","showDeliveryThreshold","thresholdAttrs","createMessageDescriptor","message","TYPE_DELIVERY_THRESHOLD","flashMessage","flashSuccessMessage","flashWarningMessage","flashErrorMessage","attrs","Error","_isString","messageId","sticky","_isPlainObject","MAX_DISPLAY_TIME","DEFAULT_ERROR_MSG","NOTIFICATIONS_SERVICE","STATUS_ACTIVE","HIGHEST_MESSAGE_PRIORITY","LOWEST_MESSAGE_PRIORITY","getElementById","getFlashStorageRecord","popStorageData","getMessagePriority","descriptor","priority","onServiceStart","onServiceStop","getStorageData","getPageSpecificOptions","options","headerSelector","stickyClass","RECEIVE_MINI_CART","MINI_CART_IS_FETCHING","MINI_CART_ROOT_ELEMENT","TRANSFER_MINI_CART_ADD","TRANSFER_MINI_CART_REMOVE","RECEIVE_MINI_WISHLIST","MINI_WISHLIST_IS_FETCHING","MINI_WISHLIST_ROOT_ELEMENT","TRANSFER_MINI_WISHLIST_ADD","TRANSFER_MINI_WISHLIST_REMOVE","DETAILS_LOADED","ADD_TO_COLLECTION","SIZE_SELECTED","SIZE_DESELECTED","UPDATE_IN_WISHLIST_PRODUCTS","PRODUCT_NOT_FOUND","FETCH_USER_ENCODED_ID","STICKER","LEISUREWEAR","CHARM","imageBasePath","client","IMAGE_SERVER_URL","classificationGroupId","findColorSwatches","classificationGroups","productGroup","classificationGroup","getActualSwatch","colorSwatches","actualColorId","swatch","buildMediaURL","mediaURL","swatchUrl","mediaCode","sizeVariationIndex","variationFields","_findIndex","field","skus","hybrisSizeCode","isFullPrice","isColourVariantFullPrice","isMultiVariantProduct","productType","getClassificationProperty","propertyName","dataObject","getClassificationPropertyDetailed","classifications","_classifications$","_classifications$$fea","_classifications$$fea2","f","featureCode","featureValues","isSpacePressed","which","isEnterPressed","isRightArrowPressed","_ref6","isLeftArrowPressed","isTabPressed","isUserTabbing","getFocusableElements","trapRef","useEffect","focusable","firstFocusable","lastFocusable","currentFocus","scrollY","onTrapFocus","focus","scrollTo","scrollX","customFetch","method","timeStampRequired","requestHeaders","Promise","resolve","bracketsRegEx","xhttp","XMLHttpRequest","params","stringify","val","encodeURIComponent","build","prefix","_isArray","test","String","join","requestUrl","open","object","callback","iterateThroughObject","setRequestHeader","send","isJsonString","jsonString","o","loadAsyncScript","reject","script","async","head","onload","onerror","addClass","_curry","els","_forEach","removeClass","insertBefore","attr","addStyle","removeAttribute","prop","propName","style","removeStyle","removeProperty","inlineFreeDeliveryThreshold","freeDeliveryVisible","threshold","msgBelowThreshold","msgAboveThreshold","backgroundBelowThreshold","backgroundAboveThreshold","displaySeconds","FREE_DELIVERY_VISIBLE","THRESHOLD","ABOVE_THRESHOLD_MSG","BELOW_THRESHOLD_BG","ABOVE_THRESHOLD_BG","DISPLAY_SECONDS","parseInt","CURRENCY_SYMBOL","GBP","CAD","EUR","USD","getZeroPrice","ccy","PLACEHOLDER","getBelowThresholdMsg","subTotal","placeholderLength","startIndex","endIndex","resolveCartInfoPromise","setInfo","loggedUserInfoUrl","baseStoreUrl","setGlobalCartInfo","cartInfo","globalData","setGlobalWishlistInfo","wishlistInfo","getGlobalWishlistInfo","loggedUserInfo","responseText","statusText","isGuestUser","getBaseStoreData","baseStoreData","getCurrentStoreData","baseStore","stores","store","displayFooter","isFooterDisplayed","footer","$mediaBanner","waitPageLoadAnalytics","isPageAnalyticsPushed","isPageLoadAnalyticsPushed","setInterval","ga_account","intervalId","clearInterval","_regeneratorRuntime","exports","Op","hasOwn","hasOwnProperty","defineProperty","desc","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","fn","arg","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","done","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","return","TypeError","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","doneResult","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","iter","reverse","pop","skipTempReset","charAt","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","catch","thrown","delegateYield","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","apply","arr","isArray","_arrayWithHoles","_i","_s","_e","_x","_r","_arr","_n","_d","_iterableToArrayLimit","minLen","_arrayLikeToArray","n","toString","from","_unsupportedIterableToArray","_nonIterableRest","len","arr2","ownKeys","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","getOwnPropertyDescriptors","defineProperties","input","hint","prim","toPrimitive","res","_toPrimitive","_toPropertyKey","accountLoginUrl","baseCartUrl","inlineCartConfiguration","elem","offsetWidth","offsetHeight","getClientRects","isElementVisibleWithinParent","offsetParent","fadeIn","fadeElement","speed","display","setTimeout","fadeOut","getElementHeight","elementStyle","height","topWrapperOffset","offset","html","wrapper","marginTop","yPos","scrollDuration","distance","currentPosition","cosParameter","scrollCount","oldTimestamp","performance","requestAnimationFrame","step","newTimestamp","PI","cos","bodyRect","body","getBoundingClientRect","top","computedStyle","getComputedStyle","clientHeight","paddingTop","paddingBottom","getParams","param","paramsCopy","_param$split2","decodeURIComponent","getQueryParams","currentURL","href","substring","usernamePadding","naveAccountWelcomeEl","navSignoutEl","width","paddingRight","findAncestorBySelector","parentElement","Element","matches","msMatchesSelector","closest","debounce","func","wait","immediate","timeout","_len","_key","argsCopy","callNow","clearTimeout","debounceCallback","customErrorHandler","getMeta","status","redirectHandler","redirectUrl","_2","statusCodeActionsMap","_callee","_context","redirectWithWarning","handleRedirects","txt","listOrItem","_isArrayLike","currentKeys","nextKeys","arrayOfCurrentKeys","arrayOfNextKeys","indexOfCurrentKey","emptyObjectProperties","mkQueue","_batchSize","batchSize","onBatch","currentPromise","queue","tick","all","splice","cb","enqueue","_queue","setBatchSizeAndRestart","newBatchSize","transitionEndEvent","transitionEvent","transition","OTransition","MozTransition","WebkitTransition","api","whichTransitionEvent","transCallback","getFocusPoint","touches","changedTouches","_ref6$pageX","pageX","_ref6$pageY","pageY","x","y","convertSimpleYamlMapToJson","yaml","match","convertSimpleYamlListMapToJson","network","cur","convertSimpleYamlListToArray","metaName","metas","getElementsByTagName","ajaxJsonRequest","_callee2","_context2","charset","_x2","_x3","_x4","paymentMethodsExceptPaypalExpressThatHasTheSameIconAsPaypal","paymentMethod","googlePayMethodLast","a","b","applePayMethodLast","getPaymentIcons","paymentTypes","paymentMethods","brandArray","iconsOfAllPaymentMethodsExceptCards","_ref9","sort","paymentMode","card","cardBrands","flat","_uniq","setRedirectedWithMessageFlag","isRedirectedWithMessageFlagSet","setCartValidationFlag","webpQuality","enableWebpQuality","renderImageUrl","quality","transformationTemplate","template","imageURL","search","explicitQuality","imageWidth","prevValue","computeQualityParameter","renderImageUrlWithWidth","addWebpExtension","_url$split2","path","Image","alt","wrapperClassName","media","onPictureRef","restOfProps","mediaUrl","_media$transformation","srcSets","prevSize","currentSize","sizeObj","sizeKey","sizeValue","unit","mediaQuery","Set","getSrcsets","imgUrl","min","imgSizes","prevKey","currentMinWidth","curr","getSizes","isWebp","imgType","srcSet","srcset","nonRetina","x2","x3","getSrcsetURLs","imgSrcSetAttr","sourceSrcSetAttr","l","storageType","serializedState","getItem","setItem","removeStorageData","removeItem","breakpoints","large","medium","topbar","xlarge","xxlarge","is_landscape","matchMedia","is_large_only","is_large_up","is_tablet_up","is_tablet_down","is_medium_down","is_medium_only","is_medium_up","is_medium_to_large","is_portrait","is_small_only","is_xlarge_only","is_xlarge_up","is_xxlarge_up","EM_NUMBER_OF_PIXEL","fontSize","breakpointName","re","messagesUrl","globalTranslations","getTranslations","ProviderWrapper","translations","setTranslations","setMessageProperties","handleLocalisationFailure","handleLocalisationSuccess","localStoragePrefix","setState","localStorageKey","hasTranslationsBeenRequested","translationPromise","response","_this3","localStorage","removeLocalisationMessages","IntlProvider","redirectTo","redirectWithSuccess","redirectWithError","PAGE_REFERRER_STORAGE_KEY","getPageReferrerUrl","getProductReferrer","listingCategoryId","productReferrer","pageReferrerUrl","saveProductReferrer","isGridView","page","statusCode","autoHide"],"sourceRoot":""}