PageSourceSearch

https://www.pravi.ai/build/assets/TwoFactorChallenge-BMLDrpiR.js

js pravi.ai collected 2026-10-05 12:27:51 UTC 2,471 bytes, 1 lines download raw bytes

1import{r as d,T as b,f as r,o as a,a as o,u as t,Z as C,w as m,b as i,F as n,m as l,y as _,n as w,E as V}from"./app-Bgf-TuPN.js";import{_ as h,A as T}from"./AuthenticationCardLogo-CTtmSRyl.js";import{_ as p}from"./InputError-DieKsIo1.js";import{_ as v}from"./InputLabel-CXCERCKx.js";import{_ as $}from"./PrimaryButton-pVz2pl-h.js";import{_ as g}from"./TextInput-BAF_66Wo.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const I={class:"mb-4 text-sm text-gray-600 dark:text-gray-400"},U={key:0},B={key:1},F={class:"flex items-center justify-end mt-4"},S={__name:"TwoFactorChallenge",setup(N){const c=d(!1),e=b({code:"",recovery_code:""}),f=d(null),y=d(null),k=async()=>{c.value^=!0,await V(),c.value?(f.value.focus(),e.code=""):(y.value.focus(),e.recovery_code="")},x=()=>{e.post(route("two-factor.login"))};return(A,s)=>(a(),r(n,null,[o(t(C),{title:"Two-factor Confirmation"}),o(T,null,{logo:m(()=>[o(h)]),default:m(()=>[i("div",I,[c.value?(a(),r(n,{key:1},[l(" Please confirm access to your account by entering one of your emergency recovery codes. ")],64)):(a(),r(n,{key:0},[l(" Please confirm access to your account by entering the authentication code provided by your authenticator application. ")],64))]),i("form",{onSubmit:_(x,["prevent"])},[c.value?(a(),r("div",B,[o(v,{for:"recovery_code",value:"Recovery Code"}),o(g,{id:"recovery_code",ref_key:"recoveryCodeInput",ref:f,modelValue:t(e).recovery_code,"onUpdate:modelValue":s[1]||(s[1]=u=>t(e).recovery_code=u),type:"text",class:"mt-1 block w-full",autocomplete:"one-time-code"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(e).errors.recovery_code},null,8,["message"])])):(a(),r("div",U,[o(v,{for:"code",value:"Code"}),o(g,{id:"code",ref_key:"codeInput",ref:y,modelValue:t(e).code,"onUpdate:modelValue":s[0]||(s[0]=u=>t(e).code=u),type:"text",inputmode:"numeric",class:"mt-1 block w-full",autofocus:"",autocomplete:"one-time-code"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(e).errors.code},null,8,["message"])])),i("div",F,[i("button",{type:"button",class:"text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 underline cursor-pointer",onClick:_(k,["prevent"])},[c.value?(a(),r(n,{key:1},[l(" Use an authentication code ")],64)):(a(),r(n,{key:0},[l(" Use a recovery code ")],64))]),o($,{class:w(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:m(()=>s[2]||(s[2]=[l(" Log in ")])),_:1,__:[2]},8,["class","disabled"])])],32)]),_:1})],64))}};export{S 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.