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AAMnL,EAAE,yCAQ6C,C,uCCzBjG,MAAMyL,EAAQvQ,IACV,MAAMsI,EAAO,GAAGtI,EAAMwQ,UAAUxQ,EAAM2P,OAAO3P,EAAMyQ,SAAW,SAAW,KACzE,OAAO,gBAAoB,OAAQ,CAAE,aAAczQ,EAAMuI,UAAW,eAAe,EAAMxE,UAAW,cAAcuE,KAAQtI,EAAM0Q,SAAW,YAAc,MAAO,EAEpKH,EAAK3L,aAAe,CAChB4L,OAAQ,KACRC,UAAU,EACVE,YAAY,GAEhB,K","sources":["webpack:///./assets/common/src/ui/accordion/Accordion.tsx","webpack:///./assets/common/src/utils/ui.ts","webpack:///./assets/common/src/ui/accordion/AccordionItem.tsx","webpack:///./assets/common/src/utils/useClickAway.ts","webpack:///./assets/common/src/ui/tooltip/Tooltip.tsx","webpack:///./assets/common/src/utils/addressutils.ts","webpack:///./assets/common/src/utils/stringUtils.ts","webpack:///./assets/common/src/utils/urlutils.ts","webpack:///./assets/stone/src/components/clientService/ClientServiceSection.tsx","webpack:///./assets/stone/src/components/common/UploadFiles.tsx","webpack:///./assets/stone/src/components/login/RegisteredInStoreCheckoutConfirm.tsx","webpack:///./assets/stone/src/ui/icon/Icon.tsx"],"sourcesContent":["import React, { cloneElement, useEffect, useMemo, useState, createElement } from 'react';\nimport { isInViewport, scrollToPx } from '../../utils/ui';\nimport classNames from 'classnames';\nlet timeoutId;\nconst Accordion = (props) => {\n const [expandedCard, setExpandedCard] = useState();\n const [height, setHeight] = useState(0);\n const groupRef = React.createRef();\n const setOpen = (i) => {\n setExpandedCard(i);\n };\n const isOpen = (i) => {\n return expandedCard === i;\n };\n const onChildSelect = (i) => {\n setOpen(isOpen(i) ? null : i);\n };\n // OE-14667 set the accordion close if there is a new result in the search input\n useEffect(() => {\n if (props.results && props.results.length > 0) {\n setOpen(-1);\n }\n }, [props.results]);\n const scrollToElement = (container, opener) => {\n clearTimeout(timeoutId);\n timeoutId = setTimeout(() => {\n if (!isInViewport(opener)) {\n const scrollPosition = window.scrollY;\n const containerScrollPosition = container.getBoundingClientRect().top;\n let header = document.querySelector('header');\n const headerHeight = header && header.offsetHeight;\n const gap = 100;\n const scrollPositionFinal = scrollPosition + containerScrollPosition - headerHeight - gap;\n scrollToPx(scrollPositionFinal);\n }\n }, 500);\n };\n useEffect(() => {\n let defaultOpen;\n React.Children.forEach(props.children, (c, i) => {\n if (!!c) {\n if (React.isValidElement(c)) {\n if (c.props.isInitialOpen) {\n defaultOpen = c.key || i;\n }\n }\n else {\n console.warn('Element is not an accordion item.', c);\n }\n }\n });\n setOpen(defaultOpen);\n }, []);\n useEffect(() => {\n console.log('set accordion height');\n setHeight(groupRef.current.clientHeight);\n }, []);\n const childrenLength = useMemo(() => {\n let counter = 0;\n React.Children.map(props.children, () => {\n counter += 1;\n });\n return counter;\n }, []);\n // causava sfarfallamenti\n // const disableScroll = () => {\n // if (timeout) {\n // clearTimeout(timeout);\n // }\n // document.documentElement.classList.add('initial-scroll');\n // const scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n // const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;\n // window.onscroll = () => {\n // window.scrollTo(scrollLeft, scrollTop);\n // };\n // };\n // const enableScroll = () => {\n // document.documentElement.classList.remove('initial-scroll');\n // window.onscroll = () => {};\n // };\n return createElement(props.type, {\n className: classNames('accordion__group', { 'accordion__group--flex': props.flex, 'accordion__group--list': props.type === 'ul' }, props.className),\n ref: groupRef,\n style: { gap: props.gap || 0 },\n }, React.Children.map(props.children, (child, i) => {\n if (React.isValidElement(child)) {\n return cloneElement(child, Object.assign({ onSelect: () => onChildSelect(child.key || i), expanded: isOpen(child.key || i), loading: isOpen(child.key || i) && child.props.initiallyClosed, scrollToElement: scrollToElement, flex: props.flex, gap: props.gap, parentHeight: height, childrenLength: childrenLength, type: (props.type === 'ul' && 'li') || 'div' }, child.props));\n }\n }));\n};\nAccordion.defaultProps = {\n type: 'div',\n};\nexport default Accordion;\n","/**\n *\n * check if given element is in viewpot\n * @param elem - element to check\n *\n * @returns return true if is in viewport\n */\nexport const isInViewport = (elem) => {\n const bounding = elem.getBoundingClientRect();\n return (bounding.top >= 0 &&\n bounding.left >= 0 &&\n bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n bounding.right <= (window.innerWidth || document.documentElement.clientWidth));\n};\nexport const scrollToPx = (endPosition) => {\n if ('scrollBehavior' in document.documentElement.style) {\n window.scrollTo({\n top: endPosition,\n left: 0,\n behavior: 'smooth',\n });\n }\n else {\n let gap = window.scrollY;\n const direction = gap > endPosition ? 'up' : 'down';\n const int = setInterval(function () {\n if (direction === 'up') {\n gap -= 10;\n if (gap <= endPosition)\n clearInterval(int);\n }\n else {\n gap += 10;\n if (gap >= endPosition)\n clearInterval(int);\n }\n window.scrollTo(0, gap);\n }, 10);\n }\n};\n// for PLP tiles check\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst findDuplicates = () => {\n const tiles = new Map();\n document.querySelectorAll('[data-id]').forEach((tile) => {\n // @ts-ignore\n let currentId = tile.dataset.id;\n if (tiles.has(currentId)) {\n tiles.set(currentId, Number(tiles.get(currentId)) + 1);\n }\n else {\n tiles.set(currentId, 1);\n }\n });\n let duplicateCounter = 0;\n for (const [key, value] of tiles) {\n if (value > 1) {\n duplicateCounter++;\n console.info(`found ${value} duplicates for ${key}`);\n }\n }\n console.info(`%cfound a total of ${duplicateCounter} duplicates!`, 'color:purple;background-color:white;font-weight:bold;');\n};\n","import classNames from 'classnames';\nimport React, { useEffect, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst AccordionItem = (props) => {\n const { t } = useTranslation();\n const accordionPanel = useRef();\n const container = useRef();\n const opener = useRef();\n // const firstChildMargin = window.getComputedStyle(props?.parentRef?.firstChild as Element).getPropertyValue('margin-bottom');\n // useEffect(() => {\n // let heightForFlex;\n // if (props.flex && props.gap && props.parentHeight) {\n // heightForFlex =\n // console.log('children total height', heightForFlex);\n // }\n // }, [props.parentHeight]);\n useEffect(() => {\n console.log('Update Height: ', props.accordionId, props.updateHeight);\n // actual animation\n if (props.flex && props.gap && props.parentHeight) {\n accordionPanel.current.style.height = props.expanded\n ? props.autoHeight\n ? 'auto'\n : `${(props === null || props === void 0 ? void 0 : props.parentHeight) - (container.current.clientHeight * props.childrenLength + props.gap * (props.childrenLength - 1))}px`\n : '0px';\n }\n else {\n accordionPanel.current.style.height = props.expanded ? (props.autoHeight ? 'auto' : `${accordionPanel.current.firstElementChild.scrollHeight}px`) : '0px';\n }\n }, [props.expanded, props.children, props.updateHeight, props.parentHeight]);\n return (React.createElement(\"div\", { ref: container, className: (!props.miniAccordion ? 'accordion__item' : '') + (props.itemClass ? ' ' + props.itemClass : '') },\n React.createElement(\"button\", { ref: opener, type: \"button\", id: props.accordionId, onClick: () => {\n props.onClick && props.onClick();\n props.onSelect();\n if (props.callbackOnOpen && !props.expanded) {\n props.callbackOnOpen();\n }\n if (props.scrollToElement) {\n props.scrollToElement(container.current, opener.current);\n }\n }, className: classNames(props.miniAccordion ? 'accordion__header--mini' : 'accordion__header', { accordion__panel_open: props.expanded, 'header--selected': props.elementActive }, props.headerClass ? props.headerClass : ''), \"aria-expanded\": props.expanded, \"aria-controls\": props.accordionId + '-panel', tabIndex: props.tabIndex || null },\n props.isTitleMarkup ? props.title : React.createElement(\"span\", { className: \"primary-s\" + (props.miniAccordion ? ' accordion__header--underline' : '') }, props.title),\n !props.hideToggleButtons && !props.miniAccordion && (React.createElement(React.Fragment, null,\n React.createElement(\"i\", { className: \"header__open\" },\n React.createElement(\"span\", { className: \"text\" }, t('button.show'))),\n React.createElement(\"i\", { className: \"header__close\" },\n React.createElement(\"span\", { className: \"text\" }, t('button.hide'))))),\n props.miniAccordion &&\n React.createElement(React.Fragment, null,\n !props.expanded && React.createElement(\"div\", { className: \"accordion__header--arrow-down\" }),\n props.expanded && React.createElement(\"div\", { className: \"accordion__header--arrow-up\" }))),\n React.createElement(\"div\", { ref: accordionPanel, className: classNames(`accordion__panel${!!props.contentClass ? ' ' + props.contentClass : ''}`, { accordion__panel_open: props.expanded }), role: \"region\", id: props.accordionId + '-panel', \"aria-labelledby\": props.accordionId },\n React.createElement(\"div\", null,\n React.createElement(React.Fragment, null,\n props.loading && React.createElement(\"p\", { className: \"pb-12\" }, t('label.loading')),\n props.children)))));\n};\nAccordionItem.defaultProps = {\n isTitleMarkup: false,\n type: 'div',\n};\nexport default AccordionItem;\n","import { useEffect } from 'react';\n/**\n * custom hook in order to watch given html element and\n * check if user click outside it\n *\n * @param {refType} ref html element to watch focus\n * @param {callbackFunction} callback callback function to fired when clicked/touched away\n *\n */\nconst useClickAway = (ref, callback) => {\n useEffect(() => {\n const listener = (event) => {\n if (!ref.current || ref.current.contains(event.target)) {\n return;\n }\n callback(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return () => {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, callback]);\n};\nexport default useClickAway;\n","import classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport whatInput from 'what-input';\nimport useClickAway from '../../utils/useClickAway';\nimport { getId } from '@common/utils/brandDiffsUtils';\nimport { t } from 'i18next';\nconst Tooltip = (props) => {\n const [showTooltip, setShowTooltip] = useState(false);\n const button = useRef();\n const tootltipRef = useRef();\n const boxRef = useRef();\n const [offset, setOffset] = useState(0);\n useEffect(() => {\n setTimeout(() => {\n var _a;\n if (((_a = props === null || props === void 0 ? void 0 : props.containerRef) === null || _a === void 0 ? void 0 : _a.current) && boxRef.current) {\n let tempOffset = 0;\n tempOffset = props.containerRef.current.getBoundingClientRect().right - boxRef.current.getBoundingClientRect().right;\n if (tempOffset < 0 && tempOffset != offset) {\n setOffset(tempOffset);\n return;\n }\n tempOffset = props.containerRef.current.getBoundingClientRect().left - boxRef.current.getBoundingClientRect().left;\n if (tempOffset > 0 && tempOffset != offset) {\n setOffset(tempOffset);\n }\n }\n }, 100);\n }, []);\n useEffect(() => {\n const escape = (e) => {\n if (e.key == 'Escape') {\n setShowTooltip(false);\n document.removeEventListener('keydown', escape);\n }\n };\n if (showTooltip) {\n if (whatInput.ask() == 'keyboard') {\n document.addEventListener('keydown', escape);\n }\n }\n props.setToolTipOpen && props.setToolTipOpen(showTooltip);\n }, [showTooltip]);\n const toggleOpen = () => {\n console.info('open tooltip');\n // @ts-ignore\n if (window.innerWidth > window.mqObj.md && props.checkout) {\n setShowTooltip(false);\n }\n else {\n console.log(showTooltip);\n setShowTooltip(!showTooltip);\n }\n console.log(showTooltip);\n setShowTooltip(!showTooltip);\n };\n const handleBlur = () => {\n // console.info('blur tooltip');\n setShowTooltip(false);\n };\n useClickAway(button, () => {\n // console.info('clickaway tooltip');\n setShowTooltip(false);\n });\n useEffect(() => {\n // OE-20308 - temporary fix to checkout HK and KR tooltip overflowing outside the viewport\n const tooltipElements = document.querySelectorAll('.checkout-packaging__options .tooltip__box');\n const lastTooltipElement = tooltipElements[tooltipElements.length - 1];\n if (lastTooltipElement && (window.country == 'HK' || window.country == 'KR')) {\n lastTooltipElement.classList.add('last-tooltip');\n }\n }, []);\n const renderCloseButton = () => (React.createElement(\"button\", { \"aria-label\": t('button.close'), className: \"tooltip__close\", onClick: () => setShowTooltip(false) }, \"X\"));\n return (React.createElement(\"div\", { ref: tootltipRef, className: classNames('tooltip', props.className && props.className), onBlur: (e) => {\n // console.info('blur: ', e.relatedTarget, tootltipRef.current.contains(e.relatedTarget as Node));\n if (e.relatedTarget && !tootltipRef.current.contains(e.relatedTarget) && !e.relatedTarget.matches('[aria-modal]')) {\n whatInput.ask() == 'keyboard' ? handleBlur() : undefined;\n }\n }, style: { '--tooltip-offset': `${offset}px` } },\n React.createElement(\"button\", { type: \"button\", ref: button, onClick: toggleOpen, className: `icon--${props.icon ? props.icon : 'tooltip'} tooltip__button`, \"aria-expanded\": showTooltip, \"aria-controls\": props.id, \"aria-label\": props.ariaLabel }),\n props.text && (React.createElement(React.Fragment, null, getId() === 'ST' ? (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\" },\n renderCloseButton(),\n React.createElement(\"div\", { dangerouslySetInnerHTML: { __html: props.text } }))) : (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\", dangerouslySetInnerHTML: { __html: props.text } })))),\n props.markup && (React.createElement(\"div\", { ref: boxRef, id: props.id, className: \"tooltip__box\" },\n getId() == 'ST' && renderCloseButton(),\n props.markup()))));\n};\nexport default Tooltip;\n","import api from '@utils/api';\nimport formutils from './formutils';\nconst addressutils = {\n saveAddress: async (values, formdef, onServerError, onSuccess) => {\n let errors = await formutils.validateForm(values, formdef, 'address');\n if (errors && Object.keys(errors).length > 0) {\n return errors;\n }\n return api\n .saveAddress(values, formdef)\n .then((data) => {\n if (data.error && data.error.length > 0) {\n }\n if (data.fields && Object.keys(data.fields).length > 0) {\n Object.keys(data.fields).forEach((f) => {\n errors[f.substring(f.lastIndexOf('_') + 1, f.length)] = data.fields[f];\n });\n return errors;\n }\n onSuccess();\n })\n .catch((e) => onServerError(e));\n },\n salutation: (fistname, lastname, title) => {\n if (window.language == 'ja') {\n return `${lastname} ${fistname} 様`;\n }\n if (window.language == 'ch' || window.language == 'zh') {\n return `${lastname} ${fistname}${title || ''}`;\n }\n return `${title || ''} ${fistname} ${lastname}`;\n },\n};\nexport default addressutils;\n","export const slugify = (text) => text.toLowerCase().split(' ').join('-');\nexport const getElementFromHtmlString = (htmlString, selector) => {\n var _a;\n let textVal = null;\n let div = document.createElement('div');\n div.innerHTML = htmlString;\n textVal = (_a = div.querySelector(selector)) === null || _a === void 0 ? void 0 : _a.innerHTML;\n return textVal;\n};\n// FIXME queste cose vanno fatte a backend, non qui\nexport const calculateDateforJP = (date) => {\n if (!date)\n return;\n const splitted = date.split('.');\n const year = splitted.pop();\n const days = splitted.shift();\n if (year.length == 4 && window.country == 'JP') {\n splitted.splice(0, 0, year);\n splitted.splice(2, 0, days);\n return splitted.join('.');\n }\n else {\n return date;\n }\n};\nexport const validateEmail = (email) => {\n return /^[\\w.%+-]+@[\\w.-]+\\.[\\w]{2,6}$/.test(email);\n};\nexport const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\nexport const getZeroPadNumber = (_number, digits = 2) => {\n return _number.toString().length >= digits ? _number.toString() : _number.toString().padStart(digits, '0');\n};\n// REF :: https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color\nexport const useStringRgbContrast = (rgbCssString, dark = 'rgb(0,0,0)', light = 'rgb(255,255,255)') => {\n if (!rgbCssString)\n return dark;\n //parso la stringa RGB\n let rgb = rgbCssString.replace('rgb(', '').replace(')', '').split(',');\n if (rgb.length < 3)\n return dark;\n //trasformo rgb in srgb\n let srgb = rgb.map((n) => {\n let c = Number(n) / 255;\n if (c <= 0.04045)\n return c / 12.92;\n return Math.pow((c + 0.055) / 1.055, 2.4);\n });\n //calcolo la luminescenza\n const L = 0.2126 * srgb[0] + 0.7152 * srgb[1] + 0.0722 * srgb[2];\n //calcolo se il colore di contrasto è light\n const useDark = L > Math.sqrt(1.05 * 0.05) - 0.05;\n // console.log(`%c${rgbCssString}`, `background-color: ${rgbCssString}; color: ${useDark ? '#000' : '#FFF'}; padding:4px; border: solid 1px red;`, L, srgb, rgb);\n //ritorno la stringa passata come parametro\n return useDark ? dark : light;\n};\nexport const getRandomUUID = (prefix) => {\n var _a, _b;\n let uuid = ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) && ((_b = window.crypto) === null || _b === void 0 ? void 0 : _b.randomUUID());\n if (!uuid)\n uuid = Math.random().toString(26);\n return `${prefix || ''}${uuid}`;\n};\n","/**\n *\n * @function updateURLParameter\n * update url parameter\n *\n * @example\n * //http://localhost:3000?category=primary&page=2\n * const urlParams = new URLSearchParams(location.search);\n * const currentPage = urlParams.get('page');\n * const nextPageUrl = updateURLParameter(location.href, 'page', currentPage++);\n * //http://localhost:3000?category=primary&page=3\n *\n * @param {string} url - url to update\n * @param param - param key\n * @param paramVal - param new value\n *\n * @returns {string} newUrl - newUrl with new value\n */\nexport const addURLParameter = (url, param, paramVal) => {\n if (url.indexOf('?') > -1) {\n return url + '&' + param + '=' + paramVal;\n }\n else {\n return url + '?' + param + '=' + paramVal;\n }\n};\nexport const addURLParameters = (baseUrl, queryParams) => {\n let newUrl = baseUrl;\n for (const [key, value] of Object.entries(queryParams)) {\n newUrl = addURLParameter(newUrl, key, value);\n }\n return newUrl;\n};\nexport const updateURLParameter = (url, param, paramVal) => {\n let newAdditionalURL = '';\n let tempArray = url.split('?');\n let baseURL = tempArray[0];\n let additionalURL = tempArray[1];\n let temp = '';\n if (additionalURL) {\n tempArray = additionalURL.split('&');\n for (let i = 0; i < tempArray.length; i++) {\n if (tempArray[i].split('=')[0] != param) {\n newAdditionalURL += temp + tempArray[i];\n temp = '&';\n }\n }\n }\n let rows_txt = temp + '' + param + '=' + paramVal;\n return baseURL + '?' + newAdditionalURL + rows_txt;\n};\n/**\n *\n * @function siteUrl\n * return the url stored as sirng in window.siteUrls if exists\n *\n * @param {string} urlName - the URL name in `siteUrls`\n *\n * @param {string} params - the params to add on result url\n *\n * @returns {string} urlString - the url or undefined if missing\n */\nexport const siteUrl = (urlName, ...params) => {\n if (!window.siteUrls)\n return undefined;\n let url = window.siteUrls[urlName];\n /* WITH PARAMS */\n if (params && params.length) {\n for (let i = 0; i < params.length / 2; i++) {\n const key = params[i * 2] || '';\n if (!!key) {\n const value = params[i * 2 + 1] || '';\n url = addURLParameter(url, key.toString(), value.toString());\n }\n }\n }\n return url;\n};\n","import Button from '@stone/ui/button/Button';\nimport classNames from 'classnames';\nimport React from 'react';\nconst ClientServiceSection = (props) => {\n const { title, description, introSection, className, buttonLink, buttonText, children, borderBottom, buttonAction, noMargin, noPadding } = props;\n const textHolder = React.createElement(React.Fragment, null, title && React.createElement(\"h2\", { className: \"section__title\" }, title));\n if (!props.active) {\n return React.createElement(React.Fragment, null, props.children);\n }\n const renderTitle = !!title || !!buttonLink || !!buttonAction;\n return (React.createElement(\"section\", { className: classNames('client-service__section', {\n 'section--intro-section': introSection,\n 'section--title-only': !description && !children,\n 'section--little-snippet': buttonLink || buttonAction,\n 'section--border-bottom': borderBottom,\n 'section--no-margin': noMargin,\n 'section--no-padding': noPadding,\n }, className != undefined && className) },\n React.createElement(\"div\", { className: \"container\" },\n React.createElement(\"div\", { className: \"row section__content\" },\n renderTitle && (React.createElement(\"div\", { className: \"col-24 col-lg-5 col-xxl-4 first-col\" }, buttonLink || buttonAction ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null, textHolder),\n buttonAction ? (React.createElement(Button, { type: \"button\", cls: ['button--secondary'], onClick: buttonAction },\n React.createElement(\"span\", null, buttonText))) : (React.createElement(\"a\", { href: buttonLink, target: \"_blank\", className: \"button button--secondary\" },\n React.createElement(\"span\", null, buttonText))))) : (textHolder))),\n React.createElement(\"div\", { className: classNames('col-24 col-lg-14 col-xxl-12 last-col', { 'offset-lg-5 offset-xxl-6': !renderTitle }, { 'offset-xxl-2': renderTitle }) }, children)))));\n};\nClientServiceSection.defaultProps = {\n active: true,\n};\nexport default ClientServiceSection;\n","import Tooltip from '@ui/tooltip/Tooltip';\nimport api from '@utils/api';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nconst UploadFiles = (props) => {\n const { t } = useTranslation();\n const [fileBeingUploaded, setFileBeingUploaded] = useState();\n const [progress, setProgress] = useState(0);\n const [uploadedFile, setUploadedFile] = useState();\n const [error, setError] = useState();\n useEffect(() => {\n setUploadedFile(props.uploadedFile);\n }, [props.uploadedFile]);\n const selectFile = (event) => {\n setError(null);\n let file = event.target.files[0];\n if (props.filetype === 'IMAGES') {\n if (file.type.indexOf('image/') == -1) {\n setError(t('aftercare.images.notallowed'));\n return;\n }\n }\n setFileBeingUploaded(file);\n setProgress(0);\n api\n .uploadFile(props.formfield, file, (event) => {\n setProgress(Math.round((100 * event.loaded) / event.total));\n })\n .then((response) => {\n setUploadedFile(response.filename);\n setFileBeingUploaded(undefined);\n props.selectedFile && props.selectedFile(file.name);\n props.onFileChange && props.onFileChange(response.filename);\n })\n .catch(() => {\n setError(t('aftercare.images.error'));\n setFileBeingUploaded(undefined);\n props.onFileChange && props.onFileChange(undefined);\n props.selectedFile && props.selectedFile(undefined);\n });\n };\n const removeFile = () => {\n if (uploadedFile) {\n api.removeFile(props.formfield, uploadedFile).then((response) => {\n setUploadedFile(undefined);\n props.onFileChange && props.onFileChange(undefined);\n props.selectedFile && props.selectedFile(undefined);\n });\n }\n };\n if (fileBeingUploaded) {\n return (React.createElement(\"div\", { className: \"button button--fileupload image-button image-button-progress\" },\n React.createElement(\"div\", { className: \"label progress-bar\", role: \"progressbar\", \"aria-valuenow\": progress, \"aria-valuemin\": 0, \"aria-valuemax\": 100 },\n progress,\n \"%\")));\n }\n if (uploadedFile) {\n return (React.createElement(\"div\", { className: \"button button--fileupload image-button image-button-remove\" },\n React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"label\" },\n React.createElement(\"span\", null, props.label),\n React.createElement(\"span\", null, t('aftercare.images.added'))),\n React.createElement(\"button\", { type: \"button\", className: \"button button--tertiary\", onClick: removeFile },\n React.createElement(\"span\", null, t('button.remove'))))));\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"button button--fileupload image-button image-button-add\" },\n React.createElement(\"label\", { className: \"label\" },\n props.label,\n \" \",\n props.required ? ' *' : '',\n React.createElement(\"input\", { type: \"file\", onChange: selectFile, accept: props.filetype == 'IMAGES' ? 'image/*, text/plain' : undefined })),\n props.tooltipText && React.createElement(Tooltip, { ariaLabel: t('label.info'), id: props.formfield, text: props.tooltipText })),\n props.requiredError && React.createElement(\"div\", { className: \"invalid-feedback\" }, t('aftercare.requiredimage')),\n error && React.createElement(\"div\", { className: \"invalid-feedback\" }, error)));\n};\nexport default UploadFiles;\n","import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { motion } from 'framer-motion';\nimport api from '@utils/api';\nconst RegisteredInStoreCheckoutConfirm = (props) => {\n const { t } = useTranslation();\n const [clickedCta, setClickedCta] = useState(false);\n const sendEmail = () => {\n api.forgotPasswordSendMail(props.email);\n setClickedCta(true);\n };\n return (React.createElement(\"div\", { className: \"text-section\" }, !clickedCta ? (React.createElement(React.Fragment, null,\n React.createElement(\"p\", { className: \"text-section__description\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: {\n __html: t('orderconfirmation.thankyou.sendemail', { 0: props.email }),\n } })),\n React.createElement(\"div\", { className: \"text-section__description\" },\n React.createElement(\"button\", { className: \" button button--secondary full\", onClick: () => sendEmail() },\n React.createElement(\"span\", null, t('login.registeredinstore.sendemail')))))) : (React.createElement(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3 } },\n React.createElement(\"p\", { className: \"text-section__description\" },\n React.createElement(\"span\", { dangerouslySetInnerHTML: {\n __html: t('orderconfirmation.thankyou.resendemailtext', { 0: props.email }),\n } })),\n React.createElement(\"div\", { className: \"text-section__description\" },\n React.createElement(\"p\", { className: \"mb-12\" }, t('orderconfirmation.thankyou.resendemail')),\n React.createElement(\"button\", { className: \"button button--secondary full\", onClick: () => sendEmail() },\n React.createElement(\"span\", null, t('login.registeredinstore.resendemail'))))))));\n};\nexport default RegisteredInStoreCheckoutConfirm;\n","import React from 'react';\nconst Icon = (props) => {\n const icon = `${props.family}-${props.name}${props.inverted ? '-white' : ''}`;\n return React.createElement(\"span\", { \"aria-label\": props.ariaLabel, \"aria-hidden\": true, className: `icon icon--${icon} ${props.autoSize ? 'auto-size' : ''}` });\n};\nIcon.defaultProps = {\n family: '10',\n inverted: false,\n ariaHidden: false,\n};\nexport default Icon;\n"],"names":["timeoutId","Accordion","props","expandedCard","setExpandedCard","useState","height","setHeight","groupRef","setOpen","i","isOpen","useEffect","results","length","scrollToElement","container","opener","clearTimeout","setTimeout","elem","bounding","getBoundingClientRect","top","left","bottom","window","innerHeight","document","documentElement","clientHeight","right","innerWidth","clientWidth","isInViewport","scrollPosition","scrollY","containerScrollPosition","header","querySelector","endPosition","style","scrollTo","behavior","gap","direction","int","setInterval","clearInterval","scrollToPx","offsetHeight","defaultOpen","children","c","isInitialOpen","key","console","warn","log","current","childrenLength","useMemo","counter","createElement","type","className","flex","ref","child","cloneElement","Object","assign","onSelect","onChildSelect","expanded","loading","initiallyClosed","parentHeight","defaultProps","AccordionItem","t","accordionPanel","useRef","accordionId","updateHeight","autoHeight","firstElementChild","scrollHeight","miniAccordion","itemClass","id","onClick","callbackOnOpen","accordion__panel_open","elementActive","headerClass","tabIndex","isTitleMarkup","title","hideToggleButtons","contentClass","role","callback","listener","event","contains","target","addEventListener","removeEventListener","showTooltip","setShowTooltip","button","tootltipRef","boxRef","offset","setOffset","_a","containerRef","tempOffset","escape","e","setToolTipOpen","tooltipElements","querySelectorAll","lastTooltipElement","country","classList","add","renderCloseButton","onBlur","relatedTarget","matches","info","mqObj","md","checkout","icon","ariaLabel","text","dangerouslySetInnerHTML","__html","markup","addressutils","saveAddress","async","values","formdef","onServerError","onSuccess","errors","keys","then","data","error","fields","forEach","f","substring","lastIndexOf","catch","salutation","fistname","lastname","language","getElementFromHtmlString","htmlString","selector","textVal","div","innerHTML","calculateDateforJP","date","splitted","split","year","pop","days","shift","splice","join","validateEmail","email","test","capitalizeFirstLetter","string","charAt","toUpperCase","slice","getZeroPadNumber","_number","digits","toString","padStart","getRandomUUID","prefix","_b","uuid","crypto","randomUUID","Math","random","addURLParameter","url","param","paramVal","indexOf","addURLParameters","baseUrl","queryParams","newUrl","value","entries","siteUrl","urlName","params","siteUrls","ClientServiceSection","description","introSection","buttonLink","buttonText","borderBottom","buttonAction","noMargin","noPadding","textHolder","active","renderTitle","undefined","cls","href","fileBeingUploaded","setFileBeingUploaded","progress","setProgress","uploadedFile","setUploadedFile","setError","removeFile","formfield","response","onFileChange","selectedFile","label","required","onChange","file","files","filetype","round","loaded","total","filename","name","accept","tooltipText","requiredError","clickedCta","setClickedCta","sendEmail","initial","opacity","animate","transition","duration","Icon","family","inverted","autoSize","ariaHidden"],"sourceRoot":""}