Path: blob/master/phs/ola-otpbypass/otp_files/sso-forgot-password.909d3b32.js.download
996 views
"use strict";Vue.component("sso-forgot-password",{_scopeId:"data-v-bc18a232",owCSS:".sso-forgot-password[data-v-bc18a232]{max-width:483px;margin:11px auto;text-align:center}.content[data-v-bc18a232]{border-radius:4px;background-color:#fff;border:1px solid #e5e5e5;padding:24px 8px;margin:0 4%}.content .title[data-v-bc18a232]{opacity:.8;font-size:18px;font-weight:500;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:-.5px;text-align:center;color:#000;width:100%;padding-bottom:16px}.content .message[data-v-bc18a232]{opacity:.5;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:-.2px;text-align:center;color:#000}.content .cta[data-v-bc18a232]{font-size:14px;line-height:1.21;letter-spacing:-.2px;text-align:center;color:#0680fc;padding:24px 0 0;cursor:pointer}.notice[data-v-bc18a232]{position:absolute;left:0;right:0;bottom:16px}.notice .title[data-v-bc18a232]{padding-bottom:8px}.notice .text[data-v-bc18a232],.notice .title[data-v-bc18a232]{opacity:.8;font-size:12px;line-height:1.5;letter-spacing:-.1px;text-align:center;color:#000}.notice .text a[data-v-bc18a232]{text-decoration:none;color:#0680fc}@media screen and (max-width:340px){.content .title[data-v-bc18a232]{font-size:17px}}@media screen and (min-width:500px){.sso-forgot-password[data-v-bc18a232]{position:relative;padding:25px;text-align:center;margin:8% auto 16px;width:372px;border-radius:4px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.1)}.content[data-v-bc18a232]{border:none}.content .title[data-v-bc18a232]{padding-bottom:24px}.notice[data-v-bc18a232]{bottom:-85px}}",render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.content?o("div",{staticClass:"sso-forgot-password"},[t.owRegistry["sso-header"]?o("sso-header",{attrs:{hideback:!1},on:{back:t.goBack}}):t._e(),t._v(" "),o("div",{staticClass:"content"},[o("div",{staticClass:"title"},[t._v(t._s(t.content.heading))]),t._v(" "),o("div",{staticClass:"message"},[t._v(t._s(t.content.message))]),t._v(" "),o("div",{staticClass:"cta",on:{click:t.triggerAction}},[t._v(t._s(t.content.cta))])]),t._v(" "),t.noticeContent?o("div",{staticClass:"notice"},[o("div",{staticClass:"title"},[t._v("Still facing issues?")]),t._v(" "),o("div",{staticClass:"text"},[t._v("Please contact"),o("a",{attrs:{href:t.links.email}},[t._v(t._s(t.noticeContent.email))])]),t._v(" "),o("div",{staticClass:"text"},[t._v("or call"),o("a",{attrs:{href:t.links.phone}},[t._v(t._s(t.noticeContent.phone))])])]):t._e(),t._v(" "),t.owRegistry["ow-ajax"]?o("ow-ajax",{attrs:{trigger:t.triggerApi,url:t.url,method:"POST",body:t.apiRequest},on:{success:t.getSuccessCB,error:t.getErrorCB}}):t._e(),t._v(" "),t.owRegistry["ow-top-loader"]&&t.ajaxInProgress?o("ow-top-loader",{attrs:{overlay:!0,show:t.ajaxInProgress}}):t._e()],1):t._e()},staticRenderFns:[],name:"ssoForgotPassword",data:function(){return{ajaxInProgress:!1,triggerApi:"dormant"}},props:{verificationId:String,passwordInfo:Object,selectedCountry:Object,mfaInfo:Object},computed:{content:function(){return this.passwordInfo&&this.passwordInfo.showLink?{heading:"Forgot Password?",message:"Get an email to"+this.email+"with a link to reset your password.",cta:"Send reset link"}:{heading:"Forgot Password?",message:"Get an automated IVR call. Answer the call to verify your identity.",cta:"Get a call"}},email:function(){return this.passwordInfo&&this.passwordInfo.email},url:function(){return this.passwordInfo&&this.passwordInfo.showLink?"/gatekeeper-api/forgot/password/public ":"/gatekeeper-api/ivr/trigger"},apiRequest:function(){return{"2faId":this.mfaInfo&&this.mfaInfo.mfaId,verificationId:this.verificationId,liteParams:window.params}},noticeContent:function(){if(this.selectedCountry&&this.selectedCountry.dialingCode)return window.owConfig.support[this.selectedCountry.dialingCode]},links:function(){return{email:"mailto:"+this.noticeContent.email,phone:"tel:"+this.noticeContent.phone}}},methods:{triggerAction:function(){this.ajaxInProgress=!0,this.triggerApi="fire"},getSuccessCB:function(t){t.response&&t.response.data?this.passwordInfo&&this.passwordInfo.showLink?(this.toast={show:!0,type:"success",content:"Email has been sent to your email ID"},this.$emit("showtoast",this.toast)):t.response.data&&-1<["waiting","initiated","WAITING","INITIATED"].indexOf(t.response.data.status)&&this.$emit("setstate",{screen:"verifycall",ivrInfo:t.response.data}):t.response&&t.response.error&&(this.toast={show:!0,type:"warning",content:t.response.error&&t.response.error.message||"Sorry, there was an error. Please try again."},this.$emit("showtoast",this.toast),this.$emit("setstate",{screen:"login"})),this.ajaxInProgress=!1,this.triggerApi="dormant"},getErrorCB:function(t){t.response&&t.response.error&&(this.toast={show:!0,type:"warning",content:t.response.error&&t.response.error.message},this.$emit("showtoast",this.toast)),this.ajaxInProgress=!1,this.triggerApi="dormant"},goBack:function(){this.$emit("setstate",{screen:"verifypwd"}),this.sendGAEvent&&this.sendGAEvent("SSO","back_button_forgot_pwd_page"),this.trackEvent&&this.trackEvent({eventName:"back_button_forgot_pwd_page",eventValue:this.trackingParams})}}}); //# sourceMappingURL=../sourcemap/components/sso-forgot-password.909d3b32.js.map