import{r as c,j as r,bU as i,aJ as l,e0 as o,e1 as t,dj as a,Q as u,a2 as m}from"./index-DHiyXWqE.js";import{u as d}from"./useCopyToClipboard-D6oq-fy9.js";const R=({password:e})=>{const[s,n]=c.useState(!1),{copyToClipboard:p}=d();return r.jsxs(r.Fragment,{children:[r.jsx(i,{title:"Password",content:s?e:"•".repeat(e.length),copyButton:!0,copyCallback:()=>p(e),padding:"0px"}),r.jsx(l,{pl:"0px",intent:"inline",onClick:()=>{n(!s)},children:s?"hide password":"reveal password"})]})},U="ANY",f=e=>e?e.map(s=>({key:s.groupName,label:o[s.groupName]})):[],w=e=>e?e.map(s=>o[s.groupName]):[],x=e=>u(e,m(o)),y=e=>o[e],C=e=>!e||e==="Hopsworks"?a.M_ACCOUNT_TYPE:a.REMOTE_ACCOUNT_TYPE,b=e=>{if(!(!e||e==="Hopsworks"))return e==="OAuth2"?t.OAUTH2:e==="LDAP"?t.LDAP:t.KRB};export{R as P,U as a,C as b,w as c,x as d,y as f,f as g,b as r};
