var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
    for (var name in all) __defProp(target, name, {
      get: all[name],
      enumerable: !0
    });
  },
  __copyProps = (to, from, except, desc) => {
    if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
      get: () => from[key],
      enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
    });
    return to;
  };
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
  value: !0
}), mod);
var NavRail_exports = {};
__export(NavRail_exports, {
  NavRail: () => NavRail,
  NavRailItem: () => NavRailItem
});
module.exports = __toCommonJS(NavRail_exports);
var import_react_native = require("react-native-web"),
  import_tamagui = require("tamagui"),
  import_NavItem = require("./NavItem.cjs"),
  import_jsx_runtime = require("react/jsx-runtime");
function NavRail({
  Items,
  Fab,
  Icon,
  TrailItems,
  noIcon = !1,
  ...props
}) {
  return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Rail, {
    ...props,
    children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
      h: 40
    }), Fab, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
      h: 60
    }), Items, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
      fg: 1
    }), TrailItems]
  });
}
const RailFrame = (0, import_tamagui.styled)(import_tamagui.ThemeableStack, {
    name: "NavigationRailContainer",
    bg: "$surface",
    br: null,
    w: "$size.nav_rail_width",
    h: "100%",
    fd: "column",
    ai: "center",
    gap: 12,
    pb: 24,
    variants: {
      outlined: {
        true: {
          borderRightWidth: "$border.outline",
          borderRightColor: "$outlineVariant"
        },
        false: {}
      }
    },
    defaultVariants: {
      outlined: !1
    }
  }),
  Rail = (0, import_tamagui.withStaticProperties)(RailFrame, {});
function NavRailItem({
  label,
  icon,
  active,
  onPress
}) {
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Pressable, {
    onPress,
    children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_NavItem.NavItem, {
      active,
      children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_NavItem.NavItem.Icon, {
        icon
      }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_NavItem.NavItem.Label, {
        children: label
      })]
    })
  });
}