PageSourceSearch

https://jobspace.co.nz/build/assets/emailVerification-92d77e75.js

js jobspace.co.nz collected 2026-09-24 10:56:42 UTC 2,468 bytes, 1 lines download raw bytes

1import{a as i}from"./axios-7738e096.js";document.addEventListener("alpine:init",()=>{Alpine.data("emailVerification",()=>({emailInputSection:document.getElementById("emailInputSection"),otpInputSection:document.getElementById("otpInputSection"),timerElement:document.getElementById("timer"),otpExpired:document.getElementById("otpExpired"),verificationSuccess:document.getElementById("verificationSuccess"),timeRemaining:0,formattedTime:"",interval:null,message:"",error_msg:!1,otp_message:"",otp_error:!1,enable_resend_time:!1,enable_resend_button:!1,submit_otp:!0,email:"",otp:"",timer:300,user_type:"",visible:!1,message:"",toastType:"success",resetOtp(){this.timer=300,this.getOtp()},getOtp(t=null){this.user_type=t,this.showLoader(),this.email=document.getElementById("verify_email").value,this.url="/auth/get-otp",i.post(this.url,{email:this.email,user_type:this.user_type}).then(e=>{this.otp="",document.getElementById("otp").value="",this.error_msg=!1,this.otp_message="",this.showToast(e.data.message||"success!"),this.otpInputSection.style.display="block",this.emailInputSection.style.display="none",this.startTimer(),this.hideLoader(),this.enable_resend_time=!0,this.enable_resend_button=!1,this.submit_otp=!0}).catch(e=>{this.error_msg=!0,this.message=e.response.data.message,this.hideLoader()})},submitOtp(t=!1){this.showLoader(),this.otp=document.getElementById("otp").value,this.url="/auth/submit-otp",i.post(this.url,{email:this.email,otp:this.otp,is_social_login:t}).then(e=>{e.data.error?(this.otp_error=!0,this.otp_message=e.data.message):window.location.href=e.data.data.url,this.hideLoader()}).catch(e=>{this.error_msg=!0,this.message=e.response.data.message,this.hideLoader()})},startTimer(){this.timeRemaining=300,this.updateFormattedTime(),this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.timeRemaining>0?(this.timeRemaining--,this.updateFormattedTime()):(clearInterval(this.interval),this.enable_resend_time=!1,this.enable_resend_button=!0)},1e3)},updateFormattedTime(){const t=Math.floor(this.timeRemaining/60),e=this.timeRemaining%60;this.formattedTime=`${String(t).padStart(2,"0")}:${String(e).padStart(2,"0")}`},showLoader(){const t=document.getElementById("loader");t.style.display="flex"},hideLoader(){const t=document.getElementById("loader");t.style.display="none"},showToast(t,e){this.message=t,this.visible=!0,this.toastType=e,setTimeout(()=>{this.hideToast()},3e3)},hideToast(){this.visible=!1}}))});

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.