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AAc,UACfA,CAAAA,GAAAA,MAAAA,CAAgB,CAI/B,MAAekE,MAAMA,EAAC,KChItB,WAAkB,mWCCH,SAASmB,IACpB,GAAM,CAAE1H,EAAS6B,EAAY,CAAGH,CAAAA,EAAAA,EAAAA,QAAAA,CAAQA,EAAC,GACnC,CAAEzB,EAASwB,EAAY,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,CAAQA,CAAC,IACnC,CAAExB,EAAK0B,EAAU,CAAGF,CAAAA,EAAAA,EAAAA,QAAAA,CAAQA,EAAC,GAkBnC,MAfAI,CAAAA,EAAAA,EAAAA,SAAAA,CAASA,CAAC,KACF5B,GACA6B,EADK,SACM,KACPH,GAAS,EACb,EAAG,KAGH3B,GACA8B,MADS,KACE,KACPN,GAAW,EACf,EAAG,IAGX,EAAG,CAAEvB,EAAKD,EAAS,EAEb,SACFD,UACAC,MACAC,aACA2B,aACAJ,WACAG,CACJ,CACJ","sources":["webpack://_N_E/./icons/IconClose.jsx","webpack://_N_E/./components/forms/Button/Button.module.scss","webpack://_N_E/./components/forms/Button/ButtonFeedback.jsx","webpack://_N_E/./icons/IconSpinner.jsx","webpack://_N_E/./components/feedback/Loader/index.jsx","webpack://_N_E/./lib/utils/removeSpaces.js","webpack://_N_E/./icons/IconInputError.jsx","webpack://_N_E/./components/forms/Input/index.jsx","webpack://_N_E/./components/forms/Input/Input.module.scss","webpack://_N_E/./components/forms/Button/index.jsx","webpack://_N_E/./components/feedback/Loader/Loader.module.scss","webpack://_N_E/./components/forms/Button/useButtonFeedback.js"],"sourcesContent":["\nexport function IconClose(props){\n return(\n \n \n \n )\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"Button_block__ylP4I\",\"autoHeight\":\"Button_autoHeight__h_wNQ\",\"noAnimate\":\"Button_noAnimate__AJN_B\",\"round\":\"Button_round__e3Hwr\",\"size__icon\":\"Button_size__icon__ta4z_\",\"size__full\":\"Button_size__full__HNRNA\",\"size__xs\":\"Button_size__xs__aI7fU\",\"size__sm\":\"Button_size__sm__j5gaa\",\"size__md\":\"Button_size__md__tJhPA\",\"size__lg\":\"Button_size__lg__jzMsP\",\"size__xl\":\"Button_size__xl__VeALW\",\"size__xxl\":\"Button_size__xxl__wSWbh\",\"color__white\":\"Button_color__white__ZvjVh\",\"color__transparent\":\"Button_color__transparent__LdZnv\",\"color__transparent-link\":\"Button_color__transparent-link__PfRBx\",\"color__green-outline\":\"Button_color__green-outline__gJhj3\",\"color__dark-outline\":\"Button_color__dark-outline__10XK7\",\"color__dove-outline\":\"Button_color__dove-outline__7Qfca\",\"color__indigo-outline\":\"Button_color__indigo-outline__SKLJb\",\"color__ocean-outline\":\"Button_color__ocean-outline__m7aNx\",\"color__ice-outline\":\"Button_color__ice-outline__sOt2a\"};","import Loader from \"@/components/feedback/Loader\";\n\n\nfunction ButtonFeedback({ loading, success, err, children }){\n return(\n <>\n {(loading || success || err) ? \n \n : \n <>{children}\n }\n \n )\n}\n\nexport default ButtonFeedback;","\nexport function IconSpinner(props){\n const { fill, width, height, className, isDark } = props;\n\n return(\n \n \n \n \n \n \n \n )\n}","\"use client\"\n\nimport Style from './Loader.module.scss';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useEffect, useState } from 'react';\nimport { IconSpinner } from '@/icons/IconSpinner';\n\n\nfunction Loader({ \n isLoading = false, \n isSuccessful = false, \n hasError = false, \n isLarge = false, \n children = null,\n isGreenCheck = false,\n isDark = false\n}){\n const [ success, setSuccess ] = useState(false)\n const [ error, setError ] = useState(false)\n const [ loading, setLoading ] = useState(false)\n\n\n useEffect(() => {\n setLoading(isLoading)\n\n if( isSuccessful || hasError ){\n setLoading(false)\n\n setSuccess(isSuccessful)\n setError(hasError)\n\n setTimeout(() => {\n setSuccess(false)\n setError(false)\n }, 2000)\n }\n\n \n return () => {\n setLoading(false)\n setSuccess(false)\n setError(false)\n }\n\n }, [isSuccessful, hasError, isLoading])\n\n\n return(\n <>\n {success || error || loading ?\n
\n {success &&
}\n {error &&
}\n\n {loading && (\n \n )}\n
\n :\n children\n }\n \n )\n}\n\n\nLoader.propTypes = {\n isLoading: PropTypes.bool,\n isSuccessful: PropTypes.bool,\n hasError: PropTypes.bool,\n isLarge: PropTypes.bool\n}\n\nexport default Loader;","/**\n * Removes ALL spaces from a string\n * @param {String} string \n * @returns a string with no spaces\n */\n\nexport default function removeSpaces(string = \"\"){\n return string.replace(/\\s/g, '');\n}\n","\nexport function IconInputError(props){\n return(\n \n \n \n )\n}","/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport removeSpaces from 'lib/utils/removeSpaces';\nimport Style from './Input.module.scss';\nimport { IconInputError } from '@/icons/IconInputError';\nimport { IconClose } from '@/icons/IconClose';\n\n\n\nconst Input = React.forwardRef(({\n type = \"text\",\n className,\n autocomplete,\n label,\n name,\n required = false,\n disabled,\n error = false,\n value,\n canClear,\n placeholder,\n min,\n max,\n accept,\n maxLength,\n minLength,\n readOnly,\n helpText,\n controlClass,\n unitText,\n onFocus = () => null,\n onBlur = () => null,\n onChange = () => null,\n onKeyUp = () => null,\n onInput = () => null,\n autoFocus = false,\n preText = null\n\n}, ref ) => {\n \n const inputRef = useRef()\n const [ newValue, setValue ] = useState(\"\")\n const [ inputType, setType ] = useState(type);\n const [ hasFocus, setHasFocus ] = useState(null)\n\n\n useEffect(() => {\n if( autoFocus ){ inputRef.current.focus() }\n \n }, [])\n\n\n useEffect(() => {\n if( value || value === 0 || value === \"\" ){\n setValue(value)\n setHasFocus(true)\n }\n \n }, [value])\n\n \n\n const togglePassword = () => {\n const newType = inputType === \"text\" ? \"password\" : \"text\"\n setType(newType)\n }\n\n\n const triggerEvents = (event) => {\n const value = inputRef.current.value;\n\n if( onChange ){ onChange(value, inputRef.current, event); }\n if( onKeyUp ){ onKeyUp(value, inputRef.current, event); }\n if( onInput ){ onInput(value, inputRef.current, event); }\n }\n\n\n function checkForValue(e){\n const hasValue = ref?.current?.value.length || e?.target?.value.length;\n const hasCurrentFocus = document.activeElement === inputRef.current;\n\n if( hasCurrentFocus && !hasValue ){\n setHasFocus(true)\n\n }else if( !hasCurrentFocus && hasValue ){\n setHasFocus(true)\n\n }else if( !hasCurrentFocus && !hasValue ){\n setHasFocus(false)\n }\n\n onBlur()\n }\n\n\n const inputChange = (e) => {\n triggerEvents(e)\n setValue(ref?.current?.value ?? e?.target?.value)\n checkForValue(e)\n }\n\n\n const clearInput = () => {\n inputRef.current.value = \"\";\n\n setValue(\"\")\n triggerEvents()\n }\n\n\n return(\n
\n
\n {preText && (\n
\n {preText}\n
\n )}\n\n {\n inputRef.current = node;\n\n if (typeof ref === 'function') {\n ref(node);\n\n } else if (ref) {\n ref.current = node;\n }\n }}\n id={removeSpaces(label)}\n autoComplete={autocomplete}\n type={inputType}\n name={name}\n className={clsx(Style.control, controlClass, error && Style.error__control)} \n required={required}\n placeholder={placeholder}\n value={newValue}\n accept={accept}\n disabled={disabled}\n onChange={inputChange}\n onInput={inputChange}\n onKeyUp={inputChange}\n onFocus={() => {\n onFocus()\n setHasFocus(true)\n }}\n onBlur={checkForValue}\n min={min}\n max={max}\n readOnly={readOnly}\n minLength={type === \"password\" ? 8 : minLength}\n maxLength={type === \"password\" ? 20 : maxLength}\n />\n\n {error && (\n \n )}\n\n\n {(canClear && hasFocus && type !== \"password\") && (\n \n )}\n \n\n {type === \"password\" && (\n \n )}\n\n\n {unitText && (\n \n {unitText}\n \n )}\n\n\n inputRef.current.focus()}\n className={clsx(Style.label, error && Style.error__label, !!unitText && Style.hasUnit)} \n htmlFor={removeSpaces(label)}\n >\n {label}\n \n\n\n
\n\n {helpText && \n

\n {helpText}\n

\n }\n
\n )\n})\n\nInput.displayName = 'Input';\n\n\nInput.propTypes = {\n type: PropTypes.oneOf([\"text\", \"email\", \"number\", \"time\", \"url\", \"password\", \"search\", \"tel\", \"date\" ]),\n label: PropTypes.string,\n placeholder: PropTypes.string,\n name: PropTypes.string,\n controlClass: PropTypes.string,\n value: PropTypes.any,\n onChange: PropTypes.func,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n readOnly: PropTypes.bool,\n helpText: PropTypes.string,\n canClear: PropTypes.bool,\n accept: PropTypes.string,\n error: PropTypes.bool,\n min: PropTypes.number,\n max: PropTypes.number,\n}\n\n\n\n\nexport default Input;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"control\":\"Input_control__hNWIt\",\"file\":\"Input_file__iQEKD\",\"active\":\"Input_active__WYu4O\",\"label\":\"Input_label__Gql5L\",\"help\":\"Input_help__1zng9\",\"block__select\":\"Input_block__select__cIx0D\",\"block\":\"Input_block__U2yiM\",\"errorIcon\":\"Input_errorIcon__JluuM\",\"flushRightIcon\":\"Input_flushRightIcon__fRr4q\",\"error__label\":\"Input_error__label__YUuBD\",\"error__control\":\"Input_error__control__6LJBw\",\"error__help\":\"Input_error__help__GiGRS\",\"hasUnit\":\"Input_hasUnit__8laLF\",\"controlGroup\":\"Input_controlGroup__4_lzQ\",\"togglePassword\":\"Input_togglePassword__dkWy4\",\"clearInput\":\"Input_clearInput__I9MTa\",\"searchIcon\":\"Input_searchIcon__RQt3P\",\"postFix\":\"Input_postFix__3MhPJ\",\"preText\":\"Input_preText__0qOpk\",\"preTextGroup\":\"Input_preTextGroup__3Xxtj\"};","\"use client\"\n\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Link from 'next/link';\n\nimport Style from './Button.module.scss';\nimport utils from 'styles/globals/utils.module.scss';\n\n\nfunction Button({ \n className, \n type, \n size, \n variant, \n color, \n isRound,\n name,\n isDisabled,\n children,\n href = \"\",\n noAnimate,\n icon,\n autoHeight,\n title,\n ...newProps\n }){\n\n const buttonStyle = clsx(\n className,\n Style.button,\n Style.block,\n noAnimate && Style.noAnimate,\n color === \"transparent\" ? Style[`color__${color?.class ?? color}`] : variant === \"outline\" ? \"\" : utils[`bg_${color?.class ?? color}`], \n (variant && color) ? Style[`color__${color?.class ?? color}-${variant}`] : variant === \"outline\" && Style[`color__dark-outline`],\n size && Style[`size__${size}`],\n icon && Style[`size__icon`],\n isRound && Style.round,\n autoHeight && Style.autoHeight,\n color === \"white\" && Style.color__white\n )\n\n\n // Nextjs Link preload button\n function LinkButton(){\n return (\n \n {children}\n \n );\n }\n\n\n // non link functional button\n function StandardButton(){\n return(\n \n )\n }\n\n\n // if you just need a fake button with no functionally\n function PsedoButton(){\n return(\n
\n {children}\n
\n )\n }\n\n\n\n function getType(){\n switch(type){\n case \"link\": return LinkButton();\n case \"psedo\": return PsedoButton();\n default: return StandardButton()\n }\n }\n\n\n return (\n <>\n {getType()}\n \n )\n}\n\n\nButton.propTypes = {\n color: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n size: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"xxl\", \"icon\", \"full\"]),\n isRound: PropTypes.bool,\n isDisabled: PropTypes.bool,\n variant: PropTypes.oneOf([\"outline\", \"link\"]),\n href: PropTypes.string,\n type: PropTypes.oneOf([\"link\", \"button\", \"submit\", \"reset\", \"psedo\"]),\n title: PropTypes.string,\n icon: PropTypes.bool,\n name: PropTypes.string,\n noAnimate: PropTypes.bool,\n autoHeight: PropTypes.bool,\n className: PropTypes.string\n};\n\n\nexport default Button;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"Loader_block___ga_t\",\"spinner\":\"Loader_spinner__2v_m1\",\"spin\":\"Loader_spin__pmSzK\",\"largeSpinner\":\"Loader_largeSpinner__Zn3BA\",\"greenCheckmark\":\"Loader_greenCheckmark__dwuJr\",\"draw\":\"Loader_draw__29Tbu\",\"checkmark\":\"Loader_checkmark__YncRO\",\"error\":\"Loader_error__wr2_0\",\"shake\":\"Loader_shake__4Llqb\"};","import { useEffect, useState } from \"react\"\n\nexport default function useButtonFeedback(){\n const [ loading, setLoading ] = useState(false)\n const [ success, setSuccess ] = useState(false)\n const [ err, setError ] = useState(false)\n\n\n useEffect(() => {\n if( err ){\n setTimeout(() => {\n setError(false)\n }, 3000)\n }\n\n if( success ){\n setTimeout(() => {\n setSuccess(false)\n }, 3000)\n }\n\n }, [ err, success ])\n\n return{\n loading,\n success,\n err,\n setLoading,\n setSuccess,\n setError\n }\n}"],"names":["IconClose","props","svg","viewBox","xmlSpace","aria-label","path","d","ButtonFeedback","loading","success","err","children","Loader","isLoading","isSuccessful","hasError","IconSpinner","fill","width","height","className","isDark","linearGradient","id","x1","y1","x2","y2","stop","offset","stopColor","isLarge","isGreenCheck","setSuccess","useState","error","setError","setLoading","useEffect","setTimeout","div","Style","role","clsx","propTypes","PropTypes","removeSpaces","string","replace","IconInputError","Input","React","ref","type","autocomplete","label","name","required","disabled","value","canClear","placeholder","min","max","accept","maxLength","minLength","readOnly","helpText","controlClass","unitText","onFocus","onBlur","onChange","onKeyUp","onInput","autoFocus","preText","inputRef","useRef","newValue","setValue","inputType","setType","hasFocus","setHasFocus","current","focus","triggerEvents","event","checkForValue","e","hasValue","length","target","hasCurrentFocus","document","activeElement","inputChange","input","node","autoComplete","button","onClick","clearInput","togglePassword","newType","span","htmlFor","p","displayName","Button","color","size","variant","isRound","isDisabled","href","noAnimate","icon","autoHeight","title","newProps","buttonStyle","class","utils","getType","LinkButton","Link","PsedoButton","useButtonFeedback"],"sourceRoot":""}