import{G as g,j as e,al as s,an as u,T as r,X as o}from"./vendor-mui-core-CDEc-eG6.js";import{ae as m,b_ as p,ab as d,b$ as b}from"./vendor-ux-PO0jFgJf.js";import{r as j}from"./vendor-react-DX7tU9aY.js";import{n as _}from"./vendor-utils-_C9URqjS.js";function S({isLatest:t=!1,title:n,description:a=null,icon:i,iconScale:x=.95,slotProps:f={},mode:y="normal",t:h=_,...l}){const c=g();return e.jsxs(s,{...l,className:"arc-login-item",sx:m({position:"relative",display:"flex",alignItems:"center",gap:1,cursor:"pointer",p:1.2,borderRadius:1,backgroundColor:t?"grey.100":"grey.50",border:t?"1px solid":"none",borderColor:t?"grey.100":"transparent",textDecoration:"none",transition:"background-color 0.5s","&:hover, &:active, &.did-connect__choose-item__active":{backgroundColor:"grey.100"},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease, opacity 0.1s ease"},"&:hover":{"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}}},l?.sx),children:[e.jsx(u,{title:n,children:e.jsx(s,{className:"arc-login-item__icon",sx:m({display:"flex",justifyContent:"center",alignItems:"center",color:"text.primary"},f?.icon?.sx),children:j.isValidElement(i)?i:e.jsx(s,{component:d,icon:i,sx:{transform:`scale(${x})`,width:p,height:p}})})}),y==="normal"?e.jsxs(e.Fragment,{children:[e.jsxs(s,{className:"arc-login-item__body",sx:{display:"flex",flexDirection:"column",flex:1},children:[e.jsx(r,{sx:{fontSize:14,fontWeight:"500",color:"text.primary",whiteSpace:"nowrap"},children:n}),a?e.jsx(r,{sx:{color:"text.secondary",fontSize:12,lineHeight:1},children:a}):null]}),t?e.jsx(r,{component:"span",className:"latest-badge",style:{color:c.palette.text.secondary,fontSize:11},children:h("lastUsed")}):e.jsx(d,{className:"other-item-icon",icon:b,fontSize:"1.3rem",color:c.palette.primary.main})]}):null]})}S.propTypes={title:o.string.isRequired,description:o.string,icon:o.any.isRequired,iconScale:o.number,slotProps:o.object,mode:o.oneOf(["mini","simple","normal"]),isLatest:o.bool,t:o.func};export{S as R};
