import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{n as t,p as n,r}from"./createLucideIcon-P71pXhjD.js";import{t as i}from"./utils-CCDJ05Ll.js";import{t as a}from"./eye-off-B_5vCs8M.js";import{f as o,y as s}from"./app-AaPQHUQ2.js";var c=r(),l=e(n(),1),u=t();function d(e){let t=(0,c.c)(20),n,r,d;t[0]===e?(n=t[1],r=t[2],d=t[3]):({className:n,ref:d,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=d);let[p,m]=(0,l.useState)(!1),h=p?`text`:`password`,g;t[4]===n?g=t[5]:(g=i(`pr-10`,n),t[4]=n,t[5]=g);let _;t[6]!==r||t[7]!==d||t[8]!==h||t[9]!==g?(_=(0,u.jsx)(o,{type:h,className:g,ref:d,...r}),t[6]=r,t[7]=d,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>m(f),t[11]=v):v=t[11];let y=p?`Hide password`:`Show password`,b;t[12]===p?b=t[13]:(b=p?(0,u.jsx)(a,{className:`size-4`}):(0,u.jsx)(s,{className:`size-4`}),t[12]=p,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,u.jsx)(`button`,{type:`button`,onClick:v,className:`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,tabIndex:-1,children:b}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;return t[17]!==_||t[18]!==x?(S=(0,u.jsxs)(`div`,{className:`relative`,children:[_,x]}),t[17]=_,t[18]=x,t[19]=S):S=t[19],S}function f(e){return!e}export{d as t};