1"use strict";(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[100],{20100:function(e,s,t){t.r(s),t.d(s,{default:function(){return p}});var a=t(96913);const r={id:"forgot-username"},l={class:"row no-pad"},o={class:"col-12 col-lg-6"},n={key:0,class:"error mt-4"};function i(e,s,t,i,c,m){const d=(0,a.resolveComponent)("card");return(0,a.openBlock)(),(0,a.createElementBlock)("div",r,[(0,a.createElementVNode)("div",l,[s[7]||(s[7]=(0,a.createElementVNode)("div",{class:"col-3 hidden-md-down"},null,-1)),(0,a.createElementVNode)("div",o,[(0,a.createVNode)(d,{class:"p-4"},{default:(0,a.withCtx)(()=>[c.success?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[s[3]||(s[3]=(0,a.createElementVNode)("p",{class:"py-4"}," If your email matches an active CyRisk account, you will receive your username shortly. Please check your spam folder. ",-1)),(0,a.createElementVNode)("span",{id:"resend-email",name:"resend-email","aria-label":"resend email",role:"button",class:"blu-button",onClick:s[0]||(s[0]=(...e)=>m.reset&&m.reset(...e))},"Resend Email")],64)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)("form",{class:(0,a.normalizeClass)({shake:c.errorMessage}),onSubmit:s[2]||(s[2]=(0,a.withModifiers)((...e)=>m.onSubmit&&m.onSubmit(...e),["prevent"]))},[s[4]||(s[4]=(0,a.createElementVNode)("h1",{class:"mb-4"},"Forgot Username",-1)),s[5]||(s[5]=(0,a.createElementVNode)("p",{class:"mb-4"}," Please enter the email associated with your account. ",-1)),(0,a.withDirectives)((0,a.createElementVNode)("input",{name:"email",id:"email","aria-label":"enter your email",type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>c.email=e)},null,512),[[a.vModelText,c.email]]),s[6]||(s[6]=(0,a.createElementVNode)("button",{id:"submit-reset-username",type:"submit",class:"blu-button",name:"submit-reset-username","aria-label":"reset username"}," Submit ",-1))],34),c.errorMessage?((0,a.openBlock)(),(0,a.createElementBlock)("p",n,(0,a.toDisplayString)(c.errorMessage),1)):(0,a.createCommentVNode)("",!0)],64))],void 0,!0),_:1})]),s[8]||(s[8]=(0,a.createElementVNode)("div",{class:"col-3 hidden-md-down"},null,-1))])])}t(44114);var c=t(31078),m=t(38317),d={data(){return{email:"",errorMessage:null,success:!1}},components:{card:c.A},methods:{reset(){this.email="",this.errorMessage=null,this.success=!1},onSubmit(){this.errorMessage=null;const e={email:this.email};this.validateEmail({value:this.email})?m.A.call({action:"post",endpoint:"retrieve_username",params:e}).then(e=>{e.data&&e.data.message&&this.dialog(e.data.message),this.success=!0}).catch(e=>{e.response&&e.response.data.message&&(this.errorMessage=e.response.data.message),console.error(this.errorMessage),this.catchError("Error retrieving username.")}):this.errorMessage="Please enter a valid email address."}},created(){this.$store.getters.loggedIn&&this.$router.push("/")}},u=t(66262);const h=(0,u.A)(d,[["render",i],["__scopeId","data-v-7b4b73fb"]]);var p=h}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.