PageSourceSearch

https://insights.cyrisk.com/js/8761.5e53c2a4.js

js cyrisk.com collected 2026-10-04 13:27:37 UTC 6,108 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[8761],{98761:function(e,t,o){o.r(t),o.d(t,{default:function(){return x}});var a=o(96913),n=o(56563);const l={class:"d-flex justify-content-center align-items-center fill"},i={id:"logo",class:"mb-4"},c={key:0,src:n,class:"logo",alt:"logo"},r={key:1,class:"mb-4"},s={class:"row"},u=["value"],d=["value"],h=["value"],p=["value"],m=["value"],g=["value"],f={class:"error"};function y(e,t,o,n,y,v){return(0,a.openBlock)(),(0,a.createElementBlock)("div",l,[(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("form",{class:(0,a.normalizeClass)({shake:v.authError}),autocomplete:"off"},[y.small?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("img",c)),y.small?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("h5",r," Enter the 6-digit code from your authenticator app. ")),(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("input",{id:"firstBox",required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code0","aria-label":"authenticator app code 1",autocomplete:"code",onKeyup:t[0]||(t[0]=e=>v.codeInput(e,0)),value:y.codeO[0]},null,40,u),(0,a.createElementVNode)("input",{required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code1","aria-label":"authenticator app code 2",autocomplete:"code",onKeyup:t[1]||(t[1]=e=>v.codeInput(e,1)),value:y.codeO[1]},null,40,d),(0,a.createElementVNode)("input",{required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code2","aria-label":"authenticator app code 3",autocomplete:"code",onKeyup:t[2]||(t[2]=e=>v.codeInput(e,2)),value:y.codeO[2]},null,40,h),(0,a.createElementVNode)("input",{required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code3","aria-label":"authenticator app code 4",autocomplete:"code",onKeyup:t[3]||(t[3]=e=>v.codeInput(e,3)),value:y.codeO[3]},null,40,p),(0,a.createElementVNode)("input",{required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code4","aria-label":"authenticator app code 5",autocomplete:"code",onKeyup:t[4]||(t[4]=e=>v.codeInput(e,4)),value:y.codeO[4]},null,40,m),(0,a.createElementVNode)("input",{required:"true",type:"text",maxlength:"1",oninput:"\n              this.value = this.value\n                .replace(/[^0-9]/g, '')\n                .replace(/(\\..*)\\./g, '$1')\n            ",name:"code5","aria-label":"authenticator app code 6",autocomplete:"code",onKeyup:t[5]||(t[5]=e=>v.codeInput(e,5)),value:y.codeO[5]},null,40,g)]),(0,a.createElementVNode)("p",f,(0,a.toDisplayString)(y.error),1),y.fullcode&&!o.onsetup?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:2,class:"blu-button",type:"button",name:"mfa-login",id:"mfa-login","aria-label":"mfa login",onClick:t[6]||(t[6]=e=>v.mfaLogin())}," Submit ")):(0,a.createCommentVNode)("",!0),y.fullcode&&o.onsetup?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:3,class:"blu-button",type:"button",name:"mfa-login",id:"mfa-login","aria-label":"mfa login",onClick:t[7]||(t[7]=e=>v.mfaLogin())}," Register ")):(0,a.createCommentVNode)("",!0)],2)])])}o(44114);var v={name:"MFA",props:{onsetup:Boolean},data(){return{codeO:{},codeA:[],code:"",error:null,fullcode:!1,small:!1,error_count:0}},computed:{authError(){return!!this.error}},methods:{codeInput(e,t){e=e||window.event;const o=e.which?e.which:e.keyCode;8!=o&&"Backspace"!=o||(this.codeO[t]?delete this.codeO[t]:this.codeO[t-1]&&t-1>-1&&(delete this.codeO[t-1],this.$forceUpdate()),null!==e.target.previousSibling&&e.target.previousSibling.focus()),(o>47&&o<58||o>95&&o<106)&&(this.codeO[t]?null!==e.target.nextSibling&&(e.target.nextSibling.focus(),this.codeO[t+1]=e.key,this.$forceUpdate()):(this.codeO[t]=e.key,this.$forceUpdate()),null!==e.target.nextSibling&&e.target.nextSibling.focus()),this.validator()}
1,async mfaLogin(){await this.$store.dispatch("tryAuth",this.code).then(e=>{this.onsetup&&"success"===e?(this.dialog("The device was properly registered for MFA"),"mfasetup"===this.$route.name?this.$router.push({name:"home"}):this.$emit("registered")):this.onsetup&&"success"!==e?this.dialog("Failed registering your device, try again",!0):this.onsetup||"success"!==e?(this.error_count++,this.error_count>2?(this.error="Too many failed attempts, you are being logged out",setTimeout(()=>{this.$store.dispatch("logout")},5e3)):this.dialog("Authentication error",!0)):this.setUser()}).catch(e=>{console.log(e),this.dialog(`Failed registering your device (${e}), try again`,!0)})},setUser(){this.$store.dispatch("setUser").then(()=>{this.$router.push({name:"home"})}).catch(()=>{this.error="Error authenticating, you are being logged out. You may try again once the page refreshes",setTimeout(()=>{this.$store.dispatch("logout")},5e3)})},validator(){this.codeA=Object.values(this.codeO),6===this.codeA.length?(this.code=this.codeA.join(""),6===this.code.length?(this.fullcode=!0,this.onsetup&&this.$emit("code",this.fullcode),(0,a.nextTick)().then(()=>{document.getElementById("submitButton").focus()})):(this.fullcode=!1,this.$emit("code",this.fullcode),this.code="")):(this.fullcode=!1,this.$emit("code",this.fullcode),this.code="")}},created(){this.onsetup?this.small=!0:this.small=!1,(0,a.nextTick)().then(()=>{document.getElementById("firstBox")?.focus()})}},b=o(66262);const k=(0,b.A)(v,[["render",y],["__scopeId","data-v-84cf37d2"]]);var x=k},56563:function(e,t,o){e.exports=o.p+"img/cyrisk-logo.dark.38b690eb.png"}}]);

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.