1import{A as e,E as t,N as n,a as r,c as i,j as a,m as o,o as s,s as c,u as l,x as u}from"./sentry.DbphTPdS.js";import{r as d}from"./AuthBackground.B35VBz9c.js";import{t as f}from"./AuthField.DGXsZE96.js";var p=o(`<svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c6.5 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"></path><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3.5 7 10 7a9.74 9.74 0 0 0 5.39-1.61"></path><path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"></path><line x1=2 y1=2 x2=22 y2=22>`),m=o(`<svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"></path><circle cx=12 cy=12 r=3>`),h=o(`<div style=margin-top:-0.7rem>`),g=o(`<div>`),_=o(`<button type=button tabindex=-1>`);function v(e){if(!e)return-1;let t=0;return e.length>=8&&t++,e.length>=12&&t++,/[a-z]/.test(e)&&/[A-Z]/.test(e)&&t++,/\d/.test(e)&&t++,/[^A-Za-z0-9]/.test(e)&&t++,Math.min(3,Math.max(0,t-1))}var y=[`Weak`,`Fair`,`Good`,`Strong`],b=[d.meterOn0,d.meterOn1,d.meterOn2,d.meterOn3],x=e=>t(u,{get when(){return e.off},get fallback(){return m()},get children(){return p()}}),S=o=>{let[s,p]=n(!1),m=e(()=>v(o.value));return(()=>{var e=g();return c(e,t(f,{get id(){return o.id},get name(){return o.name},get label(){return o.label},get type(){return s()?`text`:`password`},get value(){return o.value},get placeholder(){return o.placeholder},get autocomplete(){return o.autocomplete},get required(){return o.required},get state(){return o.state},get error(){return o.error},get hint(){return o.hint},onInput:e=>o.onInput(e.currentTarget.value),get onBlur(){return o.onBlur},get affix(){return(()=>{var e=_();return e.$$click=()=>p(e=>!e),c(e,t(x,{get off(){return s()}})),a(t=>{var n=d.affix,i=s()?`Hide password`:`Show password`;return n!==t.e&&r(e,t.e=n),i!==t.t&&l(e,`aria-label`,t.t=i),t},{e:void 0,t:void 0}),e})()}}),null),c(e,t(u,{get when(){return i(()=>!!o.showMeter)()&&m()>=0},get children(){return[(()=>{var e=h();return c(e,()=>[0,1,2,3].map(e=>(()=>{var t=g();return a(()=>r(t,`${d.meterBar} ${e<=m()?b[m()]:``}`)),t})())),a(()=>r(e,d.meter)),e})(),(()=>{var e=g();return c(e,()=>y[m()]),a(()=>r(e,d.meterLabel)),e})()]}}),null),e})()};s([`click`]);export{S as t};
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.