{"version":3,"file":"PasswordInput.DW8zjlME.mjs","names":["React.forwardRef","useState"],"sources":["https:/framerusercontent.com/modules/E8cJCf5QGdg5oQx4zCd6/QgMPcEtUUEvkdGFxmCbo/jLk1_bPd1.js","https:/framerusercontent.com/modules/ovHduoHtMn5pHIZCrD2D/uYGjLVG4zNr6Us8vUF6K/PasswordInput.js"],"sourcesContent":["// Generated by Framer (4897c59)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const JW2ySfJQW=undefined;const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0.821 11.083 C 0.299 10.053 0 8.891 0 7.653 C 0 6.415 0.299 5.253 0.821 4.223 C 2.08 1.718 4.661 0 7.653 0 C 9.719 0 11.445 0.758 12.774 1.997 L 10.582 4.188 C 9.782 3.437 8.78 3.047 7.653 3.047 C 5.663 3.047 3.973 4.39 3.367 6.199 C 3.214 6.658 3.124 7.145 3.124 7.653 C 3.124 8.161 3.214 8.648 3.367 9.107 L 3.358 9.114 L 3.367 9.114 C 3.973 10.923 5.663 12.266 7.653 12.266 C 8.683 12.266 9.552 11.987 10.234 11.528 C 11.048 10.986 11.591 10.179 11.772 9.225 L 7.653 9.225 L 7.653 6.262 L 14.861 6.262 C 14.951 6.763 15 7.284 15 7.827 C 15 10.158 14.165 12.12 12.718 13.455 C 11.452 14.624 9.719 15.306 7.653 15.306 C 4.661 15.306 2.08 13.588 0.821 11.09 Z\" fill=\"var(--t829wi, rgb(0,0,0))\" height=\"15.306123059078175px\" id=\"GdnAYzeLR\" transform=\"translate(0.5 0.4)\" width=\"15px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({fill,height,id,width,...props})=>{return{...props,JW2ySfJQW:fill??props.JW2ySfJQW??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,JW2ySfJQW,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-DR7zB\",className),layoutId:layoutId,ref:ref,style:{\"--t829wi\":JW2ySfJQW,...style}});});const css=[`.framer-DR7zB { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--t829wi); mask: ${mask}; width: 16px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 16\n * @framerIntrinsicHeight 16\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"JW2ySfJQW\":\"fill\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Google\",\"color\":{\"type\":\"variable\",\"value\":\"t829wi\"},\"set\":{\"localId\":\"vectorSet/uK5ESDkg3\",\"id\":\"uK5ESDkg3\",\"moduleId\":\"rTgCpOIUH6tdiqNh47fL\"}}\n */const Icon=withCSS(Component,css,\"framer-DR7zB\");Icon.displayName=\"Google\";export default Icon;addPropertyControls(Icon,{JW2ySfJQW:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Fill\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"16\",\"framerVariables\":\"{\\\"JW2ySfJQW\\\":\\\"fill\\\"}\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Google\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"t829wi\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/uK5ESDkg3\\\",\\\"id\\\":\\\"uK5ESDkg3\\\",\\\"moduleId\\\":\\\"rTgCpOIUH6tdiqNh47fL\\\"}}\",\"framerIntrinsicHeight\":\"16\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * Demo password field. Not connected to any form, so nothing is submitted or stored.\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 48\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PasswordInput(props){const{placeholder=\"Enter your password\",showToggle=true,style}=props;const[visible,setVisible]=useState(false);const[focused,setFocused]=useState(false);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",display:\"flex\",alignItems:\"center\",height:48,boxSizing:\"border-box\",padding:\"0 16px\",gap:8,background:\"#ffffff\",borderRadius:8,border:focused?\"1.5px solid #111111\":\"1px solid #cfcfcf\",boxShadow:focused?\"0 0 0 2px #ffffff, 0 0 0 4px #e8430a\":\"none\",transition:\"box-shadow 0.15s ease, border-color 0.15s ease\"},children:[/*#__PURE__*/_jsx(\"input\",{type:visible?\"text\":\"password\",placeholder:placeholder,autoComplete:\"off\",\"aria-label\":\"Password\",onFocus:()=>setFocused(true),onBlur:()=>setFocused(false),style:{flex:1,minWidth:0,height:\"100%\",border:\"none\",outline:\"none\",background:\"transparent\",fontFamily:'\"Plus Jakarta Sans\", sans-serif',fontSize:16,lineHeight:\"24px\",color:\"#111111\"}}),showToggle&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setVisible(v=>!v),\"aria-label\":visible?\"Hide password\":\"Show password\",style:{border:\"none\",background:\"transparent\",padding:0,cursor:\"pointer\",fontFamily:'\"Plus Jakarta Sans\", sans-serif',fontSize:14,fontWeight:500,color:\"#595959\"},children:visible?\"Hide\":\"Show\"})]});}addPropertyControls(PasswordInput,{placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter your password\"},showToggle:{type:ControlType.Boolean,title:\"Show Toggle\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordInput\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"48\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PasswordInput.map"],"mappings":"yQAC0C,IAAsE,IAA4B,EAA+D,EAAK,6/BAAqgC,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAO,IAAI,CAAC,GAAG,EAAc,WAAa,KAAG,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,KAAG,CAAC,CAAE,CAAC,EAAQ,GAAU,CAAC,OAAK,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAM,EAAM,WAAW,cAAc,GASxhD,EAAK,EATojDA,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,GAAG,GAAW,EAAS,CAAK,EAAE,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,CAAS,EAAW,WAAa,MAAI,MAAM,CAAC,WAAW,EAAU,GAAG,CAAK,CAAC,CAAC,CAAE,CAS5yD,EAAE,CATwzD,iCAAiC,EAAK,4DAA4D,EAAK,iBAS75D,EAAE,cAAc,EAAE,EAAK,YAAY,SAA6B,EAAoB,EAAK,CAAC,UAAU,CAAC,a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