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AEH,OADA3M,OAAOmG,iBAAiB,SAAUJ,GAC3B,IAAM/F,OAAOoG,oBAAoB,SAAUL,EAAa,GAChE,CAAC4F,EAAYE,IACT,CAEHe,cAAejB,GAAc3L,OAAOiC,MAAM4K,GAE1C7E,SAAU2D,EAAa3L,OAAOiC,MAAM6K,GAEpCC,SAAUpB,GAAc3L,OAAOiC,MAAM+K,IAAMrB,EAAa3L,OAAOiC,MAAM6K,GAErEG,eAAgBtB,GAAc3L,OAAOiC,MAAMiI,GAE3C3D,UAAWoF,GAAc3L,OAAOiC,MAAM6K,GAEtCI,cAAevB,GAAc3L,OAAOiC,MAAMkL,IAC1CpB,QAASA,EACTqB,SAAUvB,EA5FC,IA6Fd,C,uCC9FL,MAAMwB,EAAQhH,IACV,MAAMiH,EAAO,GAAGjH,EAAMM,UAAUN,EAAM/G,OAAO+G,EAAMkH,SAAW,SAAW,KACzE,OAAO,gBAAoB,OAAQ,CAAE,aAAclH,EAAMmH,UAAW,eAAe,EAAM9G,UAAW,cAAc4G,KAAQjH,EAAMoH,SAAW,YAAc,MAAO,EAEpKJ,EAAKvE,aAAe,CAChBnC,OAAQ,KACR4G,UAAU,EACVlC,YAAY,GAEhB,K","sources":["webpack:///./assets/common/src/state/features/orders.selectors.ts","webpack:///./assets/common/src/utils/imageutils.ts","webpack:///./assets/common/src/utils/stringUtils.ts","webpack:///./assets/common/src/utils/useBreakpoint.ts","webpack:///./assets/stone/src/components/order/OrderTile.tsx","webpack:///./assets/stone/src/components/product/PriceDisplay.tsx","webpack:///./assets/stone/src/components/product/ProductImage.tsx","webpack:///./assets/stone/src/hooks/useMediaQueries.tsx","webpack:///./assets/stone/src/ui/icon/Icon.tsx"],"sourcesContent":["export const getOrdersHistory = (state) => ({\n orders: state.orders.orders,\n returns: state.orders.returns,\n afterCares: state.orders.afterCares,\n loading: state.orders.loading,\n});\nexport const getOrdersPage = (state) => ({\n orders: state.orders.orders,\n returns: state.orders.returns,\n loading: state.orders.loading,\n orderTotal: state.orders.orderTotal,\n returnTotal: state.orders.returnTotal,\n});\nexport const getReturnableOrders = (state) => {\n var _a;\n return ({\n orders: (_a = state.orders.orders) === null || _a === void 0 ? void 0 : _a.filter((o) => o.isEligibleForReturn || o.isEligibleForReturnInDifferentCountry),\n returns: state.orders.returns,\n afterCares: state.orders.afterCares,\n loading: state.orders.loading,\n });\n};\nexport const getReturnsInfo = (state) => ({\n returnFlow: state.orders.returnFlow,\n errorMessage: state.orders.errorMessage,\n confirmedReturn: state.orders.confirmedReturn,\n returnRequest: state.orders.returnRequest ||\n {\n items: [],\n orderNo: null,\n },\n currentOrderDetail: state.orders.currentOrderDetail,\n});\nexport const isUserAuthenticated = (state) => state.userInfo;\n","import slugify from 'slugify';\nimport { getId } from './brandDiffsUtils';\nconst imageutils = {\n // res: {\n // HIRES: { width: 1571, height: 2000 },\n // LG: { width: 1024, height: 1304 },\n // MD: { width: 768, height: 977 },\n // SM: { width: 360, height: 458 },\n // XS: { width: 73, height: 93 },\n // XXS: { width: 15, height: 19 },\n // },\n transform: function (url, size, alt, quality, format) {\n if (!url) {\n return url;\n }\n if (url.indexOf('thron') > -1) {\n let name = alt ? slugify(alt, { remove: /[*+~.()'\"!:@/]/g, lower: true }) : 'image';\n let fullurl = url.replace(/\\/0x0\\/.*/, `/${size.width}x${size.height}/${name}.jpg`);\n let params = [];\n params.push(['scalemode', 'centered']);\n params.push(['adjustcrop', 'reduce']);\n const imgQuality = quality || window.imagequality;\n if (imgQuality > 0) {\n params.push(['quality', imgQuality]);\n }\n if (window.webpsupported) {\n switch (format) {\n case 'avif':\n params.push(['format', 'avif']);\n break;\n default:\n params.push(['format', 'WEBP']);\n break;\n }\n }\n if (params.length > 0) {\n fullurl = fullurl + '?' + params.map((i) => i[0] + '=' + i[1]).join('&');\n }\n return fullurl;\n }\n if (url.includes('fluidconfigure')) {\n return `${url}?width=${size.width}&height=${size.height}`;\n }\n url = this.clearParams(url);\n return `${url}?sw=${size.width}` + ((size.height && `&sh=${size.height}`) || '');\n },\n hires: function (url, alt) {\n return this.transform(url, HIRES, alt);\n },\n large: function (url, alt) {\n return this.transform(url, LG, alt);\n },\n medium: function (url, alt) {\n return this.transform(url, MD, alt);\n },\n small: function (url, alt) {\n return this.transform(url, SM, alt);\n },\n extraSmall: function (url, alt) {\n return this.transform(url, XS, alt);\n },\n clearParams: function (url) {\n try {\n if (url.indexOf('?') < 0)\n return url;\n const urlObj = new URL(url);\n return urlObj.href.replace(urlObj.search, '');\n }\n catch (e) {\n window.devmode && console.log('Impossible to clearParams of', url);\n }\n return url;\n },\n srcset: function (url, maxwidth, sizes) {\n url = this.clearParams(url);\n if (!sizes) {\n sizes = Object.values(window.mqObj).map((ww) => ({\n width: ww,\n }));\n }\n if (!sizes.length)\n return '';\n if (maxwidth && sizes.some((size) => size.width > maxwidth)) {\n let indexLimit = sizes.findIndex((size) => size.width > maxwidth);\n sizes.splice(indexLimit);\n sizes.push({\n width: maxwidth,\n });\n }\n return sizes\n .map((size) => {\n return `${this.transform(url, size, '')} ${size.width}w`;\n })\n .join(',');\n },\n};\nexport default imageutils;\n// let aspectratio = 2000 / 1571; // oldimages\nlet aspectratio = {\n MO: 2880 / 1920,\n ST: 2880 / 2160,\n};\nconst size = (width) => {\n return {\n width: width,\n height: Math.round(width * aspectratio[getId()]),\n };\n};\nexport const HIRES = size(1571);\nexport const LG = size(1024);\nexport const MD = size(768);\nexport const SM = size(360);\nexport const XS = size(73);\nexport const XXS = size(30); // servirà per il lazyloading\n","export const slugify = (text) => text.toLowerCase().split(' ').join('-');\nexport const getElementFromHtmlString = (htmlString, selector) => {\n var _a;\n let textVal = null;\n let div = document.createElement('div');\n div.innerHTML = htmlString;\n textVal = (_a = div.querySelector(selector)) === null || _a === void 0 ? void 0 : _a.innerHTML;\n return textVal;\n};\n// FIXME queste cose vanno fatte a backend, non qui\nexport const calculateDateforJP = (date) => {\n if (!date)\n return;\n const splitted = date.split('.');\n const year = splitted.pop();\n const days = splitted.shift();\n if (year.length == 4 && window.country == 'JP') {\n splitted.splice(0, 0, year);\n splitted.splice(2, 0, days);\n return splitted.join('.');\n }\n else {\n return date;\n }\n};\nexport const validateEmail = (email) => {\n return /^[\\w.%+-]+@[\\w.-]+\\.[\\w]{2,6}$/.test(email);\n};\nexport const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\nexport const getZeroPadNumber = (_number, digits = 2) => {\n return _number.toString().length >= digits ? _number.toString() : _number.toString().padStart(digits, '0');\n};\n// REF :: https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color\nexport const useStringRgbContrast = (rgbCssString, dark = 'rgb(0,0,0)', light = 'rgb(255,255,255)') => {\n if (!rgbCssString)\n return dark;\n //parso la stringa RGB\n let rgb = rgbCssString.replace('rgb(', '').replace(')', '').split(',');\n if (rgb.length < 3)\n return dark;\n //trasformo rgb in srgb\n let srgb = rgb.map((n) => {\n let c = Number(n) / 255;\n if (c <= 0.04045)\n return c / 12.92;\n return Math.pow((c + 0.055) / 1.055, 2.4);\n });\n //calcolo la luminescenza\n const L = 0.2126 * srgb[0] + 0.7152 * srgb[1] + 0.0722 * srgb[2];\n //calcolo se il colore di contrasto è light\n const useDark = L > Math.sqrt(1.05 * 0.05) - 0.05;\n // console.log(`%c${rgbCssString}`, `background-color: ${rgbCssString}; color: ${useDark ? '#000' : '#FFF'}; padding:4px; border: solid 1px red;`, L, srgb, rgb);\n //ritorno la stringa passata come parametro\n return useDark ? dark : light;\n};\nexport const getRandomUUID = (prefix) => {\n var _a, _b;\n let uuid = ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) && ((_b = window.crypto) === null || _b === void 0 ? void 0 : _b.randomUUID());\n if (!uuid)\n uuid = Math.random().toString(26);\n return `${prefix || ''}${uuid}`;\n};\n","import { useEffect, useState } from 'react';\nconst getInitialBreakpointValue = () => {\n var _a;\n // get initial breakpoint is called before the page is fully loaded and innerWith may be 0. windows.mqObj may not be set\n const mediaQueries = window.mqObj;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0 || !mediaQueries) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n const initalBr = filtered.length ? mediaQueries[filtered[filtered.length - 1]] : mediaQueries['xs'];\n // console.info('[getInitialBreakpointValue]: ', documentWidth, initalBr);\n return initalBr;\n};\nconst mediaQueries = Object.assign({ ' {\n const [currentBreakpoint, setCurrentBreakpoint] = useState(getInitialBreakpointValue());\n const getCurrentBreakpoint = () => {\n var _a;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n return mediaQueries[filtered[filtered.length - 1]];\n };\n const handleResize = () => {\n const currentBr = getCurrentBreakpoint();\n if (currentBr && currentBr !== currentBreakpoint) {\n // console.info('%c[React - Breakpoint change] ', 'color: green;font-weight: bold;', currentBr);\n setCurrentBreakpoint(currentBr);\n }\n };\n // const debounceResize = () => {\n // handleResize();\n // };\n useEffect(() => {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n });\n return currentBreakpoint;\n};\nexport default useBreakpoint;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ProductImage from '../product/ProductImage';\nimport Icon from '@stone/ui/icon/Icon';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport PriceDisplay from '../product/PriceDisplay';\nconst OrderTile = (props) => {\n const { t } = useTranslation();\n const { isDesktop } = useMediaQueries();\n const { lineItem } = props;\n const renderReturnedFlag = () => (React.createElement(\"div\", { className: \"returned-flag\" },\n React.createElement(Icon, { name: \"correct\", family: \"10\" }),\n t('return.status.returned')));\n return (React.createElement(\"div\", { className: \"product-tile product-tile-order\" },\n React.createElement(\"div\", { className: \"product-tile-order__content\" },\n React.createElement(ProductImage, { type: \"F\", img: lineItem === null || lineItem === void 0 ? void 0 : lineItem.imgs }),\n React.createElement(\"div\", { className: \"product-tile-order__info\" },\n React.createElement(\"div\", { className: \"product-tile-order__info-title\" },\n React.createElement(\"h3\", { className: \"product-tile-order__name\" }, lineItem.productName),\n React.createElement(\"div\", { className: \"product-tile-order__price\" }, props.isReturn ? (React.createElement(\"div\", { className: \"product-tile-order__price\" },\n React.createElement(\"span\", { className: \"visually-hidden\", \"aria-live\": \"assertive\" }, lineItem.priceTotal.price),\n React.createElement(\"span\", { className: \"product-price\", \"aria-hidden\": \"true\" }, lineItem.priceTotal.price))) : (React.createElement(PriceDisplay, { sales: lineItem.totalPriceAfterAdjustmentsOrUpdates, list: lineItem.totalPriceBeforeAdjustments || lineItem.priceTotal.price, promotions: lineItem.appliedPromotions })))),\n React.createElement(\"div\", { className: \"product-tile-order__info-specs\" },\n React.createElement(\"div\", { className: \"product-tile-order__info-attributes\" },\n !props.hideQuantity && (lineItem === null || lineItem === void 0 ? void 0 : lineItem.quantity) && (React.createElement(\"p\", null,\n React.createElement(\"span\", { className: \"product-tile-order__info-label\" },\n t('account.ordershistory.quantity'),\n \"\\u00A0\"),\n React.createElement(\"span\", { className: \"product-tile-order__info-value qty\" }, lineItem === null || lineItem === void 0 ? void 0 : lineItem.quantity))),\n (lineItem === null || lineItem === void 0 ? void 0 : lineItem.localizedColor) && (React.createElement(\"p\", null,\n React.createElement(\"span\", { className: \"product-tile-order__info-label\" },\n t('account.ordershistory.color'),\n \"\\u00A0\"),\n React.createElement(\"span\", { className: \"product-tile-order__info-value color\" }, lineItem === null || lineItem === void 0 ? void 0 : lineItem.localizedColor))),\n (lineItem === null || lineItem === void 0 ? void 0 : lineItem.localizedColor) && (React.createElement(\"p\", null,\n React.createElement(\"span\", { className: \"product-tile-order__info-label\" },\n t('account.ordershistory.size'),\n \"\\u00A0\"),\n React.createElement(\"span\", { className: \"product-tile-order__info-value size\" }, lineItem === null || lineItem === void 0 ? void 0 : lineItem.localizedSize))),\n props.returnReason && props.isReturn && (React.createElement(\"p\", null,\n React.createElement(\"span\", { className: \"product-tile-order__info-label\" },\n t('returns.reasonforreturn'),\n \"\\u00A0\"),\n React.createElement(\"span\", { className: \"product-tile-order__info-value size\" }, props.returnReason)))),\n lineItem.returned && isDesktop && renderReturnedFlag()))),\n lineItem.returned && !isDesktop && renderReturnedFlag()));\n};\nexport default OrderTile;\n","import useMediaQueries from '@stone/hooks/useMediaQueries';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst PriceDisplay = (props) => {\n var _a;\n const { t } = useTranslation();\n const { isMobile } = useMediaQueries();\n const printMinRangePrice = () => {\n return (React.createElement(React.Fragment, null,\n props.minFullPrice && props.minFullPrice !== props.min && React.createElement(\"del\", { className: \"product-price-list\" }, props.minFullPrice),\n props.min));\n };\n if (props.type === 'range') {\n return (React.createElement(\"span\", { className: classNames('product-price', {\n inline: props.inline,\n }) },\n window.language != 'ja' && t('label.from') + ' ',\n printMinRangePrice(),\n window.language == 'ja' && ' ' + t('label.from')));\n }\n const promo = (_a = props.promotions) === null || _a === void 0 ? void 0 : _a[0];\n const hasDiscountPrice = props.list && !props.isExchangePrice && (props === null || props === void 0 ? void 0 : props.list) !== (props === null || props === void 0 ? void 0 : props.sales);\n const a11yRender = () => {\n return (React.createElement(\"span\", { className: \"visually-hidden\" }, props.list && !props.isExchangePrice ? (t('product.price.discounted.a11y', {\n originalprice: props.list,\n currentprice: props.sales,\n currency: props.currency,\n })) : (React.createElement(React.Fragment, null,\n props.isExchangePrice && t('order.exchangecredit'),\n \" \",\n props.sales,\n \" \",\n props.currency ? ` ${props.currency}` : ''))));\n };\n return (React.createElement(React.Fragment, null,\n a11yRender(),\n React.createElement(\"span\", { className: classNames('product-price', {\n inline: props.inline,\n discount: hasDiscountPrice,\n 'justify-between': props.isPlp && isMobile && hasDiscountPrice,\n }), \"aria-hidden\": true },\n React.createElement(\"span\", { className: classNames('product-price-wrap', {\n 'd-column': props.isPlp && isMobile && hasDiscountPrice,\n }) },\n hasDiscountPrice && React.createElement(\"del\", { className: \"product-price-list\" }, props.list),\n React.createElement(\"span\", { className: \"product-price-sale\" },\n props.sales,\n props.currency ? ` ${props.currency}` : '')),\n (promo === null || promo === void 0 ? void 0 : promo.calloutMsg) && React.createElement(\"span\", { className: \"product-price-msg\" }, promo.calloutMsg))));\n};\nPriceDisplay.defaultProps = {\n inline: false,\n};\nexport default PriceDisplay;\n","import useBreakpoint from '@common/utils/useBreakpoint';\nimport imageutils, { MD, SM, XS, XXS, LG } from '@utils/imageutils';\nimport classNames from 'classnames';\nimport React, { useEffect, useMemo, useRef } from 'react';\nconst defaultSizes = [XXS, XS, SM, MD];\nconst ProductImage = (props) => {\n var _a;\n const currentBreakpoint = useBreakpoint();\n const image = useMemo(() => {\n var _a, _b, _c, _d, _e, _f;\n if (props.index) {\n return (_a = props.img) === null || _a === void 0 ? void 0 : _a.urls[props.index];\n }\n let img;\n if (props.type) {\n let imageoldsuffix = '_' + props.type + '.';\n let imagenewsuffix = '_' + props.type + '1.';\n img = (_c = (_b = props.img) === null || _b === void 0 ? void 0 : _b.urls) === null || _c === void 0 ? void 0 : _c.find((u) => u && (u.includes(imageoldsuffix) || u.includes(imagenewsuffix)));\n }\n if (!img && props.typeFallback) {\n const typeFallbackSuffix = '_' + props.typeFallback;\n img = (_e = (_d = props.img) === null || _d === void 0 ? void 0 : _d.urls) === null || _e === void 0 ? void 0 : _e.find((u) => u.includes(typeFallbackSuffix));\n }\n if (img) {\n return img;\n }\n else {\n return (_f = props.img) === null || _f === void 0 ? void 0 : _f.urls[0];\n }\n }, [props.img, props.index, props.type]);\n const el = useRef();\n const lowResImg = useMemo(() => { var _a; return imageutils.transform(image, XXS, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt); }, [image]);\n const hiResImage = useMemo(() => {\n var _a, _b;\n //@ts-ignore disable-next-line\n if (currentBreakpoint >= window.mqObj.md) {\n return imageutils.transform(image, LG, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt, null, 'avif');\n }\n else {\n return imageutils.transform(image, MD, (_b = props.img) === null || _b === void 0 ? void 0 : _b.alt, null, 'avif');\n }\n }, [currentBreakpoint, image]);\n const multipleSrc = useMemo(() => {\n let srcs = [];\n (props.sizes || defaultSizes).forEach((sz, i) => {\n var _a;\n srcs.push(`${imageutils.transform(image, sz, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt)} ${sz.width}w`);\n });\n return srcs.join(', ');\n }, [image]);\n const multipleSrcAvif = useMemo(() => {\n let srcs = [];\n (props.sizes || defaultSizes).forEach((sz, i) => {\n var _a;\n srcs.push(`${imageutils.transform(image, sz, (_a = props.img) === null || _a === void 0 ? void 0 : _a.alt, null, 'avif')} ${sz.width}w`);\n });\n return srcs.join(', ');\n }, [image]);\n const altText = useMemo(() => {\n var _a, _b;\n const index = (_a = props.seoIndex) !== null && _a !== void 0 ? _a : props.index;\n return `${props.alt || ((_b = props.img) === null || _b === void 0 ? void 0 : _b.alt)}${index >= 0 ? ` ${index + 1}` : ''}`;\n }, [image]);\n useEffect(() => {\n props.onHasImage && props.onHasImage(!!image);\n }, [image]);\n const lazyPosterImg = useMemo(() => {\n return props.lazyLowRes ? lowResImg : 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n }, [image]);\n const imageElement = (React.createElement(\"picture\", { className: classNames({ lazyload: !props.lazyDisabled }, props.className) },\n React.createElement(\"source\", Object.assign({}, (!props.lazyDisabled && { ['data-srcset']: multipleSrcAvif }), { srcSet: props.lazyDisabled ? multipleSrcAvif : lazyPosterImg, type: \"image/avif\" })),\n React.createElement(\"source\", Object.assign({}, (!props.lazyDisabled && { ['data-srcset']: multipleSrc }), { srcSet: props.lazyDisabled ? multipleSrc : lazyPosterImg, type: \"image/webp\" })),\n React.createElement(\"img\", { ref: props.ref || el, alt: altText, src: props.lazyDisabled ? hiResImage : lowResImg, \"data-sizes\": \"auto\", \"data-idx\": props.index || 0, className: classNames({ lazyload: !props.lazyDisabled }, props.className), \"data-quality-img\": hiResImage, width: XXS.width, height: XXS.height, style: props.style, \"aria-hidden\": (props === null || props === void 0 ? void 0 : props.ariaHidden) != undefined ? props === null || props === void 0 ? void 0 : props.ariaHidden : !!props.alt || !!((_a = props.img) === null || _a === void 0 ? void 0 : _a.alt) })));\n if (props.onlyImage) {\n return imageElement;\n }\n if (!props.img || !image) {\n return (React.createElement(\"div\", { className: \"product-image\", \"data-tiletype\": props.tiletype, \"data-type\": props.type },\n React.createElement(\"img\", { alt: altText, src: \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\", \"data-idx\": props.index || 0, className: props.className, width: XXS.width, height: XXS.height, style: props.style })));\n }\n return (React.createElement(\"div\", { className: \"product-image\", \"data-tiletype\": props.tiletype, \"data-type\": props.type }, imageElement));\n};\nexport default ProductImage;\n","import { throttle } from 'lodash';\nimport { useLayoutEffect, useEffect, useRef, useState } from 'react';\nconst REFLOW_CAP = 400;\nconst getInitialBreakpointValue = () => {\n // get initial breakpoint is called before the page is fully loaded and innerWith may be 0. windows.mqObj may not be set\n var _a;\n const mediaQueries = window.mqObj;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0 || !mediaQueries) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n const initalBr = filtered.length ? mediaQueries[filtered[filtered.length - 1]] : mediaQueries['xs'];\n // console.info('[getInitialBreakpointValue]: ', documentWidth, initalBr);\n return initalBr;\n};\nconst getReflowValue = () => {\n var _a;\n const documentHeight = window.innerHeight || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height);\n if (documentHeight == 0) {\n return;\n }\n return documentHeight < REFLOW_CAP ? 399 : REFLOW_CAP;\n};\nconst mediaQueries = Object.assign({ ' {\n const [breakpoint, setBreakpoint] = useState(getInitialBreakpointValue());\n const [breakpointHeight, setBreakpointHeight] = useState(getReflowValue());\n const [isTouch, setIsTouch] = useState(false);\n // const [isMotionReduced, setIsMotionReduced] = useState(false);\n const firstRender = useRef(true);\n function detectTouchscreen() {\n if (window.PointerEvent && 'maxTouchPoints' in navigator) {\n // if Pointer Events are supported, just check maxTouchPoints\n if (navigator.maxTouchPoints > 0) {\n setIsTouch(true);\n }\n }\n else {\n // no Pointer Events...\n if (window.matchMedia && window.matchMedia('(any-pointer:coarse)').matches) {\n // check for any-pointer:coarse which mostly means touchscreen\n setIsTouch(true);\n }\n else if (window.TouchEvent || 'ontouchstart' in window) {\n // last resort - check for exposed touch events API / event handler\n setIsTouch(true);\n }\n }\n }\n const getCurrentBreakpoint = () => {\n var _a;\n const documentWidth = window.innerWidth || ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.width);\n if (documentWidth == 0) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n return mediaQueries[filtered[filtered.length - 1]];\n };\n useEffect(() => {\n if (firstRender.current) {\n // setBreakpoint(window.innerWidth);\n firstRender.current = false;\n detectTouchscreen();\n }\n }, []);\n useLayoutEffect(() => {\n const handleResize = throttle(() => {\n const currentBr = getCurrentBreakpoint();\n if (currentBr && currentBr !== breakpoint) {\n setBreakpoint(currentBr);\n }\n const currentHBr = getReflowValue();\n if (currentHBr && currentHBr !== breakpointHeight) {\n setBreakpointHeight(currentHBr);\n }\n }, 200);\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, [breakpoint, breakpointHeight]);\n return {\n //@ts-ignore disable-next-line\n isTightMobile: breakpoint <= window.mqObj.xs,\n //@ts-ignore disable-next-line\n isMobile: breakpoint < window.mqObj.lg,\n //@ts-ignore disable-next-line\n isTablet: breakpoint >= window.mqObj.sm && breakpoint < window.mqObj.lg,\n //@ts-ignore disable-next-line\n isSmallDesktop: breakpoint >= window.mqObj.md,\n //@ts-ignore disable-next-line\n isDesktop: breakpoint >= window.mqObj.lg,\n //@ts-ignore disable-next-line\n isWideDesktop: breakpoint >= window.mqObj.xxl,\n isTouch: isTouch,\n isReflow: breakpointHeight < REFLOW_CAP,\n };\n};\nexport default useMediaQueries;\n","import React from 'react';\nconst Icon = (props) => {\n const icon = `${props.family}-${props.name}${props.inverted ? '-white' : ''}`;\n return React.createElement(\"span\", { \"aria-label\": props.ariaLabel, \"aria-hidden\": true, className: `icon icon--${icon} ${props.autoSize ? 'auto-size' : ''}` });\n};\nIcon.defaultProps = {\n family: '10',\n inverted: false,\n ariaHidden: false,\n};\nexport default Icon;\n"],"names":["getOrdersHistory","state","orders","returns","afterCares","loading","getOrdersPage","orderTotal","returnTotal","getReturnableOrders","_a","filter","o","isEligibleForReturn","isEligibleForReturnInDifferentCountry","getReturnsInfo","returnFlow","errorMessage","confirmedReturn","returnRequest","items","orderNo","currentOrderDetail","isUserAuthenticated","userInfo","imageutils","transform","url","size","alt","quality","format","indexOf","name","remove","lower","fullurl","replace","width","height","params","push","imgQuality","window","imagequality","webpsupported","length","map","i","join","includes","this","clearParams","hires","HIRES","large","LG","medium","MD","small","SM","extraSmall","XS","urlObj","URL","href","search","e","devmode","console","log","srcset","maxwidth","sizes","Object","values","mqObj","ww","some","indexLimit","findIndex","splice","aspectratio","MO","ST","Math","round","XXS","getElementFromHtmlString","htmlString","selector","textVal","div","document","createElement","innerHTML","querySelector","calculateDateforJP","date","splitted","split","year","pop","days","shift","country","validateEmail","email","test","capitalizeFirstLetter","string","charAt","toUpperCase","slice","getZeroPadNumber","_number","digits","toString","padStart","getRandomUUID","prefix","_b","uuid","crypto","randomUUID","random","mediaQueries","assign","currentBreakpoint","setCurrentBreakpoint","useState","documentWidth","innerWidth","visualViewport","filtered","keys","key","getInitialBreakpointValue","handleResize","currentBr","getCurrentBreakpoint","useEffect","addEventListener","removeEventListener","props","t","isDesktop","lineItem","renderReturnedFlag","className","family","type","img","imgs","productName","isReturn","priceTotal","price","sales","totalPriceAfterAdjustmentsOrUpdates","list","totalPriceBeforeAdjustments","promotions","appliedPromotions","hideQuantity","quantity","localizedColor","localizedSize","returnReason","returned","PriceDisplay","isMobile","inline","language","minFullPrice","min","promo","hasDiscountPrice","isExchangePrice","originalprice","currentprice","currency","discount","isPlp","calloutMsg","defaultProps","defaultSizes","image","useMemo","_c","_d","_e","_f","index","urls","imageoldsuffix","imagenewsuffix","find","u","typeFallback","typeFallbackSuffix","el","useRef","lowResImg","hiResImage","md","multipleSrc","srcs","forEach","sz","multipleSrcAvif","altText","seoIndex","onHasImage","lazyPosterImg","lazyLowRes","imageElement","lazyload","lazyDisabled","srcSet","ref","src","style","undefined","ariaHidden","onlyImage","tiletype","getReflowValue","documentHeight","innerHeight","breakpoint","setBreakpoint","breakpointHeight","setBreakpointHeight","isTouch","setIsTouch","firstRender","current","PointerEvent","navigator","maxTouchPoints","matchMedia","matches","TouchEvent","useLayoutEffect","throttle","currentHBr","isTightMobile","xs","lg","isTablet","sm","isSmallDesktop","isWideDesktop","xxl","isReflow","Icon","icon","inverted","ariaLabel","autoSize"],"sourceRoot":""}