https://auth.sherlockhomeless.net/static/dist/src/flow/stages/authenticator_email/chunks/BWIHUZQD.js
1import{a as b,b as l,c as $}from"../../../../../chunks/JDTEBN26.js";import"../../../../../chunks/33DQP2K4.js";import{a as g}from"../../../../../chunks/AWRPPU3H.js";import"../../../../../chunks/BBVPNCYS.js";import{a as i}from"../../../../../chunks/Q6AC4VGP.js";import{a as o}from"../../../../../chunks/MUPFOQB3.js";import{a as f,b as h}from"../../../../../chunks/WEIL2JTR.js";import"../../../../../chunks/MH5OT6C6.js";import"../../../../../chunks/LIBWQ4XS.js";import"../../../../../chunks/J7EZ3LZM.js";import{b as p}from"../../../../../chunks/YGRHYWDD.js";import{a as u}from"../../../../../chunks/QT2F33W7.js";import{a as d}from"../../../../../chunks/NQNIGDVT.js";import"../../../../../chunks/PKKVESNA.js";import"../../../../../chunks/YUNSNIRE.js";import"../../../../../chunks/4V5RU7AR.js";import{q as c}from"../../../../../chunks/VZ6ZJWKU.js";import"../../../../../chunks/2RAVXXWC.js";import{b as m,c as e}from"../../../../../chunks/IXV7R43X.js";import{e as r,i as n}from"../../../../../chunks/PW3DBR6S.js";import{e as s}from"../../../../../chunks/HEUYUXT5.js";var t=class extends ${renderEmailInput(){return r`<ak-flow-card .challenge=${this.challenge}> 2 <form class="pf-c-form" @submit=${this.submitForm}> 3 ${l({challenge:this.challenge})} 4 5 <div class="pf-c-form__group"> 6 ${i({required:!0,htmlFor:"email-input"},e("Configure your email"))} 7 <input 8 id="email-input" 9 type="email" 10 name="email" 11 placeholder="${e("Please enter your email address.")}" 12 autofocus 13 autocomplete="email" 14 class="pf-c-form-control" 15 required 16 /> 17 ${o({errors:this.challenge?.responseErrors?.email})} 18 </div> 19 ${this.renderNonFieldErrors()} 20 <fieldset class="pf-c-form__group pf-m-action"> 21 <legend class="sr-only">${e("Form actions")}</legend> 22 <button 23 name="continue" 24 type="submit" 25 class="pf-c-button pf-m-primary pf-m-block" 26 > 27 ${e("Continue")} 28 </button> 29 </fieldset> 30 </form> 31 </ak-flow-card>`}renderEmailOTPInput(){if(!this.challenge)return n;let{email:a}=this.challenge;return r`<ak-flow-card .challenge=${this.challenge}> 32 ${l({challenge:this.challenge})} 33 34 <p> 35 ${a?e(m`A verification token has been sent to your configured email address: ${a}`,{id:"stage.authenticator.email.sent-to-address",desc:"Displayed when a verification token has been sent to the user's configured email address."}):e("A verification token has been sent to your email address.",{id:"stage.authenticator.email.sent",desc:"Displayed when a verification token has been sent to the user's email address."})} 36 </p> 37 <form class="pf-c-form" @submit=${this.submitForm}> 38 <div class="pf-c-form__group"> 39 ${i({required:!0,htmlFor:"code-input"},e("Code"))} 40 <input 41 id="code-input" 42 type="text" 43 name="code" 44 inputmode="numeric" 45 pattern="[0-9]*" 46 placeholder="${e("Please enter the code you received via email")}" 47 autofocus 48 autocomplete="one-time-code" 49 class="pf-c-form-control pf-m-monospace" 50 required 51 /> 52 ${o({errors:this.challenge.responseErrors?.code})} 53 </div> 54 ${this.renderNonFieldErrors()} 55 <fieldset class="pf-c-form__group pf-m-action"> 56 <legend class="sr-only">${e("Form actions")}</legend> 57 <button 58 name="continue" 59 type="submit" 60 class="pf-c-button pf-m-primary pf-m-block" 61 >
62 ${e("Continue")} 63 </button> 64 </fieldset> 65 </form> 66 </ak-flow-card>`}render(){return this.challenge?.emailRequired?this.renderEmailInput():this.renderEmailOTPInput()}};t.styles=[u,b,f,h,g,p,d],t=s([c("ak-stage-authenticator-email")],t);export{t as AuthenticatorEmailStage}; 67//# sourceMappingURL=BWIHUZQD.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.