"use strict";var r=require("react/jsx-runtime"),x=require("@styled/tokens"),y=require("../icons/ico-clock-fill.js"),q=require("../icons/ico-grid-fill.js"),g=require("../icons/ico-home-fill.js"),m=require("../icons/ico-settings-fill.js");require("react");var o=require("@styled/jsx"),b=require("@styled/css");require("../feedback/callout.js"),require("../feedback/progress-bar.js");var u=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("../primitives/text.js"),require("../primitives/portal.js"),require("../../hooks/useToast.js"),require("../../recipes/toast.js");var h=require("../feedback/tooltip.js");const d={Home:g.default,Gallery:q.default,Activity:y.default,Settings:m.default};exports.WalletNavigationType=void 0,function(e){e.Home="home",e.Gallery="gallery",e.Activity="activity",e.Settings="settings"}(exports.WalletNavigationType||(exports.WalletNavigationType={}));const j=({active:e,children:i,label:t,onPress:a})=>r.jsx(o.Box,{pointerEvents:e===t?"none":"initial",children:r.jsx(u.default,{variant:"text",onPress:a,children:r.jsx(u.default.LeadingIcon,{className:b.css({color:e===t?"text.primary":"text.tertiary",_groupHover:{color:e===t?"text.primary":"text.secondary"}}),children:i})})}),f=(e,i)=>e[i],N=({active:e=exports.WalletNavigationType.Home,disabled:i=[],...t})=>r.jsx(o.Center,{bottom:0,pos:"fixed",h:"6.25rem",w:"full",style:{background:`linear-gradient(180deg, transparent 0%, ${x.token("colors.surface.primary")} 100%)`},children:r.jsx(o.HStack,{bg:"text.primary/6",borderColor:"text.primary/10",borderWidth:"medium",borderStyle:"solid",borderRadius:52,backdropFilter:"blur(24px)",p:1.5,children:Object.keys(exports.WalletNavigationType).map(a=>{var n;const l=exports.WalletNavigationType[a],s=(n=i.find(p=>p.type===l))===null||n===void 0?void 0:n.label,c=d[a],v=f(t,`on${a}`);return s?r.jsx(h.default,{content:s,width:"max-content",children:r.jsx(o.Box,{border:"thin solid transparent",opacity:.3,p:1.5,children:r.jsx(c,{})})},l):r.jsx(j,{active:e,label:l,onPress:v,children:r.jsx(c,{})},l)})})});exports.WalletNavigation=N,exports.WalletNavigationIcons=d;
//# sourceMappingURL=wallet-navigation.js.map
