@wso2/oxygen-ui 0.24.0 → 0.25.0

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.js CHANGED
@@ -640,7 +640,7 @@ var init_OxygenThemeBase = __esm({
640
640
  // package.json
641
641
  var package_default = {
642
642
  name: "@wso2/oxygen-ui",
643
- version: "0.24.0",
643
+ version: "0.25.0",
644
644
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
645
645
  type: "module",
646
646
  main: "./dist/index.js",
@@ -9541,34 +9541,1097 @@ ContextSwitcher.Group = ContextSwitcherGroup;
9541
9541
  ContextSwitcher.Option = ContextSwitcherOption;
9542
9542
  ContextSwitcher.displayName = "ContextSwitcher";
9543
9543
 
9544
+ // src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx
9545
+ import * as React35 from "react";
9546
+ import { styled as styled32, useThemeProps as useThemeProps3 } from "@mui/material/styles";
9547
+
9548
+ // src/components/HeaderBreadcrumbs/HeaderBreadcrumbsSegment.tsx
9549
+ import * as React34 from "react";
9550
+ import Box28 from "@mui/material/Box";
9551
+ import CircularProgress4 from "@mui/material/CircularProgress";
9552
+ import Divider3 from "@mui/material/Divider";
9553
+ import InputAdornment4 from "@mui/material/InputAdornment";
9554
+ import ListItemIcon from "@mui/material/ListItemIcon";
9555
+ import ListItemText from "@mui/material/ListItemText";
9556
+ import MenuItem6 from "@mui/material/MenuItem";
9557
+ import MenuList3 from "@mui/material/MenuList";
9558
+ import Popover4 from "@mui/material/Popover";
9559
+ import Skeleton from "@mui/material/Skeleton";
9560
+ import TextField6 from "@mui/material/TextField";
9561
+ import Tooltip11 from "@mui/material/Tooltip";
9562
+ import Typography17 from "@mui/material/Typography";
9563
+ import { styled as styled31 } from "@mui/material/styles";
9564
+ import { Check as Check3, ChevronDown as ChevronDown6, ChevronRight as ChevronRight4, Plus, Search as Search3, Settings } from "@wso2/oxygen-ui-icons-react";
9565
+ import { Fragment as Fragment17, jsx as jsx65, jsxs as jsxs29 } from "react/jsx-runtime";
9566
+ var AUTO_SEARCH_THRESHOLD = 6;
9567
+ var SegmentRoot = styled31("li", {
9568
+ name: "MuiHeaderBreadcrumbs",
9569
+ slot: "Segment",
9570
+ shouldForwardProp: (prop) => prop !== "ownerState"
9571
+ })({
9572
+ alignItems: "center",
9573
+ display: "inline-flex",
9574
+ minWidth: 0
9575
+ });
9576
+ var LABELED_ROW_HEIGHT = 32;
9577
+ var SegmentRow = styled31("span", {
9578
+ name: "MuiHeaderBreadcrumbs",
9579
+ slot: "Row"
9580
+ })({
9581
+ alignItems: "center",
9582
+ display: "inline-flex",
9583
+ height: LABELED_ROW_HEIGHT,
9584
+ minWidth: 0
9585
+ });
9586
+ var SegmentLabel = styled31("span", {
9587
+ name: "MuiHeaderBreadcrumbs",
9588
+ slot: "Label"
9589
+ })(({ theme }) => __spreadProps(__spreadValues({}, theme.typography.caption), {
9590
+ color: (theme.vars || theme).palette.text.secondary,
9591
+ fontSize: theme.typography.pxToRem(11),
9592
+ lineHeight: 1,
9593
+ marginBottom: 2,
9594
+ maxWidth: "100%",
9595
+ overflow: "hidden",
9596
+ textOverflow: "ellipsis",
9597
+ userSelect: "none",
9598
+ whiteSpace: "nowrap"
9599
+ }));
9600
+ var SegmentNameRow = styled31("span", {
9601
+ name: "MuiHeaderBreadcrumbs",
9602
+ slot: "NameRow"
9603
+ })(({ theme }) => ({
9604
+ alignItems: "center",
9605
+ display: "inline-flex",
9606
+ gap: theme.spacing(0.75),
9607
+ maxWidth: "100%",
9608
+ minWidth: 0
9609
+ }));
9610
+ var SEGMENT_RADIUS = 6;
9611
+ var SegmentName = styled31("button", {
9612
+ name: "MuiHeaderBreadcrumbs",
9613
+ slot: "Name",
9614
+ shouldForwardProp: (prop) => prop !== "ownerState"
9615
+ })(({ theme, ownerState }) => {
9616
+ const palette = (theme.vars || theme).palette;
9617
+ return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, theme.typography.body1), {
9618
+ alignItems: "flex-start",
9619
+ appearance: "none",
9620
+ background: "transparent",
9621
+ border: 0,
9622
+ // After the shorthand, so it does not reset these corners.
9623
+ borderRadius: SEGMENT_RADIUS,
9624
+ borderBottomRightRadius: 0,
9625
+ borderTopRightRadius: 0,
9626
+ color: palette.text.primary,
9627
+ cursor: "pointer",
9628
+ display: "inline-flex",
9629
+ flexDirection: "column",
9630
+ fontWeight: theme.typography.fontWeightRegular,
9631
+ justifyContent: "center",
9632
+ maxWidth: 220,
9633
+ minWidth: 0,
9634
+ padding: theme.spacing(0.5, 1)
9635
+ }), ownerState.labeled && { paddingTop: theme.spacing(0.875) }), {
9636
+ textDecoration: "none",
9637
+ whiteSpace: "nowrap",
9638
+ "&:hover": {
9639
+ backgroundColor: palette.action.selected
9640
+ },
9641
+ "&:focus": {
9642
+ outline: "none"
9643
+ },
9644
+ "&:focus-visible": {
9645
+ outline: `2px solid ${palette.primary.main}`,
9646
+ outlineOffset: 1
9647
+ }
9648
+ });
9649
+ });
9650
+ var SegmentText = styled31("span", {
9651
+ name: "MuiHeaderBreadcrumbs",
9652
+ slot: "Text"
9653
+ })({
9654
+ minWidth: 0,
9655
+ overflow: "hidden",
9656
+ textOverflow: "ellipsis",
9657
+ whiteSpace: "nowrap"
9658
+ });
9659
+ var SegmentIcon = styled31("span", {
9660
+ name: "MuiHeaderBreadcrumbs",
9661
+ slot: "Icon"
9662
+ })(({ theme }) => ({
9663
+ alignItems: "center",
9664
+ color: (theme.vars || theme).palette.text.secondary,
9665
+ display: "inline-flex",
9666
+ flex: "none",
9667
+ "& svg": {
9668
+ height: 18,
9669
+ width: 18
9670
+ }
9671
+ }));
9672
+ var VisuallyHidden = styled31("span")({
9673
+ border: 0,
9674
+ clip: "rect(0 0 0 0)",
9675
+ height: 1,
9676
+ margin: -1,
9677
+ overflow: "hidden",
9678
+ padding: 0,
9679
+ position: "absolute",
9680
+ whiteSpace: "nowrap",
9681
+ width: 1
9682
+ });
9683
+ var SegmentCaret = styled31("button", {
9684
+ name: "MuiHeaderBreadcrumbs",
9685
+ slot: "Caret",
9686
+ shouldForwardProp: (prop) => prop !== "ownerState"
9687
+ })(({ theme, ownerState }) => {
9688
+ const palette = (theme.vars || theme).palette;
9689
+ return {
9690
+ // With a label, sit level with the name under it rather than the middle of the pill.
9691
+ // The name's text centre is 16px above the bottom (4px padding + half its 24px line).
9692
+ alignItems: ownerState.labeled ? "flex-end" : "center",
9693
+ appearance: "none",
9694
+ backgroundColor: ownerState.open ? palette.action.selected : "transparent",
9695
+ border: 0,
9696
+ // After the shorthand, so it does not reset these corners.
9697
+ borderRadius: SEGMENT_RADIUS,
9698
+ borderBottomLeftRadius: 0,
9699
+ borderTopLeftRadius: 0,
9700
+ color: palette.text.secondary,
9701
+ cursor: "pointer",
9702
+ display: "inline-flex",
9703
+ flex: "none",
9704
+ justifyContent: "center",
9705
+ padding: 0,
9706
+ paddingBottom: ownerState.labeled ? 9 : 0,
9707
+ width: 20,
9708
+ "& svg": {
9709
+ transform: ownerState.open ? "rotate(180deg)" : "none",
9710
+ transition: theme.transitions.create("transform", {
9711
+ duration: theme.transitions.duration.shortest
9712
+ })
9713
+ },
9714
+ "&:hover": {
9715
+ backgroundColor: palette.action.selected,
9716
+ color: palette.text.primary
9717
+ },
9718
+ "&:focus": {
9719
+ outline: "none"
9720
+ },
9721
+ "&:focus-visible": {
9722
+ outline: `2px solid ${palette.primary.main}`,
9723
+ outlineOffset: 1
9724
+ }
9725
+ };
9726
+ });
9727
+ var SegmentGroup = styled31("span", {
9728
+ name: "MuiHeaderBreadcrumbs",
9729
+ slot: "Group",
9730
+ shouldForwardProp: (prop) => prop !== "ownerState"
9731
+ })(({ theme, ownerState }) => {
9732
+ const palette = (theme.vars || theme).palette;
9733
+ const attached = {
9734
+ // The name is a button, or a link when the entry has an href.
9735
+ '& > *:not(:hover):not([aria-expanded="true"])': {
9736
+ backgroundColor: palette.action.hover
9737
+ }
9738
+ };
9739
+ return __spreadValues({
9740
+ alignItems: "stretch",
9741
+ display: "inline-flex",
9742
+ gap: 1,
9743
+ minWidth: 0,
9744
+ "&:hover": attached
9745
+ }, ownerState.open ? attached : {});
9746
+ });
9747
+ var SegmentOpen = styled31("button", {
9748
+ name: "MuiHeaderBreadcrumbs",
9749
+ slot: "Open",
9750
+ shouldForwardProp: (prop) => prop !== "ownerState"
9751
+ })(({ theme, ownerState }) => {
9752
+ const palette = (theme.vars || theme).palette;
9753
+ return {
9754
+ alignItems: "center",
9755
+ appearance: "none",
9756
+ backgroundColor: ownerState.open ? palette.action.selected : "transparent",
9757
+ border: "1px dashed",
9758
+ borderColor: ownerState.open ? palette.text.secondary : palette.divider,
9759
+ borderRadius: "50%",
9760
+ boxSizing: "border-box",
9761
+ color: palette.text.secondary,
9762
+ cursor: "pointer",
9763
+ display: "inline-flex",
9764
+ flex: "none",
9765
+ height: 28,
9766
+ justifyContent: "center",
9767
+ marginLeft: theme.spacing(0.25),
9768
+ padding: 0,
9769
+ width: 28,
9770
+ "&:hover": {
9771
+ backgroundColor: palette.action.hover,
9772
+ borderColor: palette.text.secondary,
9773
+ color: palette.text.primary
9774
+ },
9775
+ "&:focus": {
9776
+ outline: "none"
9777
+ },
9778
+ "&:focus-visible": {
9779
+ outline: `2px solid ${palette.primary.main}`,
9780
+ outlineOffset: 1
9781
+ }
9782
+ };
9783
+ });
9784
+ var MenuHeader = styled31("div", {
9785
+ name: "MuiHeaderBreadcrumbs",
9786
+ slot: "MenuHeader"
9787
+ })(({ theme }) => __spreadProps(__spreadValues({}, theme.typography.caption), {
9788
+ // Smaller, muted and bold, so the title does not read as another entry.
9789
+ color: (theme.vars || theme).palette.text.secondary,
9790
+ fontWeight: theme.typography.fontWeightBold,
9791
+ letterSpacing: "0.04em",
9792
+ padding: theme.spacing(1.5, 2, 1),
9793
+ textTransform: "uppercase"
9794
+ }));
9795
+ var MenuStatus = styled31("div", {
9796
+ name: "MuiHeaderBreadcrumbs",
9797
+ slot: "MenuStatus"
9798
+ })(({ theme }) => ({
9799
+ alignItems: "center",
9800
+ color: (theme.vars || theme).palette.text.secondary,
9801
+ display: "flex",
9802
+ gap: theme.spacing(1),
9803
+ justifyContent: "center",
9804
+ padding: theme.spacing(2)
9805
+ }));
9806
+ var lower = (label) => label.toLowerCase();
9807
+ var isSearchable = (level) => {
9808
+ var _a;
9809
+ const searchable = (_a = level.searchable) != null ? _a : "auto";
9810
+ return searchable === "auto" ? level.items.length > AUTO_SEARCH_THRESHOLD : searchable;
9811
+ };
9812
+ var HeaderBreadcrumbsSegment = ({
9813
+ level,
9814
+ current,
9815
+ linkComponent,
9816
+ onNavigate,
9817
+ onSelect,
9818
+ onOpen,
9819
+ showLabel = false,
9820
+ showIcon = false,
9821
+ value = {},
9822
+ onCreate,
9823
+ onManage
9824
+ }) => {
9825
+ var _a, _b, _c, _d, _e, _f, _g;
9826
+ const [anchorEl, setAnchorEl] = React34.useState(null);
9827
+ const [query, setQuery] = React34.useState("");
9828
+ const listRef = React34.useRef(null);
9829
+ const menuId = React34.useId();
9830
+ const labelId = React34.useId();
9831
+ const open = Boolean(anchorEl);
9832
+ const levelName = lower(level.label);
9833
+ const selected = (_a = level.items.find((item) => item.id === level.selectedId)) != null ? _a : level.selectedItem && level.selectedItem.id === level.selectedId ? level.selectedItem : null;
9834
+ const searchable = isSearchable(level);
9835
+ const trimmed = query.trim().toLowerCase();
9836
+ const filtered = trimmed ? level.items.filter(
9837
+ (item) => {
9838
+ var _a2;
9839
+ return item.name.toLowerCase().includes(trimmed) || ((_a2 = item.description) == null ? void 0 : _a2.toLowerCase().includes(trimmed));
9840
+ }
9841
+ ) : level.items;
9842
+ const openMenu = (event) => {
9843
+ setAnchorEl(event.currentTarget);
9844
+ onOpen == null ? void 0 : onOpen(level.id);
9845
+ };
9846
+ const closeMenu = () => {
9847
+ setAnchorEl(null);
9848
+ setQuery("");
9849
+ };
9850
+ const pick = (item) => {
9851
+ closeMenu();
9852
+ if (item.id !== level.selectedId) {
9853
+ onSelect == null ? void 0 : onSelect(level.id, item);
9854
+ }
9855
+ };
9856
+ const focusFirstItem = () => {
9857
+ var _a2, _b2;
9858
+ (_b2 = (_a2 = listRef.current) == null ? void 0 : _a2.querySelector('[role="menuitemradio"]:not([aria-disabled="true"])')) == null ? void 0 : _b2.focus();
9859
+ };
9860
+ const onSearchKeyDown = (event) => {
9861
+ if (event.key === "ArrowDown") {
9862
+ event.preventDefault();
9863
+ focusFirstItem();
9864
+ } else if (event.key === "Enter" && filtered.length > 0) {
9865
+ event.preventDefault();
9866
+ const first = filtered.find((item) => !item.disabled);
9867
+ if (first) {
9868
+ pick(first);
9869
+ }
9870
+ }
9871
+ };
9872
+ let name;
9873
+ if (selected) {
9874
+ name = selected.name;
9875
+ } else if (level.loading) {
9876
+ name = /* @__PURE__ */ jsx65(Skeleton, { variant: "text", width: 80, "aria-label": `Loading ${levelName}` });
9877
+ } else {
9878
+ name = level.selectedId;
9879
+ }
9880
+ const nameLink = (selected == null ? void 0 : selected.href) ? { as: linkComponent, href: selected.href } : { type: "button" };
9881
+ const renderStatus = () => {
9882
+ var _a2;
9883
+ if (level.loading && level.items.length === 0) {
9884
+ return /* @__PURE__ */ jsxs29(MenuStatus, { role: "status", children: [
9885
+ /* @__PURE__ */ jsx65(CircularProgress4, { size: 16 }),
9886
+ /* @__PURE__ */ jsxs29(Typography17, { variant: "body2", children: [
9887
+ "Loading ",
9888
+ levelName,
9889
+ "\u2026"
9890
+ ] })
9891
+ ] });
9892
+ }
9893
+ if (level.error) {
9894
+ return /* @__PURE__ */ jsx65(MenuStatus, { role: "alert", children: /* @__PURE__ */ jsx65(Typography17, { variant: "body2", color: "error", children: level.error }) });
9895
+ }
9896
+ if (level.items.length === 0) {
9897
+ return /* @__PURE__ */ jsx65(MenuStatus, { children: /* @__PURE__ */ jsx65(Typography17, { variant: "body2", children: (_a2 = level.emptyText) != null ? _a2 : `No ${levelName} available` }) });
9898
+ }
9899
+ if (filtered.length === 0) {
9900
+ return /* @__PURE__ */ jsx65(MenuStatus, { children: /* @__PURE__ */ jsxs29(Typography17, { variant: "body2", children: [
9901
+ "No ",
9902
+ levelName,
9903
+ " matches \u201C",
9904
+ query.trim(),
9905
+ "\u201D"
9906
+ ] }) });
9907
+ }
9908
+ return null;
9909
+ };
9910
+ const status = renderStatus();
9911
+ const isEmpty = !level.selectedId;
9912
+ const openLabel = (_b = level.openLabel) != null ? _b : `Open ${levelName}`;
9913
+ const switchLabel = isEmpty ? openLabel : `Switch ${levelName}`;
9914
+ const actionContext = { levelId: level.id, value };
9915
+ const builtIn = (key, override, handler, defaults) => {
9916
+ var _a2;
9917
+ if (override === false) {
9918
+ return null;
9919
+ }
9920
+ const custom = override != null ? override : {};
9921
+ if (!handler && !custom.onClick && !custom.href) {
9922
+ return null;
9923
+ }
9924
+ return __spreadProps(__spreadValues(__spreadValues({}, defaults), custom), {
9925
+ key,
9926
+ onClick: (_a2 = custom.onClick) != null ? _a2 : ((_event, context) => handler == null ? void 0 : handler(context.levelId, context))
9927
+ });
9928
+ };
9929
+ const pluralName = lower((_c = level.pluralLabel) != null ? _c : `${level.label}s`);
9930
+ const actions = [
9931
+ builtIn("create", level.createAction, onCreate, {
9932
+ label: `New ${levelName}`,
9933
+ icon: /* @__PURE__ */ jsx65(Plus, { size: 16, "aria-hidden": "true" })
9934
+ }),
9935
+ builtIn("manage", level.manageAction, onManage, {
9936
+ label: `Manage ${pluralName}`,
9937
+ icon: /* @__PURE__ */ jsx65(Settings, { size: 16, "aria-hidden": "true" })
9938
+ }),
9939
+ ...(_d = level.actions) != null ? _d : []
9940
+ ].filter((action) => action !== null);
9941
+ const hasIcon = showIcon && level.icon != null;
9942
+ const describedBy = showLabel || hasIcon ? labelId : void 0;
9943
+ const icon = hasIcon ? /* @__PURE__ */ jsx65(Tooltip11, { title: level.label, enterDelay: 400, children: /* @__PURE__ */ jsx65(SegmentIcon, { "aria-hidden": "true", "data-level-icon": "", children: level.icon }) }) : null;
9944
+ const trigger = isEmpty ? /* @__PURE__ */ jsx65(Tooltip11, { title: openLabel, enterDelay: 400, children: /* @__PURE__ */ jsx65(
9945
+ SegmentOpen,
9946
+ {
9947
+ type: "button",
9948
+ ownerState: { open },
9949
+ "aria-label": openLabel,
9950
+ "aria-haspopup": "menu",
9951
+ "aria-expanded": open || void 0,
9952
+ "aria-controls": open ? menuId : void 0,
9953
+ "aria-describedby": describedBy,
9954
+ onClick: openMenu,
9955
+ children: /* @__PURE__ */ jsx65(ChevronRight4, { size: 14, "aria-hidden": "true" })
9956
+ }
9957
+ ) }) : /* @__PURE__ */ jsxs29(SegmentGroup, { ownerState: { open }, children: [
9958
+ /* @__PURE__ */ jsxs29(
9959
+ SegmentName,
9960
+ __spreadProps(__spreadValues({}, nameLink), {
9961
+ ownerState: { current, labeled: showLabel },
9962
+ "aria-current": current ? "page" : void 0,
9963
+ "aria-describedby": describedBy,
9964
+ title: selected == null ? void 0 : selected.name,
9965
+ onClick: () => {
9966
+ if (selected) {
9967
+ onNavigate == null ? void 0 : onNavigate(level.id, selected);
9968
+ }
9969
+ },
9970
+ children: [
9971
+ showLabel && /* @__PURE__ */ jsx65(SegmentLabel, { "aria-hidden": "true", children: level.label }),
9972
+ /* @__PURE__ */ jsxs29(SegmentNameRow, { children: [
9973
+ icon,
9974
+ /* @__PURE__ */ jsx65(SegmentText, { children: name })
9975
+ ] })
9976
+ ]
9977
+ })
9978
+ ),
9979
+ /* @__PURE__ */ jsx65(Tooltip11, { title: switchLabel, enterDelay: 400, children: /* @__PURE__ */ jsx65(
9980
+ SegmentCaret,
9981
+ {
9982
+ type: "button",
9983
+ ownerState: { open, labeled: showLabel },
9984
+ "aria-label": switchLabel,
9985
+ "aria-haspopup": "menu",
9986
+ "aria-expanded": open || void 0,
9987
+ "aria-controls": open ? menuId : void 0,
9988
+ onClick: openMenu,
9989
+ children: /* @__PURE__ */ jsx65(ChevronDown6, { size: 14, "aria-hidden": "true" })
9990
+ }
9991
+ ) })
9992
+ ] });
9993
+ return /* @__PURE__ */ jsxs29(SegmentRoot, { "data-level": level.id, children: [
9994
+ describedBy && /* @__PURE__ */ jsx65(VisuallyHidden, { id: labelId, children: level.label }),
9995
+ showLabel && isEmpty ? /* @__PURE__ */ jsx65(SegmentRow, { children: trigger }) : trigger,
9996
+ /* @__PURE__ */ jsxs29(
9997
+ Popover4,
9998
+ {
9999
+ open,
10000
+ anchorEl,
10001
+ onClose: closeMenu,
10002
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
10003
+ transformOrigin: { vertical: "top", horizontal: "left" },
10004
+ slotProps: { paper: { sx: { mt: 0.5, minWidth: 260, maxWidth: 360 } } },
10005
+ children: [
10006
+ /* @__PURE__ */ jsx65(MenuHeader, { children: /* @__PURE__ */ jsx65(Typography17, { variant: "inherit", component: "p", children: (_e = level.menuTitle) != null ? _e : switchLabel }) }),
10007
+ searchable && /* @__PURE__ */ jsx65(Box28, { sx: { px: 1.5, pb: 1 }, children: /* @__PURE__ */ jsx65(
10008
+ TextField6,
10009
+ {
10010
+ autoFocus: true,
10011
+ fullWidth: true,
10012
+ size: "small",
10013
+ value: query,
10014
+ placeholder: (_f = level.searchPlaceholder) != null ? _f : `Find ${levelName}`,
10015
+ onChange: (event) => setQuery(event.target.value),
10016
+ onKeyDown: onSearchKeyDown,
10017
+ slotProps: {
10018
+ htmlInput: { "aria-label": (_g = level.searchPlaceholder) != null ? _g : `Find ${levelName}` },
10019
+ input: {
10020
+ startAdornment: /* @__PURE__ */ jsx65(InputAdornment4, { position: "start", children: /* @__PURE__ */ jsx65(Search3, { size: 16, "aria-hidden": "true" }) })
10021
+ }
10022
+ }
10023
+ }
10024
+ ) }),
10025
+ /* @__PURE__ */ jsx65(Divider3, {}),
10026
+ status != null ? status : /* @__PURE__ */ jsx65(
10027
+ MenuList3,
10028
+ {
10029
+ id: menuId,
10030
+ ref: listRef,
10031
+ dense: true,
10032
+ autoFocusItem: open && !searchable,
10033
+ "aria-label": switchLabel,
10034
+ sx: { maxHeight: 320, overflowY: "auto", py: 0.5 },
10035
+ children: filtered.map((item) => {
10036
+ const isSelected = item.id === level.selectedId;
10037
+ return /* @__PURE__ */ jsxs29(
10038
+ MenuItem6,
10039
+ __spreadProps(__spreadValues({
10040
+ role: "menuitemradio",
10041
+ "aria-checked": isSelected,
10042
+ selected: isSelected,
10043
+ disabled: item.disabled
10044
+ }, item.href ? { component: linkComponent, href: item.href } : {}), {
10045
+ onClick: () => pick(item),
10046
+ children: [
10047
+ item.avatar && /* @__PURE__ */ jsx65(ListItemIcon, { children: item.avatar }),
10048
+ /* @__PURE__ */ jsx65(
10049
+ ListItemText,
10050
+ {
10051
+ primary: item.name,
10052
+ secondary: item.description,
10053
+ slotProps: { primary: { noWrap: true }, secondary: { noWrap: true } }
10054
+ }
10055
+ ),
10056
+ /* @__PURE__ */ jsx65(
10057
+ Box28,
10058
+ {
10059
+ component: "span",
10060
+ sx: { display: "inline-flex", ml: 1, visibility: isSelected ? "visible" : "hidden" },
10061
+ children: /* @__PURE__ */ jsx65(Check3, { size: 16, "aria-hidden": "true" })
10062
+ }
10063
+ )
10064
+ ]
10065
+ }),
10066
+ item.id
10067
+ );
10068
+ })
10069
+ }
10070
+ ),
10071
+ actions.length > 0 && /* @__PURE__ */ jsxs29(Fragment17, { children: [
10072
+ /* @__PURE__ */ jsx65(Divider3, {}),
10073
+ /* @__PURE__ */ jsx65(MenuList3, { dense: true, "aria-label": `${level.label} actions`, sx: { py: 0.5 }, children: actions.map((action) => /* @__PURE__ */ jsxs29(
10074
+ MenuItem6,
10075
+ __spreadProps(__spreadValues({
10076
+ "data-action": action.key
10077
+ }, action.href ? { component: linkComponent, href: action.href } : {}), {
10078
+ onClick: (event) => {
10079
+ var _a2;
10080
+ closeMenu();
10081
+ (_a2 = action.onClick) == null ? void 0 : _a2.call(action, event, actionContext);
10082
+ },
10083
+ children: [
10084
+ action.icon && /* @__PURE__ */ jsx65(ListItemIcon, { children: action.icon }),
10085
+ /* @__PURE__ */ jsx65(ListItemText, { primary: action.label })
10086
+ ]
10087
+ }),
10088
+ action.key
10089
+ )) })
10090
+ ] })
10091
+ ]
10092
+ }
10093
+ )
10094
+ ] });
10095
+ };
10096
+ HeaderBreadcrumbsSegment.displayName = "HeaderBreadcrumbsSegment";
10097
+
10098
+ // src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx
10099
+ import { jsx as jsx66, jsxs as jsxs30 } from "react/jsx-runtime";
10100
+ var HeaderBreadcrumbsRoot = styled32("nav", {
10101
+ name: "MuiHeaderBreadcrumbs",
10102
+ slot: "Root"
10103
+ })({
10104
+ display: "flex",
10105
+ minWidth: 0
10106
+ });
10107
+ var HeaderBreadcrumbsList = styled32("ol", {
10108
+ name: "MuiHeaderBreadcrumbs",
10109
+ slot: "List",
10110
+ shouldForwardProp: (prop) => prop !== "ownerState"
10111
+ })(({ ownerState }) => ({
10112
+ // With labels, segments are taller, so line everything up on the name row.
10113
+ alignItems: ownerState.labeled ? "flex-end" : "center",
10114
+ display: "flex",
10115
+ listStyle: "none",
10116
+ margin: 0,
10117
+ minWidth: 0,
10118
+ padding: 0
10119
+ }));
10120
+ var HeaderBreadcrumbsSeparator = styled32("li", {
10121
+ name: "MuiHeaderBreadcrumbs",
10122
+ slot: "Separator",
10123
+ shouldForwardProp: (prop) => prop !== "ownerState"
10124
+ })(({ theme, ownerState }) => __spreadProps(__spreadValues({}, theme.typography.body1), {
10125
+ color: (theme.vars || theme).palette.text.secondary,
10126
+ flex: "none",
10127
+ // Centre the slash on the name row under the labels.
10128
+ lineHeight: ownerState.labeled ? `${LABELED_ROW_HEIGHT}px` : void 0,
10129
+ padding: theme.spacing(0, 0.5),
10130
+ userSelect: "none"
10131
+ }));
10132
+ var HeaderBreadcrumbs = React35.forwardRef(
10133
+ function HeaderBreadcrumbs2(inProps, ref) {
10134
+ const _a = useThemeProps3({ props: inProps, name: "MuiHeaderBreadcrumbs" }), {
10135
+ levels,
10136
+ onNavigate,
10137
+ onSelect,
10138
+ onOpen,
10139
+ onCreate,
10140
+ onManage,
10141
+ showLabels = false,
10142
+ showIcons = true,
10143
+ linkComponent = "a",
10144
+ separator = "/",
10145
+ "aria-label": ariaLabel = "Breadcrumb"
10146
+ } = _a, rest = __objRest(_a, [
10147
+ "levels",
10148
+ "onNavigate",
10149
+ "onSelect",
10150
+ "onOpen",
10151
+ "onCreate",
10152
+ "onManage",
10153
+ "showLabels",
10154
+ "showIcons",
10155
+ "linkComponent",
10156
+ "separator",
10157
+ "aria-label"
10158
+ ]);
10159
+ const firstEmpty = levels.findIndex((level) => !level.selectedId);
10160
+ const selectedCount = firstEmpty === -1 ? levels.length : firstEmpty;
10161
+ const visibleCount = Math.min(levels.length, selectedCount + 1);
10162
+ const visible = levels.slice(0, visibleCount);
10163
+ const lastSelectedIndex = selectedCount - 1;
10164
+ const value = {};
10165
+ levels.slice(0, selectedCount).forEach((level) => {
10166
+ value[level.id] = level.selectedId;
10167
+ });
10168
+ return /* @__PURE__ */ jsx66(HeaderBreadcrumbsRoot, __spreadProps(__spreadValues({ ref, "aria-label": ariaLabel }, rest), { children: /* @__PURE__ */ jsx66(HeaderBreadcrumbsList, { ownerState: { labeled: showLabels }, children: visible.map((level, index) => /* @__PURE__ */ jsxs30(React35.Fragment, { children: [
10169
+ index > 0 && /* @__PURE__ */ jsx66(HeaderBreadcrumbsSeparator, { "aria-hidden": "true", ownerState: { labeled: showLabels }, children: separator }),
10170
+ /* @__PURE__ */ jsx66(
10171
+ HeaderBreadcrumbsSegment,
10172
+ {
10173
+ level,
10174
+ current: index === lastSelectedIndex,
10175
+ linkComponent,
10176
+ showLabel: showLabels,
10177
+ showIcon: showIcons && !showLabels,
10178
+ value,
10179
+ onCreate,
10180
+ onManage,
10181
+ onNavigate,
10182
+ onSelect,
10183
+ onOpen
10184
+ }
10185
+ )
10186
+ ] }, level.id)) }) }));
10187
+ }
10188
+ );
10189
+ HeaderBreadcrumbs.displayName = "HeaderBreadcrumbs";
10190
+
10191
+ // src/components/HeaderBreadcrumbs/useHeaderBreadcrumbs.ts
10192
+ import * as React37 from "react";
10193
+
10194
+ // src/components/HeaderBreadcrumbs/persistence.ts
10195
+ import * as React36 from "react";
10196
+ var HEADER_BREADCRUMBS_STORAGE_KEY = "oxygen-ui:header-breadcrumbs";
10197
+ var LOCAL_CHANGE_EVENT = "oxygen-ui:header-breadcrumbs-change";
10198
+ var defaultStorage = () => {
10199
+ try {
10200
+ return typeof window === "undefined" ? null : window.localStorage;
10201
+ } catch (e) {
10202
+ return null;
10203
+ }
10204
+ };
10205
+ var resolve = (options = {}) => {
10206
+ var _a, _b;
10207
+ return {
10208
+ key: (_a = options.key) != null ? _a : HEADER_BREADCRUMBS_STORAGE_KEY,
10209
+ storage: (_b = options.storage) != null ? _b : defaultStorage()
10210
+ };
10211
+ };
10212
+ var isRecordOfStrings = (input) => typeof input === "object" && input !== null && Object.values(input).every((entry) => typeof entry === "string");
10213
+ var parse = (raw) => {
10214
+ if (!raw) {
10215
+ return null;
10216
+ }
10217
+ try {
10218
+ const data = JSON.parse(raw);
10219
+ if (data.version !== 1 || !isRecordOfStrings(data.value)) {
10220
+ return null;
10221
+ }
10222
+ return { version: 1, value: data.value, updatedAt: Number(data.updatedAt) || 0 };
10223
+ } catch (e) {
10224
+ return null;
10225
+ }
10226
+ };
10227
+ var readHeaderBreadcrumbsState = (options) => {
10228
+ var _a;
10229
+ const { key, storage } = resolve(options);
10230
+ try {
10231
+ return parse((_a = storage == null ? void 0 : storage.getItem(key)) != null ? _a : null);
10232
+ } catch (e) {
10233
+ return null;
10234
+ }
10235
+ };
10236
+ var writeHeaderBreadcrumbsState = (value, options) => {
10237
+ const { key, storage } = resolve(options);
10238
+ if (!storage) {
10239
+ return;
10240
+ }
10241
+ const next = {
10242
+ version: 1,
10243
+ value,
10244
+ updatedAt: Date.now()
10245
+ };
10246
+ try {
10247
+ storage.setItem(key, JSON.stringify(next));
10248
+ } catch (e) {
10249
+ return;
10250
+ }
10251
+ if (typeof window !== "undefined") {
10252
+ window.dispatchEvent(new CustomEvent(LOCAL_CHANGE_EVENT, { detail: { key } }));
10253
+ }
10254
+ };
10255
+ var clearHeaderBreadcrumbsState = (options) => {
10256
+ const { key, storage } = resolve(options);
10257
+ try {
10258
+ storage == null ? void 0 : storage.removeItem(key);
10259
+ } catch (e) {
10260
+ return;
10261
+ }
10262
+ if (typeof window !== "undefined") {
10263
+ window.dispatchEvent(new CustomEvent(LOCAL_CHANGE_EVENT, { detail: { key } }));
10264
+ }
10265
+ };
10266
+ var subscribeHeaderBreadcrumbsState = (listener, options) => {
10267
+ if (typeof window === "undefined") {
10268
+ return () => void 0;
10269
+ }
10270
+ const { key, storage } = resolve(options);
10271
+ const onStorage = (event) => {
10272
+ if (event.key === key && (!storage || event.storageArea === storage)) {
10273
+ listener(parse(event.newValue));
10274
+ }
10275
+ };
10276
+ const onLocal = (event) => {
10277
+ var _a;
10278
+ if (((_a = event.detail) == null ? void 0 : _a.key) === key) {
10279
+ listener(readHeaderBreadcrumbsState(options));
10280
+ }
10281
+ };
10282
+ window.addEventListener("storage", onStorage);
10283
+ window.addEventListener(LOCAL_CHANGE_EVENT, onLocal);
10284
+ return () => {
10285
+ window.removeEventListener("storage", onStorage);
10286
+ window.removeEventListener(LOCAL_CHANGE_EVENT, onLocal);
10287
+ };
10288
+ };
10289
+ var EMPTY_VALUE = Object.freeze({});
10290
+ var useHeaderBreadcrumbsValue = (options) => {
10291
+ const key = options == null ? void 0 : options.key;
10292
+ const storage = options == null ? void 0 : options.storage;
10293
+ const read = React36.useCallback(
10294
+ () => {
10295
+ var _a, _b;
10296
+ return (_b = (_a = readHeaderBreadcrumbsState({ key, storage })) == null ? void 0 : _a.value) != null ? _b : EMPTY_VALUE;
10297
+ },
10298
+ [key, storage]
10299
+ );
10300
+ const [value, setValue] = React36.useState(read);
10301
+ React36.useEffect(() => {
10302
+ const update = (next) => setValue((prev) => JSON.stringify(prev) === JSON.stringify(next) ? prev : next);
10303
+ update(read());
10304
+ return subscribeHeaderBreadcrumbsState(
10305
+ (state) => {
10306
+ var _a;
10307
+ return update((_a = state == null ? void 0 : state.value) != null ? _a : EMPTY_VALUE);
10308
+ },
10309
+ { key, storage }
10310
+ );
10311
+ }, [read, key, storage]);
10312
+ return value;
10313
+ };
10314
+
10315
+ // src/components/HeaderBreadcrumbs/useHeaderBreadcrumbs.ts
10316
+ var errorMessage = (error) => error instanceof Error ? error.message : "Something went wrong. Try again.";
10317
+ var parentsOf = (levelIds, value, index) => {
10318
+ const parents = {};
10319
+ levelIds.slice(0, index).forEach((id) => {
10320
+ parents[id] = value[id];
10321
+ });
10322
+ return parents;
10323
+ };
10324
+ var keyOf = (levelIds, value, index) => JSON.stringify(levelIds.slice(0, index).map((id) => {
10325
+ var _a;
10326
+ return (_a = value[id]) != null ? _a : null;
10327
+ }));
10328
+ var useHeaderBreadcrumbs = (options) => {
10329
+ const {
10330
+ levels: configs,
10331
+ value: controlledValue,
10332
+ defaultValue,
10333
+ onNavigate,
10334
+ truncateOnNavigate = true,
10335
+ refreshOnOpen = false,
10336
+ persist = false
10337
+ } = options;
10338
+ const persistOptions = persist === false ? null : persist === true ? {} : persist;
10339
+ const persistKey = persistOptions == null ? void 0 : persistOptions.key;
10340
+ const persistStorage = persistOptions == null ? void 0 : persistOptions.storage;
10341
+ const persistSync = persistOptions ? persistOptions.sync !== false : false;
10342
+ const persistConfig = React37.useMemo(
10343
+ () => persistOptions ? { key: persistKey, storage: persistStorage } : null,
10344
+ // eslint-disable-next-line react-hooks/exhaustive-deps
10345
+ [persistOptions !== null, persistKey, persistStorage]
10346
+ );
10347
+ const [initialStored] = React37.useState(
10348
+ () => persistConfig ? readHeaderBreadcrumbsState(persistConfig) : null
10349
+ );
10350
+ const latest = React37.useRef(options);
10351
+ latest.current = options;
10352
+ const levelIdsKey = configs.map((config) => config.id).join("\0");
10353
+ const levelIds = React37.useMemo(
10354
+ () => levelIdsKey.length === 0 ? [] : levelIdsKey.split("\0"),
10355
+ [levelIdsKey]
10356
+ );
10357
+ const [uncontrolledValue, setUncontrolledValue] = React37.useState(
10358
+ () => {
10359
+ var _a, _b;
10360
+ return (_b = (_a = initialStored == null ? void 0 : initialStored.value) != null ? _a : defaultValue) != null ? _b : {};
10361
+ }
10362
+ );
10363
+ const isControlled = controlledValue !== void 0;
10364
+ const rawValue = isControlled ? controlledValue : uncontrolledValue;
10365
+ const value = React37.useMemo(() => normalizeValue(levelIds, rawValue), [levelIds, rawValue]);
10366
+ const valueRef = React37.useRef(value);
10367
+ valueRef.current = value;
10368
+ const [entries, setEntries] = React37.useState({});
10369
+ const controllers = React37.useRef({});
10370
+ const startedKeys = React37.useRef({});
10371
+ const commit = React37.useCallback(
10372
+ (next, change) => {
10373
+ var _a, _b;
10374
+ if (!isControlled) {
10375
+ setUncontrolledValue(next);
10376
+ }
10377
+ (_b = (_a = latest.current).onChange) == null ? void 0 : _b.call(_a, next, change);
10378
+ },
10379
+ [isControlled]
10380
+ );
10381
+ const load = React37.useCallback(
10382
+ (levelId) => {
10383
+ var _a;
10384
+ const index = levelIds.indexOf(levelId);
10385
+ const config = latest.current.levels[index];
10386
+ if (index < 0 || !(config == null ? void 0 : config.fetchItems)) {
10387
+ return Promise.resolve();
10388
+ }
10389
+ const current = valueRef.current;
10390
+ const key = keyOf(levelIds, current, index);
10391
+ (_a = controllers.current[levelId]) == null ? void 0 : _a.abort();
10392
+ const controller = new AbortController();
10393
+ controllers.current[levelId] = controller;
10394
+ startedKeys.current[levelId] = key;
10395
+ setEntries((prev) => {
10396
+ var _a2;
10397
+ return __spreadProps(__spreadValues({}, prev), {
10398
+ [levelId]: {
10399
+ key,
10400
+ // Keep the list on screen while the same parents load again.
10401
+ items: ((_a2 = prev[levelId]) == null ? void 0 : _a2.key) === key ? prev[levelId].items : [],
10402
+ loading: true
10403
+ }
10404
+ });
10405
+ });
10406
+ return config.fetchItems({ parents: parentsOf(levelIds, current, index), signal: controller.signal }).then(
10407
+ (items) => {
10408
+ if (controller.signal.aborted) {
10409
+ return;
10410
+ }
10411
+ setEntries((prev) => __spreadProps(__spreadValues({}, prev), { [levelId]: { key, items, loading: false } }));
10412
+ },
10413
+ (error) => {
10414
+ if (controller.signal.aborted) {
10415
+ return;
10416
+ }
10417
+ const format = latest.current.formatError;
10418
+ setEntries((prev) => {
10419
+ var _a2;
10420
+ return __spreadProps(__spreadValues({}, prev), {
10421
+ [levelId]: {
10422
+ key,
10423
+ items: ((_a2 = prev[levelId]) == null ? void 0 : _a2.key) === key ? prev[levelId].items : [],
10424
+ loading: false,
10425
+ error: format ? format(error, levelId) : errorMessage(error)
10426
+ }
10427
+ });
10428
+ });
10429
+ }
10430
+ );
10431
+ },
10432
+ [levelIds]
10433
+ );
10434
+ const selectedCount = Object.keys(value).length;
10435
+ const plan = levelIds.map(
10436
+ (id, index) => {
10437
+ var _a;
10438
+ return index <= selectedCount && ((_a = configs[index]) == null ? void 0 : _a.fetchItems) ? keyOf(levelIds, value, index) : null;
10439
+ }
10440
+ );
10441
+ const planKey = JSON.stringify(plan);
10442
+ React37.useEffect(() => {
10443
+ JSON.parse(planKey).forEach((key, index) => {
10444
+ const levelId = levelIds[index];
10445
+ if (key !== null && startedKeys.current[levelId] !== key) {
10446
+ void load(levelId);
10447
+ }
10448
+ });
10449
+ }, [planKey, levelIds, load]);
10450
+ React37.useEffect(
10451
+ () => () => {
10452
+ Object.values(controllers.current).forEach((controller) => controller.abort());
10453
+ controllers.current = {};
10454
+ startedKeys.current = {};
10455
+ },
10456
+ []
10457
+ );
10458
+ const resolvedLevels = configs.map((config, index) => {
10459
+ var _a, _b, _c;
10460
+ const display = __spreadProps(__spreadValues({}, config), { items: [] });
10461
+ delete display.fetchItems;
10462
+ const fixedItems = config.items;
10463
+ const key = keyOf(levelIds, value, index);
10464
+ const entry = entries[config.id];
10465
+ const fresh = entry && entry.key === key ? entry : void 0;
10466
+ const waiting = Boolean(config.fetchItems) && index <= selectedCount && !fresh;
10467
+ const selectedId = (_a = value[config.id]) != null ? _a : null;
10468
+ return __spreadProps(__spreadValues({}, display), {
10469
+ items: (_c = (_b = fresh == null ? void 0 : fresh.items) != null ? _b : fixedItems) != null ? _c : [],
10470
+ selectedId,
10471
+ loading: waiting || Boolean(fresh == null ? void 0 : fresh.loading),
10472
+ error: fresh == null ? void 0 : fresh.error
10473
+ });
10474
+ });
10475
+ const selected = {};
10476
+ resolvedLevels.forEach((level) => {
10477
+ var _a, _b;
10478
+ selected[level.id] = (_b = level.items.find((item) => item.id === level.selectedId)) != null ? _b : (
10479
+ // The fallback only stands in for the entry that is selected now.
10480
+ level.selectedId != null && ((_a = level.selectedItem) == null ? void 0 : _a.id) === level.selectedId ? level.selectedItem : null
10481
+ );
10482
+ });
10483
+ const snapshotKey = JSON.stringify(value);
10484
+ React37.useEffect(() => {
10485
+ if (!persistConfig) {
10486
+ return;
10487
+ }
10488
+ const current = readHeaderBreadcrumbsState(persistConfig);
10489
+ if (current && JSON.stringify(current.value) === snapshotKey) {
10490
+ return;
10491
+ }
10492
+ writeHeaderBreadcrumbsState(JSON.parse(snapshotKey), persistConfig);
10493
+ }, [snapshotKey, persistConfig]);
10494
+ React37.useEffect(() => {
10495
+ if (!persistConfig || !persistSync) {
10496
+ return void 0;
10497
+ }
10498
+ return subscribeHeaderBreadcrumbsState((state) => {
10499
+ var _a, _b, _c;
10500
+ const next = normalizeValue(levelIds, (_a = state == null ? void 0 : state.value) != null ? _a : {});
10501
+ if (JSON.stringify(next) === JSON.stringify(valueRef.current)) {
10502
+ return;
10503
+ }
10504
+ if (!latest.current.value) {
10505
+ setUncontrolledValue(next);
10506
+ }
10507
+ (_c = (_b = latest.current).onChange) == null ? void 0 : _c.call(_b, next, { type: "sync" });
10508
+ }, persistConfig);
10509
+ }, [persistConfig, persistSync, levelIds]);
10510
+ const findItem = (levelId, itemId) => {
10511
+ var _a;
10512
+ return (_a = resolvedLevels.find((level) => level.id === levelId)) == null ? void 0 : _a.items.find((item) => item.id === itemId);
10513
+ };
10514
+ const select = (levelId, itemId) => {
10515
+ if (!levelIds.includes(levelId) || value[levelId] === itemId) {
10516
+ return;
10517
+ }
10518
+ commit(selectLevel(levelIds, value, levelId, itemId), {
10519
+ type: "select",
10520
+ levelId,
10521
+ item: findItem(levelId, itemId)
10522
+ });
10523
+ };
10524
+ const clear = (levelId) => {
10525
+ if (!levelIds.includes(levelId)) {
10526
+ return;
10527
+ }
10528
+ commit(clearFrom(levelIds, value, levelId), { type: "clear", levelId });
10529
+ };
10530
+ const setValue = (next) => {
10531
+ commit(normalizeValue(levelIds, next), { type: "set" });
10532
+ };
10533
+ const refresh = (levelId) => {
10534
+ if (levelId) {
10535
+ return load(levelId);
10536
+ }
10537
+ const reachable = levelIds.filter((_, index) => index <= selectedCount);
10538
+ return Promise.all(reachable.map((id) => load(id))).then(() => void 0);
10539
+ };
10540
+ const setItems = (levelId, next) => {
10541
+ var _a, _b, _c;
10542
+ const index = levelIds.indexOf(levelId);
10543
+ if (index < 0) {
10544
+ return;
10545
+ }
10546
+ const key = keyOf(levelIds, valueRef.current, index);
10547
+ const fixed = (_b = (_a = latest.current.levels[index]) == null ? void 0 : _a.items) != null ? _b : [];
10548
+ if (startedKeys.current[levelId] === key) {
10549
+ (_c = controllers.current[levelId]) == null ? void 0 : _c.abort();
10550
+ delete controllers.current[levelId];
10551
+ }
10552
+ setEntries((prev) => {
10553
+ var _a2, _b2;
10554
+ const entry = ((_a2 = prev[levelId]) == null ? void 0 : _a2.key) === key ? prev[levelId] : void 0;
10555
+ const items = typeof next === "function" ? next((_b2 = entry == null ? void 0 : entry.items) != null ? _b2 : fixed) : next;
10556
+ return __spreadProps(__spreadValues({}, prev), { [levelId]: { key, items, loading: false } });
10557
+ });
10558
+ };
10559
+ const addItem = (levelId, item) => setItems(levelId, (items) => [...items.filter((existing) => existing.id !== item.id), item]);
10560
+ const updateItem = (levelId, itemId, patch) => setItems(
10561
+ levelId,
10562
+ (items) => items.map((item) => item.id === itemId ? __spreadValues(__spreadValues({}, item), patch) : item)
10563
+ );
10564
+ const removeItem = (levelId, itemId) => {
10565
+ setItems(levelId, (items) => items.filter((item) => item.id !== itemId));
10566
+ if (value[levelId] === itemId) {
10567
+ clear(levelId);
10568
+ }
10569
+ };
10570
+ const handleNavigate = (levelId, item) => {
10571
+ const index = levelIds.indexOf(levelId);
10572
+ const nextId = levelIds[index + 1];
10573
+ if (truncateOnNavigate && nextId && value[nextId]) {
10574
+ commit(clearFrom(levelIds, value, nextId), { type: "navigate", levelId, item });
10575
+ }
10576
+ onNavigate == null ? void 0 : onNavigate(levelId, item);
10577
+ };
10578
+ const handleSelect = (levelId, item) => select(levelId, item.id);
10579
+ const handleOpen = (levelId) => {
10580
+ const index = levelIds.indexOf(levelId);
10581
+ const key = keyOf(levelIds, valueRef.current, index);
10582
+ if (refreshOnOpen || startedKeys.current[levelId] !== key) {
10583
+ void load(levelId);
10584
+ }
10585
+ };
10586
+ return {
10587
+ value,
10588
+ levels: resolvedLevels,
10589
+ selected,
10590
+ select,
10591
+ clear,
10592
+ setValue,
10593
+ refresh,
10594
+ setItems,
10595
+ addItem,
10596
+ updateItem,
10597
+ removeItem,
10598
+ breadcrumbProps: {
10599
+ levels: resolvedLevels,
10600
+ onNavigate: handleNavigate,
10601
+ onSelect: handleSelect,
10602
+ onOpen: handleOpen
10603
+ }
10604
+ };
10605
+ };
10606
+
9544
10607
  // src/components/AppSwitcher/AppSwitcher.tsx
