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EAAAA,EAAAA,MACG8B,UAAU,2BACV5B,SAAS,2BACTC,KACC,0BACC,2DAAyD4D,EAAAA,EAAAA,IACxD3C,MAEDhB,IACC,GAAIA,EAAO,CAKT,MAAM8C,EAAe9C,EAAMmD,WAAW,MAElCJ,EAAAA,EAAAA,IAAkC/C,GADlCgD,OAAOhD,GAEX,MACyB,qBAAhB8C,IACNE,OAAOC,MAAMH,IACdA,GAAe9B,EAGnB,OAAO,KAeF4C,IAXuBC,EAAAA,EAAAA,MAASC,WAEoBhE,SAC/D,8BAG4BF,EAAAA,EAAAA,MAASqB,QA9QtB,sBAgRf,6BAGmDnB,SACnD,+BAGkCF,EAAAA,EAAAA,MAASqB,QArRpB,gBAuRvB,4CAG+DnB,SAC/D,6CAGoCF,EAAAA,EAAAA,MACnCoB,IA9RyB,GA+RzBG,IA/RyB,GAiSyCrB","sources":["webpack://_N_E/./node_modules/@hookform/resolvers/dist/resolvers.module.js","webpack://_N_E/./node_modules/@hookform/resolvers/yup/dist/yup.module.js","webpack://_N_E/./src/components/partial/AuthModals/AuthModals.types.ts","webpack://_N_E/./src/components/partial/AuthModals/AuthModals.utils.tsx","webpack://_N_E/./src/components/partial/AuthModals/AuthModals.tsx","webpack://_N_E/./src/util/validators/validators.tsx"],"sourcesContent":["import{get as r,set as e}from\"react-hook-form\";var i=function(e,i){for(var a in i.fields){var f=i.fields[a];if(f&&f.ref&&\"reportValidity\"in f.ref){var t=r(e,a);f.ref.setCustomValidity(t&&t.message||\"\"),f.ref.reportValidity()}}},a=function(a,f){f.shouldUseNativeValidation&&i(a,f);var t={};for(var o in a){var s=r(f.fields,o);e(t,o,Object.assign(a[o],{ref:s&&s.ref}))}return t};export{a as toNestError,i as validateFieldsNatively};\n//# sourceMappingURL=resolvers.module.js.map\n","import{validateFieldsNatively as e,toNestError as t}from\"@hookform/resolvers\";import{appendErrors as r}from\"react-hook-form\";var o=function(o,n,a){return void 0===n&&(n={}),void 0===a&&(a={}),function(s,i,c){try{return Promise.resolve(function(t,r){try{var u=(n.context&&\"development\"===process.env.NODE_ENV&&console.warn(\"You should not used the yup options context. Please, use the 'useForm' context object instead\"),Promise.resolve(o[\"sync\"===a.mode?\"validateSync\":\"validate\"](s,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t){return c.shouldUseNativeValidation&&e({},c),{values:t,errors:{}}}))}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){return{values:{},errors:t((o=e,n=!c.shouldUseNativeValidation&&\"all\"===c.criteriaMode,o.inner.reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,a=o&&o[t.type];e[t.path]=r(t.path,n,e,t.type,a?[].concat(a,t.message):t.message)}return e},{})),c)};var o,n}))}catch(e){return Promise.reject(e)}}};export{o as yupResolver};\n//# sourceMappingURL=yup.module.js.map\n","export enum ModalTypes {\n login = \"login\",\n register = \"register\",\n passwordReset = \"passwordReset\",\n logout = \"logout\",\n}\n\nexport type ModalType = keyof typeof ModalTypes;\n","export enum Actions {\n LoginHide = \"LoginHide\",\n LoginShow = \"LoginShow\",\n PassResetHide = \"PassResetHide\",\n PassResetShow = \"PassResetShow\",\n PassResetSuccess = \"PassResetSuccess\",\n RegisterHide = \"RegisterHide\",\n RegisterShow = \"RegisterShow\",\n RegisterSuccess = \"RegisterSuccess\",\n SignUpHide = \"SignUpHide\",\n SignUpShow = \"SignUpShow\",\n}\n\nexport const initialState = {\n showLogin: false,\n showPassReset: false,\n showSignUp: false,\n showRegister: false,\n};\n\ntype State = typeof initialState;\n\ntype Action = { type: keyof typeof Actions };\n\nexport function reducer(state: State, action: Action): State {\n switch (action.type) {\n case Actions.LoginHide:\n return { ...state, showLogin: false };\n case Actions.LoginShow:\n return { ...initialState, showLogin: true };\n case Actions.PassResetHide:\n return { ...state, showLogin: true, showPassReset: false };\n case Actions.PassResetSuccess:\n return initialState;\n case Actions.PassResetShow:\n return { ...state, showPassReset: true };\n case Actions.RegisterHide:\n return { ...state, showSignUp: true, showRegister: false };\n case Actions.RegisterShow:\n return { ...initialState, showRegister: true };\n case Actions.RegisterSuccess:\n return initialState;\n case Actions.SignUpHide:\n return { ...state, showSignUp: false };\n case Actions.SignUpShow:\n return { ...initialState, showSignUp: true };\n default:\n return state;\n }\n}\n","/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport dynamic from \"next/dynamic\";\nimport React, { CSSProperties, useReducer } from \"react\";\n\nimport PasswordResetModal from \"#components/partial/PasswordResetModal/PasswordResetModal\";\nimport RegisterModal from \"#components/partial/RegisterModal/RegisterModal\";\nimport useAuth from \"#hooks/useAuth/useAuth\";\n\nimport { ModalType, ModalTypes } from \"./AuthModals.types\";\nimport { Actions, initialState, reducer } from \"./AuthModals.utils\";\n\nconst LoginModal = dynamic(\n () => import(\"#components/partial/LoginModal/LoginModal\"),\n);\n\n/**\n * This is an unstyled button that takes in the prop buttonType with\n * the following options:\n *\n * \"login\"\n * \"register\"\n * \"passwordReset\"\n * \"logout\"\n *\n * As well as an optional classname and inline styling which is self explanitory\n *\n * use example:\n *\n *
Click me to Log In
\n *