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,CAAEvG,GAAI,iBAAkByF,KAAM,WAAYzE,UAAW,uBAC5E,gBAAoB,KAAM,CAAEA,UAAW,sBAAwBkH,EAAe/H,KAAI,CAAC4C,EAAS3P,IAAW,gBAAoBmV,EAAA,EAAkB,CAAEtF,UAAqB,IAAV7P,GAAe2P,EAAQE,UAAWtJ,IAAKvG,EAAO2P,QAASA,OACjN4D,GAAY,gBAAoB,MAAO,CAAE3F,UAAW,+BAChD,gBAAoB,SAAU,CAAEA,UAAW,6CAA8CO,QA3BnFlR,IACdA,EAAEmY,iBACFF,EAAA,oBACApB,GAAa,GACT5X,OAAOuU,UACP,OAAyB,qBAAsB,CAC3CC,MAAO,2BACPC,OAAQ,CACJC,OAAQ,qCACRC,WAAY,eAGxB,GAgBY,gBAAoB,OAAQ,KAAM9I,EAAE,kCAAoC","sources":["webpack:///./node_modules/gsap/ScrollToPlugin.js","webpack:///./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack:///./node_modules/react-i18next/dist/es/utils.js","webpack:///./node_modules/react-i18next/dist/es/useTranslation.js","webpack:///./assets/common/src/utils/appstate.ts","webpack:///./assets/moncler/src/components/grenoble/ProductRangeCarousel.tsx","webpack:///./assets/moncler/src/components/monclernow/ArticleThumbnail.tsx","webpack:///./assets/moncler/src/components/monclernow/Filters.tsx","webpack:///./assets/moncler/src/components/monclernow/Portal.tsx"],"sourcesContent":["/*!\n * ScrollToPlugin 3.10.4\n * https://greensock.com\n *\n * @license Copyright 2008-2022, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar gsap,\n _coreInitted,\n _window,\n _docEl,\n _body,\n _toArray,\n _config,\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _getGSAP = function _getGSAP() {\n return gsap || _windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap;\n},\n _isString = function _isString(value) {\n return typeof value === \"string\";\n},\n _isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n},\n _max = function _max(element, axis) {\n var dim = axis === \"x\" ? \"Width\" : \"Height\",\n scroll = \"scroll\" + dim,\n client = \"client\" + dim;\n return element === _window || element === _docEl || element === _body ? Math.max(_docEl[scroll], _body[scroll]) - (_window[\"inner\" + dim] || _docEl[client] || _body[client]) : element[scroll] - element[\"offset\" + dim];\n},\n _buildGetter = function _buildGetter(e, axis) {\n //pass in an element and an axis (\"x\" or \"y\") and it'll return a getter function for the scroll position of that element (like scrollTop or scrollLeft, although if the element is the window, it'll use the pageXOffset/pageYOffset or the documentElement's scrollTop/scrollLeft or document.body's. Basically this streamlines things and makes a very fast getter across browsers.\n var p = \"scroll\" + (axis === \"x\" ? \"Left\" : \"Top\");\n\n if (e === _window) {\n if (e.pageXOffset != null) {\n p = \"page\" + axis.toUpperCase() + \"Offset\";\n } else {\n e = _docEl[p] != null ? _docEl : _body;\n }\n }\n\n return function () {\n return e[p];\n };\n},\n _clean = function _clean(value, index, target, targets) {\n _isFunction(value) && (value = value(index, target, targets));\n\n if (typeof value !== \"object\") {\n return _isString(value) && value !== \"max\" && value.charAt(1) !== \"=\" ? {\n x: value,\n y: value\n } : {\n y: value\n }; //if we don't receive an object as the parameter, assume the user intends \"y\".\n } else if (value.nodeType) {\n return {\n y: value,\n x: value\n };\n } else {\n var result = {},\n p;\n\n for (p in value) {\n result[p] = p !== \"onAutoKill\" && _isFunction(value[p]) ? value[p](index, target, targets) : value[p];\n }\n\n return result;\n }\n},\n _getOffset = function _getOffset(element, container) {\n element = _toArray(element)[0];\n\n if (!element || !element.getBoundingClientRect) {\n return console.warn(\"scrollTo target doesn't exist. Using 0\") || {\n x: 0,\n y: 0\n };\n }\n\n var rect = element.getBoundingClientRect(),\n isRoot = !container || container === _window || container === _body,\n cRect = isRoot ? {\n top: _docEl.clientTop - (_window.pageYOffset || _docEl.scrollTop || _body.scrollTop || 0),\n left: _docEl.clientLeft - (_window.pageXOffset || _docEl.scrollLeft || _body.scrollLeft || 0)\n } : container.getBoundingClientRect(),\n offsets = {\n x: rect.left - cRect.left,\n y: rect.top - cRect.top\n };\n\n if (!isRoot && container) {\n //only add the current scroll position if it's not the window/body.\n offsets.x += _buildGetter(container, \"x\")();\n offsets.y += _buildGetter(container, \"y\")();\n }\n\n return offsets;\n},\n _parseVal = function _parseVal(value, target, axis, currentVal, offset) {\n return !isNaN(value) && typeof value !== \"object\" ? parseFloat(value) - offset : _isString(value) && value.charAt(1) === \"=\" ? parseFloat(value.substr(2)) * (value.charAt(0) === \"-\" ? -1 : 1) + currentVal - offset : value === \"max\" ? _max(target, axis) - offset : Math.min(_max(target, axis), _getOffset(value, target)[axis] - offset);\n},\n _initCore = function _initCore() {\n gsap = _getGSAP();\n\n if (_windowExists() && gsap && document.body) {\n _window = window;\n _body = document.body;\n _docEl = document.documentElement;\n _toArray = gsap.utils.toArray;\n gsap.config({\n autoKillThreshold: 7\n });\n _config = gsap.config();\n _coreInitted = 1;\n }\n};\n\nexport var ScrollToPlugin = {\n version: \"3.10.4\",\n name: \"scrollTo\",\n rawVars: 1,\n register: function register(core) {\n gsap = core;\n\n _initCore();\n },\n init: function init(target, value, tween, index, targets) {\n _coreInitted || _initCore();\n var data = this,\n snapType = gsap.getProperty(target, \"scrollSnapType\");\n data.isWin = target === _window;\n data.target = target;\n data.tween = tween;\n value = _clean(value, index, target, targets);\n data.vars = value;\n data.autoKill = !!value.autoKill;\n data.getX = _buildGetter(target, \"x\");\n data.getY = _buildGetter(target, \"y\");\n data.x = data.xPrev = data.getX();\n data.y = data.yPrev = data.getY();\n\n if (snapType && snapType !== \"none\") {\n // disable scroll snapping to avoid strange behavior\n data.snap = 1;\n data.snapInline = target.style.scrollSnapType;\n target.style.scrollSnapType = \"none\";\n }\n\n if (value.x != null) {\n data.add(data, \"x\", data.x, _parseVal(value.x, target, \"x\", data.x, value.offsetX || 0), index, targets);\n\n data._props.push(\"scrollTo_x\");\n } else {\n data.skipX = 1;\n }\n\n if (value.y != null) {\n data.add(data, \"y\", data.y, _parseVal(value.y, target, \"y\", data.y, value.offsetY || 0), index, targets);\n\n data._props.push(\"scrollTo_y\");\n } else {\n data.skipY = 1;\n }\n },\n render: function render(ratio, data) {\n var pt = data._pt,\n target = data.target,\n tween = data.tween,\n autoKill = data.autoKill,\n xPrev = data.xPrev,\n yPrev = data.yPrev,\n isWin = data.isWin,\n snap = data.snap,\n snapInline = data.snapInline,\n x,\n y,\n yDif,\n xDif,\n threshold;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n x = isWin || !data.skipX ? data.getX() : xPrev;\n y = isWin || !data.skipY ? data.getY() : yPrev;\n yDif = y - yPrev;\n xDif = x - xPrev;\n threshold = _config.autoKillThreshold;\n\n if (data.x < 0) {\n //can't scroll to a position less than 0! Might happen if someone uses a Back.easeOut or Elastic.easeOut when scrolling back to the top of the page (for example)\n data.x = 0;\n }\n\n if (data.y < 0) {\n data.y = 0;\n }\n\n if (autoKill) {\n //note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.\n if (!data.skipX && (xDif > threshold || xDif < -threshold) && x < _max(target, \"x\")) {\n data.skipX = 1; //if the user scrolls separately, we should stop tweening!\n }\n\n if (!data.skipY && (yDif > threshold || yDif < -threshold) && y < _max(target, \"y\")) {\n data.skipY = 1; //if the user scrolls separately, we should stop tweening!\n }\n\n if (data.skipX && data.skipY) {\n tween.kill();\n data.vars.onAutoKill && data.vars.onAutoKill.apply(tween, data.vars.onAutoKillParams || []);\n }\n }\n\n if (isWin) {\n _window.scrollTo(!data.skipX ? data.x : x, !data.skipY ? data.y : y);\n } else {\n data.skipY || (target.scrollTop = data.y);\n data.skipX || (target.scrollLeft = data.x);\n }\n\n if (snap && (ratio === 1 || ratio === 0)) {\n y = target.scrollTop;\n x = target.scrollLeft;\n snapInline ? target.style.scrollSnapType = snapInline : target.style.removeProperty(\"scroll-snap-type\");\n target.scrollTop = y + 1; // bug in Safari causes the element to totally reset its scroll position when scroll-snap-type changes, so we need to set it to a slightly different value and then back again to work around this bug.\n\n target.scrollLeft = x + 1;\n target.scrollTop = y;\n target.scrollLeft = x;\n }\n\n data.xPrev = data.x;\n data.yPrev = data.y;\n },\n kill: function kill(property) {\n var both = property === \"scrollTo\";\n\n if (both || property === \"scrollTo_x\") {\n this.skipX = 1;\n }\n\n if (both || property === \"scrollTo_y\") {\n this.skipY = 1;\n }\n }\n};\nScrollToPlugin.max = _max;\nScrollToPlugin.getOffset = _getOffset;\nScrollToPlugin.buildGetter = _buildGetter;\n_getGSAP() && gsap.registerPlugin(ScrollToPlugin);\nexport { ScrollToPlugin as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export function warn() {\n if (console && console.warn) {\n var _console;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (typeof args[0] === 'string') args[0] = \"react-i18next:: \".concat(args[0]);\n\n (_console = console).warn.apply(_console, args);\n }\n}\nvar alreadyWarned = {};\nexport function warnOnce() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;\n if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();\n warn.apply(void 0, args);\n}\nexport function loadNamespaces(i18n, ns, cb) {\n i18n.loadNamespaces(ns, function () {\n if (i18n.isInitialized) {\n cb();\n } else {\n var initialized = function initialized() {\n setTimeout(function () {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n\n i18n.on('initialized', initialized);\n }\n });\n}\n\nfunction oldI18nextHasLoadedNamespace(ns, i18n) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var lng = i18n.languages[0];\n var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;\n var lastLng = i18n.languages[i18n.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n\n var loadNotPending = function loadNotPending(l, n) {\n var loadState = i18n.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n return loadState === -1 || loadState === 2;\n };\n\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;\n if (i18n.hasResourceBundle(lng, ns)) return true;\n if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n}\n\nexport function hasLoadedNamespace(ns, i18n) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce('i18n.languages were undefined or empty', i18n.languages);\n return true;\n }\n\n var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;\n\n if (!isNewerI18next) {\n return oldI18nextHasLoadedNamespace(ns, i18n, options);\n }\n\n return i18n.hasLoadedNamespace(ns, {\n precheck: function precheck(i18nInstance, loadNotPending) {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n}\nexport function getDisplayName(Component) {\n return Component.displayName || Component.name || (typeof Component === 'string' && Component.length > 0 ? Component : 'Unknown');\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { useContext, useEffect, useRef, useState } from 'react';\nimport { getDefaults, getI18n, I18nContext, ReportNamespaces } from './context';\nimport { hasLoadedNamespace, loadNamespaces, warnOnce } from './utils';\n\nvar usePrevious = function usePrevious(value, ignore) {\n var ref = useRef();\n useEffect(function () {\n ref.current = ignore ? ref.current : value;\n }, [value, ignore]);\n return ref.current;\n};\n\nexport function useTranslation(ns) {\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nFromProps = props.i18n;\n\n var _ref = useContext(I18nContext) || {},\n i18nFromContext = _ref.i18n,\n defaultNSFromContext = _ref.defaultNS;\n\n var i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using initReactI18next');\n\n var notReadyT = function notReadyT(k) {\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n\n var retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n\n if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n\n var i18nOptions = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), i18n.options.react), props);\n\n var useSuspense = i18nOptions.useSuspense,\n keyPrefix = i18nOptions.keyPrefix;\n var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);\n var ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(function (n) {\n return hasLoadedNamespace(n, i18n, i18nOptions);\n });\n\n const wrappedT = (t) => {\n if (window.msgdebug) {\n return (key) => {\n return key;\n };\n }\n return t;\n };\n\n function getT() {\n return wrappedT(i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix))\n }\n\n var _useState = useState(getT),\n _useState2 = _slicedToArray(_useState, 2),\n t = _useState2[0],\n setT = _useState2[1];\n\n var joinedNS = namespaces.join();\n var previousJoinedNS = usePrevious(joinedNS);\n var isMounted = useRef(true);\n useEffect(function () {\n var bindI18n = i18nOptions.bindI18n,\n bindI18nStore = i18nOptions.bindI18nStore;\n isMounted.current = true;\n\n if (!ready && !useSuspense) {\n loadNamespaces(i18n, namespaces, function () {\n if (isMounted.current) setT(getT);\n });\n }\n\n if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n setT(getT);\n }\n\n function boundReset() {\n if (isMounted.current) setT(getT);\n }\n\n if (bindI18n && i18n) i18n.on(bindI18n, boundReset);\n if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);\n return function () {\n isMounted.current = false;\n if (bindI18n && i18n) bindI18n.split(' ').forEach(function (e) {\n return i18n.off(e, boundReset);\n });\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {\n return i18n.store.off(e, boundReset);\n });\n };\n }, [i18n, joinedNS]);\n var isInitial = useRef(true);\n useEffect(function () {\n if (isMounted.current && !isInitial.current) {\n setT(getT);\n }\n\n isInitial.current = false;\n }, [i18n, keyPrefix]);\n var ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(function (resolve) {\n loadNamespaces(i18n, namespaces, function () {\n resolve();\n });\n });\n}","import { atom } from 'recoil';\nconst pagejsonState = atom({\n key: 'pagejson',\n default: null,\n});\nexport { pagejsonState };\n","import ShopTheLookTile from '@moncler/components/listing/ShopTheLookTile';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport { pagejsonState } from '@utils/appstate';\nimport { getColorVariations } from '@utils/product';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useRecoilState } from 'recoil';\nimport { Swiper, SwiperSlide } from 'swiper/react';\nconst ProductRangeCarousel = (props) => {\n const { t } = useTranslation();\n const { noTp, uuid, pageId } = props;\n const [swiperInstance, setSwiperInstance] = useState();\n const [carouselTitle, setCarouselTitle] = useState();\n const [carouselSlides, setCarouselSlides] = useState([]);\n const [activeBullet, setActiveBullet] = useState(0);\n const [products, setProducts] = useState([]);\n const [pageJson] = noTp ? [] : useRecoilState(pagejsonState);\n const elRef = useRef();\n useEffect(() => {\n if (pageJson) {\n const carouselComponent = pageJson.components.find((el) => el.id === props.id);\n const carouselSlides = carouselComponent.regions[0].components;\n const pids = carouselSlides.map((s) => s.data.product);\n api.getProductTiles(pids).then((data) => {\n setCarouselTitle(carouselComponent.data.title);\n setCarouselSlides(carouselSlides);\n setProducts(data);\n fireAnalyticsEvent(data);\n });\n }\n }, [pageJson]);\n useEffect(() => {\n if (noTp) {\n api.getPageJson(pageId, true).then((data) => {\n const carouselComponent = data === null || data === void 0 ? void 0 : data.regions[0].components.find((el) => el.id === uuid);\n const carouselSlides = carouselComponent.regions[0].components;\n const pids = carouselSlides.map((s) => s.data.product);\n api.getProductTiles(pids).then((data) => {\n setCarouselTitle(carouselComponent.data.title);\n setCarouselSlides(carouselSlides);\n setProducts(data);\n });\n });\n }\n }, []);\n const fireAnalyticsEvent = (products) => {\n let firstTime = true;\n const analyticsEventObserverCallback = (entries) => {\n entries.forEach((entry, i) => {\n if (entry.isIntersecting && firstTime) {\n firstTime = false;\n analytics.productImpressionsTP(products, pageJson.region.toLowerCase());\n }\n });\n };\n const observer = new IntersectionObserver(analyticsEventObserverCallback, { threshold: 0.1 });\n observer.observe(elRef.current);\n };\n const navigate = (i, color) => {\n setActiveBullet(i);\n swiperInstance.slideTo(i);\n if (color) {\n analytics.techincalPageClick(`grenoble-${pageJson.variationId.substring(0, 17)}`, `color-${color}`);\n }\n };\n return (React.createElement(\"div\", { ref: elRef, className: \"container\" },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-10 offset-1 col-sm-6 offset-sm-3 text-center\" },\n React.createElement(\"h2\", { className: \"component_product_range_carousel__title\" }, carouselTitle)),\n React.createElement(\"div\", { className: \"col-12\" }, products.length > 0 && (React.createElement(React.Fragment, null,\n React.createElement(\"ul\", { className: \"component_product_range_carousel__pagination\" }, carouselSlides.map((slide, i) => {\n let product = products.find((p) => p.id === slide.data.product);\n if (!product) {\n return;\n }\n const currentColor = getColorVariations(product).find((v) => v.selected);\n return (React.createElement(\"li\", { key: i },\n React.createElement(\"button\", { \"aria-label\": product.productName + ' ' + (currentColor === null || currentColor === void 0 ? void 0 : currentColor.displayValue), onClick: () => navigate(i, currentColor === null || currentColor === void 0 ? void 0 : currentColor.displayValue), className: `bullet ${activeBullet === i ? 'active' : ''}` },\n React.createElement(\"span\", { className: `swatch--${currentColor === null || currentColor === void 0 ? void 0 : currentColor.refinementColor}` }))));\n })),\n React.createElement(\"div\", { className: \"swiper-container\" },\n React.createElement(Swiper, { onSwiper: (swipr) => {\n setSwiperInstance(swipr);\n }, onActiveIndexChange: (swipr) => {\n setActiveBullet(swipr.activeIndex);\n }, mousewheel: {\n forceToAxis: true,\n thresholdDelta: 20,\n }, spaceBetween: 4, slidesPerView: 1, initialSlide: 0, breakpoints: {\n 1024: {\n slidesPerView: 3,\n spaceBetween: 64,\n },\n 1200: {\n slidesPerView: 3,\n spaceBetween: 146,\n },\n }, resizeObserver: true }, carouselSlides.map((slide, i) => {\n let product = products.find((p) => p.id === slide.data.product);\n if (!product) {\n return;\n }\n return (React.createElement(SwiperSlide, { key: i },\n React.createElement(\"div\", { className: \"row justify-center\" },\n React.createElement(\"div\", { className: \"col-12 col-sm-6 col-md-12\" },\n React.createElement(ShopTheLookTile, { product: product, index: i, customImage: slide.custom.image, showMobileButton: true, isTechnicalPage: true, region: noTp ? null : pageJson.region })))));\n })))))))));\n};\nexport default ProductRangeCarousel;\n","import { appPostStructuredMessage } from '@common/utils/appUtils';\nimport analytics from '@utils/analytics';\nimport classNames from 'classnames';\nimport React from 'react';\nconst ArticleThumbnail = ({ article, bottomModule, landscape }) => {\n const { titleAnalytics, title, image, url, day, month, year, /*landscape,*/ imgAlt /*, image2, img2Alt*/ } = article;\n const showOrder = window.location.search.includes('showOrder');\n const handleClick = () => {\n if (window.appmode) {\n appPostStructuredMessage('firebase_analytics', {\n event: 'moncler_now_interactions',\n params: {\n Action: 'moncler_now-thumbnail_articles-' + `${titleAnalytics || title}`,\n pageDetail: 'monclernow',\n },\n });\n }\n if (landscape) {\n analytics.landscapeImageClick(title);\n }\n else {\n analytics.thumbnailClick(title);\n }\n };\n return (React.createElement(\"li\", { className: classNames('monclernow-listing__article', { 'article--landscape': landscape && !bottomModule, 'article--two-images': /*image2*/ false && !bottomModule }) },\n showOrder && React.createElement(\"div\", { className: \"monclernow-listing__number-order\" }, article.position),\n React.createElement(\"article\", null,\n React.createElement(\"a\", { onClick: handleClick, href: url },\n React.createElement(\"span\", { className: \"article__image-wrapper\" },\n React.createElement(\"span\", { className: \"image-wrapper__img\" },\n React.createElement(\"img\", { src: image + (landscape ? '&sw=1920' : '&sw=768&sh=768'), alt: imgAlt || '', \"aria-hidden\": \"true\" }))),\n React.createElement(\"span\", { className: \"article__info-wrapper\" },\n (article === null || article === void 0 ? void 0 : article.categoryname) && React.createElement(\"span\", { className: \"info-wrapper__category\" }, article === null || article === void 0 ? void 0 : article.categoryname),\n day && month && month && (React.createElement(\"span\", { className: \"info-wrapper__date\" },\n React.createElement(\"time\", { dateTime: `${year}-${month.length < 2 ? '0' + month : month}-${day}` }, `${day}.${month}.${year === null || year === void 0 ? void 0 : year.slice(2, year.length)}`))),\n title && React.createElement(\"span\", { className: \"info-wrapper__title\" }, title))))));\n};\nexport default ArticleThumbnail;\n","import classNames from 'classnames';\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { appPostStructuredMessage } from '@common/utils/appUtils';\nconst Filters = (props) => {\n var _a;\n const { t } = useTranslation();\n // const [openDateFilter, setOpenDateFilter] = useState(false);\n // const clearFilter = () => {\n // props.setYear('');\n // props.setMonth('');\n // setOpenDateFilter(false);\n // };\n useEffect(() => {\n window.addEventListener('load', () => {\n const activeItem = document.querySelector('#monclernow-filter_tablist .filter-item--active');\n activeItem === null || activeItem === void 0 ? void 0 : activeItem.focus();\n });\n }, []);\n const categoryListing = useMemo(() => {\n var _a, _b;\n let categories = (_b = (_a = props.filters) === null || _a === void 0 ? void 0 : _a.find((r) => r.id === 'page.monclernowarticle.category')) === null || _b === void 0 ? void 0 : _b.values;\n const indexOfMonSelect = categories === null || categories === void 0 ? void 0 : categories.findIndex((el) => el.value == 'monclerselect');\n if (indexOfMonSelect >= 0) {\n const select = categories.splice(indexOfMonSelect, 1)[0];\n categories.unshift(select);\n }\n return categories;\n }, [props.filters]);\n // const yearListing = props.filters?.find((r) => r.id === 'page.monclernowarticle.year')?.values?.sort((a, b) => (parseFloat(a.value) < parseFloat(b.value) ? 1 : -1));\n // const monthListing = props.filters?.find((r) => r.id === 'page.monclernowarticle.month')?.values.sort((a, b) => (parseFloat(a.value) > parseFloat(b.value) ? 1 : -1));\n // const selectedYear = props.year ? yearListing.find(({ value }) => value === props.year)?.displayValue : '';\n // const selectedMonth = props.month ? (props.month === t('monclernow.allyear') ? props.month : monthListing.find(({ value }) => value === props.month)?.displayValue) : '';\n const filterRef = useRef([]);\n return (React.createElement(\"div\", { className: \"monclernow-filter__row\" }, ((_a = props.filters) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { id: \"monclernow-filter_tablist\", className: \"monclernow-filter__first-level\", role: \"tablist\" },\n React.createElement(\"button\", { role: \"tab\", \"aria-selected\": !props.categoryActive || props.categoryActive === '' ? 'true' : 'false', \"aria-controls\": \"monclernow-tab\", onClick: (e) => {\n // e.preventDefault();\n props.setCategory('');\n if (window.appmode) {\n appPostStructuredMessage('firebase_analytics', {\n event: 'moncler_now_interactions',\n params: {\n Action: 'moncler_now-filer_menu-' + t('monclernow.allcategoryanalytics'),\n pageDetail: 'monclernow',\n },\n });\n }\n }, ref: (el) => (filterRef.current[categoryListing.length] = el), tabIndex: !props.categoryActive || props.categoryActive === '' ? 0 : -1, \n // href={updateURLParameter(location.href, 'category', '')}\n className: classNames('first-level__filter-item', { 'filter-item--active': !props.categoryActive || props.categoryActive === '' }), onKeyDown: (e) => {\n var _a, _b;\n // a11y: roving tabindex\n // console.log(categoryListing.length);\n let newTabIndex, newTabCategory;\n if (e.key === 'ArrowLeft') {\n newTabIndex = categoryListing.length - 1;\n newTabCategory = categoryListing[newTabIndex].value;\n // console.log(newTabIndex, newTabCategory);\n props.setCategory(newTabCategory);\n (_a = filterRef.current[newTabIndex]) === null || _a === void 0 ? void 0 : _a.focus();\n }\n else if (e.key === 'ArrowRight') {\n newTabIndex = 0;\n newTabCategory = categoryListing[newTabIndex].value;\n // console.log(newTabIndex, newTabCategory);\n props.setCategory(newTabCategory);\n (_b = filterRef.current[newTabIndex]) === null || _b === void 0 ? void 0 : _b.focus();\n }\n } }, t('monclernow.allcategory')),\n categoryListing &&\n categoryListing.map((filter, i) => (React.createElement(\"button\", { role: \"tab\", \"aria-selected\": props.categoryActive === filter.value ? 'true' : 'false', tabIndex: props.categoryActive === filter.value ? 0 : -1, \"aria-controls\": \"monclernow-tab\", key: i, ref: (el) => (filterRef.current[i] = el), \n // href={updateURLParameter(location.href, 'category', filter.value)}\n className: classNames('first-level__filter-item', { 'filter-item--active': props.categoryActive === filter.value }), onClick: (e) => {\n // e.preventDefault();\n props.setCategory(filter.value);\n if (window.appmode) {\n appPostStructuredMessage('firebase_analytics', {\n event: 'moncler_now_interactions',\n params: {\n Action: 'moncler_now-filer_menu-' + filter.value,\n pageDetail: 'monclernow',\n },\n });\n }\n }, onKeyDown: (e) => {\n var _a, _b;\n // a11y: roving tabindex\n let Index = i;\n let newTabIndex, newTabCategory;\n if (e.key === 'ArrowLeft') {\n if (Index === 0) {\n newTabIndex = categoryListing.length;\n newTabCategory = '';\n }\n else {\n newTabIndex = Index - 1;\n newTabCategory = categoryListing[newTabIndex].value;\n }\n // console.log(newTabIndex, newTabCategory);\n props.setCategory(newTabCategory);\n (_a = filterRef.current[newTabIndex]) === null || _a === void 0 ? void 0 : _a.focus();\n }\n else if (e.key === 'ArrowRight') {\n if (Index === categoryListing.length - 1) {\n newTabIndex = categoryListing.length;\n newTabCategory = '';\n }\n else {\n newTabIndex = Index + 1;\n newTabCategory = categoryListing[newTabIndex].value;\n }\n // console.log(newTabIndex, newTabCategory);\n props.setCategory(newTabCategory);\n (_b = filterRef.current[newTabIndex]) === null || _b === void 0 ? void 0 : _b.focus();\n }\n } }, t(`monclernow.category.${filter.displayValue}`)))))))));\n};\nexport default Filters;\n","import analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport ArticleThumbnail from './ArticleThumbnail';\nimport Filters from './Filters';\nimport { appPostStructuredMessage } from '@common/utils/appUtils';\nlet firstShow = true;\nconst Portal = () => {\n const { t } = useTranslation();\n const urlParams = new URLSearchParams(location.search);\n const [articles, setArticles] = useState();\n const [filters, setFilters] = useState();\n const [category, setCategory] = useState(urlParams.get('category') || '');\n const [year, setYear] = useState(urlParams.get('year') || '');\n const [month, setMonth] = useState(urlParams.get('month') || '');\n const [hasMore, setHasMore] = useState(false);\n const [firstNewResultIndex, setFirstNewResultIndex] = useState();\n const [currentPage, setCurrentPage] = useState(parseFloat(urlParams.get('p') || '1'));\n const nextPage = currentPage + 1;\n /**\n *\n * @param loadMore - if true then new articles need to be added (load more)\n */\n const loadArticles = (loadMore) => {\n //empty month if user select ALL_YEAR\n const replaceMonth = month === t('monclernow.allyear') ? '' : month;\n const page = loadMore ? nextPage : 1;\n api.getMonclerNowData(category, year, replaceMonth, page).then((data) => {\n var _a;\n if (loadMore) {\n setArticles([...articles, ...data.contents]);\n let firstResult = data.contents[0].title;\n const focusedElement = document.querySelectorAll('.info-wrapper__title');\n focusedElement.forEach((el) => {\n if (firstResult === el.innerHTML) {\n el.closest('a').focus();\n }\n });\n }\n else {\n setArticles(data.contents);\n }\n setFilters(data.refinement);\n setCurrentPage(data.currentPage);\n setHasMore(data.hasMore);\n setCurrentPage(page);\n setFirstNewResultIndex(data.contents.length);\n if (firstShow) {\n firstShow = false;\n const monclerNowListing = document.querySelector('.monclernow-listing');\n const newsletterModule = document.querySelector('.newsletter-module');\n if (newsletterModule) {\n const articles = monclerNowListing.querySelectorAll('.monclernow-listing__article');\n const position = Math.floor(articles.length / 4) * 4;\n (_a = articles[position]) === null || _a === void 0 ? void 0 : _a.insertAdjacentElement('afterend', newsletterModule);\n newsletterModule.style.opacity = '1';\n }\n }\n });\n };\n //remove category filter when user change year\n const updateYear = (year) => {\n setCategory('');\n setYear(year);\n };\n //reload articles when category or month filter are used\n useEffect(() => {\n //if category and month are empty prevent reload\n if (category === '' && year !== '' && month === '')\n return;\n loadArticles();\n }, [category, month]);\n //load more articles\n const loadMore = (e) => {\n e.preventDefault();\n analytics.loadMoreStories();\n loadArticles(true);\n if (window.appmode) {\n appPostStructuredMessage('firebase_analytics', {\n event: 'moncler_now_interactions',\n params: {\n Action: 'moncler now-more_stories-undefined',\n pageDetail: 'monclernow',\n },\n });\n }\n };\n const articlesSorted = useMemo(() => (articles && articles.length > 0 ? articles.sort((a, b) => (parseFloat(a.position) < parseFloat(b.position) ? -1 : 1)) : []), [articles]);\n // const nextPageUrl = currentPage ? updateURLParameter(location.href, 'page', String(nextPage)) : undefined;\n return (React.createElement(React.Fragment, null,\n React.createElement(Filters, { year: year, month: month, setYear: updateYear, setMonth: (month) => {\n analytics.filterArticles('date');\n setMonth(month);\n }, setCategory: (category) => {\n analytics.filterArticles(category);\n setCategory(category);\n }, filters: filters, categoryActive: category }),\n React.createElement(\"div\", { id: \"monclernow-tab\", role: \"tabpanel\", className: \"monclernow-tabpanel\" },\n React.createElement(\"ul\", { className: \"monclernow-listing\" }, articlesSorted.map((article, index) => (React.createElement(ArticleThumbnail, { landscape: index === 0 || article.landscape, key: index, article: article })))),\n hasMore && (React.createElement(\"div\", { className: \"monclernow-listing__btn-row\" },\n React.createElement(\"button\", { className: \"button button--tertiary button--arrow-down\", onClick: loadMore },\n React.createElement(\"span\", null, t('monclernow.loadmorestories'))))))));\n};\nexport default Portal;\n"],"names":["gsap","_coreInitted","_window","_docEl","_body","_toArray","_config","_windowExists","window","_getGSAP","registerPlugin","_isString","value","_isFunction","_max","element","axis","dim","scroll","client","Math","max","_buildGetter","e","p","pageXOffset","toUpperCase","_getOffset","container","getBoundingClientRect","console","warn","x","y","rect","isRoot","cRect","top","clientTop","pageYOffset","scrollTop","left","clientLeft","scrollLeft","offsets","_parseVal","target","currentVal","offset","isNaN","charAt","parseFloat","substr","min","_initCore","document","body","documentElement","utils","toArray","config","autoKillThreshold","ScrollToPlugin","version","name","rawVars","register","core","init","tween","index","targets","data","this","snapType","getProperty","isWin","nodeType","result","_clean","vars","autoKill","getX","getY","xPrev","yPrev","snap","snapInline","style","scrollSnapType","add","offsetX","_props","push","skipX","offsetY","skipY","render","ratio","yDif","xDif","threshold","pt","_pt","r","d","_next","kill","onAutoKill","apply","onAutoKillParams","scrollTo","removeProperty","property","both","getOffset","buildGetter","_slicedToArray","arr","i","arrayWithHoles","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","call","next","Object","done","length","err","unsupportedIterableToArray","nonIterableRest","_console","_len","arguments","args","Array","_key","concat","alreadyWarned","warnOnce","_len2","_key2","Date","loadNamespaces","i18n","ns","cb","isInitialized","on","initialized","setTimeout","off","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","_objectSpread","source","forEach","key","getOwnPropertyDescriptors","defineProperties","defineProperty","usePrevious","ignore","ref","useRef","useEffect","current","useTranslation","props","undefined","i18nFromProps","_ref","useContext","i18nFromContext","defaultNSFromContext","defaultNS","reportNamespaces","notReadyT","k","isArray","retNotReady","t","ready","options","react","wait","i18nOptions","useSuspense","keyPrefix","namespaces","addUsedNamespaces","initializedStoreOnce","every","n","languages","ignoreJSONStructure","hasLoadedNamespace","precheck","i18nInstance","loadNotPending","bindI18n","indexOf","services","backendConnector","backend","isLanguageChangingTo","lng","fallbackLng","lastLng","toLowerCase","l","loadState","state","hasResourceBundle","resources","partialBundledLanguages","oldI18nextHasLoadedNamespace","getT","msgdebug","wrappedT","getFixedT","nsMode","_useState2","useState","setT","joinedNS","join","previousJoinedNS","isMounted","bindI18nStore","boundReset","store","split","isInitial","ret","Promise","resolve","pagejsonState","default","noTp","uuid","pageId","swiperInstance","setSwiperInstance","carouselTitle","setCarouselTitle","carouselSlides","setCarouselSlides","activeBullet","setActiveBullet","products","setProducts","pageJson","elRef","carouselComponent","components","find","el","id","regions","pids","map","s","product","then","title","fireAnalyticsEvent","firstTime","IntersectionObserver","entries","entry","isIntersecting","region","observe","className","slide","currentColor","v","selected","productName","displayValue","onClick","color","slideTo","variationId","substring","navigate","refinementColor","onSwiper","swipr","onActiveIndexChange","activeIndex","mousewheel","forceToAxis","thresholdDelta","spaceBetween","slidesPerView","initialSlide","breakpoints","resizeObserver","customImage","custom","image","showMobileButton","isTechnicalPage","article","bottomModule","landscape","titleAnalytics","url","day","month","year","imgAlt","showOrder","location","search","includes","position","appmode","event","params","Action","pageDetail","href","src","alt","categoryname","dateTime","slice","_a","addEventListener","activeItem","querySelector","focus","categoryListing","useMemo","_b","categories","filters","values","indexOfMonSelect","findIndex","select","splice","unshift","filterRef","role","categoryActive","setCategory","tabIndex","onKeyDown","newTabIndex","newTabCategory","Index","firstShow","urlParams","URLSearchParams","articles","setArticles","setFilters","category","get","setYear","setMonth","hasMore","setHasMore","firstNewResultIndex","setFirstNewResultIndex","currentPage","setCurrentPage","nextPage","loadArticles","loadMore","replaceMonth","page","api","contents","firstResult","querySelectorAll","innerHTML","closest","refinement","monclerNowListing","newsletterModule","floor","insertAdjacentElement","opacity","articlesSorted","sort","a","b","analytics","ArticleThumbnail","preventDefault"],"sourceRoot":""}