baaz-custom-components 3.2.11 → 3.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -749,9 +749,63 @@ function treeContainsPath({
749
749
  }
750
750
  return false;
751
751
  }
752
+ function getDeepestActiveChildren(data, base, pathname) {
753
+ let result = null;
754
+ function dfs(routes, parentBase) {
755
+ for (const node of routes) {
756
+ if (typeof node.routes === "string") {
757
+ const full = buildFullHref(parentBase, node.routes);
758
+ let hrefPath = extractPathname(full);
759
+ if (hrefPath.endsWith("/-")) hrefPath = hrefPath.slice(0, -2);
760
+ if (pathname === hrefPath || pathname.startsWith(hrefPath + "/")) {
761
+ }
762
+ } else {
763
+ const firstChild = node.routes[0];
764
+ const maybePath = typeof firstChild.routes === "string" ? firstChild.routes : "";
765
+ const full = buildFullHref(parentBase, maybePath);
766
+ let hrefPath = extractPathname(full);
767
+ if (hrefPath.endsWith("/-")) hrefPath = hrefPath.slice(0, -2);
768
+ if (pathname.startsWith(hrefPath)) {
769
+ result = { base: parentBase, children: node.routes };
770
+ dfs(node.routes, parentBase);
771
+ }
772
+ }
773
+ }
774
+ }
775
+ dfs(data, base);
776
+ return result;
777
+ }
778
+
779
+ // src/components/custom/navbar/sub-nav.tsx
780
+ import { jsx as jsx9 } from "react/jsx-runtime";
781
+ function SubNav({
782
+ base,
783
+ childrenRoutes,
784
+ router
785
+ }) {
786
+ const pathname = typeof window !== "undefined" ? window.location.pathname : "";
787
+ if (!childrenRoutes || childrenRoutes.length === 0) return null;
788
+ return /* @__PURE__ */ jsx9("div", { className: "bg-transparent border rounded-md px-2 py-1 shadow-lg flex gap-2", children: childrenRoutes.map((child) => {
789
+ if (typeof child.routes !== "string") return null;
790
+ const href = buildFullHref(base, child.routes);
791
+ const active = isRouteActive(href, pathname);
792
+ return /* @__PURE__ */ jsx9(
793
+ "button",
794
+ {
795
+ onClick: () => router.push(href),
796
+ className: cn(
797
+ "px-3 py-1 text-sm rounded-md whitespace-nowrap cursor-pointer",
798
+ active ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-primary"
799
+ ),
800
+ children: child.label
801
+ },
802
+ child.label
803
+ );
804
+ }) });
805
+ }
752
806
 
753
807
  // src/components/custom/navbar/customMenu.tsx
