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