"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),m=require("../containers/button.js");require("../containers/card.js");var o=require("@styled/css"),t=require("@styled/jsx"),g=require("@styled/tokens"),v=require("../icons/ico-external-link.js");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 h=require("../primitives/text.js"),s=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");var c=require("create-slots");const q=c.createSlot(({children:r,...i})=>e.jsx(t.Center,{children:s.Children.map(r,a=>s.cloneElement(a,i))})),p=c.createSlot(({children:r,...i})=>e.jsx(t.Center,{children:s.Children.map(r,a=>s.cloneElement(a,i))})),x=s.forwardRef((r,i)=>{const{primaryLabel:a,secondaryLabel:u,isExternalLink:j}=r;return c.createHost(r.children,d=>{const n=d.get(q),l=d.get(p);return e.jsx(m.ButtonContainer,{ref:i,className:o.css({p:4,bg:"neutral.quaternary",_hover:{bg:"neutral.secondary"}}),borderRadius:"0.5rem",expand:!0,...r,children:e.jsxs(t.HStack,{justify:"space-between",w:"full",children:[e.jsxs(t.HStack,{children:[n&&{...n,props:{height:24,...n.props,className:n.props.color?void 0:o.css({color:"brand.base"})}},e.jsxs(t.VStack,{gap:0,alignItems:"start",children:[e.jsxs(t.HStack,{children:[e.jsx(h.default,{fontWeight:"medium",children:a}),j&&e.jsx(v.default,{width:14,height:14,color:g.token("colors.neutral.primary")})]}),u&&e.jsx(h.default,{size:"sm",fontColor:"text.tertiary",children:u})]})]}),e.jsx(t.HStack,{children:l&&{...l,props:{...l.props,className:l.props.color?void 0:o.css({color:"neutral.primary"}),width:16,height:16}}})]})})})});x.displayName="NavigationButton";const b=Object.assign(x,{LeadingIcon:q,TrailingIcon:p});exports.default=b;
//# sourceMappingURL=navigation-button.js.map
