PageSourceSearch

https://doityoursite.com/build/assets/TwoFactorChallenge-bcqQXvnB.js

js doityoursite.com collected 2026-10-07 20:40:18 UTC 2,483 bytes, 1 lines download raw bytes

1import{O as b,b as s,c as a,x as o,P as t,V as C,l as d,d as i,F as n,f as l,R as _,q as V,a as m,n as h}from"./vendor-BNegnQ7Z.js";import{A as w}from"./AuthenticationCard-BK-1lCZf.js";import{_ as $}from"./AuthenticationCardLogo-CjOIEu-o.js";import{_ as p}from"./InputError-DiJp18vr.js";import{_ as v}from"./InputLabel-ePxsh1H0.js";import{_ as F}from"./PrimaryButton-BhkKpf76.js";import{_ as g}from"./TextInput-oWfyZy8Q.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const I={class:"mb-4 text-sm text-gray-600"},T={key:0},U={key:1},B={class:"flex items-center justify-end mt-4"},O={__name:"TwoFactorChallenge",setup(N){const c=m(!1),e=b({code:"",recovery_code:""}),f=m(null),y=m(null),k=async()=>{c.value^=!0,await h(),c.value?(f.value.focus(),e.code=""):(y.value.focus(),e.recovery_code="")},x=()=>{e.post(route("two-factor.login"))};return(P,r)=>(s(),a(n,null,[o(t(C),{title:"Two-factor Confirmation"}),o(w,null,{logo:d(()=>[o($)]),default:d(()=>[i("div",I,[c.value?(s(),a(n,{key:1},[l(" Please confirm access to your account by entering one of your emergency recovery codes. ")],64)):(s(),a(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?(s(),a("div",U,[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":r[1]||(r[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"])])):(s(),a("div",T,[o(v,{for:"code",value:"Code"}),o(g,{id:"code",ref_key:"codeInput",ref:y,modelValue:t(e).code,"onUpdate:modelValue":r[0]||(r[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",B,[i("button",{type:"button",class:"text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer",onClick:_(k,["prevent"])},[c.value?(s(),a(n,{key:1},[l(" Use an authentication code ")],64)):(s(),a(n,{key:0},[l(" Use a recovery code ")],64))]),o(F,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:d(()=>[...r[2]||(r[2]=[l(" Log in ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1})],64))}};export{O 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.