import{r as e,z as n,j as t}from"./vendor-CT-JknSv.chunk.js";import{a as d}from"./FormInputField-CoRdK2rH.chunk.js";import{j as c}from"./index-DDZqnj79.js";const l=o=>e.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},e.createElement("path",{d:"M25.1 13.8C22.2 19.1 18.5 21.8 14.1 21.8C9.7 21.8 6 19.1 3.1 13.8C6 8.5 9.7 5.8 14.1 5.8C18.5 5.8 22.1 8.5 25.1 13.8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M14.1 16.2C15.4 16.2 16.4 15.2 16.4 13.9C16.4 12.6 15.4 11.6 14.1 11.6C12.8 11.6 11.8 12.6 11.8 13.9C11.8 15.2 12.8 16.2 14.1 16.2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),p=o=>e.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},e.createElement("path",{d:"M4.1 3.60001L24.1 23.6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M12.4 12.2C12 12.6 11.7 13.2 11.7 13.9C11.7 14.5 11.9 15.1 12.4 15.6C12.8 16 13.4 16.3 14.1 16.3C14.7 16.3 15.3 16.1 15.8 15.6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.2 6.30001C12.1 6.00001 13.1 5.90001 14.1 5.90001C18.5 5.90001 22.2 8.60001 25.1 13.9C24.2 15.5 23.3 16.8 22.3 17.9M19.9 19.9C18.1 21.2 16.1 21.8 14 21.8C9.6 21.8 5.9 19.1 3 13.8C4.5 11.1 6.2 9.00001 8.1 7.70001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}));function m(o){const[r,i]=e.useState("password"),a=r==="password"?p:l;return t(d,{css:s.field,...o,type:r,suffix:t("button",{type:"button","aria-label":`${r==="password"?"Show":"Hide"} password`,onClick:()=>{i(r==="password"?"text":"password")},css:s.button,children:t(a,{color:c.blue400})})})}const s={field:n({paddingRight:52}),button:n({marginRight:"16px",background:"none",border:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",userSelect:"none"})};export{m as F};