PageSourceSearch

https://divapp.divam.fr/build/assets/TwoFactorChallenge-DJvZvuUG.js

js divam.fr collected 2026-09-24 13:51:05 UTC 3,179 bytes, 2 lines download raw bytes

1import{d as f,u as h,e as r,b as o,g as s,j as x,w as m,a as i,o as n,F as l,h as d,k as _,n as C,q as I}from"./app-CGXXxTcG.js";import{_ as T}from"./AuthenticationCard.vue_vue_type_script_setup_true_lang-lZQjogCu.js";import{_ as V}from"./AuthenticationCardLogo-DDFZNE79.js";import{_ as v,a as g}from"./TextInput-DJ4WMddx.js";import{_ as b}from"./InputLabel-YLuEQPb-.js";import{_ as E}from"./PrimaryButton-xvBS5h8v.js";import"./ApplicationMark-JFubpeki.js";import"./_plugin-vue_export-helper-vkjfsRmY.js";import"./index-B9IbjBJ-.js";import"./index-DnQwV7iU.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"a491d21fb61718864f99a9879fbc3cc4946e2600"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5f3895d9-2da0-4970-9e3d-2e1f92faaf2b",t._sentryDebugIdIdentifier="sentry-dbid-5f3895d9-2da0-4970-9e3d-2e1f92faaf2b")})()}catch{}const $={class:"mb-4 text-sm text-gray-600"},D={key:0},F={key:1},N={class:"flex items-center justify-end mt-4"},Y={__name:"TwoFactorChallenge",setup(t){const a=f(!1),e=h({code:"",recovery_code:""}),y=f(null),p=f(null),w=async()=>{a.value^=!0,await I(),a.value?(y.value.focus(),e.code=""):(p.value.focus(),e.recovery_code="")},k=()=>{e.post(route("two-factor.login"))};return(R,c)=>(n(),r(l,null,[o(s(x),{title:"Two-factor Confirmation"}),o(T,null,{logo:m(()=>[o(V)]),default:m(()=>[i("div",$,[a.value?(n(),r(l,{key:1},[d(" Please confirm access to your account by entering one of your emergency recovery codes. ")],64)):(n(),r(l,{key:0},[d(" Please confirm access to your account by entering the authentication code provided by your authenticator application. ")],64))]),i("form",{onSubmit:_(k,["prevent"])},[a.value?(n(),r("div",F,[o(b,{for:"recovery_code",value:"Recovery Code"}),o(v,{id:"recovery_code",ref_key:"recoveryCodeInput",ref:y,modelValue:s(e).recovery_code,"onUpdate:modelValue":c[1]||(c[1]=u=>s(e).recovery_code=u),type:"text",class:"mt-1 block w-full",autocomplete:"one-time-code"},null,8,["modelValue"]),o(g,{class:"mt-2",message:s(e).errors.recovery_code},null,8,["message"])])):(n(),r("div",D,[o(b,{for:"code",value:"Code"}),o(v,{id:"code",ref_key:"codeInput",ref:p,modelValue:s(e).code,"onUpdate:modelValue":c[0]||(c[0]=u=>s(e).code=u),type:"text",inputmode:"numeric",class:"mt-1 block w-full",autofocus:"",autocomplete:"one-time-code"},null,8,["modelValue"]),o(g,{class:"mt-2",message:s(e).errors.code},null,8,["message"])])),i("div",N,[i("button",{type:"button",class:"text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer",onClick:_(w,["prevent"])},[a.value?(n(),r(l,{key:1},[d(" Use an authentication code ")],64)):(n(),r(l,{key:0},[d(" Use a recovery code ")],64))]),o(E,{class:C(["ms-4",{"opacity-25":s(e).processing}]),disabled:s(e).processing},{default:m(()=>[...c[2]||(c[2]=[d(" Log in ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1})],64))}};export{Y as default};
2//# sourceMappingURL=TwoFactorChallenge-DJvZvuUG.js.map

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.