@wso2/oxygen-ui 0.16.0 → 0.17.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
@@ -491,7 +491,7 @@ var init_createOxygenTheme = __esm({
491
491
  // package.json
492
492
  var package_default = {
493
493
  name: "@wso2/oxygen-ui",
494
- version: "0.16.0",
494
+ version: "0.17.0",
495
495
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
496
496
  type: "module",
497
497
  main: "./dist/index.js",
@@ -3421,31 +3421,365 @@ function ThemeSwitcher({
3421
3421
  );
3422
3422
  }
3423
3423
 
3424
+ // src/components/TimeRangeFilter/TimeRangeFilter.tsx
3425
+ import * as React6 from "react";
3426
+ import Alert from "@mui/material/Alert";
3427
+ import Box8 from "@mui/material/Box";
3428
+ import Button2 from "@mui/material/Button";
3429
+ import MenuItem3 from "@mui/material/MenuItem";
3430
+ import MenuList from "@mui/material/MenuList";
3431
+ import Popover from "@mui/material/Popover";
3432
+ import Stack from "@mui/material/Stack";
3433
+ import Typography7 from "@mui/material/Typography";
3434
+ import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
3435
+ import { DatePicker } from "@mui/x-date-pickers/DatePicker";
3436
+ import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
3437
+ import { TimePicker } from "@mui/x-date-pickers/TimePicker";
3438
+ import { ChevronDown as ChevronDown2 } from "@wso2/oxygen-ui-icons-react";
3439
+ import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
3440
+ var HOUR_MS = 60 * 60 * 1e3;
3441
+ var DAY_MS = 24 * HOUR_MS;
3442
+ var DEFAULT_PRESETS = [
3443
+ { id: "1h", label: "Last hour", durationMs: HOUR_MS },
3444
+ { id: "24h", label: "Last 24 hours", durationMs: DAY_MS },
3445
+ { id: "7d", label: "Last 7 days", durationMs: 7 * DAY_MS },
3446
+ { id: "30d", label: "Last 30 days", durationMs: 30 * DAY_MS }
3447
+ ];
3448
+ var CUSTOM_ID = "custom";
3449
+ var describeSpan = (ms) => {
3450
+ const unit = (count, name) => `${count} ${name}${count === 1 ? "" : "s"}`;
3451
+ if (ms % DAY_MS === 0) return unit(ms / DAY_MS, "day");
3452
+ if (ms % HOUR_MS === 0) return unit(ms / HOUR_MS, "hour");
3453
+ return unit(Math.max(1, Math.round(ms / 6e4)), "minute");
3454
+ };
3455
+ var PRESET_END_TOLERANCE_MS = 5 * 60 * 1e3;
3456
+ var solidPaperSx = (theme) => {
3457
+ var _a;
3458
+ const palette = ((_a = theme.vars) != null ? _a : theme).palette;
3459
+ const channel = palette.background.paperChannel;
3460
+ return {
3461
+ backgroundColor: channel ? `rgb(${channel})` : palette.background.default,
3462
+ backdropFilter: "none",
3463
+ WebkitBackdropFilter: "none"
3464
+ };
3465
+ };
3466
+ var toPickerDate = (date) => new Date(
3467
+ date.getUTCFullYear(),
3468
+ date.getUTCMonth(),
3469
+ date.getUTCDate(),
3470
+ date.getUTCHours(),
3471
+ date.getUTCMinutes(),
3472
+ date.getUTCSeconds()
3473
+ );
3474
+ var fromPickerDate = (date) => new Date(
3475
+ Date.UTC(
3476
+ date.getFullYear(),
3477
+ date.getMonth(),
3478
+ date.getDate(),
3479
+ date.getHours(),
3480
+ date.getMinutes(),
3481
+ date.getSeconds()
3482
+ )
3483
+ );
3484
+ var toRangeEnd = (date) => {
3485
+ const picker = toPickerDate(date);
3486
+ return { date: picker, time: picker };
3487
+ };
3488
+ var validDate = (date) => date && !Number.isNaN(date.getTime()) ? date : null;
3489
+ var TimeRangeFilter = React6.forwardRef(
3490
+ (_a, ref) => {
3491
+ var _b = _a, {
3492
+ value,
3493
+ onChange,
3494
+ presets = DEFAULT_PRESETS,
3495
+ maxRangeMs,
3496
+ label = "Time range",
3497
+ customRangeLabel = "Custom",
3498
+ panelTitle = "Select date range",
3499
+ fromLabel = "Start from (UTC)",
3500
+ untilLabel = "End on (UTC)",
3501
+ dateLabel = "Date",
3502
+ timeLabel = "Time",
3503
+ applyLabel = "Apply",
3504
+ cancelLabel = "Cancel",
3505
+ invalidRangeLabel = "Choose a valid time range.",
3506
+ rangeTooLongLabel,
3507
+ adapterLocale,
3508
+ localeText,
3509
+ dateFormat = "dd MMM, yyyy",
3510
+ timeFormat = "HH:mm:ss",
3511
+ open: openProp,
3512
+ onOpen,
3513
+ onClose,
3514
+ anchorEl,
3515
+ onClick,
3516
+ sx
3517
+ } = _b, buttonProps = __objRest(_b, [
3518
+ "value",
3519
+ "onChange",
3520
+ "presets",
3521
+ "maxRangeMs",
3522
+ "label",
3523
+ "customRangeLabel",
3524
+ "panelTitle",
3525
+ "fromLabel",
3526
+ "untilLabel",
3527
+ "dateLabel",
3528
+ "timeLabel",
3529
+ "applyLabel",
3530
+ "cancelLabel",
3531
+ "invalidRangeLabel",
3532
+ "rangeTooLongLabel",
3533
+ "adapterLocale",
3534
+ "localeText",
3535
+ "dateFormat",
3536
+ "timeFormat",
3537
+ "open",
3538
+ "onOpen",
3539
+ "onClose",
3540
+ "anchorEl",
3541
+ "onClick",
3542
+ "sx"
3543
+ ]);
3544
+ var _a2, _b2;
3545
+ const panelId = React6.useId();
3546
+ const panelHeadingId = React6.useId();
3547
+ const fromHeadingId = React6.useId();
3548
+ const untilHeadingId = React6.useId();
3549
+ const triggerRef = React6.useRef(null);
3550
+ const setTriggerRef = (element) => {
3551
+ triggerRef.current = element;
3552
+ if (typeof ref === "function") ref(element);
3553
+ else if (ref) ref.current = element;
3554
+ };
3555
+ const [ownOpen, setOwnOpen] = React6.useState(false);
3556
+ const open = openProp != null ? openProp : ownOpen;
3557
+ const [customOpen, setCustomOpen] = React6.useState(false);
3558
+ const [selection, setSelection] = React6.useState(null);
3559
+ const [from, setFrom] = React6.useState({ date: null, time: null });
3560
+ const [until, setUntil] = React6.useState({ date: null, time: null });
3561
+ const [error, setError] = React6.useState("");
3562
+ const activeId = !value ? null : selection && selection.start === value.start.getTime() && selection.end === value.end.getTime() ? selection.id : (_b2 = (_a2 = presets.find(
3563
+ (preset) => preset.durationMs === value.end.getTime() - value.start.getTime() && Math.abs(Date.now() - value.end.getTime()) <= PRESET_END_TOLERANCE_MS
3564
+ )) == null ? void 0 : _a2.id) != null ? _b2 : CUSTOM_ID;
3565
+ const close = () => {
3566
+ if (openProp === void 0) setOwnOpen(false);
3567
+ onClose == null ? void 0 : onClose();
3568
+ };
3569
+ const prepare = () => {
3570
+ var _a3, _b3;
3571
+ const end = (_a3 = value == null ? void 0 : value.end) != null ? _a3 : /* @__PURE__ */ new Date();
3572
+ const start = (_b3 = value == null ? void 0 : value.start) != null ? _b3 : new Date(end.getTime() - DAY_MS);
3573
+ setFrom(toRangeEnd(start));
3574
+ setUntil(toRangeEnd(end));
3575
+ setError("");
3576
+ setCustomOpen(activeId === CUSTOM_ID);
3577
+ };
3578
+ const latestPrepare = React6.useRef(prepare);
3579
+ React6.useLayoutEffect(() => {
3580
+ latestPrepare.current = prepare;
3581
+ });
3582
+ const wasOpen = React6.useRef(false);
3583
+ React6.useLayoutEffect(() => {
3584
+ if (open && !wasOpen.current) latestPrepare.current();
3585
+ wasOpen.current = open;
3586
+ }, [open]);
3587
+ const editFrom = (next) => {
3588
+ setFrom(next);
3589
+ setError("");
3590
+ };
3591
+ const editUntil = (next) => {
3592
+ setUntil(next);
3593
+ setError("");
3594
+ };
3595
+ const applyPreset = (preset) => {
3596
+ const end = /* @__PURE__ */ new Date();
3597
+ const start = new Date(end.getTime() - preset.durationMs);
3598
+ setSelection({ id: preset.id, start: start.getTime(), end: end.getTime() });
3599
+ close();
3600
+ onChange({ start, end });
3601
+ };
3602
+ const instantOf = (rangeEnd2) => {
3603
+ const date = validDate(rangeEnd2.date);
3604
+ const time = validDate(rangeEnd2.time);
3605
+ if (!date || !time) return null;
3606
+ return fromPickerDate(
3607
+ new Date(
3608
+ date.getFullYear(),
3609
+ date.getMonth(),
3610
+ date.getDate(),
3611
+ time.getHours(),
3612
+ time.getMinutes(),
3613
+ time.getSeconds()
3614
+ )
3615
+ );
3616
+ };
3617
+ const applyCustomRange = () => {
3618
+ const start = instantOf(from);
3619
+ const end = instantOf(until);
3620
+ const span = start && end ? end.getTime() - start.getTime() : NaN;
3621
+ if (!start || !end || !Number.isFinite(span) || span <= 0) {
3622
+ setError(invalidRangeLabel);
3623
+ return;
3624
+ }
3625
+ if (maxRangeMs !== void 0 && span > maxRangeMs) {
3626
+ setError(rangeTooLongLabel != null ? rangeTooLongLabel : `Choose a range of at most ${describeSpan(maxRangeMs)}.`);
3627
+ return;
3628
+ }
3629
+ setError("");
3630
+ setSelection({ id: CUSTOM_ID, start: start.getTime(), end: end.getTime() });
3631
+ close();
3632
+ onChange({ start, end });
3633
+ };
3634
+ const rangeEnd = (heading, headingId, end, setEnd) => /* @__PURE__ */ jsxs10(Box8, { role: "group", "aria-labelledby": headingId, children: [
3635
+ /* @__PURE__ */ jsx26(Typography7, { id: headingId, variant: "body2", sx: { mb: 1 }, children: heading }),
3636
+ /* @__PURE__ */ jsxs10(Stack, { direction: "row", gap: 1, children: [
3637
+ /* @__PURE__ */ jsx26(
3638
+ DatePicker,
3639
+ {
3640
+ label: dateLabel,
3641
+ format: dateFormat,
3642
+ value: end.date,
3643
+ onChange: (next) => setEnd(__spreadProps(__spreadValues({}, end), { date: next })),
3644
+ slotProps: {
3645
+ textField: { size: "small", sx: { flex: 1, minWidth: 150 } },
3646
+ desktopPaper: { sx: solidPaperSx },
3647
+ mobilePaper: { sx: solidPaperSx }
3648
+ }
3649
+ }
3650
+ ),
3651
+ /* @__PURE__ */ jsx26(
3652
+ TimePicker,
3653
+ {
3654
+ label: timeLabel,
3655
+ ampm: false,
3656
+ views: ["hours", "minutes", "seconds"],
3657
+ format: timeFormat,
3658
+ value: end.time,
3659
+ onChange: (next) => setEnd(__spreadProps(__spreadValues({}, end), { time: next })),
3660
+ slotProps: {
3661
+ textField: { size: "small", sx: { width: 130 } },
3662
+ desktopPaper: { sx: solidPaperSx },
3663
+ mobilePaper: { sx: solidPaperSx }
3664
+ }
3665
+ }
3666
+ )
3667
+ ] })
3668
+ ] });
3669
+ return /* @__PURE__ */ jsxs10(Fragment4, { children: [
3670
+ /* @__PURE__ */ jsx26(
3671
+ Button2,
3672
+ __spreadProps(__spreadValues({
3673
+ size: "small",
3674
+ variant: "text",
3675
+ color: "inherit"
3676
+ }, buttonProps), {
3677
+ sx: [{ textTransform: "none" }, ...Array.isArray(sx) ? sx : [sx]],
3678
+ ref: setTriggerRef,
3679
+ "aria-haspopup": "dialog",
3680
+ "aria-expanded": open,
3681
+ endIcon: /* @__PURE__ */ jsx26(ChevronDown2, { size: 14 }),
3682
+ onClick: (event) => {
3683
+ onClick == null ? void 0 : onClick(event);
3684
+ if (openProp === void 0) setOwnOpen(true);
3685
+ onOpen == null ? void 0 : onOpen();
3686
+ },
3687
+ children: label
3688
+ })
3689
+ ),
3690
+ /* @__PURE__ */ jsx26(
3691
+ Popover,
3692
+ {
3693
+ anchorEl: anchorEl != null ? anchorEl : triggerRef.current,
3694
+ open,
3695
+ onClose: close,
3696
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
3697
+ slotProps: { paper: { sx: solidPaperSx, role: "dialog", "aria-label": label } },
3698
+ children: /* @__PURE__ */ jsxs10(Box8, { sx: { display: "flex", flexWrap: "wrap" }, children: [
3699
+ /* @__PURE__ */ jsxs10(MenuList, { "aria-label": label, autoFocusItem: open, sx: { minWidth: 180, py: 1, alignSelf: "flex-start" }, children: [
3700
+ presets.map((preset) => /* @__PURE__ */ jsx26(
3701
+ MenuItem3,
3702
+ {
3703
+ selected: activeId === preset.id && !customOpen,
3704
+ onClick: () => applyPreset(preset),
3705
+ children: preset.label
3706
+ },
3707
+ preset.id
3708
+ )),
3709
+ /* @__PURE__ */ jsx26(
3710
+ MenuItem3,
3711
+ {
3712
+ selected: activeId === CUSTOM_ID || customOpen,
3713
+ "aria-controls": customOpen ? panelId : void 0,
3714
+ "aria-expanded": customOpen,
3715
+ onClick: () => setCustomOpen(true),
3716
+ children: customRangeLabel
3717
+ }
3718
+ )
3719
+ ] }),
3720
+ customOpen && /* @__PURE__ */ jsxs10(
3721
+ Stack,
3722
+ {
3723
+ id: panelId,
3724
+ role: "group",
3725
+ "aria-labelledby": panelHeadingId,
3726
+ gap: 2,
3727
+ sx: {
3728
+ p: 2,
3729
+ width: 380,
3730
+ maxWidth: "100%",
3731
+ borderTop: { xs: 1, sm: 0 },
3732
+ borderLeft: { xs: 0, sm: 1 },
3733
+ borderColor: "divider"
3734
+ },
3735
+ children: [
3736
+ /* @__PURE__ */ jsx26(Typography7, { id: panelHeadingId, variant: "subtitle2", children: panelTitle }),
3737
+ /* @__PURE__ */ jsxs10(LocalizationProvider, { dateAdapter: AdapterDateFns, adapterLocale, localeText, children: [
3738
+ rangeEnd(fromLabel, fromHeadingId, from, editFrom),
3739
+ rangeEnd(untilLabel, untilHeadingId, until, editUntil)
3740
+ ] }),
3741
+ error && /* @__PURE__ */ jsx26(Alert, { severity: "error", children: error }),
3742
+ /* @__PURE__ */ jsxs10(Stack, { direction: "row", justifyContent: "flex-end", gap: 1, children: [
3743
+ /* @__PURE__ */ jsx26(Button2, { variant: "outlined", color: "inherit", onClick: close, sx: { textTransform: "none" }, children: cancelLabel }),
3744
+ /* @__PURE__ */ jsx26(Button2, { variant: "contained", onClick: applyCustomRange, sx: { textTransform: "none" }, children: applyLabel })
3745
+ ] })
3746
+ ]
3747
+ }
3748
+ )
3749
+ ] })
3750
+ }
3751
+ )
3752
+ ] });
3753
+ }
3754
+ );
3755
+ TimeRangeFilter.displayName = "TimeRangeFilter";
3756
+ var TimeRangeFilter_default = TimeRangeFilter;
3757
+
3424
3758
  // src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
3425
- import * as React7 from "react";
3759
+ import * as React8 from "react";
3426
3760
  import TextField2 from "@mui/material/TextField";
3427
3761
  import InputAdornment2 from "@mui/material/InputAdornment";
3428
- import Box8 from "@mui/material/Box";
3762
+ import Box9 from "@mui/material/Box";
3429
3763
  import IconButton2 from "@mui/material/IconButton";
3430
- import Popover from "@mui/material/Popover";
3431
- import Typography7 from "@mui/material/Typography";
3764
+ import Popover2 from "@mui/material/Popover";
3765
+ import Typography8 from "@mui/material/Typography";
3432
3766
  import Divider from "@mui/material/Divider";
3433
- import Button2 from "@mui/material/Button";
3434
- import Stack from "@mui/material/Stack";
3767
+ import Button3 from "@mui/material/Button";
3768
+ import Stack2 from "@mui/material/Stack";
3435
3769
  import FormControl2 from "@mui/material/FormControl";
3436
3770
  import InputLabel2 from "@mui/material/InputLabel";
3437
3771
  import Select2 from "@mui/material/Select";
3438
- import MenuItem3 from "@mui/material/MenuItem";
3772
+ import MenuItem4 from "@mui/material/MenuItem";
3439
3773
  import { ListFilter } from "@wso2/oxygen-ui-icons-react";
3440
3774
 
3441
3775
  // src/components/SearchBar/SearchBarBase.tsx
3442
- import * as React6 from "react";
3776
+ import * as React7 from "react";
3443
3777
  import TextField from "@mui/material/TextField";
3444
3778
  import InputAdornment from "@mui/material/InputAdornment";
3445
3779
  import { Search } from "@wso2/oxygen-ui-icons-react";
3446
- import { jsx as jsx26 } from "react/jsx-runtime";
3780
+ import { jsx as jsx27 } from "react/jsx-runtime";
3447
3781
  var hasMeaningfulAriaValue = (value) => typeof value === "string" && value.trim().length > 0;
3448
- var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
3782
+ var SearchBarBase = React7.forwardRef(function SearchBarBase2(_a, ref) {
3449
3783
  var _b = _a, {
3450
3784
  placeholder = "Search",
3451
3785
  endAdornment,
@@ -3468,7 +3802,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
3468
3802
  const hasAccessibleName = hasMeaningfulLabel || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-label"]) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-labelledby"]);
3469
3803
  const shouldInjectPlaceholderLabel = !hasAccessibleName && hasMeaningfulAriaValue(placeholder);
3470
3804
  const htmlInput = shouldInjectPlaceholderLabel || (slotProps == null ? void 0 : slotProps.htmlInput) || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) ? __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, slotProps == null ? void 0 : slotProps.htmlInput), hasMeaningfulAriaValue(ariaLabelledBy) ? { "aria-labelledby": ariaLabelledBy } : null), hasMeaningfulAriaValue(ariaLabel) ? { "aria-label": ariaLabel } : null), shouldInjectPlaceholderLabel ? { "aria-label": placeholder } : null) : void 0;
3471
- return /* @__PURE__ */ jsx26(
3805
+ return /* @__PURE__ */ jsx27(
3472
3806
  TextField,
3473
3807
  __spreadProps(__spreadValues({}, props), {
3474
3808
  ref,
@@ -3478,7 +3812,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
3478
3812
  size: "small",
3479
3813
  slotProps: __spreadProps(__spreadValues(__spreadValues({}, slotProps), htmlInput ? { htmlInput } : null), {
3480
3814
  input: __spreadProps(__spreadValues({}, slotProps == null ? void 0 : slotProps.input), {
3481
- startAdornment: /* @__PURE__ */ jsx26(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx26(Search, { fontSize: "small", "aria-hidden": "true" }) }),
3815
+ startAdornment: /* @__PURE__ */ jsx27(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx27(Search, { fontSize: "small", "aria-hidden": "true" }) }),
3482
3816
  endAdornment
3483
3817
  })
3484
3818
  }),
@@ -3495,7 +3829,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
3495
3829
  });
3496
3830
 
3497
3831
  // src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
