PageSourceSearch

https://cdn4.schoolism.com/build/assets/TwoFactorChallenge-DqliJ9XO.js

js schoolism.com collected 2026-09-25 21:29:30 UTC 2,624 bytes, 1 lines download raw bytes

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