import{Kt as e,Mt as t,Q as n,X as r,Xn as i,Y as a,at as o,gn as s,lr as c,or as l,st as u}from"./dist-CoD0k1Bd.js";import{i as d}from"./Primitive-GZZWGonv.js";import{t as f}from"./createLucideIcon-D0h14Jw-.js";import{t as p}from"./Input-C3DwKNOf.js";var m=f(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),h=f(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),g={class:`relative`},_=[`aria-label`],v=u({inheritAttrs:!1,__name:`PasswordInput`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(u,{expose:f}){let v=u,y=i(!1),b=s(`inputRef`);return f({$el:b,focus:()=>b.value?.$el?.focus()}),(i,s)=>(e(),n(`div`,g,[o(l(p),t({ref_key:`inputRef`,ref:b,type:y.value?`text`:`password`,class:l(d)(`pr-10`,v.class)},i.$attrs),null,16,[`type`,`class`]),a(`button`,{type:`button`,onClick:s[0]||=e=>y.value=!y.value,class:c(l(d)(`absolute inset-y-0 right-0 flex items-center rounded-r-md px-3 text-muted-foreground hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:outline-none`)),"aria-label":y.value?`Hide password`:`Show password`,tabindex:-1},[y.value?(e(),r(l(m),{key:0,class:`size-4`})):(e(),r(l(h),{key:1,class:`size-4`}))],10,_)]))}});export{h as n,m as r,v as t};