import{B as e,D as t,Et as n,K as r,M as i,T as a,gt as o,j as s,nt as c,w as l,wt as u}from"./dist-B4ulKgpj.js";import{i as d}from"./Primitive-CN38JRWA.js";import{t as f}from"./createLucideIcon-BEtnrhAL.js";import{t as p}from"./eye-Cy5p8g9L.js";import{t as m}from"./Input-DUc0hUPv.js";var h=f(`EyeOffIcon`,[[`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`}]]),g={class:`relative`},_=[`aria-label`],v=i({inheritAttrs:!1,__name:`PasswordInput`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(i,{expose:f}){let v=i,y=o(!1),b=c(`inputRef`);return f({$el:b,focus:()=>b.value?.$el?.focus()}),(i,o)=>(r(),t(`div`,g,[s(u(m),e({ref_key:`inputRef`,ref:b,type:y.value?`text`:`password`,class:u(d)(`pr-10`,v.class)},i.$attrs),null,16,[`type`,`class`]),l(`button`,{type:`button`,onClick:o[0]||=e=>y.value=!y.value,class:n(u(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?(r(),a(u(h),{key:0,class:`size-4`})):(r(),a(u(p),{key:1,class:`size-4`}))],10,_)]))}});export{h as n,v as t};