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B,IAAa,CAAEyR,IAAKxD,EAASjO,UAAW,mBAAoB0B,KAAM,SAAUH,KAAM,YAC9G,gBAAoB,MAAO,CAAEvB,UAAW,OACpC,gBAAoB,MAAO,CAAEA,UAAW,uCACpC,gBAAoB,IAAa,CAAEyR,IAAKxD,EAAS1M,KAAM,WAAYG,KAAM,mBACrFmD,GAAY,gBAAoB,MAAO,CAAE7E,UAAW,OAChD,gBAAoB,MAAO,CAAEA,UAAW,UACpC,gBAAoB,IAAa,CAAEyR,IAAKxD,EAAS1M,KAAM,WAAYG,KAAM,iCACrF,gBAAoB,IAAK,CAAE1B,UAAW,iBAClC,gBAAoB,QAAS,CAAEA,UAAW,QAAUe,EAAE,oBAC1D,gBAAoB,IAAQ,CAAEQ,KAAM,SAAUF,SAAUiQ,EAAYzE,IAAK,CAAC,oBAAsBwC,MACxG,gBAAoB,IAAK,KACrB,gBAAoB,QAAS,CAAErP,UAAW,OAAQ4R,wBAAyB,CAAEC,OAAQxB,MAA0B,C,uCClF3H,IANoB,EAAGtG,YAAW+H,SAAQzR,gBACjC0J,EAGG,gBAAoB,IAAK,CAAE/J,UAAW,kBAAkB+J,EAAUgI,kBAAmBtN,MAAOsF,EAAUqG,aAAczB,MAAO,CAAEqD,gBAAiBjI,EAAUkI,YAAarD,gBAAkB7E,EAAUmI,WAAa,OAAOnI,EAAUmI,mBAAiBC,GAAa,cAAe9R,GAAcyR,GAAU,gBAAoB,OAAQ,CAAE9R,UAAW,YAF1U,gBAAoB,WAAgB,K","sources":["webpack:///./assets/common/src/components/utils/Lazyimg.tsx","webpack:///./assets/common/src/ui/modal/ModalDialog.tsx","webpack:///./assets/common/src/ui/selector/SelectorSize.tsx","webpack:///./assets/common/src/utils/einsteinutils.ts","webpack:///./assets/common/src/utils/product.ts","webpack:///./assets/moncler/src/components/countdown/countdown.tsx","webpack:///./assets/moncler/src/components/experience/SubscribeForm.tsx","webpack:///./assets/moncler/src/components/notify/NotifyForm.tsx","webpack:///./assets/moncler/src/components/product/ColorSwatch.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nconst Lazyimg = (props) => {\n return (React.createElement(\"img\", { src: \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\", \"data-src\": props.src, className: classNames('lazyload', props.className, { 'not-draggable': !props.draggable }), alt: props.alt, width: props === null || props === void 0 ? void 0 : props.width, height: props === null || props === void 0 ? void 0 : props.height, draggable: props.draggable, \"aria-hidden\": (props === null || props === void 0 ? void 0 : props.ariaHidden) ? true : false }));\n};\nexport default Lazyimg;\n","import React, { Suspense } from 'react';\nimport { autoChooseComponent } from '@common/utils/brandDiffsUtils';\nconst StoneModalDialog = React.lazy(() => import('@stone/components/modal/ModalDialog'));\nconst MocnclerModalDialog = React.lazy(() => import('@moncler/components/modal/ModalDialog'));\nconst ModalDialog = (props) => {\n return (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) }, autoChooseComponent({\n MO: React.createElement(MocnclerModalDialog, Object.assign({}, props)),\n ST: React.createElement(StoneModalDialog, Object.assign({}, props, { isLegacy: true })),\n })));\n};\nexport default ModalDialog;\n","import classNames from 'classnames';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst SelectorSize = (props) => {\n const { t } = useTranslation();\n const id = useMemo(() => `item_${props.value}${props.isQuickBuy ? '_quickbuy' : props.isSizeInStickyTray ? '_stickytry' : ''}`, [props.value]);\n return (React.createElement(\"div\", { className: classNames('selector-size-item', props.disabled && 'disabled', props.selected && 'selected') },\n React.createElement(\"input\", { className: \"selector-size-item__input\", id: id, type: \"radio\", onChange: props.onSelect, name: `size-selector-${props.variationGroupId}`, value: props.value, \"aria-label\": props.label + ' ' + (props.disabled ? t('label.outofstocksize') + '-' + t('label.notifyme') : '') }),\n React.createElement(\"label\", { htmlFor: id, className: \"selector-size-item__label\", \"aria-hidden\": true }, props.label)));\n};\nexport default SelectorSize;\n","import api from '@utils/api';\nconst einsteinutils = {\n getCQuotient: function () {\n const einsteinUtils = window.CQuotient;\n if (einsteinUtils && typeof einsteinUtils.getCQUserId === 'function' && typeof einsteinUtils.getCQCookieId === 'function') {\n return einsteinUtils;\n }\n return null;\n },\n processRecommendations: function (recommender, callback, anchors, onError) {\n const einsteinUtils = this.getCQuotient();\n const params = {\n userId: einsteinUtils.getCQUserId(),\n cookieId: einsteinUtils.getCQCookieId(),\n ccver: '1.01',\n };\n if (anchors) {\n params.anchors = [];\n // maximum 5 anchors to the recommender\n anchors.splice(5);\n anchors.forEach((anchor) => {\n params.anchors.push({\n id: anchor.masterId,\n sku: null,\n type: 'vgroup',\n alt_id: anchor.id,\n });\n });\n }\n if (einsteinUtils.getRecs) {\n einsteinUtils.getRecs(einsteinUtils.clientId, recommender, params, callback, onError);\n }\n else {\n einsteinUtils.widgets = einsteinUtils.widgets || []; // eslint-disable-line no-param-reassign\n einsteinUtils.widgets.push({\n recommenderName: recommender,\n parameters: params,\n callback: callback,\n });\n }\n },\n productRecommendations: function (recommender, callback, cancelToken, anchors, slot, slotuuid, onError) {\n this.processRecommendations(recommender, (einsteinResponse) => {\n const rec = einsteinResponse[recommender];\n const pids = rec.recs.map((r) => r.id);\n // TEST ONLY\n // const pids = ['G20918C00033829H8999', 'G20911A0016868950455', '569100002A01PR001000100F', 'G10911A109005327977600', '569100001A05PR001000', 'H209Z1A00002M2904999'];\n if (pids.length) {\n api.getProductTiles(pids, cancelToken).then(async (data) => {\n if (data) {\n let title;\n if (slotuuid) {\n title = await api.getSlotContent(slotuuid, pids);\n }\n callback({\n displayMessage: title || rec.displayMessage,\n recoUUID: rec.recoUUID,\n products: data,\n });\n data.forEach((product) => this.trackProductRecommended(product.id, product.masterId, recommender, slot));\n }\n });\n }\n else {\n callback({\n displayMessage: '',\n recoUUID: rec.recoUUID,\n products: [],\n });\n }\n }, anchors, onError);\n },\n productRecommendationsFromSlot: function (slot, recommenderCallback, callback, cancelToken, product, productList, onError) {\n api.getSlotConfig(slot, cancelToken).then((data) => {\n if (data) {\n // renders a slot which is supposed to be configured with a recommender and extract the recommender name from the script contained in the returned slot html\n const recommendermatch = new RegExp(\"recommender = '\\\\[\\\\["(.*)"]]'\").exec(data.data);\n if (recommendermatch && recommendermatch.length > 1) {\n const recommender = recommendermatch[1];\n const slotConfigurationUUIDMatch = new RegExp(\"slotConfigurationUUID = '(.*)'\").exec(data.data);\n const slotuuid = slotConfigurationUUIDMatch && slotConfigurationUUIDMatch.length > 1 ? slotConfigurationUUIDMatch[1] : null;\n recommenderCallback && recommenderCallback(recommender);\n let anchors = [];\n if (product) {\n anchors.push({ masterId: product.masterId, id: product.id });\n }\n if (productList) {\n productList.forEach((item) => {\n anchors.push({ masterId: item.masterId, id: item.masterId + item.analyticsAttributes.variant });\n });\n }\n this.productRecommendations(recommender, callback, cancelToken, anchors, slot, slotuuid, onError);\n }\n else {\n console.warn('no recommender found in slot response');\n recommenderCallback && recommenderCallback(null);\n }\n }\n }, (test) => console.error(test));\n },\n trackProductDetail: function (pid, masterid) {\n window.devmode && console.info(`Tracking product detail for ${pid}`);\n try {\n window.dw.ac.capture({ id: pid, type: window.dw.ac.EV_PRD_DETAIL });\n }\n catch (e) {\n console.error(e);\n }\n const CQuotient = this.getCQuotient();\n CQuotient.trackViewProduct({\n realm: CQuotient.realm,\n siteId: CQuotient.siteId,\n instanceType: CQuotient.instanceType,\n product: {\n id: masterid,\n sku: '',\n type: 'vgroup',\n alt_id: pid,\n },\n });\n return true;\n },\n trackProductRecommended: function (pid, masterid, recommender, slot) {\n // window.devmode && console.info(`Tracking recommendation for ${pid}`);\n try {\n window.dw.ac.capture({ id: pid, type: window.dw.ac.EV_PRD_RECOMMENDATION });\n }\n catch (e) {\n console.error(e);\n }\n const CQuotient = this.getCQuotient();\n let cq_params = {};\n cq_params.cookieId = CQuotient.getCQCookieId();\n cq_params.userId = CQuotient.getCQUserId();\n cq_params.emailId = CQuotient.getCQHashedEmail();\n cq_params.loginId = CQuotient.getCQHashedLogin();\n cq_params.accumulate = true;\n cq_params.products = [\n {\n id: masterid,\n sku: '',\n type: 'vgroup',\n alt_id: pid,\n },\n ];\n cq_params.recommenderName = recommender;\n cq_params.realm = CQuotient.realm;\n cq_params.siteId = CQuotient.siteId;\n cq_params.instanceType = CQuotient.instanceType;\n cq_params.locale = CQuotient.locale;\n cq_params.slotId = slot;\n cq_params.slotConfigId = slot;\n cq_params.slotConfigTemplate = '';\n if (CQuotient.sendActivity) {\n CQuotient.sendActivity(CQuotient.clientId, 'viewReco', cq_params);\n }\n else {\n CQuotient.activities.push({ activityType: 'viewReco', parameters: cq_params });\n }\n return true;\n },\n trackProductInCategory: function (pid, category, sortingrule) {\n // window.devmode && console.info(`Tracking search hit for ${pid}`);\n try {\n window.dw.ac.capture({ id: pid, type: window.dw.ac.EV_PRD_SEARCHHIT });\n }\n catch (e) {\n console.error(e);\n }\n const CQuotient = this.getCQuotient();\n let cq_params = {};\n cq_params.cookieId = CQuotient.getCQCookieId();\n cq_params.userId = CQuotient.getCQUserId();\n cq_params.emailId = CQuotient.getCQHashedEmail();\n cq_params.loginId = CQuotient.getCQHashedLogin();\n cq_params.accumulate = true;\n cq_params.products = [\n {\n id: pid,\n sku: '',\n },\n ];\n cq_params.categoryId = category === null || category === void 0 ? void 0 : category.id;\n cq_params.refinements = JSON.stringify([{ name: 'Category', value: category === null || category === void 0 ? void 0 : category.id }]);\n cq_params.personalized = 'true';\n cq_params.sortingRule = '';\n cq_params.imageUUID = '__UNDEFINED__';\n cq_params.realm = CQuotient.realm;\n cq_params.siteId = CQuotient.siteId;\n cq_params.instanceType = CQuotient.instanceType;\n cq_params.queryLocale = window.locale;\n cq_params.locale = CQuotient.locale;\n if (CQuotient.sendActivity) {\n CQuotient.sendActivity(CQuotient.clientId, 'viewCategory', cq_params);\n }\n else {\n CQuotient.activities.push({\n activityType: 'viewCategory',\n parameters: cq_params,\n });\n }\n return true;\n },\n trackProductInSearch: function (pid, searchtext, sortingrule) {\n // window.devmode && console.info(`Tracking search hit for ${pid}`);\n try {\n window.dw.ac.capture({ id: pid, type: window.dw.ac.EV_PRD_SEARCHHIT });\n }\n catch (e) {\n console.error(e);\n }\n const CQuotient = this.getCQuotient();\n let cq_params = {};\n cq_params.cookieId = CQuotient.getCQCookieId();\n cq_params.userId = CQuotient.getCQUserId();\n cq_params.emailId = CQuotient.getCQHashedEmail();\n cq_params.loginId = CQuotient.getCQHashedLogin();\n cq_params.accumulate = true;\n cq_params.searchText = searchtext;\n cq_params.products = [\n {\n id: pid,\n sku: '',\n textRelevance: '0.92006695',\n },\n ];\n cq_params.showProducts = 'true';\n cq_params.personalized = 'true';\n cq_params.refinements = '[]';\n cq_params.sortingRule = sortingrule;\n cq_params.imageUUID = '__UNDEFINED__';\n cq_params.realm = CQuotient.realm;\n cq_params.siteId = CQuotient.siteId;\n cq_params.instanceType = CQuotient.instanceType;\n cq_params.queryLocale = window.locale;\n cq_params.locale = CQuotient.locale;\n if (CQuotient.sendActivity) {\n CQuotient.sendActivity(CQuotient.clientId, 'viewSearch', cq_params);\n }\n else {\n CQuotient.activities.push({\n activityType: 'viewSearch',\n parameters: cq_params,\n });\n }\n if (window.dw.ac) {\n let search_params = {};\n search_params.q = searchtext;\n search_params.suggestedSearchText = '';\n search_params.persd = 'true';\n search_params.refs = '[]';\n search_params.sort = sortingrule;\n search_params.imageUUID = '';\n search_params.searchID = 'b5eac80b-16a3-444d-baff-e4d269f79837';\n search_params.locale = window.locale;\n search_params.queryLocale = window.locale;\n search_params.showProducts = 'true';\n window.dw.ac.applyContext({ searchData: search_params });\n if (typeof window.dw.ac._scheduleDataSubmission === 'function') {\n window.dw.ac._scheduleDataSubmission();\n }\n }\n return true;\n },\n trackProductSet: function (pid) {\n window.devmode && console.info(`Tracking product set for ${pid}`);\n try {\n window.dw.ac.capture({ id: pid, type: window.dw.ac.EV_PRD_SETPRODUCT });\n }\n catch (e) {\n console.error(e);\n }\n return true;\n },\n categoryContext: function (cgid) {\n window.devmode && console.info(`Tracking context set to ${cgid}`);\n try {\n window.dw.ac.applyContext({ category: cgid });\n }\n catch (e) {\n console.error(e);\n }\n return true;\n },\n emptyContext: function () {\n window.devmode && console.info(`Tracking context reset`);\n try {\n window.dw.ac.applyContext({});\n }\n catch (e) {\n console.error(e);\n }\n return true;\n },\n};\nexport default einsteinutils;\n","import einsteinutils from './einsteinutils';\nimport api from './api';\nimport axios from 'axios';\nexport const COLOUR_ATTRIBUTE = 'color';\nexport const SIZE_ATTRIBUTE = 'size';\nexport const getVariationValues = (product, attributeId) => {\n var _a, _b;\n return (((_b = (_a = product === null || product === void 0 ? void 0 : product.variationAttributes) === null || _a === void 0 ? void 0 : _a.find((variation) => {\n return variation.attributeId === attributeId;\n })) === null || _b === void 0 ? void 0 : _b.values) || []);\n};\nexport const getColorVariations = (product) => {\n return getVariationValues(product, COLOUR_ATTRIBUTE);\n};\nexport const getSizeVariations = (product) => {\n return getVariationValues(product, SIZE_ATTRIBUTE);\n};\nexport const getColorVariationActive = (product) => {\n return getColorVariations(product).find(({ selected }) => selected).value;\n};\nexport const getProductMasterId = (product) => {\n if (product.masterId == product.id) {\n const colorActiveId = getColorVariationActive(product);\n return product.masterId.replace(colorActiveId, '');\n }\n else {\n return product.masterId;\n }\n};\nexport const getProductAvailability = (product) => {\n let productAvailability;\n if (product === null || product === void 0 ? void 0 : product.availability) {\n if (product.availability.inStockDate) {\n productAvailability = 'https://schema.org/InStock';\n }\n else if (product.availability.lowStock) {\n productAvailability = 'https://schema.org/LimitedAvailability';\n }\n else if (product.availability.preorder) {\n productAvailability = 'https://schema.org/PreOrder';\n }\n else {\n //also if current.availability.isOutOfStock\n productAvailability = 'https://schema.org/OutOfStock';\n }\n }\n return productAvailability;\n};\nexport const getSizeAvailability = (product, isPreorder) => {\n let productAvailability;\n if (isPreorder) {\n productAvailability = 'https://schema.org/PreOrder';\n }\n else if ((product === null || product === void 0 ? void 0 : product.ATS) <= 0) {\n productAvailability = 'https://schema.org/OutOfStock';\n }\n else if ((product === null || product === void 0 ? void 0 : product.ATS) === 1) {\n productAvailability = 'https://schema.org/LimitedAvailability';\n }\n else {\n productAvailability = 'https://schema.org/InStock';\n }\n return productAvailability;\n};\nexport const getSimilarProducts = (product) => {\n return new Promise((resolve, reject) => {\n // const testProduct = {} as any;\n // testProduct.hasLimitedAvailability = true;\n // testProduct.uuid = 'testproduct';\n // testProduct.limitedAvailabilityConfig = {\n // showLimitedAvailabilityLabel: true,\n // showSimilarProducts: true,\n // similarProductConfig: {\n // useRecommender: false,\n // recommenderId: 'PDP_Recently-Viewed',\n // // productIdList: ['G20918C00033829H8999', 'G20911A0016868950455'],\n // productIdList: ['G20918C00033829H8999', 'G20911A0016868950455', '569100002A01PR001000100F', 'G10911A109005327977600', '569100001A05PR001000', 'H209Z1A00002M2904999'],\n // },\n // };\n // const thisProduct = testProduct;\n var _a, _b;\n const thisProduct = product;\n // Check if similar products for given product are already in session\n const similarProductsSession = sessionStorage.getItem('similar' + thisProduct.uuid + window.locale);\n if (similarProductsSession) {\n const similarProductsSessionJSON = JSON.parse(similarProductsSession);\n resolve(similarProductsSessionJSON);\n return;\n }\n // Fetch from einstein or fetch tiles from static list;\n if ((_a = thisProduct.limitedAvailabilityConfig) === null || _a === void 0 ? void 0 : _a.showSimilarProducts) {\n const similarProductConfig = thisProduct.limitedAvailabilityConfig.similarProductConfig;\n if ((_b = similarProductConfig === null || similarProductConfig === void 0 ? void 0 : similarProductConfig.productIdList) === null || _b === void 0 ? void 0 : _b.length) {\n api.getProductTiles(similarProductConfig.productIdList).then((data) => {\n if (data) {\n const availableProducts = data.filter((p) => { var _a; return ((_a = p.availability) === null || _a === void 0 ? void 0 : _a.isOutOfStock) !== true && !p.isBoutiqueExclusive; });\n sessionStorage.setItem('similar' + thisProduct.uuid, JSON.stringify(availableProducts));\n resolve(availableProducts);\n }\n else {\n reject();\n }\n });\n }\n else if (similarProductConfig === null || similarProductConfig === void 0 ? void 0 : similarProductConfig.useRecommender) {\n const cancelTokenSource = axios.CancelToken.source();\n const anchors = [{ masterId: thisProduct.masterId, id: thisProduct.id }];\n einsteinutils.productRecommendations(similarProductConfig.recommenderId, (rec) => {\n if (rec && rec.products && rec.products.length > 0) {\n sessionStorage.setItem('similar' + thisProduct.uuid, JSON.stringify(rec.products));\n resolve(rec.products);\n }\n else {\n reject();\n }\n }, cancelTokenSource, anchors);\n }\n else {\n reject();\n }\n }\n });\n};\n","import Button from '@ui/button/Button';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport analytics from '@utils/analytics';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport classNames from 'classnames';\nimport SubscribeForm from '@moncler/components/experience/SubscribeForm';\nconst CountDown = (props) => {\n const { t } = useTranslation();\n const [isOpen, setIsOpen] = useState(false);\n return (React.createElement(React.Fragment, null,\n React.createElement(Button, { type: \"button\", onClick: (e) => {\n setIsOpen(true);\n props.designerName && analytics.geniusExperienceSignUpAction('start', props.designerName);\n }, cls: typeof props.classes === 'string' ? JSON.parse(props.classes) : props.classes, ariaHaspopup: \"dialog\" }, props.text || t('button.submit')),\n React.createElement(ModalDialog, { overlayClassName: \"overlay-visible\", className: classNames('countdown-modal', { black: props.blackVersion }), hideHeader: true, noPadding: true, isOpen: isOpen, onRequestClose: () => {\n !props.designerName && analytics.getNotificationModalAction(props.type, props.title, 'close');\n setIsOpen(false);\n }, contentLabel: t('label.notifyme') },\n React.createElement(SubscribeForm, Object.assign({}, props, { closeCallback: () => setIsOpen(false) }))),\n props.secondCtaLink && (React.createElement(\"a\", { href: props.secondCtaLink, className: props.buttonClasses, \"aria-describedby\": props.uuid }, props.secondCtaText))));\n};\nexport default CountDown;\n","import React, { useEffect, useState } from 'react';\nimport NotifyForm from '@moncler/components/notify/NotifyForm';\nimport analytics from '@utils/analytics';\nimport api from '@utils/api';\nimport { useTranslation } from 'react-i18next';\nimport formutils from '@utils/formutils';\nimport classNames from 'classnames';\nconst StandaloneSubscribeOverlay = (props) => {\n const { t } = useTranslation();\n const [firstRender, setFirstRender] = useState(true);\n const [formSent, setFormSent] = useState(false);\n const [formdef, setFormdef] = useState();\n const [initialValues, setInitialValues] = useState();\n useEffect(() => {\n if (firstRender) {\n setFirstRender(false);\n let val = {};\n api.getForm('notifyme', val).then((data) => {\n setInitialValues(val);\n setFormdef(data);\n });\n }\n }, []);\n const prefillValues = (values) => {\n values.eventcode = props.eventcode;\n values.geniuscode = props.geniuscode;\n };\n const validate = async (values) => {\n prefillValues(values);\n return await formutils.validateForm(values, formdef, 'notifyme');\n };\n const onSubmit = async (values) => {\n prefillValues(values);\n let err = await validate(values);\n if (err && Object.keys(err).length > 0) {\n return err;\n }\n const { success } = await api.notifymeNewsletterSubscription(values, formdef);\n if (success) {\n if (props.buildingName) {\n analytics.geniusImmersiveNotifyAction(props.buildingName);\n }\n else if (props.designerName) {\n analytics.geniusExperienceSignUpAction('submit', props.designerName);\n }\n else {\n analytics.getNotificationModalAction(props.type, props.title, 'submit');\n }\n setFormSent(true);\n }\n };\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: \"product-notify\" },\n React.createElement(\"div\", { className: \"product-notify__main\", style: { backgroundImage: `url(\"${props.img}\")` } }),\n React.createElement(\"div\", { className: \"product-notify__detail\" }, formSent ? (React.createElement(\"div\", { className: \"modal__header-sticky\" },\n React.createElement(\"h2\", { className: classNames('dialog__title', { 'mt-32': !props.blackVersion }) }, t('label.thankyou')),\n React.createElement(\"p\", { className: \"dialog__message\" }, t('notifyme.success')),\n props.blackVersion && (React.createElement(\"div\", { className: \"modal__separator\" },\n React.createElement(\"button\", { className: \"button button--primary\", onClick: props.closeCallback }, t('button.back')))))) : (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"modal__header-sticky\" },\n React.createElement(\"h2\", { className: \"dialog__title\" }, props.modaltitle || t('label.notifyme')),\n props.modaltext && React.createElement(\"p\", { className: \"modal__intro\" },\n props.modaltext,\n \" \"),\n React.createElement(\"div\", { className: \"modal__separator\" })),\n React.createElement(NotifyForm, { formdef: formdef, onSubmit: onSubmit, initialValues: initialValues, validate: validate, buttonText: props.modalctatext || t('button.submit') }))))));\n};\nexport default StandaloneSubscribeOverlay;\n","import ColorSwatch from '@moncler/components/product/ColorSwatch';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport createDecorator from 'final-form-focus';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Form } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nimport { getSizeVariations } from '@utils/product';\nimport SelectorSize from '@ui/selector/SelectorSize';\nconst focusOnError = createDecorator(); // must be outside the component\nconst NotifyForm = ({ formdef, onSubmit, initialValues, validate, buttonText, product, color, currentSize, showSizeSelector, setCurrentSize }) => {\n const { t } = useTranslation();\n const [error, setError] = useState(false);\n const sizeVariations = useMemo(() => {\n const sizeVariations = getSizeVariations(product);\n if (sizeVariations.length == 1 && !(product === null || product === void 0 ? void 0 : product.isParfum)) {\n setCurrentSize(sizeVariations[0]);\n }\n return sizeVariations;\n }, [product]);\n const productName = useMemo(() => {\n var _a, _b;\n return (product === null || product === void 0 ? void 0 : product.isParfum) ? (_b = (_a = product === null || product === void 0 ? void 0 : product.parfumAttributes) === null || _a === void 0 ? void 0 : _a.productFamily.find((el) => el.format === currentSize.displayValue)) === null || _b === void 0 ? void 0 : _b.name : product === null || product === void 0 ? void 0 : product.productName;\n }, [product]);\n const termsAndConditions = useMemo(() => {\n var _a;\n if (product) {\n return t('notifyme.termsandconditions');\n }\n else {\n const isApp = window.appmode;\n const cookieUrl = (_a = document.getElementById('hidden-cookieurl')) === null || _a === void 0 ? void 0 : _a.href;\n const href = cookieUrl + (isApp ? '?showtopbar=true' : '');\n return t('notifyme.termsandconditionsnoproduct', { 0: href });\n }\n }, [product]);\n const sizeSelection = useCallback(() => {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"selector__menu--size\" },\n React.createElement(\"p\", null, t('selector.size')),\n React.createElement(\"fieldset\", { className: \"selector-size-expanded\" }, sizeVariations === null || sizeVariations === void 0 ? void 0 : sizeVariations.map((variation) => (React.createElement(SelectorSize, { key: variation.id, value: variation.id, label: variation.displayValue, selected: variation.value == (currentSize === null || currentSize === void 0 ? void 0 : currentSize.value), disabled: sizeVariations.length < 2 ? false : product.isComingSoon === 2 || (!variation.selectable && !window.unshoppable), variationGroupId: product.id, onSelect: () => {\n if (error) {\n setError(false);\n }\n setCurrentSize(variation);\n } }))))),\n error && (React.createElement(\"div\", { className: \"selector__error\" },\n React.createElement(\"span\", { className: \"errormessage\", role: \"alert\" }, t('label.pleaseselectasize'))))));\n }, [product, currentSize, error]);\n return (React.createElement(React.Fragment, null,\n product && (React.createElement(\"div\", { className: \"modal__product-details mt-24\" },\n React.createElement(\"p\", { className: \"product-details__product-name bold\" }, productName),\n color && (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"product-details__product-color\" },\n t('label.color'),\n \": \", color === null || color === void 0 ? void 0 :\n color.displayValue,\n React.createElement(\"span\", { className: \"product-details__color-swatch\" },\n React.createElement(ColorSwatch, { variation: color }))))),\n showSizeSelector ? (sizeSelection()) : (React.createElement(\"p\", { className: \"product-details__product-size\" },\n t('label.size'),\n \": \", currentSize === null || currentSize === void 0 ? void 0 :\n currentSize.displayValue)))),\n formdef && (React.createElement(Form, { onSubmit: onSubmit, initialValues: initialValues, decorators: [focusOnError], validate: (values) => validate(values, formdef), render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: (e) => {\n if (product && !currentSize) {\n setError(true);\n e.preventDefault();\n return;\n }\n handleSubmit(e);\n } },\n React.createElement(\"fieldset\", null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, name: \"email\", type: \"email\", autocomplete: \"email\", idSuffix: \"address-field\" }))),\n !product && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12 newsletter-modal__gender-wrapper mt-12\" },\n React.createElement(DwFormField, { def: formdef, className: 'gender-selection', name: \"gender\", type: \"radio\" }))),\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12 mb-12 privacy-flag-container\" },\n React.createElement(DwFormField, { def: formdef, type: \"checkbox\", name: \"privacyFlag\" }))))),\n product && (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-12\" },\n React.createElement(DwFormField, { def: formdef, type: \"checkbox\", name: \"emailMarketingConsentFlag\" }))))),\n React.createElement(\"p\", { className: \"note-required\" },\n React.createElement(\"small\", { className: \"note\" }, t('label.required'))),\n React.createElement(Button, { type: \"submit\", disabled: submitting, cls: ['button--primary'] }, buttonText))) })),\n React.createElement(\"p\", null,\n React.createElement(\"small\", { className: \"note\", dangerouslySetInnerHTML: { __html: termsAndConditions } }))));\n};\nexport default NotifyForm;\n","import React from 'react';\nconst ColorSwatch = ({ variation, stroke, ariaHidden }) => {\n if (!variation) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"i\", { className: `swatch swatch--${variation.refinementColor}`, title: variation.displayValue, style: { backgroundColor: variation.swatchColor, backgroundImage: (variation.swatchImg && `url(${variation.swatchImg})`) || undefined }, \"aria-hidden\": ariaHidden }, stroke && React.createElement(\"span\", { className: \"stroke\" })));\n};\nexport default ColorSwatch;\n"],"names":["props","src","className","draggable","alt","width","height","ariaHidden","StoneModalDialog","MocnclerModalDialog","Suspense","fallback","MO","Object","assign","ST","isLegacy","t","id","useMemo","value","isQuickBuy","isSizeInStickyTray","disabled","selected","type","onChange","onSelect","name","variationGroupId","label","htmlFor","einsteinutils","getCQuotient","einsteinUtils","window","CQuotient","getCQUserId","getCQCookieId","processRecommendations","recommender","callback","anchors","onError","this","params","userId","cookieId","ccver","splice","forEach","anchor","push","masterId","sku","alt_id","getRecs","clientId","widgets","recommenderName","parameters","productRecommendations","cancelToken","slot","slotuuid","einsteinResponse","rec","pids","recs","map","r","length","then","async","data","title","displayMessage","recoUUID","products","product","trackProductRecommended","productRecommendationsFromSlot","recommenderCallback","productList","recommendermatch","RegExp","exec","slotConfigurationUUIDMatch","item","analyticsAttributes","variant","console","warn","test","error","trackProductDetail","pid","masterid","devmode","info","dw","ac","capture","EV_PRD_DETAIL","e","trackViewProduct","realm","siteId","instanceType","EV_PRD_RECOMMENDATION","cq_params","emailId","getCQHashedEmail","loginId","getCQHashedLogin","accumulate","locale","slotId","slotConfigId","slotConfigTemplate","sendActivity","activities","activityType","trackProductInCategory","category","sortingrule","EV_PRD_SEARCHHIT","categoryId","refinements","JSON","stringify","personalized","sortingRule","imageUUID","queryLocale","trackProductInSearch","searchtext","searchText","textRelevance","showProducts","search_params","q","suggestedSearchText","persd","refs","sort","searchID","applyContext","searchData","_scheduleDataSubmission","trackProductSet","EV_PRD_SETPRODUCT","categoryContext","cgid","emptyContext","getVariationValues","attributeId","_a","_b","variationAttributes","find","variation","values","getColorVariations","getSizeVariations","getProductMasterId","colorActiveId","getColorVariationActive","replace","getProductAvailability","productAvailability","availability","inStockDate","lowStock","preorder","getSizeAvailability","isPreorder","ATS","getSimilarProducts","Promise","resolve","reject","thisProduct","similarProductsSession","sessionStorage","getItem","uuid","similarProductsSessionJSON","parse","limitedAvailabilityConfig","showSimilarProducts","similarProductConfig","productIdList","availableProducts","filter","p","isOutOfStock","isBoutiqueExclusive","setItem","useRecommender","cancelTokenSource","recommenderId","isOpen","setIsOpen","useState","onClick","designerName","cls","classes","ariaHaspopup","text","overlayClassName","black","blackVersion","hideHeader","noPadding","onRequestClose","contentLabel","closeCallback","secondCtaLink","href","buttonClasses","secondCtaText","firstRender","setFirstRender","formSent","setFormSent","formdef","setFormdef","initialValues","setInitialValues","useEffect","val","prefillValues","eventcode","geniuscode","validate","style","backgroundImage","img","modaltitle","modaltext","onSubmit","err","keys","success","buildingName","buttonText","modalctatext","focusOnError","color","currentSize","showSizeSelector","setCurrentSize","setError","sizeVariations","isParfum","productName","parfumAttributes","productFamily","el","format","displayValue","termsAndConditions","isApp","appmode","cookieUrl","document","getElementById","sizeSelection","useCallback","key","isComingSoon","selectable","unshoppable","role","decorators","render","handleSubmit","form","submitting","pristine","preventDefault","def","autocomplete","idSuffix","dangerouslySetInnerHTML","__html","stroke","refinementColor","backgroundColor","swatchColor","swatchImg","undefined"],"sourceRoot":""}