754
- import { Fragment, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
808
+ import { Fragment, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
755
809
  function isLeaf(value) {
756
810
  return typeof value === "string";
757
811
  }
@@ -760,11 +814,11 @@ function MenuItems({
760
814
  base,
761
815
  router
762
816
  }) {
763
- return /* @__PURE__ */ jsx9(Fragment, { children: data.map((value) => {
817
+ return /* @__PURE__ */ jsx10(Fragment, { children: data.map((value) => {
764
818
  if (isLeaf(value.routes)) {
765
819
  const fullPath = buildFullHref(base, value.routes);
766
820
  const active = isRouteActive(fullPath, router.pathname);
767
- return /* @__PURE__ */ jsx9(
821
+ return /* @__PURE__ */ jsx10(
768
822
  MenubarItem,
769
823
  {
770
824
  onClick: () => router.push(fullPath),
@@ -783,7 +837,7 @@ function MenuItems({
783
837
  pathname: router.pathname
784
838
  });
785
839
  return /* @__PURE__ */ jsxs7(MenubarSub, { children: [
786
- /* @__PURE__ */ jsx9(
840
+ /* @__PURE__ */ jsx10(
787
841
  MenubarSubTrigger,
788
842
  {
789
843
  className: cn(
@@ -792,7 +846,7 @@ function MenuItems({
792
846
  children: value.label
793
847
  }
794
848
  ),
795
- /* @__PURE__ */ jsx9(MenubarSubContent, { children: /* @__PURE__ */ jsx9(
849
+ /* @__PURE__ */ jsx10(MenubarSubContent, { children: /* @__PURE__ */ jsx10(
796
850
  MenuItems,
797
851
  {
798
852
  data: value.routes,
@@ -808,56 +862,68 @@ function MenuList({
808
862
  router
809
863
  }) {
810
864
  const { name, url, routes } = entry;
865
+ const pathname = router.pathname;
811
866
  const isGroupActive = treeContainsPath({
812
867
  data: routes,
813
868
  base: url,
814
- pathname: router.pathname
869
+ pathname
815
870
  });
816
- return /* @__PURE__ */ jsx9(Menubar, { className: "bg-transparent border-none", children: /* @__PURE__ */ jsxs7(MenubarMenu, { children: [
817
- /* @__PURE__ */ jsxs7(
818
- MenubarTrigger,
871
+ const sub = getDeepestActiveChildren(routes, url, pathname);
872
+ return /* @__PURE__ */ jsxs7("div", { className: "relative inline-block", children: [
873
+ /* @__PURE__ */ jsx10(Menubar, { className: "bg-transparent border-none", children: /* @__PURE__ */ jsxs7(MenubarMenu, { children: [
874
+ /* @__PURE__ */ jsxs7(
875
+ MenubarTrigger,
876
+ {
877
+ className: cn(
878
+ "cursor-pointer group inline-flex items-center",
879
+ isGroupActive && "bg-accent text-accent-foreground"
880
+ ),
881
+ children: [
882
+ name,
883
+ /* @__PURE__ */ jsx10(ChevronDown, { size: 16, className: "ml-1 inline-block" })
884
+ ]
885
+ }
886
+ ),
887
+ /* @__PURE__ */ jsx10(MenubarContent, { children: /* @__PURE__ */ jsx10(MenuItems, { data: routes, base: url, router }) })
888
+ ] }) }),
889
+ sub ? /* @__PURE__ */ jsx10("div", { className: "absolute left-0 top-12 z-40", children: /* @__PURE__ */ jsx10(
890
+ SubNav,
819
891
  {
820
- className: cn(
821
- "cursor-pointer group inline-flex items-center",
822
- isGroupActive && "bg-accent text-accent-foreground"
823
- ),
824
- children: [
825
- name,
826
- /* @__PURE__ */ jsx9(ChevronDown, { size: 16, className: "ml-1 inline-block" })
827
- ]
892
+ base: sub.base,
893
+ childrenRoutes: sub.children,
894
+ router
828
895
  }
829
- ),
830
- /* @__PURE__ */ jsx9(MenubarContent, { children: /* @__PURE__ */ jsx9(MenuItems, { data: routes, base: url, router }) })
831
- ] }) });
896
+ ) }) : null
897
+ ] });
832
898
  }
833
899
 
834
900
  // src/components/custom/navbar/notifications.tsx
835
901
  import { BellDot } from "lucide-react";
836
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
902
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
837
903
  var Notifications = ({
838
904
  notificationData,
839
905
  notificationHandler
840
906
  }) => {
841
907
  return /* @__PURE__ */ jsxs8(DropdownMenu, { onOpenChange: (open) => open && notificationHandler(), children: [
842
- /* @__PURE__ */ jsx10(DropdownMenuTrigger, { className: "cursor-pointer", asChild: true, children: /* @__PURE__ */ jsx10(BellDot, { size: 24 }) }),
843
- /* @__PURE__ */ jsx10(
908
+ /* @__PURE__ */ jsx11(DropdownMenuTrigger, { className: "cursor-pointer", asChild: true, children: /* @__PURE__ */ jsx11(BellDot, { size: 24 }) }),
909
+ /* @__PURE__ */ jsx11(
844
910
  DropdownMenuContent,
845
911
  {
846
912
  className: "w-80 h-96 bg-card-foreground",
847
913
  align: "start",
848
- children: /* @__PURE__ */ jsx10(ScrollArea, { className: "w-full h-full", children: (notificationData == null ? void 0 : notificationData.length) == 0 ? /* @__PURE__ */ jsx10("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData == null ? void 0 : notificationData.map((data, index) => /* @__PURE__ */ jsxs8("div", { children: [
914
+ children: /* @__PURE__ */ jsx11(ScrollArea, { className: "w-full h-full", children: (notificationData == null ? void 0 : notificationData.length) == 0 ? /* @__PURE__ */ jsx11("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData == null ? void 0 : notificationData.map((data, index) => /* @__PURE__ */ jsxs8("div", { children: [
849
915
  /* @__PURE__ */ jsxs8("div", { className: "flex py-4 px-5 gap-6", children: [
850
- /* @__PURE__ */ jsx10("div", { className: "w-3 h-3 mt-2 bg-accent rounded-full flex-shrink-0" }),
916
+ /* @__PURE__ */ jsx11("div", { className: "w-3 h-3 mt-2 bg-accent rounded-full flex-shrink-0" }),
851
917
  /* @__PURE__ */ jsxs8("div", { className: " flex gap-2 flex-col text-sm", children: [
852
- /* @__PURE__ */ jsx10("h2", { className: "font-semibold text-base", children: data == null ? void 0 : data.topic }),
853
- /* @__PURE__ */ jsx10("h3", { children: data == null ? void 0 : data.heading }),
854
- /* @__PURE__ */ jsx10("h2", { children: data == null ? void 0 : data.trail }),
855
- /* @__PURE__ */ jsx10("h1", { className: " bg-background rounded-sm p-2", children: data == null ? void 0 : data.body }),
856
- /* @__PURE__ */ jsx10("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data == null ? void 0 : data.otp }),
857
- /* @__PURE__ */ jsx10("h4", { className: "text-xs", children: formatDateAndTime(data == null ? void 0 : data.time) })
918
+ /* @__PURE__ */ jsx11("h2", { className: "font-semibold text-base", children: data == null ? void 0 : data.topic }),
919
+ /* @__PURE__ */ jsx11("h3", { children: data == null ? void 0 : data.heading }),
920
+ /* @__PURE__ */ jsx11("h2", { children: data == null ? void 0 : data.trail }),
921
+ /* @__PURE__ */ jsx11("h1", { className: " bg-background rounded-sm p-2", children: data == null ? void 0 : data.body }),
922
+ /* @__PURE__ */ jsx11("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data == null ? void 0 : data.otp }),
923
+ /* @__PURE__ */ jsx11("h4", { className: "text-xs", children: formatDateAndTime(data == null ? void 0 : data.time) })
858
924
  ] })
859
925
  ] }),
860
- index < (notificationData == null ? void 0 : notificationData.length) - 1 && /* @__PURE__ */ jsx10(Separator2, { className: "my-2" })
926
+ index < (notificationData == null ? void 0 : notificationData.length) - 1 && /* @__PURE__ */ jsx11(Separator2, { className: "my-2" })
861
927
  ] }, data.otp)) })
862
928
  }
863
929
  )
@@ -866,7 +932,7 @@ var Notifications = ({
866
932
  var notifications_default = Notifications;
867
933
 
868
934
  // src/components/custom/navbar/desktopNavbar.tsx
869
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
935
+ import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
870
936
  function DesktopNavbar({
871
937
  navbarData,
872
938
  userData,
@@ -878,9 +944,9 @@ function DesktopNavbar({
878
944
  hubIdEnable,
879
945
  hubIdChangeHandler
880
946
  }) {
881
- return /* @__PURE__ */ jsx11("nav", { children: /* @__PURE__ */ jsxs9("div", { className: "flex justify-between px-10 py-2 bg-card items-center border-b-1", children: [
947
+ return /* @__PURE__ */ jsx12("nav", { children: /* @__PURE__ */ jsxs9("div", { className: "flex justify-between px-10 py-2 bg-card items-center border-b-1", children: [
882
948
  /* @__PURE__ */ jsxs9("div", { className: "left flex gap-4 items-center", children: [
883
- /* @__PURE__ */ jsx11(
949
+ /* @__PURE__ */ jsx12(
884
950
  "img",
885
951
  {
886
952
  src: sidebarIcon_default.src || sidebarIcon_default,
@@ -889,7 +955,7 @@ function DesktopNavbar({
889
955
  height: 18
890
956
  }
891
957
  ),
892
- navbarData == null ? void 0 : navbarData.map((entry) => /* @__PURE__ */ jsx11(
958
+ navbarData == null ? void 0 : navbarData.map((entry) => /* @__PURE__ */ jsx12(
893
959
  MenuList,
894
960
  {
895
961
  entry,
@@ -899,8 +965,8 @@ function DesktopNavbar({
899
965
  ))
900
966
  ] }),
901
967
  /* @__PURE__ */ jsxs9("div", { className: "flex gap-4 items-center", children: [
902
- /* @__PURE__ */ jsx11(notifications_default, { notificationData, notificationHandler }),
903
- /* @__PURE__ */ jsx11(user_default2, { userData, onLogout, hubIdChangeHandler, hubDetails, hubIdEnable })
968
+ /* @__PURE__ */ jsx12(notifications_default, { notificationData, notificationHandler }),
969
+ /* @__PURE__ */ jsx12(user_default2, { userData, onLogout, hubIdChangeHandler, hubDetails, hubIdEnable })
904
970
  ] })
905
971
  ] }) });
906
972
  }
@@ -914,14 +980,14 @@ import { Menu as Menu2, X } from "lucide-react";
914
980
  // src/components/ui/sheet.tsx
915
981
  import * as SheetPrimitive from "@radix-ui/react-dialog";
916
982
  import { XIcon } from "lucide-react";
917
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
983
+ import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
918
984
  function Sheet(_a) {
919
985
  var props = __objRest(_a, []);
920
- return /* @__PURE__ */ jsx12(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
986
+ return /* @__PURE__ */ jsx13(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
921
987
  }
922
988
  function SheetPortal(_a) {
923
989
  var props = __objRest(_a, []);
924
- return /* @__PURE__ */ jsx12(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
990
+ return /* @__PURE__ */ jsx13(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
925
991
  }
926
992
  function SheetOverlay(_a) {
927
993
  var _b = _a, {
@@ -929,7 +995,7 @@ function SheetOverlay(_a) {
929
995
  } = _b, props = __objRest(_b, [
930
996
  "className"
931
997
  ]);
932
- return /* @__PURE__ */ jsx12(
998
+ return /* @__PURE__ */ jsx13(
933
999
  SheetPrimitive.Overlay,
934
1000
  __spreadValues({
935
1001
  "data-slot": "sheet-overlay",
@@ -951,7 +1017,7 @@ function SheetContent(_a) {
951
1017
  "side"
952
1018
  ]);
953
1019
  return /* @__PURE__ */ jsxs10(SheetPortal, { children: [
954
- /* @__PURE__ */ jsx12(SheetOverlay, {}),
1020
+ /* @__PURE__ */ jsx13(SheetOverlay, {}),
955
1021
  /* @__PURE__ */ jsxs10(
956
1022
  SheetPrimitive.Content,
957
1023
  __spreadProps(__spreadValues({
@@ -968,8 +1034,8 @@ function SheetContent(_a) {
968
1034
  children: [
969
1035
  children,
970
1036
  /* @__PURE__ */ jsxs10(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
971
- /* @__PURE__ */ jsx12(XIcon, { className: "size-4" }),
972
- /* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
1037
+ /* @__PURE__ */ jsx13(XIcon, { className: "size-4" }),
1038
+ /* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Close" })
973
1039
  ] })
974
1040
  ]
975
1041
  })
@@ -978,7 +1044,7 @@ function SheetContent(_a) {
978
1044
  }
979
1045
  function SheetHeader(_a) {
980
1046
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
981
- return /* @__PURE__ */ jsx12(
1047
+ return /* @__PURE__ */ jsx13(
982
1048
  "div",
983
1049
  __spreadValues({
984
1050
  "data-slot": "sheet-header",
@@ -992,7 +1058,7 @@ function SheetTitle(_a) {
992
1058
  } = _b, props = __objRest(_b, [
993
1059
  "className"
994
1060
  ]);
995
- return /* @__PURE__ */ jsx12(
1061
+ return /* @__PURE__ */ jsx13(
996
1062
  SheetPrimitive.Title,
997
1063
  __spreadValues({
998
1064
  "data-slot": "sheet-title",
@@ -1006,7 +1072,7 @@ function SheetDescription(_a) {
1006
1072
  } = _b, props = __objRest(_b, [
1007
1073
  "className"
1008
1074
  ]);
1009
- return /* @__PURE__ */ jsx12(
1075
+ return /* @__PURE__ */ jsx13(
1010
1076
  SheetPrimitive.Description,
1011
1077
  __spreadValues({
1012
1078
  "data-slot": "sheet-description",
@@ -1017,14 +1083,14 @@ function SheetDescription(_a) {
1017
1083
 
1018
1084
  // src/components/ui/tooltip.tsx
1019
1085
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
1020
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
1086
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
1021
1087
  function TooltipProvider(_a) {
1022
1088
  var _b = _a, {
1023
1089
  delayDuration = 0
1024
1090
  } = _b, props = __objRest(_b, [
1025
1091
  "delayDuration"
1026
1092
  ]);
1027
- return /* @__PURE__ */ jsx13(
1093
+ return /* @__PURE__ */ jsx14(
1028
1094
  TooltipPrimitive.Provider,
1029
1095
  __spreadValues({
1030
1096
  "data-slot": "tooltip-provider",
@@ -1034,11 +1100,11 @@ function TooltipProvider(_a) {
1034
1100
  }
1035
1101
  function Tooltip(_a) {
1036
1102
  var props = __objRest(_a, []);
1037
- return /* @__PURE__ */ jsx13(TooltipProvider, { children: /* @__PURE__ */ jsx13(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
1103
+ return /* @__PURE__ */ jsx14(TooltipProvider, { children: /* @__PURE__ */ jsx14(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
1038
1104
  }
1039
1105
  function TooltipTrigger(_a) {
1040
1106
  var props = __objRest(_a, []);
1041
- return /* @__PURE__ */ jsx13(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
1107
+ return /* @__PURE__ */ jsx14(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
1042
1108
  }
1043
1109
  function TooltipContent(_a) {
1044
1110
  var _b = _a, {
@@ -1050,7 +1116,7 @@ function TooltipContent(_a) {
1050
1116
  "sideOffset",
1051
1117
  "children"
1052
1118
  ]);
1053
- return /* @__PURE__ */ jsx13(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
1119
+ return /* @__PURE__ */ jsx14(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
1054
1120
  TooltipPrimitive.Content,
1055
1121
  __spreadProps(__spreadValues({
1056
1122
  "data-slot": "tooltip-content",
@@ -1062,14 +1128,14 @@ function TooltipContent(_a) {
1062
1128
  }, props), {
1063
1129
  children: [
1064
1130
  children,
1065
- /* @__PURE__ */ jsx13(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1131
+ /* @__PURE__ */ jsx14(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1066
1132
  ]
1067
1133
  })
1068
1134
  ) });
1069
1135
  }
1070
1136
 
1071
1137
  // src/components/ui/sidebar.tsx
1072
- import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1138
+ import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
1073
1139
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
1074
1140
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
1075
1141
  var SIDEBAR_WIDTH = "16rem";
@@ -1150,7 +1216,7 @@ function SidebarProvider(_a) {
1150
1216
  toggleSidebar
1151
1217
  ]
1152
1218
  );
1153
- return /* @__PURE__ */ jsx14(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx14(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx14(
1219
+ return /* @__PURE__ */ jsx15(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx15(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx15(
1154
1220
  "div",
1155
1221
  __spreadProps(__spreadValues({
1156
1222
  "data-slot": "sidebar-wrapper",
@@ -1183,7 +1249,7 @@ function Sidebar(_a) {
1183
1249
  ]);
1184
1250
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
1185
1251
  if (collapsible === "none") {
1186
- return /* @__PURE__ */ jsx14(
1252
+ return /* @__PURE__ */ jsx15(
1187
1253
  "div",
1188
1254
  __spreadProps(__spreadValues({
1189
1255
  "data-slot": "sidebar",
@@ -1197,7 +1263,7 @@ function Sidebar(_a) {
1197
1263
  );
1198
1264
  }
1199
1265
  if (isMobile) {
1200
- return /* @__PURE__ */ jsx14(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs12(
1266
+ return /* @__PURE__ */ jsx15(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs12(
1201
1267
  SheetContent,
1202
1268
  {
1203
1269
  "data-sidebar": "sidebar",
@@ -1210,10 +1276,10 @@ function Sidebar(_a) {
1210
1276
  side,
1211
1277
  children: [
1212
1278
  /* @__PURE__ */ jsxs12(SheetHeader, { className: "sr-only", children: [
1213
- /* @__PURE__ */ jsx14(SheetTitle, { children: "Sidebar" }),
1214
- /* @__PURE__ */ jsx14(SheetDescription, { children: "Displays the mobile sidebar." })
1279
+ /* @__PURE__ */ jsx15(SheetTitle, { children: "Sidebar" }),
1280
+ /* @__PURE__ */ jsx15(SheetDescription, { children: "Displays the mobile sidebar." })
1215
1281
  ] }),
1216
- /* @__PURE__ */ jsx14("div", { className: "flex h-full w-full flex-col", children })
1282
+ /* @__PURE__ */ jsx15("div", { className: "flex h-full w-full flex-col", children })
1217
1283
  ]
1218
1284
  }
1219
1285
  ) }));
@@ -1228,7 +1294,7 @@ function Sidebar(_a) {
1228
1294
  "data-side": side,
1229
1295
  "data-slot": "sidebar",
1230
1296
  children: [
1231
- /* @__PURE__ */ jsx14(
1297
+ /* @__PURE__ */ jsx15(
1232
1298
  "div",
1233
1299
  {
1234
1300
  "data-slot": "sidebar-gap",
@@ -1240,7 +1306,7 @@ function Sidebar(_a) {
1240
1306
  )
1241
1307
  }
1242
1308
  ),
1243
- /* @__PURE__ */ jsx14(
1309
+ /* @__PURE__ */ jsx15(
1244
1310
  "div",
1245
1311
  __spreadProps(__spreadValues({
1246
1312
  "data-slot": "sidebar-container",
@@ -1252,7 +1318,7 @@ function Sidebar(_a) {
1252
1318
  className
1253
1319
  )
1254
1320
  }, props), {
1255
- children: /* @__PURE__ */ jsx14(
1321
+ children: /* @__PURE__ */ jsx15(
1256
1322
  "div",
1257
1323
  {
1258
1324
  "data-sidebar": "sidebar",
@@ -1291,15 +1357,15 @@ function SidebarTrigger(_a) {
1291
1357
  }
1292
1358
  }, props), {
1293
1359
  children: [
1294
- openMobile ? /* @__PURE__ */ jsx14(X, { className: "size-[clamp(1.5rem,1.5rem,1.5rem)]" }) : /* @__PURE__ */ jsx14(Menu2, { className: "size-[clamp(1.5rem,1.5rem,1.5rem)]" }),
1295
- /* @__PURE__ */ jsx14("span", { className: "sr-only", children: "Toggle Sidebar" })
1360
+ openMobile ? /* @__PURE__ */ jsx15(X, { className: "size-[clamp(1.5rem,1.5rem,1.5rem)]" }) : /* @__PURE__ */ jsx15(Menu2, { className: "size-[clamp(1.5rem,1.5rem,1.5rem)]" }),
1361
+ /* @__PURE__ */ jsx15("span", { className: "sr-only", children: "Toggle Sidebar" })
1296
1362
  ]
1297
1363
  })
1298
1364
  );
1299
1365
  }
1300
1366
  function SidebarInset(_a) {
1301
1367
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1302
- return /* @__PURE__ */ jsx14(
1368
+ return /* @__PURE__ */ jsx15(
1303
1369
  "main",
1304
1370
  __spreadValues({
1305
1371
  "data-slot": "sidebar-inset",
@@ -1313,7 +1379,7 @@ function SidebarInset(_a) {
1313
1379
  }
1314
1380
  function SidebarContent(_a) {
1315
1381
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1316
- return /* @__PURE__ */ jsx14(
1382
+ return /* @__PURE__ */ jsx15(
1317
1383
  "div",
1318
1384
  __spreadValues({
1319
1385
  "data-slot": "sidebar-content",
@@ -1327,7 +1393,7 @@ function SidebarContent(_a) {
1327
1393
  }
1328
1394
  function SidebarGroup(_a) {
1329
1395
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1330
- return /* @__PURE__ */ jsx14(
1396
+ return /* @__PURE__ */ jsx15(
1331
1397
  "div",
1332
1398
  __spreadValues({
1333
1399
  "data-slot": "sidebar-group",
@@ -1341,7 +1407,7 @@ function SidebarGroup(_a) {
1341
1407
  }
1342
1408
  function SidebarMenu(_a) {
1343
1409
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1344
- return /* @__PURE__ */ jsx14(
1410
+ return /* @__PURE__ */ jsx15(
1345
1411
  "ul",
1346
1412
  __spreadValues({
1347
1413
  "data-slot": "sidebar-menu",
@@ -1352,7 +1418,7 @@ function SidebarMenu(_a) {
1352
1418
  }
1353
1419
  function SidebarMenuItem(_a) {
1354
1420
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1355
- return /* @__PURE__ */ jsx14(
1421
+ return /* @__PURE__ */ jsx15(
1356
1422
  "li",
1357
1423
  __spreadValues({
1358
1424
  "data-slot": "sidebar-menu-item",
@@ -1399,7 +1465,7 @@ function SidebarMenuButton(_a) {
1399
1465
  ]);
1400
1466
  const Comp = asChild ? Slot2 : "button";
1401
1467
  const { isMobile, state } = useSidebar();
1402
- const button = /* @__PURE__ */ jsx14(
1468
+ const button = /* @__PURE__ */ jsx15(
1403
1469
  Comp,
1404
1470
  __spreadValues({
1405
1471
  "data-slot": "sidebar-menu-button",
@@ -1421,8 +1487,8 @@ function SidebarMenuButton(_a) {
1421
1487
  };
1422
1488
  }
1423
1489
  return /* @__PURE__ */ jsxs12(Tooltip, { children: [
1424
- /* @__PURE__ */ jsx14(TooltipTrigger, { asChild: true, children: button }),
1425
- /* @__PURE__ */ jsx14(
1490
+ /* @__PURE__ */ jsx15(TooltipTrigger, { asChild: true, children: button }),
1491
+ /* @__PURE__ */ jsx15(
1426
1492
  TooltipContent,
1427
1493
  __spreadValues({
1428
1494
  side: "right",
@@ -1434,7 +1500,7 @@ function SidebarMenuButton(_a) {
1434
1500
  }
1435
1501
  function SidebarMenuSub(_a) {
1436
1502
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1437
- return /* @__PURE__ */ jsx14(
1503
+ return /* @__PURE__ */ jsx15(
1438
1504
  "ul",
1439
1505
  __spreadValues({
1440
1506
  "data-slot": "sidebar-menu-sub",
@@ -1453,7 +1519,7 @@ function SidebarMenuSubItem(_a) {
1453
1519
  } = _b, props = __objRest(_b, [
1454
1520
  "className"
1455
1521
  ]);
1456
- return /* @__PURE__ */ jsx14(
1522
+ return /* @__PURE__ */ jsx15(
1457
1523
  "li",
1458
1524
  __spreadValues({
1459
1525
  "data-slot": "sidebar-menu-sub-item",
@@ -1475,7 +1541,7 @@ function SidebarMenuSubButton(_a) {
1475
1541
  "className"
1476
1542
  ]);
1477
1543
  const Comp = asChild ? Slot2 : "a";
1478
- return /* @__PURE__ */ jsx14(
1544
+ return /* @__PURE__ */ jsx15(
1479
1545
  Comp,
1480
1546
  __spreadValues({
1481
1547
  "data-slot": "sidebar-menu-sub-button",
@@ -1499,14 +1565,14 @@ import { ChevronRight, CornerDownRight } from "lucide-react";
1499
1565
 
1500
1566
  // src/components/ui/collapsible.tsx
1501
1567
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
1502
- import { jsx as jsx15 } from "react/jsx-runtime";
1568
+ import { jsx as jsx16 } from "react/jsx-runtime";
1503
1569
  function Collapsible(_a) {
1504
1570
  var props = __objRest(_a, []);
1505
- return /* @__PURE__ */ jsx15(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
1571
+ return /* @__PURE__ */ jsx16(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
1506
1572
  }
1507
1573
  function CollapsibleTrigger2(_a) {
1508
1574
  var props = __objRest(_a, []);
1509
- return /* @__PURE__ */ jsx15(
1575
+ return /* @__PURE__ */ jsx16(
1510
1576
  CollapsiblePrimitive.CollapsibleTrigger,
1511
1577
  __spreadValues({
1512
1578
  "data-slot": "collapsible-trigger"
@@ -1515,7 +1581,7 @@ function CollapsibleTrigger2(_a) {
1515
1581
  }
1516
1582
  function CollapsibleContent2(_a) {
1517
1583
  var props = __objRest(_a, []);
1518
- return /* @__PURE__ */ jsx15(
1584
+ return /* @__PURE__ */ jsx16(
1519
1585
  CollapsiblePrimitive.CollapsibleContent,
1520
1586
  __spreadValues({
1521
1587
  "data-slot": "collapsible-content"
@@ -1524,36 +1590,36 @@ function CollapsibleContent2(_a) {
1524
1590
  }
1525
1591
 
1526
1592
  // src/components/custom/navbar/nav-main.tsx
1527
- import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1593
+ import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
1528
1594
  function NavMain({
1529
1595
  items,
1530
1596
  router
1531
1597
  }) {
1532
- return /* @__PURE__ */ jsx16(SidebarGroup, { children: /* @__PURE__ */ jsx16(SidebarMenu, { children: items.map((entry) => {
1598
+ return /* @__PURE__ */ jsx17(SidebarGroup, { children: /* @__PURE__ */ jsx17(SidebarMenu, { children: items.map((entry) => {
1533
1599
  const isGroupActive = treeContainsPath({
1534
1600
  data: entry.routes,
1535
1601
  base: entry.url,
1536
1602
  pathname: router.pathname
1537
1603
  });
1538
- return /* @__PURE__ */ jsx16(
1604
+ return /* @__PURE__ */ jsx17(
1539
1605
  Collapsible,
1540
1606
  {
1541
1607
  asChild: true,
1542
1608
  defaultOpen: isGroupActive,
1543
1609
  className: "group/collapsible group-data-[state=open]:bg-sidebar-accent group-data-[state=open]:text-sidebar-accent-foreground",
1544
1610
  children: /* @__PURE__ */ jsxs13(SidebarMenuItem, { children: [
1545
- /* @__PURE__ */ jsx16(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs13(
1611
+ /* @__PURE__ */ jsx17(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs13(
1546
1612
  SidebarMenuButton,
1547
1613
  {
1548
1614
  tooltip: entry.name,
1549
1615
  className: isGroupActive ? "bg-sidebar-accent text-sidebar-accent-foreground" : void 0,
1550
1616
  children: [
1551
- /* @__PURE__ */ jsx16("span", { className: "font-medium text-lg", children: entry.name }),
1552
- /* @__PURE__ */ jsx16(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
1617
+ /* @__PURE__ */ jsx17("span", { className: "font-medium text-lg", children: entry.name }),
1618
+ /* @__PURE__ */ jsx17(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
1553
1619
  ]
1554
1620
  }
1555
1621
  ) }),
1556
- /* @__PURE__ */ jsx16(CollapsibleContent2, { children: /* @__PURE__ */ jsx16(SidebarMenuSub, { children: renderMenu(
1622
+ /* @__PURE__ */ jsx17(CollapsibleContent2, { children: /* @__PURE__ */ jsx17(SidebarMenuSub, { children: renderMenu(
1557
1623
  entry.routes,
1558
1624
  entry.url,
1559
1625
  router
@@ -1570,30 +1636,30 @@ function renderMenu(data, base, router) {
1570
1636
  if (typeof routes === "string") {
1571
1637
  const fullPath = buildFullHref(base, routes);
1572
1638
  const active = isRouteActive(fullPath, router.pathname);
1573
- return /* @__PURE__ */ jsx16(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxs13(
1639
+ return /* @__PURE__ */ jsx17(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxs13(
1574
1640
  SidebarMenuSubButton,
1575
1641
  {
1576
1642
  onClick: () => router.push(fullPath),
1577
1643
  className: `cursor-pointer ${active ? "bg-sidebar-accent text-sidebar-accent-foreground" : ""}`,
1578
1644
  children: [
1579
- /* @__PURE__ */ jsx16(CornerDownRight, {}),
1580
- /* @__PURE__ */ jsx16("span", { className: "font-light text-sm", children: label })
1645
+ /* @__PURE__ */ jsx17(CornerDownRight, {}),
1646
+ /* @__PURE__ */ jsx17("span", { className: "font-light text-sm", children: label })
1581
1647
  ]
1582
1648
  }
1583
1649
  ) }, label);
1584
1650
  }
1585
- return /* @__PURE__ */ jsx16(
1651
+ return /* @__PURE__ */ jsx17(
1586
1652
  Collapsible,
1587
1653
  {
1588
1654
  asChild: true,
1589
1655
  defaultOpen: false,
1590
1656
  className: "group/collapsible group-data-[state=open]:bg-sidebar-accent group-data-[state=open]:text-sidebar-accent-foreground",
1591
1657
  children: /* @__PURE__ */ jsxs13(SidebarMenuItem, { children: [
1592
- /* @__PURE__ */ jsx16(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs13(SidebarMenuButton, { tooltip: label, children: [
1593
- /* @__PURE__ */ jsx16("span", { className: "font-medium text-base", children: label }),
1594
- /* @__PURE__ */ jsx16(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
1658
+ /* @__PURE__ */ jsx17(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs13(SidebarMenuButton, { tooltip: label, children: [
1659
+ /* @__PURE__ */ jsx17("span", { className: "font-medium text-base", children: label }),
1660
+ /* @__PURE__ */ jsx17(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
1595
1661
  ] }) }),
1596
- /* @__PURE__ */ jsx16(CollapsibleContent2, { children: /* @__PURE__ */ jsx16(SidebarMenuSub, { children: renderMenu(routes, base, router) }) })
1662
+ /* @__PURE__ */ jsx17(CollapsibleContent2, { children: /* @__PURE__ */ jsx17(SidebarMenuSub, { children: renderMenu(routes, base, router) }) })
1597
1663
  ] })
1598
1664
  },
1599
1665
  label
@@ -1602,14 +1668,14 @@ function renderMenu(data, base, router) {
1602
1668
  }
1603
1669
 
1604
1670
  // src/components/custom/navbar/app-sidebar.tsx
1605
- import { jsx as jsx17 } from "react/jsx-runtime";
1671
+ import { jsx as jsx18 } from "react/jsx-runtime";
1606
1672
  function AppSidebar(_a) {
1607
1673
  var _b = _a, { data, router } = _b, props = __objRest(_b, ["data", "router"]);
1608
- return /* @__PURE__ */ jsx17(Sidebar, __spreadProps(__spreadValues({ collapsible: "icon" }, props), { children: /* @__PURE__ */ jsx17(SidebarContent, { children: /* @__PURE__ */ jsx17(NavMain, { items: data, router }) }) }));
1674
+ return /* @__PURE__ */ jsx18(Sidebar, __spreadProps(__spreadValues({ collapsible: "icon" }, props), { children: /* @__PURE__ */ jsx18(SidebarContent, { children: /* @__PURE__ */ jsx18(NavMain, { items: data, router }) }) }));
1609
1675
  }
1610
1676
 
1611
1677
  // src/components/custom/navbar/mobileNavbar.tsx
1612
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
1678
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1613
1679
  function MobileNavbar({
1614
1680
  navbarData,
1615
1681
  userData,
@@ -1625,8 +1691,8 @@ function MobileNavbar({
1625
1691
  const safeData = navbarData || {};
1626
1692
  return /* @__PURE__ */ jsxs14(SidebarProvider, { className: "relative w-full", children: [
1627
1693
  /* @__PURE__ */ jsxs14("header", { className: "fixed top-0 left-0 right-0 z-50 flex bg-card h-12 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 justify-between px-4 w-full border-b-1", children: [
1628
- /* @__PURE__ */ jsx18(SidebarTrigger, {}),
1629
- /* @__PURE__ */ jsx18(
1694
+ /* @__PURE__ */ jsx19(SidebarTrigger, {}),
1695
+ /* @__PURE__ */ jsx19(
1630
1696
  "img",
1631
1697
  {
1632
1698
  src: ((_a = sidebarIcon_default) == null ? void 0 : _a.src) || sidebarIcon_default,
@@ -1636,16 +1702,16 @@ function MobileNavbar({
1636
1702
  }
1637
1703
  ),
1638
1704
  /* @__PURE__ */ jsxs14("div", { className: "flex gap-4 items-center", children: [
1639
- /* @__PURE__ */ jsx18(notifications_default, { notificationData, notificationHandler }),
1640
- /* @__PURE__ */ jsx18(user_default2, { userData, onLogout, hubIdChangeHandler, hubDetails, hubIdEnable })
1705
+ /* @__PURE__ */ jsx19(notifications_default, { notificationData, notificationHandler }),
1706
+ /* @__PURE__ */ jsx19(user_default2, { userData, onLogout, hubIdChangeHandler, hubDetails, hubIdEnable })
1641
1707
  ] })
1642
1708
  ] }),
1643
- /* @__PURE__ */ jsx18(SidebarInset, { className: "pt-12", children: /* @__PURE__ */ jsx18(AppSidebar, { data: safeData, router }) })
1709
+ /* @__PURE__ */ jsx19(SidebarInset, { className: "pt-12", children: /* @__PURE__ */ jsx19(AppSidebar, { data: safeData, router }) })
1644
1710
  ] });
1645
1711
  }
1646
1712
 
1647
1713
  // src/components/custom/navbar/navbar.tsx
1648
- import { jsx as jsx19 } from "react/jsx-runtime";
1714
+ import { jsx as jsx20 } from "react/jsx-runtime";
1649
1715
  function Navbar({
1650
1716
  navbarData,
1651
1717
  userData,
@@ -1663,7 +1729,7 @@ function Navbar({
1663
1729
  setMounted(true);
1664
1730
  }, []);
1665
1731
  if (!mounted) return null;
1666
- return /* @__PURE__ */ jsx19("div", { className: "baaz-custom-components-navbar", children: isMobile ? /* @__PURE__ */ jsx19(
1732
+ return /* @__PURE__ */ jsx20("div", { className: "baaz-custom-components-navbar", children: isMobile ? /* @__PURE__ */ jsx20(
1667
1733
  MobileNavbar,
1668
1734
  {
1669
1735
  navbarData,
@@ -1676,7 +1742,7 @@ function Navbar({
1676
1742
  hubIdChangeHandler,
1677
1743
  notificationHandler
1678
1744
  }
1679
- ) : /* @__PURE__ */ jsx19(
1745
+ ) : /* @__PURE__ */ jsx20(
1680
1746
  DesktopNavbar,
1681
1747
  {
1682
1748
  navbarData,
@@ -1698,14 +1764,14 @@ import { Slash } from "lucide-react";
1698
1764
  // src/components/ui/breadcrumb.tsx
1699
1765
  import { Slot as Slot3 } from "@radix-ui/react-slot";
1700
1766
  import { ChevronRight as ChevronRight2, MoreHorizontal } from "lucide-react";
1701
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
1767
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
1702
1768
  function Breadcrumb(_a) {
1703
1769
  var props = __objRest(_a, []);
1704
- return /* @__PURE__ */ jsx20("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
1770
+ return /* @__PURE__ */ jsx21("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
1705
1771
  }
1706
1772
  function BreadcrumbList(_a) {
1707
1773
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1708
- return /* @__PURE__ */ jsx20(
1774
+ return /* @__PURE__ */ jsx21(
1709
1775
  "ol",
1710
1776
  __spreadValues({
1711
1777
  "data-slot": "breadcrumb-list",
@@ -1718,7 +1784,7 @@ function BreadcrumbList(_a) {
1718
1784
  }
1719
1785
  function BreadcrumbItem(_a) {
1720
1786
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1721
- return /* @__PURE__ */ jsx20(
1787
+ return /* @__PURE__ */ jsx21(
1722
1788
  "li",
1723
1789
  __spreadValues({
1724
1790
  "data-slot": "breadcrumb-item",
@@ -1735,7 +1801,7 @@ function BreadcrumbLink(_a) {
1735
1801
  "className"
1736
1802
  ]);
1737
1803
  const Comp = asChild ? Slot3 : "a";
1738
- return /* @__PURE__ */ jsx20(
1804
+ return /* @__PURE__ */ jsx21(
1739
1805
  Comp,
1740
1806
  __spreadValues({
1741
1807
  "data-slot": "breadcrumb-link",
@@ -1751,7 +1817,7 @@ function BreadcrumbSeparator(_a) {
1751
1817
  "children",
1752
1818
  "className"
1753
1819
  ]);
1754
- return /* @__PURE__ */ jsx20(
1820
+ return /* @__PURE__ */ jsx21(
1755
1821
  "li",
1756
1822
  __spreadProps(__spreadValues({
1757
1823
  "data-slot": "breadcrumb-separator",
@@ -1759,13 +1825,13 @@ function BreadcrumbSeparator(_a) {
1759
1825
  "aria-hidden": "true",
1760
1826
  className: cn("[&>svg]:size-3.5", className)
1761
1827
  }, props), {
1762
- children: children != null ? children : /* @__PURE__ */ jsx20(ChevronRight2, {})
1828
+ children: children != null ? children : /* @__PURE__ */ jsx21(ChevronRight2, {})
1763
1829
  })
1764
1830
  );
1765
1831
  }
1766
1832
 
1767
1833
  // src/components/custom/breadcrumb/index.tsx
1768
- import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
1834
+ import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
1769
1835
  var CustomBreadcrumb = ({
1770
1836
  layoutName,
1771
1837
  includeFrom = 0,
@@ -1774,16 +1840,16 @@ var CustomBreadcrumb = ({
1774
1840
  const completeUrl = pathname.split("/").filter(Boolean);
1775
1841
  const urls = pathname.split("/").filter(Boolean).slice(includeFrom);
1776
1842
  const activeClassName = "text-primary";
1777
- return /* @__PURE__ */ jsx21(Breadcrumb, { children: /* @__PURE__ */ jsxs16(BreadcrumbList, { children: [
1778
- /* @__PURE__ */ jsx21(BreadcrumbItem, { children: /* @__PURE__ */ jsx21("h2", { className: "text-base", children: capitalizeFirstLetter(layoutName) }) }),
1779
- urls.length > 0 && /* @__PURE__ */ jsx21(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx21(Slash, { className: "!h-md !w-md" }) }),
1843
+ return /* @__PURE__ */ jsx22(Breadcrumb, { children: /* @__PURE__ */ jsxs16(BreadcrumbList, { children: [
1844
+ /* @__PURE__ */ jsx22(BreadcrumbItem, { children: /* @__PURE__ */ jsx22("h2", { className: "text-base", children: capitalizeFirstLetter(layoutName) }) }),
1845
+ urls.length > 0 && /* @__PURE__ */ jsx22(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx22(Slash, { className: "!h-md !w-md" }) }),
1780
1846
  urls.map((url, index) => {
1781
1847
  const href = buildUrl(
1782
1848
  completeUrl,
1783
1849
  index + includeFrom
1784
1850
  );
1785
1851
  return /* @__PURE__ */ jsxs16(BreadcrumbItem, { children: [
1786
- /* @__PURE__ */ jsx21(
1852
+ /* @__PURE__ */ jsx22(
1787
1853
  BreadcrumbLink,
1788
1854
  {
1789
1855
  href,
@@ -1791,7 +1857,7 @@ var CustomBreadcrumb = ({
1791
1857
  children: capitalizeFirstLetter(url)
1792
1858
  }
1793
1859
  ),
1794
- index < urls.length - 1 && /* @__PURE__ */ jsx21(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx21(Slash, { className: "!h-md !w-md" }) })
1860
+ index < urls.length - 1 && /* @__PURE__ */ jsx22(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx22(Slash, { className: "!h-md !w-md" }) })
1795
1861
  ] }, index);
1796
1862
  })
1797
1863
  ] }) });