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AASnM,OAAS,IAAM6L,EAAiB,EACnF,EAI4CQ,IASrDC,EAAe,KACjB,MAAMC,EATmB,MACzB,MAAMN,EAAgBhQ,OAAOiQ,WAC7B,GAAqB,GAAjBD,EACA,OAEJ,MAAME,EAAWvG,OAAOwG,KAAKP,GAAcjN,QAAQE,GAAQ+M,EAAa/M,IAAQmN,IAChF,OAAOJ,EAAaM,EAASA,EAASnM,OAAS,GAAG,EAGhCwM,GACdD,GAAaA,IAAcR,GAE3BC,EAAqBO,EACzB,EAWJ,OANA,IAAA9P,YAAU,KACNR,OAAOwQ,iBAAiB,SAAUH,GAC3B,KACHrQ,OAAOyQ,oBAAoB,SAAUJ,EAAa,KAGnDP,CAAiB,C","sources":["webpack:///./assets/src/components/checkout/ChangeCountryModal.tsx","webpack:///./assets/src/components/addressSuggestion/AddressSearchItem.tsx","webpack:///./assets/src/components/addressSuggestion/AddressSearchWidget.tsx","webpack:///./assets/src/components/addressSuggestion/AddressSearchGoogle.tsx","webpack:///./assets/src/components/addressSuggestion/AddressSearch.tsx","webpack:///./assets/src/components/checkout/AddressForm.tsx","webpack:///./assets/src/components/order/Address.tsx","webpack:///./assets/src/components/storelocator/scripts/GoogleMapScript.tsx","webpack:///./assets/src/ui/loading/Loading.tsx","webpack:///./assets/src/ui/modal/ModalDialog.tsx","webpack:///./assets/src/ui/radioGroup/RadioGroup.tsx","webpack:///./assets/src/ui/radioGroup/RadioGroupItem.tsx","webpack:///./assets/src/utils/useBreakpoint.ts"],"sourcesContent":["import api from '@utils/api';\nimport ModalDialog from '@ui/modal/ModalDialog';\nimport React, { useEffect, useState } from 'react';\nimport { withTranslation } from 'react-i18next';\nconst AddressForm = (props) => {\n const { t } = props;\n const [newCountry, setNewCountry] = useState(window.country);\n const [newDisplayCountry, setNewDisplayCountry] = useState();\n const [redirect, setRedirect] = useState();\n const [localeData, setLocaleData] = useState();\n useEffect(() => {\n api.getLocaleData().then(data => {\n setLocaleData(data.localeModel);\n });\n }, []);\n useEffect(() => {\n console.log(newCountry);\n }, [newCountry]);\n useEffect(() => {\n if (localeData && props.isOpen) {\n setNewDisplayCountry(localeData.name);\n }\n }, [props.isOpen]);\n const onChangeCountry = (e) => {\n setNewCountry(e.target.value);\n setNewDisplayCountry(e.target.selectedOptions[0].dataset.countrydisplayname);\n let newRedirect = localeData.localeLinks._PANGEA.countries.find(country => country.countryCode === e.target.value).languages[0].redirectUrl;\n console.log(localeData.localeLinks._PANGEA.countries.find(country => country.countryCode === e.target.value));\n setRedirect(newRedirect);\n };\n if (!localeData) {\n return (React.createElement(React.Fragment, null));\n }\n return (React.createElement(React.Fragment, null,\n React.createElement(ModalDialog, { className: 'change-country-modal', id: 'change-country-modal', isOpen: props.isOpen, title: t('checkout.changecounntry.title'), onRequestClose: () => props.closeCountryModal(), mobileBottom: true },\n React.createElement(\"p\", null, t('checkout.changecounntry.alert')),\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(\"div\", { className: \"form-group animated-label\" },\n React.createElement(\"div\", { className: \"form-select\" },\n React.createElement(\"select\", { name: \"stateCode\", id: \"stateCode\", className: \"form-control\", onChange: (e) => onChangeCountry(e) },\n React.createElement(\"option\", { \"data-countrydisplayname\": localeData.name, value: localeData.countryCode }, localeData.name + (!localeData.showcase ? ` (${localeData.currencySymbol})` : '')),\n localeData.localeLinks._PANGEA.countries.filter((country) => country.countryCode !== localeData.countryCode && !country.showcase).map((country) => (React.createElement(\"option\", { key: country.countryCode, \"data-countrydisplayname\": country.displayName, value: country.countryCode }, country.displayName + (!country.showcase ? ` (${country.currencySymbol})` : '')))))))),\n React.createElement(\"button\", { type: \"button\", className: \"cta-primary\", onClick: () => {\n if (newCountry === window.country) {\n props.closeCountryModal();\n }\n else if (redirect) {\n console.log('change country with redirect -> ', redirect);\n window.location.href = redirect;\n }\n } }, t('checkout.changecounntry.button', [newDisplayCountry || localeData.name])))));\n};\nexport default withTranslation()(AddressForm);\n","import React from 'react';\nconst AddressSearchItem = (props) => {\n return (React.createElement(\"li\", { id: 'autocomplete-option-' + props.index, role: \"option\", className: props.focused ? 'focused' : undefined, \"aria-selected\": props.focused },\n React.createElement(\"button\", { type: \"button\", onClick: (e) => props.selectSuggestion(props.item), tabIndex: -1 }, props.suggestionText(props.item))));\n};\nexport default AddressSearchItem;\n","import classNames from 'classnames';\nimport React from 'react';\nimport AddressSearchItem from './AddressSearchItem';\nconst AddressSearchWidget = (props) => {\n var _a, _b;\n return (React.createElement(\"div\", { className: classNames('autocomplete', { hidden: ((_a = props.items) === null || _a === void 0 ? void 0 : _a.length) === 0 }) },\n React.createElement(\"ul\", { id: props.id, role: \"listbox\", \"aria-labelledby\": props.labbelledby + '-label' }, (_b = props.items) === null || _b === void 0 ? void 0 : _b.map((sug, i) => (React.createElement(AddressSearchItem, { key: i, index: i, item: sug, selectSuggestion: props.selectSuggestion, suggestionText: props.suggestionText, focused: (props === null || props === void 0 ? void 0 : props.itemFocused) === i })))),\n props.attribution && React.createElement(\"div\", { className: \"attribution\" }, props.attribution)));\n};\nexport default AddressSearchWidget;\n","// import { captureMessage } from '@sentry/react';\nimport React, { useEffect, useState } from 'react';\nimport ClickAwayListener from 'react-click-away-listener';\nimport AddressSearchWidget from './AddressSearchWidget';\nconst countriesWithLevel2 = ['IT', 'ES'];\nconst AddressSearch = (props) => {\n var _a;\n const [searchValue, setSearchValue] = useState('');\n const [itemFocused, setItemFocused] = useState();\n const [predictionResult, setPredictionResult] = useState({ predictions: [], error: '' });\n const googleAutocomplete = async (text) => new Promise((resolve) => {\n if (!text) {\n return resolve({ predictions: [], error: 'Need valid user text input' });\n }\n if (typeof window.google === 'undefined') {\n return resolve({ predictions: [], error: 'Google places library not detected, have you imported the html script?' });\n }\n if (typeof window.google.maps.places === 'undefined') {\n return resolve({ predictions: [], error: 'Google detected but places is missing, have you imported the html script?' });\n }\n let autocompletionrequest = {\n input: text,\n componentRestrictions: {\n country: props.country || window.country,\n },\n types: ['geocode'],\n // sessionToken?: AutocompleteSessionToken;\n // types?: string[];\n };\n try {\n let autocomplete = new window.google.maps.places.AutocompleteService();\n // Avoid paying for data that you don't need by restricting the set of\n // place fields that are returned to just the address components.\n // autocomplete.setFields(['address_component']);\n autocomplete.getPlacePredictions(autocompletionrequest, (predictions) => resolve({ predictions: (predictions || []).slice(0, 10), error: '' }));\n }\n catch (e) {\n resolve({ predictions: [], error: e });\n }\n });\n useEffect(() => {\n const handleDebounce = setTimeout(async () => {\n try {\n if (!searchValue) {\n handleClickAway();\n return;\n }\n const nextprediction = await googleAutocomplete(searchValue);\n setPredictionResult(nextprediction);\n }\n catch (e) {\n console.error(e);\n }\n }, 400);\n return () => {\n clearTimeout(handleDebounce);\n };\n }, [searchValue]);\n const handleClickAway = () => {\n setTimeout(() => {\n setItemFocused(undefined);\n setPredictionResult({ predictions: [] });\n }, 100);\n };\n const max = (value, length) => {\n if (!value || value.length <= length) {\n return value;\n }\n return value.substring(0, length);\n };\n const getField = (addresscomponents, fields, type) => {\n for (let j = 0; j < fields.length; j++) {\n let res = addresscomponents.find((o) => o.types.includes(fields[j]));\n if (res) {\n return res[type];\n }\n }\n };\n const selectSuggestion = (prediction) => {\n // street_number: \"short_name\",\n // route: \"long_name\",\n // locality: \"long_name\",\n // administrative_area_level_1: \"short_name\",\n // country: \"long_name\",\n // postal_code: \"short_name\",\n new google.maps.Geocoder().geocode({ placeId: prediction.place_id }, (results, status) => {\n let geo = results[0].address_components;\n let streetNumberWarning = true;\n let error;\n let hasoptions = props.addressform.stateCode && props.addressform.stateCode.options;\n let countryName = getField(geo, ['country'], 'short_name');\n let statecode = getField(geo, countriesWithLevel2.includes(props.country) ? ['administrative_area_level_2'] : ['administrative_area_level_1'], hasoptions ? 'short_name' : 'long_name');\n let country = '';\n if (hasoptions) {\n let level1code = getField(geo, ['administrative_area_level_1'], 'short_name');\n let level1name = getField(geo, ['administrative_area_level_1'], 'long_name');\n let level2code = getField(geo, ['administrative_area_level_2'], 'short_name');\n let level2name = getField(geo, ['administrative_area_level_2'], 'long_name');\n let province = props.addressform.stateCode.options.find((o) => o.value == level1code);\n if (!province) {\n province = props.addressform.stateCode.options.find((o) => o.value == level2code);\n }\n if (!province && level1name) {\n province = props.addressform.stateCode.options.find((o) => (o.value && o.value.toLowerCase() == level1name.toLowerCase()) || (o.label && o.label.toLowerCase() == level1name.toLowerCase()));\n }\n if (!province && level2name) {\n province = props.addressform.stateCode.options.find((o) => (o.value && o.value.toLowerCase() == level2name.toLowerCase()) || (o.label && o.label.toLowerCase() == level2name.toLowerCase()));\n }\n // if (!province) {\n // captureMessage(`missing province for country ${props.country}: Level 1 \"${level1code}\" \"${level1name}\" Level 2 \"${level2code}\" \"${level2name}\"`);\n // }\n if (province) {\n statecode = province.value;\n }\n else {\n error = `${props.country} Province not found. Level 1 \"${level1code}\" \"${level1name}\" Level 2 \"${level2code}\" \"${level2name}\"`;\n }\n }\n if (countryName) {\n country = countryName;\n }\n if (getField(geo, ['street_number'], 'long_name')) {\n streetNumberWarning = false;\n }\n let address1 = [getField(geo, ['route'], 'long_name'), getField(geo, ['street_number'], 'long_name')];\n if (window.country == 'US' || window.country == 'CA') {\n address1 = address1.reverse();\n }\n let address = {\n address1: address1.join(' '),\n city: max(getField(geo, ['locality', 'postal_town', 'sublocality', 'administrative_area_level_2'], 'long_name'), 30),\n postalCode: getField(geo, ['postal_code'], 'long_name'),\n stateCode: statecode,\n isAddressValidated: true,\n country: country,\n all: results[0],\n };\n props.onSelect(address, error, streetNumberWarning);\n handleClickAway();\n });\n };\n const suggestionText = (sug) => {\n return (sug === null || sug === void 0 ? void 0 : sug.description) || 'Not found';\n };\n return (React.createElement(ClickAwayListener, { onClickAway: handleClickAway },\n React.createElement(\"div\", { className: \"address-search\" },\n React.cloneElement(props.children, {\n onChange: (e) => {\n setSearchValue(e.target.value);\n props.onChange();\n },\n onFocus: (e) => {\n setSearchValue(e.target.value);\n },\n onBlur: (e) => {\n console.log(\"onBlur!!!!\");\n },\n onKeyDown: (e) => {\n if (e.key === 'ArrowUp') {\n e.preventDefault();\n if (itemFocused == undefined) {\n setItemFocused((predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions.length) - 1);\n }\n else {\n if (predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions[itemFocused - 1]) {\n setItemFocused(itemFocused - 1);\n }\n else {\n setItemFocused((predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions.length) - 1);\n }\n }\n }\n else if (e.key === 'ArrowDown') {\n e.preventDefault();\n if (itemFocused == undefined) {\n setItemFocused(0);\n }\n else {\n if (predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions[itemFocused + 1]) {\n setItemFocused(itemFocused + 1);\n }\n else {\n setItemFocused(0);\n }\n }\n }\n else if (e.key === 'Tab' || e.key === 'Escape') {\n handleClickAway();\n }\n else if (e.key == 'Enter') {\n if (itemFocused != undefined) {\n e.preventDefault();\n selectSuggestion(predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions[itemFocused]);\n }\n }\n },\n ariaRole: 'combobox',\n ariaAutocomplete: 'list',\n ariaControls: 'autocomplete-listbox',\n ariaExpanded: (predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions.length) > 0,\n ariaActivedescendant: itemFocused != undefined ? 'autocomplete-option-' + itemFocused : undefined,\n autocomplete: 'none',\n }),\n React.createElement(AddressSearchWidget, { id: \"autocomplete-listbox\", labbelledby: (_a = props.children.props) === null || _a === void 0 ? void 0 : _a.name, items: predictionResult === null || predictionResult === void 0 ? void 0 : predictionResult.predictions, itemFocused: itemFocused, setItemFocused: (e) => setItemFocused(e), selectSuggestion: selectSuggestion, suggestionText: suggestionText, attribution: React.createElement(\"img\", { src: `${window.staticImagesRoot}/powered_by_google_on_white_hdpi.png`, alt: \"Powered by Google\" }) }))));\n};\nexport default AddressSearch;\n","import React from 'react';\n// import AddressSearchWoosmap from './AddressSearchWoosmap';\nimport AddressSearchGoogle from './AddressSearchGoogle';\nconst AddressSearch = (props) => {\n if (window.addressServiceName === 'Google') {\n return React.createElement(AddressSearchGoogle, Object.assign({}, props), props.children);\n }\n return props.children;\n};\nexport default AddressSearch;\n","import DwFormField from '@ui/formfield/DwFormField';\nimport ChangeCountryModal from './ChangeCountryModal';\n// import ModalDialog from '@ui/modal/ModalDialog';\nimport AddressSearch from '@components/addressSuggestion/AddressSearch';\nimport api from '@utils/api';\nimport React, { Suspense } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport ModalDialog from '@ui/modal/ModalDialog';\n// const DaumPostcode = React.lazy(() => import(/* webpackChunkName: \"daum\" */ 'react-daum-postcode'));\nimport DaumPostcodeEmbed from 'react-daum-postcode';\nconst AddressForm = (props) => {\n const { t } = props;\n const [addressform, setAddressform] = React.useState();\n const [addressformForSubmit, setAddressformForSubmit] = React.useState(); // required for billing, in that case addressForm is a different form definition\n const [changeCountryModalOpen, setChangeCountryModalOpen] = React.useState(false); // required for billing, in that case addressForm is a different form definition\n const [showStreetNumberWarning, setShowStreetNumberWarning] = React.useState(false);\n const [showDaum, setShowDaum] = React.useState();\n React.useEffect(() => {\n api.getForm('address', {}).then((data) => {\n console.log('AddressAPI:', data);\n setAddressformForSubmit(data);\n });\n }, []);\n React.useEffect(() => {\n setAddressform(props.formdef);\n }, [props.formdef]);\n const onChangeCountry = (oldcountry, e) => {\n props.values.country = e.target.value;\n // console.log('Change country from ' + oldcountry + ' to ' + e.target.value);\n if (e.target.value != oldcountry && oldcountry) {\n let address = {\n stateCode: '',\n city: '',\n postalCode: '',\n address1: '',\n address2: '',\n };\n props.mutator(address);\n }\n // getFormAndSubmit is called to set the current country - getForm will return the previous one\n api.getFormAndSubmit(props.values, addressformForSubmit, 'address').then((data) => {\n setAddressform(data);\n props.changeFormdef && props.changeFormdef(data);\n });\n };\n const handleDaumSearch = (data) => {\n if (data) {\n let obj = {\n address1: data.roadAddress,\n address2: '',\n stateCode: '.',\n city: data.sido,\n postalCode: data.zonecode,\n validated: true,\n };\n console.log('address from DAUM: ', obj);\n props.mutator(obj);\n }\n setShowDaum(false);\n };\n if (!addressform) {\n return React.createElement(React.Fragment, null);\n }\n const handleAddressSuggestion = (address, error, streetNumberWarning) => {\n if (address) {\n if (window.devmode) {\n console.log('Suggested address: ' + JSON.stringify(address, null, 2));\n }\n if (window.devmode && error) {\n console.log(\"error in address suggestion: \" + error);\n }\n setShowStreetNumberWarning(streetNumberWarning);\n props.mutator(address);\n }\n };\n const printAddresses = () => {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(AddressSearch, { country: props.values.country, onSelect: handleAddressSuggestion, addressform: addressform, onChange: () => setShowStreetNumberWarning(false) },\n React.createElement(DwFormField, { def: addressform, name: \"address1\", disabled: props.disabled, autocomplete: 'address-line1' }))),\n showStreetNumberWarning && React.createElement(\"p\", { className: 'warning-feedback' }, t('address.suggestion.nostreetnumber')),\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"address2\", disabled: props.disabled }))));\n };\n const printPreferred = () => {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"preferred\", type: \"checkbox\" }))));\n };\n const printNameAndSurname = () => {\n return (React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"firstName\", autocomplete: \"given-name\", disabled: props.disabled }),\n React.createElement(DwFormField, { def: addressform, name: \"lastName\", autocomplete: \"family-name\", disabled: props.disabled })));\n };\n const printAddressId = () => {\n var _a, _b;\n return (React.createElement(\"div\", { className: `field-row ${((_a = props === null || props === void 0 ? void 0 : props.customer) === null || _a === void 0 ? void 0 : _a.profile) || (props === null || props === void 0 ? void 0 : props.isEditForm) || (props === null || props === void 0 ? void 0 : props.isRegisterForm) ? '' : 'd-none'}` },\n React.createElement(DwFormField, { def: addressform, name: \"addressId\", disabled: props.disabled, requiredLabel: ((_b = props === null || props === void 0 ? void 0 : props.customer) === null || _b === void 0 ? void 0 : _b.profile) || props.isEditForm || props.isRegisterForm })));\n };\n const printPostalInfo = () => {\n var _a;\n return (React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"postalCode\", disabled: props.disabled, autocomplete: \"postal-code\" }),\n ((_a = addressform === null || addressform === void 0 ? void 0 : addressform.stateCode) === null || _a === void 0 ? void 0 : _a.options) && (React.createElement(DwFormField, { def: addressform, name: \"stateCode\", requiredLabel: true, disabled: props.disabled, autocomplete: \"state\", type: 'select' })),\n React.createElement(DwFormField, { def: addressform, name: \"city\", disabled: props.disabled })));\n };\n const printPostalInfoKR = () => {\n if (window.addressServiceName === 'Kakao') {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"field-row no-break\" },\n React.createElement(DwFormField, { def: addressform, name: \"postalCode\", disabled: true, autocomplete: \"postal-code\" }),\n React.createElement(\"button\", { className: \"cta-secondary form-group animated-label\", type: \"button\", onClick: () => setShowDaum(true) }, t('checkout.kakaoautocomplete.search.button'))),\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"city\", disabled: props.disabled }))));\n }\n else {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: addressform, name: \"postalCode\", disabled: props.disabled, autocomplete: \"postal-code\" }),\n React.createElement(DwFormField, { def: addressform, name: \"city\", disabled: props.disabled }))));\n }\n };\n const printCountryAndPhone = () => {\n var _a, _b;\n return (React.createElement(\"div\", { className: \"field-row with-phone-info\" },\n props.isShipping ? (React.createElement(React.Fragment, null,\n React.createElement(DwFormField, { def: addressform, name: \"country\", disabled: true, autocomplete: \"country\", type: ((_a = addressform === null || addressform === void 0 ? void 0 : addressform.country) === null || _a === void 0 ? void 0 : _a.options) ? 'select' : 'text', requiredLabel: true }),\n React.createElement(\"p\", { className: 'open-country-modal' },\n t('checkout.changecounntry.open.label'),\n React.createElement(\"button\", { type: 'button', onClick: () => setChangeCountryModalOpen(true) },\n \" \",\n t('checkout.changecounntry.open.button'))))) : (React.createElement(DwFormField, { def: addressform, name: \"country\", disabled: props.disabled, autocomplete: \"country\", type: ((_b = addressform === null || addressform === void 0 ? void 0 : addressform.country) === null || _b === void 0 ? void 0 : _b.options) ? 'select' : 'text', requiredLabel: true, onChange: (e) => onChangeCountry(props.values.country, e) })),\n React.createElement(DwFormField, { def: addressform, name: props.isRegisterForm ? 'addressPhone' : 'phone', className: 'phone-field', disabled: props.disabled })));\n };\n const printFieldsInOrderForCountry = (country) => {\n switch (country) {\n case 'JP':\n return (React.createElement(React.Fragment, null,\n printNameAndSurname(),\n printPostalInfo(),\n printAddresses(),\n printCountryAndPhone()));\n case 'KR':\n return (React.createElement(React.Fragment, null,\n printNameAndSurname(),\n printPostalInfoKR(),\n printAddresses(),\n printCountryAndPhone()));\n default:\n return (React.createElement(React.Fragment, null,\n printNameAndSurname(),\n printAddresses(),\n printPostalInfo(),\n printCountryAndPhone()));\n }\n };\n const closeCountryModal = () => {\n setChangeCountryModalOpen(false);\n };\n return (React.createElement(React.Fragment, null,\n addressform.addressId && printAddressId(),\n printFieldsInOrderForCountry(props.values.country),\n props.isEditForm && printPreferred(),\n React.createElement(\"div\", { className: \"d-none\" },\n React.createElement(DwFormField, { def: addressform, name: \"validated\", type: \"hidden\" }),\n React.createElement(DwFormField, { def: addressform, name: \"validatedHash\", type: \"hidden\" })),\n props.isShipping && React.createElement(ChangeCountryModal, { isOpen: changeCountryModalOpen, closeCountryModal: closeCountryModal }),\n showDaum && (React.createElement(ModalDialog, { mobileBottom: true, isOpen: showDaum, contentLabel: \"\", title: t('checkout.kakaoautocomplete.search.button'), onRequestClose: () => {\n handleDaumSearch(null);\n } },\n React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },\n React.createElement(DaumPostcodeEmbed, { onComplete: handleDaumSearch, onSearch: () => { } }))))));\n};\nexport default withTranslation()(AddressForm);\n","import React from 'react';\nimport { withTranslation } from 'react-i18next';\nconst Address = (props) => {\n var _a, _b;\n if (!props.address) {\n return React.createElement(React.Fragment, null);\n }\n if (props.monoline) {\n return (React.createElement(\"div\", { className: \"address-detail\" },\n React.createElement(\"p\", null, props.address.address1),\n React.createElement(\"p\", null,\n props.address.postalCode,\n \" \",\n props.address.city,\n \" \", (_a = props.address) === null || _a === void 0 ? void 0 :\n _a.stateCode)));\n }\n return (React.createElement(React.Fragment, null,\n props.address.ID && props.showid && React.createElement(\"div\", { className: \"address-title\" }, props.address.ID),\n React.createElement(\"div\", { className: \"address-detail\" },\n !props.noname && React.createElement(\"p\", null,\n props.address.firstName,\n \" \",\n props.address.lastName),\n React.createElement(\"p\", null, props.address.address1),\n React.createElement(\"p\", null,\n props.address.postalCode,\n \" \",\n props.address.city,\n \" \", (_b = props.address) === null || _b === void 0 ? void 0 :\n _b.stateCode),\n props.address.phone && !props.nophone && React.createElement(\"p\", null, props.address.phone))));\n};\nexport default withTranslation()(Address);\n","import { useJsApiLoader } from '@react-google-maps/api';\nimport React from 'react';\nconst mapsLibraries = ['places'];\nconst GoogleMapScript = (props) => {\n const { isLoaded } = useJsApiLoader(Object.assign({ googleMapsApiKey: window.MAPS_KEY, libraries: mapsLibraries, region: window.country, language: window.language, id: 'maps-api' }, props));\n return isLoaded ? props.children : React.createElement(React.Fragment, null);\n};\nexport default GoogleMapScript;\n","import classNames from 'classnames';\nimport React from 'react';\nconst Loading = (props) => {\n return (React.createElement(React.Fragment, null, props.inline ? (React.createElement(\"div\", { className: classNames('loader', { light: props.lightMode, transparent: props.transparent }, 'visible') },\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }))) : (React.createElement(\"div\", { id: \"html-spinner\", className: \"spinner full visible\" },\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_light\" }),\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_dark\" })))));\n};\nexport default Loading;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Modal from 'react-modal';\nconst appElement = document.getElementById('maincontent');\nModal.setAppElement(appElement ? appElement : document.getElementsByTagName('body')[0]);\nconst ModalDialog = (props) => {\n const { t } = useTranslation();\n const closeButton = () => {\n return (React.createElement(\"button\", { \"aria-label\": t('button.close'), className: classNames('modal-close'), onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onRequestClose(e);\n } }));\n };\n return (React.createElement(Modal, Object.assign({ closeTimeoutMS: 0 }, props, { overlayClassName: classNames('modal-overlay', { 'modal-overlay--mobile-bottom': props.mobileBottom }, { 'modal-overlay--minicart': props.minicart }, props.overlayClassName), className: classNames('modal-dialog', { 'modal-dialog--minicart': props.minicart }, props.className) }),\n !props.hideHeader && (React.createElement(\"header\", { className: \"modal-header\" },\n React.createElement(\"h2\", { id: \"dialog1_label\", className: classNames('modal-title', props.modalTitleClassName) }, props.title),\n props.headerButton && props.onHeaderButton && (React.createElement(\"button\", { type: \"button\", className: \"modal-header-cta cta-inline\", onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onHeaderButton();\n } }, props.headerButton)),\n closeButton())),\n React.createElement(\"div\", { className: \"modal-content\" }, props.children),\n props.submit && props.onSubmit && (React.createElement(\"footer\", { className: \"modal-footer\" },\n React.createElement(\"button\", { type: \"button\", className: \"modal-cta cta-primary\", onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onSubmit();\n } },\n props.submit,\n React.createElement(\"svg\", { className: \"icon--chevron icon--m\" },\n React.createElement(\"use\", { href: \"#sprite-chevron\" })))))));\n};\nexport default ModalDialog;\n","import classNames from 'classnames';\nimport React, { useMemo } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport RadioGroupItem from './RadioGroupItem';\nconst isRadioGroupItemComponent = (c) => {\n let isRadioGroup = !!c.props && c.props.__TYPE === 'RadioGroupItem';\n if (!isRadioGroup) {\n // console.warn('Element is not an RadioGroup item. Type name:' + c.type?.name + ' - element ', c);\n return false;\n }\n return true;\n};\nconst RadioGroup = (props) => {\n const radioGroupItems = useMemo(() => props.children.filter((c) => isRadioGroupItemComponent(c)), [props.children]);\n const printItems = () => {\n return radioGroupItems.map((c, i) => (React.createElement(RadioGroupItem, Object.assign({ selected: c.props.selected, setSelected: props.setSelected, groupId: props.id, key: i }, c.props), c.props.children)));\n };\n return (React.createElement(\"div\", { className: classNames('optionbox', { 'optionbox--horizontal-two-items': props.type === 'horizontal-two-items' }, { 'optionbox--horizontal-more-items': props.type === 'horizontal-more-items' }, { 'optionbox--packaging': props.type === 'vertical' }, { 'optionbox--product': props.type === 'product' }, { 'optionbox--address': props.type === 'address' }, props.className), \"aria-labelledby\": props.labelId }, radioGroupItems.length > 0 ? printItems() : props.children));\n};\nexport default withTranslation()(RadioGroup);\n","import React from 'react';\nimport classnames from 'classnames';\nimport Loading from '@ui/loading/Loading';\nconst RadioGroupItem = (props) => {\n const onChange = () => {\n props.setSelected(props.id);\n (props.id === 'new' || props.id === null) && !!props.setAnalytics ? props.setAnalytics() : null;\n };\n return (React.createElement(\"label\", { className: classnames('optionbox__item', props.parentClass, { 'selected': props.selected }), \"aria-disabled\": props.disabled ? true : false },\n React.createElement(\"input\", { type: \"radio\", className: \"optionbox__item__radio\", name: props.groupId, value: props.id || '', onChange: onChange, checked: props.selected, disabled: props.disabled }),\n props.content,\n props.isLoading && React.createElement(Loading, { inline: true, lightMode: true })));\n};\n// for type filtering under RadioGroup\nRadioGroupItem.defaultProps = {\n __TYPE: 'RadioGroupItem',\n};\nexport default RadioGroupItem;\n","import { useEffect, useState } from 'react';\nconst getInitialBreakpointValue = () => {\n // get initial breakpoint is called before the page is fully loaded and innerWith may be 0. windows.mqObj may not be set\n const mediaQueries = window.mqObj;\n const documentWidth = window.innerWidth;\n if (documentWidth == 0 || !mediaQueries) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n const initalBr = filtered.length ? mediaQueries[filtered[filtered.length - 1]] : mediaQueries['xs'];\n return initalBr;\n};\nconst mediaQueries = Object.assign({ '<xs': 0 }, window.mqObj);\nconst useBreakpoint = () => {\n const [currentBreakpoint, setCurrentBreakpoint] = useState(getInitialBreakpointValue());\n const getCurrentBreakpoint = () => {\n const documentWidth = window.innerWidth;\n if (documentWidth == 0) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n return mediaQueries[filtered[filtered.length - 1]];\n };\n const handleResize = () => {\n const currentBr = getCurrentBreakpoint();\n if (currentBr && currentBr !== currentBreakpoint) {\n // console.info('%c[React - Breakpoint change] ', 'color: green;font-weight: bold;', currentBr);\n setCurrentBreakpoint(currentBr);\n }\n };\n // const debounceResize = () => {\n // handleResize();\n // };\n useEffect(() => {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n });\n return currentBreakpoint;\n};\nexport default useBreakpoint;\n"],"names":["withTranslation","props","newCountry","setNewCountry","useState","window","country","newDisplayCountry","setNewDisplayCountry","redirect","setRedirect","localeData","setLocaleData","useEffect","api","then","data","localeModel","console","log","isOpen","name","ModalDialog","className","id","title","t","onRequestClose","closeCountryModal","mobileBottom","onChange","e","target","value","selectedOptions","dataset","countrydisplayname","newRedirect","localeLinks","_PANGEA","countries","find","countryCode","languages","redirectUrl","onChangeCountry","showcase","currencySymbol","filter","map","key","displayName","type","onClick","location","href","index","role","focused","undefined","selectSuggestion","item","tabIndex","suggestionText","_a","_b","hidden","items","length","labbelledby","sug","i","itemFocused","attribution","countriesWithLevel2","searchValue","setSearchValue","setItemFocused","predictionResult","setPredictionResult","predictions","error","handleDebounce","setTimeout","async","handleClickAway","nextprediction","text","Promise","resolve","google","maps","places","autocompletionrequest","input","componentRestrictions","types","AutocompleteService","getPlacePredictions","slice","googleAutocomplete","clearTimeout","getField","addresscomponents","fields","j","res","o","includes","prediction","Geocoder","geocode","placeId","place_id","results","status","geo","address_components","streetNumberWarning","hasoptions","addressform","stateCode","options","countryName","statecode","level1code","level1name","level2code","level2name","province","toLowerCase","label","address1","reverse","address","join","city","substring","postalCode","isAddressValidated","all","onSelect","onClickAway","children","onFocus","onBlur","onKeyDown","preventDefault","ariaRole","ariaAutocomplete","ariaControls","ariaExpanded","ariaActivedescendant","autocomplete","description","src","staticImagesRoot","alt","addressServiceName","AddressSearchGoogle","Object","assign","setAddressform","addressformForSubmit","setAddressformForSubmit","changeCountryModalOpen","setChangeCountryModalOpen","showStreetNumberWarning","setShowStreetNumberWarning","showDaum","setShowDaum","formdef","handleDaumSearch","obj","roadAddress","address2","sido","zonecode","validated","mutator","handleAddressSuggestion","devmode","JSON","stringify","printAddresses","values","DwFormField","def","disabled","printNameAndSurname","printPostalInfo","requiredLabel","printCountryAndPhone","isShipping","oldcountry","changeFormdef","isRegisterForm","addressId","customer","profile","isEditForm","printFieldsInOrderForCountry","ChangeCountryModal","contentLabel","Suspense","fallback","onComplete","onSearch","monoline","ID","showid","noname","firstName","lastName","phone","nophone","mapsLibraries","isLoaded","googleMapsApiKey","MAPS_KEY","libraries","region","language","inline","light","lightMode","transparent","appElement","document","getElementById","getElementsByTagName","closeTimeoutMS","overlayClassName","minicart","hideHeader","modalTitleClassName","headerButton","onHeaderButton","stopPropagation","submit","onSubmit","radioGroupItems","useMemo","c","__TYPE","isRadioGroupItemComponent","labelId","selected","setSelected","groupId","RadioGroupItem","parentClass","setAnalytics","checked","content","isLoading","defaultProps","mediaQueries","mqObj","currentBreakpoint","setCurrentBreakpoint","documentWidth","innerWidth","filtered","keys","getInitialBreakpointValue","handleResize","currentBr","getCurrentBreakpoint","addEventListener","removeEventListener"],"sourceRoot":""}