{"version":3,"file":"js/2939.chunk.js","mappings":"2IAEA,IAAIA,EAAgB,CAChB,KACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,OACA,OACA,OACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,MACA,MACA,OACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,KACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,MACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,OACA,OACA,OACA,OACA,OACA,QAEJ,MAAMC,EAAeC,IACjB,IAAIC,EAAIC,EACR,MAAMC,EAAWH,EAAMI,IAAIJ,EAAMK,MAOjC,GAA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EAAe,cAAea,UAAW,2BAA6B7C,EAAMoC,YAAe,MAEjJ,gBAAoB,MAAO,CAAES,UAAW,IAAW,aAAc,CAAE,aAAcP,EAAkBC,IAAQA,EAAIC,KAAKoE,aAAe,CAAE,YAAatE,EAAkBC,IAA2B,IAAnBA,EAAIK,MAAMjC,OAAeX,EAAM0G,gBAAiB,YAAa1G,EAAM8C,KAAO,OAAS,SACnQlC,IACA+B,EAAMJ,EAAIK,MAAOL,EAAIC,KAAMF,EAAkBC,MAAUA,EAAIC,KAAKoE,aAC/DtE,EAAkBC,MAAyB,aAAfvC,EAAMM,MAAuBN,EAAMoC,YAA0B,QAAZ,YAAsB,gBAAoB,MAAO,CAAEY,GAAIhB,EAAe,SAAUa,UAAW,oBAAsBN,EAAIC,KAAKC,QACnMF,EAAIC,KAAKoE,aAAgB,gBAAoB,MAAO,CAAE5D,GAAIhB,EAAe,SAAUa,UAAW,oBAAsBN,EAAIC,KAAKoE,aAClI5G,EAAMoC,WAAc,gBAAoB,OAAQ,CAAEY,GAAIhB,EAAe,cAAea,UAAW,2BAA6B7C,EAAMoC,YAAe,KACjJpC,EAAMuH,UAyCkGC,CAAWjF,IAAM,EAErId,EAAUD,aAAe,CACrBlB,KAAM,QAEV,K","sources":["webpack:///./assets/common/src/ui/formfield/DwFormField.tsx","webpack:///./assets/common/src/ui/formfield/FormField.tsx"],"sourcesContent":["import React from 'react';\nimport FormField from './FormField';\nlet phoneprefixes = [\n    '+1',\n    '+1242',\n    '+1246',\n    '+1264',\n    '+1268',\n    '+1284',\n    '+1340',\n    '+1345',\n    '+1441',\n    '+1473',\n    '+1649',\n    '+1664',\n    '+1670',\n    '+1671',\n    '+1684',\n    '+1721',\n    '+1758',\n    '+1767',\n    '+1784',\n    '+1868',\n    '+1869',\n    '+20',\n    '+211',\n    '+212',\n    '+213',\n    '+216',\n    '+218',\n    '+220',\n    '+221',\n    '+222',\n    '+223',\n    '+224',\n    '+225',\n    '+226',\n    '+227',\n    '+228',\n    '+229',\n    '+230',\n    '+231',\n    '+232',\n    '+233',\n    '+234',\n    '+235',\n    '+236',\n    '+237',\n    '+238',\n    '+239',\n    '+240',\n    '+241',\n    '+242',\n    '+243',\n    '+244',\n    '+245',\n    '+246',\n    '+248',\n    '+249',\n    '+250',\n    '+251',\n    '+252',\n    '+253',\n    '+254',\n    '+255',\n    '+256',\n    '+257',\n    '+258',\n    '+260',\n    '+261',\n    '+262',\n    '+263',\n    '+264',\n    '+265',\n    '+266',\n    '+267',\n    '+268',\n    '+269',\n    '+27',\n    '+290',\n    '+291',\n    '+297',\n    '+298',\n    '+299',\n    '+30',\n    '+31',\n    '+32',\n    '+33',\n    '+34',\n    '+350',\n    '+351',\n    '+352',\n    '+353',\n    '+354',\n    '+355',\n    '+356',\n    '+357',\n    '+358',\n    '+359',\n    '+36',\n    '+370',\n    '+371',\n    '+372',\n    '+373',\n    '+374',\n    '+375',\n    '+376',\n    '+377',\n    '+378',\n    '+380',\n    '+381',\n    '+382',\n    '+383',\n    '+385',\n    '+386',\n    '+387',\n    '+389',\n    '+39',\n    '+40',\n    '+41',\n    '+420',\n    '+421',\n    '+423',\n    '+43',\n    '+44',\n    '+45',\n    '+46',\n    '+47',\n    '+48',\n    '+49',\n    '+500',\n    '+501',\n    '+502',\n    '+503',\n    '+504',\n    '+505',\n    '+506',\n    '+507',\n    '+508',\n    '+509',\n    '+51',\n    '+52',\n    '+53',\n    '+54',\n    '+55',\n    '+56',\n    '+57',\n    '+58',\n    '+590',\n    '+591',\n    '+592',\n    '+593',\n    '+594',\n    '+595',\n    '+596',\n    '+597',\n    '+598',\n    '+599',\n    '+60',\n    '+61',\n    '+62',\n    '+63',\n    '+64',\n    '+65',\n    '+66',\n    '+670',\n    '+672',\n    '+673',\n    '+674',\n    '+675',\n    '+676',\n    '+677',\n    '+678',\n    '+679',\n    '+680',\n    '+681',\n    '+682',\n    '+683',\n    '+685',\n    '+686',\n    '+687',\n    '+688',\n    '+689',\n    '+690',\n    '+691',\n    '+692',\n    '+7',\n    '+81',\n    '+82',\n    '+84',\n    '+850',\n    '+852',\n    '+853',\n    '+855',\n    '+856',\n    '+86',\n    '+880',\n    '+886',\n    '+90',\n    '+91',\n    '+92',\n    '+93',\n    '+94',\n    '+95',\n    '+960',\n    '+961',\n    '+962',\n    '+963',\n    '+964',\n    '+965',\n    '+966',\n    '+967',\n    '+968',\n    '+970',\n    '+971',\n    '+972',\n    '+973',\n    '+974',\n    '+975',\n    '+976',\n    '+977',\n    '+98',\n    '+992',\n    '+993',\n    '+994',\n    '+995',\n    '+996',\n    '+998',\n];\nconst DwFormField = (props) => {\n    var _a, _b;\n    const fieldDef = props.def[props.name];\n    const requiredField = () => {\n        if ((fieldDef && fieldDef.mandatory) || props.requiredLabel) {\n            return true;\n        }\n        return false;\n    };\n    if (props.type === 'phoneprefix') {\n        const listToConcat = ((_a = props === null || props === void 0 ? void 0 : props.overridePrefixesList) === null || _a === void 0 ? void 0 : _a.length) ? props.overridePrefixesList : phoneprefixes;\n        const optionArray = [\n            {\n                value: '',\n                label: 'Select',\n            },\n        ].concat(listToConcat.map((p) => {\n            return { value: p, label: p };\n        }));\n        return React.createElement(FormField, Object.assign({}, props, fieldDef, { type: \"select\", options: optionArray, required: (fieldDef === null || fieldDef === void 0 ? void 0 : fieldDef.mandatory) || false }));\n    }\n    // return <FormField {...props} {...fieldDef} required={requiredField()} placeholder={props.placeholder ?? props.overridePlaceholder} />;\n    return (React.createElement(FormField, Object.assign({}, props, fieldDef, { options: props.options ? props.options : props.def[props.name].options, required: requiredField(), placeholder: (_b = props.placeholder) !== null && _b !== void 0 ? _b : props.overridePlaceholder })));\n};\nDwFormField.defaultProps = {\n    type: 'text',\n};\nexport default DwFormField;\n","/* eslint-disable jsx-a11y/no-onchange */\nimport { getId } from '@common/utils/brandDiffsUtils';\nimport classNames from 'classnames';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { Field } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nconst FormField = (props) => {\n    const { t } = useTranslation();\n    const [show, setShow] = React.useState(false);\n    const [inputFocused, setInputFocused] = useState(false);\n    const calculatedId = useMemo(() => {\n        return props.idSuffix ? `${props.name}_${props.idSuffix}` : props.name;\n    }, [props.name, props.idSuffix]);\n    const ariaDescribedBy = (helperText, invalid, name) => {\n        if (helperText && invalid) {\n            return name + '-helpertext' + ' ' + name + '-error';\n        }\n        else if (helperText && !invalid) {\n            return name + '-helpertext';\n        }\n        else if (!helperText && invalid) {\n            return name + '-error';\n        }\n        else {\n            return null;\n        }\n    };\n    function hasTemporaryError(frp) {\n        return frp.meta.error && frp.meta.touched; //&& !frp.meta.active\n    }\n    const field = (input, meta, invalid) => {\n        if (props.type === 'textarea') {\n            return (React.createElement(\"div\", { className: \"form-control\", \"data-dark\": props.dark ? 'true' : 'false' },\n                React.createElement(\"textarea\", Object.assign({ rows: 4 }, input, { id: calculatedId, disabled: props.disabled, readOnly: props.readonly, className: classNames('form-control', props.className, { 'disable-resize': props.type === 'textarea' && props.noResize }), \"aria-required\": props.required, \"aria-invalid\": invalid, placeholder: props.placeholder, maxLength: props.maxLength, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId), onChange: (e) => {\n                        input.onChange(e); //final-form's onChange\n                        if (props.onChange) {\n                            props.onChange(e);\n                        }\n                    }, onFocus: (e) => {\n                        input.onFocus(e); //final-form's onFocus\n                        if (props.onFocus) {\n                            props.onFocus(e);\n                        }\n                    }, onBlur: (e) => {\n                        input.onBlur(e); //final-form's onFocus\n                        if (props.onBlur) {\n                            props.onBlur(e);\n                        }\n                    } }))));\n        }\n        if (props.type === 'select') {\n            input.type = undefined;\n            return (React.createElement(\"div\", { className: \"form-select\", \"data-dark\": props.dark ? 'true' : 'false' },\n                React.createElement(\"select\", Object.assign({}, input, { id: calculatedId, disabled: props.disabled, className: classNames('form-control', props.className), autoComplete: props.autocomplete, \"aria-required\": props.required, \"aria-invalid\": invalid, onChange: (e) => {\n                        input.onChange(e); //final-form's onChange\n                        if (props.onChange) {\n                            props.onChange(e);\n                        }\n                    }, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId) }), (props.options || []).map((o) => (React.createElement(\"option\", { key: o.value, value: o.value || '', disabled: o.disabled }, o.label))))));\n        }\n        if (props.type === 'checkbox') {\n            return (React.createElement(\"input\", Object.assign({}, input, { id: calculatedId, disabled: props.disabled, readOnly: props.readonly, onChange: (e) => {\n                    input.onChange(e); //final-form's onChange\n                    if (props.onChange) {\n                        props.onChange(e);\n                    }\n                }, role: props.isToggle ? 'switch' : null, className: classNames('form-checkbox', props.className), type: props.type, \"aria-required\": props.required, \"aria-invalid\": invalid, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId), \"data-dark\": props.dark ? 'true' : 'false' }, (props.controlledInput && { checked: props.checkboxChecked }))));\n        }\n        if (props.type === 'password' && props.showPassword) {\n            const [toggleLength, setToggleLenght] = useState(0);\n            const toggler = useRef();\n            useEffect(() => {\n                if (toggler.current) {\n                    setToggleLenght(toggler.current.offsetWidth);\n                }\n            }, [show]);\n            return (React.createElement(\"div\", { className: classNames('form-control', props.className, 'has-showpassword', { 'has-tick': props.validTick }), style: { '--toggle-lenght': `${toggleLength}px` } },\n                React.createElement(\"input\", Object.assign({}, input, { id: calculatedId, disabled: props.disabled, readOnly: props.readonly, maxLength: props.maxLength, type: show ? null : props.type, \"aria-required\": props.required, \"aria-invalid\": invalid, autoComplete: props.autocomplete, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId), autoFocus: props.autoFocus, \"data-dark\": props.dark ? 'true' : 'false' })),\n                props.validTick && React.createElement(\"span\", { className: \"valid-tick\" }),\n                React.createElement(\"button\", { ref: toggler, type: \"button\", className: \"show-password\", onClick: () => setShow(!show) }, show ? t('button.hide') : t('button.show'))));\n        }\n        if (props.type === 'date') {\n            return (React.createElement(\"div\", { className: classNames('form-control', props.className, { 'has-tick': props.validTick }) },\n                React.createElement(\"input\", Object.assign({}, input, { id: calculatedId, disabled: props.disabled, readOnly: props.readonly, maxLength: props.maxLength, type: props.type, autoComplete: props.autocomplete, \"aria-required\": props.required, min: props.minDate, max: props.maxDate, \"aria-invalid\": invalid, placeholder: props.placeholder, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId), onKeyDown: props === null || props === void 0 ? void 0 : props.onKeyDown, onChange: (e) => {\n                        input.onChange(e); //final-form's onChange\n                        if (props.onChange) {\n                            props.onChange(e);\n                        }\n                    }, onFocus: (e) => {\n                        input.onFocus(e); //final-form's onFocus\n                        if (props.onFocus) {\n                            props.onFocus(e);\n                        }\n                    }, onBlur: (e) => {\n                        input.onBlur(e); //final-form's onFocus\n                        if (props.onBlur) {\n                            props.onBlur(e);\n                        }\n                    }, \"aria-autocomplete\": props === null || props === void 0 ? void 0 : props.ariaAutocomplete, \"aria-controls\": props === null || props === void 0 ? void 0 : props.ariaControls, \"aria-activedescendant\": props === null || props === void 0 ? void 0 : props.ariaActivedescendant, autoFocus: props.autoFocus, \"data-dark\": props.dark ? 'true' : 'false' })),\n                props.validTick && React.createElement(\"span\", { className: \"valid-tick\" })));\n        }\n        return (React.createElement(\"div\", { className: classNames('form-control', props.className, { 'has-tick': props.validTick, 'd-flex': !!props.textPrefix }) },\n            !!props.textPrefix && React.createElement(\"div\", { className: classNames('form-text-prefix', { invalid: invalid && !inputFocused, focused: inputFocused }) }, props.textPrefix),\n            React.createElement(\"input\", Object.assign({}, input, { id: calculatedId, disabled: props.disabled, readOnly: props.readonly, maxLength: props.maxLength, type: props.type, role: props.ariaRole, \"aria-expanded\": props.ariaExpanded, autoComplete: props.autocomplete, \"aria-required\": props.type !== 'hidden' && props.required, \"aria-invalid\": invalid, placeholder: props.placeholder, pattern: props.pattern, inputMode: props.name == 'phone' && props.type != 'tel' ? 'numeric' : undefined, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId), onKeyDown: props === null || props === void 0 ? void 0 : props.onKeyDown, onChange: (e) => {\n                    input.onChange(e); //final-form's onChange\n                    if (props.onChange) {\n                        props.onChange(e);\n                    }\n                }, onFocus: (e) => {\n                    input.onFocus(e); //final-form's onFocus\n                    if (props.onFocus) {\n                        props.onFocus(e);\n                    }\n                    setInputFocused(true);\n                }, onBlur: (e) => {\n                    input.onBlur(e); //final-form's onFocus\n                    if (props.onBlur) {\n                        props.onBlur(e);\n                    }\n                    setInputFocused(false);\n                }, \"aria-autocomplete\": props === null || props === void 0 ? void 0 : props.ariaAutocomplete, \"aria-controls\": props === null || props === void 0 ? void 0 : props.ariaControls, \"aria-activedescendant\": props === null || props === void 0 ? void 0 : props.ariaActivedescendant, autoFocus: props.autoFocus, \"data-dark\": props.dark ? 'true' : 'false', onPaste: (e) => {\n                    if (props.preventPaste) {\n                        e.preventDefault();\n                    }\n                } })),\n            props.validTick && React.createElement(\"span\", { className: \"valid-tick\" })));\n    };\n    const addRequiredMarkLabel = (initialLabel) => {\n        if (props.required && !initialLabel.includes('*')) {\n            return initialLabel + '<span aria-hidden=\"true\">*</span>';\n        }\n        return initialLabel;\n    };\n    const label = () => {\n        return (\n        // eslint-disable-next-line jsx-a11y/label-has-associated-control\n        React.createElement(\"label\", { className: classNames('form-group__label', { 'visually-hidden': props.hiddenLabel }, props.labelClassName), htmlFor: calculatedId, dangerouslySetInnerHTML: { __html: addRequiredMarkLabel(props.label) } }));\n    };\n    const fieldBlock = (frp) => {\n        if (props.type === 'checkbox') {\n            return (React.createElement(\"div\", { className: classNames('checkbox', { 'is-invalid': hasTemporaryError(frp) || frp.meta.submitError }), \"data-dark\": props.dark ? 'true' : 'false' },\n                React.createElement(\"div\", { className: \"checkbox__field\" },\n                    field(frp.input, frp.meta, hasTemporaryError(frp) || frp.meta.submitError),\n                    props.isToggle && props.altLabel ? (React.createElement(\"div\", { className: \"custom-label-toggle\" },\n                        React.createElement(\"span\", { className: \"alt-label\" }, props.altLabel),\n                        React.createElement(\"br\", null),\n                        label())) : (React.createElement(React.Fragment, null, label()))),\n                (hasTemporaryError(frp) && (React.createElement(\"div\", { id: calculatedId + '-error', className: \"invalid-feedback\" }, frp.meta.error))) ||\n                    (frp.meta.submitError && (React.createElement(\"div\", { id: calculatedId + '-error', className: \"invalid-feedback\" }, frp.meta.submitError))),\n                props.helperText ? (React.createElement(\"span\", { id: calculatedId + '-helpertext', className: \"form-group__helper-text\" }, props.helperText)) : null));\n        }\n        return (React.createElement(\"div\", { className: classNames('form-group', { 'is-invalid': hasTemporaryError(frp) || frp.meta.submitError }, { 'is-valid': !hasTemporaryError(frp) && frp.input.value != '' }, props.groupClassName), \"data-dark\": props.dark ? 'true' : 'false' },\n            label(),\n            field(frp.input, frp.meta, hasTemporaryError(frp) || !!frp.meta.submitError),\n            (hasTemporaryError(frp) && !(props.type === 'password' && props.helperText && getId() === 'MO') && (React.createElement(\"div\", { id: calculatedId + '-error', className: \"invalid-feedback\" }, frp.meta.error))) ||\n                (frp.meta.submitError && (React.createElement(\"div\", { id: calculatedId + '-error', className: \"invalid-feedback\" }, frp.meta.submitError))),\n            props.helperText ? (React.createElement(\"span\", { id: calculatedId + '-helpertext', className: \"form-group__helper-text\" }, props.helperText)) : null,\n            props.children));\n    };\n    if (props.type === 'radio') {\n        return (React.createElement(\"fieldset\", { className: \"fieldset--plain\" },\n            props.label && (React.createElement(\"legend\", { className: classNames('form-group__legend', { 'visually-hidden': props.hiddenLabel }), dangerouslySetInnerHTML: { __html: addRequiredMarkLabel(props.label) }, \"data-dark\": props.dark ? 'true' : 'false' })),\n            React.createElement(\"div\", { className: classNames('form-group', props.groupClassName), \"data-dark\": props.dark ? 'true' : 'false' }, (props.options || []).map((o, i) => (React.createElement(Field, { key: i, name: props.name, type: props.type, value: o.value, autoFocus: props.autoFocus }, ({ input, meta }) => {\n                const invalid = (meta.error && meta.touched) || meta.submitError;\n                const ContainerTag = o.inputOutsideLabel ? 'div' : 'label';\n                return (React.createElement(React.Fragment, null,\n                    React.createElement(ContainerTag, { className: classNames('radio', props.className) },\n                        React.createElement(\"input\", { name: input.name, id: `${input.name}_${i}`, value: o.value, checked: window.isClothing && input.value == 'plafond' ? true : input.checked, onChange: (e) => {\n                                input.onChange(e); //final-form's onChange\n                                if (props.onChange) {\n                                    props.onChange(e);\n                                }\n                            }, type: props.type, disabled: o.disabled || props.disabled, readOnly: props.readonly, \"aria-invalid\": invalid, \"aria-describedby\": ariaDescribedBy(o.helperText, invalid, `${i}_${props.name}`) }),\n                        React.createElement(\"div\", { className: \"inner-label\" }, o.label)),\n                    o.helperText ? (React.createElement(\"span\", { id: `${i}_${props.name}-helpertext`, className: \"form-group__helper-text\" }, o.helperText)) : null,\n                    i === props.options.length - 1 && // only on last radio element\n                        ((meta.error && meta.touched && (React.createElement(\"span\", { id: input.name + '-error', className: \"invalid-feedback\" }, meta.error))) ||\n                            (meta.submitError && (React.createElement(\"span\", { id: input.name + '-error', className: \"invalid-feedback\" }, meta.submitError))))));\n            }))))));\n    }\n    if (props.type === 'optionbox') {\n        return (React.createElement(\"div\", { className: \"optionbox optionbox--horizontal-two-items\" },\n            props.label && (React.createElement(\"legend\", { className: classNames('form-group__legend', { 'visually-hidden': props.hiddenLabel }), dangerouslySetInnerHTML: { __html: addRequiredMarkLabel(props.label) } })),\n            (props.options || []).map((o, i) => (React.createElement(Field, { key: i, name: props.name, type: props.fieldType || props.type, value: o.value, autoFocus: props.autoFocus }, ({ input, meta }) => {\n                let optionalValues = {};\n                if (!props.fieldType) {\n                    optionalValues.defaultChecked = o.checked ? o.checked : !props.options.find((op) => op.checked) && i === 0;\n                }\n                return (React.createElement(\"label\", { className: \"optionbox__item\" },\n                    React.createElement(\"input\", Object.assign({ \"data-dark\": props.dark ? 'true' : 'false', name: input.name, id: `${input.name}_${i}`, value: o.value, checked: input.checked, onChange: (e) => {\n                            input.onChange(e); //final-form's onChange\n                            if (props.onChange) {\n                                props.onChange(e);\n                            }\n                        }, type: \"radio\", disabled: o.disabled || props.disabled, readOnly: props.readonly, className: \"optionbox__item__radio\" }, optionalValues)),\n                    React.createElement(\"div\", { className: \"optionbox__item__content\" }, o.label)));\n            })))));\n    }\n    return (React.createElement(Field, { name: props.name, type: props.type, autoFocus: props.autoFocus }, (frp) => fieldBlock(frp)));\n};\nFormField.defaultProps = {\n    type: 'text',\n};\nexport default FormField;\n"],"names":["phoneprefixes","DwFormField","props","_a","_b","fieldDef","def","name","type","listToConcat","overridePrefixesList","length","optionArray","value","label","concat","map","p","Object","assign","options","required","mandatory","requiredLabel","placeholder","overridePlaceholder","defaultProps","FormField","t","show","setShow","inputFocused","setInputFocused","useState","calculatedId","useMemo","idSuffix","ariaDescribedBy","helperText","invalid","hasTemporaryError","frp","meta","error","touched","field","input","className","dark","rows","id","disabled","readOnly","readonly","noResize","maxLength","onChange","e","onFocus","onBlur","undefined","autoComplete","autocomplete","o","key","role","isToggle","controlledInput","checked","checkboxChecked","showPassword","toggleLength","setToggleLenght","toggler","useRef","useEffect","current","offsetWidth","validTick","style","autoFocus","ref","onClick","min","minDate","max","maxDate","onKeyDown","ariaAutocomplete","ariaControls","ariaActivedescendant","textPrefix","focused","ariaRole","ariaExpanded","pattern","inputMode","onPaste","preventPaste","preventDefault","addRequiredMarkLabel","initialLabel","includes","hiddenLabel","labelClassName","htmlFor","dangerouslySetInnerHTML","__html","groupClassName","i","submitError","ContainerTag","inputOutsideLabel","window","isClothing","fieldType","optionalValues","defaultChecked","find","op","altLabel","children","fieldBlock"],"sourceRoot":""}