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C,KAAMjQ,EAAMkQ,WAAa,CAAEC,SAAUnQ,EAAMmQ,WAAajO,KAAMlC,EAAMkC,KAAM,aAAclC,EAAMoQ,UAAW,gBAAiBpQ,EAAMqQ,aAAc,gBAAiBrQ,EAAMsQ,aAAc,gBAAiBtQ,EAAMuQ,aAAc,cAAevQ,EAAMqN,WAAY,eAAgBrN,EAAMwQ,YAAaC,SAAUzQ,EAAM0Q,eAAiB1Q,EAAM0Q,oBAAiBtD,EAAW5K,GAAIxC,EAAMwC,GAAI,eAAgBxC,EAAM2Q,SAAW3Q,EAAM4Q,eAAiB5Q,EAAM6Q,SAAW,gBAAoB,OAAQ,KAAM7Q,EAAM6Q,WAE5wBxB,EAAOlE,aAAe,CAClB2E,IAAK,CAAC,mBACNlN,UAAW,IAEf,K","sources":["webpack:///./assets/common/src/components/aftercare/ColorAndSize.tsx","webpack:///./assets/common/src/components/common/ErrorBox.tsx","webpack:///./assets/common/src/utils/imageutils.ts","webpack:///./assets/common/src/utils/useBreakpoint.ts","webpack:///./assets/stone/src/components/clientService/OrderItem.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/button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\nconst ColorAndSize = (props) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;\n const { t } = useTranslation();\n if (props.type == 'inline') {\n if (props.invertElements)\n return (React.createElement(React.Fragment, null,\n ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.variationAttributes) === null || _b === void 0 ? void 0 : _b.find((v) => v.id == 'size')) === null || _c === void 0 ? void 0 : _c.displayValue) || ((_d = props === null || props === void 0 ? void 0 : props.item) === null || _d === void 0 ? void 0 : _d.localizedSize),\n ((_g = (_f = (_e = props === null || props === void 0 ? void 0 : props.item) === null || _e === void 0 ? void 0 : _e.variationAttributes) === null || _f === void 0 ? void 0 : _f.find((v) => v.id == 'color')) === null || _g === void 0 ? void 0 : _g.displayValue) || ((_h = props === null || props === void 0 ? void 0 : props.item) === null || _h === void 0 ? void 0 : _h.localizedColor),\n \",\"));\n return (React.createElement(React.Fragment, null,\n ((_l = (_k = (_j = props === null || props === void 0 ? void 0 : props.item) === null || _j === void 0 ? void 0 : _j.variationAttributes) === null || _k === void 0 ? void 0 : _k.find((v) => v.id == 'color')) === null || _l === void 0 ? void 0 : _l.displayValue) || ((_m = props === null || props === void 0 ? void 0 : props.item) === null || _m === void 0 ? void 0 : _m.localizedColor),\n \",\",\n ((_q = (_p = (_o = props === null || props === void 0 ? void 0 : props.item) === null || _o === void 0 ? void 0 : _o.variationAttributes) === null || _p === void 0 ? void 0 : _p.find((v) => v.id == 'size')) === null || _q === void 0 ? void 0 : _q.displayValue) || ((_r = props === null || props === void 0 ? void 0 : props.item) === null || _r === void 0 ? void 0 : _r.localizedSize)));\n }\n if (props.invertElements)\n return (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"option-product__color\" },\n React.createElement(\"span\", { className: \"option-product__label\" }, t('label.color')),\n \":\",\n ' ',\n ((_u = (_t = (_s = props === null || props === void 0 ? void 0 : props.item) === null || _s === void 0 ? void 0 : _s.variationAttributes) === null || _t === void 0 ? void 0 : _t.find((v) => v.id == 'color')) === null || _u === void 0 ? void 0 : _u.displayValue) || ((_v = props === null || props === void 0 ? void 0 : props.item) === null || _v === void 0 ? void 0 : _v.localizedColor)),\n React.createElement(\"p\", { className: \"option-product__size\" },\n React.createElement(\"span\", { className: \"option-product__label\" },\n t('label.size'),\n \":\"),\n ' ',\n ((_y = (_x = (_w = props === null || props === void 0 ? void 0 : props.item) === null || _w === void 0 ? void 0 : _w.variationAttributes) === null || _x === void 0 ? void 0 : _x.find((v) => v.id == 'size')) === null || _y === void 0 ? void 0 : _y.displayValue) || ((_z = props === null || props === void 0 ? void 0 : props.item) === null || _z === void 0 ? void 0 : _z.localizedSize))));\n return (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"option-product__size\" },\n React.createElement(\"span\", { className: \"option-product__label\" },\n t('label.size'),\n \":\"),\n ' ',\n ((_2 = (_1 = (_0 = props === null || props === void 0 ? void 0 : props.item) === null || _0 === void 0 ? void 0 : _0.variationAttributes) === null || _1 === void 0 ? void 0 : _1.find((v) => v.id == 'size')) === null || _2 === void 0 ? void 0 : _2.displayValue) || ((_3 = props === null || props === void 0 ? void 0 : props.item) === null || _3 === void 0 ? void 0 : _3.localizedSize)),\n React.createElement(\"p\", { className: \"option-product__color\" },\n React.createElement(\"span\", { className: \"option-product__label\" }, t('label.color')),\n \":\",\n ' ',\n ((_6 = (_5 = (_4 = props === null || props === void 0 ? void 0 : props.item) === null || _4 === void 0 ? void 0 : _4.variationAttributes) === null || _5 === void 0 ? void 0 : _5.find((v) => v.id == 'color')) === null || _6 === void 0 ? void 0 : _6.displayValue) || ((_7 = props === null || props === void 0 ? void 0 : props.item) === null || _7 === void 0 ? void 0 : _7.localizedColor))));\n};\nexport default ColorAndSize;\n","import classNames from 'classnames';\nimport React from 'react';\nconst ErrorBox = (props) => {\n if (!props.errors || props.errors.length === 0 || props.errors.every((err) => err === '')) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('globalerrors', 'invalid-feedback', props.className), role: \"alert\" }, props.errors.map((e, i) => (React.createElement(\"div\", { key: i }, (e || '').toString())))));\n};\nexport default ErrorBox;\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","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 ColorAndSize from '@common/components/aftercare/ColorAndSize';\nimport ProductImage from '@stone/components/product/ProductImage';\nimport { LG, MD, SM } from '@utils/imageutils';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport PriceDisplay from '../product/PriceDisplay';\nconst OrderItem = (props) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;\n const { t } = useTranslation();\n const showReturnable = () => {\n var _a, _b, _c;\n if ((_a = props.order) === null || _a === void 0 ? void 0 : _a.returnablebystatus) {\n if (props.item.returned || props.returnShow) {\n return (React.createElement(\"div\", { className: \"returnabledisclaimer\" },\n React.createElement(\"p\", null, t('returns.itemalreadyreturned'))));\n }\n if ((!((_b = props.item) === null || _b === void 0 ? void 0 : _b.returnable) || props.alreadyreturned) && !((_c = props.item) === null || _c === void 0 ? void 0 : _c.isMbmExchangeAvailable)) {\n return (React.createElement(\"div\", { className: \"returnabledisclaimer\" },\n React.createElement(\"p\", null, t('returns.itemnotreturnable'))));\n }\n }\n return React.createElement(React.Fragment, null);\n };\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"col bag-product__image\" },\n React.createElement(ProductImage, { sizes: [LG, MD, SM], img: props.item.imgs, type: \"F\", tiletype: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.isMbm) ? 'mbm' : '' })),\n React.createElement(\"div\", { className: \"bag-product__content\" },\n React.createElement(\"div\", { className: \"bag-product__name-price\" },\n React.createElement(\"h3\", { className: \"bag-product__name-price__name\" }, props.item.productName),\n React.createElement(\"div\", { className: \"bag-product__name-price__price\" },\n props.showprice && (React.createElement(PriceDisplay, { list: ((_b = props.item) === null || _b === void 0 ? void 0 : _b.totalPriceBeforeAdjustments) ||\n ((_d = (_c = props.item) === null || _c === void 0 ? void 0 : _c.priceTotal) === null || _d === void 0 ? void 0 : _d.nonAdjustedPrice) ||\n ((_f = (_e = props.item) === null || _e === void 0 ? void 0 : _e.priceTotal) === null || _f === void 0 ? void 0 : _f.price), sales: (_g = props.item) === null || _g === void 0 ? void 0 : _g.totalAdjustedPrice, promotions: props.item.appliedPromotions })),\n ((_h = props.item) === null || _h === void 0 ? void 0 : _h.isPreOrder) && React.createElement(\"div\", { className: \"bag-product__name-price__message\" }, t('button.preorder')),\n !((_j = props.item) === null || _j === void 0 ? void 0 : _j.canceled) && showReturnable())),\n React.createElement(\"div\", { className: \"bag-product__details\" },\n React.createElement(\"div\", { className: ((_k = props.item) === null || _k === void 0 ? void 0 : _k.canceled) && 'container-disclaimer' },\n !props.hidequantity && (React.createElement(\"p\", { className: \"option-product__quantity\" },\n t('bag.quantity'),\n \": \",\n props.item.quantity)),\n ((_l = props.item) === null || _l === void 0 ? void 0 : _l.canceled) && (React.createElement(\"div\", { className: \"cancelleddisclaimer\" },\n React.createElement(\"p\", null, t('returns.itemcancelled'))))),\n React.createElement(ColorAndSize, { item: props.item }))),\n props.showprice && ((_m = props.item) === null || _m === void 0 ? void 0 : _m.isMbm) && ((_o = props.order) === null || _o === void 0 ? void 0 : _o.orderStatus.value) == 'cancelled' && (React.createElement(\"div\", { className: \"info-box\" },\n React.createElement(\"h3\", { className: \"bold mb-8\" }, t('order.disclaimer')),\n React.createElement(\"p\", { dangerouslySetInnerHTML: { __html: t('mbm.itemrejected', { 0: props === null || props === void 0 ? void 0 : props.urllegalareareturn }) } })))));\n};\nexport default OrderItem;\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 classNames from 'classnames';\nimport React from 'react';\nconst Button = (props) => {\n const handleClick = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onClick) {\n e.preventDefault();\n }\n props.onClick && props.onClick.call(this, e);\n };\n const handleKeyDown = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onKeyDown) {\n e.preventDefault();\n }\n props.onKeyDown && props.onKeyDown.call(this, e);\n };\n return (React.createElement(\"button\", { ref: props.reference, onClick: handleClick, onFocus: props === null || props === void 0 ? void 0 : props.onFocus, onKeyDown: handleKeyDown, disabled: props.disabled, className: classNames('button', props.cls, props.className, { loading: props.isLoading }, { full: props.fullWidth }, { inverted: props.inverted }), type: props.type, \"aria-label\": props.ariaLabel, \"aria-expanded\": props.ariaExpanded, \"aria-haspopup\": props.ariaHaspopup, \"aria-controls\": props.ariaControls, \"aria-hidden\": props.ariaHidden, \"aria-pressed\": props.ariaPressed, tabIndex: props.customTabIndex ? props.customTabIndex : undefined, id: props.id, \"data-pressed\": props.pressed }, props.customChildren ? props.children : React.createElement(\"span\", null, props.children)));\n};\nButton.defaultProps = {\n cls: ['button--primary'],\n className: '',\n};\nexport default Button;\n"],"names":["props","_a","_b","_c","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_0","_1","_2","_3","_4","_5","_6","_7","t","type","invertElements","item","variationAttributes","find","v","id","displayValue","localizedSize","localizedColor","className","errors","length","every","err","role","map","e","i","key","toString","imageutils","transform","url","size","alt","quality","format","indexOf","name","remove","lower","fullurl","replace","width","height","params","push","imgQuality","window","imagequality","webpsupported","join","includes","this","clearParams","hires","HIRES","large","LG","medium","MD","small","SM","extraSmall","XS","urlObj","URL","href","search","devmode","console","log","srcset","maxwidth","sizes","Object","values","mqObj","ww","some","indexLimit","findIndex","splice","aspectratio","MO","ST","Math","round","XXS","mediaQueries","assign","currentBreakpoint","setCurrentBreakpoint","useState","documentWidth","innerWidth","visualViewport","filtered","keys","filter","getInitialBreakpointValue","handleResize","currentBr","getCurrentBreakpoint","useEffect","addEventListener","removeEventListener","img","imgs","tiletype","isMbm","productName","showprice","list","totalPriceBeforeAdjustments","priceTotal","nonAdjustedPrice","price","sales","totalAdjustedPrice","promotions","appliedPromotions","isPreOrder","canceled","order","returnablebystatus","returned","returnShow","returnable","alreadyreturned","isMbmExchangeAvailable","showReturnable","hidequantity","quantity","orderStatus","value","dangerouslySetInnerHTML","__html","urllegalareareturn","PriceDisplay","isMobile","inline","language","minFullPrice","min","promo","hasDiscountPrice","isExchangePrice","originalprice","currentprice","currency","discount","isPlp","calloutMsg","defaultProps","defaultSizes","image","useMemo","index","urls","imageoldsuffix","imagenewsuffix","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","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","isDesktop","isWideDesktop","xxl","isReflow","Button","reference","onClick","usesDefault","preventDefault","call","onFocus","onKeyDown","disabled","cls","loading","isLoading","full","fullWidth","inverted","ariaLabel","ariaExpanded","ariaHaspopup","ariaControls","ariaPressed","tabIndex","customTabIndex","pressed","customChildren","children"],"sourceRoot":""}