3498
- import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
3832
+ import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
3499
3833
  function SearchBarWithAdvancedFilter(_a) {
3500
3834
  var _b = _a, {
3501
3835
  value,
@@ -3522,7 +3856,7 @@ function SearchBarWithAdvancedFilter(_a) {
3522
3856
  "popoverWidth",
3523
3857
  "sx"
3524
3858
  ]);
3525
- const [anchorEl, setAnchorEl] = React7.useState(null);
3859
+ const [anchorEl, setAnchorEl] = React8.useState(null);
3526
3860
  const open = Boolean(anchorEl);
3527
3861
  const handleInputChange = (e) => {
3528
3862
  onChange(e.target.value);
@@ -3548,17 +3882,17 @@ function SearchBarWithAdvancedFilter(_a) {
3548
3882
  handleClose();
3549
3883
  };
3550
3884
  const popoverId = open ? "advanced-search-popover" : void 0;
3551
- return /* @__PURE__ */ jsxs10(Fragment4, { children: [
3552
- /* @__PURE__ */ jsx27(
3885
+ return /* @__PURE__ */ jsxs11(Fragment5, { children: [
3886
+ /* @__PURE__ */ jsx28(
3553
3887
  SearchBarBase,
3554
3888
  __spreadProps(__spreadValues({}, props), {
3555
3889
  value,
3556
3890
  onChange: handleInputChange,
3557
3891
  placeholder,
3558
3892
  sx,
3559
- endAdornment: /* @__PURE__ */ jsx27(InputAdornment2, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs10(Box8, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
3560
- /* @__PURE__ */ jsx27(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
3561
- /* @__PURE__ */ jsx27(
3893
+ endAdornment: /* @__PURE__ */ jsx28(InputAdornment2, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs11(Box9, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
3894
+ /* @__PURE__ */ jsx28(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
3895
+ /* @__PURE__ */ jsx28(
3562
3896
  IconButton2,
3563
3897
  {
3564
3898
  "aria-describedby": popoverId,
@@ -3566,14 +3900,14 @@ function SearchBarWithAdvancedFilter(_a) {
3566
3900
  onClick: handleOpen,
3567
3901
  size: "small",
3568
3902
  sx: { mx: 0.5 },
3569
- children: /* @__PURE__ */ jsx27(ListFilter, { fontSize: "tiny" })
3903
+ children: /* @__PURE__ */ jsx28(ListFilter, { fontSize: "tiny" })
3570
3904
  }
3571
3905
  )
3572
3906
  ] }) })
3573
3907
  })
3574
3908
  ),
3575
- /* @__PURE__ */ jsxs10(
3576
- Popover,
3909
+ /* @__PURE__ */ jsxs11(
3910
+ Popover2,
3577
3911
  {
3578
3912
  id: popoverId,
3579
3913
  open,
@@ -3589,45 +3923,45 @@ function SearchBarWithAdvancedFilter(_a) {
3589
3923
  }
3590
3924
  },
3591
3925
  children: [
3592
- /* @__PURE__ */ jsx27(Typography7, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
3593
- /* @__PURE__ */ jsx27(Divider, { sx: { my: 1 } }),
3594
- /* @__PURE__ */ jsxs10(Stack, { spacing: 2, marginTop: 2, children: [
3595
- /* @__PURE__ */ jsxs10(FormControl2, { fullWidth: true, size: "small", children: [
3596
- /* @__PURE__ */ jsxs10(InputLabel2, { id: "adv-filter-attribute-label", children: [
3926
+ /* @__PURE__ */ jsx28(Typography8, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
3927
+ /* @__PURE__ */ jsx28(Divider, { sx: { my: 1 } }),
3928
+ /* @__PURE__ */ jsxs11(Stack2, { spacing: 2, marginTop: 2, children: [
3929
+ /* @__PURE__ */ jsxs11(FormControl2, { fullWidth: true, size: "small", children: [
3930
+ /* @__PURE__ */ jsxs11(InputLabel2, { id: "adv-filter-attribute-label", children: [
3597
3931
  "Filter attribute",
3598
3932
  " ",
3599
- /* @__PURE__ */ jsx27(Box8, { component: "span", sx: { color: "error.main" }, children: "*" })
3933
+ /* @__PURE__ */ jsx28(Box9, { component: "span", sx: { color: "error.main" }, children: "*" })
3600
3934
  ] }),
3601
- /* @__PURE__ */ jsx27(
3935
+ /* @__PURE__ */ jsx28(
3602
3936
  Select2,
3603
3937
  {
3604
3938
  labelId: "adv-filter-attribute-label",
3605
3939
  value: advancedFilter.attribute,
3606
3940
  label: "Filter attribute *",
3607
3941
  onChange: handleAttrChange,
3608
- children: attributeOptions.map((opt) => /* @__PURE__ */ jsx27(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
3942
+ children: attributeOptions.map((opt) => /* @__PURE__ */ jsx28(MenuItem4, { value: opt.value, children: opt.label }, opt.value))
3609
3943
  }
3610
3944
  )
3611
3945
  ] }),
3612
- /* @__PURE__ */ jsxs10(Box8, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
3613
- /* @__PURE__ */ jsxs10(FormControl2, { fullWidth: true, size: "small", children: [
3614
- /* @__PURE__ */ jsxs10(InputLabel2, { id: "adv-filter-condition-label", children: [
3946
+ /* @__PURE__ */ jsxs11(Box9, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
3947
+ /* @__PURE__ */ jsxs11(FormControl2, { fullWidth: true, size: "small", children: [
3948
+ /* @__PURE__ */ jsxs11(InputLabel2, { id: "adv-filter-condition-label", children: [
3615
3949
  "Filter condition",
3616
3950
  " ",
3617
- /* @__PURE__ */ jsx27(Box8, { component: "span", sx: { color: "error.main" }, children: "*" })
3951
+ /* @__PURE__ */ jsx28(Box9, { component: "span", sx: { color: "error.main" }, children: "*" })
3618
3952
  ] }),
3619
- /* @__PURE__ */ jsx27(
3953
+ /* @__PURE__ */ jsx28(
3620
3954
  Select2,
3621
3955
  {
3622
3956
  labelId: "adv-filter-condition-label",
3623
3957
  value: advancedFilter.condition,
3624
3958
  label: "Filter condition *",
3625
3959
  onChange: handleCondChange,
3626
- children: conditionOptions.map((opt) => /* @__PURE__ */ jsx27(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
3960
+ children: conditionOptions.map((opt) => /* @__PURE__ */ jsx28(MenuItem4, { value: opt.value, children: opt.label }, opt.value))
3627
3961
  }
3628
3962
  )
3629
3963
  ] }),
3630
- /* @__PURE__ */ jsx27(
3964
+ /* @__PURE__ */ jsx28(
3631
3965
  TextField2,
3632
3966
  {
3633
3967
  size: "small",
@@ -3639,8 +3973,8 @@ function SearchBarWithAdvancedFilter(_a) {
3639
3973
  }
3640
3974
  )
3641
3975
  ] }),
3642
- /* @__PURE__ */ jsx27(Box8, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx27(
3643
- Button2,
3976
+ /* @__PURE__ */ jsx28(Box9, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx28(
3977
+ Button3,
3644
3978
  {
3645
3979
  variant: "contained",
3646
3980
  onClick: handleAdvancedSearch,
@@ -3658,11 +3992,11 @@ function SearchBarWithAdvancedFilter(_a) {
3658
3992
  var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
3659
3993
 
3660
3994
  // src/components/SearchBar/SearchBar.tsx
3661
- import * as React8 from "react";
3662
- import { jsx as jsx28 } from "react/jsx-runtime";
3663
- var SearchBar = React8.forwardRef(function SearchBar2(_a, ref) {
3995
+ import * as React9 from "react";
3996
+ import { jsx as jsx29 } from "react/jsx-runtime";
3997
+ var SearchBar = React9.forwardRef(function SearchBar2(_a, ref) {
3664
3998
  var _b = _a, { placeholder = "Search" } = _b, props = __objRest(_b, ["placeholder"]);
3665
- return /* @__PURE__ */ jsx28(
3999
+ return /* @__PURE__ */ jsx29(
3666
4000
  SearchBarBase,
3667
4001
  __spreadProps(__spreadValues({}, props), {
3668
4002
  ref,
@@ -3673,17 +4007,17 @@ var SearchBar = React8.forwardRef(function SearchBar2(_a, ref) {
3673
4007
  var SearchBar_default = SearchBar;
3674
4008
 
3675
4009
  // src/components/Header/Header.tsx
3676
- import * as React12 from "react";
4010
+ import * as React13 from "react";
3677
4011
  import AppBar from "@mui/material/AppBar";
3678
4012
  import Toolbar from "@mui/material/Toolbar";
3679
- import Box13 from "@mui/material/Box";
4013
+ import Box14 from "@mui/material/Box";
3680
4014
  import { styled as styled22 } from "@mui/material/styles";
3681
4015
 
3682
4016
  // src/components/Header/context.ts
3683
- import * as React9 from "react";
3684
- var HeaderContext = React9.createContext(null);
4017
+ import * as React10 from "react";
4018
+ var HeaderContext = React10.createContext(null);
3685
4019
  var useHeader = () => {
3686
- const context = React9.useContext(HeaderContext);
4020
+ const context = React10.useContext(HeaderContext);
3687
4021
  if (!context) {
3688
4022
  throw new Error("Header compound components must be used within Header");
3689
4023
  }
@@ -3691,26 +4025,26 @@ var useHeader = () => {
3691
4025
  };
3692
4026
 
3693
4027
  // src/components/Header/HeaderToggle.tsx
3694
- import * as React11 from "react";
4028
+ import * as React12 from "react";
3695
4029
  import IconButton3 from "@mui/material/IconButton";
3696
4030
  import Tooltip3 from "@mui/material/Tooltip";
3697
4031
  import { styled as styled16 } from "@mui/material/styles";
3698
4032
  import { Menu as Menu2 } from "@wso2/oxygen-ui-icons-react";
3699
4033
 
3700
4034
  // src/components/AppShell/context.tsx
3701
- import * as React10 from "react";
3702
- import { jsx as jsx29 } from "react/jsx-runtime";
3703
- var AppShellContext = React10.createContext(void 0);
4035
+ import * as React11 from "react";
4036
+ import { jsx as jsx30 } from "react/jsx-runtime";
4037
+ var AppShellContext = React11.createContext(void 0);
3704
4038
  var AppShellProvider = ({
3705
4039
  children,
3706
4040
  value
3707
4041
  }) => {
3708
- return /* @__PURE__ */ jsx29(AppShellContext.Provider, { value, children });
4042
+ return /* @__PURE__ */ jsx30(AppShellContext.Provider, { value, children });
3709
4043
  };
3710
4044
  AppShellProvider.displayName = "AppShellProvider";
3711
4045
 
3712
4046
  // src/components/Header/HeaderToggle.tsx
3713
- import { jsx as jsx30 } from "react/jsx-runtime";
4047
+ import { jsx as jsx31 } from "react/jsx-runtime";
3714
4048
  var HeaderToggleRoot = styled16(IconButton3, {
3715
4049
  name: "MuiHeader",
3716
4050
  slot: "Toggle"
@@ -3727,11 +4061,11 @@ var HeaderToggle = ({
3727
4061
  sx
3728
4062
  }) => {
3729
4063
  var _a, _b;
3730
- const appShellContext = React11.useContext(AppShellContext);
4064
+ const appShellContext = React12.useContext(AppShellContext);
3731
4065
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
3732
4066
  const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
3733
4067
  });
3734
- return /* @__PURE__ */ jsx30(Tooltip3, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx30(
4068
+ return /* @__PURE__ */ jsx31(Tooltip3, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx31(
3735
4069
  HeaderToggleRoot,
3736
4070
  {
3737
4071
  onClick: onToggle,
@@ -3739,21 +4073,21 @@ var HeaderToggle = ({
3739
4073
  sx,
3740
4074
  "aria-label": collapsed ? expandLabel : collapseLabel,
3741
4075
  "aria-expanded": !collapsed,
3742
- children: /* @__PURE__ */ jsx30("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: collapsed ? expandIcon || /* @__PURE__ */ jsx30(Menu2, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx30(Menu2, { size: 20 }) })
4076
+ children: /* @__PURE__ */ jsx31("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: collapsed ? expandIcon || /* @__PURE__ */ jsx31(Menu2, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx31(Menu2, { size: 20 }) })
3743
4077
  }
3744
4078
  ) });
3745
4079
  };
3746
4080
 
3747
4081
  // src/components/Header/HeaderBrand.tsx
3748
- import Box10 from "@mui/material/Box";
4082
+ import Box11 from "@mui/material/Box";
3749
4083
  import ButtonBase from "@mui/material/ButtonBase";
3750
4084
  import { styled as styled19 } from "@mui/material/styles";
3751
4085
 
3752
4086
  // src/components/Header/HeaderBrandLogo.tsx
3753
- import Box9 from "@mui/material/Box";
4087
+ import Box10 from "@mui/material/Box";
3754
4088
  import { styled as styled17 } from "@mui/material/styles";
3755
- import { jsx as jsx31 } from "react/jsx-runtime";
3756
- var HeaderBrandLogoRoot = styled17(Box9, {
4089
+ import { jsx as jsx32 } from "react/jsx-runtime";
4090
+ var HeaderBrandLogoRoot = styled17(Box10, {
3757
4091
  name: "MuiHeader",
3758
4092
  slot: "BrandLogo"
3759
4093
  })({
@@ -3764,15 +4098,15 @@ var HeaderBrandLogo = ({
3764
4098
  children,
3765
4099
  sx
3766
4100
  }) => {
3767
- return /* @__PURE__ */ jsx31(HeaderBrandLogoRoot, { sx, children });
4101
+ return /* @__PURE__ */ jsx32(HeaderBrandLogoRoot, { sx, children });
3768
4102
  };
3769
4103
  HeaderBrandLogo.displayName = "HeaderBrandLogo";
3770
4104
 
3771
4105
  // src/components/Header/HeaderBrandTitle.tsx
3772
- import Typography8 from "@mui/material/Typography";
4106
+ import Typography9 from "@mui/material/Typography";
3773
4107
  import { styled as styled18 } from "@mui/material/styles";
3774
- import { jsx as jsx32 } from "react/jsx-runtime";
3775
- var HeaderBrandTitleRoot = styled18(Typography8, {
4108
+ import { jsx as jsx33 } from "react/jsx-runtime";
4109
+ var HeaderBrandTitleRoot = styled18(Typography9, {
3776
4110
  name: "MuiHeader",
3777
4111
  slot: "BrandTitle"
3778
4112
  })(({ theme }) => ({
@@ -3789,13 +4123,13 @@ var HeaderBrandTitle = ({
3789
4123
  children,
3790
4124
  sx
3791
4125
  }) => {
3792
- return /* @__PURE__ */ jsx32(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
4126
+ return /* @__PURE__ */ jsx33(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
3793
4127
  };
3794
4128
  HeaderBrandTitle.displayName = "HeaderBrandTitle";
3795
4129
 
3796
4130
  // src/components/Header/HeaderBrand.tsx
3797
- import { jsx as jsx33 } from "react/jsx-runtime";
3798
- var HeaderBrandRoot = styled19(Box10, {
4131
+ import { jsx as jsx34 } from "react/jsx-runtime";
4132
+ var HeaderBrandRoot = styled19(Box11, {
3799
4133
  name: "MuiHeader",
3800
4134
  slot: "Brand",
3801
4135
  shouldForwardProp: (prop) => prop !== "clickable"
@@ -3821,18 +4155,18 @@ var HeaderBrand = ({
3821
4155
  sx
3822
4156
  }) => {
3823
4157
  if (onClick) {
3824
- return /* @__PURE__ */ jsx33(HeaderBrandButtonRoot, { onClick, "aria-label": ariaLabel, sx, children });
4158
+ return /* @__PURE__ */ jsx34(HeaderBrandButtonRoot, { onClick, "aria-label": ariaLabel, sx, children });
3825
4159
  }
3826
- return /* @__PURE__ */ jsx33(HeaderBrandRoot, { clickable: false, sx, children });
4160
+ return /* @__PURE__ */ jsx34(HeaderBrandRoot, { clickable: false, sx, children });
3827
4161
  };
3828
4162
  HeaderBrand.displayName = "HeaderBrand";
3829
4163
 
3830
4164
  // src/components/Header/HeaderSwitchers.tsx
3831
- import Box11 from "@mui/material/Box";
4165
+ import Box12 from "@mui/material/Box";
3832
4166
  import Divider2 from "@mui/material/Divider";
3833
4167
  import { styled as styled20 } from "@mui/material/styles";
3834
- import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
3835
- var HeaderSwitchersRoot = styled20(Box11, {
4168
+ import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
4169
+ var HeaderSwitchersRoot = styled20(Box12, {
3836
4170
  name: "MuiHeader",
3837
4171
  slot: "Switchers"
3838
4172
  })(({ theme }) => ({
@@ -3860,17 +4194,17 @@ var HeaderSwitchers = ({
3860
4194
  if (minimal) {
3861
4195
  return null;
3862
4196
  }
3863
- return /* @__PURE__ */ jsxs11(HeaderSwitchersRoot, { sx, children: [
3864
- showDivider && /* @__PURE__ */ jsx34(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
4197
+ return /* @__PURE__ */ jsxs12(HeaderSwitchersRoot, { sx, children: [
4198
+ showDivider && /* @__PURE__ */ jsx35(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
3865
4199
  children
3866
4200
  ] });
3867
4201
  };
3868
4202
 
3869
4203
  // src/components/Header/HeaderActions.tsx
3870
- import Box12 from "@mui/material/Box";
4204
+ import Box13 from "@mui/material/Box";
3871
4205
  import { styled as styled21 } from "@mui/material/styles";
3872
- import { jsx as jsx35 } from "react/jsx-runtime";
3873
- var HeaderActionsRoot = styled21(Box12, {
4206
+ import { jsx as jsx36 } from "react/jsx-runtime";
4207
+ var HeaderActionsRoot = styled21(Box13, {
3874
4208
  name: "MuiHeader",
3875
4209
  slot: "Actions"
3876
4210
  })(({ theme }) => ({
@@ -3882,11 +4216,11 @@ var HeaderActions = ({
3882
4216
  children,
3883
4217
  sx
3884
4218
  }) => {
3885
- return /* @__PURE__ */ jsx35(HeaderActionsRoot, { sx, children });
4219
+ return /* @__PURE__ */ jsx36(HeaderActionsRoot, { sx, children });
3886
4220
  };
3887
4221
 
3888
4222
  // src/components/Header/Header.tsx
3889
- import { jsx as jsx36 } from "react/jsx-runtime";
4223
+ import { jsx as jsx37 } from "react/jsx-runtime";
3890
4224
  var HeaderRootStyled = styled22(AppBar, {
3891
4225
  name: "MuiHeader",
3892
4226
  slot: "Root"
@@ -3907,7 +4241,7 @@ var HeaderToolbar = styled22(Toolbar, {
3907
4241
  paddingRight: theme.spacing(2)
3908
4242
  }
3909
4243
  }));
3910
- var HeaderSpacerStyled = styled22(Box13, {
4244
+ var HeaderSpacerStyled = styled22(Box14, {
3911
4245
  name: "MuiHeader",
3912
4246
  slot: "Spacer"
3913
4247
  })({
@@ -3918,10 +4252,10 @@ var Header = ({
3918
4252
  minimal = false,
3919
4253
  sx
3920
4254
  }) => {
3921
- const contextValue = React12.useMemo(() => ({ minimal }), [minimal]);
3922
- return /* @__PURE__ */ jsx36(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx36(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx36(HeaderToolbar, { children }) }) });
4255
+ const contextValue = React13.useMemo(() => ({ minimal }), [minimal]);
4256
+ return /* @__PURE__ */ jsx37(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx37(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx37(HeaderToolbar, { children }) }) });
3923
4257
  };
3924
- var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx36(HeaderSpacerStyled, { sx });
4258
+ var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx37(HeaderSpacerStyled, { sx });
3925
4259
  Header.Toggle = HeaderToggle;
3926
4260
  Header.Brand = HeaderBrand;
3927
4261
  Header.BrandLogo = HeaderBrandLogo;
@@ -3932,31 +4266,31 @@ Header.Spacer = HeaderSpacer;
3932
4266
  Header.displayName = "Header";
3933
4267
 
3934
4268
  // src/components/AppSwitcher/AppSwitcher.tsx
3935
- import * as React18 from "react";
3936
- import Popover2 from "@mui/material/Popover";
4269
+ import * as React19 from "react";
4270
+ import Popover3 from "@mui/material/Popover";
3937
4271
  import { styled as styled27 } from "@mui/material/styles";
3938
4272
 
3939
4273
  // src/components/AppSwitcher/context.ts
3940
- import * as React13 from "react";
3941
- var AppSwitcherContext = React13.createContext(null);
4274
+ import * as React14 from "react";
4275
+ var AppSwitcherContext = React14.createContext(null);
3942
4276
  var useAppSwitcher = () => {
3943
- const context = React13.useContext(AppSwitcherContext);
4277
+ const context = React14.useContext(AppSwitcherContext);
3944
4278
  if (!context) {
3945
4279
  throw new Error("AppSwitcher sub-components must be used within an AppSwitcher component");
3946
4280
  }
3947
4281
  return context;
3948
4282
  };
3949
4283
  AppSwitcherContext.displayName = "AppSwitcher.Context";
3950
- var AppSwitcherFooterContext = React13.createContext(false);
4284
+ var AppSwitcherFooterContext = React14.createContext(false);
3951
4285
  AppSwitcherFooterContext.displayName = "AppSwitcher.FooterContext";
3952
4286
 
3953
4287
  // src/components/AppSwitcher/AppSwitcherTrigger.tsx
3954
- import * as React14 from "react";
4288
+ import * as React15 from "react";
3955
4289
  import IconButton4 from "@mui/material/IconButton";
3956
4290
  import Tooltip4 from "@mui/material/Tooltip";
3957
4291
  import { styled as styled23 } from "@mui/material/styles";
3958
4292
  import { Grip } from "@wso2/oxygen-ui-icons-react";
3959
- import { jsx as jsx37 } from "react/jsx-runtime";
4293
+ import { jsx as jsx38 } from "react/jsx-runtime";
3960
4294
  var DEFAULT_LABEL = "Switch Platforms";
3961
4295
  var AppSwitcherTriggerRoot = styled23(IconButton4, {
3962
4296
  name: "MuiAppSwitcher",
@@ -3972,13 +4306,13 @@ var AppSwitcherTriggerRoot = styled23(IconButton4, {
3972
4306
  cursor: "pointer"
3973
4307
  }
3974
4308
  }));
3975
- var AppSwitcherTrigger = React14.forwardRef(
4309
+ var AppSwitcherTrigger = React15.forwardRef(
3976
4310
  function AppSwitcherTrigger2(_a, ref) {
3977
4311
  var _b = _a, { label = DEFAULT_LABEL, icon, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["label", "icon", "onClick", "aria-label"]);
3978
4312
  const { open, popoverId, handleOpen } = useAppSwitcher();
3979
4313
  const resolvedLabel = label.trim().length > 0 ? label : DEFAULT_LABEL;
3980
4314
  const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : resolvedLabel;
3981
- return /* @__PURE__ */ jsx37(Tooltip4, { title: resolvedLabel, children: /* @__PURE__ */ jsx37(
4315
+ return /* @__PURE__ */ jsx38(Tooltip4, { title: resolvedLabel, children: /* @__PURE__ */ jsx38(
3982
4316
  AppSwitcherTriggerRoot,
3983
4317
  __spreadProps(__spreadValues({}, props), {
3984
4318
  ref,
@@ -3990,7 +4324,7 @@ var AppSwitcherTrigger = React14.forwardRef(
3990
4324
  "aria-controls": open ? popoverId : void 0,
3991
4325
  "aria-haspopup": "true",
3992
4326
  "aria-expanded": open,
3993
- children: /* @__PURE__ */ jsx37("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx37(Grip, { size: 24 }) })
4327
+ children: /* @__PURE__ */ jsx38("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx38(Grip, { size: 24 }) })
3994
4328
  })
3995
4329
  ) });
3996
4330
  }
@@ -3998,20 +4332,20 @@ var AppSwitcherTrigger = React14.forwardRef(
3998
4332
  AppSwitcherTrigger.displayName = "AppSwitcher.Trigger";
3999
4333
 
4000
4334
  // src/components/AppSwitcher/AppSwitcherSection.tsx
4001
- import * as React16 from "react";
4002
- import Box15 from "@mui/material/Box";
4335
+ import * as React17 from "react";
4336
+ import Box16 from "@mui/material/Box";
4003
4337
  import Skeleton from "@mui/material/Skeleton";
4004
- import Typography10 from "@mui/material/Typography";
4338
+ import Typography11 from "@mui/material/Typography";
4005
4339
  import { styled as styled25 } from "@mui/material/styles";
4006
4340
 
4007
4341
  // src/components/AppSwitcher/AppSwitcherApp.tsx
4008
- import * as React15 from "react";
4009
- import Box14 from "@mui/material/Box";
4342
+ import * as React16 from "react";
4343
+ import Box15 from "@mui/material/Box";
4010
4344
  import Card2 from "@mui/material/Card";
4011
4345
  import ButtonBase2 from "@mui/material/ButtonBase";
4012
4346
  import CircularProgress from "@mui/material/CircularProgress";
4013
4347
  import Tooltip5 from "@mui/material/Tooltip";
4014
- import Typography9 from "@mui/material/Typography";
4348
+ import Typography10 from "@mui/material/Typography";
4015
4349
  import { styled as styled24 } from "@mui/material/styles";
4016
4350
 
4017
4351
  // src/components/AppSwitcher/brand.ts
@@ -4041,7 +4375,7 @@ var isSafeAppUrl = (url) => {
4041
4375
 
4042
4376
  // src/components/AppSwitcher/AppSwitcherApp.tsx
4043
4377
  import { WSO2 } from "@wso2/oxygen-ui-icons-react";
4044
- import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
4378
+ import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
4045
4379
  var DEFAULT_UNAVAILABLE_LABEL = "Coming soon";
4046
4380
  var APP_CARD_HEIGHT = {
4047
4381
  platform: 13,
@@ -4119,7 +4453,7 @@ var AppSwitcherAppRoot = styled24(Card2, {
4119
4453
  }
4120
4454
  });
4121
4455
  });
4122
- var AppSwitcherAppIcon = styled24(Box14, {
4456
+ var AppSwitcherAppIcon = styled24(Box15, {
4123
4457
  name: "MuiAppSwitcher",
4124
4458
  slot: "AppIcon",
4125
4459
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4147,7 +4481,7 @@ var AppSwitcherAppIcon = styled24(Box14, {
4147
4481
  }
4148
4482
  });
4149
4483
  });
4150
- var AppSwitcherAppName = styled24(Typography9, {
4484
+ var AppSwitcherAppName = styled24(Typography10, {
4151
4485
  name: "MuiAppSwitcher",
4152
4486
  slot: "AppName",
4153
4487
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4172,7 +4506,7 @@ var AppSwitcherAppName = styled24(Typography9, {
4172
4506
  overflow: "hidden"
4173
4507
  }));
4174
4508
  var isModifiedClick = (event) => event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
4175
- var AppSwitcherApp = React15.forwardRef(
4509
+ var AppSwitcherApp = React16.forwardRef(
4176
4510
  function AppSwitcherApp2({
4177
4511
  id,
4178
4512
  name,
@@ -4189,14 +4523,14 @@ var AppSwitcherApp = React15.forwardRef(
4189
4523
  onClick
4190
4524
  }, ref) {
4191
4525
  var _a;
4192
- const inFooter = React15.useContext(AppSwitcherFooterContext);
4526
+ const inFooter = React16.useContext(AppSwitcherFooterContext);
4193
4527
  const tone = toneProp != null ? toneProp : inFooter ? "manage" : "platform";
4194
- const switcher = React15.useContext(AppSwitcherContext);
4528
+ const switcher = React16.useContext(AppSwitcherContext);
4195
4529
  const current = currentProp != null ? currentProp : id !== void 0 && id === (switcher == null ? void 0 : switcher.currentAppId);
4196
4530
  const normalizedUrl = typeof url === "string" && url.trim() === "" ? null : url;
4197
4531
  const unsafeUrl = Boolean(normalizedUrl) && !isSafeAppUrl(normalizedUrl);
4198
4532
  const safeUrl = unsafeUrl ? void 0 : normalizedUrl || void 0;
4199
- React15.useEffect(() => {
4533
+ React16.useEffect(() => {
4200
4534
  if (unsafeUrl) {
4201
4535
  console.warn(
4202
4536
  `AppSwitcher.App: ignored the url of "${name}" because only http:, https: and relative URLs are allowed. The card renders disabled.`
@@ -4230,7 +4564,7 @@ var AppSwitcherApp = React15.forwardRef(
4230
4564
  event.preventDefault();
4231
4565
  }
4232
4566
  };
4233
- const card = /* @__PURE__ */ jsxs12(
4567
+ const card = /* @__PURE__ */ jsxs13(
4234
4568
  AppSwitcherAppRoot,
4235
4569
  __spreadProps(__spreadValues({}, anchorProps), {
4236
4570
  ref,
@@ -4243,28 +4577,28 @@ var AppSwitcherApp = React15.forwardRef(
4243
4577
  "aria-busy": busy ? "true" : void 0,
4244
4578
  "aria-current": current ? "page" : void 0,
4245
4579
  children: [
4246
- /* @__PURE__ */ jsx38(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
4580
+ /* @__PURE__ */ jsx39(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
4247
4581
  // Same size as the mark, so the card does not reflow.
4248
- /* @__PURE__ */ jsx38(CircularProgress, { color: "inherit", size: markSize, thickness: 5 })
4249
- ) : icon != null ? icon : /* @__PURE__ */ jsx38(WSO2, { size: markSize }) }),
4250
- /* @__PURE__ */ jsx38(AppSwitcherAppName, { ownerState, children: name })
4582
+ /* @__PURE__ */ jsx39(CircularProgress, { color: "inherit", size: markSize, thickness: 5 })
4583
+ ) : icon != null ? icon : /* @__PURE__ */ jsx39(WSO2, { size: markSize }) }),
4584
+ /* @__PURE__ */ jsx39(AppSwitcherAppName, { ownerState, children: name })
4251
4585
  ]
4252
4586
  })
4253
4587
  );
4254
- return tooltip ? /* @__PURE__ */ jsx38(Tooltip5, { title: tooltip, describeChild: true, children: card }) : card;
4588
+ return tooltip ? /* @__PURE__ */ jsx39(Tooltip5, { title: tooltip, describeChild: true, children: card }) : card;
4255
4589
  }
4256
4590
  );
4257
4591
  AppSwitcherApp.displayName = "AppSwitcher.App";
4258
4592
 
4259
4593
  // src/components/AppSwitcher/AppSwitcherSection.tsx
4260
- import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
4261
- var AppSwitcherSectionRoot = styled25(Box15, {
4594
+ import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
4595
+ var AppSwitcherSectionRoot = styled25(Box16, {
4262
4596
  name: "MuiAppSwitcher",
4263
4597
  slot: "Section"
4264
4598
  })(({ theme }) => ({
4265
4599
  padding: theme.spacing(2)
4266
4600
  }));
4267
- var AppSwitcherSectionLabel = styled25(Typography10, {
4601
+ var AppSwitcherSectionLabel = styled25(Typography11, {
4268
4602
  name: "MuiAppSwitcher",
4269
4603
  slot: "SectionLabel"
4270
4604
  })(({ theme }) => ({
@@ -4309,7 +4643,7 @@ var AppSwitcherAppSkeleton = styled25(Skeleton, {
4309
4643
  var renderAppItems = (items, { missingUrlIsUnavailable }) => items.map((_a, index) => {
4310
4644
  var _b = _a, { key, url } = _b, item = __objRest(_b, ["key", "url"]);
4311
4645
  var _a2, _b2;
4312
- return /* @__PURE__ */ jsx39(
4646
+ return /* @__PURE__ */ jsx40(
4313
4647
  AppSwitcherApp,
4314
4648
  __spreadProps(__spreadValues({}, item), {
4315
4649
  url: url === void 0 && missingUrlIsUnavailable ? null : url
@@ -4325,10 +4659,10 @@ var AppSwitcherSection = ({
4325
4659
  loading = false,
4326
4660
  loadingCount
4327
4661
  }) => {
4328
- const labelId = React16.useId();
4329
- const inFooter = React16.useContext(AppSwitcherFooterContext);
4662
+ const labelId = React17.useId();
4663
+ const inFooter = React17.useContext(AppSwitcherFooterContext);
4330
4664
  const tone = inFooter ? "manage" : "platform";
4331
- const gridRef = React16.useRef(null);
4665
+ const gridRef = React17.useRef(null);
4332
4666
  const handleKeyDown = (event) => {
4333
4667
  var _a, _b;
4334
4668
  const keys = ["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"];
@@ -4379,7 +4713,7 @@ var AppSwitcherSection = ({
4379
4713
  event.preventDefault();
4380
4714
  cards[nextIndex].focus();
4381
4715
  };
4382
- const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx39(
4716
+ const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx40(
4383
4717
  AppSwitcherAppSkeleton,
4384
4718
  {
4385
4719
  ownerState: { tone },
@@ -4389,9 +4723,9 @@ var AppSwitcherSection = ({
4389
4723
  },
4390
4724
  index
4391
4725
  )) : children != null ? children : apps && renderAppItems(apps, { missingUrlIsUnavailable: true });
4392
- return /* @__PURE__ */ jsxs13(AppSwitcherSectionRoot, { children: [
4393
- label && /* @__PURE__ */ jsx39(AppSwitcherSectionLabel, { id: labelId, children: label }),
4394
- /* @__PURE__ */ jsx39(
4726
+ return /* @__PURE__ */ jsxs14(AppSwitcherSectionRoot, { children: [
4727
+ label && /* @__PURE__ */ jsx40(AppSwitcherSectionLabel, { id: labelId, children: label }),
4728
+ /* @__PURE__ */ jsx40(
4395
4729
  AppSwitcherSectionGrid,
4396
4730
  {
4397
4731
  ref: gridRef,
@@ -4400,9 +4734,9 @@ var AppSwitcherSection = ({
4400
4734
  "aria-labelledby": label ? labelId : void 0,
4401
4735
  "aria-busy": loading ? "true" : void 0,
4402
4736
  onKeyDown: handleKeyDown,
4403
- children: React16.Children.map(
4737
+ children: React17.Children.map(
4404
4738
  content,
4405
- (child) => React16.isValidElement(child) ? /* @__PURE__ */ jsx39("li", { children: child }) : child
4739
+ (child) => React17.isValidElement(child) ? /* @__PURE__ */ jsx40("li", { children: child }) : child
4406
4740
  )
4407
4741
  }
4408
4742
  )
@@ -4411,11 +4745,11 @@ var AppSwitcherSection = ({
4411
4745
  AppSwitcherSection.displayName = "AppSwitcher.Section";
4412
4746
 
4413
4747
  // src/components/AppSwitcher/AppSwitcherFooter.tsx
4414
- import * as React17 from "react";
4415
- import Box16 from "@mui/material/Box";
4748
+ import * as React18 from "react";
4749
+ import Box17 from "@mui/material/Box";
4416
4750
  import { alpha, styled as styled26 } from "@mui/material/styles";
4417
- import { jsx as jsx40 } from "react/jsx-runtime";
4418
- var AppSwitcherFooterRoot = styled26(Box16, {
4751
+ import { jsx as jsx41 } from "react/jsx-runtime";
4752
+ var AppSwitcherFooterRoot = styled26(Box17, {
4419
4753
  name: "MuiAppSwitcher",
4420
4754
  slot: "Footer"
4421
4755
  })(({ theme }) => ({
@@ -4434,10 +4768,10 @@ var AppSwitcherFooter = ({
4434
4768
  loadingCount
4435
4769
  }) => {
4436
4770
  const cards = children != null ? children : links && renderAppItems(links, { missingUrlIsUnavailable: false });
4437
- if (!loading && React17.Children.toArray(cards).length === 0) {
4771
+ if (!loading && React18.Children.toArray(cards).length === 0) {
4438
4772
  return null;
4439
4773
  }
4440
- return /* @__PURE__ */ jsx40(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx40(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx40(
4774
+ return /* @__PURE__ */ jsx41(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx41(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx41(
4441
4775
  AppSwitcherSection,
4442
4776
  {
4443
4777
  label,
@@ -4451,8 +4785,8 @@ var AppSwitcherFooter = ({
4451
4785
  AppSwitcherFooter.displayName = "AppSwitcher.Footer";
4452
4786
 
4453
4787
  // src/components/AppSwitcher/AppSwitcher.tsx
4454
- import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
4455
- var AppSwitcherRoot = styled27(Popover2, {
4788
+ import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
4789
+ var AppSwitcherRoot = styled27(Popover3, {
4456
4790
  name: "MuiAppSwitcher",
4457
4791
  slot: "Root",
4458
4792
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4475,18 +4809,18 @@ var AppSwitcher = ({
4475
4809
  currentAppId,
4476
4810
  unavailableLabel
4477
4811
  }) => {
4478
- const [anchorEl, setAnchorEl] = React18.useState(null);
4812
+ const [anchorEl, setAnchorEl] = React19.useState(null);
4479
4813
  const open = Boolean(anchorEl);
4480
- const popoverId = React18.useId();
4481
- const handleOpen = React18.useCallback((event) => {
4814
+ const popoverId = React19.useId();
4815
+ const handleOpen = React19.useCallback((event) => {
4482
4816
  const target = event.currentTarget;
4483
4817
  setAnchorEl((current) => current ? null : target);
4484
4818
  }, []);
4485
- const handleClose = React18.useCallback(() => {
4819
+ const handleClose = React19.useCallback(() => {
4486
4820
  setAnchorEl(null);
4487
4821
  }, []);
4488
4822
  const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp : "Applications";
4489
- const contextValue = React18.useMemo(
4823
+ const contextValue = React19.useMemo(
4490
4824
  () => ({
4491
4825
  open,
4492
4826
  anchorEl,
@@ -4498,14 +4832,14 @@ var AppSwitcher = ({
4498
4832
  }),
4499
4833
  [open, anchorEl, popoverId, handleOpen, handleClose, currentAppId, unavailableLabel]
4500
4834
  );
4501
- const childrenArray = React18.Children.toArray(children);
4835
+ const childrenArray = React19.Children.toArray(children);
4502
4836
  const triggerChild = childrenArray.find(
4503
- (child) => React18.isValidElement(child) && child.type === AppSwitcherTrigger
4837
+ (child) => React19.isValidElement(child) && child.type === AppSwitcherTrigger
4504
4838
  );
4505
4839
  const popoverChildren = childrenArray.filter((child) => child !== triggerChild);
4506
- return /* @__PURE__ */ jsxs14(AppSwitcherContext.Provider, { value: contextValue, children: [
4840
+ return /* @__PURE__ */ jsxs15(AppSwitcherContext.Provider, { value: contextValue, children: [
4507
4841
  triggerChild,
4508
- /* @__PURE__ */ jsx41(
4842
+ /* @__PURE__ */ jsx42(
4509
4843
  AppSwitcherRoot,
4510
4844
  {
4511
4845
  id: popoverId,
@@ -4529,15 +4863,15 @@ AppSwitcher.Footer = AppSwitcherFooter;
4529
4863
  AppSwitcher.displayName = "AppSwitcher";
4530
4864
 
4531
4865
  // src/components/Sidebar/Sidebar.tsx
4532
- import * as React26 from "react";
4533
- import Box22 from "@mui/material/Box";
4866
+ import * as React27 from "react";
4867
+ import Box23 from "@mui/material/Box";
4534
4868
  import { styled as styled40 } from "@mui/material/styles";
4535
4869
 
4536
4870
  // src/components/Sidebar/context.ts
4537
- import * as React19 from "react";
4538
- var SidebarContext = React19.createContext(null);
4871
+ import * as React20 from "react";
4872
+ var SidebarContext = React20.createContext(null);
4539
4873
  var useSidebar = () => {
4540
- const context = React19.useContext(SidebarContext);
4874
+ const context = React20.useContext(SidebarContext);
4541
4875
  if (!context) {
4542
4876
  throw new Error("Sidebar compound components must be used within Sidebar");
4543
4877
  }
@@ -4545,12 +4879,12 @@ var useSidebar = () => {
4545
4879
  };
4546
4880
 
4547
4881
  // src/components/Sidebar/SidebarNav.tsx
4548
- import * as React20 from "react";
4549
- import Box17 from "@mui/material/Box";
4882
+ import * as React21 from "react";
4883
+ import Box18 from "@mui/material/Box";
4550
4884
  import Divider3 from "@mui/material/Divider";
4551
4885
  import { styled as styled28 } from "@mui/material/styles";
4552
- import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
4553
- var SidebarNavRoot = styled28(Box17, {
4886
+ import { jsx as jsx43, jsxs as jsxs16 } from "react/jsx-runtime";
4887
+ var SidebarNavRoot = styled28(Box18, {
4554
4888
  name: "MuiSidebar",
4555
4889
  slot: "Nav"
4556
4890
  })(({ theme }) => ({
@@ -4585,24 +4919,24 @@ var SidebarNav = ({
4585
4919
  sx
4586
4920
  }) => {
4587
4921
  const { collapsed } = useSidebar();
4588
- const childArray = React20.Children.toArray(children);
4589
- return /* @__PURE__ */ jsx42(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs15(React20.Fragment, { children: [
4590
- index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx42(SidebarNavDivider, {}),
4922
+ const childArray = React21.Children.toArray(children);
4923
+ return /* @__PURE__ */ jsx43(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs16(React21.Fragment, { children: [
4924
+ index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx43(SidebarNavDivider, {}),
4591
4925
  child
4592
4926
  ] }, index)) });
4593
4927
  };
4594
4928
 
4595
4929
  // src/components/Sidebar/SidebarCategory.tsx
4596
- import * as React21 from "react";
4597
- import Box18 from "@mui/material/Box";
4930
+ import * as React22 from "react";
4931
+ import Box19 from "@mui/material/Box";
4598
4932
  import List from "@mui/material/List";
4599
4933
  import { styled as styled30 } from "@mui/material/styles";
4600
4934
 
4601
4935
  // src/components/Sidebar/SidebarCategoryLabel.tsx
4602
- import Typography11 from "@mui/material/Typography";
4936
+ import Typography12 from "@mui/material/Typography";
4603
4937
  import { styled as styled29 } from "@mui/material/styles";
4604
- import { jsx as jsx43 } from "react/jsx-runtime";
4605
- var SidebarCategoryLabelRoot = styled29(Typography11, {
4938
+ import { jsx as jsx44 } from "react/jsx-runtime";
4939
+ var SidebarCategoryLabelRoot = styled29(Typography12, {
4606
4940
  name: "MuiSidebar",
4607
4941
  slot: "CategoryLabel",
4608
4942
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -4627,13 +4961,13 @@ var SidebarCategoryLabelRoot = styled29(Typography11, {
4627
4961
  }));
4628
4962
  var SidebarCategoryLabel = ({ children, sx }) => {
4629
4963
  const { collapsed } = useSidebar();
4630
- return /* @__PURE__ */ jsx43(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
4964
+ return /* @__PURE__ */ jsx44(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
4631
4965
  };
4632
4966
  SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
4633
4967
 
4634
4968
  // src/components/Sidebar/SidebarCategory.tsx
4635
- import { jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
4636
- var SidebarCategoryRoot = styled30(Box18, {
4969
+ import { jsx as jsx45, jsxs as jsxs17 } from "react/jsx-runtime";
4970
+ var SidebarCategoryRoot = styled30(Box19, {
4637
4971
  name: "MuiSidebar",
4638
4972
  slot: "Category"
4639
4973
  })(({ theme }) => ({
@@ -4642,9 +4976,9 @@ var SidebarCategoryRoot = styled30(Box18, {
4642
4976
  var separateChildren = (children) => {
4643
4977
  let labelChild = null;
4644
4978
  const otherChildren = [];
4645
- React21.Children.forEach(children, (child) => {
4979
+ React22.Children.forEach(children, (child) => {
4646
4980
  var _a;
4647
- if (React21.isValidElement(child)) {
4981
+ if (React22.isValidElement(child)) {
4648
4982
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4649
4983
  if (displayName === "SidebarCategoryLabel") {
4650
4984
  labelChild = child;
@@ -4662,35 +4996,35 @@ var SidebarCategory = ({
4662
4996
  sx
4663
4997
  }) => {
4664
4998
  const { labelChild, otherChildren } = separateChildren(children);
4665
- return /* @__PURE__ */ jsxs16(SidebarCategoryRoot, { sx, children: [
4999
+ return /* @__PURE__ */ jsxs17(SidebarCategoryRoot, { sx, children: [
4666
5000
  labelChild,
4667
- /* @__PURE__ */ jsx44(List, { disablePadding: true, children: otherChildren })
5001
+ /* @__PURE__ */ jsx45(List, { disablePadding: true, children: otherChildren })
4668
5002
  ] });
4669
5003
  };
4670
5004
  SidebarCategory.displayName = "SidebarCategory";
4671
5005
 
4672
5006
  // src/components/Sidebar/SidebarItem.tsx
4673
- import * as React24 from "react";
4674
- import Box19 from "@mui/material/Box";
5007
+ import * as React25 from "react";
5008
+ import Box20 from "@mui/material/Box";
4675
5009
  import List2 from "@mui/material/List";
4676
5010
  import ListItem from "@mui/material/ListItem";
4677
5011
  import ListItemButton from "@mui/material/ListItemButton";
4678
5012
  import ListItemIcon2 from "@mui/material/ListItemIcon";
4679
5013
  import ListItemText2 from "@mui/material/ListItemText";
4680
- import MenuItem4 from "@mui/material/MenuItem";
4681
- import MenuList from "@mui/material/MenuList";
5014
+ import MenuItem5 from "@mui/material/MenuItem";
5015
+ import MenuList2 from "@mui/material/MenuList";
4682
5016
  import Collapse from "@mui/material/Collapse";
4683
5017
  import Tooltip6 from "@mui/material/Tooltip";
4684
- import Popover3 from "@mui/material/Popover";
5018
+ import Popover4 from "@mui/material/Popover";
4685
5019
  import { styled as styled34 } from "@mui/material/styles";
4686
- import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
5020
+ import { ChevronDown as ChevronDown3, ChevronUp } from "@wso2/oxygen-ui-icons-react";
4687
5021
 
4688
5022
  // src/components/Sidebar/SidebarItemContext.tsx
4689
- import * as React22 from "react";
4690
- import { jsx as jsx45 } from "react/jsx-runtime";
4691
- var SidebarItemContext = React22.createContext(null);
5023
+ import * as React23 from "react";
5024
+ import { jsx as jsx46 } from "react/jsx-runtime";
5025
+ var SidebarItemContext = React23.createContext(null);
4692
5026
  var useSidebarItemContext = () => {
4693
- const context = React22.useContext(SidebarItemContext);
5027
+ const context = React23.useContext(SidebarItemContext);
4694
5028
  if (!context) {
4695
5029
  throw new Error(
4696
5030
  "useSidebarItemContext must be used within a SidebarItem component"
@@ -4699,14 +5033,14 @@ var useSidebarItemContext = () => {
4699
5033
  return context;
4700
5034
  };
4701
5035
  var SidebarItemProvider = ({ value, children }) => {
4702
- return /* @__PURE__ */ jsx45(SidebarItemContext.Provider, { value, children });
5036
+ return /* @__PURE__ */ jsx46(SidebarItemContext.Provider, { value, children });
4703
5037
  };
4704
5038
 
4705
5039
  // src/components/Sidebar/SidebarItemIcon.tsx
4706
- import * as React23 from "react";
5040
+ import * as React24 from "react";
4707
5041
  import ListItemIcon from "@mui/material/ListItemIcon";
4708
5042
  import { styled as styled31 } from "@mui/material/styles";
4709
- import { jsx as jsx46 } from "react/jsx-runtime";
5043
+ import { jsx as jsx47 } from "react/jsx-runtime";
4710
5044
  var SidebarItemIconRoot = styled31(ListItemIcon, {
4711
5045
  name: "MuiSidebar",
4712
5046
  slot: "ItemIcon",
@@ -4724,10 +5058,10 @@ var SidebarItemIcon = ({
4724
5058
  var _a;
4725
5059
  const { collapsed } = useSidebar();
4726
5060
  const { isActive } = useSidebarItemContext();
4727
- const iconWithSize = React23.isValidElement(children) ? React23.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
5061
+ const iconWithSize = React24.isValidElement(children) ? React24.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
4728
5062
  size: (_a = children.props.size) != null ? _a : 20
4729
5063
  })) : children;
4730
- return /* @__PURE__ */ jsx46(
5064
+ return /* @__PURE__ */ jsx47(
4731
5065
  SidebarItemIconRoot,
4732
5066
  {
4733
5067
  ownerState: { collapsed, isActive },
@@ -4741,7 +5075,7 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
4741
5075
  // src/components/Sidebar/SidebarItemLabel.tsx
4742
5076
  import ListItemText from "@mui/material/ListItemText";
4743
5077
  import { styled as styled32 } from "@mui/material/styles";
4744
- import { jsx as jsx47 } from "react/jsx-runtime";
5078
+ import { jsx as jsx48 } from "react/jsx-runtime";
4745
5079
  var SidebarItemLabelRoot = styled32(ListItemText, {
4746
5080
  name: "MuiSidebar",
4747
5081
  slot: "ItemLabel",
@@ -4767,14 +5101,14 @@ var SidebarItemLabel = ({
4767
5101
  }) => {
4768
5102
  const { collapsed } = useSidebar();
4769
5103
  const { isActive } = useSidebarItemContext();
4770
- return /* @__PURE__ */ jsx47(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
5104
+ return /* @__PURE__ */ jsx48(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
4771
5105
  };
4772
5106
  SidebarItemLabel.displayName = "SidebarItemLabel";
4773
5107
 
4774
5108
  // src/components/Sidebar/SidebarItemBadge.tsx
4775
5109
  import Chip from "@mui/material/Chip";
4776
5110
  import { styled as styled33 } from "@mui/material/styles";
4777
- import { jsx as jsx48 } from "react/jsx-runtime";
5111
+ import { jsx as jsx49 } from "react/jsx-runtime";
4778
5112
  var SidebarItemBadgeRoot = styled33(Chip, {
4779
5113
  name: "MuiSidebar",
4780
5114
  slot: "ItemBadge"
@@ -4792,12 +5126,12 @@ var SidebarItemBadge = ({
4792
5126
  if (collapsed) {
4793
5127
  return null;
4794
5128
  }
4795
- return /* @__PURE__ */ jsx48(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
5129
+ return /* @__PURE__ */ jsx49(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
4796
5130
  };
4797
5131
  SidebarItemBadge.displayName = "SidebarItemBadge";
4798
5132
 
4799
5133
  // src/components/Sidebar/SidebarItem.tsx
4800
- import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs17 } from "react/jsx-runtime";
5134
+ import { Fragment as Fragment7, jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
4801
5135
  var SidebarItemRoot = styled34(ListItem, {
4802
5136
  name: "MuiSidebar",
4803
5137
  slot: "Item"
@@ -4829,7 +5163,7 @@ var SidebarItemButton = styled34(ListItemButton, {
4829
5163
  }
4830
5164
  }
4831
5165
  }));
4832
- var SidebarItemChevron = styled34(Box19, {
5166
+ var SidebarItemChevron = styled34(Box20, {
4833
5167
  name: "MuiSidebar",
4834
5168
  slot: "ItemChevron"
4835
5169
  })({
@@ -4838,20 +5172,20 @@ var SidebarItemChevron = styled34(Box19, {
4838
5172
  display: "flex",
4839
5173
  alignItems: "center"
4840
5174
  });
4841
- var SidebarItemPopover = styled34(Popover3, {
5175
+ var SidebarItemPopover = styled34(Popover4, {
4842
5176
  name: "MuiSidebar",
4843
5177
  slot: "ItemPopover"
4844
5178
  })({
4845
5179
  pointerEvents: "none"
4846
5180
  });
4847
- var SidebarItemPopoverList = styled34(MenuList, {
5181
+ var SidebarItemPopoverList = styled34(MenuList2, {
4848
5182
  name: "MuiSidebar",
4849
5183
  slot: "ItemPopoverList"
4850
5184
  })(({ theme }) => ({
4851
5185
  padding: theme.spacing(0.5),
4852
5186
  pointerEvents: "auto"
4853
5187
  }));
4854
- var SidebarItemPopoverButton = styled34(MenuItem4, {
5188
+ var SidebarItemPopoverButton = styled34(MenuItem5, {
4855
5189
  name: "MuiSidebar",
4856
5190
  slot: "ItemPopoverButton"
4857
5191
  })(({ theme }) => ({
@@ -4875,9 +5209,9 @@ var CHILD_DISPLAY_NAMES = [
4875
5209
  var separateChildren2 = (children) => {
4876
5210
  const composableChildren = [];
4877
5211
  const nestedItems = [];
4878
- React24.Children.toArray(children).forEach((child) => {
5212
+ React25.Children.toArray(children).forEach((child) => {
4879
5213
  var _a;
4880
- if (React24.isValidElement(child)) {
5214
+ if (React25.isValidElement(child)) {
4881
5215
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4882
5216
  if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
4883
5217
  composableChildren.push(child);
@@ -4892,9 +5226,9 @@ var separateChildren2 = (children) => {
4892
5226
  };
4893
5227
  var getTooltipLabel = (children) => {
4894
5228
  let tooltipLabel = "";
4895
- React24.Children.forEach(children, (child) => {
5229
+ React25.Children.forEach(children, (child) => {
4896
5230
  var _a;
4897
- if (React24.isValidElement(child)) {
5231
+ if (React25.isValidElement(child)) {
4898
5232
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4899
5233
  const props = child.props;
4900
5234
  if (displayName === "SidebarItemLabel" && props.children) {
@@ -4907,9 +5241,9 @@ var getTooltipLabel = (children) => {
4907
5241
  var extractItemContent = (itemChildren) => {
4908
5242
  let icon = null;
4909
5243
  let label = "";
4910
- React24.Children.forEach(itemChildren, (child) => {
5244
+ React25.Children.forEach(itemChildren, (child) => {
4911
5245
  var _a;
4912
- if (React24.isValidElement(child)) {
5246
+ if (React25.isValidElement(child)) {
4913
5247
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4914
5248
  const props = child.props;
4915
5249
  if (displayName === "SidebarItemIcon") {
@@ -4933,33 +5267,33 @@ var SidebarItem = ({
4933
5267
  const hasNestedItems = nestedItems.length > 0;
4934
5268
  const isActive = activeItem === id;
4935
5269
  const isExpanded = expandedMenus[id] || false;
4936
- const hasActiveChild = React24.useMemo(() => {
5270
+ const hasActiveChild = React25.useMemo(() => {
4937
5271
  if (!hasNestedItems || !activeItem) return false;
4938
5272
  return nestedItems.some((child) => {
4939
- if (React24.isValidElement(child)) {
5273
+ if (React25.isValidElement(child)) {
4940
5274
  return child.props.id === activeItem;
4941
5275
  }
4942
5276
  return false;
4943
5277
  });
4944
5278
  }, [hasNestedItems, nestedItems, activeItem]);
4945
- const [popoverAnchor, setPopoverAnchor] = React24.useState(null);
4946
- const [popoverOpenedByClick, setPopoverOpenedByClick] = React24.useState(false);
4947
- const closeTimeoutRef = React24.useRef(null);
5279
+ const [popoverAnchor, setPopoverAnchor] = React25.useState(null);
5280
+ const [popoverOpenedByClick, setPopoverOpenedByClick] = React25.useState(false);
5281
+ const closeTimeoutRef = React25.useRef(null);
4948
5282
  const popoverOpen = Boolean(popoverAnchor);
4949
- const popoverId = React24.useId();
4950
- const clearCloseTimeout = React24.useCallback(() => {
5283
+ const popoverId = React25.useId();
5284
+ const clearCloseTimeout = React25.useCallback(() => {
4951
5285
  if (closeTimeoutRef.current != null) {
4952
5286
  clearTimeout(closeTimeoutRef.current);
4953
5287
  closeTimeoutRef.current = null;
4954
5288
  }
4955
5289
  }, []);
4956
- const closePopover = React24.useCallback(() => {
5290
+ const closePopover = React25.useCallback(() => {
4957
5291
  clearCloseTimeout();
4958
5292
  setPopoverAnchor(null);
4959
5293
  setPopoverOpenedByClick(false);
4960
5294
  }, [clearCloseTimeout]);
4961
- React24.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
4962
- React24.useEffect(() => {
5295
+ React25.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
5296
+ React25.useEffect(() => {
4963
5297
  if (!collapsed) {
4964
5298
  closePopover();
4965
5299
  }
@@ -5009,7 +5343,7 @@ var SidebarItem = ({
5009
5343
  const tooltipLabel = getTooltipLabel(children);
5010
5344
  const ownerState = { collapsed, depth };
5011
5345
  const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
5012
- const buttonContent = /* @__PURE__ */ jsx49(
5346
+ const buttonContent = /* @__PURE__ */ jsx50(
5013
5347
  SidebarItemButton,
5014
5348
  {
5015
5349
  selected: shouldShowSelected,
@@ -5020,21 +5354,21 @@ var SidebarItem = ({
5020
5354
  "aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
5021
5355
  "aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
5022
5356
  "aria-controls": popoverOpen ? popoverId : void 0,
5023
- children: /* @__PURE__ */ jsxs17(SidebarItemProvider, { value: contextValue, children: [
5357
+ children: /* @__PURE__ */ jsxs18(SidebarItemProvider, { value: contextValue, children: [
5024
5358
  composableChildren,
5025
- !collapsed && hasNestedItems && /* @__PURE__ */ jsx49(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx49(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx49(ChevronDown2, { size: 16 }) }),
5026
- !collapsed && !hasNestedItems && /* @__PURE__ */ jsx49(Box19, { sx: { ml: "auto", width: 16, pl: 1 } })
5359
+ !collapsed && hasNestedItems && /* @__PURE__ */ jsx50(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx50(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx50(ChevronDown3, { size: 16 }) }),
5360
+ !collapsed && !hasNestedItems && /* @__PURE__ */ jsx50(Box20, { sx: { ml: "auto", width: 16, pl: 1 } })
5027
5361
  ] })
5028
5362
  }
5029
5363
  );
5030
- const wrappedContent = link ? /* @__PURE__ */ jsx49(Fragment6, { children: React24.cloneElement(link, {}, buttonContent) }) : buttonContent;
5364
+ const wrappedContent = link ? /* @__PURE__ */ jsx50(Fragment7, { children: React25.cloneElement(link, {}, buttonContent) }) : buttonContent;
5031
5365
  const collapsedWithNested = collapsed && hasNestedItems;
5032
5366
  const handlePopoverItemClick = (itemId) => {
5033
5367
  onSelect == null ? void 0 : onSelect(itemId);
5034
5368
  closePopover();
5035
5369
  };
5036
- return /* @__PURE__ */ jsxs17(Fragment6, { children: [
5037
- /* @__PURE__ */ jsx49(
5370
+ return /* @__PURE__ */ jsxs18(Fragment7, { children: [
5371
+ /* @__PURE__ */ jsx50(
5038
5372
  SidebarItemRoot,
5039
5373
  {
5040
5374
  disablePadding: true,
@@ -5042,11 +5376,11 @@ var SidebarItem = ({
5042
5376
  onMouseLeave: handleMouseLeave,
5043
5377
  children: collapsed ? (
5044
5378
  // When collapsed: show tooltip only for items without nested children
5045
- collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx49(Tooltip6, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
5379
+ collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx50(Tooltip6, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
5046
5380
  ) : wrappedContent
5047
5381
  }
5048
5382
  ),
5049
- collapsedWithNested && /* @__PURE__ */ jsx49(
5383
+ collapsedWithNested && /* @__PURE__ */ jsx50(
5050
5384
  SidebarItemPopover,
5051
5385
  {
5052
5386
  open: popoverOpen,
@@ -5063,25 +5397,25 @@ var SidebarItem = ({
5063
5397
  onMouseLeave: handleMouseLeave
5064
5398
  }
5065
5399
  },
5066
- children: /* @__PURE__ */ jsx49(
5400
+ children: /* @__PURE__ */ jsx50(
5067
5401
  SidebarItemPopoverList,
5068
5402
  {
5069
5403
  id: popoverId,
5070
5404
  autoFocusItem: popoverOpen && popoverOpenedByClick,
5071
5405
  disablePadding: true,
5072
5406
  children: nestedItems.map((child, index) => {
5073
- if (React24.isValidElement(child)) {
5407
+ if (React25.isValidElement(child)) {
5074
5408
  const childProps = child.props;
5075
5409
  const { icon, label } = extractItemContent(childProps.children);
5076
5410
  const isItemActive = activeItem === childProps.id;
5077
- return /* @__PURE__ */ jsxs17(
5411
+ return /* @__PURE__ */ jsxs18(
5078
5412
  SidebarItemPopoverButton,
5079
5413
  {
5080
5414
  selected: isItemActive,
5081
5415
  onClick: () => handlePopoverItemClick(childProps.id),
5082
5416
  children: [
5083
- icon && /* @__PURE__ */ jsx49(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
5084
- /* @__PURE__ */ jsx49(ListItemText2, { primary: label })
5417
+ icon && /* @__PURE__ */ jsx50(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
5418
+ /* @__PURE__ */ jsx50(ListItemText2, { primary: label })
5085
5419
  ]
5086
5420
  },
5087
5421
  childProps.id || index
@@ -5093,9 +5427,9 @@ var SidebarItem = ({
5093
5427
  )
5094
5428
  }
5095
5429
  ),
5096
- hasNestedItems && !collapsed && /* @__PURE__ */ jsx49(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx49(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
5097
- if (React24.isValidElement(child)) {
5098
- return React24.cloneElement(child, {
5430
+ hasNestedItems && !collapsed && /* @__PURE__ */ jsx50(Collapse, { component: "li", in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx50(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
5431
+ if (React25.isValidElement(child)) {
5432
+ return React25.cloneElement(child, {
5099
5433
  key: child.key || index,
5100
5434
  depth: depth + 1
5101
5435
  });
@@ -5107,11 +5441,11 @@ var SidebarItem = ({
5107
5441
  SidebarItem.displayName = "SidebarItem";
5108
5442
 
5109
5443
  // src/components/Sidebar/SidebarFooter.tsx
5110
- import Box20 from "@mui/material/Box";
5444
+ import Box21 from "@mui/material/Box";
5111
5445
  import Divider4 from "@mui/material/Divider";
5112
5446
  import { styled as styled35 } from "@mui/material/styles";
5113
- import { Fragment as Fragment7, jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
5114
- var SidebarFooterRoot = styled35(Box20, {
5447
+ import { Fragment as Fragment8, jsx as jsx51, jsxs as jsxs19 } from "react/jsx-runtime";
5448
+ var SidebarFooterRoot = styled35(Box21, {
5115
5449
  name: "MuiSidebar",
5116
5450
  slot: "Footer"
5117
5451
  })(({ theme }) => ({
@@ -5123,15 +5457,15 @@ var SidebarFooter = ({
5123
5457
  showDivider = true,
5124
5458
  sx
5125
5459
  }) => {
5126
- return /* @__PURE__ */ jsxs18(Fragment7, { children: [
5127
- showDivider && /* @__PURE__ */ jsx50(Divider4, {}),
5128
- /* @__PURE__ */ jsx50(SidebarFooterRoot, { sx, children })
5460
+ return /* @__PURE__ */ jsxs19(Fragment8, { children: [
5461
+ showDivider && /* @__PURE__ */ jsx51(Divider4, {}),
5462
+ /* @__PURE__ */ jsx51(SidebarFooterRoot, { sx, children })
5129
5463
  ] });
5130
5464
  };
5131
5465
 
5132
5466
  // src/components/Sidebar/SidebarUser.tsx
5133
- import * as React25 from "react";
5134
- import Box21 from "@mui/material/Box";
5467
+ import * as React26 from "react";
5468
+ import Box22 from "@mui/material/Box";
5135
5469
  import ListItemButton2 from "@mui/material/ListItemButton";
5136
5470
  import Tooltip7 from "@mui/material/Tooltip";
5137
5471
  import Divider5 from "@mui/material/Divider";
@@ -5140,7 +5474,7 @@ import { styled as styled39 } from "@mui/material/styles";
5140
5474
  // src/components/Sidebar/SidebarUserAvatar.tsx
5141
5475
  import Avatar2 from "@mui/material/Avatar";
5142
5476
  import { styled as styled36 } from "@mui/material/styles";
5143
- import { jsx as jsx51 } from "react/jsx-runtime";
5477
+ import { jsx as jsx52 } from "react/jsx-runtime";
5144
5478
  var SidebarUserAvatarRoot = styled36(Avatar2, {
5145
5479
  name: "MuiSidebar",
5146
5480
  slot: "UserAvatar"
@@ -5157,15 +5491,15 @@ var SidebarUserAvatar = ({
5157
5491
  alt,
5158
5492
  sx
5159
5493
  }) => {
5160
- return /* @__PURE__ */ jsx51(SidebarUserAvatarRoot, { src, alt, sx, children });
5494
+ return /* @__PURE__ */ jsx52(SidebarUserAvatarRoot, { src, alt, sx, children });
5161
5495
  };
5162
5496
  SidebarUserAvatar.displayName = "SidebarUserAvatar";
5163
5497
 
5164
5498
  // src/components/Sidebar/SidebarUserName.tsx
5165
- import Typography12 from "@mui/material/Typography";
5499
+ import Typography13 from "@mui/material/Typography";
5166
5500
  import { styled as styled37 } from "@mui/material/styles";
5167
- import { jsx as jsx52 } from "react/jsx-runtime";
5168
- var SidebarUserNameRoot = styled37(Typography12, {
5501
+ import { jsx as jsx53 } from "react/jsx-runtime";
5502
+ var SidebarUserNameRoot = styled37(Typography13, {
5169
5503
  name: "MuiSidebar",
5170
5504
  slot: "UserName"
5171
5505
  })({
@@ -5182,15 +5516,15 @@ var SidebarUserName = ({
5182
5516
  if (collapsed) {
5183
5517
  return null;
5184
5518
  }
5185
- return /* @__PURE__ */ jsx52(SidebarUserNameRoot, { variant: "body2", sx, children });
5519
+ return /* @__PURE__ */ jsx53(SidebarUserNameRoot, { variant: "body2", sx, children });
5186
5520
  };
5187
5521
  SidebarUserName.displayName = "SidebarUserName";
5188
5522
 
5189
5523
  // src/components/Sidebar/SidebarUserEmail.tsx
5190
- import Typography13 from "@mui/material/Typography";
5524
+ import Typography14 from "@mui/material/Typography";
5191
5525
  import { styled as styled38 } from "@mui/material/styles";
5192
- import { jsx as jsx53 } from "react/jsx-runtime";
5193
- var SidebarUserEmailRoot = styled38(Typography13, {
5526
+ import { jsx as jsx54 } from "react/jsx-runtime";
5527
+ var SidebarUserEmailRoot = styled38(Typography14, {
5194
5528
  name: "MuiSidebar",
5195
5529
  slot: "UserEmail"
5196
5530
  })(({ theme }) => ({
@@ -5208,13 +5542,13 @@ var SidebarUserEmail = ({
5208
5542
  if (collapsed) {
5209
5543
  return null;
5210
5544
  }
5211
- return /* @__PURE__ */ jsx53(SidebarUserEmailRoot, { variant: "caption", sx, children });
5545
+ return /* @__PURE__ */ jsx54(SidebarUserEmailRoot, { variant: "caption", sx, children });
5212
5546
  };
5213
5547
  SidebarUserEmail.displayName = "SidebarUserEmail";
5214
5548
 
5215
5549
  // src/components/Sidebar/SidebarUser.tsx
5216
- import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs19 } from "react/jsx-runtime";
5217
- var SidebarUserRoot = styled39(Box21, {
5550
+ import { Fragment as Fragment9, jsx as jsx55, jsxs as jsxs20 } from "react/jsx-runtime";
5551
+ var SidebarUserRoot = styled39(Box22, {
5218
5552
  name: "MuiSidebar",
5219
5553
  slot: "User"
5220
5554
  })(({ theme }) => ({
@@ -5237,7 +5571,7 @@ var SidebarUserButton = styled39(ListItemButton2, {
5237
5571
  duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
5238
5572
  })
5239
5573
  }));
5240
- var SidebarUserTextContainer = styled39(Box21, {
5574
+ var SidebarUserTextContainer = styled39(Box22, {
5241
5575
  name: "MuiSidebar",
5242
5576
  slot: "UserTextContainer",
5243
5577
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -5255,9 +5589,9 @@ var SidebarUserTextContainer = styled39(Box21, {
5255
5589
  var separateChildren3 = (children) => {
5256
5590
  let avatarChild = null;
5257
5591
  const textChildren = [];
5258
- React25.Children.forEach(children, (child) => {
5592
+ React26.Children.forEach(children, (child) => {
5259
5593
  var _a;
5260
- if (React25.isValidElement(child)) {
5594
+ if (React26.isValidElement(child)) {
5261
5595
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
5262
5596
  if (displayName === "SidebarUserAvatar") {
5263
5597
  avatarChild = child;
@@ -5270,9 +5604,9 @@ var separateChildren3 = (children) => {
5270
5604
  };
5271
5605
  var getTooltipText = (children) => {
5272
5606
  let tooltipText = "";
5273
- React25.Children.forEach(children, (child) => {
5607
+ React26.Children.forEach(children, (child) => {
5274
5608
  var _a;
5275
- if (React25.isValidElement(child)) {
5609
+ if (React26.isValidElement(child)) {
5276
5610
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
5277
5611
  const props = child.props;
5278
5612
  if (displayName === "SidebarUserName" && props.children) {
@@ -5292,22 +5626,22 @@ var SidebarUser = ({
5292
5626
  const { avatarChild, textChildren } = separateChildren3(children);
5293
5627
  const tooltipText = getTooltipText(children);
5294
5628
  const ownerState = { collapsed };
5295
- const content = /* @__PURE__ */ jsxs19(SidebarUserButton, { onClick, ownerState, children: [
5629
+ const content = /* @__PURE__ */ jsxs20(SidebarUserButton, { onClick, ownerState, children: [
5296
5630
  avatarChild,
5297
- /* @__PURE__ */ jsx54(SidebarUserTextContainer, { collapsed, children: textChildren })
5631
+ /* @__PURE__ */ jsx55(SidebarUserTextContainer, { collapsed, children: textChildren })
5298
5632
  ] });
5299
- return /* @__PURE__ */ jsxs19(Fragment8, { children: [
5300
- showDivider && /* @__PURE__ */ jsx54(Divider5, {}),
5301
- /* @__PURE__ */ jsx54(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx54(Tooltip7, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
5633
+ return /* @__PURE__ */ jsxs20(Fragment9, { children: [
5634
+ showDivider && /* @__PURE__ */ jsx55(Divider5, {}),
5635
+ /* @__PURE__ */ jsx55(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx55(Tooltip7, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
5302
5636
  ] });
5303
5637
  };
5304
5638
  SidebarUser.displayName = "SidebarUser";
5305
5639
 
5306
5640
  // src/components/Sidebar/Sidebar.tsx
5307
- import { jsx as jsx55 } from "react/jsx-runtime";
5641
+ import { jsx as jsx56 } from "react/jsx-runtime";
5308
5642
  var SIDEBAR_WIDTH = 250;
5309
5643
  var COLLAPSED_SIDEBAR_WIDTH = 64;
5310
- var SidebarRootStyled = styled40(Box22, {
5644
+ var SidebarRootStyled = styled40(Box23, {
5311
5645
  name: "MuiSidebar",
5312
5646
  slot: "Root",
5313
5647
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5342,10 +5676,10 @@ var Sidebar = ({
5342
5676
  sx
5343
5677
  }) => {
5344
5678
  var _a, _b, _c;
5345
- const appShellContext = React26.useContext(AppShellContext);
5679
+ const appShellContext = React27.useContext(AppShellContext);
5346
5680
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
5347
5681
  const activeItem = activeItemProp != null ? activeItemProp : appShellContext == null ? void 0 : appShellContext.state.activeMenuItem;
5348
- const expandedMenus = React26.useMemo(
5682
+ const expandedMenus = React27.useMemo(
5349
5683
  () => {
5350
5684
  var _a2;
5351
5685
  return (_a2 = expandedMenusProp != null ? expandedMenusProp : appShellContext == null ? void 0 : appShellContext.state.expandedMenus) != null ? _a2 : {};
@@ -5356,7 +5690,7 @@ var Sidebar = ({
5356
5690
  const onToggleExpand = onToggleExpandProp != null ? onToggleExpandProp : appShellContext == null ? void 0 : appShellContext.actions.toggleMenu;
5357
5691
  const width = (_b = widthProp != null ? widthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarWidth) != null ? _b : SIDEBAR_WIDTH;
5358
5692
  const collapsedWidth = (_c = collapsedWidthProp != null ? collapsedWidthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsedWidth) != null ? _c : COLLAPSED_SIDEBAR_WIDTH;
5359
- const contextValue = React26.useMemo(
5693
+ const contextValue = React27.useMemo(
5360
5694
  () => ({
5361
5695
  collapsed,
5362
5696
  activeItem,
@@ -5367,7 +5701,7 @@ var Sidebar = ({
5367
5701
  [collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
5368
5702
  );
5369
5703
  const ownerState = { collapsed, width, collapsedWidth };
5370
- return /* @__PURE__ */ jsx55(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx55(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
5704
+ return /* @__PURE__ */ jsx56(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx56(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
5371
5705
  };
5372
5706
  Sidebar.Nav = SidebarNav;
5373
5707
  Sidebar.Category = SidebarCategory;
@@ -5384,17 +5718,17 @@ Sidebar.UserEmail = SidebarUserEmail;
5384
5718
  Sidebar.displayName = "Sidebar";
5385
5719
 
5386
5720
  // src/components/NotificationPanel/NotificationPanel.tsx
5387
- import * as React32 from "react";
5388
- import Box31 from "@mui/material/Box";
5721
+ import * as React33 from "react";
5722
+ import Box32 from "@mui/material/Box";
5389
5723
  import Drawer from "@mui/material/Drawer";
5390
5724
  import { styled as styled56 } from "@mui/material/styles";
5391
5725
  import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
5392
5726
 
5393
5727
  // src/components/NotificationPanel/context.ts
5394
- import * as React27 from "react";
5395
- var NotificationPanelContext = React27.createContext(null);
5728
+ import * as React28 from "react";
5729
+ var NotificationPanelContext = React28.createContext(null);
5396
5730
  var useNotificationPanel = () => {
5397
- const context = React27.useContext(NotificationPanelContext);
5731
+ const context = React28.useContext(NotificationPanelContext);
5398
5732
  if (!context) {
5399
5733
  throw new Error(
5400
5734
  "NotificationPanel compound components must be used within NotificationPanel"
@@ -5404,11 +5738,11 @@ var useNotificationPanel = () => {
5404
5738
  };
5405
5739
 
5406
5740
  // src/components/NotificationPanel/NotificationHeader.tsx
5407
- import * as React28 from "react";
5408
- import Box23 from "@mui/material/Box";
5741
+ import * as React29 from "react";
5742
+ import Box24 from "@mui/material/Box";
5409
5743
  import { styled as styled41 } from "@mui/material/styles";
5410
- import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
5411
- var NotificationHeaderRoot = styled41(Box23, {
5744
+ import { jsx as jsx57, jsxs as jsxs21 } from "react/jsx-runtime";
5745
+ var NotificationHeaderRoot = styled41(Box24, {
5412
5746
  name: "MuiNotificationPanel",
5413
5747
  slot: "Header"
5414
5748
  })(({ theme }) => ({
@@ -5418,7 +5752,7 @@ var NotificationHeaderRoot = styled41(Box23, {
5418
5752
  padding: theme.spacing(2),
5419
5753
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
5420
5754
  }));
5421
- var NotificationHeaderContent = styled41(Box23, {
5755
+ var NotificationHeaderContent = styled41(Box24, {
5422
5756
  name: "MuiNotificationPanel",
5423
5757
  slot: "HeaderContent"
5424
5758
  })(({ theme }) => ({
@@ -5429,9 +5763,9 @@ var NotificationHeaderContent = styled41(Box23, {
5429
5763
  var separateChildren4 = (children) => {
5430
5764
  const leftChildren = [];
5431
5765
  let closeChild = null;
5432
- React28.Children.forEach(children, (child) => {
5766
+ React29.Children.forEach(children, (child) => {
5433
5767
  var _a;
5434
- if (React28.isValidElement(child)) {
5768
+ if (React29.isValidElement(child)) {
5435
5769
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
5436
5770
  if (displayName === "NotificationHeaderClose") {
5437
5771
  closeChild = child;
@@ -5449,18 +5783,18 @@ var NotificationHeader = ({
5449
5783
  sx
5450
5784
  }) => {
5451
5785
  const { leftChildren, closeChild } = separateChildren4(children);
5452
- return /* @__PURE__ */ jsxs20(NotificationHeaderRoot, { sx, children: [
5453
- /* @__PURE__ */ jsx56(NotificationHeaderContent, { children: leftChildren }),
5786
+ return /* @__PURE__ */ jsxs21(NotificationHeaderRoot, { sx, children: [
5787
+ /* @__PURE__ */ jsx57(NotificationHeaderContent, { children: leftChildren }),
5454
5788
  closeChild
5455
5789
  ] });
5456
5790
  };
5457
5791
  NotificationHeader.displayName = "NotificationHeader";
5458
5792
 
5459
5793
  // src/components/NotificationPanel/NotificationHeaderIcon.tsx
5460
- import Box24 from "@mui/material/Box";
5794
+ import Box25 from "@mui/material/Box";
5461
5795
  import { styled as styled42 } from "@mui/material/styles";
5462
- import { jsx as jsx57 } from "react/jsx-runtime";
5463
- var NotificationHeaderIconRoot = styled42(Box24, {
5796
+ import { jsx as jsx58 } from "react/jsx-runtime";
5797
+ var NotificationHeaderIconRoot = styled42(Box25, {
5464
5798
  name: "MuiNotificationPanel",
5465
5799
  slot: "HeaderIcon"
5466
5800
  })({
@@ -5471,15 +5805,15 @@ var NotificationHeaderIcon = ({
5471
5805
  children,
5472
5806
  sx
5473
5807
  }) => {
5474
- return /* @__PURE__ */ jsx57(NotificationHeaderIconRoot, { sx, children });
5808
+ return /* @__PURE__ */ jsx58(NotificationHeaderIconRoot, { sx, children });
5475
5809
  };
5476
5810
  NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
5477
5811
 
5478
5812
  // src/components/NotificationPanel/NotificationHeaderTitle.tsx
5479
- import Typography14 from "@mui/material/Typography";
5813
+ import Typography15 from "@mui/material/Typography";
5480
5814
  import { styled as styled43 } from "@mui/material/styles";
5481
- import { jsx as jsx58 } from "react/jsx-runtime";
5482
- var NotificationHeaderTitleRoot = styled43(Typography14, {
5815
+ import { jsx as jsx59 } from "react/jsx-runtime";
5816
+ var NotificationHeaderTitleRoot = styled43(Typography15, {
5483
5817
  name: "MuiNotificationPanel",
5484
5818
  slot: "HeaderTitle"
5485
5819
  })({
@@ -5489,14 +5823,14 @@ var NotificationHeaderTitle = ({
5489
5823
  children,
5490
5824
  sx
5491
5825
  }) => {
5492
- return /* @__PURE__ */ jsx58(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
5826
+ return /* @__PURE__ */ jsx59(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
5493
5827
  };
5494
5828
  NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
5495
5829
 
5496
5830
  // src/components/NotificationPanel/NotificationHeaderBadge.tsx
5497
5831
  import Chip2 from "@mui/material/Chip";
5498
5832
  import { styled as styled44 } from "@mui/material/styles";
5499
- import { jsx as jsx59 } from "react/jsx-runtime";
5833
+ import { jsx as jsx60 } from "react/jsx-runtime";
5500
5834
  var NotificationHeaderBadgeRoot = styled44(Chip2, {
5501
5835
  name: "MuiNotificationPanel",
5502
5836
  slot: "HeaderBadge"
@@ -5512,7 +5846,7 @@ var NotificationHeaderBadge = ({
5512
5846
  if (!children || children === 0 || children === "0") {
5513
5847
  return null;
5514
5848
  }
5515
- return /* @__PURE__ */ jsx59(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
5849
+ return /* @__PURE__ */ jsx60(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
5516
5850
  };
5517
5851
  NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
5518
5852
 
@@ -5520,7 +5854,7 @@ NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
5520
5854
  import IconButton5 from "@mui/material/IconButton";
5521
5855
  import { styled as styled45 } from "@mui/material/styles";
5522
5856
  import { X as X2 } from "@wso2/oxygen-ui-icons-react";
5523
- import { jsx as jsx60 } from "react/jsx-runtime";
5857
+ import { jsx as jsx61 } from "react/jsx-runtime";
5524
5858
  var NotificationHeaderCloseRoot = styled45(IconButton5, {
5525
5859
  name: "MuiNotificationPanel",
5526
5860
  slot: "HeaderClose"
@@ -5538,27 +5872,27 @@ var NotificationHeaderClose = ({
5538
5872
  onClose == null ? void 0 : onClose();
5539
5873
  }
5540
5874
  };
5541
- return /* @__PURE__ */ jsx60(
5875
+ return /* @__PURE__ */ jsx61(
5542
5876
  NotificationHeaderCloseRoot,
5543
5877
  {
5544
5878
  onClick: handleClick,
5545
5879
  size: "small",
5546
5880
  sx,
5547
5881
  "aria-label": "Close notifications",
5548
- children: children || /* @__PURE__ */ jsx60(X2, { size: 20, "aria-hidden": "true" })
5882
+ children: children || /* @__PURE__ */ jsx61(X2, { size: 20, "aria-hidden": "true" })
5549
5883
  }
5550
5884
  );
5551
5885
  };
5552
5886
  NotificationHeaderClose.displayName = "NotificationHeaderClose";
5553
5887
 
5554
5888
  // src/components/NotificationPanel/NotificationTabs.tsx
5555
- import Box25 from "@mui/material/Box";
5889
+ import Box26 from "@mui/material/Box";
5556
5890
  import Tabs from "@mui/material/Tabs";
5557
5891
  import Tab from "@mui/material/Tab";
5558
5892
  import Chip3 from "@mui/material/Chip";
5559
5893
  import { styled as styled46 } from "@mui/material/styles";
5560
- import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
5561
- var NotificationTabsRoot = styled46(Box25, {
5894
+ import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
5895
+ var NotificationTabsRoot = styled46(Box26, {
5562
5896
  name: "MuiNotificationPanel",
5563
5897
  slot: "Tabs"
5564
5898
  })(({ theme }) => ({
@@ -5575,7 +5909,7 @@ var NotificationTabsInner = styled46(Tabs, {
5575
5909
  fontWeight: 500
5576
5910
  }
5577
5911
  });
5578
- var NotificationTabLabel = styled46(Box25, {
5912
+ var NotificationTabLabel = styled46(Box26, {
5579
5913
  name: "MuiNotificationPanel",
5580
5914
  slot: "TabLabel"
5581
5915
  })(({ theme }) => ({
@@ -5596,18 +5930,18 @@ var NotificationTabs = ({
5596
5930
  onChange,
5597
5931
  sx
5598
5932
  }) => {
5599
- return /* @__PURE__ */ jsx61(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx61(
5933
+ return /* @__PURE__ */ jsx62(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx62(
5600
5934
  NotificationTabsInner,
5601
5935
  {
5602
5936
  value,
5603
5937
  onChange: (_, newValue) => onChange(newValue),
5604
5938
  variant: "fullWidth",
5605
- children: tabs.map((tab, index) => /* @__PURE__ */ jsx61(
5939
+ children: tabs.map((tab, index) => /* @__PURE__ */ jsx62(
5606
5940
  Tab,
5607
5941
  {
5608
- label: /* @__PURE__ */ jsxs21(NotificationTabLabel, { children: [
5942
+ label: /* @__PURE__ */ jsxs22(NotificationTabLabel, { children: [
5609
5943
  tab.label,
5610
- tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx61(
5944
+ tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx62(
5611
5945
  NotificationTabCount,
5612
5946
  {
5613
5947
  label: tab.count,
@@ -5625,12 +5959,12 @@ var NotificationTabs = ({
5625
5959
  };
5626
5960
 
5627
5961
  // src/components/NotificationPanel/NotificationActions.tsx
5628
- import Box26 from "@mui/material/Box";
5629
- import Button3 from "@mui/material/Button";
5962
+ import Box27 from "@mui/material/Box";
5963
+ import Button4 from "@mui/material/Button";
5630
5964
  import { styled as styled47 } from "@mui/material/styles";
5631
5965
  import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
5632
- import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
5633
- var NotificationActionsRoot = styled47(Box26, {
5966
+ import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
5967
+ var NotificationActionsRoot = styled47(Box27, {
5634
5968
  name: "MuiNotificationPanel",
5635
5969
  slot: "Actions"
5636
5970
  })(({ theme }) => ({
@@ -5642,7 +5976,7 @@ var NotificationActionsRoot = styled47(Box26, {
5642
5976
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
5643
5977
  backgroundColor: (theme.vars || theme).palette.action.hover
5644
5978
  }));
5645
- var NotificationActionButton = styled47(Button3, {
5979
+ var NotificationActionButton = styled47(Button4, {
5646
5980
  name: "MuiNotificationPanel",
5647
5981
  slot: "ActionButton"
5648
5982
  })({
@@ -5655,21 +5989,21 @@ var NotificationActions = ({
5655
5989
  onClearAll,
5656
5990
  sx
5657
5991
  }) => {
5658
- return /* @__PURE__ */ jsxs22(NotificationActionsRoot, { sx, children: [
5659
- hasUnread && onMarkAllRead && /* @__PURE__ */ jsx62(
5992
+ return /* @__PURE__ */ jsxs23(NotificationActionsRoot, { sx, children: [
5993
+ hasUnread && onMarkAllRead && /* @__PURE__ */ jsx63(
5660
5994
  NotificationActionButton,
5661
5995
  {
5662
5996
  size: "small",
5663
- startIcon: /* @__PURE__ */ jsx62(CheckCheck, { size: 14 }),
5997
+ startIcon: /* @__PURE__ */ jsx63(CheckCheck, { size: 14 }),
5664
5998
  onClick: onMarkAllRead,
5665
5999
  children: "Mark all read"
5666
6000
  }
5667
6001
  ),
5668
- onClearAll && /* @__PURE__ */ jsx62(
6002
+ onClearAll && /* @__PURE__ */ jsx63(
5669
6003
  NotificationActionButton,
5670
6004
  {
5671
6005
  size: "small",
5672
- startIcon: /* @__PURE__ */ jsx62(Trash2, { size: 14 }),
6006
+ startIcon: /* @__PURE__ */ jsx63(Trash2, { size: 14 }),
5673
6007
  onClick: onClearAll,
5674
6008
  color: "error",
5675
6009
  children: "Clear all"
@@ -5679,13 +6013,13 @@ var NotificationActions = ({
5679
6013
  };
5680
6014
 
5681
6015
  // src/components/NotificationPanel/NotificationList.tsx
5682
- import * as React29 from "react";
5683
- import Box27 from "@mui/material/Box";
6016
+ import * as React30 from "react";
6017
+ import Box28 from "@mui/material/Box";
5684
6018
  import List3 from "@mui/material/List";
5685
6019
  import Divider6 from "@mui/material/Divider";
5686
6020
  import { styled as styled48 } from "@mui/material/styles";
5687
- import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
5688
- var NotificationListRoot = styled48(Box27, {
6021
+ import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
6022
+ var NotificationListRoot = styled48(Box28, {
5689
6023
  name: "MuiNotificationPanel",
5690
6024
  slot: "List"
5691
6025
  })({
@@ -5697,16 +6031,16 @@ var NotificationList = ({
5697
6031
  showDividers = true,
5698
6032
  sx
5699
6033
  }) => {
5700
- const childArray = React29.Children.toArray(children);
5701
- return /* @__PURE__ */ jsx63(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx63(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs23(React29.Fragment, { children: [
6034
+ const childArray = React30.Children.toArray(children);
6035
+ return /* @__PURE__ */ jsx64(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx64(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs24(React30.Fragment, { children: [
5702
6036
  child,
5703
- showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx63(Divider6, {})
6037
+ showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx64(Divider6, {})
5704
6038
  ] }, index)) }) });
5705
6039
  };
5706
6040
 
5707
6041
  // src/components/NotificationPanel/NotificationItem.tsx
5708
- import * as React31 from "react";
5709
- import Box28 from "@mui/material/Box";
6042
+ import * as React32 from "react";
6043
+ import Box29 from "@mui/material/Box";
5710
6044
  import ListItem2 from "@mui/material/ListItem";
5711
6045
  import ListItemButton3 from "@mui/material/ListItemButton";
5712
6046
  import ListItemText3 from "@mui/material/ListItemText";
@@ -5751,11 +6085,11 @@ var getNotificationTypeProps = (type) => {
5751
6085
  };
5752
6086
 
5753
6087
  // src/components/NotificationPanel/NotificationItemContext.tsx
5754
- import * as React30 from "react";
5755
- import { jsx as jsx64 } from "react/jsx-runtime";
5756
- var NotificationItemContext = React30.createContext(null);
6088
+ import * as React31 from "react";
6089
+ import { jsx as jsx65 } from "react/jsx-runtime";
6090
+ var NotificationItemContext = React31.createContext(null);
5757
6091
  var useNotificationItemContext = () => {
5758
- const context = React30.useContext(NotificationItemContext);
6092
+ const context = React31.useContext(NotificationItemContext);
5759
6093
  if (!context) {
5760
6094
  throw new Error(
5761
6095
  "useNotificationItemContext must be used within a NotificationItem component"
@@ -5764,11 +6098,11 @@ var useNotificationItemContext = () => {
5764
6098
  return context;
5765
6099
  };
5766
6100
  var NotificationItemProvider = ({ value, children }) => {
5767
- return /* @__PURE__ */ jsx64(NotificationItemContext.Provider, { value, children });
6101
+ return /* @__PURE__ */ jsx65(NotificationItemContext.Provider, { value, children });
5768
6102
  };
5769
6103
 
5770
6104
  // src/components/NotificationPanel/NotificationItem.tsx
5771
- import { jsx as jsx65, jsxs as jsxs24 } from "react/jsx-runtime";
6105
+ import { jsx as jsx66, jsxs as jsxs25 } from "react/jsx-runtime";
5772
6106
  var NotificationItemRoot = styled49(ListItem2, {
5773
6107
  name: "MuiNotificationPanel",
5774
6108
  slot: "Item",
@@ -5794,7 +6128,7 @@ var NotificationItemDismiss = styled49(IconButton6, {
5794
6128
  opacity: 1
5795
6129
  }
5796
6130
  });
5797
- var NotificationItemFooter = styled49(Box28, {
6131
+ var NotificationItemFooter = styled49(Box29, {
5798
6132
  name: "MuiNotificationPanel",
5799
6133
  slot: "ItemFooter"
5800
6134
  })(({ theme }) => ({
@@ -5809,9 +6143,9 @@ var separateChildren5 = (children) => {
5809
6143
  let messageChild = null;
5810
6144
  let timestampChild = null;
5811
6145
  let actionChild = null;
5812
- React31.Children.forEach(children, (child) => {
6146
+ React32.Children.forEach(children, (child) => {
5813
6147
  var _a;
5814
- if (React31.isValidElement(child)) {
6148
+ if (React32.isValidElement(child)) {
5815
6149
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
5816
6150
  switch (displayName) {
5817
6151
  case "NotificationItemAvatar":
@@ -5861,12 +6195,12 @@ var NotificationItem = ({
5861
6195
  onAction == null ? void 0 : onAction();
5862
6196
  };
5863
6197
  const ownerState = { read };
5864
- return /* @__PURE__ */ jsx65(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx65(
6198
+ return /* @__PURE__ */ jsx66(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx66(
5865
6199
  NotificationItemRoot,
5866
6200
  {
5867
6201
  disablePadding: true,
5868
6202
  ownerState,
5869
- secondaryAction: onDismiss && /* @__PURE__ */ jsx65(
6203
+ secondaryAction: onDismiss && /* @__PURE__ */ jsx66(
5870
6204
  NotificationItemDismiss,
5871
6205
  {
5872
6206
  size: "small",
@@ -5875,19 +6209,19 @@ var NotificationItem = ({
5875
6209
  e.stopPropagation();
5876
6210
  onDismiss(id);
5877
6211
  },
5878
- children: /* @__PURE__ */ jsx65(X3, { size: 16, "aria-hidden": "true" })
6212
+ children: /* @__PURE__ */ jsx66(X3, { size: 16, "aria-hidden": "true" })
5879
6213
  }
5880
6214
  ),
5881
6215
  sx,
5882
- children: /* @__PURE__ */ jsxs24(NotificationItemButton, { onClick: handleClick, children: [
6216
+ children: /* @__PURE__ */ jsxs25(NotificationItemButton, { onClick: handleClick, children: [
5883
6217
  avatarChild,
5884
- /* @__PURE__ */ jsx65(
6218
+ /* @__PURE__ */ jsx66(
5885
6219
  ListItemText3,
5886
6220
  {
5887
6221
  primary: titleChild,
5888
- secondary: /* @__PURE__ */ jsxs24(Box28, { component: "span", children: [
6222
+ secondary: /* @__PURE__ */ jsxs25(Box29, { component: "span", children: [
5889
6223
  messageChild,
5890
- /* @__PURE__ */ jsxs24(NotificationItemFooter, { children: [
6224
+ /* @__PURE__ */ jsxs25(NotificationItemFooter, { children: [
5891
6225
  timestampChild,
5892
6226
  actionChild
5893
6227
  ] })
@@ -5904,7 +6238,7 @@ NotificationItem.displayName = "NotificationItem";
5904
6238
  import ListItemAvatar from "@mui/material/ListItemAvatar";
5905
6239
  import Avatar3 from "@mui/material/Avatar";
5906
6240
  import { styled as styled50 } from "@mui/material/styles";
5907
- import { jsx as jsx66 } from "react/jsx-runtime";
6241
+ import { jsx as jsx67 } from "react/jsx-runtime";
5908
6242
  var NotificationItemAvatarStyled = styled50(Avatar3, {
5909
6243
  name: "MuiNotificationPanel",
5910
6244
  slot: "ItemAvatar",
@@ -5928,16 +6262,16 @@ var NotificationItemAvatar = ({
5928
6262
  color: typeProps.color,
5929
6263
  hasChildren: !!children
5930
6264
  };
5931
- return /* @__PURE__ */ jsx66(ListItemAvatar, { children: /* @__PURE__ */ jsx66(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx66(Icon, { size: 20 }) }) });
6265
+ return /* @__PURE__ */ jsx67(ListItemAvatar, { children: /* @__PURE__ */ jsx67(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx67(Icon, { size: 20 }) }) });
5932
6266
  };
5933
6267
  NotificationItemAvatar.displayName = "NotificationItemAvatar";
5934
6268
 
5935
6269
  // src/components/NotificationPanel/NotificationItemTitle.tsx
5936
- import Box29 from "@mui/material/Box";
5937
- import Typography15 from "@mui/material/Typography";
6270
+ import Box30 from "@mui/material/Box";
6271
+ import Typography16 from "@mui/material/Typography";
5938
6272
  import { styled as styled51 } from "@mui/material/styles";
5939
- import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
5940
- var NotificationItemTitleRoot = styled51(Box29, {
6273
+ import { jsx as jsx68, jsxs as jsxs26 } from "react/jsx-runtime";
6274
+ var NotificationItemTitleRoot = styled51(Box30, {
5941
6275
  name: "MuiNotificationPanel",
5942
6276
  slot: "ItemTitle"
5943
6277
  })(({ theme }) => ({
@@ -5945,7 +6279,7 @@ var NotificationItemTitleRoot = styled51(Box29, {
5945
6279
  alignItems: "center",
5946
6280
  gap: theme.spacing(1)
5947
6281
  }));
5948
- var NotificationItemTitleText = styled51(Typography15, {
6282
+ var NotificationItemTitleText = styled51(Typography16, {
5949
6283
  name: "MuiNotificationPanel",
5950
6284
  slot: "ItemTitleText",
5951
6285
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5953,7 +6287,7 @@ var NotificationItemTitleText = styled51(Typography15, {
5953
6287
  fontWeight: ownerState.read ? 400 : 600,
5954
6288
  flex: 1
5955
6289
  }));
5956
- var NotificationItemUnreadDot = styled51(Box29, {
6290
+ var NotificationItemUnreadDot = styled51(Box30, {
5957
6291
  name: "MuiNotificationPanel",
5958
6292
  slot: "ItemUnreadDot"
5959
6293
  })(({ theme }) => ({
@@ -5969,18 +6303,18 @@ var NotificationItemTitle = ({
5969
6303
  sx
5970
6304
  }) => {
5971
6305
  const { read } = useNotificationItemContext();
5972
- return /* @__PURE__ */ jsxs25(NotificationItemTitleRoot, { sx, children: [
5973
- /* @__PURE__ */ jsx67(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
5974
- showUnreadIndicator && !read && /* @__PURE__ */ jsx67(NotificationItemUnreadDot, {})
6306
+ return /* @__PURE__ */ jsxs26(NotificationItemTitleRoot, { sx, children: [
6307
+ /* @__PURE__ */ jsx68(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
6308
+ showUnreadIndicator && !read && /* @__PURE__ */ jsx68(NotificationItemUnreadDot, {})
5975
6309
  ] });
5976
6310
  };
5977
6311
  NotificationItemTitle.displayName = "NotificationItemTitle";
5978
6312
 
5979
6313
  // src/components/NotificationPanel/NotificationItemMessage.tsx
5980
- import Typography16 from "@mui/material/Typography";
6314
+ import Typography17 from "@mui/material/Typography";
5981
6315
  import { styled as styled52 } from "@mui/material/styles";
5982
- import { jsx as jsx68 } from "react/jsx-runtime";
5983
- var NotificationItemMessageRoot = styled52(Typography16, {
6316
+ import { jsx as jsx69 } from "react/jsx-runtime";
6317
+ var NotificationItemMessageRoot = styled52(Typography17, {
5984
6318
  name: "MuiNotificationPanel",
5985
6319
  slot: "ItemMessage"
5986
6320
  })(({ theme }) => ({
@@ -5992,15 +6326,15 @@ var NotificationItemMessage = ({
5992
6326
  children,
5993
6327
  sx
5994
6328
  }) => {
5995
- return /* @__PURE__ */ jsx68(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
6329
+ return /* @__PURE__ */ jsx69(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
5996
6330
  };
5997
6331
  NotificationItemMessage.displayName = "NotificationItemMessage";
5998
6332
 
5999
6333
  // src/components/NotificationPanel/NotificationItemTimestamp.tsx
6000
- import Typography17 from "@mui/material/Typography";
6334
+ import Typography18 from "@mui/material/Typography";
6001
6335
  import { styled as styled53 } from "@mui/material/styles";
6002
- import { jsx as jsx69 } from "react/jsx-runtime";
6003
- var NotificationItemTimestampRoot = styled53(Typography17, {
6336
+ import { jsx as jsx70 } from "react/jsx-runtime";
6337
+ var NotificationItemTimestampRoot = styled53(Typography18, {
6004
6338
  name: "MuiNotificationPanel",
6005
6339
  slot: "ItemTimestamp"
6006
6340
  })(({ theme }) => ({
@@ -6011,14 +6345,14 @@ var NotificationItemTimestamp = ({
6011
6345
  children,
6012
6346
  sx
6013
6347
  }) => {
6014
- return /* @__PURE__ */ jsx69(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
6348
+ return /* @__PURE__ */ jsx70(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
6015
6349
  };
6016
6350
  NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
6017
6351
 
6018
6352
  // src/components/NotificationPanel/NotificationItemAction.tsx
6019
6353
  import Chip4 from "@mui/material/Chip";
6020
6354
  import { styled as styled54 } from "@mui/material/styles";
6021
- import { jsx as jsx70 } from "react/jsx-runtime";
6355
+ import { jsx as jsx71 } from "react/jsx-runtime";
6022
6356
  var NotificationItemActionRoot = styled54(Chip4, {
6023
6357
  name: "MuiNotificationPanel",
6024
6358
  slot: "ItemAction"
@@ -6041,7 +6375,7 @@ var NotificationItemAction = ({
6041
6375
  onAction == null ? void 0 : onAction();
6042
6376
  }
6043
6377
  };
6044
- return /* @__PURE__ */ jsx70(
6378
+ return /* @__PURE__ */ jsx71(
6045
6379
  NotificationItemActionRoot,
6046
6380
  {
6047
6381
  label: children,
@@ -6055,12 +6389,12 @@ var NotificationItemAction = ({
6055
6389
  NotificationItemAction.displayName = "NotificationItemAction";
6056
6390
 
6057
6391
  // src/components/NotificationPanel/NotificationEmptyState.tsx
6058
- import Box30 from "@mui/material/Box";
6059
- import Typography18 from "@mui/material/Typography";
6392
+ import Box31 from "@mui/material/Box";
6393
+ import Typography19 from "@mui/material/Typography";
6060
6394
  import { styled as styled55 } from "@mui/material/styles";
6061
6395
  import { BellOff } from "@wso2/oxygen-ui-icons-react";
6062
- import { jsx as jsx71, jsxs as jsxs26 } from "react/jsx-runtime";
6063
- var NotificationEmptyStateRoot = styled55(Box30, {
6396
+ import { jsx as jsx72, jsxs as jsxs27 } from "react/jsx-runtime";
6397
+ var NotificationEmptyStateRoot = styled55(Box31, {
6064
6398
  name: "MuiNotificationPanel",
6065
6399
  slot: "EmptyState"
6066
6400
  })(({ theme }) => ({
@@ -6074,7 +6408,7 @@ var NotificationEmptyStateRoot = styled55(Box30, {
6074
6408
  paddingRight: theme.spacing(3),
6075
6409
  textAlign: "center"
6076
6410
  }));
6077
- var NotificationEmptyStateMessage = styled55(Typography18, {
6411
+ var NotificationEmptyStateMessage = styled55(Typography19, {
6078
6412
  name: "MuiNotificationPanel",
6079
6413
  slot: "EmptyStateMessage"
6080
6414
  })(({ theme }) => ({
@@ -6085,14 +6419,14 @@ var NotificationEmptyState = ({
6085
6419
  icon,
6086
6420
  sx
6087
6421
  }) => {
6088
- return /* @__PURE__ */ jsxs26(NotificationEmptyStateRoot, { sx, children: [
6089
- icon || /* @__PURE__ */ jsx71(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
6090
- /* @__PURE__ */ jsx71(NotificationEmptyStateMessage, { variant: "body2", children: message })
6422
+ return /* @__PURE__ */ jsxs27(NotificationEmptyStateRoot, { sx, children: [
6423
+ icon || /* @__PURE__ */ jsx72(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
6424
+ /* @__PURE__ */ jsx72(NotificationEmptyStateMessage, { variant: "body2", children: message })
6091
6425
  ] });
6092
6426
  };
6093
6427
 
6094
6428
  // src/components/NotificationPanel/NotificationPanel.tsx
6095
- import { jsx as jsx72, jsxs as jsxs27 } from "react/jsx-runtime";
6429
+ import { jsx as jsx73, jsxs as jsxs28 } from "react/jsx-runtime";
6096
6430
  var NotificationPanelRoot = styled56(Drawer, {
6097
6431
  name: "MuiNotificationPanel",
6098
6432
  slot: "Root",
@@ -6120,9 +6454,9 @@ var NotificationPanel = ({
6120
6454
  sx
6121
6455
  }) => {
6122
6456
  var _a;
6123
- const appShellContext = React32.useContext(AppShellContext);
6457
+ const appShellContext = React33.useContext(AppShellContext);
6124
6458
  const open = (_a = openProp != null ? openProp : appShellContext == null ? void 0 : appShellContext.state.notificationPanelOpen) != null ? _a : false;
6125
- const onClose = React32.useMemo(
6459
+ const onClose = React33.useMemo(
6126
6460
  () => {
6127
6461
  var _a2;
6128
6462
  return (_a2 = onCloseProp != null ? onCloseProp : appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel) != null ? _a2 : (() => {
@@ -6131,10 +6465,10 @@ var NotificationPanel = ({
6131
6465
  [onCloseProp, appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel]
6132
6466
  );
6133
6467
  const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp.trim() : "Notifications";
6134
- const [liveAnnouncement, setLiveAnnouncementState] = React32.useState("");
6135
- const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React32.useState(0);
6136
- const prevLiveAnnouncementPropRef = React32.useRef(void 0);
6137
- const publishLiveAnnouncement = React32.useCallback(
6468
+ const [liveAnnouncement, setLiveAnnouncementState] = React33.useState("");
6469
+ const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React33.useState(0);
6470
+ const prevLiveAnnouncementPropRef = React33.useRef(void 0);
6471
+ const publishLiveAnnouncement = React33.useCallback(
6138
6472
  (message) => {
6139
6473
  if (!open) return;
6140
6474
  setLiveAnnouncementState(message);
@@ -6142,7 +6476,7 @@ var NotificationPanel = ({
6142
6476
  },
6143
6477
  [open]
6144
6478
  );
6145
- React32.useEffect(() => {
6479
+ React33.useEffect(() => {
6146
6480
  if (!open) {
6147
6481
  setLiveAnnouncementState("");
6148
6482
  prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
@@ -6160,12 +6494,12 @@ var NotificationPanel = ({
6160
6494
  publishLiveAnnouncement(liveAnnouncementProp);
6161
6495
  }
6162
6496
  }, [open, liveAnnouncementProp, publishLiveAnnouncement]);
6163
- const contextValue = React32.useMemo(
6497
+ const contextValue = React33.useMemo(
6164
6498
  () => ({ onClose, open, setLiveAnnouncement: publishLiveAnnouncement }),
6165
6499
  [onClose, open, publishLiveAnnouncement]
6166
6500
  );
6167
6501
  const ownerState = { width };
6168
- return /* @__PURE__ */ jsx72(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs27(
6502
+ return /* @__PURE__ */ jsx73(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs28(
6169
6503
  NotificationPanelRoot,
6170
6504
  {
6171
6505
  anchor,
@@ -6180,8 +6514,8 @@ var NotificationPanel = ({
6180
6514
  }
6181
6515
  },
6182
6516
  children: [
6183
- /* @__PURE__ */ jsx72(
6184
- Box31,
6517
+ /* @__PURE__ */ jsx73(
6518
+ Box32,
6185
6519
  {
6186
6520
  component: "div",
6187
6521
  role: "status",
@@ -6216,30 +6550,30 @@ NotificationPanel.EmptyState = NotificationEmptyState;
6216
6550
  NotificationPanel.displayName = "NotificationPanel";
6217
6551
 
6218
6552
  // src/components/Footer/Footer.tsx
6219
- import * as React33 from "react";
6220
- import Box32 from "@mui/material/Box";
6553
+ import * as React34 from "react";
6554
+ import Box33 from "@mui/material/Box";
6221
6555
  import { styled as styled60 } from "@mui/material/styles";
6222
6556
 
6223
6557
  // src/components/Footer/FooterCopyright.tsx
6224
- import Typography19 from "@mui/material/Typography";
6558
+ import Typography20 from "@mui/material/Typography";
6225
6559
  import { styled as styled57 } from "@mui/material/styles";
6226
- import { jsx as jsx73 } from "react/jsx-runtime";
6227
- var StyledCopyrightText = styled57(Typography19, {
6560
+ import { jsx as jsx74 } from "react/jsx-runtime";
6561
+ var StyledCopyrightText = styled57(Typography20, {
6228
6562
  name: "MuiFooter",
6229
6563
  slot: "CopyrightText"
6230
6564
  })(({ theme }) => ({
6231
6565
  color: (theme.vars || theme).palette.text.secondary
6232
6566
  }));
6233
6567
  var FooterCopyright = ({ children }) => {
6234
- return /* @__PURE__ */ jsx73(StyledCopyrightText, { variant: "caption", children });
6568
+ return /* @__PURE__ */ jsx74(StyledCopyrightText, { variant: "caption", children });
6235
6569
  };
6236
6570
  FooterCopyright.displayName = "Footer.Copyright";
6237
6571
 
6238
6572
  // src/components/Footer/FooterVersion.tsx
6239
- import Typography20 from "@mui/material/Typography";
6573
+ import Typography21 from "@mui/material/Typography";
6240
6574
  import { styled as styled58 } from "@mui/material/styles";
6241
- import { jsx as jsx74 } from "react/jsx-runtime";
6242
- var StyledVersion = styled58(Typography20, {
6575
+ import { jsx as jsx75 } from "react/jsx-runtime";
6576
+ var StyledVersion = styled58(Typography21, {
6243
6577
  name: "MuiFooter",
6244
6578
  slot: "Version"
6245
6579
  })(({ theme }) => ({
@@ -6250,14 +6584,14 @@ var StyledVersion = styled58(Typography20, {
6250
6584
  fontSize: 11
6251
6585
  }));
6252
6586
  var FooterVersion = ({ children }) => {
6253
- return /* @__PURE__ */ jsx74(StyledVersion, { variant: "caption", children });
6587
+ return /* @__PURE__ */ jsx75(StyledVersion, { variant: "caption", children });
6254
6588
  };
6255
6589
  FooterVersion.displayName = "Footer.Version";
6256
6590
 
6257
6591
  // src/components/Footer/FooterLink.tsx
6258
6592
  import Link2 from "@mui/material/Link";
6259
6593
  import { styled as styled59 } from "@mui/material/styles";
6260
- import { jsx as jsx75 } from "react/jsx-runtime";
6594
+ import { jsx as jsx76 } from "react/jsx-runtime";
6261
6595
  var StyledLink = styled59(Link2, {
6262
6596
  name: "MuiFooter",
6263
6597
  slot: "Link"
@@ -6270,15 +6604,15 @@ var StyledLink = styled59(Link2, {
6270
6604
  }));
6271
6605
  var FooterLink = (_a) => {
6272
6606
  var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
6273
- return /* @__PURE__ */ jsx75(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
6607
+ return /* @__PURE__ */ jsx76(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
6274
6608
  };
6275
6609
  FooterLink.displayName = "Footer.Link";
6276
6610
 
6277
6611
  // src/components/Footer/FooterDivider.tsx
6278
6612
  import Divider7 from "@mui/material/Divider";
6279
- import { jsx as jsx76 } from "react/jsx-runtime";
6613
+ import { jsx as jsx77 } from "react/jsx-runtime";
6280
6614
  var FooterDivider = () => {
6281
- return /* @__PURE__ */ jsx76(
6615
+ return /* @__PURE__ */ jsx77(
6282
6616
  Divider7,
6283
6617
  {
6284
6618
  orientation: "vertical",
@@ -6290,8 +6624,8 @@ var FooterDivider = () => {
6290
6624
  FooterDivider.displayName = "Footer.Divider";
6291
6625
 
6292
6626
  // src/components/Footer/Footer.tsx
6293
- import { jsx as jsx77, jsxs as jsxs28 } from "react/jsx-runtime";
6294
- var FooterRoot = styled60(Box32, {
6627
+ import { jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
6628
+ var FooterRoot = styled60(Box33, {
6295
6629
  name: "MuiFooter",
6296
6630
  slot: "Root"
6297
6631
  })(({ theme }) => ({
@@ -6304,7 +6638,7 @@ var FooterRoot = styled60(Box32, {
6304
6638
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
6305
6639
  backgroundColor: (theme.vars || theme).palette.background.paper
6306
6640
  }));
6307
- var FooterContent = styled60(Box32, {
6641
+ var FooterContent = styled60(Box33, {
6308
6642
  name: "MuiFooter",
6309
6643
  slot: "Content"
6310
6644
  })(({ theme }) => ({
@@ -6318,7 +6652,7 @@ var FooterContent = styled60(Box32, {
6318
6652
  alignItems: "center"
6319
6653
  }
6320
6654
  }));
6321
- var FooterLeft = styled60(Box32, {
6655
+ var FooterLeft = styled60(Box33, {
6322
6656
  name: "MuiFooter",
6323
6657
  slot: "Left"
6324
6658
  })(({ theme }) => ({
@@ -6327,7 +6661,7 @@ var FooterLeft = styled60(Box32, {
6327
6661
  gap: theme.spacing(2),
6328
6662
  flexWrap: "wrap"
6329
6663
  }));
6330
- var FooterRight = styled60(Box32, {
6664
+ var FooterRight = styled60(Box33, {
6331
6665
  name: "MuiFooter",
6332
6666
  slot: "Right"
6333
6667
  })(({ theme }) => ({
@@ -6337,11 +6671,11 @@ var FooterRight = styled60(Box32, {
6337
6671
  flexWrap: "wrap"
6338
6672
  }));
6339
6673
  var Footer = ({ children, sx }) => {
6340
- const childrenArray = React33.Children.toArray(children);
6674
+ const childrenArray = React34.Children.toArray(children);
6341
6675
  const leftChildren = [];
6342
6676
  const rightChildren = [];
6343
6677
  childrenArray.forEach((child) => {
6344
- if (React33.isValidElement(child)) {
6678
+ if (React34.isValidElement(child)) {
6345
6679
  if (child.type === FooterCopyright || child.type === FooterVersion || child.type === FooterDivider) {
6346
6680
  leftChildren.push(child);
6347
6681
  } else if (child.type === FooterLink) {
@@ -6349,9 +6683,9 @@ var Footer = ({ children, sx }) => {
6349
6683
  }
6350
6684
  }
6351
6685
  });
6352
- return /* @__PURE__ */ jsx77(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs28(FooterContent, { children: [
6353
- leftChildren.length > 0 && /* @__PURE__ */ jsx77(FooterLeft, { children: leftChildren }),
6354
- rightChildren.length > 0 && /* @__PURE__ */ jsx77(FooterRight, { children: rightChildren })
6686
+ return /* @__PURE__ */ jsx78(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs29(FooterContent, { children: [
6687
+ leftChildren.length > 0 && /* @__PURE__ */ jsx78(FooterLeft, { children: leftChildren }),
6688
+ rightChildren.length > 0 && /* @__PURE__ */ jsx78(FooterRight, { children: rightChildren })
6355
6689
  ] }) });
6356
6690
  };
6357
6691
  Footer.Copyright = FooterCopyright;
@@ -6361,14 +6695,14 @@ Footer.Divider = FooterDivider;
6361
6695
  Footer.displayName = "Footer";
6362
6696
 
6363
6697
  // src/components/UserMenu/UserMenu.tsx
6364
- import * as React38 from "react";
6698
+ import * as React39 from "react";
6365
6699
  import Menu3 from "@mui/material/Menu";
6366
6700
 
6367
6701
  // src/components/UserMenu/UserMenuContext.tsx
6368
- import * as React34 from "react";
6369
- var UserMenuContext = React34.createContext(void 0);
6702
+ import * as React35 from "react";
6703
+ var UserMenuContext = React35.createContext(void 0);
6370
6704
  var useUserMenu = () => {
6371
- const context = React34.useContext(UserMenuContext);
6705
+ const context = React35.useContext(UserMenuContext);
6372
6706
  if (!context) {
6373
6707
  throw new Error("UserMenu sub-components must be used within a UserMenu component");
6374
6708
  }
@@ -6377,7 +6711,7 @@ var useUserMenu = () => {
6377
6711
  UserMenuContext.displayName = "UserMenu.Context";
6378
6712
 
6379
6713
  // src/components/UserMenu/UserMenuTrigger.tsx
6380
- import * as React35 from "react";
6714
+ import * as React36 from "react";
6381
6715
  import Tooltip8 from "@mui/material/Tooltip";
6382
6716
  import IconButton7 from "@mui/material/IconButton";
6383
6717
  import Avatar4 from "@mui/material/Avatar";
@@ -6403,7 +6737,7 @@ function getUserMenuAvatarProps(name, avatar) {
6403
6737
  }
6404
6738
 
6405
6739
  // src/components/UserMenu/UserMenuTrigger.tsx
6406
- import { jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
6740
+ import { jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
6407
6741
  var StyledTrigger = styled61(IconButton7, {
6408
6742
  name: "MuiUserMenu",
6409
6743
  slot: "Trigger",
@@ -6438,14 +6772,14 @@ var StyledNameText = styled61("span", {
6438
6772
  display: "block"
6439
6773
  }
6440
6774
  }));
6441
- var UserMenuTrigger = React35.forwardRef(
6775
+ var UserMenuTrigger = React36.forwardRef(
6442
6776
  function UserMenuTrigger2(_a, ref) {
6443
6777
  var _b = _a, { name, avatar, showName = false, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "avatar", "showName", "onClick", "aria-label"]);
6444
6778
  const { open, handleOpen } = useUserMenu();
6445
6779
  const avatarProps = getUserMenuAvatarProps(name, avatar);
6446
6780
  const defaultAriaLabel = showName ? name : "Account";
6447
6781
  const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
6448
- return /* @__PURE__ */ jsx78(Tooltip8, { title: "Account", children: /* @__PURE__ */ jsxs29(
6782
+ return /* @__PURE__ */ jsx79(Tooltip8, { title: "Account", children: /* @__PURE__ */ jsxs30(
6449
6783
  StyledTrigger,
6450
6784
  __spreadProps(__spreadValues({}, props), {
6451
6785
  ref,
@@ -6460,8 +6794,8 @@ var UserMenuTrigger = React35.forwardRef(
6460
6794
  "aria-haspopup": "true",
6461
6795
  "aria-expanded": open ? "true" : void 0,
6462
6796
  children: [
6463
- /* @__PURE__ */ jsx78(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6464
- showName && /* @__PURE__ */ jsx78(StyledNameText, { children: name })
6797
+ /* @__PURE__ */ jsx79(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6798
+ showName && /* @__PURE__ */ jsx79(StyledNameText, { children: name })
6465
6799
  ]
6466
6800
  })
6467
6801
  ) });
@@ -6471,20 +6805,20 @@ UserMenuTrigger.displayName = "UserMenu.Trigger";
6471
6805
 
6472
6806
  // src/components/UserMenu/UserMenuHeader.tsx
6473
6807
  import Divider8 from "@mui/material/Divider";
6474
- import Box33 from "@mui/material/Box";
6808
+ import Box34 from "@mui/material/Box";
6475
6809
  import Avatar5 from "@mui/material/Avatar";
6476
- import Typography21 from "@mui/material/Typography";
6810
+ import Typography22 from "@mui/material/Typography";
6477
6811
  import Chip5 from "@mui/material/Chip";
6478
6812
  import { styled as styled62 } from "@mui/material/styles";
6479
- import { Fragment as Fragment10, jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
6480
- var StyledHeaderBox = styled62(Box33, {
6813
+ import { Fragment as Fragment11, jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
6814
+ var StyledHeaderBox = styled62(Box34, {
6481
6815
  name: "MuiUserMenu",
6482
6816
  slot: "HeaderBox"
6483
6817
  })(({ theme }) => ({
6484
6818
  padding: theme.spacing(2),
6485
6819
  paddingBottom: theme.spacing(1.5)
6486
6820
  }));
6487
- var StyledHeaderContent = styled62(Box33, {
6821
+ var StyledHeaderContent = styled62(Box34, {
6488
6822
  name: "MuiUserMenu",
6489
6823
  slot: "HeaderContent"
6490
6824
  })(({ theme }) => ({
@@ -6503,7 +6837,7 @@ var StyledHeaderAvatar = styled62(Avatar5, {
6503
6837
  fontSize: 16,
6504
6838
  fontWeight: 600
6505
6839
  }));
6506
- var StyledUserInfo = styled62(Box33, {
6840
+ var StyledUserInfo = styled62(Box34, {
6507
6841
  name: "MuiUserMenu",
6508
6842
  slot: "UserInfo"
6509
6843
  })(({ theme }) => ({
@@ -6513,7 +6847,7 @@ var StyledUserInfo = styled62(Box33, {
6513
6847
  flex: 1,
6514
6848
  minWidth: 0
6515
6849
  }));
6516
- var StyledNameRow = styled62(Box33, {
6850
+ var StyledNameRow = styled62(Box34, {
6517
6851
  name: "MuiUserMenu",
6518
6852
  slot: "NameRow"
6519
6853
  })(({ theme }) => ({
@@ -6521,7 +6855,7 @@ var StyledNameRow = styled62(Box33, {
6521
6855
  alignItems: "center",
6522
6856
  gap: theme.spacing(1)
6523
6857
  }));
6524
- var StyledName = styled62(Typography21, {
6858
+ var StyledName = styled62(Typography22, {
6525
6859
  name: "MuiUserMenu",
6526
6860
  slot: "Name"
6527
6861
  })({
@@ -6538,7 +6872,7 @@ var StyledRoleChip = styled62(Chip5, {
6538
6872
  fontSize: 11,
6539
6873
  fontWeight: 600
6540
6874
  });
6541
- var StyledEmail = styled62(Typography21, {
6875
+ var StyledEmail = styled62(Typography22, {
6542
6876
  name: "MuiUserMenu",
6543
6877
  slot: "Email"
6544
6878
  })(({ theme }) => ({
@@ -6550,13 +6884,13 @@ var StyledEmail = styled62(Typography21, {
6550
6884
  }));
6551
6885
  var UserMenuHeader = ({ name, email, avatar, role }) => {
6552
6886
  const avatarProps = getUserMenuAvatarProps(name, avatar);
6553
- return /* @__PURE__ */ jsxs30(Fragment10, { children: [
6554
- /* @__PURE__ */ jsx79(StyledHeaderBox, { children: /* @__PURE__ */ jsxs30(StyledHeaderContent, { children: [
6555
- /* @__PURE__ */ jsx79(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6556
- /* @__PURE__ */ jsxs30(StyledUserInfo, { children: [
6557
- /* @__PURE__ */ jsxs30(StyledNameRow, { children: [
6558
- /* @__PURE__ */ jsx79(StyledName, { variant: "subtitle2", children: name }),
6559
- role && /* @__PURE__ */ jsx79(
6887
+ return /* @__PURE__ */ jsxs31(Fragment11, { children: [
6888
+ /* @__PURE__ */ jsx80(StyledHeaderBox, { children: /* @__PURE__ */ jsxs31(StyledHeaderContent, { children: [
6889
+ /* @__PURE__ */ jsx80(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6890
+ /* @__PURE__ */ jsxs31(StyledUserInfo, { children: [
6891
+ /* @__PURE__ */ jsxs31(StyledNameRow, { children: [
6892
+ /* @__PURE__ */ jsx80(StyledName, { variant: "subtitle2", children: name }),
6893
+ role && /* @__PURE__ */ jsx80(
6560
6894
  StyledRoleChip,
6561
6895
  {
6562
6896
  label: role,
@@ -6565,25 +6899,25 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
6565
6899
  }
6566
6900
  )
6567
6901
  ] }),
6568
- /* @__PURE__ */ jsx79(StyledEmail, { variant: "caption", children: email })
6902
+ /* @__PURE__ */ jsx80(StyledEmail, { variant: "caption", children: email })
6569
6903
  ] })
6570
6904
  ] }) }),
6571
- /* @__PURE__ */ jsx79(Divider8, {})
6905
+ /* @__PURE__ */ jsx80(Divider8, {})
6572
6906
  ] });
6573
6907
  };
6574
6908
  UserMenuHeader.displayName = "UserMenu.Header";
6575
6909
 
6576
6910
  // src/components/UserMenu/UserMenuItem.tsx
6577
- import * as React36 from "react";
6578
- import MenuItem5 from "@mui/material/MenuItem";
6911
+ import * as React37 from "react";
6912
+ import MenuItem6 from "@mui/material/MenuItem";
6579
6913
  import ListItemIcon3 from "@mui/material/ListItemIcon";
6580
6914
  import ListItemText4 from "@mui/material/ListItemText";
6581
- import Box34 from "@mui/material/Box";
6915
+ import Box35 from "@mui/material/Box";
6582
6916
  import Chip6 from "@mui/material/Chip";
6583
6917
  import { styled as styled63 } from "@mui/material/styles";
6584
6918
  import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
6585
- import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
6586
- var StyledMenuItem2 = styled63(MenuItem5, {
6919
+ import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
6920
+ var StyledMenuItem2 = styled63(MenuItem6, {
6587
6921
  name: "MuiUserMenu",
6588
6922
  slot: "MenuItem"
6589
6923
  })(({ theme }) => ({
@@ -6610,13 +6944,13 @@ var UserMenuItem = ({
6610
6944
  handleClose();
6611
6945
  onClick == null ? void 0 : onClick();
6612
6946
  };
6613
- return /* @__PURE__ */ jsxs31(StyledMenuItem2, { onClick: handleClick, children: [
6614
- icon && /* @__PURE__ */ jsx80(ListItemIcon3, { children: React36.isValidElement(icon) ? React36.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6947
+ return /* @__PURE__ */ jsxs32(StyledMenuItem2, { onClick: handleClick, children: [
6948
+ icon && /* @__PURE__ */ jsx81(ListItemIcon3, { children: React37.isValidElement(icon) ? React37.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6615
6949
  size: (_a = icon.props.size) != null ? _a : 18
6616
6950
  })) : icon }),
6617
- /* @__PURE__ */ jsx80(ListItemText4, { primary: label }),
6618
- /* @__PURE__ */ jsxs31(Box34, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
6619
- badge && /* @__PURE__ */ jsx80(
6951
+ /* @__PURE__ */ jsx81(ListItemText4, { primary: label }),
6952
+ /* @__PURE__ */ jsxs32(Box35, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
6953
+ badge && /* @__PURE__ */ jsx81(
6620
6954
  StyledBillingChip,
6621
6955
  {
6622
6956
  label: badge,
@@ -6624,20 +6958,20 @@ var UserMenuItem = ({
6624
6958
  variant: "outlined"
6625
6959
  }
6626
6960
  ),
6627
- /* @__PURE__ */ jsx80(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
6961
+ /* @__PURE__ */ jsx81(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
6628
6962
  ] })
6629
6963
  ] });
6630
6964
  };
6631
6965
  UserMenuItem.displayName = "UserMenu.Item";
6632
6966
 
6633
6967
  // src/components/UserMenu/UserMenuLogout.tsx
6634
- import * as React37 from "react";
6635
- import MenuItem6 from "@mui/material/MenuItem";
6968
+ import * as React38 from "react";
6969
+ import MenuItem7 from "@mui/material/MenuItem";
6636
6970
  import ListItemIcon4 from "@mui/material/ListItemIcon";
6637
6971
  import ListItemText5 from "@mui/material/ListItemText";
6638
6972
  import { styled as styled64 } from "@mui/material/styles";
6639
- import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
6640
- var StyledLogoutItem = styled64(MenuItem6, {
6973
+ import { jsx as jsx82, jsxs as jsxs33 } from "react/jsx-runtime";
6974
+ var StyledLogoutItem = styled64(MenuItem7, {
6641
6975
  name: "MuiUserMenu",
6642
6976
  slot: "LogoutItem"
6643
6977
  })(({ theme }) => ({
@@ -6655,25 +6989,25 @@ var UserMenuLogout = ({
6655
6989
  handleClose();
6656
6990
  onClick == null ? void 0 : onClick();
6657
6991
  };
6658
- return /* @__PURE__ */ jsxs32(StyledLogoutItem, { onClick: handleClick, children: [
6659
- icon && /* @__PURE__ */ jsx81(ListItemIcon4, { children: React37.isValidElement(icon) ? React37.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6992
+ return /* @__PURE__ */ jsxs33(StyledLogoutItem, { onClick: handleClick, children: [
6993
+ icon && /* @__PURE__ */ jsx82(ListItemIcon4, { children: React38.isValidElement(icon) ? React38.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6660
6994
  size: (_a = icon.props.size) != null ? _a : 18
6661
6995
  })) : icon }),
6662
- /* @__PURE__ */ jsx81(ListItemText5, { primary: label })
6996
+ /* @__PURE__ */ jsx82(ListItemText5, { primary: label })
6663
6997
  ] });
6664
6998
  };
6665
6999
  UserMenuLogout.displayName = "UserMenu.Logout";
6666
7000
 
6667
7001
  // src/components/UserMenu/UserMenuDivider.tsx
6668
7002
  import Divider9 from "@mui/material/Divider";
6669
- import { jsx as jsx82 } from "react/jsx-runtime";
6670
- var UserMenuDivider = () => /* @__PURE__ */ jsx82(Divider9, {});
7003
+ import { jsx as jsx83 } from "react/jsx-runtime";
7004
+ var UserMenuDivider = () => /* @__PURE__ */ jsx83(Divider9, {});
6671
7005
  UserMenuDivider.displayName = "UserMenu.Divider";
6672
7006
 
6673
7007
  // src/components/UserMenu/UserMenu.tsx
6674
- import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
7008
+ import { jsx as jsx84, jsxs as jsxs34 } from "react/jsx-runtime";
6675
7009
  var UserMenu = ({ children }) => {
6676
- const [anchorEl, setAnchorEl] = React38.useState(null);
7010
+ const [anchorEl, setAnchorEl] = React39.useState(null);
6677
7011
  const open = Boolean(anchorEl);
6678
7012
  const handleOpen = (event) => {
6679
7013
  setAnchorEl(event.currentTarget);
@@ -6681,16 +7015,16 @@ var UserMenu = ({ children }) => {
6681
7015
  const handleClose = () => {
6682
7016
  setAnchorEl(null);
6683
7017
  };
6684
- const childrenArray = React38.Children.toArray(children);
7018
+ const childrenArray = React39.Children.toArray(children);
6685
7019
  const triggerChild = childrenArray.find(
6686
- (child) => React38.isValidElement(child) && child.type === UserMenuTrigger
7020
+ (child) => React39.isValidElement(child) && child.type === UserMenuTrigger
6687
7021
  );
6688
7022
  const menuChildren = childrenArray.filter(
6689
- (child) => React38.isValidElement(child) && child.type !== UserMenuTrigger
7023
+ (child) => React39.isValidElement(child) && child.type !== UserMenuTrigger
6690
7024
  );
6691
- return /* @__PURE__ */ jsxs33(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
7025
+ return /* @__PURE__ */ jsxs34(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
6692
7026
  triggerChild,
6693
- /* @__PURE__ */ jsx83(
7027
+ /* @__PURE__ */ jsx84(
6694
7028
  Menu3,
6695
7029
  {
6696
7030
  id: "user-menu",
@@ -6720,15 +7054,15 @@ UserMenu.Divider = UserMenuDivider;
6720
7054
  UserMenu.displayName = "UserMenu";
6721
7055
 
6722
7056
  // src/components/NotificationBanner/NotificationBanner.tsx
6723
- import * as React39 from "react";
6724
- import Alert from "@mui/material/Alert";
7057
+ import * as React40 from "react";
7058
+ import Alert2 from "@mui/material/Alert";
6725
7059
  import AlertTitle from "@mui/material/AlertTitle";
6726
7060
  import Collapse2 from "@mui/material/Collapse";
6727
- import Button4 from "@mui/material/Button";
6728
- import Box35 from "@mui/material/Box";
7061
+ import Button5 from "@mui/material/Button";
7062
+ import Box36 from "@mui/material/Box";
6729
7063
  import { styled as styled65 } from "@mui/material/styles";
6730
- import { jsx as jsx84, jsxs as jsxs34 } from "react/jsx-runtime";
6731
- var NotificationBannerAlert = styled65(Alert, {
7064
+ import { jsx as jsx85, jsxs as jsxs35 } from "react/jsx-runtime";
7065
+ var NotificationBannerAlert = styled65(Alert2, {
6732
7066
  name: "MuiNotificationBanner",
6733
7067
  slot: "Root"
6734
7068
  })(({ theme }) => __spreadValues({
@@ -6756,7 +7090,7 @@ var NotificationBannerAlert = styled65(Alert, {
6756
7090
  }
6757
7091
  }
6758
7092
  })));
6759
- var NotificationBannerContent = styled65(Box35, {
7093
+ var NotificationBannerContent = styled65(Box36, {
6760
7094
  name: "MuiNotificationBanner",
6761
7095
  slot: "Content"
6762
7096
  })({
@@ -6765,7 +7099,7 @@ var NotificationBannerContent = styled65(Box35, {
6765
7099
  gap: 2,
6766
7100
  flex: 1
6767
7101
  });
6768
- var NotificationBannerAction = styled65(Button4, {
7102
+ var NotificationBannerAction = styled65(Button5, {
6769
7103
  name: "MuiNotificationBanner",
6770
7104
  slot: "Action"
6771
7105
  })({
@@ -6786,22 +7120,22 @@ var NotificationBanner = ({
6786
7120
  onDismiss,
6787
7121
  sx
6788
7122
  }) => {
6789
- const [isVisible, setIsVisible] = React39.useState(visible);
6790
- React39.useEffect(() => {
7123
+ const [isVisible, setIsVisible] = React40.useState(visible);
7124
+ React40.useEffect(() => {
6791
7125
  setIsVisible(visible);
6792
7126
  }, [visible]);
6793
7127
  const handleDismiss = () => {
6794
7128
  setIsVisible(false);
6795
7129
  onDismiss == null ? void 0 : onDismiss();
6796
7130
  };
6797
- return /* @__PURE__ */ jsx84(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx84(
7131
+ return /* @__PURE__ */ jsx85(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx85(
6798
7132
  NotificationBannerAlert,
6799
7133
  {
6800
7134
  severity,
6801
7135
  variant: "filled",
6802
7136
  onClose: handleDismiss,
6803
7137
  sx,
6804
- action: actionLabel && onAction ? /* @__PURE__ */ jsx84(
7138
+ action: actionLabel && onAction ? /* @__PURE__ */ jsx85(
6805
7139
  NotificationBannerAction,
6806
7140
  {
6807
7141
  color: "inherit",
@@ -6810,18 +7144,18 @@ var NotificationBanner = ({
6810
7144
  children: actionLabel
6811
7145
  }
6812
7146
  ) : void 0,
6813
- children: /* @__PURE__ */ jsxs34(NotificationBannerContent, { children: [
6814
- title && /* @__PURE__ */ jsx84(AlertTitle, { sx: { mb: 0 }, children: title }),
6815
- /* @__PURE__ */ jsx84(Box35, { component: "span", children: message })
7147
+ children: /* @__PURE__ */ jsxs35(NotificationBannerContent, { children: [
7148
+ title && /* @__PURE__ */ jsx85(AlertTitle, { sx: { mb: 0 }, children: title }),
7149
+ /* @__PURE__ */ jsx85(Box36, { component: "span", children: message })
6816
7150
  ] })
6817
7151
  }
6818
7152
  ) });
6819
7153
  };
6820
7154
 
6821
7155
  // src/components/Form/CardButton.tsx
6822
- import { Card as Card3, ButtonBase as ButtonBase3, Box as Box36, styled as styled66 } from "@mui/material";
7156
+ import { Card as Card3, ButtonBase as ButtonBase3, Box as Box37, styled as styled66 } from "@mui/material";
6823
7157
  import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
6824
- import { jsx as jsx85 } from "react/jsx-runtime";
7158
+ import { jsx as jsx86 } from "react/jsx-runtime";
6825
7159
  var StyledCardButton = styled66(Card3, {
6826
7160
  shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
6827
7161
  })(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
@@ -6850,7 +7184,7 @@ var StyledCardButton = styled66(Card3, {
6850
7184
  }));
6851
7185
  var CardButton = (props) => {
6852
7186
  const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
6853
- return /* @__PURE__ */ jsx85(
7187
+ return /* @__PURE__ */ jsx86(
6854
7188
  StyledCardButton,
6855
7189
  __spreadValues({
6856
7190
  alignItems,
@@ -6860,36 +7194,36 @@ var CardButton = (props) => {
6860
7194
  }, rest)
6861
7195
  );
6862
7196
  };
6863
- var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx85(Box36, __spreadValues({ className: "creation-flow-card-actions" }, props));
7197
+ var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx86(Box37, __spreadValues({ className: "creation-flow-card-actions" }, props));
6864
7198
 
6865
7199
  // src/components/Form/Stack.tsx
6866
7200
  import { Stack as OxygenStack } from "@mui/material";
6867
- import { jsx as jsx86 } from "react/jsx-runtime";
6868
- var Stack2 = (props) => {
6869
- return /* @__PURE__ */ jsx86(OxygenStack, __spreadValues({ spacing: 2 }, props));
7201
+ import { jsx as jsx87 } from "react/jsx-runtime";
7202
+ var Stack3 = (props) => {
7203
+ return /* @__PURE__ */ jsx87(OxygenStack, __spreadValues({ spacing: 2 }, props));
6870
7204
  };
6871
7205
 
6872
7206
  // src/components/Form/Typography.tsx
6873
- import { Typography as Typography22 } from "@mui/material";
6874
- import { jsx as jsx87 } from "react/jsx-runtime";
7207
+ import { Typography as Typography23 } from "@mui/material";
7208
+ import { jsx as jsx88 } from "react/jsx-runtime";
6875
7209
  var Header2 = (props) => {
6876
7210
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6877
- return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
7211
+ return /* @__PURE__ */ jsx88(Typography23, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
6878
7212
  };
6879
7213
  var Subheader = (props) => {
6880
7214
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6881
- return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
7215
+ return /* @__PURE__ */ jsx88(Typography23, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
6882
7216
  };
6883
7217
  var Body = (props) => {
6884
7218
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6885
- return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
7219
+ return /* @__PURE__ */ jsx88(Typography23, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
6886
7220
  };
6887
7221
 
6888
7222
  // src/components/Form/Section.tsx
6889
- import { Card as Card4, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
6890
- import { jsx as jsx88 } from "react/jsx-runtime";
7223
+ import { Card as Card4, CardContent as CardContent3, Stack as Stack4 } from "@mui/material";
7224
+ import { jsx as jsx89 } from "react/jsx-runtime";
6891
7225
  var Section = ({ children }) => {
6892
- return /* @__PURE__ */ jsx88(Card4, { children: /* @__PURE__ */ jsx88(CardContent3, { children: /* @__PURE__ */ jsx88(Stack3, { direction: "column", spacing: 2, children }) }) });
7226
+ return /* @__PURE__ */ jsx89(Card4, { children: /* @__PURE__ */ jsx89(CardContent3, { children: /* @__PURE__ */ jsx89(Stack4, { direction: "column", spacing: 2, children }) }) });
6893
7227
  };
6894
7228
 
6895
7229
  // src/components/Form/Wizard.tsx
@@ -6903,37 +7237,37 @@ import {
6903
7237
  } from "@mui/material";
6904
7238
  import { styled as styled67 } from "@mui/material/styles";
6905
7239
  import { useMemo as useMemo7 } from "react";
6906
- import { jsx as jsx89, jsxs as jsxs35 } from "react/jsx-runtime";
6907
- var StyledWizardActionsStack = styled67(Stack2)(() => ({
7240
+ import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
7241
+ var StyledWizardActionsStack = styled67(Stack3)(() => ({
6908
7242
  justifyContent: "space-between",
6909
7243
  flexGrow: 1
6910
7244
  }));
6911
7245
  function Wizard({ steps, activeStep, actions }) {
6912
7246
  const step = useMemo7(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
6913
- return /* @__PURE__ */ jsx89(Card5, { children: /* @__PURE__ */ jsx89(CardContent4, { children: /* @__PURE__ */ jsxs35(Stack2, { children: [
6914
- /* @__PURE__ */ jsx89(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx89(Step, { children: /* @__PURE__ */ jsx89(StepLabel, { children: step2.label }) }, step2.label)) }),
6915
- /* @__PURE__ */ jsx89(Divider10, {}),
6916
- /* @__PURE__ */ jsx89(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
6917
- /* @__PURE__ */ jsx89(StyledWizardActionsStack, { direction: "row", children: actions })
7247
+ return /* @__PURE__ */ jsx90(Card5, { children: /* @__PURE__ */ jsx90(CardContent4, { children: /* @__PURE__ */ jsxs36(Stack3, { children: [
7248
+ /* @__PURE__ */ jsx90(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx90(Step, { children: /* @__PURE__ */ jsx90(StepLabel, { children: step2.label }) }, step2.label)) }),
7249
+ /* @__PURE__ */ jsx90(Divider10, {}),
7250
+ /* @__PURE__ */ jsx90(Stack3, { direction: "row", children: step == null ? void 0 : step.component }),
7251
+ /* @__PURE__ */ jsx90(StyledWizardActionsStack, { direction: "row", children: actions })
6918
7252
  ] }) }) });
6919
7253
  }
6920
7254
 
6921
7255
  // src/components/Form/ElementWrapper.tsx
6922
7256
  import { FormControl as FormControl3, FormLabel } from "@mui/material";
6923
- import React40 from "react";
6924
- import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
7257
+ import React41 from "react";
7258
+ import { jsx as jsx91, jsxs as jsxs37 } from "react/jsx-runtime";
6925
7259
  var ElementWrapper = (props) => {
6926
7260
  const { label, name, children } = props;
6927
7261
  const labelId = `${name}-label`;
6928
- const enhancedChildren = React40.Children.map(children, (child) => {
7262
+ const enhancedChildren = React41.Children.map(children, (child) => {
6929
7263
  var _a;
6930
- if (React40.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
6931
- return React40.cloneElement(child, { labelId });
7264
+ if (React41.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
7265
+ return React41.cloneElement(child, { labelId });
6932
7266
  }
6933
7267
  return child;
6934
7268
  });
6935
- return /* @__PURE__ */ jsxs36(FormControl3, { fullWidth: true, children: [
6936
- /* @__PURE__ */ jsx90(FormLabel, { id: labelId, htmlFor: name, children: label }),
7269
+ return /* @__PURE__ */ jsxs37(FormControl3, { fullWidth: true, children: [
7270
+ /* @__PURE__ */ jsx91(FormLabel, { id: labelId, htmlFor: name, children: label }),
6937
7271
  enhancedChildren
6938
7272
  ] });
6939
7273
  };
@@ -6946,7 +7280,7 @@ var Form = {
6946
7280
  CardContent: CardContent2,
6947
7281
  CardActions,
6948
7282
  CardMedia,
6949
- Stack: Stack2,
7283
+ Stack: Stack3,
6950
7284
  Header: Header2,
6951
7285
  Subheader,
6952
7286
  Body,
@@ -6957,16 +7291,16 @@ var Form = {
6957
7291
  };
6958
7292
 
6959
7293
  // src/components/AppShell/AppShell.tsx
6960
- import * as React42 from "react";
6961
- import Box41 from "@mui/material/Box";
7294
+ import * as React43 from "react";
7295
+ import Box42 from "@mui/material/Box";
6962
7296
 
6963
7297
  // src/layouts/Layout.tsx
6964
- import Box37 from "@mui/material/Box";
6965
- import { jsx as jsx91 } from "react/jsx-runtime";
7298
+ import Box38 from "@mui/material/Box";
7299
+ import { jsx as jsx92 } from "react/jsx-runtime";
6966
7300
  function Layout(_a) {
6967
7301
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6968
- return /* @__PURE__ */ jsx91(
6969
- Box37,
7302
+ return /* @__PURE__ */ jsx92(
7303
+ Box38,
6970
7304
  __spreadProps(__spreadValues({
6971
7305
  sx: __spreadValues({
6972
7306
  display: "flex",
@@ -6981,12 +7315,12 @@ Layout.displayName = "Layout";
6981
7315
  var Layout_default = Layout;
6982
7316
 
6983
7317
  // src/layouts/LayoutSidebar.tsx
6984
- import Box38 from "@mui/material/Box";
6985
- import { jsx as jsx92 } from "react/jsx-runtime";
7318
+ import Box39 from "@mui/material/Box";
7319
+ import { jsx as jsx93 } from "react/jsx-runtime";
6986
7320
  function LayoutSidebar(_a) {
6987
7321
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6988
- return /* @__PURE__ */ jsx92(
6989
- Box38,
7322
+ return /* @__PURE__ */ jsx93(
7323
+ Box39,
6990
7324
  __spreadProps(__spreadValues({
6991
7325
  sx: __spreadValues({
6992
7326
  display: "flex",
@@ -7008,12 +7342,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
7008
7342
  var LayoutNavbar_default = LayoutNavbar;
7009
7343
 
7010
7344
  // src/layouts/LayoutContent.tsx
7011
- import Box39 from "@mui/material/Box";
7012
- import { jsx as jsx93 } from "react/jsx-runtime";
7345
+ import Box40 from "@mui/material/Box";
7346
+ import { jsx as jsx94 } from "react/jsx-runtime";
7013
7347
  function LayoutContent(_a) {
7014
7348
  var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
7015
- return /* @__PURE__ */ jsx93(
7016
- Box39,
7349
+ return /* @__PURE__ */ jsx94(
7350
+ Box40,
7017
7351
  __spreadProps(__spreadValues({
7018
7352
  component: "main",
7019
7353
  sx: {
@@ -7031,12 +7365,12 @@ LayoutContent.displayName = "Layout.Content";
7031
7365
  var LayoutContent_default = LayoutContent;
7032
7366
 
7033
7367
  // src/layouts/LayoutHeader.tsx
7034
- import Box40 from "@mui/material/Box";
7035
- import { jsx as jsx94 } from "react/jsx-runtime";
7368
+ import Box41 from "@mui/material/Box";
7369
+ import { jsx as jsx95 } from "react/jsx-runtime";
7036
7370
  function LayoutHeader(_a) {
7037
7371
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
7038
- return /* @__PURE__ */ jsx94(
7039
- Box40,
7372
+ return /* @__PURE__ */ jsx95(
7373
+ Box41,
7040
7374
  __spreadProps(__spreadValues({
7041
7375
  sx: __spreadValues({
7042
7376
  display: "flex"
@@ -7059,45 +7393,45 @@ var Layout2 = Object.assign(Layout_default, {
7059
7393
  var layouts_default = Layout2;
7060
7394
 
7061
7395
  // src/components/AppShell/AppShellNavbar.tsx
7062
- import { Fragment as Fragment11, jsx as jsx95 } from "react/jsx-runtime";
7396
+ import { Fragment as Fragment12, jsx as jsx96 } from "react/jsx-runtime";
7063
7397
  var AppShellNavbar = ({ children }) => {
7064
- return /* @__PURE__ */ jsx95(Fragment11, { children });
7398
+ return /* @__PURE__ */ jsx96(Fragment12, { children });
7065
7399
  };
7066
7400
  AppShellNavbar.displayName = "AppShellNavbar";
7067
7401
 
7068
7402
  // src/components/AppShell/AppShellSidebar.tsx
7069
- import { Fragment as Fragment12, jsx as jsx96 } from "react/jsx-runtime";
7403
+ import { Fragment as Fragment13, jsx as jsx97 } from "react/jsx-runtime";
7070
7404
  var AppShellSidebar = ({ children }) => {
7071
- return /* @__PURE__ */ jsx96(Fragment12, { children });
7405
+ return /* @__PURE__ */ jsx97(Fragment13, { children });
7072
7406
  };
7073
7407
  AppShellSidebar.displayName = "AppShellSidebar";
7074
7408
 
7075
7409
  // src/components/AppShell/AppShellMain.tsx
7076
- import { Fragment as Fragment13, jsx as jsx97 } from "react/jsx-runtime";
7410
+ import { Fragment as Fragment14, jsx as jsx98 } from "react/jsx-runtime";
7077
7411
  var AppShellMain = ({ children }) => {
7078
- return /* @__PURE__ */ jsx97(Fragment13, { children });
7412
+ return /* @__PURE__ */ jsx98(Fragment14, { children });
7079
7413
  };
7080
7414
  AppShellMain.displayName = "AppShellMain";
7081
7415
 
7082
7416
  // src/components/AppShell/AppShellFooter.tsx
7083
- import { Fragment as Fragment14, jsx as jsx98 } from "react/jsx-runtime";
7417
+ import { Fragment as Fragment15, jsx as jsx99 } from "react/jsx-runtime";
7084
7418
  var AppShellFooter = ({ children }) => {
7085
- return /* @__PURE__ */ jsx98(Fragment14, { children });
7419
+ return /* @__PURE__ */ jsx99(Fragment15, { children });
7086
7420
  };
7087
7421
  AppShellFooter.displayName = "AppShellFooter";
7088
7422
 
7089
7423
  // src/components/AppShell/AppShellNotificationPanel.tsx
7090
- import { Fragment as Fragment15, jsx as jsx99 } from "react/jsx-runtime";
7424
+ import { Fragment as Fragment16, jsx as jsx100 } from "react/jsx-runtime";
7091
7425
  var AppShellNotificationPanel = ({ children }) => {
7092
- return /* @__PURE__ */ jsx99(Fragment15, { children });
7426
+ return /* @__PURE__ */ jsx100(Fragment16, { children });
7093
7427
  };
7094
7428
  AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
7095
7429
 
7096
7430
  // src/hooks/useAppShell/useAppShell.ts
7097
- import * as React41 from "react";
7431
+ import * as React42 from "react";
7098
7432
  import useMediaQuery3 from "@mui/material/useMediaQuery";
7099
7433
  var useAppShell = (options) => {
7100
- const contextValue = React41.useContext(AppShellContext);
7434
+ const contextValue = React42.useContext(AppShellContext);
7101
7435
  const {
7102
7436
  initialCollapsed = false,
7103
7437
  initialActiveItem = "dashboard",
@@ -7108,7 +7442,7 @@ var useAppShell = (options) => {
7108
7442
  } = options || {};
7109
7443
  const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
7110
7444
  const isCreateMode = options !== void 0;
7111
- const [state, setState] = React41.useState({
7445
+ const [state, setState] = React42.useState({
7112
7446
  sidebarCollapsed: initialCollapsed,
7113
7447
  notificationPanelOpen: false,
7114
7448
  activeMenuItem: initialActiveItem,
@@ -7116,29 +7450,29 @@ var useAppShell = (options) => {
7116
7450
  sidebarWidth,
7117
7451
  sidebarCollapsedWidth
7118
7452
  });
7119
- React41.useEffect(() => {
7453
+ React42.useEffect(() => {
7120
7454
  if (isCreateMode && collapseOnMobile && isMobile) {
7121
7455
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
7122
7456
  }
7123
7457
  }, [isCreateMode, collapseOnMobile, isMobile]);
7124
- const toggleSidebar = React41.useCallback(() => {
7458
+ const toggleSidebar = React42.useCallback(() => {
7125
7459
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
7126
7460
  }, []);
7127
- const setSidebarCollapsed = React41.useCallback((collapsed) => {
7461
+ const setSidebarCollapsed = React42.useCallback((collapsed) => {
7128
7462
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: collapsed }));
7129
7463
  }, []);
7130
- const collapseSidebar = React41.useCallback(() => {
7464
+ const collapseSidebar = React42.useCallback(() => {
7131
7465
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
7132
7466
  }, []);
7133
- const expandSidebar = React41.useCallback(() => {
7467
+ const expandSidebar = React42.useCallback(() => {
7134
7468
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: false }));
7135
7469
  }, []);
7136
- const toggleNotificationPanel = React41.useCallback(() => {
7470
+ const toggleNotificationPanel = React42.useCallback(() => {
7137
7471
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
7138
7472
  notificationPanelOpen: !prev.notificationPanelOpen
7139
7473
  }));
7140
7474
  }, []);
7141
- const setActiveMenuItem = React41.useCallback((id) => {
7475
+ const setActiveMenuItem = React42.useCallback((id) => {
7142
7476
  setState((prev) => {
7143
7477
  const newState = __spreadProps(__spreadValues({}, prev), { activeMenuItem: id });
7144
7478
  if (collapseOnSelectOnMobile && isMobile && !prev.sidebarCollapsed) {
@@ -7147,14 +7481,14 @@ var useAppShell = (options) => {
7147
7481
  return newState;
7148
7482
  });
7149
7483
  }, [collapseOnSelectOnMobile, isMobile]);
7150
- const toggleMenu = React41.useCallback((id) => {
7484
+ const toggleMenu = React42.useCallback((id) => {
7151
7485
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
7152
7486
  expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
7153
7487
  [id]: !prev.expandedMenus[id]
7154
7488
  })
7155
7489
  }));
7156
7490
  }, []);
7157
- const actions = React41.useMemo(
7491
+ const actions = React42.useMemo(
7158
7492
  () => ({
7159
7493
  toggleSidebar,
7160
7494
  setSidebarCollapsed,
@@ -7174,7 +7508,7 @@ var useAppShell = (options) => {
7174
7508
  toggleMenu
7175
7509
  ]
7176
7510
  );
7177
- const createdValue = React41.useMemo(
7511
+ const createdValue = React42.useMemo(
7178
7512
  () => ({
7179
7513
  state,
7180
7514
  actions
@@ -7193,7 +7527,7 @@ var useAppShell = (options) => {
7193
7527
  };
7194
7528
 
7195
7529
  // src/components/AppShell/AppShell.tsx
7196
- import { jsx as jsx100, jsxs as jsxs37 } from "react/jsx-runtime";
7530
+ import { jsx as jsx101, jsxs as jsxs38 } from "react/jsx-runtime";
7197
7531
  var SLOT_DISPLAY_NAMES = {
7198
7532
  Navbar: "AppShellNavbar",
7199
7533
  Sidebar: "AppShellSidebar",
@@ -7209,9 +7543,9 @@ var extractSlots = (children) => {
7209
7543
  footer: null,
7210
7544
  notificationPanel: null
7211
7545
  };
7212
- React42.Children.forEach(children, (child) => {
7546
+ React43.Children.forEach(children, (child) => {
7213
7547
  var _a;
7214
- if (React42.isValidElement(child)) {
7548
+ if (React43.isValidElement(child)) {
7215
7549
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
7216
7550
  const childProps = child.props;
7217
7551
  switch (displayName) {
@@ -7243,12 +7577,12 @@ var AppShell = (_a) => {
7243
7577
  var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
7244
7578
  const shell = useAppShell(shellOptions);
7245
7579
  const slots = extractSlots(children);
7246
- return /* @__PURE__ */ jsx100(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs37(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
7247
- slots.navbar && /* @__PURE__ */ jsx100(layouts_default.Navbar, { children: slots.navbar }),
7248
- /* @__PURE__ */ jsxs37(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
7249
- slots.sidebar && /* @__PURE__ */ jsx100(layouts_default.Sidebar, { children: slots.sidebar }),
7250
- /* @__PURE__ */ jsxs37(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
7251
- /* @__PURE__ */ jsx100(Box41, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
7580
+ return /* @__PURE__ */ jsx101(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs38(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
7581
+ slots.navbar && /* @__PURE__ */ jsx101(layouts_default.Navbar, { children: slots.navbar }),
7582
+ /* @__PURE__ */ jsxs38(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
7583
+ slots.sidebar && /* @__PURE__ */ jsx101(layouts_default.Sidebar, { children: slots.sidebar }),
7584
+ /* @__PURE__ */ jsxs38(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
7585
+ /* @__PURE__ */ jsx101(Box42, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
7252
7586
  slots.footer
7253
7587
  ] })
7254
7588
  ] }),
@@ -7276,7 +7610,7 @@ var densityStyles = {
7276
7610
  // src/components/ListingTable/ListingTable/ListingTableContainer.tsx
7277
7611
  import MuiTableContainer from "@mui/material/TableContainer";
7278
7612
  import Paper from "@mui/material/Paper";
7279
- import { jsx as jsx101 } from "react/jsx-runtime";
7613
+ import { jsx as jsx102 } from "react/jsx-runtime";
7280
7614
  function ListingTableContainer(_a) {
7281
7615
  var _b = _a, {
7282
7616
  elevation = 1,
@@ -7288,16 +7622,16 @@ function ListingTableContainer(_a) {
7288
7622
  "children"
7289
7623
  ]);
7290
7624
  if (disablePaper) {
7291
- return /* @__PURE__ */ jsx101(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7625
+ return /* @__PURE__ */ jsx102(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7292
7626
  }
7293
- return /* @__PURE__ */ jsx101(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7627
+ return /* @__PURE__ */ jsx102(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7294
7628
  }
7295
7629
  var ListingTableContainer_default = ListingTableContainer;
7296
7630
 
7297
7631
  // src/components/ListingTable/ListingTable/ListingTableHead.tsx
7298
7632
  import MuiTableHead from "@mui/material/TableHead";
7299
7633
  import { styled as styled68 } from "@mui/material/styles";
7300
- import { jsx as jsx102 } from "react/jsx-runtime";
7634
+ import { jsx as jsx103 } from "react/jsx-runtime";
7301
7635
  var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
7302
7636
  "& .MuiTableCell-head": __spreadValues(__spreadValues({
7303
7637
  fontWeight: 600
@@ -7309,27 +7643,27 @@ var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
7309
7643
  }));
7310
7644
  function ListingTableHead(_a) {
7311
7645
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7312
- return /* @__PURE__ */ jsx102(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
7646
+ return /* @__PURE__ */ jsx103(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
7313
7647
  }
7314
7648
  var ListingTableHead_default = ListingTableHead;
7315
7649
 
7316
7650
  // src/components/ListingTable/ListingTable/ListingTableBody.tsx
7317
- import { Children as Children15, Fragment as Fragment16, isValidElement as isValidElement15 } from "react";
7651
+ import { Children as Children15, Fragment as Fragment17, isValidElement as isValidElement15 } from "react";
7318
7652
  import MuiTableBody from "@mui/material/TableBody";
7319
7653
  import MuiTableRow from "@mui/material/TableRow";
7320
7654
  import MuiTableCell from "@mui/material/TableCell";
7321
- import Box43 from "@mui/material/Box";
7655
+ import Box44 from "@mui/material/Box";
7322
7656
  import { Search as Search2 } from "@wso2/oxygen-ui-icons-react";
7323
7657
 
7324
7658
  // src/components/ListingTable/context.ts
7325
- import * as React43 from "react";
7326
- var ListingTableContext = React43.createContext(null);
7659
+ import * as React44 from "react";
7660
+ var ListingTableContext = React44.createContext(null);
7327
7661
  ListingTableContext.displayName = "ListingTableContext";
7328
7662
  var useListingTable = () => {
7329
- return React43.useContext(ListingTableContext);
7663
+ return React44.useContext(ListingTableContext);
7330
7664
  };
7331
7665
  var useListingTableRequired = () => {
7332
- const context = React43.useContext(ListingTableContext);
7666
+ const context = React44.useContext(ListingTableContext);
7333
7667
  if (!context) {
7334
7668
  throw new Error(
7335
7669
  "useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
@@ -7339,9 +7673,9 @@ var useListingTableRequired = () => {
7339
7673
  };
7340
7674
 
7341
7675
  // src/components/ListingTable/shared/ListingTableEmptyState.tsx
7342
- import Box42 from "@mui/material/Box";
7343
- import Typography23 from "@mui/material/Typography";
7344
- import { jsx as jsx103, jsxs as jsxs38 } from "react/jsx-runtime";
7676
+ import Box43 from "@mui/material/Box";
7677
+ import Typography24 from "@mui/material/Typography";
7678
+ import { jsx as jsx104, jsxs as jsxs39 } from "react/jsx-runtime";
7345
7679
  function ListingTableEmptyState({
7346
7680
  title = "No data available",
7347
7681
  description,
@@ -7350,8 +7684,8 @@ function ListingTableEmptyState({
7350
7684
  minHeight = 300,
7351
7685
  sx
7352
7686
  }) {
7353
- return /* @__PURE__ */ jsxs38(
7354
- Box42,
7687
+ return /* @__PURE__ */ jsxs39(
7688
+ Box43,
7355
7689
  {
7356
7690
  sx: __spreadValues({
7357
7691
  display: "flex",
@@ -7363,8 +7697,8 @@ function ListingTableEmptyState({
7363
7697
  textAlign: "center"
7364
7698
  }, sx),
7365
7699
  children: [
7366
- illustration && /* @__PURE__ */ jsx103(
7367
- Box42,
7700
+ illustration && /* @__PURE__ */ jsx104(
7701
+ Box43,
7368
7702
  {
7369
7703
  sx: {
7370
7704
  mb: 2,
@@ -7377,9 +7711,9 @@ function ListingTableEmptyState({
7377
7711
  children: illustration
7378
7712
  }
7379
7713
  ),
7380
- /* @__PURE__ */ jsx103(Typography23, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
7381
- description && /* @__PURE__ */ jsx103(Typography23, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
7382
- action && /* @__PURE__ */ jsx103(Box42, { children: action })
7714
+ /* @__PURE__ */ jsx104(Typography24, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
7715
+ description && /* @__PURE__ */ jsx104(Typography24, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
7716
+ action && /* @__PURE__ */ jsx104(Box43, { children: action })
7383
7717
  ]
7384
7718
  }
7385
7719
  );
@@ -7387,10 +7721,10 @@ function ListingTableEmptyState({
7387
7721
  var ListingTableEmptyState_default = ListingTableEmptyState;
7388
7722
 
7389
7723
  // src/components/ListingTable/ListingTable/ListingTableBody.tsx
7390
- import { jsx as jsx104 } from "react/jsx-runtime";
7724
+ import { jsx as jsx105 } from "react/jsx-runtime";
7391
7725
  function hasContent(node) {
7392
7726
  return Children15.toArray(node).some(
7393
- (child) => isValidElement15(child) && child.type === Fragment16 ? hasContent(child.props.children) : true
7727
+ (child) => isValidElement15(child) && child.type === Fragment17 ? hasContent(child.props.children) : true
7394
7728
  );
7395
7729
  }
7396
7730
  function ListingTableBody(_a) {
@@ -7400,7 +7734,7 @@ function ListingTableBody(_a) {
7400
7734
  loading,
7401
7735
  noSearchResultsText = "No results found",
7402
7736
  noSearchResultsDescription = "Try a different keyword",
7403
- noSearchResultsIcon = /* @__PURE__ */ jsx104(Search2, {}),
7737
+ noSearchResultsIcon = /* @__PURE__ */ jsx105(Search2, {}),
7404
7738
  emptyStateColSpan = 1e3
7405
7739
  } = _b, props = __objRest(_b, [
7406
7740
  "children",
@@ -7417,7 +7751,7 @@ function ListingTableBody(_a) {
7417
7751
  const isLoading = (_b2 = loading != null ? loading : context == null ? void 0 : context.loading) != null ? _b2 : false;
7418
7752
  const hasRows = hasContent(children);
7419
7753
  if (isSearching && !isLoading && !hasRows) {
7420
- return /* @__PURE__ */ jsx104(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx104(MuiTableRow, { children: /* @__PURE__ */ jsx104(MuiTableCell, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx104(Box43, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx104(
7754
+ return /* @__PURE__ */ jsx105(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx105(MuiTableRow, { children: /* @__PURE__ */ jsx105(MuiTableCell, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx105(Box44, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx105(
7421
7755
  ListingTableEmptyState,
7422
7756
  {
7423
7757
  title: noSearchResultsText,
@@ -7426,23 +7760,23 @@ function ListingTableBody(_a) {
7426
7760
  }
7427
7761
  ) }) }) }) }));
7428
7762
  }
7429
- return /* @__PURE__ */ jsx104(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
7763
+ return /* @__PURE__ */ jsx105(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
7430
7764
  }
7431
7765
  var ListingTableBody_default = ListingTableBody;
7432
7766
 
7433
7767
  // src/components/ListingTable/ListingTable/ListingTableFooter.tsx
7434
7768
  import MuiTableFooter from "@mui/material/TableFooter";
7435
- import { jsx as jsx105 } from "react/jsx-runtime";
7769
+ import { jsx as jsx106 } from "react/jsx-runtime";
7436
7770
  function ListingTableFooter(_a) {
7437
7771
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7438
- return /* @__PURE__ */ jsx105(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
7772
+ return /* @__PURE__ */ jsx106(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
7439
7773
  }
7440
7774
  var ListingTableFooter_default = ListingTableFooter;
7441
7775
 
7442
7776
  // src/components/ListingTable/ListingTable/ListingTableRow.tsx
7443
7777
  import MuiTableRow2 from "@mui/material/TableRow";
7444
7778
  import { styled as styled69, alpha as alpha2 } from "@mui/material/styles";
7445
- import { jsx as jsx106 } from "react/jsx-runtime";
7779
+ import { jsx as jsx107 } from "react/jsx-runtime";
7446
7780
  var StyledTableRow = styled69(MuiTableRow2, {
7447
7781
  shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
7448
7782
  })(({ theme: muiTheme, clickable, variant = "table" }) => {
@@ -7501,14 +7835,14 @@ function ListingTableRow(_a) {
7501
7835
  "variant",
7502
7836
  "children"
7503
7837
  ]);
7504
- return /* @__PURE__ */ jsx106(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
7838
+ return /* @__PURE__ */ jsx107(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
7505
7839
  }
7506
7840
  var ListingTableRow_default = ListingTableRow;
7507
7841
 
7508
7842
  // src/components/ListingTable/ListingTable/ListingTableCell.tsx
7509
7843
  import MuiTableCell2 from "@mui/material/TableCell";
7510
7844
  import { styled as styled70 } from "@mui/material/styles";
7511
- import { jsx as jsx107 } from "react/jsx-runtime";
7845
+ import { jsx as jsx108 } from "react/jsx-runtime";
7512
7846
  var StyledTableCell = styled70(MuiTableCell2, {
7513
7847
  shouldForwardProp: (prop) => {
7514
7848
  const excludedProps = ["truncate", "maxWidth"];
@@ -7531,7 +7865,7 @@ function ListingTableCell(_a) {
7531
7865
  "maxWidth",
7532
7866
  "children"
7533
7867
  ]);
7534
- return /* @__PURE__ */ jsx107(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
7868
+ return /* @__PURE__ */ jsx108(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
7535
7869
  }
7536
7870
  var ListingTableCell_default = ListingTableCell;
7537
7871
 
@@ -7539,7 +7873,7 @@ var ListingTableCell_default = ListingTableCell;
7539
7873
  import { useCallback as useCallback5 } from "react";
7540
7874
  import { DataGrid } from "@mui/x-data-grid";
7541
7875
  import { styled as styled71, alpha as alpha3 } from "@mui/material/styles";
7542
- import { jsx as jsx108 } from "react/jsx-runtime";
7876
+ import { jsx as jsx109 } from "react/jsx-runtime";
7543
7877
  var StyledDataGrid = styled71(DataGrid)(({ theme }) => ({
7544
7878
  // Remove outer border for seamless integration within ListingTable.Container
7545
7879
  border: "none",
@@ -7697,7 +8031,7 @@ function ListingTableDataGrid(_a) {
7697
8031
  "& .MuiDataGrid-cell": { padding: cellPadding }
7698
8032
  };
7699
8033
  const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
7700
- return /* @__PURE__ */ jsx108(
8034
+ return /* @__PURE__ */ jsx109(
7701
8035
  StyledDataGrid,
7702
8036
  __spreadValues({
7703
8037
  density,
@@ -7712,13 +8046,13 @@ function ListingTableDataGrid(_a) {
7712
8046
  var ListingTableDataGrid_default = ListingTableDataGrid;
7713
8047
 
7714
8048
  // src/components/ListingTable/shared/ListingTableToolbar.tsx
7715
- import { useState as useState10, useCallback as useCallback6 } from "react";
7716
- import Box44 from "@mui/material/Box";
8049
+ import { useState as useState11, useCallback as useCallback6 } from "react";
8050
+ import Box45 from "@mui/material/Box";
7717
8051
  import TextField3 from "@mui/material/TextField";
7718
8052
  import InputAdornment3 from "@mui/material/InputAdornment";
7719
8053
  import IconButton8 from "@mui/material/IconButton";
7720
8054
  import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
7721
- import { Fragment as Fragment17, jsx as jsx109, jsxs as jsxs39 } from "react/jsx-runtime";
8055
+ import { Fragment as Fragment18, jsx as jsx110, jsxs as jsxs40 } from "react/jsx-runtime";
7722
8056
  function ListingTableToolbar({
7723
8057
  showSearch = false,
7724
8058
  searchSlot,
@@ -7732,7 +8066,7 @@ function ListingTableToolbar({
7732
8066
  sx
7733
8067
  }) {
7734
8068
  const tableContext = useListingTable();
7735
- const [internalSearchValue, setInternalSearchValue] = useState10("");
8069
+ const [internalSearchValue, setInternalSearchValue] = useState11("");
7736
8070
  const isControlledByProp = controlledSearchValue !== void 0;
7737
8071
  const isControlledByContext = !isControlledByProp && (tableContext == null ? void 0 : tableContext.searchValue) !== void 0;
7738
8072
  const isControlled = isControlledByProp || isControlledByContext;
@@ -7759,7 +8093,7 @@ function ListingTableToolbar({
7759
8093
  return searchSlot;
7760
8094
  }
7761
8095
  if (showSearch) {
7762
- return /* @__PURE__ */ jsx109(
8096
+ return /* @__PURE__ */ jsx110(
7763
8097
  TextField3,
7764
8098
  {
7765
8099
  size: "small",
@@ -7775,8 +8109,8 @@ function ListingTableToolbar({
7775
8109
  "aria-label": searchPlaceholder || "Search"
7776
8110
  },
7777
8111
  input: {
7778
- startAdornment: /* @__PURE__ */ jsx109(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx109(Search3, { size: 18, "aria-hidden": "true" }) }),
7779
- endAdornment: searchValue ? /* @__PURE__ */ jsx109(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx109(IconButton8, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx109(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
8112
+ startAdornment: /* @__PURE__ */ jsx110(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx110(Search3, { size: 18, "aria-hidden": "true" }) }),
8113
+ endAdornment: searchValue ? /* @__PURE__ */ jsx110(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx110(IconButton8, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx110(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
7780
8114
  }
7781
8115
  }
7782
8116
  }
@@ -7784,8 +8118,8 @@ function ListingTableToolbar({
7784
8118
  }
7785
8119
  return null;
7786
8120
  };
7787
- return /* @__PURE__ */ jsxs39(
7788
- Box44,
8121
+ return /* @__PURE__ */ jsxs40(
8122
+ Box45,
7789
8123
  {
7790
8124
  role: "toolbar",
7791
8125
  "aria-label": "Table toolbar",
@@ -7800,9 +8134,9 @@ function ListingTableToolbar({
7800
8134
  children: [
7801
8135
  renderSearch(),
7802
8136
  children,
7803
- actions && /* @__PURE__ */ jsxs39(Fragment17, { children: [
7804
- /* @__PURE__ */ jsx109(Box44, { sx: { flex: 1 } }),
7805
- /* @__PURE__ */ jsx109(Box44, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
8137
+ actions && /* @__PURE__ */ jsxs40(Fragment18, { children: [
8138
+ /* @__PURE__ */ jsx110(Box45, { sx: { flex: 1 } }),
8139
+ /* @__PURE__ */ jsx110(Box45, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
7806
8140
  ] })
7807
8141
  ]
7808
8142
  }
@@ -7816,11 +8150,11 @@ import ToggleButton from "@mui/material/ToggleButton";
7816
8150
  import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
7817
8151
  import Tooltip9 from "@mui/material/Tooltip";
7818
8152
  import { AlignJustify, Menu as Menu4, List as List4 } from "@wso2/oxygen-ui-icons-react";
7819
- import { jsx as jsx110 } from "react/jsx-runtime";
8153
+ import { jsx as jsx111 } from "react/jsx-runtime";
7820
8154
  var densityOptions = [
7821
- { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx110(AlignJustify, { size: 18 }) },
7822
- { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx110(Menu4, { size: 18 }) },
7823
- { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx110(List4, { size: 18 }) }
8155
+ { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx111(AlignJustify, { size: 18 }) },
8156
+ { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx111(Menu4, { size: 18 }) },
8157
+ { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx111(List4, { size: 18 }) }
7824
8158
  ];
7825
8159
  function ListingTableDensityControl({
7826
8160
  value: valueProp,
@@ -7840,7 +8174,7 @@ function ListingTableDensityControl({
7840
8174
  },
7841
8175
  [effectiveOnChange]
7842
8176
  );
7843
- return /* @__PURE__ */ jsx110(
8177
+ return /* @__PURE__ */ jsx111(
7844
8178
  ToggleButtonGroup,
7845
8179
  {
7846
8180
  value,
@@ -7849,7 +8183,7 @@ function ListingTableDensityControl({
7849
8183
  size,
7850
8184
  sx,
7851
8185
  "aria-label": "Table density",
7852
- children: densityOptions.map((option) => /* @__PURE__ */ jsx110(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx110(Tooltip9, { title: option.label, children: /* @__PURE__ */ jsx110("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
8186
+ children: densityOptions.map((option) => /* @__PURE__ */ jsx111(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx111(Tooltip9, { title: option.label, children: /* @__PURE__ */ jsx111("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
7853
8187
  }
7854
8188
  );
7855
8189
  }
@@ -7859,7 +8193,7 @@ var ListingTableDensityControl_default = ListingTableDensityControl;
7859
8193
  import { useCallback as useCallback8 } from "react";
7860
8194
  import MuiTableSortLabel from "@mui/material/TableSortLabel";
7861
8195
  import { styled as styled72 } from "@mui/material/styles";
7862
- import { jsx as jsx111 } from "react/jsx-runtime";
8196
+ import { jsx as jsx112 } from "react/jsx-runtime";
7863
8197
  var StyledTableSortLabel = styled72(MuiTableSortLabel)(({ theme }) => ({
7864
8198
  color: "inherit !important",
7865
8199
  "&.Mui-active": {
@@ -7903,13 +8237,257 @@ function ListingTableSortLabel(_a) {
7903
8237
  },
7904
8238
  [onClickProp, field, tableContext, active, direction]
7905
8239
  );
7906
- return /* @__PURE__ */ jsx111(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
8240
+ return /* @__PURE__ */ jsx112(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
7907
8241
  }
7908
8242
  var ListingTableSortLabel_default = ListingTableSortLabel;
7909
8243
 
8244
+ // src/components/ListingTable/shared/ListingTableFilter.tsx
8245
+ import * as React46 from "react";
8246
+ import IconButton9 from "@mui/material/IconButton";
8247
+ import Tooltip10 from "@mui/material/Tooltip";
8248
+ import { ListFilter as ListFilter2 } from "@wso2/oxygen-ui-icons-react";
8249
+
8250
+ // src/components/ListingTable/shared/ListingTableFilterMenu.tsx
8251
+ import * as React45 from "react";
8252
+ import Box46 from "@mui/material/Box";
8253
+ import MenuItem8 from "@mui/material/MenuItem";
8254
+ import MenuList3 from "@mui/material/MenuList";
8255
+ import Popover5 from "@mui/material/Popover";
8256
+ import Typography25 from "@mui/material/Typography";
8257
+ import { Check } from "@wso2/oxygen-ui-icons-react";
8258
+ import { jsx as jsx113, jsxs as jsxs41 } from "react/jsx-runtime";
8259
+ var MenuContent = ({
8260
+ open,
8261
+ onClose,
8262
+ options,
8263
+ value,
8264
+ onChange,
8265
+ searchable = false,
8266
+ label,
8267
+ listId,
8268
+ allLabel,
8269
+ searchPlaceholder,
8270
+ noMatchLabel
8271
+ }) => {
8272
+ const [query, setQuery] = React45.useState("");
8273
+ React45.useLayoutEffect(() => {
8274
+ if (open) setQuery("");
8275
+ }, [open]);
8276
+ const listRef = React45.useRef(null);
8277
+ const searchRef = React45.useRef(null);
8278
+ const current = value != null ? value : "";
8279
+ const needle = query.trim().toLowerCase();
8280
+ const matching = options.filter(
8281
+ (option) => option.value !== "" && option.label.toLowerCase().includes(needle)
8282
+ );
8283
+ const shown = [{ value: "", label: allLabel }, ...matching];
8284
+ const pick = (option) => {
8285
+ onChange(option.value === "" ? null : option.value);
8286
+ onClose();
8287
+ };
8288
+ const handleListKeyDown = (event) => {
8289
+ var _a, _b, _c;
8290
+ const first = (_a = listRef.current) == null ? void 0 : _a.querySelector('[role="menuitemradio"]');
8291
+ if (searchable && event.key === "ArrowUp" && document.activeElement === first) {
8292
+ event.preventDefault();
8293
+ event.stopPropagation();
8294
+ (_c = (_b = searchRef.current) == null ? void 0 : _b.querySelector("input")) == null ? void 0 : _c.focus();
8295
+ }
8296
+ };
8297
+ const focusFirst = () => {
8298
+ var _a, _b;
8299
+ return (_b = (_a = listRef.current) == null ? void 0 : _a.querySelector('[role="menuitemradio"]')) == null ? void 0 : _b.focus();
8300
+ };
8301
+ return /* @__PURE__ */ jsxs41(Box46, { sx: { minWidth: 240, maxWidth: 320 }, children: [
8302
+ searchable && /* @__PURE__ */ jsx113(Box46, { ref: searchRef, sx: { p: 1 }, children: /* @__PURE__ */ jsx113(
8303
+ SearchBarBase,
8304
+ {
8305
+ autoFocus: true,
8306
+ fullWidth: true,
8307
+ value: query,
8308
+ placeholder: searchPlaceholder,
8309
+ "aria-label": label,
8310
+ onChange: (event) => setQuery(event.target.value),
8311
+ onKeyDown: (event) => {
8312
+ if (event.key === "ArrowDown") {
8313
+ event.preventDefault();
8314
+ focusFirst();
8315
+ } else if (event.key === "Enter" && matching.length > 0) {
8316
+ event.preventDefault();
8317
+ pick(matching[0]);
8318
+ }
8319
+ },
8320
+ sx: {
8321
+ "& .MuiOutlinedInput-root": { height: 32, fontSize: "0.8125rem" },
8322
+ "& .MuiInputBase-input": { padding: "4px 8px" }
8323
+ }
8324
+ }
8325
+ ) }),
8326
+ /* @__PURE__ */ jsxs41(MenuList3, { ref: listRef, id: listId, "aria-label": label, autoFocusItem: !searchable, onKeyDownCapture: handleListKeyDown, sx: { py: 0.5, maxHeight: 320, overflow: "auto" }, children: [
8327
+ shown.map((option) => {
8328
+ const selected = option.value === current;
8329
+ return /* @__PURE__ */ jsxs41(
8330
+ MenuItem8,
8331
+ {
8332
+ role: "menuitemradio",
8333
+ "aria-checked": selected,
8334
+ selected,
8335
+ onClick: () => pick(option),
8336
+ sx: { justifyContent: "space-between", gap: 2 },
8337
+ children: [
8338
+ option.label,
8339
+ selected && /* @__PURE__ */ jsx113(Check, { size: 16, "aria-hidden": "true" })
8340
+ ]
8341
+ },
8342
+ option.value
8343
+ );
8344
+ }),
8345
+ needle !== "" && matching.length === 0 && // A list item, not a paragraph, because it sits directly in the list.
8346
+ /* @__PURE__ */ jsx113(Typography25, { component: "li", role: "presentation", variant: "body2", color: "text.secondary", sx: { px: 2, py: 1, listStyle: "none" }, children: noMatchLabel })
8347
+ ] })
8348
+ ] });
8349
+ };
8350
+ var ListingTableFilterMenu = (_a) => {
8351
+ var _b = _a, {
8352
+ open,
8353
+ anchorEl,
8354
+ onClose
8355
+ } = _b, content = __objRest(_b, [
8356
+ "open",
8357
+ "anchorEl",
8358
+ "onClose"
8359
+ ]);
8360
+ return /* @__PURE__ */ jsx113(
8361
+ Popover5,
8362
+ {
8363
+ anchorEl,
8364
+ open,
8365
+ onClose,
8366
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
8367
+ children: /* @__PURE__ */ jsx113(MenuContent, __spreadValues({ open, onClose }, content))
8368
+ }
8369
+ );
8370
+ };
8371
+ ListingTableFilterMenu.displayName = "ListingTableFilterMenu";
8372
+
8373
+ // src/components/ListingTable/shared/ListingTableFilter.tsx
8374
+ import { Fragment as Fragment19, jsx as jsx114, jsxs as jsxs42 } from "react/jsx-runtime";
8375
+ var ListingTableFilter = React46.forwardRef(
8376
+ function ListingTableFilter2(_a, ref) {
8377
+ var _b = _a, {
8378
+ field,
8379
+ options,
8380
+ value: valueProp,
8381
+ onChange: onChangeProp,
8382
+ searchable = false,
8383
+ label = "Filter",
8384
+ allLabel = "Any",
8385
+ searchPlaceholder = "Search",
8386
+ noMatchLabel = "No matches",
8387
+ alwaysShowIcon = false,
8388
+ onClick,
8389
+ sx
8390
+ } = _b, buttonProps = __objRest(_b, [
8391
+ "field",
8392
+ "options",
8393
+ "value",
8394
+ "onChange",
8395
+ "searchable",
8396
+ "label",
8397
+ "allLabel",
8398
+ "searchPlaceholder",
8399
+ "noMatchLabel",
8400
+ "alwaysShowIcon",
8401
+ "onClick",
8402
+ "sx"
8403
+ ]);
8404
+ var _a2;
8405
+ const tableContext = useListingTable();
8406
+ const [anchor, setAnchor] = React46.useState(null);
8407
+ const listId = React46.useId();
8408
+ const fromContext = field !== void 0 ? (_a2 = tableContext == null ? void 0 : tableContext.filters) == null ? void 0 : _a2[field] : void 0;
8409
+ const value = valueProp !== void 0 ? valueProp : typeof fromContext === "string" ? fromContext : null;
8410
+ const applied = value !== null && value !== "";
8411
+ const change = (next) => {
8412
+ if (onChangeProp) onChangeProp(next);
8413
+ else if (field && (tableContext == null ? void 0 : tableContext.onFilterChange)) tableContext.onFilterChange(field, next);
8414
+ else {
8415
+ console.warn(
8416
+ "ListingTable.Filter: a choice was picked but nothing handles it. Pass `onChange`, or give `field` inside a ListingTable.Provider that has `onFilterChange`."
8417
+ );
8418
+ }
8419
+ };
8420
+ const resting = applied ? 1 : alwaysShowIcon ? 0.5 : 0;
8421
+ return /* @__PURE__ */ jsxs42(Fragment19, { children: [
8422
+ /* @__PURE__ */ jsx114(Tooltip10, { title: label, describeChild: true, children: /* @__PURE__ */ jsx114("span", { children: /* @__PURE__ */ jsx114(
8423
+ IconButton9,
8424
+ __spreadProps(__spreadValues({
8425
+ size: "small",
8426
+ color: applied ? "primary" : "default"
8427
+ }, buttonProps), {
8428
+ ref,
8429
+ "aria-label": label,
8430
+ "aria-haspopup": "menu",
8431
+ "aria-expanded": Boolean(anchor),
8432
+ "aria-controls": anchor ? listId : void 0,
8433
+ onClick: (event) => {
8434
+ onClick == null ? void 0 : onClick(event);
8435
+ setAnchor(event.currentTarget);
8436
+ },
8437
+ sx: [
8438
+ (theme) => ({
8439
+ p: 0.25,
8440
+ opacity: resting,
8441
+ transition: theme.transitions.create("opacity", {
8442
+ duration: theme.transitions.duration.shorter
8443
+ }),
8444
+ ".MuiTableCell-root:hover &": { opacity: applied ? 1 : 0.5 },
8445
+ // Inside a cell, the full-strength states repeat under the cell, so they match the
8446
+ // specificity of the cell-hover rule above and come after it.
8447
+ [[
8448
+ "&:hover",
8449
+ "&:focus-visible",
8450
+ '&[aria-expanded="true"]',
8451
+ ".MuiTableCell-root &:hover",
8452
+ ".MuiTableCell-root &:focus-visible",
8453
+ '.MuiTableCell-root &[aria-expanded="true"]',
8454
+ ".MuiTableCell-root:focus-within &"
8455
+ ].join(", ")]: {
8456
+ opacity: 1
8457
+ },
8458
+ "@media (hover: none)": { opacity: applied ? 1 : 0.5 }
8459
+ }),
8460
+ ...Array.isArray(sx) ? sx : [sx]
8461
+ ],
8462
+ children: /* @__PURE__ */ jsx114(ListFilter2, { size: 14 })
8463
+ })
8464
+ ) }) }),
8465
+ /* @__PURE__ */ jsx114(
8466
+ ListingTableFilterMenu,
8467
+ {
8468
+ open: Boolean(anchor),
8469
+ anchorEl: anchor,
8470
+ onClose: () => setAnchor(null),
8471
+ options,
8472
+ value,
8473
+ onChange: change,
8474
+ searchable,
8475
+ label,
8476
+ listId,
8477
+ allLabel,
8478
+ searchPlaceholder,
8479
+ noMatchLabel
8480
+ }
8481
+ )
8482
+ ] });
8483
+ }
8484
+ );
8485
+ ListingTableFilter.displayName = "ListingTableFilter";
8486
+ var ListingTableFilter_default = ListingTableFilter;
8487
+
7910
8488
  // src/components/ListingTable/shared/ListingTableRowActions.tsx
7911
- import Box45 from "@mui/material/Box";
7912
- import { jsx as jsx112 } from "react/jsx-runtime";
8489
+ import Box47 from "@mui/material/Box";
8490
+ import { jsx as jsx115 } from "react/jsx-runtime";
7913
8491
  var alignmentMap = {
7914
8492
  left: "flex-start",
7915
8493
  center: "center",
@@ -7921,8 +8499,8 @@ function ListingTableRowActions({
7921
8499
  align = "right",
7922
8500
  sx
7923
8501
  }) {
7924
- return /* @__PURE__ */ jsx112(
7925
- Box45,
8502
+ return /* @__PURE__ */ jsx115(
8503
+ Box47,
7926
8504
  {
7927
8505
  className: "table-row-actions",
7928
8506
  sx: __spreadValues(__spreadValues({
@@ -7945,9 +8523,9 @@ function ListingTableRowActions({
7945
8523
  var ListingTableRowActions_default = ListingTableRowActions;
7946
8524
 
7947
8525
  // src/components/ListingTable/shared/ListingTableCellIcon.tsx
7948
- import Box46 from "@mui/material/Box";
7949
- import Typography24 from "@mui/material/Typography";
7950
- import { Fragment as Fragment18, jsx as jsx113, jsxs as jsxs40 } from "react/jsx-runtime";
8526
+ import Box48 from "@mui/material/Box";
8527
+ import Typography26 from "@mui/material/Typography";
8528
+ import { Fragment as Fragment20, jsx as jsx116, jsxs as jsxs43 } from "react/jsx-runtime";
7951
8529
  function ListingTableCellIcon({
7952
8530
  icon,
7953
8531
  primary,
@@ -7956,8 +8534,8 @@ function ListingTableCellIcon({
7956
8534
  iconSx,
7957
8535
  sx
7958
8536
  }) {
7959
- const iconElement = /* @__PURE__ */ jsx113(
7960
- Box46,
8537
+ const iconElement = /* @__PURE__ */ jsx116(
8538
+ Box48,
7961
8539
  {
7962
8540
  sx: __spreadValues({
7963
8541
  display: "flex",
@@ -7969,9 +8547,9 @@ function ListingTableCellIcon({
7969
8547
  children: icon
7970
8548
  }
7971
8549
  );
7972
- const textContent = /* @__PURE__ */ jsxs40(Box46, { sx: { minWidth: 0, flex: 1 }, children: [
7973
- /* @__PURE__ */ jsx113(
7974
- Typography24,
8550
+ const textContent = /* @__PURE__ */ jsxs43(Box48, { sx: { minWidth: 0, flex: 1 }, children: [
8551
+ /* @__PURE__ */ jsx116(
8552
+ Typography26,
7975
8553
  {
7976
8554
  variant: "body2",
7977
8555
  component: "div",
@@ -7984,8 +8562,8 @@ function ListingTableCellIcon({
7984
8562
  children: primary
7985
8563
  }
7986
8564
  ),
7987
- secondary && /* @__PURE__ */ jsx113(
7988
- Typography24,
8565
+ secondary && /* @__PURE__ */ jsx116(
8566
+ Typography26,
7989
8567
  {
7990
8568
  variant: "caption",
7991
8569
  component: "div",
@@ -7999,8 +8577,8 @@ function ListingTableCellIcon({
7999
8577
  }
8000
8578
  )
8001
8579
  ] });
8002
- return /* @__PURE__ */ jsx113(
8003
- Box46,
8580
+ return /* @__PURE__ */ jsx116(
8581
+ Box48,
8004
8582
  {
8005
8583
  sx: __spreadValues({
8006
8584
  display: "flex",
@@ -8008,10 +8586,10 @@ function ListingTableCellIcon({
8008
8586
  gap: 1.5,
8009
8587
  minWidth: 0
8010
8588
  }, sx),
8011
- children: iconPosition === "left" ? /* @__PURE__ */ jsxs40(Fragment18, { children: [
8589
+ children: iconPosition === "left" ? /* @__PURE__ */ jsxs43(Fragment20, { children: [
8012
8590
  iconElement,
8013
8591
  textContent
8014
- ] }) : /* @__PURE__ */ jsxs40(Fragment18, { children: [
8592
+ ] }) : /* @__PURE__ */ jsxs43(Fragment20, { children: [
8015
8593
  textContent,
8016
8594
  iconElement
8017
8595
  ] })
@@ -8022,7 +8600,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
8022
8600
 
8023
8601
  // src/components/ListingTable/ListingTableProvider.tsx
8024
8602
  import { useMemo as useMemo9 } from "react";
8025
- import { jsx as jsx114 } from "react/jsx-runtime";
8603
+ import { jsx as jsx117 } from "react/jsx-runtime";
8026
8604
  function ListingTableProvider({
8027
8605
  children,
8028
8606
  // Search
@@ -8125,11 +8703,11 @@ function ListingTableProvider({
8125
8703
  loading
8126
8704
  ]
8127
8705
  );
8128
- return /* @__PURE__ */ jsx114(ListingTableContext.Provider, { value: contextValue, children });
8706
+ return /* @__PURE__ */ jsx117(ListingTableContext.Provider, { value: contextValue, children });
8129
8707
  }
8130
8708
 
8131
8709
  // src/components/ListingTable/ListingTable/ListingTable.tsx
8132
- import { jsx as jsx115 } from "react/jsx-runtime";
8710
+ import { jsx as jsx118 } from "react/jsx-runtime";
8133
8711
  var StyledTable = styled73(MuiTable, {
8134
8712
  shouldForwardProp: (prop) => {
8135
8713
  const excludedProps = ["variant", "density", "striped", "bordered"];
@@ -8183,7 +8761,7 @@ function ListingTable(_a) {
8183
8761
  "children",
8184
8762
  "sx"
8185
8763
  ]);
8186
- return /* @__PURE__ */ jsx115(
8764
+ return /* @__PURE__ */ jsx118(
8187
8765
  StyledTable,
8188
8766
  __spreadProps(__spreadValues({
8189
8767
  variant,
@@ -8209,15 +8787,16 @@ var ListingTableCompound = Object.assign(ListingTable, {
8209
8787
  EmptyState: ListingTableEmptyState_default,
8210
8788
  Toolbar: ListingTableToolbar_default,
8211
8789
  SortLabel: ListingTableSortLabel_default,
8790
+ Filter: ListingTableFilter_default,
8212
8791
  DensityControl: ListingTableDensityControl_default,
8213
8792
  DataGrid: ListingTableDataGrid_default
8214
8793
  });
8215
8794
  var ListingTable_default = ListingTableCompound;
8216
8795
 
8217
8796
  // src/animations/ParticleBackground/ParticleBackground.tsx
8218
- import { useEffect as useEffect8, useRef as useRef4 } from "react";
8797
+ import { useEffect as useEffect8, useRef as useRef6 } from "react";
8219
8798
  import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
8220
- import { jsx as jsx116 } from "react/jsx-runtime";
8799
+ import { jsx as jsx119 } from "react/jsx-runtime";
8221
8800
  var ParticleBackground = ({
8222
8801
  opacity = 0.5,
8223
8802
  baseDensity = 0.12,
@@ -8229,7 +8808,7 @@ var ParticleBackground = ({
8229
8808
  repelStrength = 0.35,
8230
8809
  clickBurst = 120
8231
8810
  }) => {
8232
- const canvasRef = useRef4(null);
8811
+ const canvasRef = useRef6(null);
8233
8812
  const { mode } = useColorScheme4();
8234
8813
  useEffect8(() => {
8235
8814
  const canvas = canvasRef.current;
@@ -8428,7 +9007,7 @@ var ParticleBackground = ({
8428
9007
  cancelAnimationFrame(animationFrameId);
8429
9008
  };
8430
9009
  }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
8431
- return /* @__PURE__ */ jsx116(
9010
+ return /* @__PURE__ */ jsx119(
8432
9011
  "canvas",
8433
9012
  {
8434
9013
  ref: canvasRef,
@@ -8457,44 +9036,44 @@ function useThemeContent(contentMap, fallback) {
8457
9036
  var useThemeContent_default = useThemeContent;
8458
9037
 
8459
9038
  // src/hooks/useNotifications/useNotifications.ts
8460
- import * as React44 from "react";
9039
+ import * as React47 from "react";
8461
9040
  var generateId = () => {
8462
9041
  return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
8463
9042
  };
8464
9043
  var useNotifications = (options = {}) => {
8465
9044
  const { initialNotifications = [] } = options;
8466
- const [notifications, setNotifications] = React44.useState(
9045
+ const [notifications, setNotifications] = React47.useState(
8467
9046
  initialNotifications
8468
9047
  );
8469
- const markRead = React44.useCallback((id) => {
9048
+ const markRead = React47.useCallback((id) => {
8470
9049
  setNotifications(
8471
9050
  (prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
8472
9051
  );
8473
9052
  }, []);
8474
- const dismiss = React44.useCallback((id) => {
9053
+ const dismiss = React47.useCallback((id) => {
8475
9054
  setNotifications((prev) => prev.filter((n) => n.id !== id));
8476
9055
  }, []);
8477
- const markAllRead = React44.useCallback(() => {
9056
+ const markAllRead = React47.useCallback(() => {
8478
9057
  setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
8479
9058
  }, []);
8480
- const clearAll = React44.useCallback(() => {
9059
+ const clearAll = React47.useCallback(() => {
8481
9060
  setNotifications([]);
8482
9061
  }, []);
8483
- const add = React44.useCallback((notification) => {
9062
+ const add = React47.useCallback((notification) => {
8484
9063
  const newNotification = __spreadProps(__spreadValues({}, notification), {
8485
9064
  id: generateId()
8486
9065
  });
8487
9066
  setNotifications((prev) => [newNotification, ...prev]);
8488
9067
  }, []);
8489
- const unreadCount = React44.useMemo(
9068
+ const unreadCount = React47.useMemo(
8490
9069
  () => notifications.filter((n) => !n.read).length,
8491
9070
  [notifications]
8492
9071
  );
8493
- const unreadNotifications = React44.useMemo(
9072
+ const unreadNotifications = React47.useMemo(
8494
9073
  () => notifications.filter((n) => !n.read),
8495
9074
  [notifications]
8496
9075
  );
8497
- const actions = React44.useMemo(
9076
+ const actions = React47.useMemo(
8498
9077
  () => ({
8499
9078
  markRead,
8500
9079
  dismiss,
@@ -8518,13 +9097,13 @@ export * from "@mui/material";
8518
9097
  import * as colors from "@mui/material/colors";
8519
9098
  import * as DataGrid2 from "@mui/x-data-grid";
8520
9099
  import * as DatePickers from "@mui/x-date-pickers";
8521
- import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
9100
+ import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
8522
9101
  import * as TreeView from "@mui/x-tree-view";
8523
9102
  var version = package_default.version;
8524
9103
  export {
8525
9104
  AcrylicOrangeTheme_default as AcrylicOrangeTheme,
8526
9105
  AcrylicPurpleTheme_default as AcrylicPurpleTheme,
8527
- AdapterDateFns,
9106
+ AdapterDateFns2 as AdapterDateFns,
8528
9107
  AppBreadcrumbs,
8529
9108
  AppShell,
8530
9109
  AppSwitcher,
@@ -8562,6 +9141,7 @@ export {
8562
9141
  StatCard_default as StatCard,
8563
9142
  ThemeSelect,
8564
9143
  ThemeSwitcher,
9144
+ TimeRangeFilter_default as TimeRangeFilter,
8565
9145
  TreeView,
8566
9146
  UserMenu,
8567
9147
  WSO2Theme_default as WSO2Theme,