import{jsx as t,jsxs as o}from"react/jsx-runtime";import{cloneElement as i,Children as g}from"react";import{Center as j,Box as n,Flex as c,HStack as b}from"@styled/jsx";import{createSlot as s,createHost as v}from"create-slots";import l from"../primitives/text.js";import{cx as R,css as z}from"@styled/css";import{ButtonContainer as A}from"../containers/button.js";import"../containers/card.js";import"@styled/tokens";import"../primitives/button.js";import"../primitives/checkbox.js";import"../primitives/dropdown-selector.js";import"../primitives/popover.js";import"../primitives/radio.js";import"../primitives/segmented-control.js";import"../primitives/switch.js";import"../utils/client-asset-logo.js";import"react-qrcode-logo";import"../utils/secured-by-magic.js";import"../containers/header.js";import"../containers/menu.js";import"../containers/modal.js";import"../containers/overlay.js";const y=s(({backgroundColor:e,children:r})=>t(j,{borderRadius:60,height:11,width:11,backgroundColor:e,overflow:"hidden",children:i(g.only(r),{height:24,width:24})})),C=s(({backgroundColor:e,children:r})=>o(n,{height:10,width:10,position:"relative",children:[t(c,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:e,height:7,width:7,borderRadius:30,children:i(r[0],{height:20,width:20})}),t(c,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:e,borderRadius:30,height:7,width:7,bottom:0,right:0,children:i(r[1],{height:20,width:20})})]})),f=s(({backgroundColor:e,children:r})=>t(c,{backgroundColor:e,borderRadius:30,alignItems:"center",justifyContent:"center",borderWidth:"2",borderColor:"neutral.tertiary",width:"5",height:"5",children:i(g.only(r),{height:10,width:10})})),B=({title:e,subtitle:r,primaryValue:w,primaryValueColor:x,secondaryValue:a,children:k,onPress:I,...h})=>v(k,d=>{const m=d.get(C),p=d.get(y),u=d.get(f);return t(A,{borderRadius:"0.375rem",expand:!0,onPress:I,children:o(b,{p:3,gap:2,w:"full",pos:"relative",className:R(z({_active:{transform:"scale(0.95)"},_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary"})),borderRadius:"md",justify:"space-between",alignItems:"center",...h,children:[o(b,{children:[m&&m,p&&p,u&&t(n,{position:"absolute",left:9,top:11,children:u}),o(n,{children:[t(l,{truncate:!0,size:"md",fontWeight:"bold",children:e})," ",r&&t(l,{truncate:!0,size:"sm",fontColor:"text.secondary",children:r})]})]}),o(n,{children:[t(l,{truncate:!0,size:"md",styles:{textAlign:"end",color:x},...h,children:w}),a&&t(l,{truncate:!0,size:"sm",styles:{textAlign:"end"},fontColor:"text.secondary",children:a})]})]})})}),P=Object.assign(B,{DoubleIcon:C,PrimaryIcon:y,SecondaryIcon:f});export{P as ActivityListItem};
//# sourceMappingURL=activity-list-item.js.map