9545
- import * as React39 from "react";
9546
- import Popover4 from "@mui/material/Popover";
9547
- import { styled as styled35 } from "@mui/material/styles";
10608
+ import * as React43 from "react";
10609
+ import Popover5 from "@mui/material/Popover";
10610
+ import { styled as styled37 } from "@mui/material/styles";
9548
10611
 
9549
10612
  // src/components/AppSwitcher/context.ts
9550
- import * as React34 from "react";
9551
- var AppSwitcherContext = React34.createContext(null);
10613
+ import * as React38 from "react";
10614
+ var AppSwitcherContext = React38.createContext(null);
9552
10615
  var useAppSwitcher = () => {
9553
- const context = React34.useContext(AppSwitcherContext);
10616
+ const context = React38.useContext(AppSwitcherContext);
9554
10617
  if (!context) {
9555
10618
  throw new Error("AppSwitcher sub-components must be used within an AppSwitcher component");
9556
10619
  }
9557
10620
  return context;
9558
10621
  };
9559
10622
  AppSwitcherContext.displayName = "AppSwitcher.Context";
9560
- var AppSwitcherFooterContext = React34.createContext(false);
10623
+ var AppSwitcherFooterContext = React38.createContext(false);
9561
10624
  AppSwitcherFooterContext.displayName = "AppSwitcher.FooterContext";
9562
10625
 
9563
10626
  // src/components/AppSwitcher/AppSwitcherTrigger.tsx
9564
- import * as React35 from "react";
10627
+ import * as React39 from "react";
9565
10628
  import IconButton11 from "@mui/material/IconButton";
9566
- import Tooltip11 from "@mui/material/Tooltip";
9567
- import { styled as styled31 } from "@mui/material/styles";
10629
+ import Tooltip12 from "@mui/material/Tooltip";
10630
+ import { styled as styled33 } from "@mui/material/styles";
9568
10631
  import { Grip } from "@wso2/oxygen-ui-icons-react";
9569
- import { jsx as jsx65 } from "react/jsx-runtime";
10632
+ import { jsx as jsx67 } from "react/jsx-runtime";
9570
10633
  var DEFAULT_LABEL = "Switch Platforms";
