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AF,GAAAG,EAAA,EAAAA,EAAAH,EAAAG,IAAGD,CAAAA,CAAHC,EAAA,CAAAF,SAAA,CAAAE,EAAa,CACpC,OAAO,GACHD,EAAWE,MAAM,CACb,CAAC1D,EAAO2D,IAAc3D,GAAS2D,EAAUvC,GACzCwC,KAAAA,EAEZ,6ECvDAC,EAAAC,OAAA,EAAkB,44BCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./components/Button/index.js","webpack://_N_E/./components/FormInputField/FormInputField.js","webpack://_N_E/./components/FormInputField/index.js","webpack://_N_E/./components/JobEmailListSubscription/JobEmailListSubscription.js","webpack://_N_E/./components/JobEmailListSubscription/index.js","webpack://_N_E/./utils/validators.js","webpack://_N_E/./components/FormInputField/FormInputField.module.scss","webpack://_N_E/./components/JobEmailListSubscription/JobEmailListSubscription.module.scss"],"sourcesContent":["import Button from './Button';\n\nexport default Button;\n","import React, { useState, useEffect } from 'react';\nimport { Field } from 'react-final-form';\nimport { ucFirst } from '../../utils/caseconverters';\nimport classNames from 'classnames';\n\nimport styles from './FormInputField.module.scss';\n\nconst FormInputField = ({\n name = '',\n id = '',\n label = '',\n placeholder = '',\n helpText = '',\n type = '',\n disabled = false,\n required = false,\n readOnly = false,\n largeLabel = false,\n hasValue = false,\n validate = () => {},\n input = {},\n meta = {},\n modifiers = [],\n}) => {\n const [isFocused, setFocus] = useState(false);\n const [isFilled, setFilled] = useState(false);\n\n const hasError = (meta.error || meta.submitError) && meta.touched;\n const errorMessage = meta.error || meta.submitError;\n\n const shouldShowMessage = hasError || helpText;\n\n useEffect(() => {\n if (hasValue || !!placeholder) {\n setFilled(true);\n }\n }, []);\n\n const handleOnFocus = () => {\n setFocus(true);\n };\n\n const handleOnBlur = (event) => {\n let inputValue = event.target.value;\n if (inputValue.length !== 0 || placeholder !== '') {\n setFilled(true);\n } else {\n setFilled(false);\n }\n\n setFocus(false);\n };\n\n const classes = classNames(\n styles['FormInputField'],\n {\n [styles['FormInputField--Filled']]: isFilled,\n [styles['FormInputField--Focused']]: isFocused && !largeLabel,\n [styles['FormInputField--Required']]: required,\n [styles['FormInputField--Error']]: hasError,\n [styles['FormInputField--Disabled']]: disabled,\n [styles['FormInputField--LargeLabel']]: largeLabel,\n },\n modifiers.map(\n (modifier) => styles['FormInputField--' + ucFirst(modifier)] + ' '\n )\n );\n\n return (\n