{"version":3,"sources":["modules/shared-form/components/radio-input-control/radio-input-control-component.module.css","modules/shared-form/components/file-input-control/file-input-control-component.module.css","modules/shared-form/index.ts","modules/shared-form/components/input-control/input-control-component.module.css","modules/shared-form/components/text-area-control/text-area-control-component.module.css","modules/shared-form/components/select-control/select-control-component.module.css","modules/shared-form/components/password-input-control/password-input-control-component.module.css","modules/shared-form/components/select-control/select-control-component.tsx","modules/shared-form/components/input-control/input-control-component.tsx","modules/shared-form/components/email-input-control/email-input-control-component.tsx","modules/shared-form/components/phone-input-control/phone-input-control-component.tsx","modules/shared-form/components/password-input-control/password-input-control-component.tsx","modules/shared-form/components/radio-input-control/radio-input-control-component.tsx","modules/shared-form/components/date-picker-control/date-picker-control-component.tsx","modules/shared-form/components/text-area-control/text-area-control-component.tsx","modules/shared-form/components/checkbox-input-control/checkbox-input-control-component.tsx","modules/shared-form/components/file-input-control/file-input-control-component.tsx","modules/shared-form/components/date-picker-control/date-picker-control-component.module.css","modules/shared-form/components/date-picker-control/date-picker-control-alt.module.css","modules/shared-form/components/checkbox-input-control/checkbox-input-control-component.module.css"],"names":["module","exports","SelectControl","_ref","options","required","name","initialValue","customNoSelectionOption","hint","onChange","style","rest","_objectWithoutProperties","_excluded","optionsList","key","value","text","concat","_toConsumableArray","t","useTranslation","validate","useCallback","result","React","createElement","Field","render","_ref2","field","form","className","styles","Select","Object","assign","selector","defaultValue","onBlur","setFieldTouched","option","data","setFieldValue","errors","touched","error","InputControl","pattern","type","equalValue","equalValueMessage","notEqualValue","notEqualValueMessage","arrayContext","noPaste","maxLength","_ref$upperCase","upperCase","test","undefined","getErrorMessage","formError","formTouched","nestedErrors","parentFieldName","index","fieldName","nestedTouched","errorMessage","Input","input","onPaste","e","preventDefault","event","EmailInputControl","props","PhoneInputControl","allowInternational","PasswordInputControl","_useState","useState","_useState2","_slicedToArray","setType","Fragment","container","toggleButton","onClick","RadioInputControl","horizontal","spaced","centered","disabled","vertical","map","selected","label","richLabel","radioInputBtn","item","Radio","checked","registerLocale","fr","setDefaultLocale","DatePickerControl","minAgeRequired","onDateChange","onMonthChange","filterDate","greyOutDate","_ref$disableKeyPress","disableKeyPress","_ref$altStyle","altStyle","hideIcon","placeholder","_useTranslation","i18n","calculateAge","locale","indexOf","language","dateFormat","altStyles","regularStyles","rootContainer","ReactDatePicker","inline","autoComplete","placeholderText","calendarClassName","customCalendar","weekDayClassName","weekDay","datePicker","dayClassName","date","greyedOut","day","showMonthDropdown","showYearDropdown","dropdownMode","onKeyDown","renderCustomHeader","_ref3","decreaseMonth","increaseMonth","prevMonthButtonDisabled","nextMonthButtonDisabled","customCalendarHeader","customMonths","visibility","monthLabel","getMonth","getFullYear","iconButton","icon","TextAreaControl","_ref$lightgray","lightgray","TextArea","CheckBoxInputControl","Checkbox","cb","FileInputControl","accept","acceptHint","_props$replaceHint","replaceHint","_props$sizeLimit","sizeLimit","config","cdn","fileMaxSize","ref","useRef","setError","onBtnClick","current","click","handleChange","target","files","length","persist","size","Responsive","as","maxWidth","configUI","responsive","tablet","hidden","uploadBtn","minWidth","computer","desktopContainer","Popup","header","position","trigger","altHint"],"mappings":"wFACAA,EAAOC,QAAU,CAAC,MAAQ,6CAA6C,KAAO,4CAA4C,WAAa,kDAAkD,KAAO,4CAA4C,SAAW,gDAAgD,SAAW,gDAAgD,OAAS,8CAA8C,UAAY,iDAAiD,cAAgB,qDAAqD,SAAW,gDAAgD,aAAe,sD,oBCArmBD,EAAOC,QAAU,CAAC,iBAAmB,uDAAuD,KAAO,2CAA2C,QAAU,8CAA8C,MAAQ,4CAA4C,UAAY,kD,iCCDtQ,sO,oBCCAD,EAAOC,QAAU,CAAC,MAAQ,uCAAuC,KAAO,sCAAsC,SAAW,0CAA0C,MAAQ,uCAAuC,UAAY,6C,oBCA9ND,EAAOC,QAAU,CAAC,MAAQ,2CAA2C,KAAO,0CAA0C,SAAW,8CAA8C,MAAQ,2CAA2C,UAAY,iD,oBCA9OD,EAAOC,QAAU,CAAC,MAAQ,wCAAwC,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C,IAAOa,OAAO,kC,oBCrFpD/C,EAAOC,QAAU,CAAC,MAAQ,6CAA6C,cAAgB,qDAAqD,WAAa,kDAAkD,UAAY,iDAAiD,WAAa,kDAAkD,KAAO,4CAA4C,IAAM,6C,oBCAhYD,EAAOC,QAAU,CAAC,eAAiB,gDAAgD,QAAU,yCAAyC,qBAAuB,sDAAsD,aAAe,8CAA8C,WAAa,4CAA4C,cAAgB,+CAA+C,cAAgB,iD,oBCAxZD,EAAOC,QAAU,CAAC,GAAK","file":"static/js/shared-form.96a8fc11.chunk.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"error\":\"radio-input-control-component_error__OI68v\",\"hint\":\"radio-input-control-component_hint__JB6qo\",\"horizontal\":\"radio-input-control-component_horizontal__3IybK\",\"item\":\"radio-input-control-component_item__3gcDk\",\"vertical\":\"radio-input-control-component_vertical__2s1cs\",\"centered\":\"radio-input-control-component_centered__LgVGA\",\"spaced\":\"radio-input-control-component_spaced__1ozZj\",\"richLabel\":\"radio-input-control-component_richLabel__bWjEk\",\"radioInputBtn\":\"radio-input-control-component_radioInputBtn__rK-ZH\",\"selected\":\"radio-input-control-component_selected__3pqL_\",\"richLabelBtn\":\"radio-input-control-component_richLabelBtn__2VV9h\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"desktopContainer\":\"file-input-control-component_desktopContainer__2UUiN\",\"hint\":\"file-input-control-component_hint__v8XqT\",\"altHint\":\"file-input-control-component_altHint__5_ylD\",\"error\":\"file-input-control-component_error__30zpN\",\"uploadBtn\":\"file-input-control-component_uploadBtn__3DLxY\"};","export * from './components';\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"error\":\"input-control-component_error__3HAXL\",\"hint\":\"input-control-component_hint__3QmTy\",\"required\":\"input-control-component_required__24CKE\",\"input\":\"input-control-component_input__2DNws\",\"upperCase\":\"input-control-component_upperCase__tF-vR\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"error\":\"text-area-control-component_error__Ffjl_\",\"hint\":\"text-area-control-component_hint__29WwU\",\"required\":\"text-area-control-component_required__1Pasn\",\"input\":\"text-area-control-component_input__V0DA9\",\"lightgray\":\"text-area-control-component_lightgray__3WPIC\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"error\":\"select-control-component_error__2MdUl\",\"hint\":\"select-control-component_hint__39CTz\",\"required\":\"select-control-component_required__2W6po\",\"selector\":\"select-control-component_selector__3evlo\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"password-input-control-component_container__2bD5a\",\"input\":\"password-input-control-component_input__F_y1q\",\"toggleButton\":\"password-input-control-component_toggleButton__3mbth\"};","import React, { useCallback } from 'react';\n\nimport { Select } from 'vendors/semantic-ui';\nimport { Field, FieldProps } from 'formik';\nimport { useTranslation } from 'react-i18next';\nimport { SelectControlOption } from 'modules/shared/types';\nimport { SelectControlProps } from './select-control-type';\n\nimport styles from './select-control-component.module.css';\n\nexport const SelectControl: React.FC = ({\n options,\n required,\n name,\n initialValue,\n customNoSelectionOption,\n hint,\n onChange,\n style,\n ...rest\n}: SelectControlProps) => {\n const noSelectionOption = customNoSelectionOption || {\n key: '',\n value: 0,\n text: '--',\n };\n const optionsList: SelectControlOption[] = [noSelectionOption, ...options];\n\n const { t } = useTranslation();\n const validate = useCallback(\n (value: string): string | undefined => {\n let result;\n if (!value && required) {\n result = t('shared.form.required');\n }\n\n return result;\n },\n [required, t],\n );\n\n return (\n (\n
\n
{hint}
\n form.setFieldTouched(field.name)}\n onChange={(option, data) => {\n form.setFieldValue(field.name, data.value);\n if (onChange) {\n onChange(data.value);\n }\n }}\n style={style}\n />\n {form && form.errors && form.errors[name] && form.touched && form.touched[name] && (\n
{form.errors[name]}
\n )}\n
\n )}\n />\n );\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React, { useCallback } from 'react';\nimport { Field, FieldProps, FormikProps } from 'formik';\nimport { Input } from 'modules/shared-ui-advanced/vendors/semantic-ui';\nimport { useTranslation } from 'react-i18next';\n\nimport { InputControlProps } from './input-control-type';\n\nimport styles from './input-control-component.module.css';\n\nexport const InputControl: React.FC = ({\n name,\n required,\n pattern,\n type,\n hint,\n equalValue,\n equalValueMessage,\n notEqualValue,\n notEqualValueMessage,\n arrayContext,\n onChange,\n onBlur,\n className,\n noPaste,\n maxLength,\n upperCase = false,\n ...rest\n}: InputControlProps) => {\n const { t } = useTranslation();\n const validate = useCallback(\n (value: string): string | undefined => {\n let result;\n if (!value && !!required) {\n result = t('shared.form.required');\n } else if (!!value && !!pattern) {\n // TODO : comportement a revoir\n if (pattern.test(value) === true) {\n result = undefined;\n } else if (!pattern.test(value)) {\n result = t('shared.form.pattern');\n }\n }\n\n // On interdit les emojis, peut importe le type de l'input\n if (value !== undefined && value !== null && value !== '') {\n const emojiRegex = /\\p{Extended_Pictographic}/gu;\n if (emojiRegex.test(value)) {\n result = t('shared.form.emoji');\n }\n }\n\n if (!result) {\n if (!!value && !!equalValue && value !== equalValue) {\n result = equalValueMessage || t('shared.form.equal');\n } else if (!!value && !!notEqualValue && value === notEqualValue) {\n result = notEqualValueMessage || t('shared.form.notEqual');\n }\n }\n\n return result;\n },\n [required, pattern, equalValue, equalValueMessage, notEqualValue, notEqualValueMessage, t],\n );\n\n const getErrorMessage = useCallback(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form: FormikProps) => {\n if (!form || !form.errors || !form.touched) {\n return undefined;\n }\n\n let formError;\n let formTouched;\n if (arrayContext) {\n const nestedErrors = form.errors[arrayContext.parentFieldName]\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form.errors[arrayContext.parentFieldName] as any)[arrayContext.index]\n : null;\n\n if (nestedErrors) {\n formError = nestedErrors[arrayContext.fieldName];\n }\n const nestedTouched = form.touched[arrayContext.parentFieldName]\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form.touched[arrayContext.parentFieldName] as any)[arrayContext.index]\n : null;\n\n if (nestedTouched) {\n formTouched = nestedTouched[arrayContext.fieldName];\n }\n } else {\n formError = form.errors[name];\n formTouched = form.touched[name];\n }\n\n if (formTouched && formError) {\n return formError;\n }\n\n return undefined;\n },\n [name, arrayContext],\n );\n\n return (\n {\n const errorMessage = getErrorMessage(form);\n return (\n
\n {hint &&
{hint}
}\n {\n if (noPaste) e.preventDefault();\n }}\n onChange={(event, data) => {\n field.onChange(event);\n if (onChange) {\n onChange(event, data);\n }\n }}\n onBlur={(e: any) => {\n field.onBlur(e);\n if (onBlur) {\n onBlur();\n }\n }}\n maxLength={maxLength}\n />\n {errorMessage &&
{errorMessage}
}\n
\n );\n }}\n />\n );\n};\n","import React from 'react';\n\nimport { InputControl } from '../input-control';\nimport { EmailInputControlProps } from './email-input-control-type';\n\nexport const EmailInputControl: React.FC = (props: EmailInputControlProps) => {\n const pattern = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/g;\n\n return ;\n};\n","import React from 'react';\n\nimport { PhoneInputControlProps } from './phone-input-control-type';\nimport { InputControl } from '../input-control';\n\nexport const PhoneInputControl: React.FC = ({\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n hint,\n allowInternational,\n ...rest\n}: PhoneInputControlProps) => {\n // const patternFr = /^(?:(?:\\+|00)33|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}$/g;\n // -- patternInternational résoud une regex standard de numéro international ou parrernFr (qui lui gère les séparateurs [\\s.-])\n const patternInternational = /^(((\\+\\d{1,3}(-| )?\\(?\\d\\)?(-| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(-| )?(\\d{3,4})(-| )?(\\d{4})(( x| ext)\\d{1,5}){0,1})|((?:(?:\\+|00)33|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4})$/g;\n\n const hintFr = '';\n const hintInternational = '';\n\n return (\n \n );\n};\n","import React, { useState } from 'react';\n\nimport { PasswordInputControlProps } from './password-input-control-type';\n\nimport { InputControl } from '../input-control';\n\nimport styles from './password-input-control-component.module.css';\n\nexport const PasswordInputControl: React.FC = ({\n hint,\n ...rest\n}: PasswordInputControlProps) => {\n // 'doit contenir au moins 8 caractères dont 1 majuscule, 1 minuscule, 1 chiffre et 1 caractère spécial.';\n const pattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-+=/_~,;:\\\\]).{8,}$/g;\n const defaultHint = '';\n\n const [type, setType] = useState('password');\n\n return (\n \n
\n \n {\n if (type === 'password') {\n setType('text');\n } else {\n setType('password');\n }\n }}\n />\n
\n
\n );\n};\n","import React, { useCallback } from 'react';\nimport { Radio } from 'modules/shared-ui-advanced/vendors/semantic-ui';\nimport { Field, FieldProps, FormikProps } from 'formik';\nimport { useTranslation } from 'react-i18next';\n\nimport { RadioInputControlProps } from './radio-input-control-type';\n\nimport styles from './radio-input-control-component.module.css';\n\nexport const RadioInputControl: React.FC = ({\n options,\n required,\n name,\n horizontal,\n spaced,\n centered,\n disabled,\n arrayContext,\n onChange,\n}: RadioInputControlProps) => {\n const { t } = useTranslation();\n const validate = useCallback(\n (value: string): string | undefined => {\n let result;\n if (!value && required) {\n result = t('shared.form.required');\n }\n\n return result;\n },\n [required, t],\n );\n\n const getErrorMessage = useCallback(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form: FormikProps) => {\n if (!form || !form.errors || !form.touched) {\n return undefined;\n }\n\n let formError;\n let formTouched;\n if (arrayContext) {\n const nestedErrors = form.errors[arrayContext.parentFieldName]\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form.errors[arrayContext.parentFieldName] as any)[arrayContext.index]\n : null;\n\n if (nestedErrors) {\n formError = nestedErrors[arrayContext.fieldName];\n }\n const nestedTouched = form.touched[arrayContext.parentFieldName]\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (form.touched[arrayContext.parentFieldName] as any)[arrayContext.index]\n : null;\n\n if (nestedTouched) {\n formTouched = nestedTouched[arrayContext.fieldName];\n }\n } else {\n formError = form.errors[name];\n formTouched = form.touched[name];\n }\n\n if (formTouched && formError) {\n return formError;\n }\n\n return undefined;\n },\n [name, arrayContext],\n );\n\n return (\n {\n const errorMessage = getErrorMessage(form);\n return (\n \n {options.map((option, key) => {\n const selected = field.value === option.value;\n let label: string | JSX.Element = option.text as string;\n if (option.richLabel) {\n label = (\n
\n
\n {selected &&
}\n
\n {option.richLabel}\n
\n );\n }\n return (\n // eslint-disable-next-line react/no-array-index-key\n
\n {\n form.setFieldValue(field.name, option.value);\n if (onChange) {\n onChange(option.value);\n }\n }}\n onBlur={() => form.setFieldTouched(field.name)}\n checked={field.value === option.value}\n className={`${option}`}\n />\n
\n );\n })}\n {errorMessage &&
{errorMessage}
}\n
\n );\n }}\n />\n );\n};\n","/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable no-param-reassign */\nimport React, { useCallback } from 'react';\nimport { Field, FieldProps } from 'formik';\nimport ReactDatePicker, { registerLocale, setDefaultLocale } from 'react-datepicker';\nimport fr from 'date-fns/locale/fr';\nimport { useTranslation } from 'react-i18next';\nimport { calculateAge } from 'modules/shared/utils';\n\nimport { DatePickerControlProps } from './date-picker-control-type';\n\n// eslint-disable-next-line import/imports-first\nimport 'react-datepicker/dist/react-datepicker.css';\nimport regularStyles from './date-picker-control-component.module.css';\nimport altStyles from './date-picker-control-alt.module.css';\n\nregisterLocale('fr', fr);\nsetDefaultLocale('fr');\n\nexport const DatePickerControl: React.FC = ({\n required,\n name,\n minAgeRequired,\n onDateChange,\n onMonthChange,\n filterDate,\n greyOutDate,\n disableKeyPress = false,\n altStyle = false,\n hideIcon,\n className,\n placeholder,\n ...rest\n}: DatePickerControlProps) => {\n const { t, i18n } = useTranslation();\n const validate = useCallback(\n (value: string): string | undefined => {\n let result;\n if (!value && required) {\n result = t('shared.form.required');\n }\n if (value && minAgeRequired && calculateAge(value) < minAgeRequired) {\n result = t('shared.form.minAgeRequired');\n }\n\n return result;\n },\n [required, t, minAgeRequired],\n );\n\n const locale = ['fr-FR', 'fr', 'FR'].indexOf(i18n.language) > -1 ? 'fr' : 'en';\n const dateFormat = locale === 'fr' ? 'P' : 'MM/dd/yyyy';\n\n const styles = !altStyle ? regularStyles : altStyles;\n\n return (\n {\n return (\n \n
\n styles.weekDay : undefined}\n className={`${className} ${styles.datePicker}`}\n dayClassName={date =>\n `${greyOutDate && greyOutDate(date) ? `${styles.greyedOut}` : ''} ${styles.day}`\n }\n onChange={value => {\n if (value !== null) {\n if (onDateChange) {\n onDateChange(value);\n }\n form.setFieldValue(name, value);\n }\n }}\n onMonthChange={onMonthChange}\n filterDate={filterDate}\n showMonthDropdown\n showYearDropdown\n dropdownMode=\"select\"\n dateFormat={dateFormat}\n onKeyDown={disableKeyPress ? e => e.preventDefault() : undefined}\n renderCustomHeader={\n altStyle\n ? ({\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n }) => (\n
\n
\n \n ‹\n \n \n {t(`shared.calendar.months.${date.getMonth()}`)}{' '}\n {date.getFullYear()}\n \n \n ›\n \n
\n
\n )\n : undefined\n }\n />\n {!(altStyle || hideIcon) && (\n
\n
\n
\n )}\n
\n {form && form.errors && form.errors[name] && form.touched && form.touched[name] && (\n
{form.errors[name]}
\n )}\n \n );\n }}\n />\n );\n};\n","import React, { useCallback } from 'react';\nimport { TextArea } from 'modules/shared-ui-advanced/vendors/semantic-ui';\n\nimport { Field, FieldProps } from 'formik';\nimport { useTranslation } from 'react-i18next';\n\nimport { TextAreaControlProps } from './text-area-control-type';\n\nimport styles from './text-area-control-component.module.css';\n\nexport const TextAreaControl: React.FC = ({\n name,\n required,\n pattern,\n hint,\n equalValue,\n notEqualValue,\n lightgray = false,\n ...rest\n}: TextAreaControlProps) => {\n const { t } = useTranslation();\n const validate = useCallback(\n (value: string): string | undefined => {\n let result;\n if (!value && required) {\n result = t('shared.form.required');\n } else if (!!value && !!pattern) {\n // TODO : comportement a revoir\n if (pattern.test(value) === true) {\n result = undefined;\n } else if (!pattern.test(value)) {\n result = t('shared.form.pattern');\n }\n }\n\n // On interdit les emojis, peut importe le type de l'input\n if (value !== undefined && value !== null && value !== '') {\n const emojiRegex = /\\p{Extended_Pictographic}/gu;\n if (emojiRegex.test(value)) {\n result = t('shared.form.emoji');\n }\n }\n\n if (!result) {\n if (value && equalValue && value !== equalValue) {\n result = t('shared.form.equal');\n } else if (value && notEqualValue && value !== notEqualValue) {\n result = t('shared.form.notEqual');\n }\n }\n\n return result;\n },\n [required, pattern, equalValue, notEqualValue, t],\n );\n\n return (\n {\n return (\n
\n
{hint}
\n