import{r as c,j as r,cN as i,aJ as l,dJ as o,T as u,dK as t,d7 as a,a1 as m}from"./index-_eM6l4Nf.js";import{u as d}from"./useCopyToClipboard-BUvZjse8.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"})]})},f="ANY",w=e=>e?e.map(s=>({key:s.groupName,label:o[s.groupName]})):[],x=e=>e?e.map(s=>o[s.groupName]):[],C=e=>u(e,m(o)),N=e=>o[e],P=e=>!e||e==="Hopsworks"?a.M_ACCOUNT_TYPE:a.REMOTE_ACCOUNT_TYPE,U=e=>{if(!(!e||e==="Hopsworks"))return e==="OAuth2"?t.OAUTH2:e==="LDAP"?t.LDAP:t.KRB};export{R as P,f as a,P as b,x as c,C as d,N as f,w as g,U as r};
