1import{r as f,o as a,c as d,a as u,u as m,b as s,w as b,t as r,i as p,E as h,G as g,F as y,Z as c,a6 as T}from"./app-a180d900.js";/* empty css */import{v as E}from"./vue3-tel-input-b5ebdf60.js";import{e as v}from"./vue3-otp-input.esm-4b645ac8.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"4704f974a03beefd3c80292b0596914074059962"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="7d453559-306b-4607-bc54-d215cd8fdc83",o._sentryDebugIdIdentifier="sentry-dbid-7d453559-306b-4607-bc54-d215cd8fdc83")})()}catch{}const I={class:"page-wrapper"},$={class:"d-flex flex-column align-items-center position-relative h-100 px-3 pt-5"},w={class:"mt-auto"},k={key:0,class:"alert alert-success d-flex my-3 my-sm-4"},x={class:"mb-0"},B={key:1,class:"alert alert-success d-flex my-3 my-sm-4"},_={class:"mb-0"},C={key:2,class:"alert alert-danger d-flex my-3 my-sm-4"},P={class:"mb-0"},O={key:3,class:"alert alert-danger d-flex my-3 my-sm-4"},S={class:"mb-0"},V={class:"border-0",style:{"margin-top":"56px"}},L={class:"form-floating mb-3"},D={class:"container d-flex justify-content-center align-items-center"},F={class:"position-relative"},N={class:"card p-2 text-center"},j={id:"otp",class:"inputs d-flex flex-row justify-content-center mt-2"},G={class:"mt-4"},A=["disabled"],M={class:"card-1"},R={class:"form-check",id:"resendToPhoneEnable"},Y={class:"form-check",id:"resendToEmailEnable"},z={style:{display:"none"},id:"resendToloading"},U={id:"text_loading"},Z={components:{VueTelInput:E.VueTelInput},data(){return{form:{code:null,disabled:!1,tow_fa_Status:"disabled",resendToPhone:null,sendingText:""}}},methods:{submit(){this.form.disabled=!0;let o=document.getElementById("spinner-border"),t=document.getElementById("text_loading");this.$inertia.post(route("dashboard.security.setting.code.off.verified"),this.form,{preserveScroll:!0,onFinish:()=>{t.innerText="Validate",o.classList.remove("spinner-border"),this.$page.props.flash.message?(window.location.href=route("dashboard"),setTimeout(function(){this.form.disabled=!1},7e3)):this.$page.props.errors.code?this.form.disabled=!1:this.form.disabled=!1},onBefore:()=>{o.classList.add("spinner-border"),t.innerText="Sending..."}})},handleOnComplete(o){this.form.code=o;let t=document.getElementById("spinner-border"),l=document.getElementById("text_loading");this.$inertia.post(route("dashboard.security.setting.code.off.verified"),this.form,{preserveScroll:!0,onFinish:()=>{l.innerText="Validate",t.classList.remove("spinner-border"),this.$page.props.flash.message?(window.location.href=route("dashboard"),setTimeout(function(){this.form.disabled=!1},7e3)):this.$page.props.errors.code?this.form.disabled=!1:this.form.disabled=!1},onBefore:()=>{t.classList.add("spinner-border"),l.innerText="Loading..."}})},resendToPhone(){let o=document.getElementById("resendToEmailEnable");o.style.display="none",this.form.sendingText=this.$page.props.auth.user.phone.substring(0,5)+"******"+this.$page.props.auth.user.phone.slice(-3),setTimeout(function(t){let l=document.getElementById("resendToPhoneEnable");l.style.display="none";let n=document.getElementById("resendToloading");n.style.display="block",window.location.href=route("dashboard.2fa.resend.mobile")},250)},resendToPhoneInput(){let o=document.getElementById("resendToEmailEnable");o.style.display="none",this.form.sendingText=this.$page.props.auth.user.phone.substring(0,5)+"******"+this.$page.props.auth.user.phone.slice(-3),setTimeout(function(){let t=document.getElementById("resendToPhoneEnable");t.style.display="none";let l=document.getElementById("resendToloading");l.style.display="block",window.location.href=route("dashboard.2fa.resend.mobile.off.resend")},250)},resendToEmail(){let o=document.getElementById("resendToPhoneEnable");o.style.display="none",this.form.sendingText=this.$page.props.auth.user.email.substring(0,2)+"******@"+this.$page.props.auth.user.email.substring(this.$page.props.auth.user.email.lastIndexOf("@")+1),setTimeout(function(){let t=document.getElementById("resendToEmailEnable");t.style.display="none";let l=document.getElementById("resendToloading");l.style.display="block",window.location.href=route("dashboard.2fa.resend.mobile.off.resend")},250)},resendToEmailInput(){let o=document.getElementById("resendToPhoneEnable");o.style.display="none",this.form.sendingText=this.$page.props.auth.user.email.substring(0,2)+"******@"+this.$page.props.auth.user.email.substring(this.$page.props.auth.user.email.lastIndexOf("@")+1),setTimeout(function(){let t=document.getElementById("resendToEmailEnable");t.style.display="none";let l=document.getElementById("resendToloading");l.style.display="block",window.location.href=route("dashboard.2fa.resend.email.off")},250)}},mounted(){document.body.classList.remove("bg-secondary")}},Q=Object.assign(Z,{__name:"EnterCodeGeneratorOff",props:{status:String,message:String,message_error:String},setup(o){const t=f(null),l=f("");return(n,e)=>(a(),d(y,null,[u(m(c),{title:"Two Factor Authentication"}),s("main",I,[s("div",$,[u(m(T),{class:"text-nav btn btn-icon bg-light border rounded-circle position-absolute top-0 end-0 zindex-2 p-0 mt-3 me-3 mt-sm-4 me-sm-4",href:"index.html","data-bs-toggle":"tooltip","data-bs-placement":"left",title:"Back to home"},{default:b(()=>e[6]||(e[6]=[s("i",{class:"ai-home"},null,-1)])),_:1,__:[6]}),e[23]||(e[23]=s("p",{class:"text-center"},null,-1)),s("div",w,[e[21]||(e[21]=s("h2",{class:"pt-4 pb-2 pb-lg-3"},"ð Enter the code",-1)),e[22]||(e[22]=s("p",{class:"pb-2"},"Your 6-digit code is on its way! Expect an SMS shortly to the following number:",-1)),n.$page.props.flash.message?(a(),d("div",k,[e[7]||(e[7]=s("i",{class:"ai-circle-info fs-xl me-2"},null,-1)),s("p",x,r(n.$page.props.flash.message)+" : "+r(n.$page.props.auth.user.phone.substring(0,5)+"******"+this.$page.props.auth.user.phone.slice(-3)),1)])):p("",!0),n.$page.props.flash.message_email_2fa?(a(),d("div",B,[e[8]||(e[8]=s("i",{class:"ai-circle-info fs-xl me-2"},null,-1)),s("p",_,r(n.$page.props.flash.message_email_2fa)+" : "+r(n.$page.props.auth.user.email.substring(0,2)+"******@"+n.$page.props.auth.user.email.substring(n.$page.props.auth.user.email.lastIndexOf("@")+1)),1)])):p("",!0),n.$page.props.flash.message_error?(a(),d("div",C,[e[9]||(e[9]=s("i",{class:"ai-circle-info fs-xl me-2"},null,-1)),s("p",P,r(n.$page.props.flash.message_error),1)])):p("",!0),n.$page.props.errors.code?(a(),d("div",O,[e[10]||(e[10]=s("i",{class:"ai-circle-info fs-xl me-2"},null,-1)),s("p",S,r(n.$page.props.errors.code),1)])):p("",!0),s("div",V,[s("form",{class:"card-body",onSubmit:e[5]||(e[5]=h((...i)=>n.submit&&n.submit(...i),["prevent"]))}
1,[s("div",L,[s("div",D,[s("div",F,[s("div",N,[s("h6",null,[e[11]||(e[11]=g("A code has been sent to ",-1)),e[12]||(e[12]=s("br",null,null,-1)),g(" to "+r(n.$page.props.auth.user.phone.substring(0,5)+"******"+n.$page.props.auth.user.phone.slice(-3)),1)]),e[14]||(e[14]=s("div",null,null,-1)),s("div",j,[u(m(v),{ref_key:"otpInput",ref:t,value:l.value,"onUpdate:value":e[0]||(e[0]=i=>l.value=i),"input-classes":"otp-input",separator:"-","num-inputs":6,"should-auto-focus":!0,"input-type":"letter-numeric",conditionalClass:["one","two","three","four","five","six","seven"],placeholder:["*","*","*","*","*","*"],onOnChange:n.handleOnChange,onOnComplete:n.handleOnComplete},null,8,["value","onOnChange","onOnComplete"])]),s("div",G,[s("button",{type:"submit",class:"btn btn-danger px-4 validate ms-3",disabled:n.form.disabled},e[13]||(e[13]=[s("span",{class:"spinner-border-sm me-2",role:"status","aria-hidden":"true",id:"spinner-border",style:{color:"#576071"}},null,-1),s("span",{id:"text_loading"},"Validate",-1)]),8,A)])]),s("div",M,[e[16]||(e[16]=s("br",null,null,-1)),e[17]||(e[17]=s("div",{class:"content d-flex justify-content-center align-items-center"},[s("span",null,"If didn't get the code we can resend other ways to sign in by :")],-1)),e[18]||(e[18]=s("br",null,null,-1)),s("div",R,[s("input",{class:"form-check-input",type:"radio",name:"radio",id:"ex-radio-1",onClick:e[1]||(e[1]=(...i)=>n.resendToPhoneInput&&n.resendToPhoneInput(...i))}),s("label",{class:"form-check-label",for:"ex-radio-1",onClick:e[2]||(e[2]=(...i)=>n.resendToPhone&&n.resendToPhone(...i))},r(n.$page.props.auth.user.phone.substring(0,5)+"******"+n.$page.props.auth.user.phone.slice(-3)),1)]),s("div",Y,[s("input",{class:"form-check-input",type:"radio",name:"radio",id:"ex-radio-2",onClick:e[3]||(e[3]=(...i)=>n.resendToEmailInput&&n.resendToEmailInput(...i))}),s("label",{class:"form-check-label",for:"ex-radio-2",onClick:e[4]||(e[4]=(...i)=>n.resendToEmail&&n.resendToEmail(...i))},r(n.$page.props.auth.user.email.substring(0,2)+"******@"+n.$page.props.auth.user.email.substring(n.$page.props.auth.user.email.lastIndexOf("@")+1)),1)]),s("div",z,[e[15]||(e[15]=s("span",{class:"spinner-border-sm me-2 spinner-border",role:"status","aria-hidden":"true",style:{color:"#576071"}},null,-1)),s("span",U," Sending ... to "+r(n.form.sendingText),1)])])])])]),e[19]||(e[19]=s("br",null,null,-1)),e[20]||(e[20]=s("br",null,null,-1))],32)])])])])],64))}});export{Q as default}; 2//# sourceMappingURL=EnterCodeGeneratorOff-2b087e93.js.map
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.