1import{h as V,T as $,Q as x,r as y,j as r,s as P,v as w,c as k,o as I,w as d,a,m as S,t as l,b as p,u as o,f as m}from"./app-BeqXpd_S.js";import{_ as f}from"./index-DizaTEBY.js";import{_ as B}from"./AuthLayout.vue_vue_type_script_setup_true_lang-D034rNao.js";import{_ as M}from"./TextInput.vue_vue_type_script_setup_true_lang-CK76eCpb.js";import"./index-DZYvRYJY.js";import"./HeaderLogo.vue_vue_type_script_setup_true_lang-yG0OqXTu.js";const N={class:"mb-4 text-sm text-gray-600"},T={class:"text-xs font-medium mt-2"},j={class:"mt-4 flex items-center justify-between"},z=V({__name:"VerifyPhone",setup(C){const e=$({otp:""}),n=x().props.auth.user,s=y(300);let c=null;const h=r(()=>{if(!(n!=null&&n.phone))return"";const t=n.phone.replace(/\D/g,""),i=t.slice(-2);return"*".repeat(t.length-2)+i}),v=r(()=>Math.floor(s.value/60)),_=r(()=>String(s.value%60).padStart(2,"0")),g=r(()=>e.otp.length===6),b=()=>{e.post(route("phone-verification.verify"))};return P(()=>{c=setInterval(()=>{s.value>0?s.value--:clearInterval(c)},1e3)}),w(()=>{clearInterval(c)}),(t,i)=>(I(),k(B,{title:"Email Verification"},{default:d(()=>[a("form",{onSubmit:S(b,["prevent"]),class:"w-1/2 mx-auto"},[a("div",N,l(t.$t("auth.verification.phone.message",{phone:h.value})),1),a("div",null,[p(M,{modelValue:o(e).otp,"onUpdate:modelValue":i[0]||(i[0]=u=>o(e).otp=u),label:"OTP",type:"text"},null,8,["modelValue"])]),a("div",T,l(t.$t("auth.verification.phone.expiresIn",{time:`${v.value}:${_.value}`})),1),a("div",j,[p(o(f),{loading:o(e).processing,disabled:o(e).processing||!g.value},{default:d(()=>[m(l(t.$t("auth.verification.phone.cta")),1)]),_:1},8,["loading","disabled"]),p(o(f),{href:t.route("phone-verification.notice"),loading:o(e).processing,disabled:o(e).processing,intent:"light"},{default:d(()=>[m(l(t.$t("auth.verification.phone.resend")),1)]),_:1},8,["href","loading","disabled"])])],32)]),_:1}))}});export{z as default};
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.