(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e40d56ca"],{"0ae1":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-container",{style:e.containerStyle,attrs:{id:"resend-confirmation-container",fluid:""}},[s("v-row",{attrs:{align:"center",justify:"center","no-gutters":"",wrap:""}},[s("v-col",{style:{width:"554px"},attrs:{id:"resend-confirmation-form-wrapper"}},[s("GroupLogo"),s("div",{staticClass:"mt-2 mb-2",style:{minHeight:"10px"}},[e.messages.error?s("v-alert",{staticClass:"text-center mt-10 mb-8 laas-body-2",style:e.alertStyles,attrs:{id:"resend-confirmation-error",color:"error"}},[e._v(" "+e._s(e.messages.error)+" ")]):e._e(),e.messages.success?s("v-alert",{staticClass:"text-center mt-10 mb-8 laas-body-2",style:e.alertStyles,attrs:{id:"resend-confirmation-success",color:"success"}},[e._v(" "+e._s(e.messages.success)+" ")]):e._e()],1),s("v-card",{staticClass:"mx-auto",style:e.formCardStyles,attrs:{id:"form-card",align:"center",justify:"center",color:e.STYLE_CONFIG.accentBackgroundColor}},[s("div",{staticClass:"laas-display-3 pb-2",style:{fontFamily:e.STYLIZED_FONT},attrs:{id:"resend-confirmation-header"}},[e._v(" "+e._s(e.copy.resendConfirmation)+" ")]),s("div",{staticClass:"laas-subtitle-1 pt-6 pb-1"},[e._v(" "+e._s(e.copy.sendLinkToResend)+" ")]),s("v-form",{ref:e.refLabels.form,staticClass:"global--custom-vuetify-form",attrs:{id:"resend-confirmation-form"},on:{submit:function(t){return t.preventDefault(),e.validate(t)}},model:{value:e.form.isValid,callback:function(t){e.$set(e.form,"isValid",t)},expression:"form.isValid"}},[s("v-text-field",{staticClass:"laas-body-1",style:e.inputFieldStyles,attrs:{label:e.form.labels.email,rules:e.rules.email,required:"",filled:"","data-test-id":"emailInput"},model:{value:e.form.values.email,callback:function(t){e.$set(e.form.values,"email",t)},expression:"form.values.email"}}),s("v-btn",{ref:e.refLabels.submitBtn,staticClass:"laas-button-1 text-uppercase mt-2",style:{color:e.STYLE_CONFIG.buttonTextColor,borderRadius:e.STYLE_CONFIG.roundedCorners?"4px":"0px"},attrs:{type:"submit",block:"",depressed:"","x-large":"",color:e.STYLE_CONFIG.buttonBackgroundColor}},[e._v(" "+e._s(e.copy.submit)+" ")])],1)],1)],1)],1)],1)},a=[],i=(s("d3b7"),s("498a"),s("ddb0"),s("5530")),o=s("2b0e"),n=s("2f62"),l=s("a469"),c=s("e8c1"),u=s("f04f"),m=s("c787"),d=s("89bd"),f=o["default"].extend({name:"ResendConfirmation",components:{GroupLogo:u["a"]},data:function(){return{refLabels:{form:"form",submitBtn:"submit-btn"},form:{isValid:!1,values:{email:""},labels:{email:"Email"}},copy:{resendConfirmation:"Resend Confirmation Link",sendLinkToResend:"We will send a link to your email to confirm your account",submit:"Submit",missingFields:"Please fill out missing fields.",confirmationSent:"Check your email for the confirmation code.",resendConfirmationError:"Failed to resend confirmation code. Please contact support.",emailMustBeValid:"Email must be valid."},messages:{error:"",success:""}}},methods:{validate:function(){this.vuetifyForm.validate()?(this.clearErrorMessage(),this.submit()):this.setErrorMessage(this.copy.missingFields)},submit:function(){var e=this;this.$store.dispatch("auth/resendConfirmation",{username:this.form.values.email.toLowerCase().trim()}).then((function(t){e.clearErrorMessage(),e.setSuccessMessage(e.copy.confirmationSent)})).catch((function(t){var s=t.message;e.clearErrorMessage(),m["a"].check(s).isMatch&&(s=m["a"].friendlyMessage),e.setErrorMessage(s)}))},clearErrorMessage:function(){this.messages.error=""},setErrorMessage:function(e){this.messages.error=e},setSuccessMessage:function(e){this.messages.success=e}},computed:Object(i["a"])({},Object(n["c"])([l["kb"],l["jb"],l["v"],l["U"],l["V"]]),{vuetifyForm:function(){var e=this.$refs.form;return Array.isArray(e)?e[0]:e},rules:function(){var e=this;return{email:[function(t){return c["a"].isValidEmail.validate(t)||e.copy.emailMustBeValid}]}},containerStyle:function(){return this.$vuetify.breakpoint.mdAndDown?this.PRE_AUTH_VIEW_STYLE_MOBILE:this.PRE_AUTH_VIEW_STYLE_DESKTOP},formStyles:function(){return Object(d["c"])(this.STYLE_CONFIG)},formCardStyles:function(){return Object(i["a"])({},this.formStyles.formCardStyles,{padding:this.$vuetify.breakpoint.mdAndUp?"40px":"30px"})},inputFieldStyles:function(){return this.formStyles.inputFieldStyles},alertStyles:function(){return this.formStyles.alertStyles}}),mounted:function(){}}),b=f,y=(s("34ff"),s("2877")),p=s("6544"),v=s.n(p),h=s("0798"),g=s("8336"),C=s("b0af"),S=s("62ad"),_=s("a523"),E=s("4bd4"),x=s("0fd9"),L=s("8654"),V=Object(y["a"])(b,r,a,!1,null,"5d77d15f",null);t["default"]=V.exports;v()(V,{VAlert:h["a"],VBtn:g["a"],VCard:C["a"],VCol:S["a"],VContainer:_["a"],VForm:E["a"],VRow:x["a"],VTextField:L["a"]})},"34ff":function(e,t,s){"use strict";var r=s("d721"),a=s.n(r);a.a},d721:function(e,t,s){}}]);
//# sourceMappingURL=chunk-e40d56ca.c0719edc.js.map