"use strict";var e=require("react/jsx-runtime"),j=require("../containers/button.js");require("../containers/card.js");var p=require("@styled/css"),i=require("@styled/jsx");require("@styled/tokens");var d=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");var q=require("../primitives/text.js"),x=require("react");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"),require("../feedback/callout.js"),require("../feedback/progress-bar.js"),require("../primitives/portal.js"),require("../../hooks/useToast.js"),require("../../recipes/toast.js");var b=require("../feedback/tooltip.js"),l=require("create-slots/list");const o=l.createSlot(({actionBox:a,children:s,disabledLabel:r,label:t,onPress:n})=>a?e.jsx(i.Center,{h:"76px",maxW:"115px",w:"full",opacity:r?.3:1,pointerEvents:r?"none":"initial",children:e.jsx(j.ButtonContainer,{className:p.css({_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary",h:"100%"}),borderRadius:"0.75rem",expand:!0,onPress:n,children:e.jsxs(i.VStack,{gap:2,children:[x.cloneElement(x.Children.only(s),{height:20,width:20}),e.jsx(q.default,{size:"sm",styles:{fontWeight:500},children:t})]})})}):e.jsxs(i.VStack,{gap:1,minW:20,opacity:r?.3:1,pointerEvents:r?"none":"initial",children:[e.jsx(d.default,{variant:"neutral",size:"sm",onPress:n,"aria-label":"Buy",children:e.jsx(d.default.LeadingIcon,{children:s})}),e.jsx(q.default,{size:"sm",styles:{fontWeight:500},children:t})]})),h=({actionBox:a,children:s})=>e.jsx(i.Box,{w:"full",children:l.createHost(s,r=>e.jsx(i.HStack,{w:"full",justifyContent:"space-around",px:10,children:r.map(t=>{if(l.isSlot(t,o)){const{key:n,disabledLabel:u,...c}=l.getSlotProps(t);return u?e.jsx(b.default,{content:u,width:"max-content",children:e.jsx(i.Box,{children:e.jsx(o,{actionBox:a,disabledLabel:u,...c})})},n):e.jsx(o,{actionBox:a,...c},n)}})}))});h.Action=o,exports.WalletActions=h;
//# sourceMappingURL=wallet-actions.js.map