9571
- var AppSwitcherTriggerRoot = styled31(IconButton11, {
10634
+ var AppSwitcherTriggerRoot = styled33(IconButton11, {
9572
10635
  name: "MuiAppSwitcher",
9573
10636
  slot: "Trigger"
9574
10637
  })(({ theme }) => ({
@@ -9582,13 +10645,13 @@ var AppSwitcherTriggerRoot = styled31(IconButton11, {
9582
10645
  cursor: "pointer"
9583
10646
  }
9584
10647
  }));
9585
- var AppSwitcherTrigger = React35.forwardRef(
10648
+ var AppSwitcherTrigger = React39.forwardRef(
9586
10649
  function AppSwitcherTrigger2(_a, ref) {
9587
10650
  var _b = _a, { label = DEFAULT_LABEL, icon, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["label", "icon", "onClick", "aria-label"]);
9588
10651
  const { open, popoverId, handleOpen } = useAppSwitcher();
9589
10652
  const resolvedLabel = label.trim().length > 0 ? label : DEFAULT_LABEL;
9590
10653
  const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : resolvedLabel;
9591
- return /* @__PURE__ */ jsx65(Tooltip11, { title: resolvedLabel, children: /* @__PURE__ */ jsx65(
10654
+ return /* @__PURE__ */ jsx67(Tooltip12, { title: resolvedLabel, children: /* @__PURE__ */ jsx67(
9592
10655
  AppSwitcherTriggerRoot,
9593
10656
  __spreadProps(__spreadValues({}, props), {
9594
10657
  ref,
@@ -9600,7 +10663,7 @@ var AppSwitcherTrigger = React35.forwardRef(
9600
10663
  "aria-controls": open ? popoverId : void 0,
9601
10664
  "aria-haspopup": "true",
9602
10665
  "aria-expanded": open,
9603
- children: /* @__PURE__ */ jsx65("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx65(Grip, { size: 24 }) })
10666
+ children: /* @__PURE__ */ jsx67("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx67(Grip, { size: 24 }) })
9604
10667
  })
9605
10668
  ) });
9606
10669
  }
@@ -9608,21 +10671,21 @@ var AppSwitcherTrigger = React35.forwardRef(
9608
10671
  AppSwitcherTrigger.displayName = "AppSwitcher.Trigger";
9609
10672
 
9610
10673
  // src/components/AppSwitcher/AppSwitcherSection.tsx
9611
- import * as React37 from "react";
9612
- import Box29 from "@mui/material/Box";
9613
- import Skeleton from "@mui/material/Skeleton";
9614
- import Typography18 from "@mui/material/Typography";
9615
- import { styled as styled33 } from "@mui/material/styles";
10674
+ import * as React41 from "react";
10675
+ import Box30 from "@mui/material/Box";
10676
+ import Skeleton2 from "@mui/material/Skeleton";
10677
+ import Typography19 from "@mui/material/Typography";
10678
+ import { styled as styled35 } from "@mui/material/styles";
9616
10679
 
9617
10680
  // src/components/AppSwitcher/AppSwitcherApp.tsx
9618
- import * as React36 from "react";
9619
- import Box28 from "@mui/material/Box";
10681
+ import * as React40 from "react";
10682
+ import Box29 from "@mui/material/Box";
9620
10683
  import Card4 from "@mui/material/Card";
9621
10684
  import ButtonBase3 from "@mui/material/ButtonBase";
9622
- import CircularProgress4 from "@mui/material/CircularProgress";
9623
- import Tooltip12 from "@mui/material/Tooltip";
9624
- import Typography17 from "@mui/material/Typography";
9625
- import { styled as styled32 } from "@mui/material/styles";
10685
+ import CircularProgress5 from "@mui/material/CircularProgress";
10686
+ import Tooltip13 from "@mui/material/Tooltip";
10687
+ import Typography18 from "@mui/material/Typography";
10688
+ import { styled as styled34 } from "@mui/material/styles";
9626
10689
 
9627
10690
  // src/components/AppSwitcher/brand.ts
9628
10691
  var APP_SWITCHER_BRAND = {
@@ -9651,13 +10714,13 @@ var isSafeAppUrl = (url) => {
9651
10714
 
9652
10715
  // src/components/AppSwitcher/AppSwitcherApp.tsx
9653
10716
  import { WSO2 } from "@wso2/oxygen-ui-icons-react";
9654
- import { jsx as jsx66, jsxs as jsxs29 } from "react/jsx-runtime";
10717
+ import { jsx as jsx68, jsxs as jsxs31 } from "react/jsx-runtime";
9655
10718
  var DEFAULT_UNAVAILABLE_LABEL = "Coming soon";
9656
10719
  var APP_CARD_HEIGHT = {
9657
10720
  platform: 13,
9658
10721
  manage: 9
9659
10722
  };
9660
- var AppSwitcherAppRoot = styled32(Card4, {
10723
+ var AppSwitcherAppRoot = styled34(Card4, {
9661
10724
  name: "MuiAppSwitcher",
9662
10725
  slot: "App",
9663
10726
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -9729,7 +10792,7 @@ var AppSwitcherAppRoot = styled32(Card4, {
9729
10792
  }
9730
10793
  });
9731
10794
  });
9732
- var AppSwitcherAppIcon = styled32(Box28, {
10795
+ var AppSwitcherAppIcon = styled34(Box29, {
9733
10796
  name: "MuiAppSwitcher",
9734
10797
  slot: "AppIcon",
9735
10798
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -9757,7 +10820,7 @@ var AppSwitcherAppIcon = styled32(Box28, {
9757
10820
  }
9758
10821
  });
9759
10822
  });
9760
- var AppSwitcherAppName = styled32(Typography17, {
10823
+ var AppSwitcherAppName = styled34(Typography18, {
9761
10824
  name: "MuiAppSwitcher",
9762
10825
  slot: "AppName",
9763
10826
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -9782,7 +10845,7 @@ var AppSwitcherAppName = styled32(Typography17, {
9782
10845
  overflow: "hidden"
9783
10846
  }));
9784
10847
  var isModifiedClick = (event) => event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
9785
- var AppSwitcherApp = React36.forwardRef(
10848
+ var AppSwitcherApp = React40.forwardRef(
9786
10849
  function AppSwitcherApp2({
9787
10850
  id,
9788
10851
  name,
@@ -9799,14 +10862,14 @@ var AppSwitcherApp = React36.forwardRef(
9799
10862
  onClick
9800
10863
  }, ref) {
9801
10864
  var _a;
9802
- const inFooter = React36.useContext(AppSwitcherFooterContext);
10865
+ const inFooter = React40.useContext(AppSwitcherFooterContext);
9803
10866
  const tone = toneProp != null ? toneProp : inFooter ? "manage" : "platform";
9804
- const switcher = React36.useContext(AppSwitcherContext);
10867
+ const switcher = React40.useContext(AppSwitcherContext);
9805
10868
  const current = currentProp != null ? currentProp : id !== void 0 && id === (switcher == null ? void 0 : switcher.currentAppId);
9806
10869
  const normalizedUrl = typeof url === "string" && url.trim() === "" ? null : url;
9807
10870
  const unsafeUrl = Boolean(normalizedUrl) && !isSafeAppUrl(normalizedUrl);
9808
10871
  const safeUrl = unsafeUrl ? void 0 : normalizedUrl || void 0;
9809
- React36.useEffect(() => {
10872
+ React40.useEffect(() => {
9810
10873
  if (unsafeUrl) {
9811
10874
  console.warn(
9812
10875
  `AppSwitcher.App: ignored the url of "${name}" because only http:, https: and relative URLs are allowed. The card renders disabled.`
@@ -9840,7 +10903,7 @@ var AppSwitcherApp = React36.forwardRef(
9840
10903
  event.preventDefault();
9841
10904
  }
9842
10905
  };
9843
- const card = /* @__PURE__ */ jsxs29(
10906
+ const card = /* @__PURE__ */ jsxs31(
9844
10907
  AppSwitcherAppRoot,
9845
10908
  __spreadProps(__spreadValues({}, anchorProps), {
9846
10909
  ref,
@@ -9853,28 +10916,28 @@ var AppSwitcherApp = React36.forwardRef(
9853
10916
  "aria-busy": busy ? "true" : void 0,
9854
10917
  "aria-current": current ? "page" : void 0,
9855
10918
  children: [
9856
- /* @__PURE__ */ jsx66(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
10919
+ /* @__PURE__ */ jsx68(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
9857
10920
  // Same size as the mark, so the card does not reflow.
9858
- /* @__PURE__ */ jsx66(CircularProgress4, { color: "inherit", size: markSize, thickness: 5 })
9859
- ) : icon != null ? icon : /* @__PURE__ */ jsx66(WSO2, { size: markSize }) }),
9860
- /* @__PURE__ */ jsx66(AppSwitcherAppName, { ownerState, children: name })
10921
+ /* @__PURE__ */ jsx68(CircularProgress5, { color: "inherit", size: markSize, thickness: 5 })
10922
+ ) : icon != null ? icon : /* @__PURE__ */ jsx68(WSO2, { size: markSize }) }),
10923
+ /* @__PURE__ */ jsx68(AppSwitcherAppName, { ownerState, children: name })
9861
10924
  ]
9862
10925
  })
9863
10926
  );
9864
- return tooltip ? /* @__PURE__ */ jsx66(Tooltip12, { title: tooltip, describeChild: true, children: card }) : card;
10927
+ return tooltip ? /* @__PURE__ */ jsx68(Tooltip13, { title: tooltip, describeChild: true, children: card }) : card;
9865
10928
  }
9866
10929
  );
9867
10930
  AppSwitcherApp.displayName = "AppSwitcher.App";
9868
10931
 
9869
10932
  // src/components/AppSwitcher/AppSwitcherSection.tsx
9870
- import { jsx as jsx67, jsxs as jsxs30 } from "react/jsx-runtime";
9871
- var AppSwitcherSectionRoot = styled33(Box29, {
10933
+ import { jsx as jsx69, jsxs as jsxs32 } from "react/jsx-runtime";
10934
+ var AppSwitcherSectionRoot = styled35(Box30, {
9872
10935
  name: "MuiAppSwitcher",
9873
10936
  slot: "Section"
9874
10937
  })(({ theme }) => ({
9875
10938
  padding: theme.spacing(2)
9876
10939
  }));
9877
- var AppSwitcherSectionLabel = styled33(Typography18, {
10940
+ var AppSwitcherSectionLabel = styled35(Typography19, {
9878
10941
  name: "MuiAppSwitcher",
9879
10942
  slot: "SectionLabel"
9880
10943
  })(({ theme }) => ({
@@ -9886,7 +10949,7 @@ var AppSwitcherSectionLabel = styled33(Typography18, {
9886
10949
  textTransform: "uppercase",
9887
10950
  marginBottom: theme.spacing(1.5)
9888
10951
  }));
9889
- var AppSwitcherSectionGrid = styled33("ul", {
10952
+ var AppSwitcherSectionGrid = styled35("ul", {
9890
10953
  name: "MuiAppSwitcher",
9891
10954
  slot: "SectionGrid",
9892
10955
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -9904,7 +10967,7 @@ var AppSwitcherSectionGrid = styled33("ul", {
9904
10967
  display: "contents"
9905
10968
  }
9906
10969
  }));
9907
- var AppSwitcherAppSkeleton = styled33(Skeleton, {
10970
+ var AppSwitcherAppSkeleton = styled35(Skeleton2, {
9908
10971
  name: "MuiAppSwitcher",
9909
10972
  slot: "AppSkeleton",
9910
10973
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -9919,7 +10982,7 @@ var AppSwitcherAppSkeleton = styled33(Skeleton, {
9919
10982
  var renderAppItems = (items, { missingUrlIsUnavailable }) => items.map((_a, index) => {
9920
10983
  var _b = _a, { key, url } = _b, item = __objRest(_b, ["key", "url"]);
9921
10984
  var _a2, _b2;
9922
- return /* @__PURE__ */ jsx67(
10985
+ return /* @__PURE__ */ jsx69(
9923
10986
  AppSwitcherApp,
9924
10987
  __spreadProps(__spreadValues({}, item), {
9925
10988
  url: url === void 0 && missingUrlIsUnavailable ? null : url
@@ -9936,10 +10999,10 @@ var AppSwitcherSection = ({
9936
10999
  loading = false,
9937
11000
  loadingCount
9938
11001
  }) => {
9939
- const labelId = React37.useId();
9940
- const inFooter = React37.useContext(AppSwitcherFooterContext);
11002
+ const labelId = React41.useId();
11003
+ const inFooter = React41.useContext(AppSwitcherFooterContext);
9941
11004
  const tone = inFooter ? "manage" : "platform";
9942
- const gridRef = React37.useRef(null);
11005
+ const gridRef = React41.useRef(null);
9943
11006
  const handleKeyDown = (event) => {
9944
11007
  var _a, _b;
9945
11008
  const keys = ["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"];
@@ -9990,7 +11053,7 @@ var AppSwitcherSection = ({
9990
11053
  event.preventDefault();
9991
11054
  cards[nextIndex].focus();
9992
11055
  };
9993
- const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx67(
11056
+ const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx69(
9994
11057
  AppSwitcherAppSkeleton,
9995
11058
  {
9996
11059
  ownerState: { tone },
@@ -10000,9 +11063,9 @@ var AppSwitcherSection = ({
10000
11063
  },
10001
11064
  index
10002
11065
  )) : children != null ? children : apps && renderAppItems(apps, { missingUrlIsUnavailable: true });
10003
- return /* @__PURE__ */ jsxs30(AppSwitcherSectionRoot, { children: [
10004
- label && /* @__PURE__ */ jsx67(AppSwitcherSectionLabel, { id: labelId, children: label }),
10005
- /* @__PURE__ */ jsx67(
11066
+ return /* @__PURE__ */ jsxs32(AppSwitcherSectionRoot, { children: [
11067
+ label && /* @__PURE__ */ jsx69(AppSwitcherSectionLabel, { id: labelId, children: label }),
11068
+ /* @__PURE__ */ jsx69(
10006
11069
  AppSwitcherSectionGrid,
10007
11070
  {
10008
11071
  ref: gridRef,
@@ -10012,9 +11075,9 @@ var AppSwitcherSection = ({
10012
11075
  "aria-label": label ? void 0 : ariaLabel,
10013
11076
  "aria-busy": loading ? "true" : void 0,
10014
11077
  onKeyDown: handleKeyDown,
10015
- children: React37.Children.map(
11078
+ children: React41.Children.map(
10016
11079
  content,
10017
- (child) => React37.isValidElement(child) ? /* @__PURE__ */ jsx67("li", { children: child }) : child
11080
+ (child) => React41.isValidElement(child) ? /* @__PURE__ */ jsx69("li", { children: child }) : child
10018
11081
  )
10019
11082
  }
10020
11083
  )
@@ -10023,11 +11086,11 @@ var AppSwitcherSection = ({
10023
11086
  AppSwitcherSection.displayName = "AppSwitcher.Section";
10024
11087
 
10025
11088
  // src/components/AppSwitcher/AppSwitcherFooter.tsx
10026
- import * as React38 from "react";
10027
- import Box30 from "@mui/material/Box";
10028
- import { alpha as alpha2, styled as styled34 } from "@mui/material/styles";
10029
- import { jsx as jsx68 } from "react/jsx-runtime";
10030
- var AppSwitcherFooterRoot = styled34(Box30, {
11089
+ import * as React42 from "react";
11090
+ import Box31 from "@mui/material/Box";
11091
+ import { alpha as alpha2, styled as styled36 } from "@mui/material/styles";
11092
+ import { jsx as jsx70 } from "react/jsx-runtime";
11093
+ var AppSwitcherFooterRoot = styled36(Box31, {
10031
11094
  name: "MuiAppSwitcher",
10032
11095
  slot: "Footer"
10033
11096
  })(({ theme }) => ({
@@ -10047,10 +11110,10 @@ var AppSwitcherFooter = ({
10047
11110
  loadingCount
10048
11111
  }) => {
10049
11112
  const cards = children != null ? children : links && renderAppItems(links, { missingUrlIsUnavailable: false });
10050
- if (!loading && React38.Children.toArray(cards).length === 0) {
11113
+ if (!loading && React42.Children.toArray(cards).length === 0) {
10051
11114
  return null;
10052
11115
  }
10053
- return /* @__PURE__ */ jsx68(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx68(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx68(
11116
+ return /* @__PURE__ */ jsx70(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx70(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx70(
10054
11117
  AppSwitcherSection,
10055
11118
  {
10056
11119
  label,
@@ -10065,8 +11128,8 @@ var AppSwitcherFooter = ({
10065
11128
  AppSwitcherFooter.displayName = "AppSwitcher.Footer";
10066
11129
 
10067
11130
  // src/components/AppSwitcher/AppSwitcher.tsx
10068
- import { jsx as jsx69, jsxs as jsxs31 } from "react/jsx-runtime";
10069
- var AppSwitcherRoot = styled35(Popover4, {
11131
+ import { jsx as jsx71, jsxs as jsxs33 } from "react/jsx-runtime";
11132
+ var AppSwitcherRoot = styled37(Popover5, {
10070
11133
  name: "MuiAppSwitcher",
10071
11134
  slot: "Root",
10072
11135
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10089,18 +11152,18 @@ var AppSwitcher = ({
10089
11152
  currentAppId,
10090
11153
  unavailableLabel
10091
11154
  }) => {
10092
- const [anchorEl, setAnchorEl] = React39.useState(null);
11155
+ const [anchorEl, setAnchorEl] = React43.useState(null);
10093
11156
  const open = Boolean(anchorEl);
10094
- const popoverId = React39.useId();
10095
- const handleOpen = React39.useCallback((event) => {
11157
+ const popoverId = React43.useId();
11158
+ const handleOpen = React43.useCallback((event) => {
10096
11159
  const target = event.currentTarget;
10097
11160
  setAnchorEl((current) => current ? null : target);
10098
11161
  }, []);
10099
- const handleClose = React39.useCallback(() => {
11162
+ const handleClose = React43.useCallback(() => {
10100
11163
  setAnchorEl(null);
10101
11164
  }, []);
10102
11165
  const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp : "Applications";
10103
- const contextValue = React39.useMemo(
11166
+ const contextValue = React43.useMemo(
10104
11167
  () => ({
10105
11168
  open,
10106
11169
  anchorEl,
@@ -10112,14 +11175,14 @@ var AppSwitcher = ({
10112
11175
  }),
10113
11176
  [open, anchorEl, popoverId, handleOpen, handleClose, currentAppId, unavailableLabel]
10114
11177
  );
10115
- const childrenArray = React39.Children.toArray(children);
11178
+ const childrenArray = React43.Children.toArray(children);
10116
11179
  const triggerChild = childrenArray.find(
10117
- (child) => React39.isValidElement(child) && child.type === AppSwitcherTrigger
11180
+ (child) => React43.isValidElement(child) && child.type === AppSwitcherTrigger
10118
11181
  );
10119
11182
  const popoverChildren = childrenArray.filter((child) => child !== triggerChild);
10120
- return /* @__PURE__ */ jsxs31(AppSwitcherContext.Provider, { value: contextValue, children: [
11183
+ return /* @__PURE__ */ jsxs33(AppSwitcherContext.Provider, { value: contextValue, children: [
10121
11184
  triggerChild,
10122
- /* @__PURE__ */ jsx69(
11185
+ /* @__PURE__ */ jsx71(
10123
11186
  AppSwitcherRoot,
10124
11187
  {
10125
11188
  id: popoverId,
@@ -10143,15 +11206,15 @@ AppSwitcher.Footer = AppSwitcherFooter;
10143
11206
  AppSwitcher.displayName = "AppSwitcher";
10144
11207
 
10145
11208
  // src/components/Sidebar/Sidebar.tsx
10146
- import * as React48 from "react";
10147
- import Box36 from "@mui/material/Box";
10148
- import { styled as styled49 } from "@mui/material/styles";
11209
+ import * as React52 from "react";
11210
+ import Box37 from "@mui/material/Box";
11211
+ import { styled as styled51 } from "@mui/material/styles";
10149
11212
 
10150
11213
  // src/components/Sidebar/context.ts
10151
- import * as React40 from "react";
10152
- var SidebarContext = React40.createContext(null);
11214
+ import * as React44 from "react";
11215
+ var SidebarContext = React44.createContext(null);
10153
11216
  var useSidebar = () => {
10154
- const context = React40.useContext(SidebarContext);
11217
+ const context = React44.useContext(SidebarContext);
10155
11218
  if (!context) {
10156
11219
  throw new Error("Sidebar compound components must be used within Sidebar");
10157
11220
  }
@@ -10159,12 +11222,12 @@ var useSidebar = () => {
10159
11222
  };
10160
11223
 
10161
11224
  // src/components/Sidebar/SidebarNav.tsx
10162
- import * as React41 from "react";
10163
- import Box31 from "@mui/material/Box";
10164
- import Divider3 from "@mui/material/Divider";
10165
- import { styled as styled36 } from "@mui/material/styles";
10166
- import { jsx as jsx70, jsxs as jsxs32 } from "react/jsx-runtime";
10167
- var SidebarNavRoot = styled36(Box31, {
11225
+ import * as React45 from "react";
11226
+ import Box32 from "@mui/material/Box";
11227
+ import Divider4 from "@mui/material/Divider";
11228
+ import { styled as styled38 } from "@mui/material/styles";
11229
+ import { jsx as jsx72, jsxs as jsxs34 } from "react/jsx-runtime";
11230
+ var SidebarNavRoot = styled38(Box32, {
10168
11231
  name: "MuiSidebar",
10169
11232
  slot: "Nav"
10170
11233
  })(({ theme }) => ({
@@ -10184,7 +11247,7 @@ var SidebarNavRoot = styled36(Box31, {
10184
11247
  backgroundColor: (theme.vars || theme).palette.action.active
10185
11248
  }
10186
11249
  }));
10187
- var SidebarNavDivider = styled36(Divider3, {
11250
+ var SidebarNavDivider = styled38(Divider4, {
10188
11251
  name: "MuiSidebar",
10189
11252
  slot: "NavDivider"
10190
11253
  })(({ theme }) => ({
@@ -10199,24 +11262,24 @@ var SidebarNav = ({
10199
11262
  sx
10200
11263
  }) => {
10201
11264
  const { collapsed } = useSidebar();
10202
- const childArray = React41.Children.toArray(children);
10203
- return /* @__PURE__ */ jsx70(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs32(React41.Fragment, { children: [
10204
- index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx70(SidebarNavDivider, {}),
11265
+ const childArray = React45.Children.toArray(children);
11266
+ return /* @__PURE__ */ jsx72(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs34(React45.Fragment, { children: [
11267
+ index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx72(SidebarNavDivider, {}),
10205
11268
  child
10206
11269
  ] }, index)) });
10207
11270
  };
10208
11271
 
10209
11272
  // src/components/Sidebar/SidebarCategory.tsx
10210
- import * as React42 from "react";
10211
- import Box32 from "@mui/material/Box";
11273
+ import * as React46 from "react";
11274
+ import Box33 from "@mui/material/Box";
10212
11275
  import List2 from "@mui/material/List";
10213
- import { styled as styled38 } from "@mui/material/styles";
11276
+ import { styled as styled40 } from "@mui/material/styles";
10214
11277
 
10215
11278
  // src/components/Sidebar/SidebarCategoryLabel.tsx
10216
- import Typography19 from "@mui/material/Typography";
10217
- import { styled as styled37 } from "@mui/material/styles";
10218
- import { jsx as jsx71 } from "react/jsx-runtime";
10219
- var SidebarCategoryLabelRoot = styled37(Typography19, {
11279
+ import Typography20 from "@mui/material/Typography";
11280
+ import { styled as styled39 } from "@mui/material/styles";
11281
+ import { jsx as jsx73 } from "react/jsx-runtime";
11282
+ var SidebarCategoryLabelRoot = styled39(Typography20, {
10220
11283
  name: "MuiSidebar",
10221
11284
  slot: "CategoryLabel",
10222
11285
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -10241,13 +11304,13 @@ var SidebarCategoryLabelRoot = styled37(Typography19, {
10241
11304
  }));
10242
11305
  var SidebarCategoryLabel = ({ children, sx }) => {
10243
11306
  const { collapsed } = useSidebar();
10244
- return /* @__PURE__ */ jsx71(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
11307
+ return /* @__PURE__ */ jsx73(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
10245
11308
  };
10246
11309
  SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
10247
11310
 
10248
11311
  // src/components/Sidebar/SidebarCategory.tsx
10249
- import { jsx as jsx72, jsxs as jsxs33 } from "react/jsx-runtime";
10250
- var SidebarCategoryRoot = styled38(Box32, {
11312
+ import { jsx as jsx74, jsxs as jsxs35 } from "react/jsx-runtime";
11313
+ var SidebarCategoryRoot = styled40(Box33, {
10251
11314
  name: "MuiSidebar",
10252
11315
  slot: "Category"
10253
11316
  })(({ theme }) => ({
@@ -10256,9 +11319,9 @@ var SidebarCategoryRoot = styled38(Box32, {
10256
11319
  var separateChildren = (children) => {
10257
11320
  let labelChild = null;
10258
11321
  const otherChildren = [];
10259
- React42.Children.forEach(children, (child) => {
11322
+ React46.Children.forEach(children, (child) => {
10260
11323
  var _a;
10261
- if (React42.isValidElement(child)) {
11324
+ if (React46.isValidElement(child)) {
10262
11325
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10263
11326
  if (displayName === "SidebarCategoryLabel") {
10264
11327
  labelChild = child;
@@ -10276,35 +11339,35 @@ var SidebarCategory = ({
10276
11339
  sx
10277
11340
  }) => {
10278
11341
  const { labelChild, otherChildren } = separateChildren(children);
10279
- return /* @__PURE__ */ jsxs33(SidebarCategoryRoot, { sx, children: [
11342
+ return /* @__PURE__ */ jsxs35(SidebarCategoryRoot, { sx, children: [
10280
11343
  labelChild,
10281
- /* @__PURE__ */ jsx72(List2, { disablePadding: true, children: otherChildren })
11344
+ /* @__PURE__ */ jsx74(List2, { disablePadding: true, children: otherChildren })
10282
11345
  ] });
10283
11346
  };
10284
11347
  SidebarCategory.displayName = "SidebarCategory";
10285
11348
 
10286
11349
  // src/components/Sidebar/SidebarItem.tsx
10287
- import * as React45 from "react";
10288
- import Box33 from "@mui/material/Box";
11350
+ import * as React49 from "react";
11351
+ import Box34 from "@mui/material/Box";
10289
11352
  import List3 from "@mui/material/List";
10290
11353
  import ListItem from "@mui/material/ListItem";
10291
11354
  import ListItemButton from "@mui/material/ListItemButton";
10292
- import ListItemIcon2 from "@mui/material/ListItemIcon";
10293
- import ListItemText2 from "@mui/material/ListItemText";
10294
- import MenuItem6 from "@mui/material/MenuItem";
10295
- import MenuList3 from "@mui/material/MenuList";
11355
+ import ListItemIcon3 from "@mui/material/ListItemIcon";
11356
+ import ListItemText3 from "@mui/material/ListItemText";
11357
+ import MenuItem7 from "@mui/material/MenuItem";
11358
+ import MenuList4 from "@mui/material/MenuList";
10296
11359
  import Collapse2 from "@mui/material/Collapse";
10297
- import Tooltip13 from "@mui/material/Tooltip";
10298
- import Popover5 from "@mui/material/Popover";
10299
- import { styled as styled42 } from "@mui/material/styles";
10300
- import { ChevronDown as ChevronDown6, ChevronUp as ChevronUp2 } from "@wso2/oxygen-ui-icons-react";
11360
+ import Tooltip14 from "@mui/material/Tooltip";
11361
+ import Popover6 from "@mui/material/Popover";
11362
+ import { styled as styled44 } from "@mui/material/styles";
11363
+ import { ChevronDown as ChevronDown7, ChevronUp as ChevronUp2 } from "@wso2/oxygen-ui-icons-react";
10301
11364
 
10302
11365
  // src/components/Sidebar/SidebarItemContext.tsx
10303
- import * as React43 from "react";
10304
- import { jsx as jsx73 } from "react/jsx-runtime";
10305
- var SidebarItemContext = React43.createContext(null);
11366
+ import * as React47 from "react";
11367
+ import { jsx as jsx75 } from "react/jsx-runtime";
11368
+ var SidebarItemContext = React47.createContext(null);
10306
11369
  var useSidebarItemContext = () => {
10307
- const context = React43.useContext(SidebarItemContext);
11370
+ const context = React47.useContext(SidebarItemContext);
10308
11371
  if (!context) {
10309
11372
  throw new Error(
10310
11373
  "useSidebarItemContext must be used within a SidebarItem component"
@@ -10313,15 +11376,15 @@ var useSidebarItemContext = () => {
10313
11376
  return context;
10314
11377
  };
10315
11378
  var SidebarItemProvider = ({ value, children }) => {
10316
- return /* @__PURE__ */ jsx73(SidebarItemContext.Provider, { value, children });
11379
+ return /* @__PURE__ */ jsx75(SidebarItemContext.Provider, { value, children });
10317
11380
  };
10318
11381
 
10319
11382
  // src/components/Sidebar/SidebarItemIcon.tsx
10320
- import * as React44 from "react";
10321
- import ListItemIcon from "@mui/material/ListItemIcon";
10322
- import { styled as styled39 } from "@mui/material/styles";
10323
- import { jsx as jsx74 } from "react/jsx-runtime";
10324
- var SidebarItemIconRoot = styled39(ListItemIcon, {
11383
+ import * as React48 from "react";
11384
+ import ListItemIcon2 from "@mui/material/ListItemIcon";
11385
+ import { styled as styled41 } from "@mui/material/styles";
11386
+ import { jsx as jsx76 } from "react/jsx-runtime";
11387
+ var SidebarItemIconRoot = styled41(ListItemIcon2, {
10325
11388
  name: "MuiSidebar",
10326
11389
  slot: "ItemIcon",
10327
11390
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10338,10 +11401,10 @@ var SidebarItemIcon = ({
10338
11401
  var _a;
10339
11402
  const { collapsed } = useSidebar();
10340
11403
  const { isActive } = useSidebarItemContext();
10341
- const iconWithSize = React44.isValidElement(children) ? React44.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
11404
+ const iconWithSize = React48.isValidElement(children) ? React48.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
10342
11405
  size: (_a = children.props.size) != null ? _a : 20
10343
11406
  })) : children;
10344
- return /* @__PURE__ */ jsx74(
11407
+ return /* @__PURE__ */ jsx76(
10345
11408
  SidebarItemIconRoot,
10346
11409
  {
10347
11410
  ownerState: { collapsed, isActive },
@@ -10353,10 +11416,10 @@ var SidebarItemIcon = ({
10353
11416
  SidebarItemIcon.displayName = "SidebarItemIcon";
10354
11417
 
10355
11418
  // src/components/Sidebar/SidebarItemLabel.tsx
10356
- import ListItemText from "@mui/material/ListItemText";
10357
- import { styled as styled40 } from "@mui/material/styles";
10358
- import { jsx as jsx75 } from "react/jsx-runtime";
10359
- var SidebarItemLabelRoot = styled40(ListItemText, {
11419
+ import ListItemText2 from "@mui/material/ListItemText";
11420
+ import { styled as styled42 } from "@mui/material/styles";
11421
+ import { jsx as jsx77 } from "react/jsx-runtime";
11422
+ var SidebarItemLabelRoot = styled42(ListItemText2, {
10360
11423
  name: "MuiSidebar",
10361
11424
  slot: "ItemLabel",
10362
11425
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10381,15 +11444,15 @@ var SidebarItemLabel = ({
10381
11444
  }) => {
10382
11445
  const { collapsed } = useSidebar();
10383
11446
  const { isActive } = useSidebarItemContext();
10384
- return /* @__PURE__ */ jsx75(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
11447
+ return /* @__PURE__ */ jsx77(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
10385
11448
  };
10386
11449
  SidebarItemLabel.displayName = "SidebarItemLabel";
10387
11450
 
10388
11451
  // src/components/Sidebar/SidebarItemBadge.tsx
10389
11452
  import Chip3 from "@mui/material/Chip";
10390
- import { styled as styled41 } from "@mui/material/styles";
10391
- import { jsx as jsx76 } from "react/jsx-runtime";
10392
- var SidebarItemBadgeRoot = styled41(Chip3, {
11453
+ import { styled as styled43 } from "@mui/material/styles";
11454
+ import { jsx as jsx78 } from "react/jsx-runtime";
11455
+ var SidebarItemBadgeRoot = styled43(Chip3, {
10393
11456
  name: "MuiSidebar",
10394
11457
  slot: "ItemBadge"
10395
11458
  })({
@@ -10406,20 +11469,20 @@ var SidebarItemBadge = ({
10406
11469
  if (collapsed) {
10407
11470
  return null;
10408
11471
  }
10409
- return /* @__PURE__ */ jsx76(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
11472
+ return /* @__PURE__ */ jsx78(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
10410
11473
  };
10411
11474
  SidebarItemBadge.displayName = "SidebarItemBadge";
10412
11475
 
10413
11476
  // src/components/Sidebar/SidebarItem.tsx
10414
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs34 } from "react/jsx-runtime";
10415
- var SidebarItemRoot = styled42(ListItem, {
11477
+ import { Fragment as Fragment20, jsx as jsx79, jsxs as jsxs36 } from "react/jsx-runtime";
11478
+ var SidebarItemRoot = styled44(ListItem, {
10416
11479
  name: "MuiSidebar",
10417
11480
  slot: "Item"
10418
11481
  })({
10419
11482
  display: "block",
10420
11483
  padding: 0
10421
11484
  });
10422
- var SidebarItemButton = styled42(ListItemButton, {
11485
+ var SidebarItemButton = styled44(ListItemButton, {
10423
11486
  name: "MuiSidebar",
10424
11487
  slot: "ItemButton",
10425
11488
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10443,7 +11506,7 @@ var SidebarItemButton = styled42(ListItemButton, {
10443
11506
  }
10444
11507
  }
10445
11508
  }));
10446
- var SidebarItemChevron = styled42(Box33, {
11509
+ var SidebarItemChevron = styled44(Box34, {
10447
11510
  name: "MuiSidebar",
10448
11511
  slot: "ItemChevron"
10449
11512
  })({
@@ -10452,20 +11515,20 @@ var SidebarItemChevron = styled42(Box33, {
10452
11515
  display: "flex",
10453
11516
  alignItems: "center"
10454
11517
  });
10455
- var SidebarItemPopover = styled42(Popover5, {
11518
+ var SidebarItemPopover = styled44(Popover6, {
10456
11519
  name: "MuiSidebar",
10457
11520
  slot: "ItemPopover"
10458
11521
  })({
10459
11522
  pointerEvents: "none"
10460
11523
  });
10461
- var SidebarItemPopoverList = styled42(MenuList3, {
11524
+ var SidebarItemPopoverList = styled44(MenuList4, {
10462
11525
  name: "MuiSidebar",
10463
11526
  slot: "ItemPopoverList"
10464
11527
  })(({ theme }) => ({
10465
11528
  padding: theme.spacing(0.5),
10466
11529
  pointerEvents: "auto"
10467
11530
  }));
10468
- var SidebarItemPopoverButton = styled42(MenuItem6, {
11531
+ var SidebarItemPopoverButton = styled44(MenuItem7, {
10469
11532
  name: "MuiSidebar",
10470
11533
  slot: "ItemPopoverButton"
10471
11534
  })(({ theme }) => ({
@@ -10489,9 +11552,9 @@ var CHILD_DISPLAY_NAMES = [
10489
11552
  var separateChildren2 = (children) => {
10490
11553
  const composableChildren = [];
10491
11554
  const nestedItems = [];
10492
- React45.Children.toArray(children).forEach((child) => {
11555
+ React49.Children.toArray(children).forEach((child) => {
10493
11556
  var _a;
10494
- if (React45.isValidElement(child)) {
11557
+ if (React49.isValidElement(child)) {
10495
11558
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10496
11559
  if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
10497
11560
  composableChildren.push(child);
@@ -10506,9 +11569,9 @@ var separateChildren2 = (children) => {
10506
11569
  };
10507
11570
  var getTooltipLabel = (children) => {
10508
11571
  let tooltipLabel2 = "";
10509
- React45.Children.forEach(children, (child) => {
11572
+ React49.Children.forEach(children, (child) => {
10510
11573
  var _a;
10511
- if (React45.isValidElement(child)) {
11574
+ if (React49.isValidElement(child)) {
10512
11575
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10513
11576
  const props = child.props;
10514
11577
  if (displayName === "SidebarItemLabel" && props.children) {
@@ -10521,9 +11584,9 @@ var getTooltipLabel = (children) => {
10521
11584
  var extractItemContent = (itemChildren) => {
10522
11585
  let icon = null;
10523
11586
  let label = "";
10524
- React45.Children.forEach(itemChildren, (child) => {
11587
+ React49.Children.forEach(itemChildren, (child) => {
10525
11588
  var _a;
10526
- if (React45.isValidElement(child)) {
11589
+ if (React49.isValidElement(child)) {
10527
11590
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10528
11591
  const props = child.props;
10529
11592
  if (displayName === "SidebarItemIcon") {
@@ -10547,33 +11610,33 @@ var SidebarItem = ({
10547
11610
  const hasNestedItems = nestedItems.length > 0;
10548
11611
  const isActive = activeItem === id;
10549
11612
  const isExpanded = expandedMenus[id] || false;
10550
- const hasActiveChild = React45.useMemo(() => {
11613
+ const hasActiveChild = React49.useMemo(() => {
10551
11614
  if (!hasNestedItems || !activeItem) return false;
10552
11615
  return nestedItems.some((child) => {
10553
- if (React45.isValidElement(child)) {
11616
+ if (React49.isValidElement(child)) {
10554
11617
  return child.props.id === activeItem;
10555
11618
  }
10556
11619
  return false;
10557
11620
  });
10558
11621
  }, [hasNestedItems, nestedItems, activeItem]);
10559
- const [popoverAnchor, setPopoverAnchor] = React45.useState(null);
10560
- const [popoverOpenedByClick, setPopoverOpenedByClick] = React45.useState(false);
10561
- const closeTimeoutRef = React45.useRef(null);
11622
+ const [popoverAnchor, setPopoverAnchor] = React49.useState(null);
11623
+ const [popoverOpenedByClick, setPopoverOpenedByClick] = React49.useState(false);
11624
+ const closeTimeoutRef = React49.useRef(null);
10562
11625
  const popoverOpen = Boolean(popoverAnchor);
10563
- const popoverId = React45.useId();
10564
- const clearCloseTimeout = React45.useCallback(() => {
11626
+ const popoverId = React49.useId();
11627
+ const clearCloseTimeout = React49.useCallback(() => {
10565
11628
  if (closeTimeoutRef.current != null) {
10566
11629
  clearTimeout(closeTimeoutRef.current);
10567
11630
  closeTimeoutRef.current = null;
10568
11631
  }
10569
11632
  }, []);
10570
- const closePopover = React45.useCallback(() => {
11633
+ const closePopover = React49.useCallback(() => {
10571
11634
  clearCloseTimeout();
10572
11635
  setPopoverAnchor(null);
10573
11636
  setPopoverOpenedByClick(false);
10574
11637
  }, [clearCloseTimeout]);
10575
- React45.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
10576
- React45.useEffect(() => {
11638
+ React49.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
11639
+ React49.useEffect(() => {
10577
11640
  if (!collapsed) {
10578
11641
  closePopover();
10579
11642
  }
@@ -10623,7 +11686,7 @@ var SidebarItem = ({
10623
11686
  const tooltipLabel2 = getTooltipLabel(children);
10624
11687
  const ownerState = { collapsed, depth };
10625
11688
  const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
10626
- const buttonContent = /* @__PURE__ */ jsx77(
11689
+ const buttonContent = /* @__PURE__ */ jsx79(
10627
11690
  SidebarItemButton,
10628
11691
  {
10629
11692
  selected: shouldShowSelected,
@@ -10634,21 +11697,21 @@ var SidebarItem = ({
10634
11697
  "aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
10635
11698
  "aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
10636
11699
  "aria-controls": popoverOpen ? popoverId : void 0,
10637
- children: /* @__PURE__ */ jsxs34(SidebarItemProvider, { value: contextValue, children: [
11700
+ children: /* @__PURE__ */ jsxs36(SidebarItemProvider, { value: contextValue, children: [
10638
11701
  composableChildren,
10639
- !collapsed && hasNestedItems && /* @__PURE__ */ jsx77(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx77(ChevronUp2, { size: 16 }) : /* @__PURE__ */ jsx77(ChevronDown6, { size: 16 }) }),
10640
- !collapsed && !hasNestedItems && /* @__PURE__ */ jsx77(Box33, { sx: { ml: "auto", width: 16, pl: 1 } })
11702
+ !collapsed && hasNestedItems && /* @__PURE__ */ jsx79(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx79(ChevronUp2, { size: 16 }) : /* @__PURE__ */ jsx79(ChevronDown7, { size: 16 }) }),
11703
+ !collapsed && !hasNestedItems && /* @__PURE__ */ jsx79(Box34, { sx: { ml: "auto", width: 16, pl: 1 } })
10641
11704
  ] })
10642
11705
  }
10643
11706
  );
10644
- const wrappedContent = link ? /* @__PURE__ */ jsx77(Fragment18, { children: React45.cloneElement(link, {}, buttonContent) }) : buttonContent;
11707
+ const wrappedContent = link ? /* @__PURE__ */ jsx79(Fragment20, { children: React49.cloneElement(link, {}, buttonContent) }) : buttonContent;
10645
11708
  const collapsedWithNested = collapsed && hasNestedItems;
10646
11709
  const handlePopoverItemClick = (itemId) => {
10647
11710
  onSelect == null ? void 0 : onSelect(itemId);
10648
11711
  closePopover();
10649
11712
  };
10650
- return /* @__PURE__ */ jsxs34(Fragment18, { children: [
10651
- /* @__PURE__ */ jsx77(
11713
+ return /* @__PURE__ */ jsxs36(Fragment20, { children: [
11714
+ /* @__PURE__ */ jsx79(
10652
11715
  SidebarItemRoot,
10653
11716
  {
10654
11717
  disablePadding: true,
@@ -10656,11 +11719,11 @@ var SidebarItem = ({
10656
11719
  onMouseLeave: handleMouseLeave,
10657
11720
  children: collapsed ? (
10658
11721
  // When collapsed: show tooltip only for items without nested children
10659
- collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx77(Tooltip13, { title: tooltipLabel2, placement: "right", arrow: true, children: wrappedContent })
11722
+ collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx79(Tooltip14, { title: tooltipLabel2, placement: "right", arrow: true, children: wrappedContent })
10660
11723
  ) : wrappedContent
10661
11724
  }
10662
11725
  ),
10663
- collapsedWithNested && /* @__PURE__ */ jsx77(
11726
+ collapsedWithNested && /* @__PURE__ */ jsx79(
10664
11727
  SidebarItemPopover,
10665
11728
  {
10666
11729
  open: popoverOpen,
@@ -10677,25 +11740,25 @@ var SidebarItem = ({
10677
11740
  onMouseLeave: handleMouseLeave
10678
11741
  }
10679
11742
  },
10680
- children: /* @__PURE__ */ jsx77(
11743
+ children: /* @__PURE__ */ jsx79(
10681
11744
  SidebarItemPopoverList,
10682
11745
  {
10683
11746
  id: popoverId,
10684
11747
  autoFocusItem: popoverOpen && popoverOpenedByClick,
10685
11748
  disablePadding: true,
10686
11749
  children: nestedItems.map((child, index) => {
10687
- if (React45.isValidElement(child)) {
11750
+ if (React49.isValidElement(child)) {
10688
11751
  const childProps = child.props;
10689
11752
  const { icon, label } = extractItemContent(childProps.children);
10690
11753
  const isItemActive = activeItem === childProps.id;
10691
- return /* @__PURE__ */ jsxs34(
11754
+ return /* @__PURE__ */ jsxs36(
10692
11755
  SidebarItemPopoverButton,
10693
11756
  {
10694
11757
  selected: isItemActive,
10695
11758
  onClick: () => handlePopoverItemClick(childProps.id),
10696
11759
  children: [
10697
- icon && /* @__PURE__ */ jsx77(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
10698
- /* @__PURE__ */ jsx77(ListItemText2, { primary: label })
11760
+ icon && /* @__PURE__ */ jsx79(ListItemIcon3, { sx: { minWidth: "auto" }, children: icon }),
11761
+ /* @__PURE__ */ jsx79(ListItemText3, { primary: label })
10699
11762
  ]
10700
11763
  },
10701
11764
  childProps.id || index
@@ -10707,9 +11770,9 @@ var SidebarItem = ({
10707
11770
  )
10708
11771
  }
10709
11772
  ),
10710
- hasNestedItems && !collapsed && /* @__PURE__ */ jsx77(Collapse2, { component: "li", in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx77(List3, { disablePadding: true, children: nestedItems.map((child, index) => {
10711
- if (React45.isValidElement(child)) {
10712
- return React45.cloneElement(child, {
11773
+ hasNestedItems && !collapsed && /* @__PURE__ */ jsx79(Collapse2, { component: "li", in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx79(List3, { disablePadding: true, children: nestedItems.map((child, index) => {
11774
+ if (React49.isValidElement(child)) {
11775
+ return React49.cloneElement(child, {
10713
11776
  key: child.key || index,
10714
11777
  depth: depth + 1
10715
11778
  });
@@ -10721,11 +11784,11 @@ var SidebarItem = ({
10721
11784
  SidebarItem.displayName = "SidebarItem";
10722
11785
 
10723
11786
  // src/components/Sidebar/SidebarFooter.tsx
10724
- import Box34 from "@mui/material/Box";
10725
- import Divider4 from "@mui/material/Divider";
10726
- import { styled as styled43 } from "@mui/material/styles";
10727
- import { Fragment as Fragment19, jsx as jsx78, jsxs as jsxs35 } from "react/jsx-runtime";
10728
- var SidebarFooterRoot = styled43(Box34, {
11787
+ import Box35 from "@mui/material/Box";
11788
+ import Divider5 from "@mui/material/Divider";
11789
+ import { styled as styled45 } from "@mui/material/styles";
11790
+ import { Fragment as Fragment21, jsx as jsx80, jsxs as jsxs37 } from "react/jsx-runtime";
11791
+ var SidebarFooterRoot = styled45(Box35, {
10729
11792
  name: "MuiSidebar",
10730
11793
  slot: "Footer"
10731
11794
  })(({ theme }) => ({
@@ -10737,22 +11800,22 @@ var SidebarFooter = ({
10737
11800
  showDivider = true,
10738
11801
  sx
10739
11802
  }) => {
10740
- return /* @__PURE__ */ jsxs35(Fragment19, { children: [
10741
- showDivider && /* @__PURE__ */ jsx78(Divider4, {}),
10742
- /* @__PURE__ */ jsx78(SidebarFooterRoot, { sx, children })
11803
+ return /* @__PURE__ */ jsxs37(Fragment21, { children: [
11804
+ showDivider && /* @__PURE__ */ jsx80(Divider5, {}),
11805
+ /* @__PURE__ */ jsx80(SidebarFooterRoot, { sx, children })
10743
11806
  ] });
10744
11807
  };
10745
11808
 
10746
11809
  // src/components/Sidebar/SidebarCollapseToggle.tsx
10747
- import * as React46 from "react";
11810
+ import * as React50 from "react";
10748
11811
  import List4 from "@mui/material/List";
10749
11812
  import ListItem2 from "@mui/material/ListItem";
10750
11813
  import ListItemButton2 from "@mui/material/ListItemButton";
10751
- import Tooltip14 from "@mui/material/Tooltip";
10752
- import { styled as styled44 } from "@mui/material/styles";
11814
+ import Tooltip15 from "@mui/material/Tooltip";
11815
+ import { styled as styled46 } from "@mui/material/styles";
10753
11816
  import { PanelLeftClose, PanelLeftOpen } from "@wso2/oxygen-ui-icons-react";
10754
- import { jsx as jsx79, jsxs as jsxs36 } from "react/jsx-runtime";
10755
- var SidebarCollapseToggleButton = styled44(ListItemButton2, {
11817
+ import { jsx as jsx81, jsxs as jsxs38 } from "react/jsx-runtime";
11818
+ var SidebarCollapseToggleButton = styled46(ListItemButton2, {
10756
11819
  name: "MuiSidebar",
10757
11820
  slot: "CollapseToggle",
10758
11821
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10775,11 +11838,11 @@ var SidebarCollapseToggle = ({
10775
11838
  sx
10776
11839
  }) => {
10777
11840
  const { collapsed } = useSidebar();
10778
- const appShellContext = React46.useContext(AppShellContext);
11841
+ const appShellContext = React50.useContext(AppShellContext);
10779
11842
  const onToggle = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar;
10780
11843
  const label = collapsed ? expandLabel : collapseLabel;
10781
- const icon = collapsed ? expandIcon || /* @__PURE__ */ jsx79(PanelLeftOpen, {}) : collapseIcon || /* @__PURE__ */ jsx79(PanelLeftClose, {});
10782
- const button = /* @__PURE__ */ jsx79(
11844
+ const icon = collapsed ? expandIcon || /* @__PURE__ */ jsx81(PanelLeftOpen, {}) : collapseIcon || /* @__PURE__ */ jsx81(PanelLeftClose, {});
11845
+ const button = /* @__PURE__ */ jsx81(
10783
11846
  SidebarCollapseToggleButton,
10784
11847
  {
10785
11848
  onClick: onToggle,
@@ -10787,35 +11850,35 @@ var SidebarCollapseToggle = ({
10787
11850
  sx,
10788
11851
  "aria-label": collapsed ? label : void 0,
10789
11852
  "aria-expanded": !collapsed,
10790
- children: /* @__PURE__ */ jsxs36(
11853
+ children: /* @__PURE__ */ jsxs38(
10791
11854
  SidebarItemProvider,
10792
11855
  {
10793
11856
  value: { id: "sidebar-collapse-toggle", isActive: false, isExpanded: false, hasChildren: false, depth: 0 },
10794
11857
  children: [
10795
- /* @__PURE__ */ jsx79(SidebarItemIcon, { children: icon }),
10796
- /* @__PURE__ */ jsx79(SidebarItemLabel, { children: label })
11858
+ /* @__PURE__ */ jsx81(SidebarItemIcon, { children: icon }),
11859
+ /* @__PURE__ */ jsx81(SidebarItemLabel, { children: label })
10797
11860
  ]
10798
11861
  }
10799
11862
  )
10800
11863
  }
10801
11864
  );
10802
- return /* @__PURE__ */ jsx79(List4, { disablePadding: true, children: /* @__PURE__ */ jsx79(ListItem2, { disablePadding: true, sx: { display: "block" }, children: collapsed ? /* @__PURE__ */ jsx79(Tooltip14, { title: label, placement: "right", arrow: true, children: button }) : button }) });
11865
+ return /* @__PURE__ */ jsx81(List4, { disablePadding: true, children: /* @__PURE__ */ jsx81(ListItem2, { disablePadding: true, sx: { display: "block" }, children: collapsed ? /* @__PURE__ */ jsx81(Tooltip15, { title: label, placement: "right", arrow: true, children: button }) : button }) });
10803
11866
  };
10804
11867
  SidebarCollapseToggle.displayName = "SidebarCollapseToggle";
10805
11868
 
10806
11869
  // src/components/Sidebar/SidebarUser.tsx
10807
- import * as React47 from "react";
10808
- import Box35 from "@mui/material/Box";
11870
+ import * as React51 from "react";
11871
+ import Box36 from "@mui/material/Box";
10809
11872
  import ListItemButton3 from "@mui/material/ListItemButton";
10810
- import Tooltip15 from "@mui/material/Tooltip";
10811
- import Divider5 from "@mui/material/Divider";
10812
- import { styled as styled48 } from "@mui/material/styles";
11873
+ import Tooltip16 from "@mui/material/Tooltip";
11874
+ import Divider6 from "@mui/material/Divider";
11875
+ import { styled as styled50 } from "@mui/material/styles";
10813
11876
 
10814
11877
  // src/components/Sidebar/SidebarUserAvatar.tsx
10815
11878
  import Avatar3 from "@mui/material/Avatar";
10816
- import { styled as styled45 } from "@mui/material/styles";
10817
- import { jsx as jsx80 } from "react/jsx-runtime";
10818
- var SidebarUserAvatarRoot = styled45(Avatar3, {
11879
+ import { styled as styled47 } from "@mui/material/styles";
11880
+ import { jsx as jsx82 } from "react/jsx-runtime";
11881
+ var SidebarUserAvatarRoot = styled47(Avatar3, {
10819
11882
  name: "MuiSidebar",
10820
11883
  slot: "UserAvatar"
10821
11884
  })(({ theme }) => ({
@@ -10831,15 +11894,15 @@ var SidebarUserAvatar = ({
10831
11894
  alt,
10832
11895
  sx
10833
11896
  }) => {
10834
- return /* @__PURE__ */ jsx80(SidebarUserAvatarRoot, { src, alt, sx, children });
11897
+ return /* @__PURE__ */ jsx82(SidebarUserAvatarRoot, { src, alt, sx, children });
10835
11898
  };
10836
11899
  SidebarUserAvatar.displayName = "SidebarUserAvatar";
10837
11900
 
10838
11901
  // src/components/Sidebar/SidebarUserName.tsx
10839
- import Typography20 from "@mui/material/Typography";
10840
- import { styled as styled46 } from "@mui/material/styles";
10841
- import { jsx as jsx81 } from "react/jsx-runtime";
10842
- var SidebarUserNameRoot = styled46(Typography20, {
11902
+ import Typography21 from "@mui/material/Typography";
11903
+ import { styled as styled48 } from "@mui/material/styles";
11904
+ import { jsx as jsx83 } from "react/jsx-runtime";
11905
+ var SidebarUserNameRoot = styled48(Typography21, {
10843
11906
  name: "MuiSidebar",
10844
11907
  slot: "UserName"
10845
11908
  })({
@@ -10856,15 +11919,15 @@ var SidebarUserName = ({
10856
11919
  if (collapsed) {
10857
11920
  return null;
10858
11921
  }
10859
- return /* @__PURE__ */ jsx81(SidebarUserNameRoot, { variant: "body2", sx, children });
11922
+ return /* @__PURE__ */ jsx83(SidebarUserNameRoot, { variant: "body2", sx, children });
10860
11923
  };
10861
11924
  SidebarUserName.displayName = "SidebarUserName";
10862
11925
 
10863
11926
  // src/components/Sidebar/SidebarUserEmail.tsx
10864
- import Typography21 from "@mui/material/Typography";
10865
- import { styled as styled47 } from "@mui/material/styles";
10866
- import { jsx as jsx82 } from "react/jsx-runtime";
10867
- var SidebarUserEmailRoot = styled47(Typography21, {
11927
+ import Typography22 from "@mui/material/Typography";
11928
+ import { styled as styled49 } from "@mui/material/styles";
11929
+ import { jsx as jsx84 } from "react/jsx-runtime";
11930
+ var SidebarUserEmailRoot = styled49(Typography22, {
10868
11931
  name: "MuiSidebar",
10869
11932
  slot: "UserEmail"
10870
11933
  })(({ theme }) => ({
@@ -10882,19 +11945,19 @@ var SidebarUserEmail = ({
10882
11945
  if (collapsed) {
10883
11946
  return null;
10884
11947
  }
10885
- return /* @__PURE__ */ jsx82(SidebarUserEmailRoot, { variant: "caption", sx, children });
11948
+ return /* @__PURE__ */ jsx84(SidebarUserEmailRoot, { variant: "caption", sx, children });
10886
11949
  };
10887
11950
  SidebarUserEmail.displayName = "SidebarUserEmail";
10888
11951
 
10889
11952
  // src/components/Sidebar/SidebarUser.tsx
10890
- import { Fragment as Fragment20, jsx as jsx83, jsxs as jsxs37 } from "react/jsx-runtime";
10891
- var SidebarUserRoot = styled48(Box35, {
11953
+ import { Fragment as Fragment22, jsx as jsx85, jsxs as jsxs39 } from "react/jsx-runtime";
11954
+ var SidebarUserRoot = styled50(Box36, {
10892
11955
  name: "MuiSidebar",
10893
11956
  slot: "User"
10894
11957
  })(({ theme }) => ({
10895
11958
  padding: theme.spacing(2)
10896
11959
  }));
10897
- var SidebarUserButton = styled48(ListItemButton3, {
11960
+ var SidebarUserButton = styled50(ListItemButton3, {
10898
11961
  name: "MuiSidebar",
10899
11962
  slot: "UserButton",
10900
11963
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -10911,7 +11974,7 @@ var SidebarUserButton = styled48(ListItemButton3, {
10911
11974
  duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
10912
11975
  })
10913
11976
  }));
10914
- var SidebarUserTextContainer = styled48(Box35, {
11977
+ var SidebarUserTextContainer = styled50(Box36, {
10915
11978
  name: "MuiSidebar",
10916
11979
  slot: "UserTextContainer",
10917
11980
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -10929,9 +11992,9 @@ var SidebarUserTextContainer = styled48(Box35, {
10929
11992
  var separateChildren3 = (children) => {
10930
11993
  let avatarChild = null;
10931
11994
  const textChildren = [];
10932
- React47.Children.forEach(children, (child) => {
11995
+ React51.Children.forEach(children, (child) => {
10933
11996
  var _a;
10934
- if (React47.isValidElement(child)) {
11997
+ if (React51.isValidElement(child)) {
10935
11998
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10936
11999
  if (displayName === "SidebarUserAvatar") {
10937
12000
  avatarChild = child;
@@ -10944,9 +12007,9 @@ var separateChildren3 = (children) => {
10944
12007
  };
10945
12008
  var getTooltipText = (children) => {
10946
12009
  let tooltipText = "";
10947
- React47.Children.forEach(children, (child) => {
12010
+ React51.Children.forEach(children, (child) => {
10948
12011
  var _a;
10949
- if (React47.isValidElement(child)) {
12012
+ if (React51.isValidElement(child)) {
10950
12013
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
10951
12014
  const props = child.props;
10952
12015
  if (displayName === "SidebarUserName" && props.children) {
@@ -10966,22 +12029,22 @@ var SidebarUser = ({
10966
12029
  const { avatarChild, textChildren } = separateChildren3(children);
10967
12030
  const tooltipText = getTooltipText(children);
10968
12031
  const ownerState = { collapsed };
10969
- const content = /* @__PURE__ */ jsxs37(SidebarUserButton, { onClick, ownerState, children: [
12032
+ const content = /* @__PURE__ */ jsxs39(SidebarUserButton, { onClick, ownerState, children: [
10970
12033
  avatarChild,
10971
- /* @__PURE__ */ jsx83(SidebarUserTextContainer, { collapsed, children: textChildren })
12034
+ /* @__PURE__ */ jsx85(SidebarUserTextContainer, { collapsed, children: textChildren })
10972
12035
  ] });
10973
- return /* @__PURE__ */ jsxs37(Fragment20, { children: [
10974
- showDivider && /* @__PURE__ */ jsx83(Divider5, {}),
10975
- /* @__PURE__ */ jsx83(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx83(Tooltip15, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
12036
+ return /* @__PURE__ */ jsxs39(Fragment22, { children: [
12037
+ showDivider && /* @__PURE__ */ jsx85(Divider6, {}),
12038
+ /* @__PURE__ */ jsx85(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx85(Tooltip16, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
10976
12039
  ] });
10977
12040
  };
10978
12041
  SidebarUser.displayName = "SidebarUser";
10979
12042
 
10980
12043
  // src/components/Sidebar/Sidebar.tsx
10981
- import { jsx as jsx84 } from "react/jsx-runtime";
12044
+ import { jsx as jsx86 } from "react/jsx-runtime";
10982
12045
  var SIDEBAR_WIDTH = 250;
10983
12046
  var COLLAPSED_SIDEBAR_WIDTH = 64;
10984
- var SidebarRootStyled = styled49(Box36, {
12047
+ var SidebarRootStyled = styled51(Box37, {
10985
12048
  name: "MuiSidebar",
10986
12049
  slot: "Root",
10987
12050
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -11016,10 +12079,10 @@ var Sidebar = ({
11016
12079
  sx
11017
12080
  }) => {
11018
12081
  var _a, _b, _c;
11019
- const appShellContext = React48.useContext(AppShellContext);
12082
+ const appShellContext = React52.useContext(AppShellContext);
11020
12083
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
11021
12084
  const activeItem = activeItemProp != null ? activeItemProp : appShellContext == null ? void 0 : appShellContext.state.activeMenuItem;
11022
- const expandedMenus = React48.useMemo(
12085
+ const expandedMenus = React52.useMemo(
11023
12086
  () => {
11024
12087
  var _a2;
11025
12088
  return (_a2 = expandedMenusProp != null ? expandedMenusProp : appShellContext == null ? void 0 : appShellContext.state.expandedMenus) != null ? _a2 : {};
@@ -11030,7 +12093,7 @@ var Sidebar = ({
11030
12093
  const onToggleExpand = onToggleExpandProp != null ? onToggleExpandProp : appShellContext == null ? void 0 : appShellContext.actions.toggleMenu;
11031
12094
  const width = (_b = widthProp != null ? widthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarWidth) != null ? _b : SIDEBAR_WIDTH;
11032
12095
  const collapsedWidth = (_c = collapsedWidthProp != null ? collapsedWidthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsedWidth) != null ? _c : COLLAPSED_SIDEBAR_WIDTH;
11033
- const contextValue = React48.useMemo(
12096
+ const contextValue = React52.useMemo(
11034
12097
  () => ({
11035
12098
  collapsed,
11036
12099
  activeItem,
@@ -11041,7 +12104,7 @@ var Sidebar = ({
11041
12104
  [collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
11042
12105
  );
11043
12106
  const ownerState = { collapsed, width, collapsedWidth };
11044
- return /* @__PURE__ */ jsx84(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx84(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
12107
+ return /* @__PURE__ */ jsx86(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx86(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
11045
12108
  };
11046
12109
  Sidebar.Nav = SidebarNav;
11047
12110
  Sidebar.Category = SidebarCategory;
@@ -11059,17 +12122,17 @@ Sidebar.UserEmail = SidebarUserEmail;
11059
12122
  Sidebar.displayName = "Sidebar";
11060
12123
 
11061
12124
  // src/components/NotificationPanel/NotificationPanel.tsx
11062
- import * as React54 from "react";
11063
- import Box45 from "@mui/material/Box";
12125
+ import * as React58 from "react";
12126
+ import Box46 from "@mui/material/Box";
11064
12127
  import Drawer from "@mui/material/Drawer";
11065
- import { styled as styled65 } from "@mui/material/styles";
12128
+ import { styled as styled67 } from "@mui/material/styles";
11066
12129
  import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
11067
12130
 
11068
12131
  // src/components/NotificationPanel/context.ts
11069
- import * as React49 from "react";
11070
- var NotificationPanelContext = React49.createContext(null);
12132
+ import * as React53 from "react";
12133
+ var NotificationPanelContext = React53.createContext(null);
11071
12134
  var useNotificationPanel = () => {
11072
- const context = React49.useContext(NotificationPanelContext);
12135
+ const context = React53.useContext(NotificationPanelContext);
11073
12136
  if (!context) {
11074
12137
  throw new Error(
11075
12138
  "NotificationPanel compound components must be used within NotificationPanel"
@@ -11079,11 +12142,11 @@ var useNotificationPanel = () => {
11079
12142
  };
11080
12143
 
11081
12144
  // src/components/NotificationPanel/NotificationHeader.tsx
11082
- import * as React50 from "react";
11083
- import Box37 from "@mui/material/Box";
11084
- import { styled as styled50 } from "@mui/material/styles";
11085
- import { jsx as jsx85, jsxs as jsxs38 } from "react/jsx-runtime";
11086
- var NotificationHeaderRoot = styled50(Box37, {
12145
+ import * as React54 from "react";
12146
+ import Box38 from "@mui/material/Box";
12147
+ import { styled as styled52 } from "@mui/material/styles";
12148
+ import { jsx as jsx87, jsxs as jsxs40 } from "react/jsx-runtime";
12149
+ var NotificationHeaderRoot = styled52(Box38, {
11087
12150
  name: "MuiNotificationPanel",
11088
12151
  slot: "Header"
11089
12152
  })(({ theme }) => ({
@@ -11093,7 +12156,7 @@ var NotificationHeaderRoot = styled50(Box37, {
11093
12156
  padding: theme.spacing(2),
11094
12157
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
11095
12158
  }));
11096
- var NotificationHeaderContent = styled50(Box37, {
12159
+ var NotificationHeaderContent = styled52(Box38, {
11097
12160
  name: "MuiNotificationPanel",
11098
12161
  slot: "HeaderContent"
11099
12162
  })(({ theme }) => ({
@@ -11104,9 +12167,9 @@ var NotificationHeaderContent = styled50(Box37, {
11104
12167
  var separateChildren4 = (children) => {
11105
12168
  const leftChildren = [];
11106
12169
  let closeChild = null;
11107
- React50.Children.forEach(children, (child) => {
12170
+ React54.Children.forEach(children, (child) => {
11108
12171
  var _a;
11109
- if (React50.isValidElement(child)) {
12172
+ if (React54.isValidElement(child)) {
11110
12173
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
11111
12174
  if (displayName === "NotificationHeaderClose") {
11112
12175
  closeChild = child;
@@ -11124,18 +12187,18 @@ var NotificationHeader = ({
11124
12187
  sx
11125
12188
  }) => {
11126
12189
  const { leftChildren, closeChild } = separateChildren4(children);
11127
- return /* @__PURE__ */ jsxs38(NotificationHeaderRoot, { sx, children: [
11128
- /* @__PURE__ */ jsx85(NotificationHeaderContent, { children: leftChildren }),
12190
+ return /* @__PURE__ */ jsxs40(NotificationHeaderRoot, { sx, children: [
12191
+ /* @__PURE__ */ jsx87(NotificationHeaderContent, { children: leftChildren }),
11129
12192
  closeChild
11130
12193
  ] });
11131
12194
  };
11132
12195
  NotificationHeader.displayName = "NotificationHeader";
11133
12196
 
11134
12197
  // src/components/NotificationPanel/NotificationHeaderIcon.tsx
11135
- import Box38 from "@mui/material/Box";
11136
- import { styled as styled51 } from "@mui/material/styles";
11137
- import { jsx as jsx86 } from "react/jsx-runtime";
11138
- var NotificationHeaderIconRoot = styled51(Box38, {
12198
+ import Box39 from "@mui/material/Box";
12199
+ import { styled as styled53 } from "@mui/material/styles";
12200
+ import { jsx as jsx88 } from "react/jsx-runtime";
12201
+ var NotificationHeaderIconRoot = styled53(Box39, {
11139
12202
  name: "MuiNotificationPanel",
11140
12203
  slot: "HeaderIcon"
11141
12204
  })({
@@ -11146,15 +12209,15 @@ var NotificationHeaderIcon = ({
11146
12209
  children,
11147
12210
  sx
11148
12211
  }) => {
11149
- return /* @__PURE__ */ jsx86(NotificationHeaderIconRoot, { sx, children });
12212
+ return /* @__PURE__ */ jsx88(NotificationHeaderIconRoot, { sx, children });
11150
12213
  };
11151
12214
  NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
11152
12215
 
11153
12216
  // src/components/NotificationPanel/NotificationHeaderTitle.tsx
11154
- import Typography22 from "@mui/material/Typography";
11155
- import { styled as styled52 } from "@mui/material/styles";
11156
- import { jsx as jsx87 } from "react/jsx-runtime";
11157
- var NotificationHeaderTitleRoot = styled52(Typography22, {
12217
+ import Typography23 from "@mui/material/Typography";
12218
+ import { styled as styled54 } from "@mui/material/styles";
12219
+ import { jsx as jsx89 } from "react/jsx-runtime";
12220
+ var NotificationHeaderTitleRoot = styled54(Typography23, {
11158
12221
  name: "MuiNotificationPanel",
11159
12222
  slot: "HeaderTitle"
11160
12223
  })({
@@ -11164,15 +12227,15 @@ var NotificationHeaderTitle = ({
11164
12227
  children,
11165
12228
  sx
11166
12229
  }) => {
11167
- return /* @__PURE__ */ jsx87(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
12230
+ return /* @__PURE__ */ jsx89(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
11168
12231
  };
11169
12232
  NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
11170
12233
 
11171
12234
  // src/components/NotificationPanel/NotificationHeaderBadge.tsx
11172
12235
  import Chip4 from "@mui/material/Chip";
11173
- import { styled as styled53 } from "@mui/material/styles";
11174
- import { jsx as jsx88 } from "react/jsx-runtime";
11175
- var NotificationHeaderBadgeRoot = styled53(Chip4, {
12236
+ import { styled as styled55 } from "@mui/material/styles";
12237
+ import { jsx as jsx90 } from "react/jsx-runtime";
12238
+ var NotificationHeaderBadgeRoot = styled55(Chip4, {
11176
12239
  name: "MuiNotificationPanel",
11177
12240
  slot: "HeaderBadge"
11178
12241
  })({
@@ -11187,16 +12250,16 @@ var NotificationHeaderBadge = ({
11187
12250
  if (!children || children === 0 || children === "0") {
11188
12251
  return null;
11189
12252
  }
11190
- return /* @__PURE__ */ jsx88(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
12253
+ return /* @__PURE__ */ jsx90(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
11191
12254
  };
11192
12255
  NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
11193
12256
 
11194
12257
  // src/components/NotificationPanel/NotificationHeaderClose.tsx
11195
12258
  import IconButton12 from "@mui/material/IconButton";
11196
- import { styled as styled54 } from "@mui/material/styles";
12259
+ import { styled as styled56 } from "@mui/material/styles";
11197
12260
  import { X as X4 } from "@wso2/oxygen-ui-icons-react";
11198
- import { jsx as jsx89 } from "react/jsx-runtime";
11199
- var NotificationHeaderCloseRoot = styled54(IconButton12, {
12261
+ import { jsx as jsx91 } from "react/jsx-runtime";
12262
+ var NotificationHeaderCloseRoot = styled56(IconButton12, {
11200
12263
  name: "MuiNotificationPanel",
11201
12264
  slot: "HeaderClose"
11202
12265
  })({});
@@ -11213,33 +12276,33 @@ var NotificationHeaderClose = ({
11213
12276
  onClose == null ? void 0 : onClose();
11214
12277
  }
11215
12278
  };
11216
- return /* @__PURE__ */ jsx89(
12279
+ return /* @__PURE__ */ jsx91(
11217
12280
  NotificationHeaderCloseRoot,
11218
12281
  {
11219
12282
  onClick: handleClick,
11220
12283
  size: "small",
11221
12284
  sx,
11222
12285
  "aria-label": "Close notifications",
11223
- children: children || /* @__PURE__ */ jsx89(X4, { size: 20, "aria-hidden": "true" })
12286
+ children: children || /* @__PURE__ */ jsx91(X4, { size: 20, "aria-hidden": "true" })
11224
12287
  }
11225
12288
  );
11226
12289
  };
11227
12290
  NotificationHeaderClose.displayName = "NotificationHeaderClose";
11228
12291
 
11229
12292
  // src/components/NotificationPanel/NotificationTabs.tsx
11230
- import Box39 from "@mui/material/Box";
12293
+ import Box40 from "@mui/material/Box";
11231
12294
  import Tabs from "@mui/material/Tabs";
11232
12295
  import Tab from "@mui/material/Tab";
11233
12296
  import Chip5 from "@mui/material/Chip";
11234
- import { styled as styled55 } from "@mui/material/styles";
11235
- import { jsx as jsx90, jsxs as jsxs39 } from "react/jsx-runtime";
11236
- var NotificationTabsRoot = styled55(Box39, {
12297
+ import { styled as styled57 } from "@mui/material/styles";
12298
+ import { jsx as jsx92, jsxs as jsxs41 } from "react/jsx-runtime";
12299
+ var NotificationTabsRoot = styled57(Box40, {
11237
12300
  name: "MuiNotificationPanel",
11238
12301
  slot: "Tabs"
11239
12302
  })(({ theme }) => ({
11240
12303
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
11241
12304
  }));
11242
- var NotificationTabsInner = styled55(Tabs, {
12305
+ var NotificationTabsInner = styled57(Tabs, {
11243
12306
  name: "MuiNotificationPanel",
11244
12307
  slot: "TabsInner"
11245
12308
  })({
@@ -11250,7 +12313,7 @@ var NotificationTabsInner = styled55(Tabs, {
11250
12313
  fontWeight: 500
11251
12314
  }
11252
12315
  });
11253
- var NotificationTabLabel = styled55(Box39, {
12316
+ var NotificationTabLabel = styled57(Box40, {
11254
12317
  name: "MuiNotificationPanel",
11255
12318
  slot: "TabLabel"
11256
12319
  })(({ theme }) => ({
@@ -11258,7 +12321,7 @@ var NotificationTabLabel = styled55(Box39, {
11258
12321
  alignItems: "center",
11259
12322
  gap: theme.spacing(1)
11260
12323
  }));
11261
- var NotificationTabCount = styled55(Chip5, {
12324
+ var NotificationTabCount = styled57(Chip5, {
11262
12325
  name: "MuiNotificationPanel",
11263
12326
  slot: "TabCount"
11264
12327
  })({
@@ -11271,18 +12334,18 @@ var NotificationTabs = ({
11271
12334
  onChange,
11272
12335
  sx
11273
12336
  }) => {
11274
- return /* @__PURE__ */ jsx90(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx90(
12337
+ return /* @__PURE__ */ jsx92(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx92(
11275
12338
  NotificationTabsInner,
11276
12339
  {
11277
12340
  value,
11278
12341
  onChange: (_, newValue) => onChange(newValue),
11279
12342
  variant: "fullWidth",
11280
- children: tabs.map((tab, index) => /* @__PURE__ */ jsx90(
12343
+ children: tabs.map((tab, index) => /* @__PURE__ */ jsx92(
11281
12344
  Tab,
11282
12345
  {
11283
- label: /* @__PURE__ */ jsxs39(NotificationTabLabel, { children: [
12346
+ label: /* @__PURE__ */ jsxs41(NotificationTabLabel, { children: [
11284
12347
  tab.label,
11285
- tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx90(
12348
+ tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx92(
11286
12349
  NotificationTabCount,
11287
12350
  {
11288
12351
  label: tab.count,
@@ -11300,12 +12363,12 @@ var NotificationTabs = ({
11300
12363
  };
11301
12364
 
11302
12365
  // src/components/NotificationPanel/NotificationActions.tsx
11303
- import Box40 from "@mui/material/Box";
12366
+ import Box41 from "@mui/material/Box";
11304
12367
  import Button7 from "@mui/material/Button";
11305
- import { styled as styled56 } from "@mui/material/styles";
12368
+ import { styled as styled58 } from "@mui/material/styles";
11306
12369
  import { CheckCheck, Trash2 as Trash22 } from "@wso2/oxygen-ui-icons-react";
11307
- import { jsx as jsx91, jsxs as jsxs40 } from "react/jsx-runtime";
11308
- var NotificationActionsRoot = styled56(Box40, {
12370
+ import { jsx as jsx93, jsxs as jsxs42 } from "react/jsx-runtime";
12371
+ var NotificationActionsRoot = styled58(Box41, {
11309
12372
  name: "MuiNotificationPanel",
11310
12373
  slot: "Actions"
11311
12374
  })(({ theme }) => ({
@@ -11317,7 +12380,7 @@ var NotificationActionsRoot = styled56(Box40, {
11317
12380
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
11318
12381
  backgroundColor: (theme.vars || theme).palette.action.hover
11319
12382
  }));
11320
- var NotificationActionButton = styled56(Button7, {
12383
+ var NotificationActionButton = styled58(Button7, {
11321
12384
  name: "MuiNotificationPanel",
11322
12385
  slot: "ActionButton"
11323
12386
  })({
@@ -11330,21 +12393,21 @@ var NotificationActions = ({
11330
12393
  onClearAll,
11331
12394
  sx
11332
12395
  }) => {
11333
- return /* @__PURE__ */ jsxs40(NotificationActionsRoot, { sx, children: [
11334
- hasUnread && onMarkAllRead && /* @__PURE__ */ jsx91(
12396
+ return /* @__PURE__ */ jsxs42(NotificationActionsRoot, { sx, children: [
12397
+ hasUnread && onMarkAllRead && /* @__PURE__ */ jsx93(
11335
12398
  NotificationActionButton,
11336
12399
  {
11337
12400
  size: "small",
11338
- startIcon: /* @__PURE__ */ jsx91(CheckCheck, { size: 14 }),
12401
+ startIcon: /* @__PURE__ */ jsx93(CheckCheck, { size: 14 }),
11339
12402
  onClick: onMarkAllRead,
11340
12403
  children: "Mark all read"
11341
12404
  }
11342
12405
  ),
11343
- onClearAll && /* @__PURE__ */ jsx91(
12406
+ onClearAll && /* @__PURE__ */ jsx93(
11344
12407
  NotificationActionButton,
11345
12408
  {
11346
12409
  size: "small",
11347
- startIcon: /* @__PURE__ */ jsx91(Trash22, { size: 14 }),
12410
+ startIcon: /* @__PURE__ */ jsx93(Trash22, { size: 14 }),
11348
12411
  onClick: onClearAll,
11349
12412
  color: "error",
11350
12413
  children: "Clear all"
@@ -11354,13 +12417,13 @@ var NotificationActions = ({
11354
12417
  };
11355
12418
 
11356
12419
  // src/components/NotificationPanel/NotificationList.tsx
11357
- import * as React51 from "react";
11358
- import Box41 from "@mui/material/Box";
12420
+ import * as React55 from "react";
12421
+ import Box42 from "@mui/material/Box";
11359
12422
  import List5 from "@mui/material/List";
11360
- import Divider6 from "@mui/material/Divider";
11361
- import { styled as styled57 } from "@mui/material/styles";
11362
- import { jsx as jsx92, jsxs as jsxs41 } from "react/jsx-runtime";
11363
- var NotificationListRoot = styled57(Box41, {
12423
+ import Divider7 from "@mui/material/Divider";
12424
+ import { styled as styled59 } from "@mui/material/styles";
12425
+ import { jsx as jsx94, jsxs as jsxs43 } from "react/jsx-runtime";
12426
+ var NotificationListRoot = styled59(Box42, {
11364
12427
  name: "MuiNotificationPanel",
11365
12428
  slot: "List"
11366
12429
  })({
@@ -11372,21 +12435,21 @@ var NotificationList = ({
11372
12435
  showDividers = true,
11373
12436
  sx
11374
12437
  }) => {
11375
- const childArray = React51.Children.toArray(children);
11376
- return /* @__PURE__ */ jsx92(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx92(List5, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs41(React51.Fragment, { children: [
12438
+ const childArray = React55.Children.toArray(children);
12439
+ return /* @__PURE__ */ jsx94(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx94(List5, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs43(React55.Fragment, { children: [
11377
12440
  child,
11378
- showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx92(Divider6, {})
12441
+ showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx94(Divider7, {})
11379
12442
  ] }, index)) }) });
11380
12443
  };
11381
12444
 
11382
12445
  // src/components/NotificationPanel/NotificationItem.tsx
11383
- import * as React53 from "react";
11384
- import Box42 from "@mui/material/Box";
12446
+ import * as React57 from "react";
12447
+ import Box43 from "@mui/material/Box";
11385
12448
  import ListItem3 from "@mui/material/ListItem";
11386
12449
  import ListItemButton4 from "@mui/material/ListItemButton";
11387
- import ListItemText3 from "@mui/material/ListItemText";
12450
+ import ListItemText4 from "@mui/material/ListItemText";
11388
12451
  import IconButton13 from "@mui/material/IconButton";
11389
- import { styled as styled58 } from "@mui/material/styles";
12452
+ import { styled as styled60 } from "@mui/material/styles";
11390
12453
  import { X as X5 } from "@wso2/oxygen-ui-icons-react";
11391
12454
 
11392
12455
  // src/components/NotificationPanel/utils.ts
@@ -11426,11 +12489,11 @@ var getNotificationTypeProps = (type) => {
11426
12489
  };
11427
12490
 
11428
12491
  // src/components/NotificationPanel/NotificationItemContext.tsx
11429
- import * as React52 from "react";
11430
- import { jsx as jsx93 } from "react/jsx-runtime";
11431
- var NotificationItemContext = React52.createContext(null);
12492
+ import * as React56 from "react";
12493
+ import { jsx as jsx95 } from "react/jsx-runtime";
12494
+ var NotificationItemContext = React56.createContext(null);
11432
12495
  var useNotificationItemContext = () => {
11433
- const context = React52.useContext(NotificationItemContext);
12496
+ const context = React56.useContext(NotificationItemContext);
11434
12497
  if (!context) {
11435
12498
  throw new Error(
11436
12499
  "useNotificationItemContext must be used within a NotificationItem component"
@@ -11439,12 +12502,12 @@ var useNotificationItemContext = () => {
11439
12502
  return context;
11440
12503
  };
11441
12504
  var NotificationItemProvider = ({ value, children }) => {
11442
- return /* @__PURE__ */ jsx93(NotificationItemContext.Provider, { value, children });
12505
+ return /* @__PURE__ */ jsx95(NotificationItemContext.Provider, { value, children });
11443
12506
  };
11444
12507
 
11445
12508
  // src/components/NotificationPanel/NotificationItem.tsx
11446
- import { jsx as jsx94, jsxs as jsxs42 } from "react/jsx-runtime";
11447
- var NotificationItemRoot = styled58(ListItem3, {
12509
+ import { jsx as jsx96, jsxs as jsxs44 } from "react/jsx-runtime";
12510
+ var NotificationItemRoot = styled60(ListItem3, {
11448
12511
  name: "MuiNotificationPanel",
11449
12512
  slot: "Item",
11450
12513
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -11454,13 +12517,13 @@ var NotificationItemRoot = styled58(ListItem3, {
11454
12517
  backgroundColor: (theme.vars || theme).palette.action.selected
11455
12518
  }
11456
12519
  }));
11457
- var NotificationItemButton = styled58(ListItemButton4, {
12520
+ var NotificationItemButton = styled60(ListItemButton4, {
11458
12521
  name: "MuiNotificationPanel",
11459
12522
  slot: "ItemButton"
11460
12523
  })(({ theme }) => ({
11461
12524
  paddingRight: theme.spacing(6)
11462
12525
  }));
11463
- var NotificationItemDismiss = styled58(IconButton13, {
12526
+ var NotificationItemDismiss = styled60(IconButton13, {
11464
12527
  name: "MuiNotificationPanel",
11465
12528
  slot: "ItemDismiss"
11466
12529
  })({
@@ -11469,7 +12532,7 @@ var NotificationItemDismiss = styled58(IconButton13, {
11469
12532
  opacity: 1
11470
12533
  }
11471
12534
  });
11472
- var NotificationItemFooter = styled58(Box42, {
12535
+ var NotificationItemFooter = styled60(Box43, {
11473
12536
  name: "MuiNotificationPanel",
11474
12537
  slot: "ItemFooter"
11475
12538
  })(({ theme }) => ({
@@ -11484,9 +12547,9 @@ var separateChildren5 = (children) => {
11484
12547
  let messageChild = null;
11485
12548
  let timestampChild = null;
11486
12549
  let actionChild = null;
11487
- React53.Children.forEach(children, (child) => {
12550
+ React57.Children.forEach(children, (child) => {
11488
12551
  var _a;
11489
- if (React53.isValidElement(child)) {
12552
+ if (React57.isValidElement(child)) {
11490
12553
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
11491
12554
  switch (displayName) {
11492
12555
  case "NotificationItemAvatar":
@@ -11536,12 +12599,12 @@ var NotificationItem = ({
11536
12599
  onAction == null ? void 0 : onAction();
11537
12600
  };
11538
12601
  const ownerState = { read };
11539
- return /* @__PURE__ */ jsx94(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx94(
12602
+ return /* @__PURE__ */ jsx96(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx96(
11540
12603
  NotificationItemRoot,
11541
12604
  {
11542
12605
  disablePadding: true,
11543
12606
  ownerState,
11544
- secondaryAction: onDismiss && /* @__PURE__ */ jsx94(
12607
+ secondaryAction: onDismiss && /* @__PURE__ */ jsx96(
11545
12608
  NotificationItemDismiss,
11546
12609
  {
11547
12610
  size: "small",
@@ -11550,19 +12613,19 @@ var NotificationItem = ({
11550
12613
  e.stopPropagation();
11551
12614
  onDismiss(id);
11552
12615
  },
11553
- children: /* @__PURE__ */ jsx94(X5, { size: 16, "aria-hidden": "true" })
12616
+ children: /* @__PURE__ */ jsx96(X5, { size: 16, "aria-hidden": "true" })
11554
12617
  }
11555
12618
  ),
11556
12619
  sx,
11557
- children: /* @__PURE__ */ jsxs42(NotificationItemButton, { onClick: handleClick, children: [
12620
+ children: /* @__PURE__ */ jsxs44(NotificationItemButton, { onClick: handleClick, children: [
11558
12621
  avatarChild,
11559
- /* @__PURE__ */ jsx94(
11560
- ListItemText3,
12622
+ /* @__PURE__ */ jsx96(
12623
+ ListItemText4,
11561
12624
  {
11562
12625
  primary: titleChild,
11563
- secondary: /* @__PURE__ */ jsxs42(Box42, { component: "span", children: [
12626
+ secondary: /* @__PURE__ */ jsxs44(Box43, { component: "span", children: [
11564
12627
  messageChild,
11565
- /* @__PURE__ */ jsxs42(NotificationItemFooter, { children: [
12628
+ /* @__PURE__ */ jsxs44(NotificationItemFooter, { children: [
11566
12629
  timestampChild,
11567
12630
  actionChild
11568
12631
  ] })
@@ -11578,9 +12641,9 @@ NotificationItem.displayName = "NotificationItem";
11578
12641
  // src/components/NotificationPanel/NotificationItemAvatar.tsx
11579
12642
  import ListItemAvatar from "@mui/material/ListItemAvatar";
11580
12643
  import Avatar4 from "@mui/material/Avatar";
11581
- import { styled as styled59 } from "@mui/material/styles";
11582
- import { jsx as jsx95 } from "react/jsx-runtime";
11583
- var NotificationItemAvatarStyled = styled59(Avatar4, {
12644
+ import { styled as styled61 } from "@mui/material/styles";
12645
+ import { jsx as jsx97 } from "react/jsx-runtime";
12646
+ var NotificationItemAvatarStyled = styled61(Avatar4, {
11584
12647
  name: "MuiNotificationPanel",
11585
12648
  slot: "ItemAvatar",
11586
12649
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -11603,16 +12666,16 @@ var NotificationItemAvatar = ({
11603
12666
  color: typeProps.color,
11604
12667
  hasChildren: !!children
11605
12668
  };
11606
- return /* @__PURE__ */ jsx95(ListItemAvatar, { children: /* @__PURE__ */ jsx95(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx95(Icon, { size: 20 }) }) });
12669
+ return /* @__PURE__ */ jsx97(ListItemAvatar, { children: /* @__PURE__ */ jsx97(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx97(Icon, { size: 20 }) }) });
11607
12670
  };
11608
12671
  NotificationItemAvatar.displayName = "NotificationItemAvatar";
11609
12672
 
11610
12673
  // src/components/NotificationPanel/NotificationItemTitle.tsx
11611
- import Box43 from "@mui/material/Box";
11612
- import Typography23 from "@mui/material/Typography";
11613
- import { styled as styled60 } from "@mui/material/styles";
11614
- import { jsx as jsx96, jsxs as jsxs43 } from "react/jsx-runtime";
11615
- var NotificationItemTitleRoot = styled60(Box43, {
12674
+ import Box44 from "@mui/material/Box";
12675
+ import Typography24 from "@mui/material/Typography";
12676
+ import { styled as styled62 } from "@mui/material/styles";
12677
+ import { jsx as jsx98, jsxs as jsxs45 } from "react/jsx-runtime";
12678
+ var NotificationItemTitleRoot = styled62(Box44, {
11616
12679
  name: "MuiNotificationPanel",
11617
12680
  slot: "ItemTitle"
11618
12681
  })(({ theme }) => ({
@@ -11620,7 +12683,7 @@ var NotificationItemTitleRoot = styled60(Box43, {
11620
12683
  alignItems: "center",
11621
12684
  gap: theme.spacing(1)
11622
12685
  }));
11623
- var NotificationItemTitleText = styled60(Typography23, {
12686
+ var NotificationItemTitleText = styled62(Typography24, {
11624
12687
  name: "MuiNotificationPanel",
11625
12688
  slot: "ItemTitleText",
11626
12689
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -11628,7 +12691,7 @@ var NotificationItemTitleText = styled60(Typography23, {
11628
12691
  fontWeight: ownerState.read ? 400 : 600,
11629
12692
  flex: 1
11630
12693
  }));
11631
- var NotificationItemUnreadDot = styled60(Box43, {
12694
+ var NotificationItemUnreadDot = styled62(Box44, {
11632
12695
  name: "MuiNotificationPanel",
11633
12696
  slot: "ItemUnreadDot"
11634
12697
  })(({ theme }) => ({
@@ -11644,18 +12707,18 @@ var NotificationItemTitle = ({
11644
12707
  sx
11645
12708
  }) => {
11646
12709
  const { read } = useNotificationItemContext();
11647
- return /* @__PURE__ */ jsxs43(NotificationItemTitleRoot, { sx, children: [
11648
- /* @__PURE__ */ jsx96(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
11649
- showUnreadIndicator && !read && /* @__PURE__ */ jsx96(NotificationItemUnreadDot, {})
12710
+ return /* @__PURE__ */ jsxs45(NotificationItemTitleRoot, { sx, children: [
12711
+ /* @__PURE__ */ jsx98(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
12712
+ showUnreadIndicator && !read && /* @__PURE__ */ jsx98(NotificationItemUnreadDot, {})
11650
12713
  ] });
11651
12714
  };
11652
12715
  NotificationItemTitle.displayName = "NotificationItemTitle";
11653
12716
 
11654
12717
  // src/components/NotificationPanel/NotificationItemMessage.tsx
11655
- import Typography24 from "@mui/material/Typography";
11656
- import { styled as styled61 } from "@mui/material/styles";
11657
- import { jsx as jsx97 } from "react/jsx-runtime";
11658
- var NotificationItemMessageRoot = styled61(Typography24, {
12718
+ import Typography25 from "@mui/material/Typography";
12719
+ import { styled as styled63 } from "@mui/material/styles";
12720
+ import { jsx as jsx99 } from "react/jsx-runtime";
12721
+ var NotificationItemMessageRoot = styled63(Typography25, {
11659
12722
  name: "MuiNotificationPanel",
11660
12723
  slot: "ItemMessage"
11661
12724
  })(({ theme }) => ({
@@ -11667,15 +12730,15 @@ var NotificationItemMessage = ({
11667
12730
  children,
11668
12731
  sx
11669
12732
  }) => {
11670
- return /* @__PURE__ */ jsx97(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
12733
+ return /* @__PURE__ */ jsx99(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
11671
12734
  };
11672
12735
  NotificationItemMessage.displayName = "NotificationItemMessage";
11673
12736
 
11674
12737
  // src/components/NotificationPanel/NotificationItemTimestamp.tsx
11675
- import Typography25 from "@mui/material/Typography";
11676
- import { styled as styled62 } from "@mui/material/styles";
11677
- import { jsx as jsx98 } from "react/jsx-runtime";
11678
- var NotificationItemTimestampRoot = styled62(Typography25, {
12738
+ import Typography26 from "@mui/material/Typography";
12739
+ import { styled as styled64 } from "@mui/material/styles";
12740
+ import { jsx as jsx100 } from "react/jsx-runtime";
12741
+ var NotificationItemTimestampRoot = styled64(Typography26, {
11679
12742
  name: "MuiNotificationPanel",
11680
12743
  slot: "ItemTimestamp"
11681
12744
  })(({ theme }) => ({
@@ -11686,15 +12749,15 @@ var NotificationItemTimestamp = ({
11686
12749
  children,
11687
12750
  sx
11688
12751
  }) => {
11689
- return /* @__PURE__ */ jsx98(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
12752
+ return /* @__PURE__ */ jsx100(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
11690
12753
  };
11691
12754
  NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
11692
12755
 
11693
12756
  // src/components/NotificationPanel/NotificationItemAction.tsx
11694
12757
  import Chip6 from "@mui/material/Chip";
11695
- import { styled as styled63 } from "@mui/material/styles";
11696
- import { jsx as jsx99 } from "react/jsx-runtime";
11697
- var NotificationItemActionRoot = styled63(Chip6, {
12758
+ import { styled as styled65 } from "@mui/material/styles";
12759
+ import { jsx as jsx101 } from "react/jsx-runtime";
12760
+ var NotificationItemActionRoot = styled65(Chip6, {
11698
12761
  name: "MuiNotificationPanel",
11699
12762
  slot: "ItemAction"
11700
12763
  })({
@@ -11716,7 +12779,7 @@ var NotificationItemAction = ({
11716
12779
  onAction == null ? void 0 : onAction();
11717
12780
  }
11718
12781
  };
11719
- return /* @__PURE__ */ jsx99(
12782
+ return /* @__PURE__ */ jsx101(
11720
12783
  NotificationItemActionRoot,
11721
12784
  {
11722
12785
  label: children,
@@ -11730,12 +12793,12 @@ var NotificationItemAction = ({
11730
12793
  NotificationItemAction.displayName = "NotificationItemAction";
11731
12794
 
11732
12795
  // src/components/NotificationPanel/NotificationEmptyState.tsx
11733
- import Box44 from "@mui/material/Box";
11734
- import Typography26 from "@mui/material/Typography";
11735
- import { styled as styled64 } from "@mui/material/styles";
12796
+ import Box45 from "@mui/material/Box";
12797
+ import Typography27 from "@mui/material/Typography";
12798
+ import { styled as styled66 } from "@mui/material/styles";
11736
12799
  import { BellOff } from "@wso2/oxygen-ui-icons-react";
11737
- import { jsx as jsx100, jsxs as jsxs44 } from "react/jsx-runtime";
11738
- var NotificationEmptyStateRoot = styled64(Box44, {
12800
+ import { jsx as jsx102, jsxs as jsxs46 } from "react/jsx-runtime";
12801
+ var NotificationEmptyStateRoot = styled66(Box45, {
11739
12802
  name: "MuiNotificationPanel",
11740
12803
  slot: "EmptyState"
11741
12804
  })(({ theme }) => ({
@@ -11749,7 +12812,7 @@ var NotificationEmptyStateRoot = styled64(Box44, {
11749
12812
  paddingRight: theme.spacing(3),
11750
12813
  textAlign: "center"
11751
12814
  }));
11752
- var NotificationEmptyStateMessage = styled64(Typography26, {
12815
+ var NotificationEmptyStateMessage = styled66(Typography27, {
11753
12816
  name: "MuiNotificationPanel",
11754
12817
  slot: "EmptyStateMessage"
11755
12818
  })(({ theme }) => ({
@@ -11760,15 +12823,15 @@ var NotificationEmptyState = ({
11760
12823
  icon,
11761
12824
  sx
11762
12825
  }) => {
11763
- return /* @__PURE__ */ jsxs44(NotificationEmptyStateRoot, { sx, children: [
11764
- icon || /* @__PURE__ */ jsx100(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
11765
- /* @__PURE__ */ jsx100(NotificationEmptyStateMessage, { variant: "body2", children: message })
12826
+ return /* @__PURE__ */ jsxs46(NotificationEmptyStateRoot, { sx, children: [
12827
+ icon || /* @__PURE__ */ jsx102(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
12828
+ /* @__PURE__ */ jsx102(NotificationEmptyStateMessage, { variant: "body2", children: message })
11766
12829
  ] });
11767
12830
  };
11768
12831
 
11769
12832
  // src/components/NotificationPanel/NotificationPanel.tsx
11770
- import { jsx as jsx101, jsxs as jsxs45 } from "react/jsx-runtime";
11771
- var NotificationPanelRoot = styled65(Drawer, {
12833
+ import { jsx as jsx103, jsxs as jsxs47 } from "react/jsx-runtime";
12834
+ var NotificationPanelRoot = styled67(Drawer, {
11772
12835
  name: "MuiNotificationPanel",
11773
12836
  slot: "Root",
11774
12837
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -11795,9 +12858,9 @@ var NotificationPanel = ({
11795
12858
  sx
11796
12859
  }) => {
11797
12860
  var _a;
11798
- const appShellContext = React54.useContext(AppShellContext);
12861
+ const appShellContext = React58.useContext(AppShellContext);
11799
12862
  const open = (_a = openProp != null ? openProp : appShellContext == null ? void 0 : appShellContext.state.notificationPanelOpen) != null ? _a : false;
11800
- const onClose = React54.useMemo(
12863
+ const onClose = React58.useMemo(
11801
12864
  () => {
11802
12865
  var _a2;
11803
12866
  return (_a2 = onCloseProp != null ? onCloseProp : appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel) != null ? _a2 : (() => {
@@ -11806,10 +12869,10 @@ var NotificationPanel = ({
11806
12869
  [onCloseProp, appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel]
11807
12870
  );
11808
12871
  const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp.trim() : "Notifications";
11809
- const [liveAnnouncement, setLiveAnnouncementState] = React54.useState("");
11810
- const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React54.useState(0);
11811
- const prevLiveAnnouncementPropRef = React54.useRef(void 0);
11812
- const publishLiveAnnouncement = React54.useCallback(
12872
+ const [liveAnnouncement, setLiveAnnouncementState] = React58.useState("");
12873
+ const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React58.useState(0);
12874
+ const prevLiveAnnouncementPropRef = React58.useRef(void 0);
12875
+ const publishLiveAnnouncement = React58.useCallback(
11813
12876
  (message) => {
11814
12877
  if (!open) return;
11815
12878
  setLiveAnnouncementState(message);
@@ -11817,7 +12880,7 @@ var NotificationPanel = ({
11817
12880
  },
11818
12881
  [open]
11819
12882
  );
11820
- React54.useEffect(() => {
12883
+ React58.useEffect(() => {
11821
12884
  if (!open) {
11822
12885
  setLiveAnnouncementState("");
11823
12886
  prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
@@ -11835,12 +12898,12 @@ var NotificationPanel = ({
11835
12898
  publishLiveAnnouncement(liveAnnouncementProp);
11836
12899
  }
11837
12900
  }, [open, liveAnnouncementProp, publishLiveAnnouncement]);
11838
- const contextValue = React54.useMemo(
12901
+ const contextValue = React58.useMemo(
11839
12902
  () => ({ onClose, open, setLiveAnnouncement: publishLiveAnnouncement }),
11840
12903
  [onClose, open, publishLiveAnnouncement]
11841
12904
  );
11842
12905
  const ownerState = { width };
11843
- return /* @__PURE__ */ jsx101(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs45(
12906
+ return /* @__PURE__ */ jsx103(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs47(
11844
12907
  NotificationPanelRoot,
11845
12908
  {
11846
12909
  anchor,
@@ -11855,8 +12918,8 @@ var NotificationPanel = ({
11855
12918
  }
11856
12919
  },
11857
12920
  children: [
11858
- /* @__PURE__ */ jsx101(
11859
- Box45,
12921
+ /* @__PURE__ */ jsx103(
12922
+ Box46,
11860
12923
  {
11861
12924
  component: "div",
11862
12925
  role: "status",
@@ -11891,15 +12954,15 @@ NotificationPanel.EmptyState = NotificationEmptyState;
11891
12954
  NotificationPanel.displayName = "NotificationPanel";
11892
12955
 
11893
12956
  // src/components/DrawerPanel/DrawerPanel.tsx
11894
- import * as React56 from "react";
12957
+ import * as React60 from "react";
11895
12958
  import Drawer2 from "@mui/material/Drawer";
11896
- import { styled as styled73, useTheme as useTheme2 } from "@mui/material/styles";
12959
+ import { styled as styled75, useTheme as useTheme2 } from "@mui/material/styles";
11897
12960
 
11898
12961
  // src/components/DrawerPanel/context.ts
11899
- import * as React55 from "react";
11900
- var DrawerPanelContext = React55.createContext(null);
12962
+ import * as React59 from "react";
12963
+ var DrawerPanelContext = React59.createContext(null);
11901
12964
  var useDrawerPanel = () => {
11902
- const context = React55.useContext(DrawerPanelContext);
12965
+ const context = React59.useContext(DrawerPanelContext);
11903
12966
  if (!context) {
11904
12967
  throw new Error("DrawerPanel compound components must be used within DrawerPanel");
11905
12968
  }
@@ -11907,10 +12970,10 @@ var useDrawerPanel = () => {
11907
12970
  };
11908
12971
 
11909
12972
  // src/components/DrawerPanel/DrawerPanelHeader.tsx
11910
- import Box46 from "@mui/material/Box";
11911
- import { styled as styled66 } from "@mui/material/styles";
11912
- import { jsx as jsx102 } from "react/jsx-runtime";
11913
- var DrawerPanelHeaderRoot = styled66(Box46, {
12973
+ import Box47 from "@mui/material/Box";
12974
+ import { styled as styled68 } from "@mui/material/styles";
12975
+ import { jsx as jsx104 } from "react/jsx-runtime";
12976
+ var DrawerPanelHeaderRoot = styled68(Box47, {
11914
12977
  name: "MuiDrawerPanel",
11915
12978
  slot: "Header"
11916
12979
  })(({ theme }) => ({
@@ -11922,16 +12985,16 @@ var DrawerPanelHeaderRoot = styled66(Box46, {
11922
12985
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
11923
12986
  }));
11924
12987
  var DrawerPanelHeader = ({ children, sx }) => {
11925
- return /* @__PURE__ */ jsx102(DrawerPanelHeaderRoot, { sx, children });
12988
+ return /* @__PURE__ */ jsx104(DrawerPanelHeaderRoot, { sx, children });
11926
12989
  };
11927
12990
  DrawerPanelHeader.displayName = "DrawerPanelHeader";
11928
12991
 
11929
12992
  // src/components/DrawerPanel/DrawerPanelTitle.tsx
11930
- import Box47 from "@mui/material/Box";
11931
- import Typography27 from "@mui/material/Typography";
11932
- import { styled as styled67 } from "@mui/material/styles";
11933
- import { jsx as jsx103, jsxs as jsxs46 } from "react/jsx-runtime";
11934
- var DrawerPanelTitleRoot = styled67(Box47, {
12993
+ import Box48 from "@mui/material/Box";
12994
+ import Typography28 from "@mui/material/Typography";
12995
+ import { styled as styled69 } from "@mui/material/styles";
12996
+ import { jsx as jsx105, jsxs as jsxs48 } from "react/jsx-runtime";
12997
+ var DrawerPanelTitleRoot = styled69(Box48, {
11935
12998
  name: "MuiDrawerPanel",
11936
12999
  slot: "Title"
11937
13000
  })(({ theme }) => ({
@@ -11941,7 +13004,7 @@ var DrawerPanelTitleRoot = styled67(Box47, {
11941
13004
  flex: 1,
11942
13005
  minWidth: 0
11943
13006
  }));
11944
- var DrawerPanelTitleIcon = styled67(Box47, {
13007
+ var DrawerPanelTitleIcon = styled69(Box48, {
11945
13008
  name: "MuiDrawerPanel",
11946
13009
  slot: "TitleIcon"
11947
13010
  })({
@@ -11956,18 +13019,18 @@ var DrawerPanelTitle = ({
11956
13019
  sx
11957
13020
  }) => {
11958
13021
  const { titleId } = useDrawerPanel();
11959
- return /* @__PURE__ */ jsxs46(DrawerPanelTitleRoot, { sx, children: [
11960
- icon && /* @__PURE__ */ jsx103(DrawerPanelTitleIcon, { "aria-hidden": "true", children: icon }),
11961
- /* @__PURE__ */ jsx103(Typography27, { id: titleId, variant: "h6", component, noWrap: true, sx: { fontWeight: 600 }, children })
13022
+ return /* @__PURE__ */ jsxs48(DrawerPanelTitleRoot, { sx, children: [
13023
+ icon && /* @__PURE__ */ jsx105(DrawerPanelTitleIcon, { "aria-hidden": "true", children: icon }),
13024
+ /* @__PURE__ */ jsx105(Typography28, { id: titleId, variant: "h6", component, noWrap: true, sx: { fontWeight: 600 }, children })
11962
13025
  ] });
11963
13026
  };
11964
13027
  DrawerPanelTitle.displayName = "DrawerPanelTitle";
11965
13028
 
11966
13029
  // src/components/DrawerPanel/DrawerPanelActions.tsx
11967
- import Box48 from "@mui/material/Box";
11968
- import { styled as styled68 } from "@mui/material/styles";
11969
- import { jsx as jsx104 } from "react/jsx-runtime";
11970
- var DrawerPanelActionsRoot = styled68(Box48, {
13030
+ import Box49 from "@mui/material/Box";
13031
+ import { styled as styled70 } from "@mui/material/styles";
13032
+ import { jsx as jsx106 } from "react/jsx-runtime";
13033
+ var DrawerPanelActionsRoot = styled70(Box49, {
11971
13034
  name: "MuiDrawerPanel",
11972
13035
  slot: "Actions"
11973
13036
  })(({ theme }) => ({
@@ -11978,17 +13041,17 @@ var DrawerPanelActionsRoot = styled68(Box48, {
11978
13041
  flexShrink: 0
11979
13042
  }));
11980
13043
  var DrawerPanelActions = ({ children, sx }) => {
11981
- return /* @__PURE__ */ jsx104(DrawerPanelActionsRoot, { sx, children });
13044
+ return /* @__PURE__ */ jsx106(DrawerPanelActionsRoot, { sx, children });
11982
13045
  };
11983
13046
  DrawerPanelActions.displayName = "DrawerPanelActions";
11984
13047
 
11985
13048
  // src/components/DrawerPanel/DrawerPanelExpandButton.tsx
11986
13049
  import IconButton14 from "@mui/material/IconButton";
11987
- import Tooltip16 from "@mui/material/Tooltip";
11988
- import { styled as styled69 } from "@mui/material/styles";
13050
+ import Tooltip17 from "@mui/material/Tooltip";
13051
+ import { styled as styled71 } from "@mui/material/styles";
11989
13052
  import { Maximize2, Minimize2 } from "@wso2/oxygen-ui-icons-react";
11990
- import { jsx as jsx105 } from "react/jsx-runtime";
11991
- var DrawerPanelExpandButtonRoot = styled69(IconButton14, {
13053
+ import { jsx as jsx107 } from "react/jsx-runtime";
13054
+ var DrawerPanelExpandButtonRoot = styled71(IconButton14, {
11992
13055
  name: "MuiDrawerPanel",
11993
13056
  slot: "ExpandButton"
11994
13057
  })(({ theme }) => ({
@@ -12004,17 +13067,17 @@ var DrawerPanelExpandButton = ({
12004
13067
  }) => {
12005
13068
  const { expanded, toggleExpanded } = useDrawerPanel();
12006
13069
  const label = expanded ? collapseLabel : expandLabel;
12007
- return /* @__PURE__ */ jsx105(Tooltip16, { title: label, children: /* @__PURE__ */ jsx105(DrawerPanelExpandButtonRoot, { onClick: toggleExpanded, "aria-label": label, size: "small", sx, children: expanded ? /* @__PURE__ */ jsx105(Minimize2, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ jsx105(Maximize2, { size: 20, "aria-hidden": "true" }) }) });
13070
+ return /* @__PURE__ */ jsx107(Tooltip17, { title: label, children: /* @__PURE__ */ jsx107(DrawerPanelExpandButtonRoot, { onClick: toggleExpanded, "aria-label": label, size: "small", sx, children: expanded ? /* @__PURE__ */ jsx107(Minimize2, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ jsx107(Maximize2, { size: 20, "aria-hidden": "true" }) }) });
12008
13071
  };
12009
13072
  DrawerPanelExpandButton.displayName = "DrawerPanelExpandButton";
12010
13073
 
12011
13074
  // src/components/DrawerPanel/DrawerPanelCloseButton.tsx
12012
13075
  import IconButton15 from "@mui/material/IconButton";
12013
- import Tooltip17 from "@mui/material/Tooltip";
12014
- import { styled as styled70 } from "@mui/material/styles";
13076
+ import Tooltip18 from "@mui/material/Tooltip";
13077
+ import { styled as styled72 } from "@mui/material/styles";
12015
13078
  import { X as X6 } from "@wso2/oxygen-ui-icons-react";
12016
- import { jsx as jsx106 } from "react/jsx-runtime";
12017
- var DrawerPanelCloseButtonRoot = styled70(IconButton15, {
13079
+ import { jsx as jsx108 } from "react/jsx-runtime";
13080
+ var DrawerPanelCloseButtonRoot = styled72(IconButton15, {
12018
13081
  name: "MuiDrawerPanel",
12019
13082
  slot: "CloseButton"
12020
13083
  })({});
@@ -12024,15 +13087,15 @@ var DrawerPanelCloseButton = ({
12024
13087
  sx
12025
13088
  }) => {
12026
13089
  const { onClose } = useDrawerPanel();
12027
- return /* @__PURE__ */ jsx106(Tooltip17, { title: label, children: /* @__PURE__ */ jsx106(DrawerPanelCloseButtonRoot, { onClick: onClick != null ? onClick : onClose, "aria-label": label, size: "small", sx, children: /* @__PURE__ */ jsx106(X6, { size: 20, "aria-hidden": "true" }) }) });
13090
+ return /* @__PURE__ */ jsx108(Tooltip18, { title: label, children: /* @__PURE__ */ jsx108(DrawerPanelCloseButtonRoot, { onClick: onClick != null ? onClick : onClose, "aria-label": label, size: "small", sx, children: /* @__PURE__ */ jsx108(X6, { size: 20, "aria-hidden": "true" }) }) });
12028
13091
  };
12029
13092
  DrawerPanelCloseButton.displayName = "DrawerPanelCloseButton";
12030
13093
 
12031
13094
  // src/components/DrawerPanel/DrawerPanelBody.tsx
12032
- import Box49 from "@mui/material/Box";
12033
- import { styled as styled71 } from "@mui/material/styles";
12034
- import { jsx as jsx107 } from "react/jsx-runtime";
12035
- var DrawerPanelBodyRoot = styled71(Box49, {
13095
+ import Box50 from "@mui/material/Box";
13096
+ import { styled as styled73 } from "@mui/material/styles";
13097
+ import { jsx as jsx109 } from "react/jsx-runtime";
13098
+ var DrawerPanelBodyRoot = styled73(Box50, {
12036
13099
  name: "MuiDrawerPanel",
12037
13100
  slot: "Body"
12038
13101
  })(({ theme }) => ({
@@ -12042,15 +13105,15 @@ var DrawerPanelBodyRoot = styled71(Box49, {
12042
13105
  padding: theme.spacing(2)
12043
13106
  }));
12044
13107
  var DrawerPanelBody = ({ children, sx }) => {
12045
- return /* @__PURE__ */ jsx107(DrawerPanelBodyRoot, { sx, children });
13108
+ return /* @__PURE__ */ jsx109(DrawerPanelBodyRoot, { sx, children });
12046
13109
  };
12047
13110
  DrawerPanelBody.displayName = "DrawerPanelBody";
12048
13111
 
12049
13112
  // src/components/DrawerPanel/DrawerPanelFooter.tsx
12050
- import Box50 from "@mui/material/Box";
12051
- import { styled as styled72 } from "@mui/material/styles";
12052
- import { jsx as jsx108 } from "react/jsx-runtime";
12053
- var DrawerPanelFooterRoot = styled72(Box50, {
13113
+ import Box51 from "@mui/material/Box";
13114
+ import { styled as styled74 } from "@mui/material/styles";
13115
+ import { jsx as jsx110 } from "react/jsx-runtime";
13116
+ var DrawerPanelFooterRoot = styled74(Box51, {
12054
13117
  name: "MuiDrawerPanel",
12055
13118
  slot: "Footer"
12056
13119
  })(({ theme }) => ({
@@ -12063,13 +13126,13 @@ var DrawerPanelFooterRoot = styled72(Box50, {
12063
13126
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
12064
13127
  }));
12065
13128
  var DrawerPanelFooter = ({ children, sx }) => {
12066
- return /* @__PURE__ */ jsx108(DrawerPanelFooterRoot, { sx, children });
13129
+ return /* @__PURE__ */ jsx110(DrawerPanelFooterRoot, { sx, children });
12067
13130
  };
12068
13131
  DrawerPanelFooter.displayName = "DrawerPanelFooter";
12069
13132
 
12070
13133
  // src/components/DrawerPanel/DrawerPanel.tsx
12071
- import { jsx as jsx109 } from "react/jsx-runtime";
12072
- var DrawerPanelRoot = styled73(Drawer2, {
13134
+ import { jsx as jsx111 } from "react/jsx-runtime";
13135
+ var DrawerPanelRoot = styled75(Drawer2, {
12073
13136
  name: "MuiDrawerPanel",
12074
13137
  slot: "Root",
12075
13138
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -12098,24 +13161,24 @@ var DrawerPanel = ({
12098
13161
  "aria-label": ariaLabel,
12099
13162
  sx
12100
13163
  }) => {
12101
- const titleId = React56.useId();
12102
- const [expandedState, setExpandedState] = React56.useState(defaultExpanded);
13164
+ const titleId = React60.useId();
13165
+ const [expandedState, setExpandedState] = React60.useState(defaultExpanded);
12103
13166
  const isControlled = expandedProp !== void 0;
12104
13167
  const expanded = isControlled ? expandedProp : expandedState;
12105
- const toggleExpanded = React56.useCallback(() => {
13168
+ const toggleExpanded = React60.useCallback(() => {
12106
13169
  const next = !expanded;
12107
13170
  if (!isControlled) {
12108
13171
  setExpandedState(next);
12109
13172
  }
12110
13173
  onExpandedChange == null ? void 0 : onExpandedChange(next);
12111
13174
  }, [expanded, isControlled, onExpandedChange]);
12112
- const contextValue = React56.useMemo(
13175
+ const contextValue = React60.useMemo(
12113
13176
  () => ({ open, onClose, expanded, toggleExpanded, titleId }),
12114
13177
  [open, onClose, expanded, toggleExpanded, titleId]
12115
13178
  );
12116
13179
  const ownerState = { width, expandedWidth, expanded };
12117
13180
  const theme = useTheme2();
12118
- const handleEntering = React56.useCallback(
13181
+ const handleEntering = React60.useCallback(
12119
13182
  (node) => {
12120
13183
  const widthTransition = theme.transitions.create("width", {
12121
13184
  duration: theme.transitions.duration.standard,
@@ -12125,7 +13188,7 @@ var DrawerPanel = ({
12125
13188
  },
12126
13189
  [theme]
12127
13190
  );
12128
- return /* @__PURE__ */ jsx109(DrawerPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx109(
13191
+ return /* @__PURE__ */ jsx111(DrawerPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx111(
12129
13192
  DrawerPanelRoot,
12130
13193
  {
12131
13194
  anchor,
@@ -12152,30 +13215,30 @@ DrawerPanel.Footer = DrawerPanelFooter;
12152
13215
  DrawerPanel.displayName = "DrawerPanel";
12153
13216
 
12154
13217
  // src/components/Footer/Footer.tsx
12155
- import * as React57 from "react";
12156
- import Box51 from "@mui/material/Box";
12157
- import { styled as styled77 } from "@mui/material/styles";
13218
+ import * as React61 from "react";
13219
+ import Box52 from "@mui/material/Box";
13220
+ import { styled as styled79 } from "@mui/material/styles";
12158
13221
 
12159
13222
  // src/components/Footer/FooterCopyright.tsx
12160
- import Typography28 from "@mui/material/Typography";
12161
- import { styled as styled74 } from "@mui/material/styles";
12162
- import { jsx as jsx110 } from "react/jsx-runtime";
12163
- var StyledCopyrightText = styled74(Typography28, {
13223
+ import Typography29 from "@mui/material/Typography";
13224
+ import { styled as styled76 } from "@mui/material/styles";
13225
+ import { jsx as jsx112 } from "react/jsx-runtime";
13226
+ var StyledCopyrightText = styled76(Typography29, {
12164
13227
  name: "MuiFooter",
12165
13228
  slot: "CopyrightText"
12166
13229
  })(({ theme }) => ({
12167
13230
  color: (theme.vars || theme).palette.text.secondary
12168
13231
  }));
12169
13232
  var FooterCopyright = ({ children }) => {
12170
- return /* @__PURE__ */ jsx110(StyledCopyrightText, { variant: "caption", children });
13233
+ return /* @__PURE__ */ jsx112(StyledCopyrightText, { variant: "caption", children });
12171
13234
  };
12172
13235
  FooterCopyright.displayName = "Footer.Copyright";
12173
13236
 
12174
13237
  // src/components/Footer/FooterVersion.tsx
12175
- import Typography29 from "@mui/material/Typography";
12176
- import { styled as styled75 } from "@mui/material/styles";
12177
- import { jsx as jsx111 } from "react/jsx-runtime";
12178
- var StyledVersion = styled75(Typography29, {
13238
+ import Typography30 from "@mui/material/Typography";
13239
+ import { styled as styled77 } from "@mui/material/styles";
13240
+ import { jsx as jsx113 } from "react/jsx-runtime";
13241
+ var StyledVersion = styled77(Typography30, {
12179
13242
  name: "MuiFooter",
12180
13243
  slot: "Version"
12181
13244
  })(({ theme }) => ({
@@ -12186,15 +13249,15 @@ var StyledVersion = styled75(Typography29, {
12186
13249
  fontSize: 11
12187
13250
  }));
12188
13251
  var FooterVersion = ({ children }) => {
12189
- return /* @__PURE__ */ jsx111(StyledVersion, { variant: "caption", children });
13252
+ return /* @__PURE__ */ jsx113(StyledVersion, { variant: "caption", children });
12190
13253
  };
12191
13254
  FooterVersion.displayName = "Footer.Version";
12192
13255
 
12193
13256
  // src/components/Footer/FooterLink.tsx
12194
13257
  import Link3 from "@mui/material/Link";
12195
- import { styled as styled76 } from "@mui/material/styles";
12196
- import { jsx as jsx112 } from "react/jsx-runtime";
12197
- var StyledLink = styled76(Link3, {
13258
+ import { styled as styled78 } from "@mui/material/styles";
13259
+ import { jsx as jsx114 } from "react/jsx-runtime";
13260
+ var StyledLink = styled78(Link3, {
12198
13261
  name: "MuiFooter",
12199
13262
  slot: "Link"
12200
13263
  })(({ theme }) => ({
@@ -12206,16 +13269,16 @@ var StyledLink = styled76(Link3, {
12206
13269
  }));
12207
13270
  var FooterLink = (_a) => {
12208
13271
  var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
12209
- return /* @__PURE__ */ jsx112(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
13272
+ return /* @__PURE__ */ jsx114(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
12210
13273
  };
12211
13274
  FooterLink.displayName = "Footer.Link";
12212
13275
 
12213
13276
  // src/components/Footer/FooterDivider.tsx
12214
- import Divider7 from "@mui/material/Divider";
12215
- import { jsx as jsx113 } from "react/jsx-runtime";
13277
+ import Divider8 from "@mui/material/Divider";
13278
+ import { jsx as jsx115 } from "react/jsx-runtime";
12216
13279
  var FooterDivider = () => {
12217
- return /* @__PURE__ */ jsx113(
12218
- Divider7,
13280
+ return /* @__PURE__ */ jsx115(
13281
+ Divider8,
12219
13282
  {
12220
13283
  orientation: "vertical",
12221
13284
  flexItem: true,
@@ -12226,9 +13289,9 @@ var FooterDivider = () => {
12226
13289
  FooterDivider.displayName = "Footer.Divider";
12227
13290
 
12228
13291
  // src/components/Footer/Footer.tsx
12229
- import { jsx as jsx114, jsxs as jsxs47 } from "react/jsx-runtime";
13292
+ import { jsx as jsx116, jsxs as jsxs49 } from "react/jsx-runtime";
12230
13293
  var SIDEBAR_FOOTER_ROW_HEIGHT = 60;
12231
- var FooterRoot = styled77(Box51, {
13294
+ var FooterRoot = styled79(Box52, {
12232
13295
  name: "MuiFooter",
12233
13296
  slot: "Root",
12234
13297
  shouldForwardProp: (prop) => prop !== "variant"
@@ -12243,7 +13306,7 @@ var FooterRoot = styled77(Box51, {
12243
13306
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
12244
13307
  backgroundColor: (theme.vars || theme).palette.background.paper
12245
13308
  }));
12246
- var FooterContent = styled77(Box51, {
13309
+ var FooterContent = styled79(Box52, {
12247
13310
  name: "MuiFooter",
12248
13311
  slot: "Content",
12249
13312
  shouldForwardProp: (prop) => prop !== "variant"
@@ -12262,7 +13325,7 @@ var FooterContent = styled77(Box51, {
12262
13325
  minHeight: SIDEBAR_FOOTER_ROW_HEIGHT + 1,
12263
13326
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
12264
13327
  }));
12265
- var FooterLeft = styled77(Box51, {
13328
+ var FooterLeft = styled79(Box52, {
12266
13329
  name: "MuiFooter",
12267
13330
  slot: "Left"
12268
13331
  })(({ theme }) => ({
@@ -12271,7 +13334,7 @@ var FooterLeft = styled77(Box51, {
12271
13334
  gap: theme.spacing(2),
12272
13335
  flexWrap: "wrap"
12273
13336
  }));
12274
- var FooterRight = styled77(Box51, {
13337
+ var FooterRight = styled79(Box52, {
12275
13338
  name: "MuiFooter",
12276
13339
  slot: "Right"
12277
13340
  })(({ theme }) => ({
@@ -12281,11 +13344,11 @@ var FooterRight = styled77(Box51, {
12281
13344
  flexWrap: "wrap"
12282
13345
  }));
12283
13346
  var Footer = ({ children, variant = "bar", sx }) => {
12284
- const childrenArray = React57.Children.toArray(children);
13347
+ const childrenArray = React61.Children.toArray(children);
12285
13348
  const leftChildren = [];
12286
13349
  const rightChildren = [];
12287
13350
  childrenArray.forEach((child) => {
12288
- if (React57.isValidElement(child)) {
13351
+ if (React61.isValidElement(child)) {
12289
13352
  if (child.type === FooterCopyright || child.type === FooterVersion || child.type === FooterDivider) {
12290
13353
  leftChildren.push(child);
12291
13354
  } else if (child.type === FooterLink) {
@@ -12293,9 +13356,9 @@ var Footer = ({ children, variant = "bar", sx }) => {
12293
13356
  }
12294
13357
  }
12295
13358
  });
12296
- return /* @__PURE__ */ jsx114(FooterRoot, { component: "footer", variant, sx, children: /* @__PURE__ */ jsxs47(FooterContent, { variant, children: [
12297
- leftChildren.length > 0 && /* @__PURE__ */ jsx114(FooterLeft, { children: leftChildren }),
12298
- rightChildren.length > 0 && /* @__PURE__ */ jsx114(FooterRight, { children: rightChildren })
13359
+ return /* @__PURE__ */ jsx116(FooterRoot, { component: "footer", variant, sx, children: /* @__PURE__ */ jsxs49(FooterContent, { variant, children: [
13360
+ leftChildren.length > 0 && /* @__PURE__ */ jsx116(FooterLeft, { children: leftChildren }),
13361
+ rightChildren.length > 0 && /* @__PURE__ */ jsx116(FooterRight, { children: rightChildren })
12299
13362
  ] }) });
12300
13363
  };
12301
13364
  Footer.Copyright = FooterCopyright;
@@ -12305,14 +13368,14 @@ Footer.Divider = FooterDivider;
12305
13368
  Footer.displayName = "Footer";
12306
13369
 
12307
13370
  // src/components/UserMenu/UserMenu.tsx
12308
- import * as React62 from "react";
13371
+ import * as React66 from "react";
12309
13372
  import Menu4 from "@mui/material/Menu";
12310
13373
 
12311
13374
  // src/components/UserMenu/UserMenuContext.tsx
12312
- import * as React58 from "react";
12313
- var UserMenuContext = React58.createContext(void 0);
13375
+ import * as React62 from "react";
13376
+ var UserMenuContext = React62.createContext(void 0);
12314
13377
  var useUserMenu = () => {
12315
- const context = React58.useContext(UserMenuContext);
13378
+ const context = React62.useContext(UserMenuContext);
12316
13379
  if (!context) {
12317
13380
  throw new Error("UserMenu sub-components must be used within a UserMenu component");
12318
13381
  }
@@ -12321,11 +13384,11 @@ var useUserMenu = () => {
12321
13384
  UserMenuContext.displayName = "UserMenu.Context";
12322
13385
 
12323
13386
  // src/components/UserMenu/UserMenuTrigger.tsx
12324
- import * as React59 from "react";
12325
- import Tooltip18 from "@mui/material/Tooltip";
13387
+ import * as React63 from "react";
13388
+ import Tooltip19 from "@mui/material/Tooltip";
12326
13389
  import IconButton16 from "@mui/material/IconButton";
12327
13390
  import Avatar5 from "@mui/material/Avatar";
12328
- import { styled as styled78 } from "@mui/material/styles";
13391
+ import { styled as styled80 } from "@mui/material/styles";
12329
13392
 
12330
13393
  // src/components/UserMenu/getUserMenuAvatarProps.ts
12331
13394
  var IMAGE_URL_PATTERN = /^(https?:|\/|data:|blob:)/i;
@@ -12347,8 +13410,8 @@ function getUserMenuAvatarProps(name, avatar) {
12347
13410
  }
12348
13411
 
12349
13412
  // src/components/UserMenu/UserMenuTrigger.tsx
12350
- import { jsx as jsx115, jsxs as jsxs48 } from "react/jsx-runtime";
12351
- var StyledTrigger = styled78(IconButton16, {
13413
+ import { jsx as jsx117, jsxs as jsxs50 } from "react/jsx-runtime";
13414
+ var StyledTrigger = styled80(IconButton16, {
12352
13415
  name: "MuiUserMenu",
12353
13416
  slot: "Trigger",
12354
13417
  shouldForwardProp: (prop) => prop !== "showName"
@@ -12359,7 +13422,7 @@ var StyledTrigger = styled78(IconButton16, {
12359
13422
  paddingRight: theme.spacing(1.5),
12360
13423
  borderRadius: typeof theme.shape.borderRadius === "number" ? theme.shape.borderRadius * 2 : theme.spacing(2)
12361
13424
  }));
12362
- var StyledAvatar2 = styled78(Avatar5, {
13425
+ var StyledAvatar2 = styled80(Avatar5, {
12363
13426
  name: "MuiUserMenu",
12364
13427
  slot: "Avatar"
12365
13428
  })(({ theme }) => ({
@@ -12370,7 +13433,7 @@ var StyledAvatar2 = styled78(Avatar5, {
12370
13433
  fontSize: 14,
12371
13434
  fontWeight: 600
12372
13435
  }));
12373
- var StyledNameText = styled78("span", {
13436
+ var StyledNameText = styled80("span", {
12374
13437
  name: "MuiUserMenu",
12375
13438
  slot: "NameText"
12376
13439
  })(({ theme }) => ({
@@ -12382,14 +13445,14 @@ var StyledNameText = styled78("span", {
12382
13445
  display: "block"
12383
13446
  }
12384
13447
  }));
12385
- var UserMenuTrigger = React59.forwardRef(
13448
+ var UserMenuTrigger = React63.forwardRef(
12386
13449
  function UserMenuTrigger2(_a, ref) {
12387
13450
  var _b = _a, { name, avatar, showName = false, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "avatar", "showName", "onClick", "aria-label"]);
12388
13451
  const { open, handleOpen } = useUserMenu();
12389
13452
  const avatarProps = getUserMenuAvatarProps(name, avatar);
12390
13453
  const defaultAriaLabel = showName ? name : "Account";
12391
13454
  const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
12392
- return /* @__PURE__ */ jsx115(Tooltip18, { title: "Account", children: /* @__PURE__ */ jsxs48(
13455
+ return /* @__PURE__ */ jsx117(Tooltip19, { title: "Account", children: /* @__PURE__ */ jsxs50(
12393
13456
  StyledTrigger,
12394
13457
  __spreadProps(__spreadValues({}, props), {
12395
13458
  ref,
@@ -12404,8 +13467,8 @@ var UserMenuTrigger = React59.forwardRef(
12404
13467
  "aria-haspopup": "true",
12405
13468
  "aria-expanded": open ? "true" : void 0,
12406
13469
  children: [
12407
- /* @__PURE__ */ jsx115(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
12408
- showName && /* @__PURE__ */ jsx115(StyledNameText, { children: name })
13470
+ /* @__PURE__ */ jsx117(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
13471
+ showName && /* @__PURE__ */ jsx117(StyledNameText, { children: name })
12409
13472
  ]
12410
13473
  })
12411
13474
  ) });
@@ -12414,21 +13477,21 @@ var UserMenuTrigger = React59.forwardRef(
12414
13477
  UserMenuTrigger.displayName = "UserMenu.Trigger";
12415
13478
 
12416
13479
  // src/components/UserMenu/UserMenuHeader.tsx
12417
- import Divider8 from "@mui/material/Divider";
12418
- import Box52 from "@mui/material/Box";
13480
+ import Divider9 from "@mui/material/Divider";
13481
+ import Box53 from "@mui/material/Box";
12419
13482
  import Avatar6 from "@mui/material/Avatar";
12420
- import Typography30 from "@mui/material/Typography";
13483
+ import Typography31 from "@mui/material/Typography";
12421
13484
  import Chip7 from "@mui/material/Chip";
12422
- import { styled as styled79 } from "@mui/material/styles";
12423
- import { Fragment as Fragment22, jsx as jsx116, jsxs as jsxs49 } from "react/jsx-runtime";
12424
- var StyledHeaderBox = styled79(Box52, {
13485
+ import { styled as styled81 } from "@mui/material/styles";
13486
+ import { Fragment as Fragment24, jsx as jsx118, jsxs as jsxs51 } from "react/jsx-runtime";
13487
+ var StyledHeaderBox = styled81(Box53, {
12425
13488
  name: "MuiUserMenu",
12426
13489
  slot: "HeaderBox"
12427
13490
  })(({ theme }) => ({
12428
13491
  padding: theme.spacing(2),
12429
13492
  paddingBottom: theme.spacing(1.5)
12430
13493
  }));
12431
- var StyledHeaderContent = styled79(Box52, {
13494
+ var StyledHeaderContent = styled81(Box53, {
12432
13495
  name: "MuiUserMenu",
12433
13496
  slot: "HeaderContent"
12434
13497
  })(({ theme }) => ({
@@ -12436,7 +13499,7 @@ var StyledHeaderContent = styled79(Box52, {
12436
13499
  alignItems: "center",
12437
13500
  gap: theme.spacing(2)
12438
13501
  }));
12439
- var StyledHeaderAvatar = styled79(Avatar6, {
13502
+ var StyledHeaderAvatar = styled81(Avatar6, {
12440
13503
  name: "MuiUserMenu",
12441
13504
  slot: "HeaderAvatar"
12442
13505
  })(({ theme }) => ({
@@ -12447,7 +13510,7 @@ var StyledHeaderAvatar = styled79(Avatar6, {
12447
13510
  fontSize: 16,
12448
13511
  fontWeight: 600
12449
13512
  }));
12450
- var StyledUserInfo = styled79(Box52, {
13513
+ var StyledUserInfo = styled81(Box53, {
12451
13514
  name: "MuiUserMenu",
12452
13515
  slot: "UserInfo"
12453
13516
  })(({ theme }) => ({
@@ -12457,7 +13520,7 @@ var StyledUserInfo = styled79(Box52, {
12457
13520
  flex: 1,
12458
13521
  minWidth: 0
12459
13522
  }));
12460
- var StyledNameRow = styled79(Box52, {
13523
+ var StyledNameRow = styled81(Box53, {
12461
13524
  name: "MuiUserMenu",
12462
13525
  slot: "NameRow"
12463
13526
  })(({ theme }) => ({
@@ -12465,7 +13528,7 @@ var StyledNameRow = styled79(Box52, {
12465
13528
  alignItems: "center",
12466
13529
  gap: theme.spacing(1)
12467
13530
  }));
12468
- var StyledName = styled79(Typography30, {
13531
+ var StyledName = styled81(Typography31, {
12469
13532
  name: "MuiUserMenu",
12470
13533
  slot: "Name"
12471
13534
  })({
@@ -12474,7 +13537,7 @@ var StyledName = styled79(Typography30, {
12474
13537
  overflow: "hidden",
12475
13538
  textOverflow: "ellipsis"
12476
13539
  });
12477
- var StyledRoleChip = styled79(Chip7, {
13540
+ var StyledRoleChip = styled81(Chip7, {
12478
13541
  name: "MuiUserMenu",
12479
13542
  slot: "RoleChip"
12480
13543
  })({
@@ -12482,7 +13545,7 @@ var StyledRoleChip = styled79(Chip7, {
12482
13545
  fontSize: 11,
12483
13546
  fontWeight: 600
12484
13547
  });
12485
- var StyledEmail = styled79(Typography30, {
13548
+ var StyledEmail = styled81(Typography31, {
12486
13549
  name: "MuiUserMenu",
12487
13550
  slot: "Email"
12488
13551
  })(({ theme }) => ({
@@ -12494,13 +13557,13 @@ var StyledEmail = styled79(Typography30, {
12494
13557
  }));
12495
13558
  var UserMenuHeader = ({ name, email, avatar, role }) => {
12496
13559
  const avatarProps = getUserMenuAvatarProps(name, avatar);
12497
- return /* @__PURE__ */ jsxs49(Fragment22, { children: [
12498
- /* @__PURE__ */ jsx116(StyledHeaderBox, { children: /* @__PURE__ */ jsxs49(StyledHeaderContent, { children: [
12499
- /* @__PURE__ */ jsx116(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
12500
- /* @__PURE__ */ jsxs49(StyledUserInfo, { children: [
12501
- /* @__PURE__ */ jsxs49(StyledNameRow, { children: [
12502
- /* @__PURE__ */ jsx116(StyledName, { variant: "subtitle2", children: name }),
12503
- role && /* @__PURE__ */ jsx116(
13560
+ return /* @__PURE__ */ jsxs51(Fragment24, { children: [
13561
+ /* @__PURE__ */ jsx118(StyledHeaderBox, { children: /* @__PURE__ */ jsxs51(StyledHeaderContent, { children: [
13562
+ /* @__PURE__ */ jsx118(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
13563
+ /* @__PURE__ */ jsxs51(StyledUserInfo, { children: [
13564
+ /* @__PURE__ */ jsxs51(StyledNameRow, { children: [
13565
+ /* @__PURE__ */ jsx118(StyledName, { variant: "subtitle2", children: name }),
13566
+ role && /* @__PURE__ */ jsx118(
12504
13567
  StyledRoleChip,
12505
13568
  {
12506
13569
  label: role,
@@ -12509,32 +13572,32 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
12509
13572
  }
12510
13573
  )
12511
13574
  ] }),
12512
- /* @__PURE__ */ jsx116(StyledEmail, { variant: "caption", children: email })
13575
+ /* @__PURE__ */ jsx118(StyledEmail, { variant: "caption", children: email })
12513
13576
  ] })
12514
13577
  ] }) }),
12515
- /* @__PURE__ */ jsx116(Divider8, {})
13578
+ /* @__PURE__ */ jsx118(Divider9, {})
12516
13579
  ] });
12517
13580
  };
12518
13581
  UserMenuHeader.displayName = "UserMenu.Header";
12519
13582
 
12520
13583
  // src/components/UserMenu/UserMenuItem.tsx
12521
- import * as React60 from "react";
12522
- import MenuItem7 from "@mui/material/MenuItem";
12523
- import ListItemIcon3 from "@mui/material/ListItemIcon";
12524
- import ListItemText4 from "@mui/material/ListItemText";
12525
- import Box53 from "@mui/material/Box";
13584
+ import * as React64 from "react";
13585
+ import MenuItem8 from "@mui/material/MenuItem";
13586
+ import ListItemIcon4 from "@mui/material/ListItemIcon";
13587
+ import ListItemText5 from "@mui/material/ListItemText";
13588
+ import Box54 from "@mui/material/Box";
12526
13589
  import Chip8 from "@mui/material/Chip";
12527
- import { styled as styled80 } from "@mui/material/styles";
12528
- import { ChevronRight as ChevronRight4 } from "@wso2/oxygen-ui-icons-react";
12529
- import { jsx as jsx117, jsxs as jsxs50 } from "react/jsx-runtime";
12530
- var StyledMenuItem2 = styled80(MenuItem7, {
13590
+ import { styled as styled82 } from "@mui/material/styles";
13591
+ import { ChevronRight as ChevronRight5 } from "@wso2/oxygen-ui-icons-react";
13592
+ import { jsx as jsx119, jsxs as jsxs52 } from "react/jsx-runtime";
13593
+ var StyledMenuItem2 = styled82(MenuItem8, {
12531
13594
  name: "MuiUserMenu",
12532
13595
  slot: "MenuItem"
12533
13596
  })(({ theme }) => ({
12534
13597
  paddingTop: theme.spacing(1.5),
12535
13598
  paddingBottom: theme.spacing(1.5)
12536
13599
  }));
12537
- var StyledBillingChip = styled80(Chip8, {
13600
+ var StyledBillingChip = styled82(Chip8, {
12538
13601
  name: "MuiUserMenu",
12539
13602
  slot: "BillingChip"
12540
13603
  })(() => ({
@@ -12554,13 +13617,13 @@ var UserMenuItem = ({
12554
13617
  handleClose();
12555
13618
  onClick == null ? void 0 : onClick();
12556
13619
  };
12557
- return /* @__PURE__ */ jsxs50(StyledMenuItem2, { onClick: handleClick, children: [
12558
- icon && /* @__PURE__ */ jsx117(ListItemIcon3, { children: React60.isValidElement(icon) ? React60.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
13620
+ return /* @__PURE__ */ jsxs52(StyledMenuItem2, { onClick: handleClick, children: [
13621
+ icon && /* @__PURE__ */ jsx119(ListItemIcon4, { children: React64.isValidElement(icon) ? React64.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
12559
13622
  size: (_a = icon.props.size) != null ? _a : 18
12560
13623
  })) : icon }),
12561
- /* @__PURE__ */ jsx117(ListItemText4, { primary: label }),
12562
- /* @__PURE__ */ jsxs50(Box53, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
12563
- badge && /* @__PURE__ */ jsx117(
13624
+ /* @__PURE__ */ jsx119(ListItemText5, { primary: label }),
13625
+ /* @__PURE__ */ jsxs52(Box54, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
13626
+ badge && /* @__PURE__ */ jsx119(
12564
13627
  StyledBillingChip,
12565
13628
  {
12566
13629
  label: badge,
@@ -12568,20 +13631,20 @@ var UserMenuItem = ({
12568
13631
  variant: "outlined"
12569
13632
  }
12570
13633
  ),
12571
- /* @__PURE__ */ jsx117(ChevronRight4, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
13634
+ /* @__PURE__ */ jsx119(ChevronRight5, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
12572
13635
  ] })
12573
13636
  ] });
12574
13637
  };
12575
13638
  UserMenuItem.displayName = "UserMenu.Item";
12576
13639
 
12577
13640
  // src/components/UserMenu/UserMenuLogout.tsx
12578
- import * as React61 from "react";
12579
- import MenuItem8 from "@mui/material/MenuItem";
12580
- import ListItemIcon4 from "@mui/material/ListItemIcon";
12581
- import ListItemText5 from "@mui/material/ListItemText";
12582
- import { styled as styled81 } from "@mui/material/styles";
12583
- import { jsx as jsx118, jsxs as jsxs51 } from "react/jsx-runtime";
12584
- var StyledLogoutItem = styled81(MenuItem8, {
13641
+ import * as React65 from "react";
13642
+ import MenuItem9 from "@mui/material/MenuItem";
13643
+ import ListItemIcon5 from "@mui/material/ListItemIcon";
13644
+ import ListItemText6 from "@mui/material/ListItemText";
13645
+ import { styled as styled83 } from "@mui/material/styles";
13646
+ import { jsx as jsx120, jsxs as jsxs53 } from "react/jsx-runtime";
13647
+ var StyledLogoutItem = styled83(MenuItem9, {
12585
13648
  name: "MuiUserMenu",
12586
13649
  slot: "LogoutItem"
12587
13650
  })(({ theme }) => ({
@@ -12599,25 +13662,25 @@ var UserMenuLogout = ({
12599
13662
  handleClose();
12600
13663
  onClick == null ? void 0 : onClick();
12601
13664
  };
12602
- return /* @__PURE__ */ jsxs51(StyledLogoutItem, { onClick: handleClick, children: [
12603
- icon && /* @__PURE__ */ jsx118(ListItemIcon4, { children: React61.isValidElement(icon) ? React61.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
13665
+ return /* @__PURE__ */ jsxs53(StyledLogoutItem, { onClick: handleClick, children: [
13666
+ icon && /* @__PURE__ */ jsx120(ListItemIcon5, { children: React65.isValidElement(icon) ? React65.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
12604
13667
  size: (_a = icon.props.size) != null ? _a : 18
12605
13668
  })) : icon }),
12606
- /* @__PURE__ */ jsx118(ListItemText5, { primary: label })
13669
+ /* @__PURE__ */ jsx120(ListItemText6, { primary: label })
12607
13670
  ] });
12608
13671
  };
12609
13672
  UserMenuLogout.displayName = "UserMenu.Logout";
12610
13673
 
12611
13674
  // src/components/UserMenu/UserMenuDivider.tsx
12612
- import Divider9 from "@mui/material/Divider";
12613
- import { jsx as jsx119 } from "react/jsx-runtime";
12614
- var UserMenuDivider = () => /* @__PURE__ */ jsx119(Divider9, {});
13675
+ import Divider10 from "@mui/material/Divider";
13676
+ import { jsx as jsx121 } from "react/jsx-runtime";
13677
+ var UserMenuDivider = () => /* @__PURE__ */ jsx121(Divider10, {});
12615
13678
  UserMenuDivider.displayName = "UserMenu.Divider";
12616
13679
 
12617
13680
  // src/components/UserMenu/UserMenu.tsx
12618
- import { jsx as jsx120, jsxs as jsxs52 } from "react/jsx-runtime";
13681
+ import { jsx as jsx122, jsxs as jsxs54 } from "react/jsx-runtime";
12619
13682
  var UserMenu = ({ children }) => {
12620
- const [anchorEl, setAnchorEl] = React62.useState(null);
13683
+ const [anchorEl, setAnchorEl] = React66.useState(null);
12621
13684
  const open = Boolean(anchorEl);
12622
13685
  const handleOpen = (event) => {
12623
13686
  setAnchorEl(event.currentTarget);
@@ -12625,16 +13688,16 @@ var UserMenu = ({ children }) => {
12625
13688
  const handleClose = () => {
12626
13689
  setAnchorEl(null);
12627
13690
  };
12628
- const childrenArray = React62.Children.toArray(children);
13691
+ const childrenArray = React66.Children.toArray(children);
12629
13692
  const triggerChild = childrenArray.find(
12630
- (child) => React62.isValidElement(child) && child.type === UserMenuTrigger
13693
+ (child) => React66.isValidElement(child) && child.type === UserMenuTrigger
12631
13694
  );
12632
13695
  const menuChildren = childrenArray.filter(
12633
- (child) => React62.isValidElement(child) && child.type !== UserMenuTrigger
13696
+ (child) => React66.isValidElement(child) && child.type !== UserMenuTrigger
12634
13697
  );
12635
- return /* @__PURE__ */ jsxs52(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
13698
+ return /* @__PURE__ */ jsxs54(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
12636
13699
  triggerChild,
12637
- /* @__PURE__ */ jsx120(
13700
+ /* @__PURE__ */ jsx122(
12638
13701
  Menu4,
12639
13702
  {
12640
13703
  id: "user-menu",
@@ -12664,15 +13727,15 @@ UserMenu.Divider = UserMenuDivider;
12664
13727
  UserMenu.displayName = "UserMenu";
12665
13728
 
12666
13729
  // src/components/NotificationBanner/NotificationBanner.tsx
12667
- import * as React63 from "react";
13730
+ import * as React67 from "react";
12668
13731
  import Alert3 from "@mui/material/Alert";
12669
13732
  import AlertTitle from "@mui/material/AlertTitle";
12670
13733
  import Collapse3 from "@mui/material/Collapse";
12671
13734
  import Button8 from "@mui/material/Button";
12672
- import Box54 from "@mui/material/Box";
12673
- import { styled as styled82 } from "@mui/material/styles";
12674
- import { jsx as jsx121, jsxs as jsxs53 } from "react/jsx-runtime";
12675
- var NotificationBannerAlert = styled82(Alert3, {
13735
+ import Box55 from "@mui/material/Box";
13736
+ import { styled as styled84 } from "@mui/material/styles";
13737
+ import { jsx as jsx123, jsxs as jsxs55 } from "react/jsx-runtime";
13738
+ var NotificationBannerAlert = styled84(Alert3, {
12676
13739
  name: "MuiNotificationBanner",
12677
13740
  slot: "Root"
12678
13741
  })(({ theme }) => __spreadValues({
@@ -12700,7 +13763,7 @@ var NotificationBannerAlert = styled82(Alert3, {
12700
13763
  }
12701
13764
  }
12702
13765
  })));
12703
- var NotificationBannerContent = styled82(Box54, {
13766
+ var NotificationBannerContent = styled84(Box55, {
12704
13767
  name: "MuiNotificationBanner",
12705
13768
  slot: "Content"
12706
13769
  })({
@@ -12709,7 +13772,7 @@ var NotificationBannerContent = styled82(Box54, {
12709
13772
  gap: 2,
12710
13773
  flex: 1
12711
13774
  });
12712
- var NotificationBannerAction = styled82(Button8, {
13775
+ var NotificationBannerAction = styled84(Button8, {
12713
13776
  name: "MuiNotificationBanner",
12714
13777
  slot: "Action"
12715
13778
  })({
@@ -12730,22 +13793,22 @@ var NotificationBanner = ({
12730
13793
  onDismiss,
12731
13794
  sx
12732
13795
  }) => {
12733
- const [isVisible, setIsVisible] = React63.useState(visible);
12734
- React63.useEffect(() => {
13796
+ const [isVisible, setIsVisible] = React67.useState(visible);
13797
+ React67.useEffect(() => {
12735
13798
  setIsVisible(visible);
12736
13799
  }, [visible]);
12737
13800
  const handleDismiss = () => {
12738
13801
  setIsVisible(false);
12739
13802
  onDismiss == null ? void 0 : onDismiss();
12740
13803
  };
12741
- return /* @__PURE__ */ jsx121(Collapse3, { in: isVisible, children: /* @__PURE__ */ jsx121(
13804
+ return /* @__PURE__ */ jsx123(Collapse3, { in: isVisible, children: /* @__PURE__ */ jsx123(
12742
13805
  NotificationBannerAlert,
12743
13806
  {
12744
13807
  severity,
12745
13808
  variant: "filled",
12746
13809
  onClose: handleDismiss,
12747
13810
  sx,
12748
- action: actionLabel && onAction ? /* @__PURE__ */ jsx121(
13811
+ action: actionLabel && onAction ? /* @__PURE__ */ jsx123(
12749
13812
  NotificationBannerAction,
12750
13813
  {
12751
13814
  color: "inherit",
@@ -12754,19 +13817,19 @@ var NotificationBanner = ({
12754
13817
  children: actionLabel
12755
13818
  }
12756
13819
  ) : void 0,
12757
- children: /* @__PURE__ */ jsxs53(NotificationBannerContent, { children: [
12758
- title && /* @__PURE__ */ jsx121(AlertTitle, { sx: { mb: 0 }, children: title }),
12759
- /* @__PURE__ */ jsx121(Box54, { component: "span", children: message })
13820
+ children: /* @__PURE__ */ jsxs55(NotificationBannerContent, { children: [
13821
+ title && /* @__PURE__ */ jsx123(AlertTitle, { sx: { mb: 0 }, children: title }),
13822
+ /* @__PURE__ */ jsx123(Box55, { component: "span", children: message })
12760
13823
  ] })
12761
13824
  }
12762
13825
  ) });
12763
13826
  };
12764
13827
 
12765
13828
  // src/components/Form/CardButton.tsx
12766
- import { Card as Card5, ButtonBase as ButtonBase4, Box as Box55, styled as styled83 } from "@mui/material";
13829
+ import { Card as Card5, ButtonBase as ButtonBase4, Box as Box56, styled as styled85 } from "@mui/material";
12767
13830
  import { CardHeader, CardContent as CardContent4, CardActions, CardMedia } from "@mui/material";
12768
- import { jsx as jsx122 } from "react/jsx-runtime";
12769
- var StyledCardButton = styled83(Card5, {
13831
+ import { jsx as jsx124 } from "react/jsx-runtime";
13832
+ var StyledCardButton = styled85(Card5, {
12770
13833
  shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
12771
13834
  })(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
12772
13835
  flexDirection: "column",
@@ -12794,7 +13857,7 @@ var StyledCardButton = styled83(Card5, {
12794
13857
  }));
12795
13858
  var CardButton = (props) => {
12796
13859
  const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
12797
- return /* @__PURE__ */ jsx122(
13860
+ return /* @__PURE__ */ jsx124(
12798
13861
  StyledCardButton,
12799
13862
  __spreadValues({
12800
13863
  alignItems,
@@ -12804,36 +13867,36 @@ var CardButton = (props) => {
12804
13867
  }, rest)
12805
13868
  );
12806
13869
  };
12807
- var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx122(Box55, __spreadValues({ className: "creation-flow-card-actions" }, props));
13870
+ var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx124(Box56, __spreadValues({ className: "creation-flow-card-actions" }, props));
12808
13871
 
12809
13872
  // src/components/Form/Stack.tsx
12810
13873
  import { Stack as OxygenStack } from "@mui/material";
12811
- import { jsx as jsx123 } from "react/jsx-runtime";
13874
+ import { jsx as jsx125 } from "react/jsx-runtime";
12812
13875
  var Stack3 = (props) => {
12813
- return /* @__PURE__ */ jsx123(OxygenStack, __spreadValues({ spacing: 2 }, props));
13876
+ return /* @__PURE__ */ jsx125(OxygenStack, __spreadValues({ spacing: 2 }, props));
12814
13877
  };
12815
13878
 
12816
13879
  // src/components/Form/Typography.tsx
12817
- import { Typography as Typography31 } from "@mui/material";
12818
- import { jsx as jsx124 } from "react/jsx-runtime";
13880
+ import { Typography as Typography32 } from "@mui/material";
13881
+ import { jsx as jsx126 } from "react/jsx-runtime";
12819
13882
  var Header2 = (props) => {
12820
13883
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
12821
- return /* @__PURE__ */ jsx124(Typography31, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
13884
+ return /* @__PURE__ */ jsx126(Typography32, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
12822
13885
  };
12823
13886
  var Subheader = (props) => {
12824
13887
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
12825
- return /* @__PURE__ */ jsx124(Typography31, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
13888
+ return /* @__PURE__ */ jsx126(Typography32, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
12826
13889
  };
12827
13890
  var Body = (props) => {
12828
13891
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
12829
- return /* @__PURE__ */ jsx124(Typography31, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
13892
+ return /* @__PURE__ */ jsx126(Typography32, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
12830
13893
  };
12831
13894
 
12832
13895
  // src/components/Form/Section.tsx
12833
13896
  import { Card as Card6, CardContent as CardContent5, Stack as Stack4 } from "@mui/material";
12834
- import { jsx as jsx125 } from "react/jsx-runtime";
13897
+ import { jsx as jsx127 } from "react/jsx-runtime";
12835
13898
  var Section = ({ children }) => {
12836
- return /* @__PURE__ */ jsx125(Card6, { children: /* @__PURE__ */ jsx125(CardContent5, { children: /* @__PURE__ */ jsx125(Stack4, { direction: "column", spacing: 2, children }) }) });
13899
+ return /* @__PURE__ */ jsx127(Card6, { children: /* @__PURE__ */ jsx127(CardContent5, { children: /* @__PURE__ */ jsx127(Stack4, { direction: "column", spacing: 2, children }) }) });
12837
13900
  };
12838
13901
 
12839
13902
  // src/components/Form/Wizard.tsx
@@ -12843,41 +13906,41 @@ import {
12843
13906
  StepLabel,
12844
13907
  Step,
12845
13908
  Stepper,
12846
- Divider as Divider10
13909
+ Divider as Divider11
12847
13910
  } from "@mui/material";
12848
- import { styled as styled84 } from "@mui/material/styles";
12849
- import { useMemo as useMemo11 } from "react";
12850
- import { jsx as jsx126, jsxs as jsxs54 } from "react/jsx-runtime";
12851
- var StyledWizardActionsStack = styled84(Stack3)(() => ({
13911
+ import { styled as styled86 } from "@mui/material/styles";
13912
+ import { useMemo as useMemo12 } from "react";
13913
+ import { jsx as jsx128, jsxs as jsxs56 } from "react/jsx-runtime";
13914
+ var StyledWizardActionsStack = styled86(Stack3)(() => ({
12852
13915
  justifyContent: "space-between",
12853
13916
  flexGrow: 1
12854
13917
  }));
12855
13918
  function Wizard({ steps, activeStep, actions }) {
12856
- const step = useMemo11(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
12857
- return /* @__PURE__ */ jsx126(Card7, { children: /* @__PURE__ */ jsx126(CardContent6, { children: /* @__PURE__ */ jsxs54(Stack3, { children: [
12858
- /* @__PURE__ */ jsx126(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx126(Step, { children: /* @__PURE__ */ jsx126(StepLabel, { children: step2.label }) }, step2.label)) }),
12859
- /* @__PURE__ */ jsx126(Divider10, {}),
12860
- /* @__PURE__ */ jsx126(Stack3, { direction: "row", children: step == null ? void 0 : step.component }),
12861
- /* @__PURE__ */ jsx126(StyledWizardActionsStack, { direction: "row", children: actions })
13919
+ const step = useMemo12(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
13920
+ return /* @__PURE__ */ jsx128(Card7, { children: /* @__PURE__ */ jsx128(CardContent6, { children: /* @__PURE__ */ jsxs56(Stack3, { children: [
13921
+ /* @__PURE__ */ jsx128(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx128(Step, { children: /* @__PURE__ */ jsx128(StepLabel, { children: step2.label }) }, step2.label)) }),
13922
+ /* @__PURE__ */ jsx128(Divider11, {}),
13923
+ /* @__PURE__ */ jsx128(Stack3, { direction: "row", children: step == null ? void 0 : step.component }),
13924
+ /* @__PURE__ */ jsx128(StyledWizardActionsStack, { direction: "row", children: actions })
12862
13925
  ] }) }) });
12863
13926
  }
12864
13927
 
12865
13928
  // src/components/Form/ElementWrapper.tsx
12866
13929
  import { FormControl as FormControl5, FormLabel as FormLabel3 } from "@mui/material";
12867
- import React64 from "react";
12868
- import { jsx as jsx127, jsxs as jsxs55 } from "react/jsx-runtime";
13930
+ import React68 from "react";
13931
+ import { jsx as jsx129, jsxs as jsxs57 } from "react/jsx-runtime";
12869
13932
  var ElementWrapper = (props) => {
12870
13933
  const { label, name, children } = props;
12871
13934
  const labelId = `${name}-label`;
12872
- const enhancedChildren = React64.Children.map(children, (child) => {
13935
+ const enhancedChildren = React68.Children.map(children, (child) => {
12873
13936
  var _a;
12874
- if (React64.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
12875
- return React64.cloneElement(child, { labelId });
13937
+ if (React68.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
13938
+ return React68.cloneElement(child, { labelId });
12876
13939
  }
12877
13940
  return child;
12878
13941
  });
12879
- return /* @__PURE__ */ jsxs55(FormControl5, { fullWidth: true, children: [
12880
- /* @__PURE__ */ jsx127(FormLabel3, { id: labelId, htmlFor: name, focused: false, children: label }),
13942
+ return /* @__PURE__ */ jsxs57(FormControl5, { fullWidth: true, children: [
13943
+ /* @__PURE__ */ jsx129(FormLabel3, { id: labelId, htmlFor: name, focused: false, children: label }),
12881
13944
  enhancedChildren
12882
13945
  ] });
12883
13946
  };
@@ -12901,19 +13964,19 @@ var Form = {
12901
13964
  };
12902
13965
 
12903
13966
  // src/components/FullScreenWizard/FullScreenWizard.tsx
12904
- import * as React71 from "react";
13967
+ import * as React75 from "react";
12905
13968
  import Dialog from "@mui/material/Dialog";
12906
- import { styled as styled90 } from "@mui/material/styles";
13969
+ import { styled as styled92 } from "@mui/material/styles";
12907
13970
 
12908
13971
  // src/components/FullScreenWizard/context.ts
12909
- import * as React65 from "react";
13972
+ import * as React69 from "react";
12910
13973
  var resolveLabel = (label, fallback) => typeof label === "string" && label.trim().length > 0 ? label : fallback;
12911
- var FullScreenWizardContext = React65.createContext(
13974
+ var FullScreenWizardContext = React69.createContext(
12912
13975
  null
12913
13976
  );
12914
13977
  FullScreenWizardContext.displayName = "FullScreenWizard.Context";
12915
13978
  var useFullScreenWizard = (componentName = "FullScreenWizard sub-components") => {
12916
- const context = React65.useContext(FullScreenWizardContext);
13979
+ const context = React69.useContext(FullScreenWizardContext);
12917
13980
  if (!context) {
12918
13981
  throw new Error(
12919
13982
  `${componentName} must be used as a child of <FullScreenWizard>. Wrap your component tree with <FullScreenWizard> to provide the necessary context.
@@ -12931,17 +13994,17 @@ Example:
12931
13994
  };
12932
13995
 
12933
13996
  // src/components/FullScreenWizard/FullScreenWizardProgress.tsx
12934
- import * as React66 from "react";
13997
+ import * as React70 from "react";
12935
13998
  import LinearProgress2 from "@mui/material/LinearProgress";
12936
- import { styled as styled85 } from "@mui/material/styles";
12937
- import { jsx as jsx128 } from "react/jsx-runtime";
12938
- var FullScreenWizardProgressRoot = styled85(LinearProgress2, {
13999
+ import { styled as styled87 } from "@mui/material/styles";
14000
+ import { jsx as jsx130 } from "react/jsx-runtime";
14001
+ var FullScreenWizardProgressRoot = styled87(LinearProgress2, {
12939
14002
  name: "MuiFullScreenWizard",
12940
14003
  slot: "Progress"
12941
14004
  })({
12942
14005
  flexShrink: 0
12943
14006
  });
12944
- var FullScreenWizardProgressSegments = styled85("div", {
14007
+ var FullScreenWizardProgressSegments = styled87("div", {
12945
14008
  name: "MuiFullScreenWizard",
12946
14009
  slot: "ProgressSegments"
12947
14010
  })(({ theme }) => ({
@@ -12956,7 +14019,7 @@ var FullScreenWizardProgressSegments = styled85("div", {
12956
14019
  padding: theme.spacing(2, 4, 0)
12957
14020
  }
12958
14021
  }));
12959
- var FullScreenWizardProgressSegment = styled85("span", {
14022
+ var FullScreenWizardProgressSegment = styled87("span", {
12960
14023
  name: "MuiFullScreenWizard",
12961
14024
  slot: "ProgressSegment"
12962
14025
  })(({ theme, ownerState }) => ({
@@ -12968,7 +14031,7 @@ var FullScreenWizardProgressSegment = styled85("span", {
12968
14031
  duration: theme.transitions.duration.short
12969
14032
  })
12970
14033
  }));
12971
- var FullScreenWizardProgress = React66.forwardRef(
14034
+ var FullScreenWizardProgress = React70.forwardRef(
12972
14035
  function FullScreenWizardProgress2(_a, ref) {
12973
14036
  var _b = _a, {
12974
14037
  value,
@@ -12993,7 +14056,7 @@ var FullScreenWizardProgress = React66.forwardRef(
12993
14056
  if (variant === "segmented") {
12994
14057
  const segmentCount = Math.max(0, Math.floor(steps));
12995
14058
  const filledCount = Math.round(clampedValue / 100 * segmentCount);
12996
- return /* @__PURE__ */ jsx128(
14059
+ return /* @__PURE__ */ jsx130(
12997
14060
  FullScreenWizardProgressSegments,
12998
14061
  __spreadProps(__spreadValues({
12999
14062
  ref,
@@ -13004,7 +14067,7 @@ var FullScreenWizardProgress = React66.forwardRef(
13004
14067
  "aria-valuenow": Math.round(clampedValue),
13005
14068
  "aria-valuetext": valueText
13006
14069
  }, props), {
13007
- children: Array.from({ length: segmentCount }, (_, index) => /* @__PURE__ */ jsx128(
14070
+ children: Array.from({ length: segmentCount }, (_, index) => /* @__PURE__ */ jsx130(
13008
14071
  FullScreenWizardProgressSegment,
13009
14072
  {
13010
14073
  ownerState: { filled: index < filledCount, color: color === "inherit" ? "primary" : color }
@@ -13014,7 +14077,7 @@ var FullScreenWizardProgress = React66.forwardRef(
13014
14077
  })
13015
14078
  );
13016
14079
  }
13017
- return /* @__PURE__ */ jsx128(
14080
+ return /* @__PURE__ */ jsx130(
13018
14081
  FullScreenWizardProgressRoot,
13019
14082
  __spreadProps(__spreadValues({
13020
14083
  ref,
@@ -13032,13 +14095,13 @@ var FullScreenWizardProgress = React66.forwardRef(
13032
14095
  FullScreenWizardProgress.displayName = "FullScreenWizard.Progress";
13033
14096
 
13034
14097
  // src/components/FullScreenWizard/FullScreenWizardHeader.tsx
13035
- import * as React67 from "react";
14098
+ import * as React71 from "react";
13036
14099
  import IconButton17 from "@mui/material/IconButton";
13037
14100
  import { useForkRef } from "@mui/material/utils";
13038
- import { styled as styled86 } from "@mui/material/styles";
14101
+ import { styled as styled88 } from "@mui/material/styles";
13039
14102
  import { X as X7 } from "@wso2/oxygen-ui-icons-react";
13040
- import { jsx as jsx129, jsxs as jsxs56 } from "react/jsx-runtime";
13041
- var FullScreenWizardHeaderRoot = styled86("header", {
14103
+ import { jsx as jsx131, jsxs as jsxs58 } from "react/jsx-runtime";
14104
+ var FullScreenWizardHeaderRoot = styled88("header", {
13042
14105
  name: "MuiFullScreenWizard",
13043
14106
  slot: "Header"
13044
14107
  })(({ theme }) => ({
@@ -13055,20 +14118,20 @@ var FullScreenWizardHeaderRoot = styled86("header", {
13055
14118
  padding: theme.spacing(3, 4)
13056
14119
  }
13057
14120
  }));
13058
- var FullScreenWizardHeaderContent = styled86("div", {
14121
+ var FullScreenWizardHeaderContent = styled88("div", {
13059
14122
  name: "MuiFullScreenWizard",
13060
14123
  slot: "HeaderContent"
13061
14124
  })({
13062
14125
  flex: 1,
13063
14126
  minWidth: 0
13064
14127
  });
13065
- var FullScreenWizardHeader = React67.forwardRef(
14128
+ var FullScreenWizardHeader = React71.forwardRef(
13066
14129
  function FullScreenWizardHeader2(_a, ref) {
13067
14130
  var _b = _a, { children, closePosition = "start", closeIcon, CloseButtonProps: closeButtonProps } = _b, props = __objRest(_b, ["children", "closePosition", "closeIcon", "CloseButtonProps"]);
13068
14131
  const { onClose, closeLabel, setHeaderHeight } = useFullScreenWizard("FullScreenWizard.Header");
13069
- const headerRef = React67.useRef(null);
14132
+ const headerRef = React71.useRef(null);
13070
14133
  const handleRef = useForkRef(headerRef, ref);
13071
- React67.useLayoutEffect(() => {
14134
+ React71.useLayoutEffect(() => {
13072
14135
  const node = headerRef.current;
13073
14136
  if (!node) {
13074
14137
  return void 0;
@@ -13084,10 +14147,10 @@ var FullScreenWizardHeader = React67.forwardRef(
13084
14147
  setHeaderHeight(0);
13085
14148
  };
13086
14149
  }, [setHeaderHeight]);
13087
- const closeButton = onClose && /* @__PURE__ */ jsx129(IconButton17, __spreadProps(__spreadValues({ edge: closePosition }, closeButtonProps), { onClick: onClose, "aria-label": closeLabel, children: closeIcon != null ? closeIcon : /* @__PURE__ */ jsx129(X7, { size: 20, "aria-hidden": "true" }) }));
13088
- return /* @__PURE__ */ jsxs56(FullScreenWizardHeaderRoot, __spreadProps(__spreadValues({ ref: handleRef }, props), { children: [
14150
+ const closeButton = onClose && /* @__PURE__ */ jsx131(IconButton17, __spreadProps(__spreadValues({ edge: closePosition }, closeButtonProps), { onClick: onClose, "aria-label": closeLabel, children: closeIcon != null ? closeIcon : /* @__PURE__ */ jsx131(X7, { size: 20, "aria-hidden": "true" }) }));
14151
+ return /* @__PURE__ */ jsxs58(FullScreenWizardHeaderRoot, __spreadProps(__spreadValues({ ref: handleRef }, props), { children: [
13089
14152
  closePosition === "start" && closeButton,
13090
- /* @__PURE__ */ jsx129(FullScreenWizardHeaderContent, { children }),
14153
+ /* @__PURE__ */ jsx131(FullScreenWizardHeaderContent, { children }),
13091
14154
  closePosition === "end" && closeButton
13092
14155
  ] }));
13093
14156
  }
@@ -13095,11 +14158,11 @@ var FullScreenWizardHeader = React67.forwardRef(
13095
14158
  FullScreenWizardHeader.displayName = "FullScreenWizard.Header";
13096
14159
 
13097
14160
  // src/components/FullScreenWizard/FullScreenWizardContent.tsx
13098
- import * as React68 from "react";
13099
- import { styled as styled87 } from "@mui/material/styles";
14161
+ import * as React72 from "react";
14162
+ import { styled as styled89 } from "@mui/material/styles";
13100
14163
  import { useForkRef as useForkRef2 } from "@mui/material/utils";
13101
- import { jsx as jsx130, jsxs as jsxs57 } from "react/jsx-runtime";
13102
- var FullScreenWizardContentRoot = styled87("div", {
14164
+ import { jsx as jsx132, jsxs as jsxs59 } from "react/jsx-runtime";
14165
+ var FullScreenWizardContentRoot = styled89("div", {
13103
14166
  name: "MuiFullScreenWizard",
13104
14167
  slot: "Content"
13105
14168
  })(({ theme }) => ({
@@ -13126,7 +14189,7 @@ var FullScreenWizardContentRoot = styled87("div", {
13126
14189
  outlineOffset: -2
13127
14190
  }
13128
14191
  }));
13129
- var FullScreenWizardContentColumn = styled87("div", {
14192
+ var FullScreenWizardContentColumn = styled89("div", {
13130
14193
  name: "MuiFullScreenWizard",
13131
14194
  slot: "ContentColumn"
13132
14195
  })(({
@@ -13150,23 +14213,23 @@ var FullScreenWizardContentColumn = styled87("div", {
13150
14213
  maxWidth: resolvedMaxWidth
13151
14214
  }, align === "center" && { margin: "auto" });
13152
14215
  });
13153
- var FullScreenWizardContentBalance = styled87("div", {
14216
+ var FullScreenWizardContentBalance = styled89("div", {
13154
14217
  name: "MuiFullScreenWizard",
13155
14218
  slot: "ContentBalance"
13156
14219
  })(({ ownerState }) => ({
13157
14220
  flexShrink: 0,
13158
14221
  height: ownerState.height
13159
14222
  }));
13160
- var FullScreenWizardContent = React68.forwardRef(
14223
+ var FullScreenWizardContent = React72.forwardRef(
13161
14224
  function FullScreenWizardContent2(_a, ref) {
13162
14225
  var _b = _a, { children, component, maxWidth = "md", align = "start", focusKey } = _b, props = __objRest(_b, ["children", "component", "maxWidth", "align", "focusKey"]);
13163
14226
  const { modal, footer, ariaLabel, ariaLabelledby, headerHeight } = useFullScreenWizard(
13164
14227
  "FullScreenWizard.Content"
13165
14228
  );
13166
- const contentRef = React68.useRef(null);
14229
+ const contentRef = React72.useRef(null);
13167
14230
  const handleRef = useForkRef2(contentRef, ref);
13168
- const previousFocusKey = React68.useRef(focusKey);
13169
- React68.useEffect(() => {
14231
+ const previousFocusKey = React72.useRef(focusKey);
14232
+ React72.useEffect(() => {
13170
14233
  if (Object.is(previousFocusKey.current, focusKey)) {
13171
14234
  return;
13172
14235
  }
@@ -13180,7 +14243,7 @@ var FullScreenWizardContent = React68.forwardRef(
13180
14243
  }, [focusKey]);
13181
14244
  const element = component != null ? component : modal ? "div" : "main";
13182
14245
  const landmarkProps = element === "main" ? { "aria-label": ariaLabelledby ? void 0 : ariaLabel, "aria-labelledby": ariaLabelledby } : {};
13183
- return /* @__PURE__ */ jsxs57(
14246
+ return /* @__PURE__ */ jsxs59(
13184
14247
  FullScreenWizardContentRoot,
13185
14248
  __spreadProps(__spreadValues(__spreadValues({
13186
14249
  as: element,
@@ -13188,11 +14251,11 @@ var FullScreenWizardContent = React68.forwardRef(
13188
14251
  tabIndex: -1
13189
14252
  }, landmarkProps), props), {
13190
14253
  children: [
13191
- /* @__PURE__ */ jsxs57(FullScreenWizardContentColumn, { ownerState: { maxWidth, align }, children: [
14254
+ /* @__PURE__ */ jsxs59(FullScreenWizardContentColumn, { ownerState: { maxWidth, align }, children: [
13192
14255
  children,
13193
14256
  footer
13194
14257
  ] }),
13195
- align === "center" && headerHeight > 0 && /* @__PURE__ */ jsx130(FullScreenWizardContentBalance, { "aria-hidden": "true", ownerState: { height: headerHeight } })
14258
+ align === "center" && headerHeight > 0 && /* @__PURE__ */ jsx132(FullScreenWizardContentBalance, { "aria-hidden": "true", ownerState: { height: headerHeight } })
13196
14259
  ]
13197
14260
  })
13198
14261
  );
@@ -13201,10 +14264,10 @@ var FullScreenWizardContent = React68.forwardRef(
13201
14264
  FullScreenWizardContent.displayName = "FullScreenWizard.Content";
13202
14265
 
13203
14266
  // src/components/FullScreenWizard/FullScreenWizardFooter.tsx
13204
- import * as React69 from "react";
13205
- import { styled as styled88 } from "@mui/material/styles";
13206
- import { jsx as jsx131 } from "react/jsx-runtime";
13207
- var FullScreenWizardFooterRoot = styled88("div", {
14267
+ import * as React73 from "react";
14268
+ import { styled as styled90 } from "@mui/material/styles";
14269
+ import { jsx as jsx133 } from "react/jsx-runtime";
14270
+ var FullScreenWizardFooterRoot = styled90("div", {
13208
14271
  name: "MuiFullScreenWizard",
13209
14272
  slot: "Footer"
13210
14273
  })(({ theme, ownerState }) => __spreadValues(__spreadValues({
@@ -13244,11 +14307,11 @@ var FullScreenWizardFooterRoot = styled88("div", {
13244
14307
  padding: theme.spacing(2, 10)
13245
14308
  }
13246
14309
  }));
13247
- var FullScreenWizardFooter = React69.forwardRef(
14310
+ var FullScreenWizardFooter = React73.forwardRef(
13248
14311
  function FullScreenWizardFooter2(_a, ref) {
13249
14312
  var _b = _a, { children, sticky = false, variant = "inline" } = _b, props = __objRest(_b, ["children", "sticky", "variant"]);
13250
14313
  useFullScreenWizard("FullScreenWizard.Footer");
13251
- return /* @__PURE__ */ jsx131(
14314
+ return /* @__PURE__ */ jsx133(
13252
14315
  FullScreenWizardFooterRoot,
13253
14316
  __spreadProps(__spreadValues({
13254
14317
  ref,
@@ -13262,10 +14325,10 @@ var FullScreenWizardFooter = React69.forwardRef(
13262
14325
  FullScreenWizardFooter.displayName = "FullScreenWizard.Footer";
13263
14326
 
13264
14327
  // src/components/FullScreenWizard/FullScreenWizardPreview.tsx
13265
- import * as React70 from "react";
13266
- import { styled as styled89 } from "@mui/material/styles";
13267
- import { jsx as jsx132 } from "react/jsx-runtime";
13268
- var FullScreenWizardPreviewRoot = styled89("aside", {
14328
+ import * as React74 from "react";
14329
+ import { styled as styled91 } from "@mui/material/styles";
14330
+ import { jsx as jsx134 } from "react/jsx-runtime";
14331
+ var FullScreenWizardPreviewRoot = styled91("aside", {
13269
14332
  name: "MuiFullScreenWizard",
13270
14333
  slot: "Preview"
13271
14334
  })(({ theme, ownerState }) => __spreadValues({
@@ -13281,7 +14344,7 @@ var FullScreenWizardPreviewRoot = styled89("aside", {
13281
14344
  display: "none"
13282
14345
  }
13283
14346
  }));
13284
- var FullScreenWizardPreview = React70.forwardRef(
14347
+ var FullScreenWizardPreview = React74.forwardRef(
13285
14348
  function FullScreenWizardPreview2(_a, ref) {
13286
14349
  var _b = _a, {
13287
14350
  children,
@@ -13296,7 +14359,7 @@ var FullScreenWizardPreview = React70.forwardRef(
13296
14359
  "position"
13297
14360
  ]);
13298
14361
  useFullScreenWizard("FullScreenWizard.Preview");
13299
- return /* @__PURE__ */ jsx132(
14362
+ return /* @__PURE__ */ jsx134(
13300
14363
  FullScreenWizardPreviewRoot,
13301
14364
  __spreadProps(__spreadValues({
13302
14365
  ref,
@@ -13311,7 +14374,7 @@ var FullScreenWizardPreview = React70.forwardRef(
13311
14374
  FullScreenWizardPreview.displayName = "FullScreenWizard.Preview";
13312
14375
 
13313
14376
  // src/components/FullScreenWizard/FullScreenWizard.tsx
13314
- import { jsx as jsx133, jsxs as jsxs58 } from "react/jsx-runtime";
14377
+ import { jsx as jsx135, jsxs as jsxs60 } from "react/jsx-runtime";
13315
14378
  var SLOT_DISPLAY_NAMES = {
13316
14379
  Progress: "FullScreenWizard.Progress",
13317
14380
  Content: "FullScreenWizard.Content",
@@ -13320,18 +14383,18 @@ var SLOT_DISPLAY_NAMES = {
13320
14383
  };
13321
14384
  var displayNameOf = (child) => {
13322
14385
  var _a;
13323
- return React71.isValidElement(child) ? (_a = child.type) == null ? void 0 : _a.displayName : void 0;
14386
+ return React75.isValidElement(child) ? (_a = child.type) == null ? void 0 : _a.displayName : void 0;
13324
14387
  };
13325
- var flattenChildren = (children, keyPrefix = "") => React71.Children.toArray(children).reduce((flat, child) => {
13326
- if (!React71.isValidElement(child)) {
14388
+ var flattenChildren = (children, keyPrefix = "") => React75.Children.toArray(children).reduce((flat, child) => {
14389
+ if (!React75.isValidElement(child)) {
13327
14390
  return flat.concat([child]);
13328
14391
  }
13329
- if (child.type === React71.Fragment) {
14392
+ if (child.type === React75.Fragment) {
13330
14393
  return flat.concat(flattenChildren(child.props.children, `${keyPrefix}${child.key}:`));
13331
14394
  }
13332
- return flat.concat([keyPrefix ? React71.cloneElement(child, { key: `${keyPrefix}${child.key}` }) : child]);
14395
+ return flat.concat([keyPrefix ? React75.cloneElement(child, { key: `${keyPrefix}${child.key}` }) : child]);
13333
14396
  }, []);
13334
- var FullScreenWizardRoot = styled90("div", {
14397
+ var FullScreenWizardRoot = styled92("div", {
13335
14398
  name: "MuiFullScreenWizard",
13336
14399
  slot: "Root"
13337
14400
  })(({ theme, ownerState }) => ({
@@ -13345,7 +14408,7 @@ var FullScreenWizardRoot = styled90("div", {
13345
14408
  backgroundColor: ownerState.modal ? (theme.vars || theme).palette.background.paper : "transparent",
13346
14409
  color: (theme.vars || theme).palette.text.primary
13347
14410
  }));
13348
- var FullScreenWizardColumns = styled90("div", {
14411
+ var FullScreenWizardColumns = styled92("div", {
13349
14412
  name: "MuiFullScreenWizard",
13350
14413
  slot: "Columns"
13351
14414
  })({
@@ -13353,7 +14416,7 @@ var FullScreenWizardColumns = styled90("div", {
13353
14416
  minHeight: 0,
13354
14417
  display: "flex"
13355
14418
  });
13356
- var FullScreenWizardBody = styled90("div", {
14419
+ var FullScreenWizardBody = styled92("div", {
13357
14420
  name: "MuiFullScreenWizard",
13358
14421
  slot: "Body"
13359
14422
  })({
@@ -13363,7 +14426,7 @@ var FullScreenWizardBody = styled90("div", {
13363
14426
  display: "flex",
13364
14427
  flexDirection: "column"
13365
14428
  });
13366
- var FullScreenWizardBase = React71.forwardRef(
14429
+ var FullScreenWizardBase = React75.forwardRef(
13367
14430
  function FullScreenWizard(_a, ref) {
13368
14431
  var _b = _a, {
13369
14432
  children,
@@ -13399,17 +14462,17 @@ var FullScreenWizardBase = React71.forwardRef(
13399
14462
  const hasContent2 = childrenArray.some(
13400
14463
  (child) => displayNameOf(child) === SLOT_DISPLAY_NAMES.Content
13401
14464
  );
13402
- const isBarFooter = React71.isValidElement(footer) && footer.props.variant === "bar";
14465
+ const isBarFooter = React75.isValidElement(footer) && footer.props.variant === "bar";
13403
14466
  const liftFooter = hasContent2 && !isBarFooter;
13404
14467
  const body = childrenArray.filter(
13405
14468
  (child) => !progress.includes(child) && !preview.includes(child) && (child !== footer || !liftFooter && !isBarFooter)
13406
14469
  );
13407
14470
  const previewAtStart = preview.some(
13408
- (child) => React71.isValidElement(child) && child.props.position === "start"
14471
+ (child) => React75.isValidElement(child) && child.props.position === "start"
13409
14472
  );
13410
14473
  const resolvedCloseLabel = resolveLabel(closeLabel, "Close");
13411
- const [headerHeight, setHeaderHeight] = React71.useState(0);
13412
- const contextValue = React71.useMemo(
14474
+ const [headerHeight, setHeaderHeight] = React75.useState(0);
14475
+ const contextValue = React75.useMemo(
13413
14476
  () => ({
13414
14477
  onClose,
13415
14478
  closeLabel: resolvedCloseLabel,
@@ -13422,11 +14485,11 @@ var FullScreenWizardBase = React71.forwardRef(
13422
14485
  }),
13423
14486
  [onClose, resolvedCloseLabel, modal, ariaLabel, ariaLabelledby, liftFooter, footer, headerHeight]
13424
14487
  );
13425
- const layout = /* @__PURE__ */ jsx133(FullScreenWizardContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs58(FullScreenWizardRoot, __spreadProps(__spreadValues({ ref, ownerState: { modal }, sx }, rootProps), { children: [
14488
+ const layout = /* @__PURE__ */ jsx135(FullScreenWizardContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs60(FullScreenWizardRoot, __spreadProps(__spreadValues({ ref, ownerState: { modal }, sx }, rootProps), { children: [
13426
14489
  progress,
13427
- /* @__PURE__ */ jsxs58(FullScreenWizardColumns, { children: [
14490
+ /* @__PURE__ */ jsxs60(FullScreenWizardColumns, { children: [
13428
14491
  previewAtStart && preview,
13429
- /* @__PURE__ */ jsxs58(FullScreenWizardBody, { children: [
14492
+ /* @__PURE__ */ jsxs60(FullScreenWizardBody, { children: [
13430
14493
  body,
13431
14494
  isBarFooter && footer
13432
14495
  ] }),
@@ -13438,7 +14501,7 @@ var FullScreenWizardBase = React71.forwardRef(
13438
14501
  }
13439
14502
  const _a2 = dialogProps != null ? dialogProps : {}, { slotProps, PaperProps: paperProps } = _a2, restDialogProps = __objRest(_a2, ["slotProps", "PaperProps"]);
13440
14503
  const paperSlot = slotProps == null ? void 0 : slotProps.paper;
13441
- return /* @__PURE__ */ jsx133(
14504
+ return /* @__PURE__ */ jsx135(
13442
14505
  Dialog,
13443
14506
  __spreadProps(__spreadValues({}, restDialogProps), {
13444
14507
  fullScreen: true,
@@ -13464,7 +14527,7 @@ var FullScreenWizard2 = Object.assign(FullScreenWizardBase, {
13464
14527
  FullScreenWizard2.displayName = "FullScreenWizard";
13465
14528
 
13466
14529
  // src/components/FullScreenWizard/useWizardSteps.ts
13467
- import * as React72 from "react";
14530
+ import * as React76 from "react";
13468
14531
  var resolveActiveStep = (all, visible, requested) => {
13469
14532
  if (visible.length === 0) {
13470
14533
  return void 0;
@@ -13491,32 +14554,32 @@ var useWizardSteps = (steps, { initialStep } = {}) => {
13491
14554
  (step) => typeof step === "string" ? { id: step, skip: false } : { id: step.id, skip: Boolean(step.skip) }
13492
14555
  )
13493
14556
  );
13494
- const { all, visible } = React72.useMemo(() => {
14557
+ const { all, visible } = React76.useMemo(() => {
13495
14558
  const normalized = JSON.parse(signature);
13496
14559
  return {
13497
14560
  all: normalized,
13498
14561
  visible: normalized.filter((step) => !step.skip).map((step) => step.id)
13499
14562
  };
13500
14563
  }, [signature]);
13501
- const [requested, setRequested] = React72.useState(initialStep);
14564
+ const [requested, setRequested] = React76.useState(initialStep);
13502
14565
  const activeStep = resolveActiveStep(all, visible, requested);
13503
14566
  const activeIndex = activeStep === void 0 ? -1 : visible.indexOf(activeStep);
13504
14567
  const count = visible.length;
13505
- const next = React72.useCallback(() => {
14568
+ const next = React76.useCallback(() => {
13506
14569
  setRequested((current) => {
13507
14570
  var _a;
13508
14571
  const index = visible.indexOf(resolveActiveStep(all, visible, current));
13509
14572
  return (_a = visible[Math.min(index + 1, visible.length - 1)]) != null ? _a : current;
13510
14573
  });
13511
14574
  }, [all, visible]);
13512
- const back = React72.useCallback(() => {
14575
+ const back = React76.useCallback(() => {
13513
14576
  setRequested((current) => {
13514
14577
  var _a;
13515
14578
  const index = visible.indexOf(resolveActiveStep(all, visible, current));
13516
14579
  return (_a = visible[Math.max(index - 1, 0)]) != null ? _a : current;
13517
14580
  });
13518
14581
  }, [all, visible]);
13519
- const goTo = React72.useCallback(
14582
+ const goTo = React76.useCallback(
13520
14583
  (step) => {
13521
14584
  if (visible.includes(step)) {
13522
14585
  setRequested(step);
@@ -13540,16 +14603,16 @@ var useWizardSteps = (steps, { initialStep } = {}) => {
13540
14603
  };
13541
14604
 
13542
14605
  // src/components/AppShell/AppShell.tsx
13543
- import * as React74 from "react";
13544
- import Box60 from "@mui/material/Box";
14606
+ import * as React78 from "react";
14607
+ import Box61 from "@mui/material/Box";
13545
14608
 
13546
14609
  // src/layouts/Layout.tsx
13547
- import Box56 from "@mui/material/Box";
13548
- import { jsx as jsx134 } from "react/jsx-runtime";
14610
+ import Box57 from "@mui/material/Box";
14611
+ import { jsx as jsx136 } from "react/jsx-runtime";
13549
14612
  function Layout(_a) {
13550
14613
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
13551
- return /* @__PURE__ */ jsx134(
13552
- Box56,
14614
+ return /* @__PURE__ */ jsx136(
14615
+ Box57,
13553
14616
  __spreadProps(__spreadValues({
13554
14617
  sx: __spreadValues({
13555
14618
  display: "flex",
@@ -13564,12 +14627,12 @@ Layout.displayName = "Layout";
13564
14627
  var Layout_default = Layout;
13565
14628
 
13566
14629
  // src/layouts/LayoutSidebar.tsx
13567
- import Box57 from "@mui/material/Box";
13568
- import { jsx as jsx135 } from "react/jsx-runtime";
14630
+ import Box58 from "@mui/material/Box";
14631
+ import { jsx as jsx137 } from "react/jsx-runtime";
13569
14632
  function LayoutSidebar(_a) {
13570
14633
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
13571
- return /* @__PURE__ */ jsx135(
13572
- Box57,
14634
+ return /* @__PURE__ */ jsx137(
14635
+ Box58,
13573
14636
  __spreadProps(__spreadValues({
13574
14637
  sx: __spreadValues({
13575
14638
  display: "flex",
@@ -13591,12 +14654,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
13591
14654
  var LayoutNavbar_default = LayoutNavbar;
13592
14655
 
13593
14656
  // src/layouts/LayoutContent.tsx
13594
- import Box58 from "@mui/material/Box";
13595
- import { jsx as jsx136 } from "react/jsx-runtime";
14657
+ import Box59 from "@mui/material/Box";
14658
+ import { jsx as jsx138 } from "react/jsx-runtime";
13596
14659
  function LayoutContent(_a) {
13597
14660
  var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
13598
- return /* @__PURE__ */ jsx136(
13599
- Box58,
14661
+ return /* @__PURE__ */ jsx138(
14662
+ Box59,
13600
14663
  __spreadProps(__spreadValues({
13601
14664
  component: "main",
13602
14665
  sx: {
@@ -13614,12 +14677,12 @@ LayoutContent.displayName = "Layout.Content";
13614
14677
  var LayoutContent_default = LayoutContent;
13615
14678
 
13616
14679
  // src/layouts/LayoutHeader.tsx
13617
- import Box59 from "@mui/material/Box";
13618
- import { jsx as jsx137 } from "react/jsx-runtime";
14680
+ import Box60 from "@mui/material/Box";
14681
+ import { jsx as jsx139 } from "react/jsx-runtime";
13619
14682
  function LayoutHeader(_a) {
13620
14683
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
13621
- return /* @__PURE__ */ jsx137(
13622
- Box59,
14684
+ return /* @__PURE__ */ jsx139(
14685
+ Box60,
13623
14686
  __spreadProps(__spreadValues({
13624
14687
  sx: __spreadValues({
13625
14688
  display: "flex"
@@ -13642,45 +14705,45 @@ var Layout2 = Object.assign(Layout_default, {
13642
14705
  var layouts_default = Layout2;
13643
14706
 
13644
14707
  // src/components/AppShell/AppShellNavbar.tsx
13645
- import { Fragment as Fragment24, jsx as jsx138 } from "react/jsx-runtime";
14708
+ import { Fragment as Fragment26, jsx as jsx140 } from "react/jsx-runtime";
13646
14709
  var AppShellNavbar = ({ children }) => {
13647
- return /* @__PURE__ */ jsx138(Fragment24, { children });
14710
+ return /* @__PURE__ */ jsx140(Fragment26, { children });
13648
14711
  };
13649
14712
  AppShellNavbar.displayName = "AppShellNavbar";
13650
14713
 
13651
14714
  // src/components/AppShell/AppShellSidebar.tsx
13652
- import { Fragment as Fragment25, jsx as jsx139 } from "react/jsx-runtime";
14715
+ import { Fragment as Fragment27, jsx as jsx141 } from "react/jsx-runtime";
13653
14716
  var AppShellSidebar = ({ children }) => {
13654
- return /* @__PURE__ */ jsx139(Fragment25, { children });
14717
+ return /* @__PURE__ */ jsx141(Fragment27, { children });
13655
14718
  };
13656
14719
  AppShellSidebar.displayName = "AppShellSidebar";
13657
14720
 
13658
14721
  // src/components/AppShell/AppShellMain.tsx
13659
- import { Fragment as Fragment26, jsx as jsx140 } from "react/jsx-runtime";
14722
+ import { Fragment as Fragment28, jsx as jsx142 } from "react/jsx-runtime";
13660
14723
  var AppShellMain = ({ children }) => {
13661
- return /* @__PURE__ */ jsx140(Fragment26, { children });
14724
+ return /* @__PURE__ */ jsx142(Fragment28, { children });
13662
14725
  };
13663
14726
  AppShellMain.displayName = "AppShellMain";
13664
14727
 
13665
14728
  // src/components/AppShell/AppShellFooter.tsx
13666
- import { Fragment as Fragment27, jsx as jsx141 } from "react/jsx-runtime";
14729
+ import { Fragment as Fragment29, jsx as jsx143 } from "react/jsx-runtime";
13667
14730
  var AppShellFooter = ({ children }) => {
13668
- return /* @__PURE__ */ jsx141(Fragment27, { children });
14731
+ return /* @__PURE__ */ jsx143(Fragment29, { children });
13669
14732
  };
13670
14733
  AppShellFooter.displayName = "AppShellFooter";
13671
14734
 
13672
14735
  // src/components/AppShell/AppShellNotificationPanel.tsx
13673
- import { Fragment as Fragment28, jsx as jsx142 } from "react/jsx-runtime";
14736
+ import { Fragment as Fragment30, jsx as jsx144 } from "react/jsx-runtime";
13674
14737
  var AppShellNotificationPanel = ({ children }) => {
13675
- return /* @__PURE__ */ jsx142(Fragment28, { children });
14738
+ return /* @__PURE__ */ jsx144(Fragment30, { children });
13676
14739
  };
13677
14740
  AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
13678
14741
 
13679
14742
  // src/hooks/useAppShell/useAppShell.ts
13680
- import * as React73 from "react";
14743
+ import * as React77 from "react";
13681
14744
  import useMediaQuery3 from "@mui/material/useMediaQuery";
13682
14745
  var useAppShell = (options) => {
13683
- const contextValue = React73.useContext(AppShellContext);
14746
+ const contextValue = React77.useContext(AppShellContext);
13684
14747
  const {
13685
14748
  initialCollapsed = false,
13686
14749
  initialActiveItem = "dashboard",
@@ -13691,7 +14754,7 @@ var useAppShell = (options) => {
13691
14754
  } = options || {};
13692
14755
  const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
13693
14756
  const isCreateMode = options !== void 0;
13694
- const [state, setState] = React73.useState({
14757
+ const [state, setState] = React77.useState({
13695
14758
  sidebarCollapsed: initialCollapsed,
13696
14759
  notificationPanelOpen: false,
13697
14760
  activeMenuItem: initialActiveItem,
@@ -13699,29 +14762,29 @@ var useAppShell = (options) => {
13699
14762
  sidebarWidth,
13700
14763
  sidebarCollapsedWidth
13701
14764
  });
13702
- React73.useEffect(() => {
14765
+ React77.useEffect(() => {
13703
14766
  if (isCreateMode && collapseOnMobile && isMobile) {
13704
14767
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
13705
14768
  }
13706
14769
  }, [isCreateMode, collapseOnMobile, isMobile]);
13707
- const toggleSidebar = React73.useCallback(() => {
14770
+ const toggleSidebar = React77.useCallback(() => {
13708
14771
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
13709
14772
  }, []);
13710
- const setSidebarCollapsed = React73.useCallback((collapsed) => {
14773
+ const setSidebarCollapsed = React77.useCallback((collapsed) => {
13711
14774
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: collapsed }));
13712
14775
  }, []);
13713
- const collapseSidebar = React73.useCallback(() => {
14776
+ const collapseSidebar = React77.useCallback(() => {
13714
14777
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
13715
14778
  }, []);
13716
- const expandSidebar = React73.useCallback(() => {
14779
+ const expandSidebar = React77.useCallback(() => {
13717
14780
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: false }));
13718
14781
  }, []);
13719
- const toggleNotificationPanel = React73.useCallback(() => {
14782
+ const toggleNotificationPanel = React77.useCallback(() => {
13720
14783
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
13721
14784
  notificationPanelOpen: !prev.notificationPanelOpen
13722
14785
  }));
13723
14786
  }, []);
13724
- const setActiveMenuItem = React73.useCallback((id) => {
14787
+ const setActiveMenuItem = React77.useCallback((id) => {
13725
14788
  setState((prev) => {
13726
14789
  const newState = __spreadProps(__spreadValues({}, prev), { activeMenuItem: id });
13727
14790
  if (collapseOnSelectOnMobile && isMobile && !prev.sidebarCollapsed) {
@@ -13730,14 +14793,14 @@ var useAppShell = (options) => {
13730
14793
  return newState;
13731
14794
  });
13732
14795
  }, [collapseOnSelectOnMobile, isMobile]);
13733
- const toggleMenu = React73.useCallback((id) => {
14796
+ const toggleMenu = React77.useCallback((id) => {
13734
14797
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
13735
14798
  expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
13736
14799
  [id]: !prev.expandedMenus[id]
13737
14800
  })
13738
14801
  }));
13739
14802
  }, []);
13740
- const actions = React73.useMemo(
14803
+ const actions = React77.useMemo(
13741
14804
  () => ({
13742
14805
  toggleSidebar,
13743
14806
  setSidebarCollapsed,
@@ -13757,7 +14820,7 @@ var useAppShell = (options) => {
13757
14820
  toggleMenu
13758
14821
  ]
13759
14822
  );
13760
- const createdValue = React73.useMemo(
14823
+ const createdValue = React77.useMemo(
13761
14824
  () => ({
13762
14825
  state,
13763
14826
  actions
@@ -13776,7 +14839,7 @@ var useAppShell = (options) => {
13776
14839
  };
13777
14840
 
13778
14841
  // src/components/AppShell/AppShell.tsx
13779
- import { jsx as jsx143, jsxs as jsxs59 } from "react/jsx-runtime";
14842
+ import { jsx as jsx145, jsxs as jsxs61 } from "react/jsx-runtime";
13780
14843
  var SLOT_DISPLAY_NAMES2 = {
13781
14844
  Navbar: "AppShellNavbar",
13782
14845
  Sidebar: "AppShellSidebar",
@@ -13792,9 +14855,9 @@ var extractSlots = (children) => {
13792
14855
  footer: null,
13793
14856
  notificationPanel: null
13794
14857
  };
13795
- React74.Children.forEach(children, (child) => {
14858
+ React78.Children.forEach(children, (child) => {
13796
14859
  var _a;
13797
- if (React74.isValidElement(child)) {
14860
+ if (React78.isValidElement(child)) {
13798
14861
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
13799
14862
  const childProps = child.props;
13800
14863
  switch (displayName) {
@@ -13826,12 +14889,12 @@ var AppShell = (_a) => {
13826
14889
  var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
13827
14890
  const shell = useAppShell(shellOptions);
13828
14891
  const slots = extractSlots(children);
13829
- return /* @__PURE__ */ jsx143(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs59(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
13830
- slots.navbar && /* @__PURE__ */ jsx143(layouts_default.Navbar, { children: slots.navbar }),
13831
- /* @__PURE__ */ jsxs59(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
13832
- slots.sidebar && /* @__PURE__ */ jsx143(layouts_default.Sidebar, { children: slots.sidebar }),
13833
- /* @__PURE__ */ jsxs59(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
13834
- /* @__PURE__ */ jsx143(Box60, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
14892
+ return /* @__PURE__ */ jsx145(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs61(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
14893
+ slots.navbar && /* @__PURE__ */ jsx145(layouts_default.Navbar, { children: slots.navbar }),
14894
+ /* @__PURE__ */ jsxs61(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
14895
+ slots.sidebar && /* @__PURE__ */ jsx145(layouts_default.Sidebar, { children: slots.sidebar }),
14896
+ /* @__PURE__ */ jsxs61(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
14897
+ /* @__PURE__ */ jsx145(Box61, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
13835
14898
  slots.footer
13836
14899
  ] })
13837
14900
  ] }),
@@ -13847,12 +14910,12 @@ AppShell.displayName = "AppShell";
13847
14910
 
13848
14911
  // src/components/ListingTable/ListingTable/ListingTable.tsx
13849
14912
  import MuiTable from "@mui/material/Table";
13850
- import { styled as styled92 } from "@mui/material/styles";
14913
+ import { styled as styled94 } from "@mui/material/styles";
13851
14914
 
13852
14915
  // src/components/ListingTable/ListingTable/ListingTableContainer.tsx
13853
14916
  import MuiTableContainer from "@mui/material/TableContainer";
13854
14917
  import Paper2 from "@mui/material/Paper";
13855
- import { jsx as jsx144 } from "react/jsx-runtime";
14918
+ import { jsx as jsx146 } from "react/jsx-runtime";
13856
14919
  function ListingTableContainer(_a) {
13857
14920
  var _b = _a, {
13858
14921
  elevation = 1,
@@ -13864,23 +14927,23 @@ function ListingTableContainer(_a) {
13864
14927
  "children"
13865
14928
  ]);
13866
14929
  if (disablePaper) {
13867
- return /* @__PURE__ */ jsx144(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
14930
+ return /* @__PURE__ */ jsx146(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
13868
14931
  }
13869
- return /* @__PURE__ */ jsx144(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper2, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
14932
+ return /* @__PURE__ */ jsx146(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper2, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
13870
14933
  }
13871
14934
  var ListingTableContainer_default = ListingTableContainer;
13872
14935
 
13873
14936
  // src/components/ListingTable/ListingTable/ListingTableBody.tsx
13874
- import { Children as Children20, Fragment as Fragment29, isValidElement as isValidElement22 } from "react";
14937
+ import { Children as Children20, Fragment as Fragment31, isValidElement as isValidElement22 } from "react";
13875
14938
  import MuiTableBody from "@mui/material/TableBody";
13876
14939
  import MuiTableRow2 from "@mui/material/TableRow";
13877
14940
  import MuiTableCell2 from "@mui/material/TableCell";
13878
- import Box61 from "@mui/material/Box";
13879
- import { Search as Search3 } from "@wso2/oxygen-ui-icons-react";
13880
- import { jsx as jsx145 } from "react/jsx-runtime";
14941
+ import Box62 from "@mui/material/Box";
14942
+ import { Search as Search4 } from "@wso2/oxygen-ui-icons-react";
14943
+ import { jsx as jsx147 } from "react/jsx-runtime";
13881
14944
  function hasContent(node) {
13882
14945
  return Children20.toArray(node).some(
13883
- (child) => isValidElement22(child) && child.type === Fragment29 ? hasContent(child.props.children) : true
14946
+ (child) => isValidElement22(child) && child.type === Fragment31 ? hasContent(child.props.children) : true
13884
14947
  );
13885
14948
  }
13886
14949
  function ListingTableBody(_a) {
@@ -13890,7 +14953,7 @@ function ListingTableBody(_a) {
13890
14953
  loading,
13891
14954
  noSearchResultsText = "No results found",
13892
14955
  noSearchResultsDescription = "Try a different keyword",
13893
- noSearchResultsIcon = /* @__PURE__ */ jsx145(Search3, {}),
14956
+ noSearchResultsIcon = /* @__PURE__ */ jsx147(Search4, {}),
13894
14957
  emptyStateColSpan = 1e3
13895
14958
  } = _b, props = __objRest(_b, [
13896
14959
  "children",
@@ -13907,7 +14970,7 @@ function ListingTableBody(_a) {
13907
14970
  const isLoading = (_b2 = loading != null ? loading : context == null ? void 0 : context.loading) != null ? _b2 : false;
13908
14971
  const hasRows = hasContent(children);
13909
14972
  if (isSearching && !isLoading && !hasRows) {
13910
- return /* @__PURE__ */ jsx145(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx145(MuiTableRow2, { children: /* @__PURE__ */ jsx145(MuiTableCell2, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx145(Box61, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx145(
14973
+ return /* @__PURE__ */ jsx147(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx147(MuiTableRow2, { children: /* @__PURE__ */ jsx147(MuiTableCell2, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx147(Box62, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx147(
13911
14974
  ListingTableEmptyState,
13912
14975
  {
13913
14976
  title: noSearchResultsText,
@@ -13916,25 +14979,25 @@ function ListingTableBody(_a) {
13916
14979
  }
13917
14980
  ) }) }) }) }));
13918
14981
  }
13919
- return /* @__PURE__ */ jsx145(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
14982
+ return /* @__PURE__ */ jsx147(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
13920
14983
  }
13921
14984
  var ListingTableBody_default = ListingTableBody;
13922
14985
 
13923
14986
  // src/components/ListingTable/ListingTable/ListingTableFooter.tsx
13924
14987
  import MuiTableFooter from "@mui/material/TableFooter";
13925
- import { jsx as jsx146 } from "react/jsx-runtime";
14988
+ import { jsx as jsx148 } from "react/jsx-runtime";
13926
14989
  function ListingTableFooter(_a) {
13927
14990
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
13928
- return /* @__PURE__ */ jsx146(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
14991
+ return /* @__PURE__ */ jsx148(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
13929
14992
  }
13930
14993
  var ListingTableFooter_default = ListingTableFooter;
13931
14994
 
13932
14995
  // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
13933
- import { useCallback as useCallback11 } from "react";
14996
+ import { useCallback as useCallback13 } from "react";
13934
14997
  import { DataGrid } from "@mui/x-data-grid";
13935
- import { styled as styled91, alpha as alpha3 } from "@mui/material/styles";
13936
- import { jsx as jsx147 } from "react/jsx-runtime";
13937
- var StyledDataGrid = styled91(DataGrid)(({ theme }) => ({
14998
+ import { styled as styled93, alpha as alpha3 } from "@mui/material/styles";
14999
+ import { jsx as jsx149 } from "react/jsx-runtime";
15000
+ var StyledDataGrid = styled93(DataGrid)(({ theme }) => ({
13938
15001
  // Remove outer border for seamless integration within ListingTable.Container
13939
15002
  border: "none",
13940
15003
  // Ensure the grid fills its container
@@ -14014,7 +15077,7 @@ function ListingTableDataGrid(_a) {
14014
15077
  items: [],
14015
15078
  quickFilterValues: searchValue ? [searchValue] : []
14016
15079
  };
14017
- const defaultCardRowSpacing = useCallback11(
15080
+ const defaultCardRowSpacing = useCallback13(
14018
15081
  (params) => ({ top: params.isFirstVisible ? 0 : 12, bottom: 0 }),
14019
15082
  []
14020
15083
  );
@@ -14091,7 +15154,7 @@ function ListingTableDataGrid(_a) {
14091
15154
  "& .MuiDataGrid-cell": { padding: cellPadding }
14092
15155
  };
14093
15156
  const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
14094
- return /* @__PURE__ */ jsx147(
15157
+ return /* @__PURE__ */ jsx149(
14095
15158
  StyledDataGrid,
14096
15159
  __spreadValues({
14097
15160
  density,
@@ -14106,8 +15169,8 @@ function ListingTableDataGrid(_a) {
14106
15169
  var ListingTableDataGrid_default = ListingTableDataGrid;
14107
15170
 
14108
15171
  // src/components/ListingTable/ListingTable/ListingTable.tsx
14109
- import { jsx as jsx148 } from "react/jsx-runtime";
14110
- var StyledTable = styled92(MuiTable, {
15172
+ import { jsx as jsx150 } from "react/jsx-runtime";
15173
+ var StyledTable = styled94(MuiTable, {
14111
15174
  shouldForwardProp: (prop) => {
14112
15175
  const excludedProps = ["variant", "density", "striped", "bordered"];
14113
15176
  return !excludedProps.some((excluded) => excluded === prop);
@@ -14160,7 +15223,7 @@ function ListingTable(_a) {
14160
15223
  "children",
14161
15224
  "sx"
14162
15225
  ]);
14163
- return /* @__PURE__ */ jsx148(
15226
+ return /* @__PURE__ */ jsx150(
14164
15227
  StyledTable,
14165
15228
  __spreadProps(__spreadValues({
14166
15229
  variant,
@@ -14193,9 +15256,9 @@ var ListingTableCompound = Object.assign(ListingTable, {
14193
15256
  var ListingTable_default = ListingTableCompound;
14194
15257
 
14195
15258
  // src/animations/ParticleBackground/ParticleBackground.tsx
14196
- import { useEffect as useEffect12, useRef as useRef12 } from "react";
15259
+ import { useEffect as useEffect14, useRef as useRef14 } from "react";
14197
15260
  import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
14198
- import { jsx as jsx149 } from "react/jsx-runtime";
15261
+ import { jsx as jsx151 } from "react/jsx-runtime";
14199
15262
  var ParticleBackground = ({
14200
15263
  opacity = 0.5,
14201
15264
  baseDensity = 0.12,
@@ -14207,9 +15270,9 @@ var ParticleBackground = ({
14207
15270
  repelStrength = 0.35,
14208
15271
  clickBurst = 120
14209
15272
  }) => {
14210
- const canvasRef = useRef12(null);
15273
+ const canvasRef = useRef14(null);
14211
15274
  const { mode } = useColorScheme4();
14212
- useEffect12(() => {
15275
+ useEffect14(() => {
14213
15276
  const canvas = canvasRef.current;
14214
15277
  if (!canvas) return;
14215
15278
  const ctx = canvas.getContext("2d", { alpha: true });
@@ -14406,7 +15469,7 @@ var ParticleBackground = ({
14406
15469
  cancelAnimationFrame(animationFrameId);
14407
15470
  };
14408
15471
  }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
14409
- return /* @__PURE__ */ jsx149(
15472
+ return /* @__PURE__ */ jsx151(
14410
15473
  "canvas",
14411
15474
  {
14412
15475
  ref: canvasRef,
@@ -14435,44 +15498,44 @@ function useThemeContent(contentMap, fallback) {
14435
15498
  var useThemeContent_default = useThemeContent;
14436
15499
 
14437
15500
  // src/hooks/useNotifications/useNotifications.ts
14438
- import * as React75 from "react";
15501
+ import * as React79 from "react";
14439
15502
  var generateId = () => {
14440
15503
  return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
14441
15504
  };
14442
15505
  var useNotifications = (options = {}) => {
14443
15506
  const { initialNotifications = [] } = options;
14444
- const [notifications, setNotifications] = React75.useState(
15507
+ const [notifications, setNotifications] = React79.useState(
14445
15508
  initialNotifications
14446
15509
  );
14447
- const markRead = React75.useCallback((id) => {
15510
+ const markRead = React79.useCallback((id) => {
14448
15511
  setNotifications(
14449
15512
  (prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
14450
15513
  );
14451
15514
  }, []);
14452
- const dismiss = React75.useCallback((id) => {
15515
+ const dismiss = React79.useCallback((id) => {
14453
15516
  setNotifications((prev) => prev.filter((n) => n.id !== id));
14454
15517
  }, []);
14455
- const markAllRead = React75.useCallback(() => {
15518
+ const markAllRead = React79.useCallback(() => {
14456
15519
  setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
14457
15520
  }, []);
14458
- const clearAll = React75.useCallback(() => {
15521
+ const clearAll = React79.useCallback(() => {
14459
15522
  setNotifications([]);
14460
15523
  }, []);
14461
- const add = React75.useCallback((notification) => {
15524
+ const add = React79.useCallback((notification) => {
14462
15525
  const newNotification = __spreadProps(__spreadValues({}, notification), {
14463
15526
  id: generateId()
14464
15527
  });
14465
15528
  setNotifications((prev) => [newNotification, ...prev]);
14466
15529
  }, []);
14467
- const unreadCount = React75.useMemo(
15530
+ const unreadCount = React79.useMemo(
14468
15531
  () => notifications.filter((n) => !n.read).length,
14469
15532
  [notifications]
14470
15533
  );
14471
- const unreadNotifications = React75.useMemo(
15534
+ const unreadNotifications = React79.useMemo(
14472
15535
  () => notifications.filter((n) => !n.read),
14473
15536
  [notifications]
14474
15537
  );
14475
- const actions = React75.useMemo(
15538
+ const actions = React79.useMemo(
14476
15539
  () => ({
14477
15540
  markRead,
14478
15541
  dismiss,
@@ -14520,7 +15583,9 @@ export {
14520
15583
  Footer,
14521
15584
  Form,
14522
15585
  FullScreenWizard2 as FullScreenWizard,
15586
+ HEADER_BREADCRUMBS_STORAGE_KEY,
14523
15587
  Header,
15588
+ HeaderBreadcrumbs,
14524
15589
  HighContrastTheme_default as HighContrastTheme,
14525
15590
  layouts_default as Layout,
14526
15591
  ListingCard_default as ListingCard,
@@ -14552,15 +15617,20 @@ export {
14552
15617
  TrialBadge_default as TrialBadge,
14553
15618
  UserMenu,
14554
15619
  WSO2Theme_default as WSO2Theme,
15620
+ clearHeaderBreadcrumbsState,
14555
15621
  colors,
14556
15622
  default2 as createEmotionCache,
14557
15623
  createOxygenTheme,
14558
15624
  formatRelativeTime,
14559
15625
  getTrialBadgeStatus,
14560
15626
  pxToRem,
15627
+ readHeaderBreadcrumbsState,
15628
+ subscribeHeaderBreadcrumbsState,
14561
15629
  useAppShell,
14562
15630
  useDrawerPanel,
14563
15631
  useFullScreenWizard,
15632
+ useHeaderBreadcrumbs,
15633
+ useHeaderBreadcrumbsValue,
14564
15634
  useListingTable,
14565
15635
  useListingTableRequired,
14566
15636
  useNotifications,
@@ -14569,6 +15639,7 @@ export {
14569
15639
  useThemeContent_default as useThemeContentDefault,
14570
15640
  useThemeSwitcher,
14571
15641
  useWizardSteps,
14572
- version
15642
+ version,
15643
+ writeHeaderBreadcrumbsState
14573
15644
  };
14574
15645
  //# sourceMappingURL=index.js.map