PageSourceSearch

https://letsbot.net/build/assets/TwoFactorChallenge-ksnCST4C.js

js letsbot.net collected 2026-10-01 12:11:08 UTC 2,897 bytes, 1 lines download raw bytes

1import{b as e}from"./index.esm-DpmgDbKk.js";import{z as t,b as o,c as s,N as r,h as a,t as n,e as i,v as l,f as c,g as d,j as u}from"./runtime-dom.esm-bundler-BD1Yi9xm.js";import{_ as m}from"./_plugin-vue_export-helper-BCo6x5W8.js";import"./_commonjsHelpers-BoLAYADi.js";const f={class:"tfa-container"},p={class:"tfa-card"},g={class:"tfa-header"},h={class:"tfa-title"},v={class:"tfa-subtitle"},y={class:"tfa-form"},b={class:"tfa-field"},_={class:"tfa-label",for:"tfa-code"},R=["inputmode","autocomplete","maxlength"],x={key:0,class:"tfa-error"},j={key:1,class:"tfa-error"},w=["disabled"],k={class:"tfa-footer"};const I=m({components:{},props:{i18n:{type:Object,required:!0},expires_in:{type:Number,default:0}},data(){return{form:e({code:""}),useRecovery:!1,remaining:this.expires_in,timer:null}},computed:{countdown(){const e=Math.floor(this.remaining/60),t=this.remaining%60;return`${e}:${String(t).padStart(2,"0")}`}},mounted(){this.timer=setInterval(()=>{this.remaining=Math.max(0,this.remaining-1)},1e3)},beforeUnmount(){this.timer&&clearInterval(this.timer)},methods:{submit(){this.form.post("/two-factor-challenge",{onError:()=>this.form.reset("code")})},toggleRecovery(){this.useRecovery=!this.useRecovery,this.form.reset("code"),this.form.clearErrors()}}},[["render",function(e,m,I,L,M,N){const B=t("Head");return o(),s("div",f,[r(B,{title:I.i18n.challenge_title},null,8,["title"]),a("div",p,[a("div",g,[m[4]||(m[4]=a("img",{class:"tfa-logo",src:"/assets/front/images/login/logoLetsBot.png",alt:"LetsBot"},null,-1)),m[5]||(m[5]=a("div",{class:"tfa-shield","aria-hidden":"true"},"🔒",-1)),a("h1",h,n(I.i18n.challenge_title),1),a("div",v,[a("p",null,n(M.useRecovery?I.i18n.challenge_recovery_instruction:I.i18n.challenge_instruction),1)])]),a("div",y,[a("div",b,[a("label",_,n(I.i18n.code),1),i(a("input",{id:"tfa-code","onUpdate:modelValue":m[0]||(m[0]=e=>M.form.code=e),type:"text",inputmode:M.useRecovery?"text":"numeric",autocomplete:M.useRecovery?"off":"one-time-code",maxlength:M.useRecovery?16:6,dir:"ltr",autofocus:"",class:d(["tfa-input",{"tfa-input--recovery":M.useRecovery}]),onKeypress:m[1]||(m[1]=c((...e)=>N.submit&&N.submit(...e),["enter"]))},null,42,R),[[l,M.form.code]]),M.form.errors.code?(o(),s("p",x,n(M.form.errors.code),1)):u("",!0),M.form.errors.password?(o(),s("p",j,n(M.form.errors.password),1)):u("",!0)]),a("button",{type:"button",class:"tfa-button",disabled:M.form.processing||0===M.form.code.length,onClick:m[2]||(m[2]=(...e)=>N.submit&&N.submit(...e))},n(I.i18n.challenge_verify),9,w),a("div",k,[a("button",{type:"button",class:"tfa-link",onClick:m[3]||(m[3]=(...e)=>N.toggleRecovery&&N.toggleRecovery(...e))},n(M.useRecovery?I.i18n.challenge_use_code:I.i18n.challenge_use_recovery),1),a("span",{class:d(["tfa-countdown",{"tfa-countdown--urgent":M.remaining<60}]),dir:"ltr"},n(N.countdown),3)])])])])}],["__scopeId","data-v-dd2b3abd"]]);export{I 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.