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