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IAAK,CAC9C,IAAIuU,EAAOD,EAAItU,GACf4U,EAAIH,IAAIF,EAAK,IACbK,EAAIH,IAAIF,EAAK,GACf,CACA,OAAOpU,MAAMwN,KAAKiH,EACpB,CArEkBW,CAAYtB,GAAQA,EACtC,EAEAvH,EAAOC,QAAQoC,MAAQgF,C","sources":["webpack:///./app/javascript/main-app/images/checkbox-checked.inline.svg","webpack:///./app/javascript/_shared/Radio.jsx","webpack:///./app/javascript/_shared/fields/Combobox.jsx","webpack:///./app/javascript/_shared/fields/CustomReactSelect.jsx","webpack:///./app/javascript/_shared/fields/FieldLabel.jsx","webpack:///./app/javascript/_shared/fields/HiddenInput.tsx","webpack:///./app/javascript/_shared/fields/Switcher/Switcher.tsx","webpack:///./app/javascript/espace-pro-app/src/constants/admin-theme.js","webpack:///./app/javascript/main-app/components/buttons/Btn.jsx","webpack:///./app/javascript/main-app/components/common/Badge.tsx","webpack:///./app/javascript/main-app/components/fields/Checkbox/Checkbox.jsx","webpack:///./app/javascript/main-app/components/fields/Field.jsx","webpack:///./app/javascript/main-app/components/fields/PasswordField.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/constants/enums.ts","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/FormCommonComponents.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/PersonalInfoStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/constants/constants.ts","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/IntentStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/IncorporationStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/QualificationsStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/LocationStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/VehiclesStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/RestInfoStep.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/ProjectStepsIntro.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/Form.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/OpenDrivingSchoolFormComponent.tsx","webpack:///./app/javascript/main-app/components/OpenDrivingSchoolForm/components/OpenDrivingSchoolFormContainer.tsx","webpack:///./app/javascript/packs/openDrivingSchoolFormEntry.tsx","webpack:///./app/javascript/main-app/images/icon-password-eye.svg","webpack:///./app/javascript/main-app/images/select-arrow.svg","webpack:///./node_modules/form-data/lib/browser.js","webpack:///./node_modules/nanoclone/src/index.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/property-expr/index.js","webpack:///./node_modules/react-fast-compare/index.js","webpack:///./node_modules/tiny-warning/dist/tiny-warning.esm.js","webpack:///./node_modules/toposort/index.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" {...props}><path d=\"M16 0H2a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V2a2 2 0 00-2-2zM7 14L2 9l1.41-1.41L7 11.17l7.59-7.59L16 5l-9 9z\" /></svg>);","import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\n\nimport {\n ALICE_BLUE,\n BLUE_GRAY,\n MAIN_BLUE,\n PALE_CORNFLOWER_BLUE,\n PALE_GRAY,\n ZIRCON,\n} from '@espacePro/constants/admin-theme';\nimport { HiddenInput } from '@shared/fields/HiddenInput';\n\nconst Container = styled.div`\n display: flex;\n cursor: ${(props) => props.disabled ? 'not-allowed' : 'auto'};\n`;\n\nconst Label = styled.label`\n border-radius: 9px;\n border: solid 1px ${(props) => props.checked ? PALE_CORNFLOWER_BLUE : PALE_GRAY};\n padding: 8px 10px;\n font-size: ${(props) => props.fontSize ?? '16px'};\n line-height: 1.38;\n letter-spacing: -0.11px;\n color: ${(props) => props.checked ? MAIN_BLUE : BLUE_GRAY};\n display: flex;\n align-items: center;\n background: ${(props) => props.checked ? ALICE_BLUE : '#ffffff'};\n pointer-events: ${(props) => props.disabled ? 'none' : 'auto'};\n opacity: ${(props) => props.disabled ? 0.7 : 1};\n cursor: pointer;\n font-weight: normal;\n`;\n\nconst InputView = styled.div`\n width: 14px;\n height: 14px;\n border-radius: 14px;\n border: solid 1px ${ZIRCON};\n margin-right: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #ffffff;\n \n ${(props) => props.checked && `\n &::after {\n content: '';\n width: 8px;\n height: 8px;\n border-radius: 8px;\n background: ${MAIN_BLUE};\n }\n `}\n`;\n\nconst Radio = (props) => {\n const {\n name, label, onChange, onClick, onBlur, disabled, checked, fontSize, value,\n } = props;\n return (\n <Container disabled={disabled}>\n <Label fontSize={fontSize} checked={checked} disabled={disabled}>\n <HiddenInput\n type=\"radio\"\n name={name}\n onChange={onChange}\n onClick={onClick}\n onBlur={onBlur}\n disabled={disabled}\n value={value}\n />\n <InputView checked={checked} />\n {label}\n </Label>\n </Container>\n );\n};\n\nRadio.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n onBlur: PropTypes.func,\n disabled: PropTypes.bool,\n checked: PropTypes.bool,\n fontSize: PropTypes.string,\n value: PropTypes.string,\n};\n\nRadio.defaultProps = {\n label: '',\n onChange: () => {},\n onClick: () => {},\n onBlur: () => {},\n disabled: false,\n checked: false,\n fontSize: '16px',\n value: '',\n};\n\nexport { Radio };\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport map from 'lodash/map';\n\nimport FieldLabel from './FieldLabel';\nimport { FONT_FAMILY_MAIN, LIGHT_BLUE_GREY, TEXT_COLOR } from '../../main-app/theme';\nimport arrowDown from '../../main-app/images/select-arrow.svg';\nimport media from '../../main-app/utils/mediaQueries';\n\nconst InputContainer = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 3px;\n`;\n\nconst SelectContainer = styled.label`\n display: block;\n position: relative;\n width: ${(props) => (props.width ? props.width : 'auto')};\n margin: 0;\n font-weight: inherit;\n`;\n\nconst Select = styled.select`\n position: relative;\n height: 48px;\n width: 100%;\n padding: 0 40px 0 16px;\n border-radius: 2px;\n border: solid 1px rgba(0, 0, 0, 0.07);\n background-image: url(${arrowDown});\n background-repeat: no-repeat;\n background-size: 23px 23px;\n background-origin: border-box;\n background-position: right 6px top 13px;\n background-color: #f4f7f9;\n outline: none;\n font-size: ${(props) => props.fontSize ? props.fontSize : '14px'};\n font-weight: normal;\n line-height: 1.43;\n letter-spacing: 0.1px;\n color: ${(props) => props.value ? TEXT_COLOR : LIGHT_BLUE_GREY};\n transition: all .2s;\n font-family: ${FONT_FAMILY_MAIN};\n &::-ms-expand {\n display: none;\n }\n appearance: none;\n &:focus {\n border-color: #23c4f8 !important;\n }\n ${(props) => props.disabled\n ? `\n border: dashed 1px rgba(0, 0, 0, 0.07);\n color: #9aa1a9;\n &:hover {\n cursor: not-allowed;\n }\n `\n : `\n &:hover {\n border-color: rgba(41, 83, 102, 0.3);\n }\n `}\n ${(props) => props.valid === true\n && `\n border-color: #51e3ae !important;\n `}\n ${(props) => props.valid === false\n && `\n border-color: #f74656 !important;\n color: #f74656;\n `}\n\n ${(props) => props.icon && `\n padding-left: 42px;\n `}\n \n ${media.mobile`\n font-size: 16px;\n \n &:focus {\n font-size: 16px;\n }\n `}\n`;\n\nconst Option = styled.option`\n color: ${TEXT_COLOR};\n \n &:disabled {\n color: ${LIGHT_BLUE_GREY};\n }\n`;\n\nconst ErrorMessage = styled.div`\n font-size: 12px;\n height: 20px;\n color: #f74656;\n`;\n\nconst Image = styled.img`\n max-width: 30px;\n max-height: 30px;\n position: absolute;\n z-index: 1;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n`;\n\nclass Combobox extends Component {\n constructor(props) {\n super(props);\n this.selectRef = React.createRef();\n }\n\n render() {\n const {\n label,\n placeholder,\n options,\n disabled,\n valid,\n optionalLink,\n optionalText,\n width,\n tabIndex,\n name,\n onChange,\n onBlur,\n value,\n errorMessage,\n icon,\n fontSize,\n 'data-testid': dataTestId,\n } = this.props;\n\n return (\n <InputContainer>\n <FieldLabel\n label={label}\n optionalLink={optionalLink}\n optionalText={optionalText}\n valid={valid}\n />\n <SelectContainer width={width}>\n {icon && <Image src={icon} alt=\"dropdown icon\" />}\n <Select\n width={width}\n tabIndex={tabIndex}\n placeholder={placeholder}\n disabled={disabled}\n valid={valid}\n name={name}\n onChange={onChange}\n onBlur={onBlur}\n value={value}\n data-test-selector={`form-field-${name}`}\n ref={this.selectRef}\n icon={icon}\n fontSize={fontSize}\n data-testid={dataTestId}\n >\n {placeholder && <Option label={placeholder} disabled />}\n {map(options, (item) => (\n <Option key={`index-${item.id}`} value={item.id}>\n {item.name}\n </Option>\n ))}\n </Select>\n </SelectContainer>\n {errorMessage && <ErrorMessage>{errorMessage}</ErrorMessage>}\n </InputContainer>\n );\n }\n}\n\nCombobox.propTypes = {\n label: PropTypes.string,\n placeholder: PropTypes.string,\n options: PropTypes.array,\n optionalLink: PropTypes.string,\n optionalText: PropTypes.string,\n disabled: PropTypes.bool,\n valid: PropTypes.bool,\n width: PropTypes.string,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onBlur: PropTypes.func,\n value: PropTypes.any,\n errorMessage: PropTypes.string,\n tabIndex: PropTypes.string,\n icon: PropTypes.string,\n fontSize: PropTypes.string,\n 'data-testid': PropTypes.string,\n};\n\nCombobox.defaultProps = {\n label: '',\n placeholder: '',\n options: [],\n disabled: false,\n valid: null,\n width: null,\n optionalLink: '',\n optionalText: '',\n name: '',\n onChange: () => {\n },\n onBlur: () => {\n },\n value: '',\n errorMessage: '',\n tabIndex: null,\n icon: null,\n fontSize: '14px',\n 'data-testid': '',\n};\n\nexport default Combobox;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Select from 'react-select';\n\nimport {\n INPUT_BORDERS_COLOR,\n SILVER,\n SOLITUDE,\n FONT_FAMILY_MAIN,\n TEXT_COLOR,\n MAIN_BLUE,\n COBALT,\n INPUT_BORDERS_COLOR_ERROR,\n} from '@espacePro/constants/admin-theme';\n\nconst matchOptionColor = ({ isDisabled, isFocused, isSelected }) => {\n if (isDisabled) {\n return null;\n }\n if (isSelected) {\n return MAIN_BLUE;\n }\n if (isFocused) {\n return 'rgb(74, 144, 226, 0.2)';\n }\n return null;\n};\n\nconst selectStyles = {\n control: (styles, { selectProps: { hasError } }) => ({\n ...styles,\n backgroundColor: SOLITUDE,\n borderRadius: '4px',\n borderColor: hasError ? INPUT_BORDERS_COLOR_ERROR : INPUT_BORDERS_COLOR,\n padding: '4px 4px 4px 8px',\n fontFamily: FONT_FAMILY_MAIN,\n minHeight: '48px',\n fontSize: '16px',\n }),\n input: (styles) => ({\n ...styles,\n fontSize: '16px',\n color: TEXT_COLOR,\n fontFamily: FONT_FAMILY_MAIN,\n }),\n placeholder: (styles) => ({\n ...styles,\n color: SILVER,\n fontFamily: FONT_FAMILY_MAIN,\n }),\n multiValue: (styles) => ({\n ...styles,\n backgroundColor: MAIN_BLUE,\n color: '#fff',\n padding: 0,\n borderRadius: '4px',\n }),\n multiValueLabel: (styles) => ({\n ...styles,\n color: '#fff',\n fontFamily: FONT_FAMILY_MAIN,\n padding: '4px 4px 4px 6px',\n }),\n multiValueRemove: (styles) => ({\n ...styles,\n borderRadius: '0 4px 4px 0',\n ':hover': {\n backgroundColor: COBALT,\n color: '#fff',\n },\n }),\n valueContainer: (styles) => ({\n ...styles,\n padding: 0,\n }),\n option: (styles, { isDisabled, isFocused, isSelected }) => ({\n ...styles,\n backgroundColor: matchOptionColor({ isDisabled, isFocused, isSelected }),\n ':active': {\n ...styles[':active'],\n backgroundColor: MAIN_BLUE,\n color: '#fff',\n },\n }),\n};\n\nconst CustomReactSelect = ({\n placeholder,\n onChange,\n options,\n defaultValue,\n hasError,\n inputBackgroundColor,\n ...props\n}) => {\n const customStyles = {\n ...selectStyles,\n control: (base, state) => ({\n ...selectStyles.control(base, state),\n backgroundColor: inputBackgroundColor,\n }),\n };\n return (\n <Select\n placeholder={placeholder}\n onChange={onChange}\n options={options}\n styles={customStyles}\n noOptionsMessage={() => \"Pas d'autre option disponible\"}\n loadingMessage={() => 'Chargement'}\n defaultValue={defaultValue}\n hasError={hasError}\n inputBackgroundColor={inputBackgroundColor}\n {...props}\n />\n );\n};\n\nCustomReactSelect.propTypes = {\n placeholder: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n value: PropTypes.string,\n }),\n ).isRequired,\n defaultValue: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n value: PropTypes.string,\n }),\n ),\n hasError: PropTypes.bool,\n inputBackgroundColor: PropTypes.string,\n};\n\nCustomReactSelect.defaultProps = {\n placeholder: '',\n defaultValue: [],\n hasError: false,\n inputBackgroundColor: SOLITUDE,\n};\n\nexport { CustomReactSelect };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport isEmpty from 'lodash/isEmpty';\nimport { FONT_FAMILY_MAIN } from '../../main-app/theme';\n\nconst InputHeader = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 4px;\n`;\n\nconst Label = styled.label`\n font-size: 14px;\n font-weight: 600;\n line-height: 1.57;\n letter-spacing: 0.3px;\n margin-bottom: 0;\n font-family: ${FONT_FAMILY_MAIN};\n color: ${(props) => (props.valid === false ? '#f74656' : props.labelTextColor)};\n`;\n\nconst Link = styled.a`\n font-size: 12px;\n line-height: 1.33;\n letter-spacing: -0.1px;\n text-align: right;\n color: #4a90e2;\n text-decoration: none;\n`;\n\nconst OptionalText = styled.span`\n font-size: 14px;\n font-weight: 600;\n line-height: 1.57;\n letter-spacing: 0.3px;\n color: #ccd0d4;\n`;\n\nconst FieldLabel = ({\n label, optionalLink, optionalText, valid, labelTextColor,\n}) => {\n const shouldRenderLink = optionalText && optionalLink;\n const shouldRenderText = optionalText;\n const shouldRenderInputHeader = !isEmpty(label) || shouldRenderLink || shouldRenderText;\n\n return (\n shouldRenderInputHeader && (\n <InputHeader>\n <Label labelTextColor={labelTextColor} valid={valid}>{label}</Label>\n {(shouldRenderLink && (\n /* Force link to be last in keyboard navigation */\n /* eslint-disable-next-line jsx-a11y/tabindex-no-positive */\n <Link tabIndex=\"50\" href={optionalLink}>\n {optionalText}\n </Link>\n ))\n || (shouldRenderText && <OptionalText>{optionalText}</OptionalText>)}\n </InputHeader>\n )\n );\n};\n\nFieldLabel.propTypes = {\n label: PropTypes.string,\n optionalLink: PropTypes.string,\n optionalText: PropTypes.string,\n valid: PropTypes.bool,\n labelTextColor: PropTypes.string,\n};\n\nFieldLabel.defaultProps = {\n label: '',\n optionalLink: '',\n optionalText: '',\n valid: null,\n labelTextColor: '#354354',\n};\n\nexport default FieldLabel;\n","import styled from 'styled-components';\n\nexport const HiddenInput = styled.input`\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n`;\n","import React from 'react';\nimport styled, { css } from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { SOLITUDE } from '@espacePro/constants/admin-theme';\nimport {\n FONT_FAMILY_MAIN, LIGHT_PALE_GREY, PALE_GREY, TEXT_COLOR,\n} from '../../../main-app/theme';\n\nconst Container = styled.div`\n display: inline-flex;\n border-radius: 9px;\n ${(props) => props.isInSeparateMode\n ? css`\n flex-wrap: wrap;\n `\n : css`\n background: #fff;\n box-shadow: 0 0 0 1px #f4f7f9;\n flex-wrap: nowrap;\n `},\n`;\n\nconst Label = styled.label`\n padding: 0 12px;\n font-family: ${(props) => props?.theme?.fontFamily || FONT_FAMILY_MAIN};\n font-size: ${(props) => (props.fontSize ? props.fontSize : 16)}px;\n color: ${(props) => props?.theme?.colors?.textColorMain || TEXT_COLOR};\n cursor: pointer;\n height: 37px;\n line-height: 37px;\n margin: 0;\n font-weight: normal;\n display: inline-block;\n width: 100%;\n min-width: 33px;\n max-width: 100%;\n text-align: center;\n white-space: nowrap;\n\n &:hover,\n &:focus {\n background-color: ${LIGHT_PALE_GREY};\n }\n\n svg {\n vertical-align: middle;\n margin-left: 8px;\n }\n`;\n\nconst SwitcherItem = styled.div`\n flex: 0;\n\n & + & {\n border-left: 1px solid ${SOLITUDE};\n }\n\n &:first-child {\n ${Label} {\n border-radius: 9px 0 0 9px;\n }\n }\n\n &:last-child {\n ${Label} {\n border-radius: 0 9px 9px 0;\n }\n }\n`;\n\nconst SeparateSwitcherItem = styled.div`\n margin: 0 8px 8px 0;\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);\n background-color: #ffffff;\n border-radius: 8px;\n\n ${Label} {\n border-radius: 8px;\n }\n`;\n\nconst Input = styled.input`\n position: absolute !important;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n\n &:focus + ${Label} {\n background-color: ${LIGHT_PALE_GREY};\n }\n\n &:checked + ${Label} {\n background-color: ${({ theme }) => theme.colors?.switcherBackground ? theme.colors?.switcherBackground : PALE_GREY};\n box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.05);\n color: ${({ theme }) => theme.colors?.switcherColor ? theme.colors?.switcherColor : '#979ea7'};\n }\n\n &:disabled + ${Label} {\n opacity: 0.7;\n cursor: not-allowed;\n }\n`;\n\ntype Item = string | boolean | number | { label: string; value: string | boolean | number };\n\ntype SwitcherTypes = {\n items: Item[];\n onChange?: () => void;\n onClick?: () => void;\n name: string;\n activeItem?: boolean | number | string | any[];\n activeItemIcon?: React.ReactNode;\n fontSize?: number;\n isMultipleChoiceAllowed?: boolean;\n isInSeparateMode?: boolean;\n disabled?: boolean;\n};\n\nconst Switcher = (props: SwitcherTypes) => {\n const {\n items,\n name,\n onChange,\n activeItem,\n fontSize,\n isMultipleChoiceAllowed,\n isInSeparateMode,\n onClick,\n activeItemIcon,\n disabled,\n } = props;\n\n const SwitcherItemElem = isInSeparateMode ? SeparateSwitcherItem : SwitcherItem;\n return (\n <Container isInSeparateMode={isInSeparateMode}>\n {items.map((item, i) => {\n let itemValue;\n let isActive;\n if (typeof item === 'object' && item !== null) {\n itemValue = item.value;\n } else {\n itemValue = item;\n }\n if (Array.isArray(activeItem)) {\n isActive = activeItem.indexOf(itemValue) > -1;\n } else {\n isActive = activeItem === itemValue;\n }\n\n return (\n <SwitcherItemElem key={itemValue}>\n <Input\n type={isMultipleChoiceAllowed ? 'checkbox' : 'radio'}\n name={name}\n id={`${name}_input-${i}`}\n value={itemValue}\n checked={isActive}\n onChange={onChange}\n onClick={onClick}\n data-test-selector={`form-field-${name}`}\n disabled={disabled}\n />\n <Label htmlFor={`${name}_input-${i}`} fontSize={fontSize}>\n {typeof item === 'object' && item !== null && item.label ? item.label : item}\n {isActive && activeItemIcon ? activeItemIcon : null}\n </Label>\n </SwitcherItemElem>\n );\n })}\n </Container>\n );\n};\n\nSwitcher.propTypes = {\n items: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])),\n PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number]),\n }),\n ),\n ]).isRequired,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n name: PropTypes.string.isRequired,\n activeItem: PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.number,\n PropTypes.string,\n PropTypes.array,\n ]),\n activeItemIcon: PropTypes.node,\n fontSize: PropTypes.number,\n isMultipleChoiceAllowed: PropTypes.bool,\n isInSeparateMode: PropTypes.bool,\n disabled: PropTypes.bool,\n};\n\nSwitcher.defaultProps = {\n onChange: () => {},\n onClick: () => {},\n activeItem: '',\n fontSize: 16,\n isMultipleChoiceAllowed: false,\n isInSeparateMode: false,\n activeItemIcon: undefined,\n disabled: false,\n};\n\nexport { Switcher };\n","export const FONT_FAMILY_MAIN = \"'Muli', 'Trebuchet MS', Tahoma, helvetica, arial, sans-serif\";\nexport const BLUE_GRAY = '#9aa1a9';\nexport const MAIN_DARK = '#354354';\nexport const TEXT_COLOR = MAIN_DARK;\nexport const WHITE = '#ffffff';\nexport const LIGHT_PINK = '#fee7e9';\nexport const WATERMELON = '#f74656';\nexport const RAVEN = '#68727f';\nexport const COBALT = '#0153b4';\nexport const MAIN_BLUE = '#4a90e2';\nexport const ZIRCON = '#d7dadc';\nexport const SILVER = '#ccd0d4';\nexport const PALE_GRAY = '#eef1f6';\nexport const PALE_GRAY_TWO = '#fafafb';\nexport const PALE_CORNFLOWER_BLUE = '#c8ddf6';\nexport const GRAY_CHATEAU = '#979ea7';\nexport const SOLITUDE = '#f4f7f9';\nexport const FIRE_ENGINE_RED = '#d60f20';\nexport const ALICE_BLUE = '#f3f8ff';\nexport const MAIZE = '#f6b65c';\nexport const SHAMROCK = '#48d3a0';\nexport const CORAL_PINK = '#fd6e70';\nexport const GREEN_BRIGHT = '#44c655';\nexport const MEDIUM_AQUAMARINE = '#51e3ae';\nexport const LIGHT_GRAY = '#f0f3f6';\nexport const BEIGE = '#fbe5d6';\n\nexport const INPUT_BORDERS_COLOR = 'rgba(0, 0, 0, 0.07)';\nexport const INPUT_BORDERS_COLOR_ERROR = WATERMELON;\n\nexport const SUCCESS_NOTIFICATION_BG = SHAMROCK;\nexport const ALERT_NOTIFICATION_BG = LIGHT_PINK;\nexport const PROMO_NOTIFICATION_BG = COBALT;\n\nexport const SUCCESS_NOTIFICATION_TEXT_COLOR = WHITE;\nexport const ALERT_NOTIFICATION_TEXT_COLOR = WATERMELON;\nexport const PROMO_NOTIFICATION_TEXT_COLOR = WHITE;\n\nexport const STARS_FILL_COLOR = '#f6b65c';\n\nexport const HIGH_RATING_COLOR = '#44c496';\nexport const MEDIUM_RATING_COLOR = '#c28e45';\nexport const LOW_RATING_COLOR = WATERMELON;\n\nexport const MAIN_IMAGE_HIGHLIGHT = '#ffd450';\n\nexport const ERROR_COLOR = WATERMELON;\nexport const SUCCESS_COLOR = MEDIUM_AQUAMARINE;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport Loader from '../loader';\nimport { FONT_FAMILY_MAIN } from '../../theme';\n\nconst MainButton = styled.button`\n cursor: pointer;\n ${(props) => props.small\n ? `\n height: 28px;\n padding: 0 11px;\n font-size: 12px;\n border-radius: 5px;\n `\n : ` \n height: 48px;\n padding: 0 24px;\n font-size: 16px;\n border-radius: 4px;\n `}\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: bold;\n transition: all 0.3s;\n border: 1px solid;\n font-family: ${({ theme }) => (theme?.fontFamily ? theme.fontFamily : FONT_FAMILY_MAIN)};\n &:hover {\n opacity: 0.9;\n }\n ${(props) => props.block\n && `\n width: 100%;\n `}\n ${(props) => {\n if (props.disabled && props.outlined) {\n return `\n background-color: #ffffff;\n border-color: #d7dadc;\n color: #ccd0d4;\n &:hover {\n opacity: 1;\n cursor: not-allowed;\n }\n `;\n }\n\n if (props.disabled && !props.outlined) {\n return `\n background-color: #d7dadc;\n border-color: #d7dadc;\n color: #9aa1a9;\n &:hover {\n opacity: 1;\n cursor: not-allowed;\n }\n `;\n }\n\n if (props.outlined) {\n return `\n background-color: #ffffff;\n border-color: ${props.color};\n color: ${props.color};\n `;\n }\n\n return `\n background-color: ${props.color};\n border-color: ${props.color};\n color: ${props.textColor}; \n `;\n }};\n`;\n\nclass Btn extends Component {\n render() {\n const {\n text,\n name,\n block,\n small,\n type,\n outlined,\n color,\n textColor,\n disabled,\n tabIndex,\n isLoading,\n onClick,\n className,\n } = this.props;\n const spinnerColor = outlined ? color : '#ffffff';\n\n return (\n <MainButton\n type={type}\n tabIndex={tabIndex}\n block={block}\n small={small}\n color={color}\n textColor={textColor}\n disabled={disabled}\n outlined={outlined}\n onClick={isLoading ? () => {} : onClick}\n data-test-selector={`button-${name}`}\n className={className}\n >\n {isLoading ? (\n <Loader\n width={small ? 18 : 47}\n height={small ? 18 : 47}\n size={0.7}\n color={spinnerColor}\n />\n ) : (\n text\n )}\n </MainButton>\n );\n }\n}\n\nBtn.propTypes = {\n type: PropTypes.string,\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n name: PropTypes.string,\n block: PropTypes.bool,\n small: PropTypes.bool,\n outlined: PropTypes.bool,\n color: PropTypes.string,\n textColor: PropTypes.string,\n disabled: PropTypes.bool,\n tabIndex: PropTypes.string,\n isLoading: PropTypes.bool,\n onClick: PropTypes.func,\n className: PropTypes.string,\n};\n\nBtn.defaultProps = {\n type: '',\n text: 'Button',\n name: '',\n block: false,\n small: false,\n outlined: false,\n color: '#4a90e2',\n textColor: '#fff',\n disabled: false,\n tabIndex: null,\n isLoading: false,\n onClick: () => {},\n className: '',\n};\n\nexport default Btn;\n","import styled from 'styled-components';\n\nimport media from '../../utils/mediaQueries';\nimport { NOTES_COLOR, PALE_GREY } from '../../theme';\n\nconst Badge = styled.div`\n border-radius: 12px;\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);\n background-color: #ffffff;\n`;\n\nconst PageBadge = styled(Badge)`\n padding: 24px 40px 40px;\n margin-bottom: 40px;\n\n ${media.mobile`\n padding: 16px 24px 24px;\n `}\n`;\n\nconst BadgeHeader = styled.div`\n margin: 0 -40px;\n padding: 0 40px 24px;\n border-bottom: 1px solid ${PALE_GREY};\n\n ${media.mobile`\n margin: 0 -24px;\n padding: 0 24px 24px;\n `}\n`;\n\nconst BadgeTitle = styled.h2`\n font-size: 32px;\n font-weight: 800;\n letter-spacing: 0.2px;\n margin: 0;\n\n ${media.mobile`\n font-size: 24px;\n `}\n`;\n\nconst BadgeSubtitle = styled.p`\n font-size: 14px;\n line-height: 1.29;\n letter-spacing: -0.1px;\n color: ${NOTES_COLOR};\n margin: 8px 0 0;\n`;\n\nconst BadgeBody = styled.div`\n font-size: 18px;\n padding-top: 24px;\n\n ${media.mobile`\n padding-top: 8px;\n `}\n`;\n\nexport {\n Badge, PageBadge, BadgeTitle, BadgeSubtitle, BadgeBody, BadgeHeader,\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\n\nimport CheckboxIcon from '../../../images/checkbox-checked.inline.svg';\nimport { ERROR_COLOR, SUCCESS_COLOR } from '../../../theme';\n\nconst EmptyCheckbox = styled.div`\n width: 18px;\n height: 18px;\n display: inline-block;\n border-radius: 2px;\n border: 1px solid rgba(0, 0, 0, 0.12);\n background-color: #f4f7f9;\n \n ${(props) => props.error && `border-color: ${ERROR_COLOR};`}\n \n &:focus {\n border-color: #23c4f8;\n }\n`;\n\nconst Label = styled.label`\n position: relative;\n padding-left: 32px;\n margin: 0;\n font-weight: normal;\n cursor: pointer;\n`;\n\nconst CheckboxView = styled.span`\n position: absolute;\n left: 0;\n`;\n\nconst Input = styled.input`\n position: absolute !important;\n height: 1px; \n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n \n &:focus {\n &+${CheckboxView} {\n ${EmptyCheckbox} {\n border-color: #23c4f8;\n }\n }\n }\n`;\n\nconst CheckedCheckbox = styled(CheckboxIcon)`\n fill: ${SUCCESS_COLOR};\n width: 24px;\n height: 24px;\n`;\n\nconst Checkbox = (props) => {\n const {\n label, isChecked, onChange, name, error,\n } = props;\n return (\n <Label>\n <Input type=\"checkbox\" onChange={onChange} name={name} checked={isChecked} />\n\n <CheckboxView>\n {isChecked ? <CheckedCheckbox /> : <EmptyCheckbox error={error} />}\n </CheckboxView>\n {label}\n </Label>\n );\n};\n\nCheckbox.propTypes = {\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n isChecked: PropTypes.bool,\n onChange: PropTypes.func,\n name: PropTypes.string,\n error: PropTypes.bool,\n};\n\nCheckbox.defaultProps = {\n label: '',\n isChecked: false,\n onChange: () => {},\n name: null,\n error: false,\n};\n\nexport { Checkbox };\n","import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { FieldLabel } from '@shared/fields';\nimport media from '../../utils/mediaQueries';\nimport { FONT_FAMILY_MAIN } from '../../theme';\n\nconst InputContainer = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: ${(props) => props.type !== 'hidden' ? '3px' : '0'};\n`;\n\nconst Input = styled.input`\n height: 48px;\n padding: 1px 16px;\n border-radius: 2px;\n border: solid 1px rgba(0, 0, 0, 0.07);\n background-color: ${(props) => props.backgroundColor};\n outline: none;\n font-size: 14px;\n line-height: 1.43;\n letter-spacing: 0.2px;\n color: ${(props) => props.inputTextColor};\n transition: all .2s;\n font-family: ${FONT_FAMILY_MAIN};\n &:focus {\n border-color: #23c4f8 !important;\n }\n &::placeholder {\n color: #ccd0d4; \n }\n ${(props) => props.disabled\n ? `\n border: dashed 1px rgba(0, 0, 0, 0.07);\n color: #9aa1a9;\n &:hover {\n cursor: not-allowed;\n }\n `\n : `\n &:hover {\n border-color: rgba(41, 83, 102, 0.3);\n }\n `}\n ${(props) => props.valid === true\n && `\n border-color: #51e3ae !important;\n `}\n ${(props) => props.valid === false\n && `\n border-color: #f74656 !important;\n color: #f74656;\n `}\n width: ${(props) => (props.width ? props.width : 'auto')};\n \n ${media.mobile`\n font-size: 16px;\n \n &:focus {\n font-size: 16px;\n }\n `}\n`;\n\nconst ErrorMessage = styled.div`\n font-size: 12px;\n min-height: 20px;\n color: #f74656;\n font-family: ${FONT_FAMILY_MAIN}\n`;\n\nconst ErrorEmptySpace = styled.div`\n height: 20px;\n`;\n\nconst Field = forwardRef(({\n label,\n placeholder,\n type,\n disabled,\n valid,\n optionalLink,\n optionalText,\n width,\n tabIndex,\n name,\n onChange,\n onBlur,\n value,\n errorMessage,\n min,\n step,\n backgroundColor,\n inputTextColor,\n labelTextColor,\n className,\n}, ref) => (\n <InputContainer className={className} type={type}>\n <FieldLabel\n label={label}\n optionalLink={optionalLink}\n optionalText={optionalText}\n valid={valid}\n labelTextColor={labelTextColor}\n />\n <Input\n width={width}\n type={type}\n tabIndex={tabIndex}\n placeholder={placeholder}\n disabled={disabled}\n valid={valid}\n name={name}\n onChange={onChange}\n onBlur={onBlur}\n value={value}\n data-test-selector={`form-field-${name}`}\n min={min}\n step={step}\n ref={ref}\n backgroundColor={backgroundColor}\n inputTextColor={inputTextColor}\n />\n {errorMessage ? <ErrorMessage>{errorMessage}</ErrorMessage> : type !== 'hidden' && <ErrorEmptySpace />}\n </InputContainer>\n));\n\nField.propTypes = {\n label: PropTypes.string,\n placeholder: PropTypes.string,\n type: PropTypes.string,\n optionalLink: PropTypes.string,\n optionalText: PropTypes.string,\n disabled: PropTypes.bool,\n valid: PropTypes.bool,\n width: PropTypes.string,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onBlur: PropTypes.func,\n value: PropTypes.any,\n errorMessage: PropTypes.string,\n tabIndex: PropTypes.string,\n min: PropTypes.number,\n step: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n backgroundColor: PropTypes.string,\n inputTextColor: PropTypes.string,\n labelTextColor: PropTypes.string,\n className: PropTypes.string,\n};\nField.defaultProps = {\n label: '',\n placeholder: '',\n type: 'text',\n disabled: false,\n valid: null,\n width: null,\n optionalLink: '',\n optionalText: '',\n name: '',\n onChange: () => {\n },\n onBlur: () => {\n },\n value: null,\n errorMessage: '',\n tabIndex: null,\n min: null,\n step: null,\n backgroundColor: '#f4f7f9',\n inputTextColor: '#354354',\n labelTextColor: '#354354',\n className: '',\n};\n\nexport default Field;\n","import React, { useCallback, useRef } from 'react';\nimport styled from 'styled-components';\n\nimport Field from './Field';\nimport eyeIcon from '../../images/icon-password-eye.svg';\n\nconst Container = styled.div`\n position: relative;\n`;\n\nconst Icon = styled.i`\n width: 24px;\n height: 24px;\n background: url(${eyeIcon}) no-repeat 0 0;\n background-size: contain;\n cursor: pointer;\n position: absolute;\n top: 37px;\n right: 8px;\n`;\n\ntype PasswordFieldProps = {\n onChange(e: React.ChangeEvent<any>): void;\n onBlur(e: React.FocusEvent<any>): void;\n value: string;\n valid: boolean;\n errorMessage?: string;\n optionalText?: string;\n optionalLink?: string;\n label?: string;\n name: string;\n placeholder?: string;\n type?: never;\n};\n\nconst PasswordField = ({\n onChange, onBlur, value, valid, errorMessage, optionalText, optionalLink, label, name, placeholder,\n}: PasswordFieldProps) => {\n const passwordRef = useRef<HTMLInputElement>(null);\n const handleIconClick = useCallback(() => {\n const field = passwordRef.current;\n if (field) {\n const type = field.getAttribute('type') === 'password' ? 'text' : 'password';\n field.setAttribute('type', type);\n }\n }, []);\n\n return (\n <Container>\n <Field\n type=\"password\"\n label={label}\n optionalText={optionalText}\n optionalLink={optionalLink}\n name={name}\n onChange={onChange}\n onBlur={onBlur}\n value={value}\n valid={valid}\n errorMessage={errorMessage}\n ref={passwordRef}\n placeholder={placeholder}\n />\n <Icon onClick={handleIconClick} />\n </Container>\n );\n};\n\nPasswordField.defaultProps = {\n optionalText: '',\n optionalLink: '',\n label: 'Mot de passe',\n placeholder: '',\n type: 'password',\n errorMessage: '',\n};\n\nexport { PasswordField };\n","export enum FormState {\n Intent = 'Intent',\n Incorporation = 'Incorporation',\n Qualifications = 'Qualifications',\n Location = 'Location',\n Vehicles = 'Vehicles',\n RestInfo = 'RestInfo',\n PersonalInfo = 'PersonalInfo',\n}\n","import styled from 'styled-components';\n\nimport { ERROR_COLOR } from '../../../theme';\n\nconst Question = styled.div`\n font-size: 18px;\n font-weight: 800;\n line-height: 1.44;\n letter-spacing: 0.2px;\n margin-bottom: 8px;\n`;\n\nconst QuestionRow = styled.div`\n & + & {\n margin-top: 24px;\n }\n`;\n\nconst CheckboxRow = styled.div`\n & + & {\n margin-top: 12px;\n }\n`;\n\nconst RadioRow = styled.div`\n display: flex;\n \n & > * {\n margin-left: 16px;\n \n &:first-child {\n margin-left: 0;\n }\n }\n`;\n\nconst ErrorMessage = styled.div`\n font-size: 14px;\n line-height: 1.29;\n letter-spacing: -0.1px;\n color: ${ERROR_COLOR};\n margin-top: 8px;\n`;\n\nexport {\n Question, CheckboxRow, ErrorMessage, QuestionRow, RadioRow,\n};\n","import React from 'react';\n\nimport Field from '../../fields/Field';\nimport { ErrorMessage, QuestionRow } from './FormCommonComponents';\nimport { ScreenProps } from '../constants/types';\nimport { PasswordField } from '../../fields/PasswordField';\n\nconst PersonalInfoStep = ({\n values, errors, touched, handleChange, handleBlur,\n}: ScreenProps) => (\n <>\n <QuestionRow>\n <Field\n name=\"firstname\"\n label=\"Prénom\"\n placeholder=\"Louis\"\n onChange={handleChange}\n onBlur={handleBlur}\n valid={touched.firstname && !errors.firstname}\n value={values.firstname}\n />\n {touched.firstname && !!errors.firstname && <ErrorMessage>{errors.firstname}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Field\n name=\"lastname\"\n label=\"Nom\"\n placeholder=\"Dupont\"\n onChange={handleChange}\n onBlur={handleBlur}\n valid={touched.lastname && !errors.lastname}\n value={values.lastname}\n />\n {touched.lastname && !!errors.lastname && <ErrorMessage>{errors.lastname}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Field\n name=\"email\"\n type=\"email\"\n label=\"Email\"\n onChange={handleChange}\n onBlur={handleBlur}\n valid={touched.email && !errors.email}\n value={values.email}\n />\n {touched.email && !!errors.email && <ErrorMessage>{errors.email}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Field\n name=\"phone\"\n type=\"tel\"\n label=\"Téléphone\"\n onChange={handleChange}\n onBlur={handleBlur}\n valid={touched.phone && !errors.phone}\n value={values.phone}\n />\n {touched.phone && !!errors.phone && <ErrorMessage>{errors.phone}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <PasswordField\n name=\"password\"\n label=\"Choisissez un mot de passe\"\n onChange={handleChange}\n onBlur={handleBlur}\n valid={touched.password && !errors.password}\n value={values.password}\n />\n {touched.password && !!errors.password && <ErrorMessage>{errors.password}</ErrorMessage>}\n </QuestionRow>\n </>\n);\n\nexport { PersonalInfoStep };\n","import * as Yup from 'yup';\n\nimport { FormState } from './enums';\nimport { IntentStep } from '../components/IntentStep';\nimport { IncorporationStep } from '../components/IncorporationStep';\nimport { QualificationsStep } from '../components/QualificationsStep';\nimport { LocationStep } from '../components/LocationStep';\nimport { VehiclesStep } from '../components/VehiclesStep';\nimport { RestInfoStep } from '../components/RestInfoStep';\nimport { PersonalInfoStep } from '../components/PersonalInfoStep';\nimport { FormValues } from './types';\n\nexport const SCREENS = {\n [FormState.Intent]: IntentStep,\n [FormState.Incorporation]: IncorporationStep,\n [FormState.Qualifications]: QualificationsStep,\n [FormState.Location]: LocationStep,\n [FormState.Vehicles]: VehiclesStep,\n [FormState.RestInfo]: RestInfoStep,\n [FormState.PersonalInfo]: PersonalInfoStep,\n};\n\nexport const SCREENS_TRANSITIONS = {\n [FormState.Intent]: {\n next: FormState.Incorporation,\n prev: undefined,\n },\n [FormState.Incorporation]: {\n next: FormState.Qualifications,\n prev: FormState.Intent,\n },\n [FormState.Qualifications]: {\n next: FormState.Location,\n prev: FormState.Incorporation,\n },\n [FormState.Location]: {\n next: FormState.Vehicles,\n prev: FormState.Qualifications,\n },\n [FormState.Vehicles]: {\n next: FormState.RestInfo,\n prev: FormState.Location,\n },\n [FormState.RestInfo]: {\n next: FormState.PersonalInfo,\n prev: FormState.Vehicles,\n },\n [FormState.PersonalInfo]: {\n next: undefined,\n prev: FormState.RestInfo,\n },\n};\n\nexport const SCREEN_TITLES = {\n [FormState.Intent]: 'votre projet',\n [FormState.Incorporation]: 'la société',\n [FormState.Qualifications]: 'vos diplômes et qualifications',\n [FormState.Location]: 'le local',\n [FormState.Vehicles]: 'les véhicules',\n [FormState.RestInfo]: '',\n};\n\nexport const initialValues: FormValues = {\n isDrivingSchoolCreation: false,\n isDrivingSchoolBuying: false,\n isIncorporationStarted: false,\n isIncorporationDone: false,\n isExistingCompanyBuying: false,\n hasDiploma: null,\n hasCqp: null,\n isAnInstructor: null,\n isLocationFound: null,\n isErp: null,\n isInsured: null,\n hasEquippedVehicle: null,\n isVehicleInsured: null,\n isAgreementRequested: null,\n departmentName: '',\n firstname: '',\n lastname: '',\n email: '',\n phone: '',\n password: '',\n};\n\nexport const validationSchema = {\n [FormState.Intent]: Yup.object()\n .shape({\n isDrivingSchoolCreation: Yup.bool(),\n isDrivingSchoolBuying: Yup.bool(),\n })\n .test(\n 'selectExactlyOneIntentOption',\n null,\n (obj) => {\n if ((obj.isDrivingSchoolCreation && !obj.isDrivingSchoolBuying) || (!obj.isDrivingSchoolCreation && obj.isDrivingSchoolBuying)) {\n return true;\n }\n\n return new Yup.ValidationError(\n 'Sélectionnez une option',\n null,\n 'isDrivingSchoolCreation',\n );\n },\n ),\n [FormState.Incorporation]: Yup.object().shape({\n isIncorporationStarted: Yup.bool(),\n isIncorporationDone: Yup.bool(),\n isExistingCompanyBuying: Yup.bool(),\n })\n .test(\n 'selectExactlyOneIncorporationOption',\n null,\n (obj) => {\n if ((obj.isIncorporationStarted && !obj.isIncorporationDone && !obj.isExistingCompanyBuying)\n || (!obj.isIncorporationStarted && obj.isIncorporationDone && !obj.isExistingCompanyBuying)\n || (!obj.isIncorporationStarted && !obj.isIncorporationDone && obj.isExistingCompanyBuying)) {\n return true;\n }\n\n return new Yup.ValidationError(\n 'Sélectionnez une option',\n null,\n 'isIncorporationStarted',\n );\n },\n ),\n [FormState.Qualifications]: Yup.object().shape({\n hasDiploma: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n hasCqp: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n isAnInstructor: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n }),\n [FormState.Location]: Yup.object().shape({\n isLocationFound: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n isErp: Yup.string().nullable()\n .when(['isLocationFound'], {\n is: (isLocationFound) => isLocationFound === 'true',\n then: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n }),\n isInsured: Yup.string().nullable()\n .when('isLocationFound', {\n is: 'true',\n then: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n }),\n }),\n [FormState.Vehicles]: Yup.object().shape({\n hasEquippedVehicle: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n isVehicleInsured: Yup.string().nullable()\n .when(['hasEquippedVehicle'], {\n is: (isLocationFound) => isLocationFound === 'true',\n then: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n }),\n }),\n [FormState.RestInfo]: Yup.object().shape({\n isAgreementRequested: Yup.string().oneOf(['true', 'false'], 'Ce champ est obligatoire.').nullable(),\n departmentName: Yup.string().required('Ce champ est obligatoire.'),\n }),\n [FormState.PersonalInfo]: Yup.object().shape({\n firstname: Yup.string().required('Ce champ est obligatoire.'),\n lastname: Yup.string().required('Ce champ est obligatoire.'),\n email: Yup.string()\n .email('Merci de renseigner une adresse email valide.')\n .required('Ce champ est obligatoire.'),\n phone: Yup.string()\n .matches(\n /^0\\s*[1-9](?:[\\s.-]*\\d{2}){4}$/,\n 'Le téléphone doit être au format 01 23 45 67 89',\n )\n .required('Ce champ est obligatoire.'),\n password: Yup.string().required('Ce champ est obligatoire.'),\n }),\n};\n","import React from 'react';\n\nimport { Question, CheckboxRow, ErrorMessage } from './FormCommonComponents';\nimport { Checkbox } from '../../fields/Checkbox';\nimport { ScreenProps } from '../constants/types';\n\nconst IntentStep = ({ values, errors, handleChange }: ScreenProps) => (\n <>\n <Question>Vous souhaitez :</Question>\n <CheckboxRow>\n <Checkbox\n label=\"Ouvrir une agence (nouvelle auto-école)\"\n isChecked={values.isDrivingSchoolCreation}\n onChange={handleChange}\n name=\"isDrivingSchoolCreation\"\n error={!!errors.isDrivingSchoolCreation}\n />\n </CheckboxRow>\n <CheckboxRow>\n <Checkbox\n label=\"Reprendre une agence (auto-école existante)\"\n isChecked={values.isDrivingSchoolBuying}\n onChange={handleChange}\n name=\"isDrivingSchoolBuying\"\n error={!!errors.isDrivingSchoolCreation}\n />\n </CheckboxRow>\n\n {errors.isDrivingSchoolCreation && <ErrorMessage>{errors.isDrivingSchoolCreation}</ErrorMessage>}\n </>\n);\n\nexport { IntentStep };\n","import React from 'react';\n\nimport { CheckboxRow, ErrorMessage, Question } from './FormCommonComponents';\nimport { Checkbox } from '../../fields/Checkbox';\nimport { ScreenProps } from '../constants/types';\n\nconst IncorporationStep = ({\n values, errors, touched, handleChange,\n}: ScreenProps) => (\n <>\n <Question>Vous allez avoir besoin de créer une société :</Question>\n <CheckboxRow>\n <Checkbox\n label=\"Je n’ai pas commencé les démarches\"\n isChecked={values.isIncorporationStarted}\n onChange={handleChange}\n name=\"isIncorporationStarted\"\n error={touched.isIncorporationStarted && !!errors.isIncorporationStarted}\n />\n </CheckboxRow>\n <CheckboxRow>\n <Checkbox\n label=\"La société est créée ! Les statuts sont déposés et je dispose du K-Bis\"\n isChecked={values.isIncorporationDone}\n onChange={handleChange}\n name=\"isIncorporationDone\"\n error={touched.isIncorporationStarted && !!errors.isIncorporationStarted}\n />\n </CheckboxRow>\n <CheckboxRow>\n <Checkbox\n label=\"Je rachète les parts d’une société existante\"\n isChecked={values.isExistingCompanyBuying}\n onChange={handleChange}\n name=\"isExistingCompanyBuying\"\n error={touched.isIncorporationStarted && !!errors.isIncorporationStarted}\n />\n </CheckboxRow>\n\n {touched.isIncorporationStarted && errors.isIncorporationStarted && <ErrorMessage>{errors.isIncorporationStarted}</ErrorMessage>}\n </>\n);\n\nexport { IncorporationStep };\n","import React from 'react';\n\nimport { Radio } from '@shared/Radio';\nimport {\n ErrorMessage, Question, QuestionRow, RadioRow,\n} from './FormCommonComponents';\nimport { ScreenProps } from '../constants/types';\n\nconst QualificationsStep = ({\n values, errors, touched, handleChange,\n}: ScreenProps) => (\n <>\n <QuestionRow>\n <Question>Vous avez un diplôme niveau licence (minimum) en droit, économie, gestion... ?</Question>\n <RadioRow>\n <Radio\n name=\"hasDiploma\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.hasDiploma === 'true'}\n />\n <Radio\n name=\"hasDiploma\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.hasDiploma === 'false'}\n />\n </RadioRow>\n {touched.hasDiploma && errors.hasDiploma && <ErrorMessage>{errors.hasDiploma}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Vous avez déjà effectué votre CQP RUESRC (anciennement capacité de gestion) ?</Question>\n <RadioRow>\n <Radio\n name=\"hasCqp\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.hasCqp === 'true'}\n />\n <Radio\n name=\"hasCqp\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.hasCqp === 'false'}\n />\n </RadioRow>\n {touched.hasCqp && errors.hasCqp && <ErrorMessage>{errors.hasCqp}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Vous êtes enseignant de la conduite (diplômé du BEECASER ou Titre Pro ECSR) ?</Question>\n <RadioRow>\n <Radio\n name=\"isAnInstructor\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isAnInstructor === 'true'}\n />\n <Radio\n name=\"isAnInstructor\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isAnInstructor === 'false'}\n />\n </RadioRow>\n {touched.isAnInstructor && errors.isAnInstructor && <ErrorMessage>{errors.isAnInstructor}</ErrorMessage>}\n </QuestionRow>\n </>\n);\n\nexport { QualificationsStep };\n","import React, { useCallback } from 'react';\n\nimport { Radio } from '@shared/Radio';\nimport {\n ErrorMessage, Question, QuestionRow, RadioRow,\n} from './FormCommonComponents';\nimport { DependantRadioChangeParamsType, ScreenProps } from '../constants/types';\n\nconst LocationStep = ({\n values, errors, touched, handleChange, handleLocationPresenceChange, setFieldValue,\n}: ScreenProps) => {\n const handleLocationFoundChange = useCallback((evt: React.ChangeEvent<HTMLInputElement>): void => handleLocationPresenceChange({ evt, handleChange, setFieldValue } as DependantRadioChangeParamsType), []);\n\n return (\n <>\n <QuestionRow>\n <Question>Vous avez déjà trouvé le local ?</Question>\n <RadioRow>\n <Radio\n name=\"isLocationFound\"\n onChange={handleLocationFoundChange}\n onClick={handleLocationFoundChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isLocationFound === 'true'}\n />\n <Radio\n name=\"isLocationFound\"\n onChange={handleLocationFoundChange}\n onClick={handleLocationFoundChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isLocationFound === 'false'}\n />\n </RadioRow>\n {touched.isLocationFound && errors.isLocationFound && <ErrorMessage>{errors.isLocationFound}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Est-ce qu’il est ERP ?</Question>\n <RadioRow>\n <Radio\n name=\"isErp\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isErp === 'true'}\n disabled={values.isLocationFound === 'false'}\n />\n <Radio\n name=\"isErp\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isErp === 'false'}\n disabled={values.isLocationFound === 'false'}\n />\n </RadioRow>\n {touched.isErp && errors.isErp && <ErrorMessage>{errors.isErp}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Est-ce qu’il est assuré ?</Question>\n <RadioRow>\n <Radio\n name=\"isInsured\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isInsured === 'true'}\n disabled={values.isLocationFound === 'false'}\n />\n <Radio\n name=\"isInsured\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isInsured === 'false'}\n disabled={values.isLocationFound === 'false'}\n />\n </RadioRow>\n {touched.isInsured && errors.isInsured && <ErrorMessage>{errors.isInsured}</ErrorMessage>}\n </QuestionRow>\n </>\n );\n};\n\nexport { LocationStep };\n","import React, { useCallback } from 'react';\n\nimport { Radio } from '@shared/Radio';\nimport {\n ErrorMessage, Question, QuestionRow, RadioRow,\n} from './FormCommonComponents';\nimport { DependantRadioChangeParamsType, ScreenProps } from '../constants/types';\n\nconst VehiclesStep = ({\n values, errors, touched, handleChange, setFieldValue, handleVehiclePresenceChange,\n}: ScreenProps) => {\n const handleHasEquippedVehicleChange = useCallback((evt: React.ChangeEvent<HTMLInputElement>): void => handleVehiclePresenceChange({ evt, handleChange, setFieldValue } as DependantRadioChangeParamsType), []);\n\n return (\n <>\n <QuestionRow>\n <Question>Vous avez déjà un véhicule équipé de doubles commandes ?</Question>\n <RadioRow>\n <Radio\n name=\"hasEquippedVehicle\"\n onChange={handleHasEquippedVehicleChange}\n onClick={handleHasEquippedVehicleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.hasEquippedVehicle === 'true'}\n />\n <Radio\n name=\"hasEquippedVehicle\"\n onChange={handleHasEquippedVehicleChange}\n onClick={handleHasEquippedVehicleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.hasEquippedVehicle === 'false'}\n />\n </RadioRow>\n {touched.hasEquippedVehicle && errors.hasEquippedVehicle\n && <ErrorMessage>{errors.hasEquippedVehicle}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Est-ce qu’il est assuré ?</Question>\n <RadioRow>\n <Radio\n name=\"isVehicleInsured\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isVehicleInsured === 'true'}\n disabled={values.hasEquippedVehicle === 'false'}\n />\n <Radio\n name=\"isVehicleInsured\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isVehicleInsured === 'false'}\n disabled={values.hasEquippedVehicle === 'false'}\n />\n </RadioRow>\n {touched.isVehicleInsured && errors.isVehicleInsured && <ErrorMessage>{errors.isVehicleInsured}</ErrorMessage>}\n </QuestionRow>\n </>\n );\n};\n\nexport { VehiclesStep };\n","import React from 'react';\n\nimport { CustomReactSelect } from '@shared/fields/CustomReactSelect';\nimport { Radio } from '@shared/Radio';\nimport {\n ErrorMessage, Question, QuestionRow, RadioRow,\n} from './FormCommonComponents';\nimport { ScreenProps } from '../constants/types';\n\nconst RestInfoStep = ({\n values, errors, touched, handleChange, departments, setFieldValue, setTouched, isDepartmentsDataLoading,\n}: ScreenProps) => {\n const departmentOptions = departments.map((department) => ({ label: department.name, value: department.name }));\n\n return (\n <>\n <QuestionRow>\n <Question>Avez-vous déjà commencé les démarches en vue de la demande d’agrément ?</Question>\n <RadioRow>\n <Radio\n name=\"isAgreementRequested\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"true\"\n label=\"Oui\"\n checked={values.isAgreementRequested === 'true'}\n />\n <Radio\n name=\"isAgreementRequested\"\n onChange={handleChange}\n onClick={handleChange}\n value=\"false\"\n label=\"Non\"\n checked={values.isAgreementRequested === 'false'}\n />\n </RadioRow>\n {touched.isAgreementRequested && errors.isAgreementRequested && <ErrorMessage>{errors.isAgreementRequested}</ErrorMessage>}\n </QuestionRow>\n <QuestionRow>\n <Question>Dans quel département souhaitez-vous ouvrir ou reprendre une auto-école ?</Question>\n <CustomReactSelect\n name=\"departmentName\"\n options={departmentOptions}\n onChange={(option) => setFieldValue('departmentName', option.value)}\n value={departmentOptions.find((option) => values.departmentName === option.value)}\n onBlur={() => setTouched({ departmentName: true })}\n hasError={touched.departmentName && !!errors.departmentName}\n isLoading={isDepartmentsDataLoading}\n />\n {touched.departmentName && errors.departmentName && <ErrorMessage>{errors.departmentName}</ErrorMessage>}\n </QuestionRow>\n </>\n );\n};\n\nexport { RestInfoStep };\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { BadgeBody, BadgeTitle } from '../../common/Badge';\nimport { LINKS_COLOR } from '../../../theme';\nimport { SCREEN_TITLES } from '../constants/constants';\nimport { FormState } from '../constants/enums';\n\nconst FormIntro = styled.p`\n margin: 0 0 32px;\n`;\n\nconst StepsInfo = styled.div`\n color: ${LINKS_COLOR};\n margin: 32px 0 16px;\n font-size: 18px;\n letter-spacing: 0.2px;\n`;\n\ntype ProjectStepsIntroProps = {\n projectStepsAmount: number;\n screenNumber: number;\n activeScreen: FormState;\n};\n\nconst ProjectStepsIntro = ({ projectStepsAmount, screenNumber, activeScreen }: ProjectStepsIntroProps) => (\n <>\n <BadgeTitle>\n {activeScreen === FormState.PersonalInfo\n ? 'C’est presque fini !'\n : 'Dites nous en plus sur votre projet !'}\n </BadgeTitle>\n <BadgeBody>\n <FormIntro>\n {activeScreen === FormState.PersonalInfo\n ? 'Laissez nous vos coordonnées nous allons vous préparer une offre sur-mesure en fonction des informations que vous nous avez fournies.'\n : 'Pour pouvoir vous aider au mieux et vous proposer un accompagnement sur-mesure, nous allons avoir besoin d’en savoir un peu plus sur vous !'}\n </FormIntro>\n </BadgeBody>\n {activeScreen !== FormState.PersonalInfo && <StepsInfo>{`Étape ${screenNumber} sur ${projectStepsAmount} : ${SCREEN_TITLES[activeScreen]}`}</StepsInfo>}\n </>\n);\n\nexport { ProjectStepsIntro };\n","import React from 'react';\nimport { connect, FormikContextType } from 'formik';\nimport styled from 'styled-components';\n\nimport { FormState } from '../constants/enums';\nimport { DependantRadioChangeParamsType, FormValues } from '../constants/types';\nimport { SCREENS } from '../constants/constants';\nimport Btn from '../../buttons/Btn';\nimport { ProjectStepsIntro } from './ProjectStepsIntro';\nimport { DepartmentsType } from '../../../api/departments_api';\nimport media from '../../../utils/mediaQueries';\n\nconst Buttons = styled.div`\n display: flex;\n justify-content: space-between;\n margin-top: 48px;\n flex-direction: row-reverse;\n\n ${media.mobile`\n margin-top: 32px;\n `}\n`;\n\ntype FormComponentProps = {\n activeScreen: FormState;\n isLastScreen: boolean;\n isFirstScreen: boolean;\n handleBackButtonClick(): void;\n screenNumber: number;\n projectStepsAmount: number;\n departments: DepartmentsType[];\n isDepartmentsDataLoading: boolean;\n handleLocationPresenceChange({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void;\n handleVehiclePresenceChange({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void;\n};\n\ntype FormikProps = {\n formik: FormikContextType<FormValues>;\n};\n\nconst FormComponent = (props: FormComponentProps & FormikProps) => {\n const {\n formik, activeScreen, isFirstScreen, isLastScreen, handleBackButtonClick, screenNumber, projectStepsAmount,\n departments, isDepartmentsDataLoading, handleLocationPresenceChange, handleVehiclePresenceChange,\n } = props;\n const {\n handleSubmit, isSubmitting,\n } = formik;\n\n const Screen = SCREENS[activeScreen];\n\n return (\n <form onSubmit={handleSubmit}>\n <ProjectStepsIntro screenNumber={screenNumber} projectStepsAmount={projectStepsAmount} activeScreen={activeScreen} />\n\n <Screen\n departments={departments}\n isDepartmentsDataLoading={isDepartmentsDataLoading}\n handleLocationPresenceChange={handleLocationPresenceChange}\n handleVehiclePresenceChange={handleVehiclePresenceChange}\n {...formik}\n />\n <Buttons>\n <Btn\n type=\"submit\"\n disabled={isSubmitting}\n text={isLastScreen\n ? 'Envoyer'\n : 'Suivant'}\n />\n {!isFirstScreen && <Btn type=\"button\" onClick={() => handleBackButtonClick()} outlined text=\"Retour\" />}\n </Buttons>\n </form>\n );\n};\n\nconst Form: React.ComponentType<FormComponentProps> = connect(FormComponent);\n\nexport { Form };\n","import React from 'react';\nimport { Formik, FormikHelpers } from 'formik';\nimport styled from 'styled-components';\n\nimport { Badge } from '../../common/Badge';\nimport { Form } from './Form';\nimport { DependantRadioChangeParamsType, FormValues } from '../constants/types';\nimport { FormState } from '../constants/enums';\nimport { validationSchema, initialValues } from '../constants/constants';\nimport { DepartmentsType } from '../../../api/departments_api';\nimport media from '../../../utils/mediaQueries';\n\nconst Container = styled(Badge)`\n max-width: 760px;\n margin: 48px auto;\n padding: 56px 98px 48px;\n font-size: 18px;\n letter-spacing: 0.2px;\n \n ${media.mobile`\n margin: 24px 8px 0;\n padding: 20px 24px 16px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n `}\n`;\n\ntype OpenDrivingSchoolFormComponentProps = {\n handleSubmit(values: FormValues, {\n setErrors, setTouched, setSubmitting, setStatus,\n }: FormikHelpers<FormValues>): Promise<void>;\n activeScreen: FormState;\n isLastScreen: boolean;\n isFirstScreen: boolean;\n handleBackButtonClick(): void;\n screenNumber: number;\n projectStepsAmount: number;\n departments: DepartmentsType[];\n isDepartmentsDataLoading: boolean;\n handleLocationPresenceChange({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void;\n handleVehiclePresenceChange({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void;\n};\n\nconst OpenDrivingSchoolFormComponent = (props: OpenDrivingSchoolFormComponentProps) => {\n const {\n handleSubmit, activeScreen, isLastScreen, isFirstScreen, handleBackButtonClick, screenNumber,\n projectStepsAmount, departments, isDepartmentsDataLoading, handleLocationPresenceChange,\n handleVehiclePresenceChange,\n } = props;\n\n return (\n <Container>\n <Formik\n initialValues={initialValues}\n validationSchema={validationSchema[activeScreen]}\n onSubmit={handleSubmit}\n >\n <Form\n activeScreen={activeScreen}\n isLastScreen={isLastScreen}\n isFirstScreen={isFirstScreen}\n handleBackButtonClick={handleBackButtonClick}\n screenNumber={screenNumber}\n projectStepsAmount={projectStepsAmount}\n departments={departments}\n isDepartmentsDataLoading={isDepartmentsDataLoading}\n handleLocationPresenceChange={handleLocationPresenceChange}\n handleVehiclePresenceChange={handleVehiclePresenceChange}\n />\n </Formik>\n </Container>\n );\n};\n\nexport { OpenDrivingSchoolFormComponent };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { FormikHelpers } from 'formik';\nimport { observer } from 'mobx-react';\n\nimport { OpenDrivingSchoolFormComponent } from './OpenDrivingSchoolFormComponent';\nimport { FormState } from '../constants/enums';\nimport { DependantRadioChangeParamsType, FormValues } from '../constants/types';\nimport { SCREENS, SCREENS_TRANSITIONS } from '../constants/constants';\nimport stores from '../../../stores';\n\nconst OpenDrivingSchoolFormContainer = observer(() => {\n const [activeScreen, setActiveScreen] = useState(FormState.Intent);\n const [screenNumber, updateScreenNumber] = useState(1);\n const isFirstScreen = !SCREENS_TRANSITIONS[activeScreen].prev;\n const isLastScreen = !SCREENS_TRANSITIONS[activeScreen].next;\n const projectStepsAmount = Object.keys(SCREENS).length - 1;\n\n const { openDrivingSchoolStore } = stores;\n const {\n isDepartmentsDataLoading, departments, applicant,\n } = openDrivingSchoolStore;\n\n useEffect(() => {\n openDrivingSchoolStore.getDepartments();\n }, []);\n\n useEffect(() => {\n if (applicant.id) {\n // redirect once applicant is created\n window.location.href = `/formulaire/${applicant.id}/proposition`;\n }\n }, [applicant]);\n\n const onFormSubmit = async (values: FormValues, {\n setErrors, setTouched, setSubmitting, setStatus,\n }: FormikHelpers<FormValues>): Promise<void> => {\n if (isLastScreen) {\n await openDrivingSchoolStore.postNewApplicant({\n formData: values, setErrors, setSubmitting, setStatus,\n });\n } else {\n const nextScreen = SCREENS_TRANSITIONS[activeScreen].next;\n setActiveScreen(nextScreen);\n updateScreenNumber(screenNumber + 1);\n setTouched({});\n setSubmitting(false);\n }\n };\n\n const onBackButtonClick = useCallback((): void => {\n const prevScreen = SCREENS_TRANSITIONS[activeScreen].prev;\n setActiveScreen(prevScreen);\n updateScreenNumber(screenNumber - 1);\n }, [activeScreen, screenNumber]);\n\n const onLocationPresenceChange = useCallback(({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void => {\n handleChange(evt);\n if (evt.target.value === 'false') {\n setFieldValue('isErp', 'false');\n setFieldValue('isInsured', 'false');\n }\n }, []);\n\n const onVehiclePresenceChange = useCallback(({ evt, handleChange, setFieldValue }: DependantRadioChangeParamsType): void => {\n handleChange(evt);\n if (evt.target.value === 'false') {\n setFieldValue('isVehicleInsured', 'false');\n }\n }, []);\n\n return (\n <OpenDrivingSchoolFormComponent\n projectStepsAmount={projectStepsAmount}\n screenNumber={screenNumber}\n handleSubmit={onFormSubmit}\n handleBackButtonClick={onBackButtonClick}\n isFirstScreen={isFirstScreen}\n isLastScreen={isLastScreen}\n activeScreen={activeScreen}\n departments={departments}\n isDepartmentsDataLoading={isDepartmentsDataLoading}\n handleLocationPresenceChange={onLocationPresenceChange}\n handleVehiclePresenceChange={onVehiclePresenceChange}\n />\n );\n});\n\nexport { OpenDrivingSchoolFormContainer };\n","import React from 'react';\nimport { createRoot } from 'react-dom/client';\n\nimport { OpenDrivingSchoolFormContainer } from '../main-app/components/OpenDrivingSchoolForm';\n\ndocument.addEventListener('DOMContentLoaded', () => {\n const node = document.querySelector('#react-open-driving-school');\n if (node) {\n const root = createRoot(node);\n root.render(<OpenDrivingSchoolFormContainer />);\n }\n});\n","export default __webpack_public_path__ + \"5bd93ac737d3161965797e6618586ea6.svg\";","export default __webpack_public_path__ + \"43fcee2bfb9e25c610ee1a1475fa9c6d.svg\";","/* eslint-env browser */\nmodule.exports = typeof self == 'object' ? self.FormData : window.FormData;\n","// ES6 Map\nvar map\ntry {\n map = Map\n} catch (_) { }\nvar set\n\n// ES6 Set\ntry {\n set = Set\n} catch (_) { }\n\nfunction baseClone (src, circulars, clones) {\n // Null/undefined/functions/etc\n if (!src || typeof src !== 'object' || typeof src === 'function') {\n return src\n }\n\n // DOM Node\n if (src.nodeType && 'cloneNode' in src) {\n return src.cloneNode(true)\n }\n\n // Date\n if (src instanceof Date) {\n return new Date(src.getTime())\n }\n\n // RegExp\n if (src instanceof RegExp) {\n return new RegExp(src)\n }\n\n // Arrays\n if (Array.isArray(src)) {\n return src.map(clone)\n }\n\n // ES6 Maps\n if (map && src instanceof map) {\n return new Map(Array.from(src.entries()))\n }\n\n // ES6 Sets\n if (set && src instanceof set) {\n return new Set(Array.from(src.values()))\n }\n\n // Object\n if (src instanceof Object) {\n circulars.push(src)\n var obj = Object.create(src)\n clones.push(obj)\n for (var key in src) {\n var idx = circulars.findIndex(function (i) {\n return i === src[key]\n })\n obj[key] = idx > -1 ? clones[idx] : baseClone(src[key], circulars, clones)\n }\n return obj\n }\n\n // ???\n return src\n}\n\nexport default function clone (src) {\n return baseClone(src, [], [])\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>\n */\n'use strict'\n\nfunction Cache(maxSize) {\n this._maxSize = maxSize\n this.clear()\n}\nCache.prototype.clear = function () {\n this._size = 0\n this._values = Object.create(null)\n}\nCache.prototype.get = function (key) {\n return this._values[key]\n}\nCache.prototype.set = function (key, value) {\n this._size >= this._maxSize && this.clear()\n if (!(key in this._values)) this._size++\n\n return (this._values[key] = value)\n}\n\nvar SPLIT_REGEX = /[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,\n DIGIT_REGEX = /^\\d+$/,\n LEAD_DIGIT_REGEX = /^\\d/,\n SPEC_CHAR_REGEX = /[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,\n CLEAN_QUOTES_REGEX = /^\\s*(['\"]?)(.*?)(\\1)\\s*$/,\n MAX_CACHE_SIZE = 512\n\nvar pathCache = new Cache(MAX_CACHE_SIZE),\n setCache = new Cache(MAX_CACHE_SIZE),\n getCache = new Cache(MAX_CACHE_SIZE)\n\nvar config\n\nmodule.exports = {\n Cache: Cache,\n\n split: split,\n\n normalizePath: normalizePath,\n\n setter: function (path) {\n var parts = normalizePath(path)\n\n return (\n setCache.get(path) ||\n setCache.set(path, function setter(obj, value) {\n var index = 0\n var len = parts.length\n var data = obj\n\n while (index < len - 1) {\n var part = parts[index]\n if (\n part === '__proto__' ||\n part === 'constructor' ||\n part === 'prototype'\n ) {\n return obj\n }\n\n data = data[parts[index++]]\n }\n data[parts[index]] = value\n })\n )\n },\n\n getter: function (path, safe) {\n var parts = normalizePath(path)\n return (\n getCache.get(path) ||\n getCache.set(path, function getter(data) {\n var index = 0,\n len = parts.length\n while (index < len) {\n if (data != null || !safe) data = data[parts[index++]]\n else return\n }\n return data\n })\n )\n },\n\n join: function (segments) {\n return segments.reduce(function (path, part) {\n return (\n path +\n (isQuoted(part) || DIGIT_REGEX.test(part)\n ? '[' + part + ']'\n : (path ? '.' : '') + part)\n )\n }, '')\n },\n\n forEach: function (path, cb, thisArg) {\n forEach(Array.isArray(path) ? path : split(path), cb, thisArg)\n },\n}\n\nfunction normalizePath(path) {\n return (\n pathCache.get(path) ||\n pathCache.set(\n path,\n split(path).map(function (part) {\n return part.replace(CLEAN_QUOTES_REGEX, '$2')\n })\n )\n )\n}\n\nfunction split(path) {\n return path.match(SPLIT_REGEX) || ['']\n}\n\nfunction forEach(parts, iter, thisArg) {\n var len = parts.length,\n part,\n idx,\n isArray,\n isBracket\n\n for (idx = 0; idx < len; idx++) {\n part = parts[idx]\n\n if (part) {\n if (shouldBeQuoted(part)) {\n part = '\"' + part + '\"'\n }\n\n isBracket = isQuoted(part)\n isArray = !isBracket && /^\\d+$/.test(part)\n\n iter.call(thisArg, part, isBracket, isArray, idx, parts)\n }\n }\n}\n\nfunction isQuoted(str) {\n return (\n typeof str === 'string' && str && [\"'\", '\"'].indexOf(str.charAt(0)) !== -1\n )\n}\n\nfunction hasLeadingNumber(part) {\n return part.match(LEAD_DIGIT_REGEX) && !part.match(DIGIT_REGEX)\n}\n\nfunction hasSpecialChars(part) {\n return SPEC_CHAR_REGEX.test(part)\n}\n\nfunction shouldBeQuoted(part) {\n return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part))\n}\n","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\nvar hasElementType = typeof Element !== 'undefined';\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a)\n , arrB = isArray(b)\n , i\n , length\n , key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length)\n return false;\n\n for (i = length; i-- !== 0;)\n if (!hasProp.call(b, keys[i])) return false;\n // end fast-deep-equal\n\n // start react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element && b instanceof Element)\n return a === b;\n\n // custom handling for React\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n }\n // end react-fast-compare\n\n // fast-deep-equal index.js 2.0.1\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","var isProduction = process.env.NODE_ENV === 'production';\nfunction warning(condition, message) {\n if (!isProduction) {\n if (condition) {\n return;\n }\n\n var text = \"Warning: \" + message;\n\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n\n try {\n throw Error(text);\n } catch (x) {}\n }\n}\n\nexport default warning;\n","\n/**\n * Topological sorting function\n *\n * @param {Array} edges\n * @returns {Array}\n */\n\nmodule.exports = function(edges) {\n return toposort(uniqueNodes(edges), edges)\n}\n\nmodule.exports.array = toposort\n\nfunction toposort(nodes, edges) {\n var cursor = nodes.length\n , sorted = new Array(cursor)\n , visited = {}\n , i = cursor\n // Better data structures make algorithm much faster.\n , outgoingEdges = makeOutgoingEdges(edges)\n , nodesHash = makeNodesHash(nodes)\n\n // check for unknown nodes\n edges.forEach(function(edge) {\n if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {\n throw new Error('Unknown node. There is an unknown node in the supplied edges.')\n }\n })\n\n while (i--) {\n if (!visited[i]) visit(nodes[i], i, new Set())\n }\n\n return sorted\n\n function visit(node, i, predecessors) {\n if(predecessors.has(node)) {\n var nodeRep\n try {\n nodeRep = \", node was:\" + JSON.stringify(node)\n } catch(e) {\n nodeRep = \"\"\n }\n throw new Error('Cyclic dependency' + nodeRep)\n }\n\n if (!nodesHash.has(node)) {\n throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node))\n }\n\n if (visited[i]) return;\n visited[i] = true\n\n var outgoing = outgoingEdges.get(node) || new Set()\n outgoing = Array.from(outgoing)\n\n if (i = outgoing.length) {\n predecessors.add(node)\n do {\n var child = outgoing[--i]\n visit(child, nodesHash.get(child), predecessors)\n } while (i)\n predecessors.delete(node)\n }\n\n sorted[--cursor] = node\n }\n}\n\nfunction uniqueNodes(arr){\n var res = new Set()\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i]\n res.add(edge[0])\n res.add(edge[1])\n }\n return Array.from(res)\n}\n\nfunction makeOutgoingEdges(arr){\n var edges = new Map()\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i]\n if (!edges.has(edge[0])) edges.set(edge[0], new Set())\n if (!edges.has(edge[1])) edges.set(edge[1], new Set())\n edges.get(edge[0]).add(edge[1])\n }\n return edges\n}\n\nfunction makeNodesHash(arr){\n var res = new Map()\n for (var i = 0, len = arr.length; i < len; i++) {\n res.set(arr[i], i)\n }\n return res\n}\n"],"names":["styles","props","xmlns","viewBox","d","Container","styled","div","disabled","Label","label","checked","PALE_CORNFLOWER_BLUE","PALE_GRAY","fontSize","MAIN_BLUE","BLUE_GRAY","ALICE_BLUE","InputView","ZIRCON","Radio","name","onChange","onClick","onBlur","value","type","defaultProps","InputContainer","SelectContainer","width","Select","select","arrowDown","TEXT_COLOR","LIGHT_BLUE_GREY","FONT_FAMILY_MAIN","valid","icon","media","mobile","Option","option","ErrorMessage","Image","img","Combobox","Component","constructor","super","this","selectRef","React","render","placeholder","options","optionalLink","optionalText","tabIndex","errorMessage","dataTestId","src","alt","ref","map","item","key","id","matchOptionColor","isDisabled","isFocused","isSelected","selectStyles","control","selectProps","hasError","backgroundColor","SOLITUDE","borderRadius","borderColor","INPUT_BORDERS_COLOR_ERROR","INPUT_BORDERS_COLOR","padding","fontFamily","minHeight","input","color","SILVER","multiValue","multiValueLabel","multiValueRemove","COBALT","valueContainer","CustomReactSelect","defaultValue","inputBackgroundColor","customStyles","base","state","noOptionsMessage","loadingMessage","InputHeader","labelTextColor","Link","a","OptionalText","span","FieldLabel","shouldRenderLink","shouldRenderText","isEmpty","href","HiddenInput","isInSeparateMode","css","theme","colors","textColorMain","LIGHT_PALE_GREY","SwitcherItem","SeparateSwitcherItem","Input","switcherBackground","PALE_GREY","switcherColor","Switcher","items","activeItem","isMultipleChoiceAllowed","activeItemIcon","SwitcherItemElem","i","itemValue","isActive","Array","isArray","indexOf","htmlFor","undefined","MAIN_DARK","WHITE","LIGHT_PINK","WATERMELON","RAVEN","PALE_GRAY_TWO","GRAY_CHATEAU","FIRE_ENGINE_RED","MAIZE","SHAMROCK","CORAL_PINK","GREEN_BRIGHT","MEDIUM_AQUAMARINE","LIGHT_GRAY","BEIGE","SUCCESS_NOTIFICATION_BG","ALERT_NOTIFICATION_BG","PROMO_NOTIFICATION_BG","SUCCESS_NOTIFICATION_TEXT_COLOR","ALERT_NOTIFICATION_TEXT_COLOR","PROMO_NOTIFICATION_TEXT_COLOR","STARS_FILL_COLOR","HIGH_RATING_COLOR","MEDIUM_RATING_COLOR","LOW_RATING_COLOR","MAIN_IMAGE_HIGHLIGHT","ERROR_COLOR","SUCCESS_COLOR","MainButton","button","small","block","outlined","textColor","Btn","text","isLoading","className","spinnerColor","height","size","Badge","PageBadge","BadgeHeader","BadgeTitle","h2","BadgeSubtitle","p","NOTES_COLOR","BadgeBody","EmptyCheckbox","error","CheckboxView","CheckedCheckbox","CheckboxIcon","Checkbox","isChecked","inputTextColor","ErrorEmptySpace","Field","forwardRef","min","step","propTypes","PropTypes","Icon","eyeIcon","PasswordField","passwordRef","useRef","handleIconClick","useCallback","field","current","getAttribute","setAttribute","FormState","Question","QuestionRow","CheckboxRow","RadioRow","SCREENS","Intent","values","errors","handleChange","isDrivingSchoolCreation","isDrivingSchoolBuying","Incorporation","touched","isIncorporationStarted","isIncorporationDone","isExistingCompanyBuying","Qualifications","hasDiploma","hasCqp","isAnInstructor","Location","handleLocationPresenceChange","setFieldValue","handleLocationFoundChange","evt","isLocationFound","isErp","isInsured","Vehicles","handleVehiclePresenceChange","handleHasEquippedVehicleChange","hasEquippedVehicle","isVehicleInsured","RestInfo","departments","setTouched","isDepartmentsDataLoading","departmentOptions","department","isAgreementRequested","find","departmentName","PersonalInfo","handleBlur","firstname","lastname","email","phone","password","SCREENS_TRANSITIONS","next","prev","SCREEN_TITLES","initialValues","validationSchema","Yup","shape","test","obj","oneOf","nullable","when","is","then","required","matches","FormIntro","StepsInfo","LINKS_COLOR","ProjectStepsIntro","projectStepsAmount","screenNumber","activeScreen","Buttons","Form","connect","formik","isFirstScreen","isLastScreen","handleBackButtonClick","handleSubmit","isSubmitting","Screen","onSubmit","OpenDrivingSchoolFormComponent","OpenDrivingSchoolFormContainer","observer","useState","setActiveScreen","updateScreenNumber","Object","keys","length","openDrivingSchoolStore","stores","applicant","useEffect","getDepartments","window","location","onBackButtonClick","prevScreen","onLocationPresenceChange","target","onVehiclePresenceChange","async","setErrors","setSubmitting","setStatus","postNewApplicant","formData","nextScreen","document","addEventListener","node","querySelector","createRoot","module","exports","self","FormData","set","Map","_","Set","baseClone","circulars","clones","nodeType","cloneNode","Date","getTime","RegExp","clone","from","entries","push","create","idx","findIndex","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","err","Error","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOfType","exact","checkPropTypes","Cache","maxSize","_maxSize","clear","prototype","_size","_values","get","SPLIT_REGEX","DIGIT_REGEX","LEAD_DIGIT_REGEX","SPEC_CHAR_REGEX","CLEAN_QUOTES_REGEX","pathCache","setCache","getCache","normalizePath","path","split","part","replace","match","isQuoted","str","charAt","shouldBeQuoted","hasLeadingNumber","hasSpecialChars","setter","parts","index","len","data","getter","safe","join","segments","reduce","forEach","cb","thisArg","iter","isBracket","call","keyList","hasProp","hasOwnProperty","hasElementType","Element","equal","b","arrA","arrB","dateA","dateB","regexpA","regexpB","toString","$$typeof","message","console","warn","condition","toposort","nodes","edges","cursor","sorted","visited","outgoingEdges","arr","edge","has","add","makeOutgoingEdges","nodesHash","res","makeNodesHash","visit","predecessors","nodeRep","JSON","stringify","e","outgoing","child","delete","uniqueNodes"],"sourceRoot":""}