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AMf,EAAMe,KAAMkD,MAAOO,EAAEP,OAAS,KAAM,EAAGV,QAAOJ,WAC5I,MAAMH,EAAWG,EAAKC,OAASD,EAAKE,SAAYF,EAAK0C,YACrD,OAAQ,gBAAoB,MAAO,CAAElF,UAAW,qBAC5C,gBAAoB,QAAS,CAAEY,KAAMgC,EAAMhC,KAAMkC,GAAI,GAAGF,EAAMhC,QAAQwE,IAAK9B,MAAOO,EAAEP,OAAS,GAAIkC,eAAgB3B,EAAEyB,QAAUzB,EAAEyB,SAAWjG,EAAMsE,QAAQ8B,MAAMC,GAAOA,EAAGJ,WAAkB,IAANF,EAASE,QAAS1C,EAAM0C,QAASlC,SAAW3D,IACxNmD,EAAMQ,SAAS3D,GACXJ,EAAM+D,UACN/D,EAAM+D,SAAS3D,EACnB,EACDW,KAAM,QAASL,SAAU8D,EAAE9D,UAAYV,EAAMU,SAAUgD,SAAU1D,EAAM2D,SAAU,mBAAoBb,EAAgB9C,EAAM+C,WAAYC,EAAShD,EAAMuB,QAC7J,gBAAoB,QAAS,CAAEkE,QAAS,GAAGzF,EAAMuB,QAAQwE,KAAOvB,EAAE9C,OAAQ,OAGlF,gBAAoB,KAAO,CAAEH,KAAMvB,EAAMuB,KAAMR,KAAMf,EAAMe,OAASmC,GAAQ0C,EAAW1C,IAAM,EAEzGnB,EAAUZ,aAAe,CACrBJ,KAAM,QAEV,SAAe,QAAf,CAAiCgB,E","sources":["webpack:///./assets/src/ui/button/Button.tsx","webpack:///./assets/src/ui/formfield/DwFormField.tsx","webpack:///./assets/src/ui/formfield/FormField.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nconst Button = (props) => {\n const handleClick = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onClick) {\n e.preventDefault();\n }\n props.onClick && props.onClick.call(this, e);\n };\n const handleKeyDown = (e) => {\n if (props.usesDefault != undefined && !props.usesDefault && props.onKeyDown) {\n e.preventDefault();\n }\n props.onKeyDown && props.onKeyDown.call(this, e);\n };\n return (React.createElement(\"button\", { ref: props.reference, onClick: handleClick, onKeyDown: handleKeyDown, disabled: props.disabled, className: classNames(props.cls, props.className, { loading: props.isLoading }), type: props.type, \"aria-label\": props.ariaLabel }, props.isLoading ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", null))) : (React.createElement(\"span\", { \"data-label\": props.dataLabel }, props.children))));\n};\nButton.defaultProps = {\n cls: ['cta-primary'],\n className: '',\n};\nexport default Button;\n","import React from 'react';\nimport FormField from './FormField';\nconst DwFormField = (props) => {\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 ((fieldDef && fieldDef.mandatory) || props.requiredLabel) {\n if (fieldDef.label && !fieldDef.label.includes('*')) {\n fieldDef.label = fieldDef.label + '<span aria-hidden=\"true\">*</span>';\n }\n }\n return React.createElement(FormField, Object.assign({}, props, fieldDef, { required: requiredField() }));\n};\nDwFormField.defaultProps = {\n type: 'text',\n};\nexport default DwFormField;\n","import classNames from 'classnames';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { Field } from 'react-final-form';\nimport { withTranslation } from 'react-i18next';\nimport Icon from '@components/common/Icon';\nconst FormField = (props) => {\n const { t } = props;\n const [show, setShow] = useState(false);\n const [labelUp, setLabelUp] = useState(false);\n const [actualValue, setActualValue] = useState('');\n // to fix not empty imput\n useEffect(() => {\n if ((typeof props.htmlValue === 'string' && props.htmlValue.length > 0) || props.type == 'date') {\n setLabelUp(true);\n }\n }, [props.htmlValue]);\n useEffect(() => {\n if (props.type === 'text' && actualValue == '') {\n setLabelUp(false);\n }\n }, [actualValue]);\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(React.Fragment, null,\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 }, { 'label-up': labelUp }), \"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 setLabelUp(e.currentTarget.value != '');\n setActualValue(e.currentTarget.value);\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 onBlur\n if (props.onBlur) {\n props.onBlur(e);\n }\n } })),\n label()));\n }\n if (props.type === 'select') {\n return (React.createElement(\"div\", { className: `form-select ${props.disabled && 'disabled'}` },\n label(),\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, selected: o.selected || false }, 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 }, className: classNames('form-checkbox', props.className), type: props.type, \"aria-required\": props.required, \"aria-invalid\": invalid, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, calculatedId) })));\n }\n if (props.type === 'password' && props.showPassword) {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"input\", Object.assign({}, input, { id: calculatedId, className: classNames('form-control', { 'label-up': labelUp }), 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), onChange: (e) => {\n input.onChange(e); //final-form's onChange\n setLabelUp(e.currentTarget.value != '');\n setActualValue(e.currentTarget.value);\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 onBlur\n if (props.onBlur) {\n props.onBlur(e);\n }\n } })),\n label(),\n props.validTick && React.createElement(\"span\", { className: \"valid-tick\" }),\n React.createElement(\"button\", { type: 'button', className: 'password-eye-visible', onClick: () => { setShow(!show); } },\n React.createElement(Icon, { name: show ? 'eye-open' : 'eye-close' }))));\n }\n if (props.type === 'date') {\n // console.info(input.value);\n return (React.createElement(\"div\", { className: classNames('form-date') },\n React.createElement(\"input\", Object.assign({}, input, { \n // value={new Date(input.value).toISOString()}\n id: calculatedId, disabled: props.disabled, readOnly: props.readonly, maxLength: props.maxLength, type: \"date\", autoComplete: props.autocomplete, \"aria-required\": props.required, min: props.min, max: props.max, \"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 setLabelUp(e.currentTarget.value != '');\n setActualValue(e.currentTarget.value);\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 onBlur\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, className: classNames('form-control', { 'label-up': labelUp }) })),\n label()));\n }\n if (props.type === 'vat') {\n return (React.createElement(React.Fragment, null,\n props.countryCode &&\n React.createElement(\"div\", { className: \"vat-enabled\" }),\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, \"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 setLabelUp(e.currentTarget.value != '');\n setActualValue(e.currentTarget.value);\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 }, role: props.role, \"aria-expanded\": props.ariaExpanded, \"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, className: classNames('form-control', { 'label-up': labelUp }), autoFocus: props.autoFocus })),\n label(),\n props.countryCode &&\n React.createElement(\"p\", { className: \"vat-country-code\" }, props.countryCode)));\n }\n return (React.createElement(React.Fragment, null,\n props.name === 'phone' && (React.createElement(\"p\", { className: 'phone-info-text' }, t('phone.info.text'))),\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.type !== 'hidden' && props.required, \"aria-invalid\": invalid, placeholder: props.type !== 'hidden' ? props.placeholder : null, \"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 setLabelUp(e.currentTarget.value != '');\n setActualValue(e.currentTarget.value);\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 }, role: props.role, \"aria-expanded\": props.ariaExpanded, \"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, className: classNames('form-control', { 'label-up': labelUp }), autoFocus: props.autoFocus })),\n props.type !== 'hidden' && label(),\n props.type === \"email\" && (React.createElement(\"div\", { className: \"form-group-icon\" },\n React.createElement(Icon, { name: 'mail' })))));\n };\n const label = () => {\n let finalLabel = props.label;\n if (props.requiredLabel && !props.label.includes('*')) {\n finalLabel = finalLabel + '<span aria-hidden=\"true\">*</span>';\n }\n return (React.createElement(\"label\", { id: `${calculatedId}-label`, className: classNames('form-group-label', 'form-control-label', { 'visually-hidden': props.hiddenLabel }, props.labelClassName), htmlFor: calculatedId, dangerouslySetInnerHTML: { __html: finalLabel } }));\n };\n const labelCheckbox = () => {\n let finalLabel = (props.required ? '<span style=\"margin-right:7px\">*</span>' : '') + props.label;\n return (React.createElement(\"label\", { id: `${calculatedId}-label`, className: classNames('form-group-label', 'multiline', { 'visually-hidden': props.hiddenLabel }, props.labelClassName), htmlFor: calculatedId, dangerouslySetInnerHTML: { __html: finalLabel } }));\n };\n const fieldBlock = (frp) => {\n if (props.type === 'checkbox') {\n return (React.createElement(\"div\", { className: classNames('checkbox', { 'is-invalid': (frp.meta.error && frp.meta.touched) || frp.meta.submitError }) },\n React.createElement(\"div\", { className: \"form-control__checkbox\" },\n field(frp.input, frp.meta, (frp.meta.error && frp.meta.touched) || frp.meta.submitError),\n labelCheckbox()),\n (frp.meta.error && frp.meta.touched && (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 animated-label', { 'is-invalid': (frp.meta.error && frp.meta.touched) || frp.meta.submitError }, { 'is-valid': !frp.meta.error && frp.meta.touched && frp.input.value != '' }) },\n field(frp.input, frp.meta, hasTemporaryError(frp) || frp.meta.submitError),\n (hasTemporaryError(frp) && !(props.type === 'password' && props.helperText) && (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 if (props.type === 'radio') {\n return (React.createElement(\"div\", { className: classNames('radio-wrapper', props.className) },\n props.label && React.createElement(\"legend\", { className: classNames('form-group-label', { 'visually-hidden': props.hiddenLabel }), dangerouslySetInnerHTML: { __html: props.label } }),\n (props.options || []).map((o, i) => (React.createElement(\"div\", { key: i, className: classNames('form-control__radio', props.groupClassName) },\n React.createElement(Field, { key: i, name: props.name, type: props.type, value: o.value || '' }, ({ input, meta }) => {\n const invalid = (meta.error && meta.touched) || meta.submitError;\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: classNames('radio', { selected: input.checked }) },\n React.createElement(\"input\", { 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: props.type, disabled: o.disabled || props.disabled, readOnly: props.readonly, \"aria-invalid\": invalid, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, props.name) }),\n React.createElement(\"label\", { htmlFor: `${props.name}_${i}` }, o.label),\n input.checked && !!o.content && o.content),\n props.helperText ? (React.createElement(\"span\", { id: props.name + '-helpertext', className: \"form-group__helper-text\" }, props.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 === 'radiobox') {\n return (React.createElement(\"div\", { className: \"fieldset--plain fieldset--radiobox radiobox2\" },\n props.label && React.createElement(\"legend\", { className: classNames('form-group__legend', { 'visually-hidden': props.hiddenLabel }), dangerouslySetInnerHTML: { __html: props.label } }),\n (props.options || []).map((o, i) => (React.createElement(Field, { key: i, name: props.name, type: props.type, value: o.value || '' }, ({ input, meta }) => {\n const invalid = (meta.error && meta.touched) || meta.submitError;\n return (React.createElement(\"div\", { className: \"radiobox2__option\" },\n React.createElement(\"input\", { name: input.name, id: `${input.name}_${i}`, value: o.value || '', defaultChecked: o.checked ? o.checked : !props.options.find((op) => op.checked) && i === 0, 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, \"aria-describedby\": ariaDescribedBy(props.helperText, invalid, props.name) }),\n React.createElement(\"label\", { htmlFor: `${props.name}_${i}` }, o.label)));\n })))));\n }\n return (React.createElement(Field, { name: props.name, type: props.type }, (frp) => fieldBlock(frp)));\n};\nFormField.defaultProps = {\n type: 'text',\n};\nexport default withTranslation()(FormField);\n"],"names":["Button","props","ref","reference","onClick","e","undefined","usesDefault","preventDefault","call","onKeyDown","disabled","className","cls","loading","isLoading","type","ariaLabel","dataLabel","children","defaultProps","DwFormField","fieldDef","def","name","mandatory","requiredLabel","label","includes","Object","assign","required","FormField","t","show","setShow","useState","labelUp","setLabelUp","actualValue","setActualValue","useEffect","htmlValue","length","calculatedId","useMemo","idSuffix","ariaDescribedBy","helperText","invalid","hasTemporaryError","frp","meta","error","touched","field","input","rows","id","readOnly","readonly","noResize","placeholder","maxLength","onChange","currentTarget","value","onFocus","onBlur","autoComplete","autocomplete","options","map","o","key","selected","showPassword","validTick","min","max","ariaAutocomplete","ariaControls","ariaActivedescendant","countryCode","role","ariaExpanded","autoFocus","finalLabel","hiddenLabel","labelClassName","htmlFor","dangerouslySetInnerHTML","__html","fieldBlock","submitError","labelCheckbox","i","groupClassName","checked","content","defaultChecked","find","op"],"sourceRoot":""}