{"version":3,"file":"application-DGAg2III.js","sources":["../../../app/javascript/components/Guardianships/SignInUsernameAdapter.vue","../../../app/javascript/components/SignIn.vue","../../../app/javascript/services/OtpService.js","../../../app/javascript/services/ContactMethodOtpClient.js","../../../app/javascript/components/VerifyContact.vue","../../../app/javascript/components/VerifyContactRoot.js","../../../app/javascript/components/OtpForm.vue","../../../app/javascript/components/SignInRoot.js","../../../app/javascript/entrypoints/application.js"],"sourcesContent":["\n\n\n\n\n","\n\n\n\n","/**\n * Adapter class that provides a standard interface for requesting OTP codes and verifying submitted codes.\n * This allows us to make changes to the login page's backend communication method without changing the OTP form itself\n */\nexport class OtpService {\n constructor(client = null) {\n this.client = client;\n }\n usingClient(client) {\n this.client = client;\n return this;\n }\n\n requestNewOtp(user_id, contact_method) {\n this.assertClient();\n return this.client.requestNewOtp(user_id, contact_method);\n }\n\n verify(user_id, contact_method, otp) {\n this.assertClient();\n return this.client.verify(user_id, contact_method, otp);\n }\n\n assertClient() {\n if (!this.client) {\n throw new Error(\"No client set\");\n }\n }\n}\n\n/**\n * This client uses the legacy ERB / Turbo Login form to submit the OTP.\n */\nexport class LoginFormClient {\n constructor(formId) {\n if (!formId) {\n // Default form location.\n formId = document.getElementById('login-form-container').children[0].id\n }\n this.form = document.getElementById(formId);\n }\n\n requestNewOtp(userId, contactMethodName) {\n return Promise.reject(new Error(\"Not implemented\"));\n }\n\n verify(userId, contactMethodName, otp) {\n this.form.elements['user[otp_attempt]'].value = otp;\n this.form.elements['user[contact_method]'].value = contactMethodName;\n if (typeof this.form.requestSubmit == \"function\") {\n this.form.requestSubmit();\n }\n else {\n // Safari doesnt have requestSubmit, so we use this polyfill\n const submitter = document.createElement(\"input\");\n submitter.type = \"submit\";\n submitter.hidden = true;\n this.form.appendChild(submitter);\n submitter.click();\n this.form.removeChild(submitter);\n }\n // If the Plain HTML form doesnt return in 5000, then we know it failed.\n return new Promise((resolve, reject) => setTimeout(reject, 5000))\n }\n}\n\n/**\n * Standard async API client for OTP.\n */\nexport class OtpRestClient {\n constructor(client) {\n this.client = client;\n }\n requestNewOtp(user_id, contact_method) {\n const options = {\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n },\n };\n const payload = { user_id, contact_method };\n return this.client.post(\"/api/v1/users/mfa_code\", payload, options);\n }\n\n verify(userId, contactMethod, otp) {\n return Promise.reject(new Error(\"Not implemented\"));\n }\n}\n","/**\n * Standard async API client for Contact Method Verification OTP.\n */\nexport class ContactMethodOtpClient {\n constructor(client) {\n this.client = client;\n this.options = {\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n },\n };\n }\n requestNewOtp(user_id, contact_method) {\n return this.client.post(\n \"/contact_method/send_verification_code\",\n { id: user_id, contact_method },\n this.options\n );\n }\n\n // Unnecessary for now, but will be needed if we ever implement verify\n // as an async call\n verify(user_id, contact_method, otp) {\n throw \"Not implemented\"\n }\n}\n","\n\n\n\n","\nimport Notify from \"./Notify.vue\";\nimport VerifyContact from \"./VerifyContact.vue\";\n\nexport default (createApp) => {\n return () => {\n const signInContainer = document.getElementById('verify_vue_container');\n if (!signInContainer) {\n return;\n }\n\n const app = createApp({\n components: {\n notify: Notify,\n 'verify-contact': VerifyContact,\n },\n data() {\n return {}\n },\n mounted() {\n this.$clients.initializeClients();\n },\n });\n app.mount(\"#verify_vue_container\")\n return app\n }\n}\n","\n\n\n\n","import OtpForm from './OtpForm.vue';\nimport Notify from \"./Notify.vue\";\nimport SignIn from \"./SignIn.vue\";\n\nexport default (createApp) => {\n return () => {\n const signInContainer = document.getElementById('login_vue_container');\n if (!signInContainer) {\n console.warn(\"No login container found\")\n return;\n }\n const app = createApp({\n data() {\n return {\n emailValue: '',\n passwordValue: '',\n passwordConfirmValue: '',\n showValidationMessage: false,\n };\n },\n components: {\n 'sign-in': SignIn,\n 'otp-form': OtpForm,\n notify: Notify,\n },\n mounted() {\n this.$clients.initializeClients();\n this.displayLoginForm();\n },\n methods: {\n displayLoginForm () {\n const loginLoading = document.getElementById('login-form-loading');\n const loginContainer = document.getElementById('login-form-container');\n\n if(loginLoading) {\n loginLoading.classList.add(\"display-none\")\n }\n\n if(loginContainer) {\n loginContainer.classList.remove(\"display-none\")\n }\n }\n },\n });\n app.mount('#login_vue_container')\n }\n}\n","import { createApp } from 'vue'\nimport Vuelidate from '@vuelidate/core';\nimport Notifications from '@kyvg/vue3-notification'\nimport OtpInput from \"vue3-otp-input\";\nimport SignInUsernameAdapter from \"../components/Guardianships/SignInUsernameAdapter.vue\";\nimport SignIn from \"../components/SignIn.vue\";\n\nimport VerifyContactRoot from \"../components/VerifyContactRoot\";\nimport SignInRoot from \"../components/SignInRoot\";\nimport ANotifications from '../components/Notifications/Notification.vue';\nimport api from '../plugins/api';\nimport analytics from \"../plugins/amplitude\";\n\nimport { plugin as Base } from '@apptegy/base';\nimport { plugin as Containers } from '@apptegy/containers';\nimport { plugin as Forms } from '@apptegy/forms';\nimport { plugin as Navigation } from '@apptegy/navigation';\nimport { plugin as Icons } from '@apptegy/icons';\n// import { plugin as Notification } from '@apptegy/notification';\nimport { plugin as Pagination } from '@apptegy/pagination';\nimport { plugin as Table } from '@apptegy/table';\n\nimport '@apptegy/styles';\nimport '@apptegy/base/dist/style.css';\nimport '@apptegy/containers/dist/style.css';\nimport '@apptegy/forms/dist/style.css';\nimport '@apptegy/navigation/dist/style.css';\nimport '@apptegy/pagination/dist/style.css';\nimport '@apptegy/table/dist/style.css';\nimport '@apptegy/table/dist/style.css';\nimport '@apptegy/notification/dist/style.css';\n\nimport { VueIntl } from '@apptegy/vue-intl';\n\nimport en from '../locale/en.json';\nimport es from '../locale/es.json';\n\nimport formsLocale from '@apptegy/forms/locale/en.json'\nimport notificationLocale from '@apptegy/notification/locale/en.json'\nimport baseLocale from '@apptegy/base/locale/en.json'\nimport containersLocale from '@apptegy/containers/locale/en.json';\nimport navigationLocale from '@apptegy/navigation/locale/en.json';\n\n// import configureVueErrorHandler from \"../utils/ConfigueVueErrorHandler\";\nimport Appsignal from \"../utils/Appsignal\";\n\nconst createCustomApp = (AppComponent)=> {\n const app = createApp(AppComponent)\n app.use(Base);\n app.use(Containers);\n app.use(Forms);\n app.use(Navigation);\n app.use(Icons);\n app.component('ANotifications',ANotifications);\n app.use(Pagination);\n app.use(Table);\n app.use(api);\n app.use(analytics);\n app.use(Vuelidate);\n app.use(Notifications, {componentName: 'kyvg-notification'})\n app.use(VueIntl, {\n defaultLocale: 'en',\n locales: [\n {\n code: 'en',\n messages: {\n ...en,\n dscl: { ...notificationLocale, ...baseLocale, ...formsLocale, ...containersLocale, ...navigationLocale },\n },\n },\n {\n code: 'es',\n messages: es\n },\n ],\n });\n app.component('v-otp-input', OtpInput);\n app.component('sign-in-username-adapter', SignInUsernameAdapter);\n app.component('sign-in', SignIn);\n return app;\n}\n/**\n * Legacy entrypoint for application\n * @todo: Move remaining Vue code from ERB into .vue only files. Then eliminate this section.\n */\ndocument.addEventListener('DOMContentLoaded', () => {\n const APPSIGNAL_ERROR_MONITORING_API_KEY = document.getElementById(\"appsignal-key\")?.value || null;\n Appsignal(APPSIGNAL_ERROR_MONITORING_API_KEY);\n // TODO: FIx this befote deploy\n // configureVueErrorHandler()\n SignInRoot(createCustomApp)()\n VerifyContactRoot(createCustomApp)()\n})\n"],"names":["_sfc_main","UsernameSelector","newVal","value","inputSelector","input","type","_createBlock","_component_username_selector","$data","_cache","$event","$options","parsePhoneNumber","referrer","isEdurooms","_a","_b","e","password","id","name","_c","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_withDirectives","_createElementVNode","_createVNode","_component_a_button","_withCtx","$props","_hoisted_4","_component_a_form_input","_ctx","_withModifiers","_renderSlot","_createCommentVNode","OtpService","client","user_id","contact_method","otp","LoginFormClient","formId","userId","contactMethodName","submitter","resolve","reject","OtpRestClient","options","payload","contactMethod","ContactMethodOtpClient","OtpCode","message","code","error","_component_otp_code","VerifyContactRoot","createApp","app","Notify","VerifyContact","preferredMethod","m","pn","response","_hoisted_5","_hoisted_7","_hoisted_9","_component_a_icon","_normalizeClass","_createTextVNode","_toDisplayString","_Fragment","_component_v_otp_input","_hoisted_6","_hoisted_8","_vShow","SignInRoot","SignIn","OtpForm","loginLoading","loginContainer","createCustomApp","AppComponent","Base","Containers","Forms","Navigation","Icons","ANotifications","Pagination","Table","api","analytics","Vuelidate","Notifications","VueIntl","en","notificationLocale","baseLocale","formsLocale","containersLocale","navigationLocale","es","OtpInput","SignInUsernameAdapter","APPSIGNAL_ERROR_MONITORING_API_KEY","Appsignal"],"mappings":"0lBAYA,MAAKA,GAAU,CACb,KAAM,2BACN,WAAY,CACV,iBAAAC,CACD,EACD,MAAO,CACL,YAAa,CACX,KAAM,OACN,SAAU,EACX,EACD,UAAW,CACT,KAAM,OACN,SAAU,EACX,CACF,EACD,MAAO,CACL,MAAO,CACL,kBAAmB,KACnB,uBAAwB,OAC1B,CACD,EACD,MAAO,CACL,kBAAmB,SAAUC,EAAQ,CACnC,KAAK,cAAcA,CAAM,CAC1B,CACF,EACD,QAAS,CACL,cAAcC,EAAO,CACnB,MAAMC,EAAgB,IAAI,KAAK,WAAW,gBAAgB,KAAK,SAAS,KAClEC,EAAQ,SAAS,cAAcD,CAAa,EAClDC,EAAM,MAAQF,CACf,EACH,sBAAsBG,EAAM,CAC1B,KAAK,uBAAyBA,EAC9B,KAAK,MAAM,eAAgBA,CAAI,CAChC,CACF,CACH,qEAhDEC,EAKqBC,EAAA,CANvB,WAEeC,EAAiB,kBAFhC,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAEeF,EAAiB,kBAAAE,GACzB,KAAWF,EAAsB,uBAClC,MAAM,GACL,cAAcG,EAAqB,oGC0CrCZ,GAAU,CACb,KAAM,SACN,WAAY,CACV,iBAAAC,CACD,EACD,MAAO,CACL,MAAO,CACL,MAAO,GACP,WAAY,QACZ,SAAU,GACV,uBAAwB,GACxB,aAAc,GACd,YAAa,KAEhB,EACD,MAAO,CACL,iBAAkB,CAChB,KAAM,QACN,QA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