{"version":3,"file":"PasswordInput.CsiMs7Zu.mjs","names":["React.useId","React.useState","__esmMin","init_npm_react_18_3_1","init_jsx_runtime","c","p","_e","ie","init_framer_DcGZRLrs","addPropertyControls","ControlType","PasswordInput","props","id","visible","setVisible","style","placeholderColor","textColor","v","toggleColor","init_PasswordInput"],"sources":["https:/framerusercontent.com/modules/SQyKnviQpCiwQrjuPqqX/RSaA1oJlAZ1E27XdE9Xl/PasswordInput.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Password field with a Show / Hide toggle.\n * The input carries data-auth-password so AuthController can read it.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PasswordInput(props){const{placeholder,name,autoComplete,textColor,placeholderColor,toggleColor,fontSize,style}=props;const id=React.useId();const[visible,setVisible]=React.useState(false);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`#${CSS.escape(id)}::placeholder{color:${placeholderColor};opacity:1}`}),/*#__PURE__*/_jsx(\"input\",{id:id,\"data-auth-password\":\"\",type:visible?\"text\":\"password\",name:name,placeholder:placeholder,autoComplete:autoComplete,style:{width:\"100%\",height:\"100%\",boxSizing:\"border-box\",background:\"transparent\",border:\"none\",outline:\"none\",padding:\"0 52px 0 0\",margin:0,color:textColor,fontSize,fontFamily:\"Inter, sans-serif\"}}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":visible?\"Hide password\":\"Show password\",\"aria-pressed\":visible,onClick:()=>setVisible(v=>!v),style:{position:\"absolute\",right:0,top:\"50%\",transform:\"translateY(-50%)\",background:\"none\",border:\"none\",padding:\"4px 0 4px 8px\",cursor:\"pointer\",color:toggleColor,fontSize:13,fontWeight:600,fontFamily:\"Inter, sans-serif\"},children:visible?\"Hide\":\"Show\"})]});}PasswordInput.defaultProps={placeholder:\"Password\",name:\"password\",autoComplete:\"current-password\",textColor:\"#0f0f12\",placeholderColor:\"#9a9aa3\",toggleColor:\"#6d5ae6\",fontSize:15};addPropertyControls(PasswordInput,{placeholder:{type:ControlType.String,title:\"Placeholder\"},name:{type:ControlType.String,title:\"Name\"},autoComplete:{type:ControlType.Enum,title:\"Autofill\",options:[\"current-password\",\"new-password\"],optionTitles:[\"Current password\",\"New password\"]},textColor:{type:ControlType.Color,title:\"Text\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder color\"},toggleColor:{type:ControlType.Color,title:\"Toggle color\"},fontSize:{type:ControlType.Number,title:\"Size\",min:10,max:24,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordInput\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PasswordInput.map"],"mappings":"A,wLAMG,SAAwBY,EAAc,EAAM,CAAC,GAAK,CAAC,cAAY,OAAK,eAAa,YAAU,mBAAiB,cAAY,WAAS,SAAOC,EAAYC,EAAGd,EAAY,EAAO,CAACe,EAAQC,GAAYf,EAAe,EAAK,EAAE,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGgB,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAAS,IAAI,IAAI,OAAOH,CAAE,EAAE,sBAAsBI,EAAiB,YAAY,CAAC,EAAe,gBAAK,QAAQ,CAAI,KAAG,qBAAqB,GAAG,KAAKH,EAAQ,OAAO,WAAgB,OAAiB,cAAyB,eAAa,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,aAAa,WAAW,cAAc,OAAO,OAAO,QAAQ,OAAO,QAAQ,aAAa,OAAO,EAAE,MAAMI,EAAU,WAAS,WAAW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