@wso2/oxygen-ui 0.13.1 → 0.15.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
@@ -472,7 +472,7 @@ var init_createOxygenTheme = __esm({
472
472
  // package.json
473
473
  var package_default = {
474
474
  name: "@wso2/oxygen-ui",
475
- version: "0.13.1",
475
+ version: "0.15.0",
476
476
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
477
477
  type: "module",
478
478
  main: "./dist/index.js",
@@ -3859,16 +3859,613 @@ Header.Actions = HeaderActions;
3859
3859
  Header.Spacer = HeaderSpacer;
3860
3860
  Header.displayName = "Header";
3861
3861
 
3862
+ // src/components/AppSwitcher/AppSwitcher.tsx
3863
+ import * as React18 from "react";
3864
+ import Popover2 from "@mui/material/Popover";
3865
+ import { styled as styled27 } from "@mui/material/styles";
3866
+
3867
+ // src/components/AppSwitcher/context.ts
3868
+ import * as React13 from "react";
3869
+ var AppSwitcherContext = React13.createContext(null);
3870
+ var useAppSwitcher = () => {
3871
+ const context = React13.useContext(AppSwitcherContext);
3872
+ if (!context) {
3873
+ throw new Error("AppSwitcher sub-components must be used within an AppSwitcher component");
3874
+ }
3875
+ return context;
3876
+ };
3877
+ AppSwitcherContext.displayName = "AppSwitcher.Context";
3878
+ var AppSwitcherFooterContext = React13.createContext(false);
3879
+ AppSwitcherFooterContext.displayName = "AppSwitcher.FooterContext";
3880
+
3881
+ // src/components/AppSwitcher/AppSwitcherTrigger.tsx
3882
+ import * as React14 from "react";
3883
+ import IconButton4 from "@mui/material/IconButton";
3884
+ import Tooltip3 from "@mui/material/Tooltip";
3885
+ import { styled as styled23 } from "@mui/material/styles";
3886
+ import { Grip } from "@wso2/oxygen-ui-icons-react";
3887
+ import { jsx as jsx36 } from "react/jsx-runtime";
3888
+ var DEFAULT_LABEL = "Switch Platforms";
3889
+ var AppSwitcherTriggerRoot = styled23(IconButton4, {
3890
+ name: "MuiAppSwitcher",
3891
+ slot: "Trigger"
3892
+ })(({ theme }) => ({
3893
+ // The trigger stays a pointer once the popover is open: it is still a live
3894
+ // control, and a second click dismisses the switcher. Stated explicitly so a
3895
+ // future `aria-expanded` style cannot drop it back to the default arrow.
3896
+ cursor: "pointer",
3897
+ '&[aria-expanded="true"]': {
3898
+ backgroundColor: (theme.vars || theme).palette.action.selected,
3899
+ color: (theme.vars || theme).palette.text.primary,
3900
+ cursor: "pointer"
3901
+ }
3902
+ }));
3903
+ var AppSwitcherTrigger = React14.forwardRef(
3904
+ function AppSwitcherTrigger2(_a, ref) {
3905
+ var _b = _a, { label = DEFAULT_LABEL, icon, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["label", "icon", "onClick", "aria-label"]);
3906
+ const { open, popoverId, handleOpen } = useAppSwitcher();
3907
+ const resolvedLabel = label.trim().length > 0 ? label : DEFAULT_LABEL;
3908
+ const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : resolvedLabel;
3909
+ return /* @__PURE__ */ jsx36(Tooltip3, { title: resolvedLabel, children: /* @__PURE__ */ jsx36(
3910
+ AppSwitcherTriggerRoot,
3911
+ __spreadProps(__spreadValues({}, props), {
3912
+ ref,
3913
+ onClick: (event) => {
3914
+ handleOpen(event);
3915
+ onClick == null ? void 0 : onClick(event);
3916
+ },
3917
+ "aria-label": resolvedAriaLabel,
3918
+ "aria-controls": open ? popoverId : void 0,
3919
+ "aria-haspopup": "true",
3920
+ "aria-expanded": open,
3921
+ children: /* @__PURE__ */ jsx36("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx36(Grip, { size: 24 }) })
3922
+ })
3923
+ ) });
3924
+ }
3925
+ );
3926
+ AppSwitcherTrigger.displayName = "AppSwitcher.Trigger";
3927
+
3928
+ // src/components/AppSwitcher/AppSwitcherSection.tsx
3929
+ import * as React16 from "react";
3930
+ import Box14 from "@mui/material/Box";
3931
+ import Skeleton from "@mui/material/Skeleton";
3932
+ import Typography9 from "@mui/material/Typography";
3933
+ import { styled as styled25 } from "@mui/material/styles";
3934
+
3935
+ // src/components/AppSwitcher/AppSwitcherApp.tsx
3936
+ import * as React15 from "react";
3937
+ import Box13 from "@mui/material/Box";
3938
+ import Card2 from "@mui/material/Card";
3939
+ import ButtonBase2 from "@mui/material/ButtonBase";
3940
+ import CircularProgress from "@mui/material/CircularProgress";
3941
+ import Tooltip4 from "@mui/material/Tooltip";
3942
+ import Typography8 from "@mui/material/Typography";
3943
+ import { styled as styled24 } from "@mui/material/styles";
3944
+
3945
+ // src/components/AppSwitcher/brand.ts
3946
+ var APP_SWITCHER_BRAND = {
3947
+ /** Full-strength WSO2 orange. Decorative surfaces only. */
3948
+ main: "#FF7300",
3949
+ /**
3950
+ * Darker orange reserved for the focus ring and the current app's border,
3951
+ * where 3:1 against the card surface is required. Do not swap it back to
3952
+ * `main`.
3953
+ */
3954
+ focus: "#E56800",
3955
+ /** Faded orange for the mark of a platform that is not yet available. */
3956
+ surfaceMark: "#FFC199"
3957
+ };
3958
+
3959
+ // src/components/AppSwitcher/url.ts
3960
+ var SAFE_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:"]);
3961
+ var RELATIVE_BASE = "http://relative.invalid";
3962
+ var isSafeAppUrl = (url) => {
3963
+ try {
3964
+ return SAFE_PROTOCOLS.has(new URL(url, RELATIVE_BASE).protocol);
3965
+ } catch (e) {
3966
+ return false;
3967
+ }
3968
+ };
3969
+
3970
+ // src/components/AppSwitcher/AppSwitcherApp.tsx
3971
+ import { WSO2 } from "@wso2/oxygen-ui-icons-react";
3972
+ import { jsx as jsx37, jsxs as jsxs11 } from "react/jsx-runtime";
3973
+ var DEFAULT_UNAVAILABLE_LABEL = "Coming soon";
3974
+ var APP_CARD_HEIGHT = {
3975
+ platform: 13,
3976
+ manage: 9
3977
+ };
3978
+ var AppSwitcherAppRoot = styled24(Card2, {
3979
+ name: "MuiAppSwitcher",
3980
+ slot: "App",
3981
+ shouldForwardProp: (prop) => prop !== "ownerState"
3982
+ })(({ theme, ownerState }) => {
3983
+ const accent = APP_SWITCHER_BRAND.main;
3984
+ const manage = ownerState.tone === "manage";
3985
+ const interactive = !ownerState.disabled && !ownerState.busy;
3986
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
3987
+ display: "flex",
3988
+ flexDirection: "column",
3989
+ alignItems: "center",
3990
+ justifyContent: "center",
3991
+ // The manage row is a denser, secondary version of the same card: a smaller
3992
+ // mark, tighter gap and less height, so it reads as settings rather than as
3993
+ // another row of products.
3994
+ gap: theme.spacing(manage ? 0.75 : 1.25),
3995
+ width: "100%",
3996
+ // A fixed height rather than a floor, so every card in the switcher is the
3997
+ // same size whether its name runs to one line or two. The name itself is
3998
+ // clamped to two lines, so nothing can outgrow the box.
3999
+ height: theme.spacing(APP_CARD_HEIGHT[ownerState.tone]),
4000
+ padding: manage ? theme.spacing(1, 1) : theme.spacing(1.25, 1),
4001
+ textAlign: "center",
4002
+ // A navigable card renders as an `<a>`, which underlines its text by
4003
+ // default. The card is the link target, not the words, so the underline is
4004
+ // cleared here rather than on the name alone.
4005
+ textDecoration: "none",
4006
+ transition: theme.transitions.create(
4007
+ ["border-color", "box-shadow", "background-color", "transform"],
4008
+ { duration: theme.transitions.duration.shorter }
4009
+ ),
4010
+ "&.MuiCard-root": {
4011
+ borderColor: (theme.vars || theme).palette.divider,
4012
+ backgroundColor: (theme.vars || theme).palette.background.paper
4013
+ }
4014
+ }, ownerState.disabled && {
4015
+ cursor: "not-allowed",
4016
+ "&.MuiCard-root": {
4017
+ borderColor: (theme.vars || theme).palette.divider,
4018
+ backgroundColor: (theme.vars || theme).palette.action.hover
4019
+ }
4020
+ }), ownerState.current && {
4021
+ "&.MuiCard-root": {
4022
+ borderColor: APP_SWITCHER_BRAND.focus
4023
+ }
4024
+ }), ownerState.busy && {
4025
+ cursor: "progress"
4026
+ }), {
4027
+ "&:hover": __spreadValues({}, interactive && {
4028
+ // Keep the current border on hover; `accent` would lower its contrast.
4029
+ borderColor: ownerState.current ? APP_SWITCHER_BRAND.focus : accent,
4030
+ boxShadow: theme.shadows[2],
4031
+ transform: "translateY(-2px)"
4032
+ }),
4033
+ // MUI only adds `.Mui-focusVisible` on ButtonBase; anchors and consumer
4034
+ // components need the native selector to get the same ring.
4035
+ "&.Mui-focusVisible, &:focus-visible": {
4036
+ // The focus ring uses the darker brand token so it clears the 3:1 that
4037
+ // WCAG 2.1 SC 1.4.11 asks of an author-defined focus indicator.
4038
+ outline: `2px solid ${APP_SWITCHER_BRAND.focus}`,
4039
+ outlineOffset: 2
4040
+ },
4041
+ // Motion is decoration here; the border and shadow still carry the state.
4042
+ "@media (prefers-reduced-motion: reduce)": {
4043
+ transition: "none",
4044
+ "&:hover": {
4045
+ transform: "none"
4046
+ }
4047
+ }
4048
+ });
4049
+ });
4050
+ var AppSwitcherAppIcon = styled24(Box13, {
4051
+ name: "MuiAppSwitcher",
4052
+ slot: "AppIcon",
4053
+ shouldForwardProp: (prop) => prop !== "ownerState"
4054
+ })(({ theme, ownerState }) => {
4055
+ const manage = ownerState.tone === "manage";
4056
+ return __spreadProps(__spreadValues(__spreadProps(__spreadValues({
4057
+ display: "inline-flex",
4058
+ alignItems: "center",
4059
+ justifyContent: "center",
4060
+ flexShrink: 0
4061
+ }, manage && {
4062
+ width: theme.spacing(3.5),
4063
+ height: theme.spacing(3.5)
4064
+ }), {
4065
+ borderRadius: "50%",
4066
+ backgroundColor: manage ? (theme.vars || theme).palette.action.hover : "transparent",
4067
+ // The WSO2 mark is brand artwork rather than a themed accent, so it stays
4068
+ // orange; manage glyphs are neutral so they read as settings.
4069
+ color: manage ? (theme.vars || theme).palette.text.secondary : APP_SWITCHER_BRAND.main
4070
+ }), ownerState.disabled && {
4071
+ color: manage ? (theme.vars || theme).palette.text.disabled : APP_SWITCHER_BRAND.surfaceMark
4072
+ }), {
4073
+ "& svg": {
4074
+ display: "block"
4075
+ }
4076
+ });
4077
+ });
4078
+ var AppSwitcherAppName = styled24(Typography8, {
4079
+ name: "MuiAppSwitcher",
4080
+ slot: "AppName",
4081
+ shouldForwardProp: (prop) => prop !== "ownerState"
4082
+ })(({ theme, ownerState }) => ({
4083
+ // Both rows take the same size; the manage row stays secondary through its
4084
+ // lighter weight and smaller mark rather than through a smaller label.
4085
+ fontSize: theme.typography.body2.fontSize,
4086
+ fontWeight: ownerState.tone === "manage" ? theme.typography.fontWeightRegular : theme.typography.fontWeightMedium,
4087
+ lineHeight: 1.35,
4088
+ // Grey rather than full-strength text: the mark carries the card, and the
4089
+ // names sit a step back from it.
4090
+ color: ownerState.disabled ? (theme.vars || theme).palette.text.disabled : (theme.vars || theme).palette.text.secondary,
4091
+ // `minmax(0, 1fr)` grid tracks still let a long unbroken name push the card
4092
+ // wider, so wrap rather than overflow.
4093
+ overflowWrap: "anywhere",
4094
+ // The card is a fixed height, so a long name is clamped instead of spilling
4095
+ // past the border. The manage row is sized for a single line, the platform
4096
+ // row for two.
4097
+ display: "-webkit-box",
4098
+ WebkitBoxOrient: "vertical",
4099
+ WebkitLineClamp: ownerState.tone === "manage" ? 1 : 2,
4100
+ overflow: "hidden"
4101
+ }));
4102
+ var isModifiedClick = (event) => event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
4103
+ var AppSwitcherApp = React15.forwardRef(
4104
+ function AppSwitcherApp2({
4105
+ id,
4106
+ name,
4107
+ url,
4108
+ icon,
4109
+ tone: toneProp,
4110
+ disabled: disabledProp = false,
4111
+ tooltip: tooltipProp,
4112
+ component,
4113
+ componentProps,
4114
+ target: targetProp,
4115
+ current: currentProp,
4116
+ busy = false,
4117
+ onClick
4118
+ }, ref) {
4119
+ var _a;
4120
+ const inFooter = React15.useContext(AppSwitcherFooterContext);
4121
+ const tone = toneProp != null ? toneProp : inFooter ? "manage" : "platform";
4122
+ const switcher = React15.useContext(AppSwitcherContext);
4123
+ const current = currentProp != null ? currentProp : id !== void 0 && id === (switcher == null ? void 0 : switcher.currentAppId);
4124
+ const normalizedUrl = typeof url === "string" && url.trim() === "" ? null : url;
4125
+ const unsafeUrl = Boolean(normalizedUrl) && !isSafeAppUrl(normalizedUrl);
4126
+ const safeUrl = unsafeUrl ? void 0 : normalizedUrl || void 0;
4127
+ React15.useEffect(() => {
4128
+ if (unsafeUrl) {
4129
+ console.warn(
4130
+ `AppSwitcher.App: ignored the url of "${name}" because only http:, https: and relative URLs are allowed. The card renders disabled.`
4131
+ );
4132
+ }
4133
+ }, [unsafeUrl, name]);
4134
+ const unavailable = normalizedUrl === null && !onClick && !component;
4135
+ const disabled = disabledProp || unavailable || unsafeUrl;
4136
+ const tooltip = tooltipProp != null ? tooltipProp : unavailable ? (_a = switcher == null ? void 0 : switcher.unavailableLabel) != null ? _a : DEFAULT_UNAVAILABLE_LABEL : void 0;
4137
+ const target = targetProp != null ? targetProp : current ? "_self" : "_blank";
4138
+ const effectiveTarget = typeof (componentProps == null ? void 0 : componentProps.target) === "string" ? componentProps.target : target;
4139
+ const handleClick = (event) => {
4140
+ if (disabled || busy) {
4141
+ event.preventDefault();
4142
+ return;
4143
+ }
4144
+ onClick == null ? void 0 : onClick(event);
4145
+ if (current && effectiveTarget !== "_blank" && !isModifiedClick(event)) {
4146
+ switcher == null ? void 0 : switcher.handleClose();
4147
+ }
4148
+ };
4149
+ const ownerState = { disabled, tone, current, busy };
4150
+ const markSize = tone === "manage" ? 16 : 32;
4151
+ const canNavigate = !disabled && !busy;
4152
+ const renderAsLink = Boolean(safeUrl) && canNavigate;
4153
+ const linkProps = __spreadValues(__spreadValues({}, safeUrl && { href: safeUrl }), effectiveTarget && { target: effectiveTarget });
4154
+ const relProps = effectiveTarget === "_blank" ? { rel: "noopener noreferrer" } : {};
4155
+ const anchorProps = component && canNavigate ? __spreadValues(__spreadValues(__spreadValues({ component }, componentProps), linkProps), relProps) : renderAsLink ? __spreadValues(__spreadValues({ component: "a" }, linkProps), relProps) : { component: ButtonBase2 };
4156
+ const handleKeyDown = (event) => {
4157
+ if ((disabled || busy) && (event.key === "Enter" || event.key === " ")) {
4158
+ event.preventDefault();
4159
+ }
4160
+ };
4161
+ const card = /* @__PURE__ */ jsxs11(
4162
+ AppSwitcherAppRoot,
4163
+ __spreadProps(__spreadValues({}, anchorProps), {
4164
+ ref,
4165
+ ownerState,
4166
+ variant: "outlined",
4167
+ onClick: handleClick,
4168
+ onKeyDown: handleKeyDown,
4169
+ "data-app-switcher-app": "",
4170
+ "aria-disabled": disabled ? "true" : void 0,
4171
+ "aria-busy": busy ? "true" : void 0,
4172
+ "aria-current": current ? "page" : void 0,
4173
+ children: [
4174
+ /* @__PURE__ */ jsx37(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
4175
+ // Same size as the mark, so the card does not reflow.
4176
+ /* @__PURE__ */ jsx37(CircularProgress, { color: "inherit", size: markSize, thickness: 5 })
4177
+ ) : icon != null ? icon : /* @__PURE__ */ jsx37(WSO2, { size: markSize }) }),
4178
+ /* @__PURE__ */ jsx37(AppSwitcherAppName, { ownerState, children: name })
4179
+ ]
4180
+ })
4181
+ );
4182
+ return tooltip ? /* @__PURE__ */ jsx37(Tooltip4, { title: tooltip, describeChild: true, children: card }) : card;
4183
+ }
4184
+ );
4185
+ AppSwitcherApp.displayName = "AppSwitcher.App";
4186
+
4187
+ // src/components/AppSwitcher/AppSwitcherSection.tsx
4188
+ import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
4189
+ var AppSwitcherSectionRoot = styled25(Box14, {
4190
+ name: "MuiAppSwitcher",
4191
+ slot: "Section"
4192
+ })(({ theme }) => ({
4193
+ padding: theme.spacing(2)
4194
+ }));
4195
+ var AppSwitcherSectionLabel = styled25(Typography9, {
4196
+ name: "MuiAppSwitcher",
4197
+ slot: "SectionLabel"
4198
+ })(({ theme }) => ({
4199
+ color: (theme.vars || theme).palette.text.secondary,
4200
+ fontSize: theme.typography.caption.fontSize,
4201
+ fontWeight: theme.typography.fontWeightBold,
4202
+ // Wide tracking so the headings read as quiet labels rather than as titles.
4203
+ letterSpacing: "0.1em",
4204
+ textTransform: "uppercase",
4205
+ marginBottom: theme.spacing(1.5)
4206
+ }));
4207
+ var AppSwitcherSectionGrid = styled25("ul", {
4208
+ name: "MuiAppSwitcher",
4209
+ slot: "SectionGrid",
4210
+ shouldForwardProp: (prop) => prop !== "ownerState"
4211
+ })(({ theme, ownerState }) => ({
4212
+ display: "grid",
4213
+ gap: theme.spacing(1.5),
4214
+ gridTemplateColumns: "1fr",
4215
+ listStyle: "none",
4216
+ margin: 0,
4217
+ padding: 0,
4218
+ [theme.breakpoints.up("sm")]: {
4219
+ gridTemplateColumns: `repeat(${ownerState.columns}, minmax(0, 1fr))`
4220
+ },
4221
+ "& > li": {
4222
+ display: "contents"
4223
+ }
4224
+ }));
4225
+ var AppSwitcherAppSkeleton = styled25(Skeleton, {
4226
+ name: "MuiAppSwitcher",
4227
+ slot: "AppSkeleton",
4228
+ shouldForwardProp: (prop) => prop !== "ownerState"
4229
+ })(({ theme, ownerState }) => ({
4230
+ width: "100%",
4231
+ height: theme.spacing(APP_CARD_HEIGHT[ownerState.tone]),
4232
+ // The pulse is decoration; the placeholder alone signals loading.
4233
+ "@media (prefers-reduced-motion: reduce)": {
4234
+ animation: "none"
4235
+ }
4236
+ }));
4237
+ var renderAppItems = (items, { missingUrlIsUnavailable }) => items.map((_a, index) => {
4238
+ var _b = _a, { key, url } = _b, item = __objRest(_b, ["key", "url"]);
4239
+ var _a2, _b2;
4240
+ return /* @__PURE__ */ jsx38(
4241
+ AppSwitcherApp,
4242
+ __spreadProps(__spreadValues({}, item), {
4243
+ url: url === void 0 && missingUrlIsUnavailable ? null : url
4244
+ }),
4245
+ (_b2 = (_a2 = item.id) != null ? _a2 : key) != null ? _b2 : index
4246
+ );
4247
+ });
4248
+ var AppSwitcherSection = ({
4249
+ children,
4250
+ apps,
4251
+ label,
4252
+ columns = 3,
4253
+ loading = false,
4254
+ loadingCount
4255
+ }) => {
4256
+ const labelId = React16.useId();
4257
+ const inFooter = React16.useContext(AppSwitcherFooterContext);
4258
+ const tone = inFooter ? "manage" : "platform";
4259
+ const gridRef = React16.useRef(null);
4260
+ const handleKeyDown = (event) => {
4261
+ var _a, _b;
4262
+ const keys = ["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"];
4263
+ if (!keys.includes(event.key)) {
4264
+ return;
4265
+ }
4266
+ const cards = Array.from(
4267
+ (_b = (_a = gridRef.current) == null ? void 0 : _a.querySelectorAll("[data-app-switcher-app]")) != null ? _b : []
4268
+ );
4269
+ if (cards.length === 0) {
4270
+ return;
4271
+ }
4272
+ const currentIndex = cards.indexOf(document.activeElement);
4273
+ if (currentIndex === -1) {
4274
+ return;
4275
+ }
4276
+ const firstTop = cards[0].getBoundingClientRect().top;
4277
+ const perRow = Math.max(
4278
+ 1,
4279
+ cards.filter((card) => card.getBoundingClientRect().top === firstTop).length
4280
+ );
4281
+ let nextIndex = currentIndex;
4282
+ switch (event.key) {
4283
+ case "ArrowRight":
4284
+ nextIndex = currentIndex + 1;
4285
+ break;
4286
+ case "ArrowLeft":
4287
+ nextIndex = currentIndex - 1;
4288
+ break;
4289
+ case "ArrowDown":
4290
+ nextIndex = currentIndex + perRow;
4291
+ break;
4292
+ case "ArrowUp":
4293
+ nextIndex = currentIndex - perRow;
4294
+ break;
4295
+ case "Home":
4296
+ nextIndex = 0;
4297
+ break;
4298
+ case "End":
4299
+ nextIndex = cards.length - 1;
4300
+ break;
4301
+ default:
4302
+ break;
4303
+ }
4304
+ if (nextIndex < 0 || nextIndex >= cards.length) {
4305
+ return;
4306
+ }
4307
+ event.preventDefault();
4308
+ cards[nextIndex].focus();
4309
+ };
4310
+ const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx38(
4311
+ AppSwitcherAppSkeleton,
4312
+ {
4313
+ ownerState: { tone },
4314
+ variant: "rounded",
4315
+ "aria-hidden": "true",
4316
+ "data-app-switcher-skeleton": ""
4317
+ },
4318
+ index
4319
+ )) : children != null ? children : apps && renderAppItems(apps, { missingUrlIsUnavailable: true });
4320
+ return /* @__PURE__ */ jsxs12(AppSwitcherSectionRoot, { children: [
4321
+ label && /* @__PURE__ */ jsx38(AppSwitcherSectionLabel, { id: labelId, children: label }),
4322
+ /* @__PURE__ */ jsx38(
4323
+ AppSwitcherSectionGrid,
4324
+ {
4325
+ ref: gridRef,
4326
+ ownerState: { columns },
4327
+ role: "list",
4328
+ "aria-labelledby": label ? labelId : void 0,
4329
+ "aria-busy": loading ? "true" : void 0,
4330
+ onKeyDown: handleKeyDown,
4331
+ children: React16.Children.map(
4332
+ content,
4333
+ (child) => React16.isValidElement(child) ? /* @__PURE__ */ jsx38("li", { children: child }) : child
4334
+ )
4335
+ }
4336
+ )
4337
+ ] });
4338
+ };
4339
+ AppSwitcherSection.displayName = "AppSwitcher.Section";
4340
+
4341
+ // src/components/AppSwitcher/AppSwitcherFooter.tsx
4342
+ import * as React17 from "react";
4343
+ import Box15 from "@mui/material/Box";
4344
+ import { alpha, styled as styled26 } from "@mui/material/styles";
4345
+ import { jsx as jsx39 } from "react/jsx-runtime";
4346
+ var AppSwitcherFooterRoot = styled26(Box15, {
4347
+ name: "MuiAppSwitcher",
4348
+ slot: "Footer"
4349
+ })(({ theme }) => ({
4350
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
4351
+ // A wash rather than a fill: the divider already separates the manage row, so
4352
+ // the tint only needs to hint that it is a different kind of destination.
4353
+ // `action.hover` at full strength reads as a grey block behind the cards.
4354
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.02)` : alpha(theme.palette.text.primary, 0.02)
4355
+ }));
4356
+ var AppSwitcherFooter = ({
4357
+ children,
4358
+ links,
4359
+ label = "Manage",
4360
+ columns = 3,
4361
+ loading = false,
4362
+ loadingCount
4363
+ }) => {
4364
+ const cards = children != null ? children : links && renderAppItems(links, { missingUrlIsUnavailable: false });
4365
+ if (!loading && React17.Children.toArray(cards).length === 0) {
4366
+ return null;
4367
+ }
4368
+ return /* @__PURE__ */ jsx39(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx39(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx39(
4369
+ AppSwitcherSection,
4370
+ {
4371
+ label,
4372
+ columns,
4373
+ loading,
4374
+ loadingCount,
4375
+ children: cards
4376
+ }
4377
+ ) }) });
4378
+ };
4379
+ AppSwitcherFooter.displayName = "AppSwitcher.Footer";
4380
+
4381
+ // src/components/AppSwitcher/AppSwitcher.tsx
4382
+ import { jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
4383
+ var AppSwitcherRoot = styled27(Popover2, {
4384
+ name: "MuiAppSwitcher",
4385
+ slot: "Root",
4386
+ shouldForwardProp: (prop) => prop !== "ownerState"
4387
+ })(({ theme, ownerState }) => ({
4388
+ "& .MuiPopover-paper": {
4389
+ width: `calc(100vw - ${theme.spacing(4)})`,
4390
+ maxWidth: "100%",
4391
+ marginTop: theme.spacing(1),
4392
+ overflow: "hidden",
4393
+ [theme.breakpoints.up("sm")]: {
4394
+ width: ownerState.width
4395
+ }
4396
+ }
4397
+ }));
4398
+ var AppSwitcher = ({
4399
+ children,
4400
+ width = 460,
4401
+ "aria-label": ariaLabelProp,
4402
+ sx,
4403
+ currentAppId,
4404
+ unavailableLabel
4405
+ }) => {
4406
+ const [anchorEl, setAnchorEl] = React18.useState(null);
4407
+ const open = Boolean(anchorEl);
4408
+ const popoverId = React18.useId();
4409
+ const handleOpen = React18.useCallback((event) => {
4410
+ const target = event.currentTarget;
4411
+ setAnchorEl((current) => current ? null : target);
4412
+ }, []);
4413
+ const handleClose = React18.useCallback(() => {
4414
+ setAnchorEl(null);
4415
+ }, []);
4416
+ const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp : "Applications";
4417
+ const contextValue = React18.useMemo(
4418
+ () => ({
4419
+ open,
4420
+ anchorEl,
4421
+ popoverId,
4422
+ handleOpen,
4423
+ handleClose,
4424
+ currentAppId,
4425
+ unavailableLabel
4426
+ }),
4427
+ [open, anchorEl, popoverId, handleOpen, handleClose, currentAppId, unavailableLabel]
4428
+ );
4429
+ const childrenArray = React18.Children.toArray(children);
4430
+ const triggerChild = childrenArray.find(
4431
+ (child) => React18.isValidElement(child) && child.type === AppSwitcherTrigger
4432
+ );
4433
+ const popoverChildren = childrenArray.filter((child) => child !== triggerChild);
4434
+ return /* @__PURE__ */ jsxs13(AppSwitcherContext.Provider, { value: contextValue, children: [
4435
+ triggerChild,
4436
+ /* @__PURE__ */ jsx40(
4437
+ AppSwitcherRoot,
4438
+ {
4439
+ id: popoverId,
4440
+ ownerState: { width },
4441
+ anchorEl,
4442
+ open,
4443
+ onClose: handleClose,
4444
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
4445
+ transformOrigin: { vertical: "top", horizontal: "right" },
4446
+ slotProps: { paper: { role: "dialog", "aria-label": ariaLabel } },
4447
+ sx,
4448
+ children: popoverChildren
4449
+ }
4450
+ )
4451
+ ] });
4452
+ };
4453
+ AppSwitcher.Trigger = AppSwitcherTrigger;
4454
+ AppSwitcher.Section = AppSwitcherSection;
4455
+ AppSwitcher.App = AppSwitcherApp;
4456
+ AppSwitcher.Footer = AppSwitcherFooter;
4457
+ AppSwitcher.displayName = "AppSwitcher";
4458
+
3862
4459
  // src/components/Sidebar/Sidebar.tsx
3863
- import * as React20 from "react";
3864
- import Box18 from "@mui/material/Box";
3865
- import { styled as styled35 } from "@mui/material/styles";
4460
+ import * as React26 from "react";
4461
+ import Box21 from "@mui/material/Box";
4462
+ import { styled as styled40 } from "@mui/material/styles";
3866
4463
 
3867
4464
  // src/components/Sidebar/context.ts
3868
- import * as React13 from "react";
3869
- var SidebarContext = React13.createContext(null);
4465
+ import * as React19 from "react";
4466
+ var SidebarContext = React19.createContext(null);
3870
4467
  var useSidebar = () => {
3871
- const context = React13.useContext(SidebarContext);
4468
+ const context = React19.useContext(SidebarContext);
3872
4469
  if (!context) {
3873
4470
  throw new Error("Sidebar compound components must be used within Sidebar");
3874
4471
  }
@@ -3876,12 +4473,12 @@ var useSidebar = () => {
3876
4473
  };
3877
4474
 
3878
4475
  // src/components/Sidebar/SidebarNav.tsx
3879
- import * as React14 from "react";
3880
- import Box13 from "@mui/material/Box";
4476
+ import * as React20 from "react";
4477
+ import Box16 from "@mui/material/Box";
3881
4478
  import Divider3 from "@mui/material/Divider";
3882
- import { styled as styled23 } from "@mui/material/styles";
3883
- import { jsx as jsx36, jsxs as jsxs11 } from "react/jsx-runtime";
3884
- var SidebarNavRoot = styled23(Box13, {
4479
+ import { styled as styled28 } from "@mui/material/styles";
4480
+ import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
4481
+ var SidebarNavRoot = styled28(Box16, {
3885
4482
  name: "MuiSidebar",
3886
4483
  slot: "Nav"
3887
4484
  })(({ theme }) => ({
@@ -3901,7 +4498,7 @@ var SidebarNavRoot = styled23(Box13, {
3901
4498
  backgroundColor: (theme.vars || theme).palette.action.active
3902
4499
  }
3903
4500
  }));
3904
- var SidebarNavDivider = styled23(Divider3, {
4501
+ var SidebarNavDivider = styled28(Divider3, {
3905
4502
  name: "MuiSidebar",
3906
4503
  slot: "NavDivider"
3907
4504
  })(({ theme }) => ({
@@ -3916,24 +4513,24 @@ var SidebarNav = ({
3916
4513
  sx
3917
4514
  }) => {
3918
4515
  const { collapsed } = useSidebar();
3919
- const childArray = React14.Children.toArray(children);
3920
- return /* @__PURE__ */ jsx36(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs11(React14.Fragment, { children: [
3921
- index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx36(SidebarNavDivider, {}),
4516
+ const childArray = React20.Children.toArray(children);
4517
+ return /* @__PURE__ */ jsx41(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs14(React20.Fragment, { children: [
4518
+ index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx41(SidebarNavDivider, {}),
3922
4519
  child
3923
4520
  ] }, index)) });
3924
4521
  };
3925
4522
 
3926
4523
  // src/components/Sidebar/SidebarCategory.tsx
3927
- import * as React15 from "react";
3928
- import Box14 from "@mui/material/Box";
4524
+ import * as React21 from "react";
4525
+ import Box17 from "@mui/material/Box";
3929
4526
  import List from "@mui/material/List";
3930
- import { styled as styled25 } from "@mui/material/styles";
4527
+ import { styled as styled30 } from "@mui/material/styles";
3931
4528
 
3932
4529
  // src/components/Sidebar/SidebarCategoryLabel.tsx
3933
- import Typography8 from "@mui/material/Typography";
3934
- import { styled as styled24 } from "@mui/material/styles";
3935
- import { jsx as jsx37 } from "react/jsx-runtime";
3936
- var SidebarCategoryLabelRoot = styled24(Typography8, {
4530
+ import Typography10 from "@mui/material/Typography";
4531
+ import { styled as styled29 } from "@mui/material/styles";
4532
+ import { jsx as jsx42 } from "react/jsx-runtime";
4533
+ var SidebarCategoryLabelRoot = styled29(Typography10, {
3937
4534
  name: "MuiSidebar",
3938
4535
  slot: "CategoryLabel",
3939
4536
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -3958,13 +4555,13 @@ var SidebarCategoryLabelRoot = styled24(Typography8, {
3958
4555
  }));
3959
4556
  var SidebarCategoryLabel = ({ children, sx }) => {
3960
4557
  const { collapsed } = useSidebar();
3961
- return /* @__PURE__ */ jsx37(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
4558
+ return /* @__PURE__ */ jsx42(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
3962
4559
  };
3963
4560
  SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
3964
4561
 
3965
4562
  // src/components/Sidebar/SidebarCategory.tsx
3966
- import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
3967
- var SidebarCategoryRoot = styled25(Box14, {
4563
+ import { jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
4564
+ var SidebarCategoryRoot = styled30(Box17, {
3968
4565
  name: "MuiSidebar",
3969
4566
  slot: "Category"
3970
4567
  })(({ theme }) => ({
@@ -3973,9 +4570,9 @@ var SidebarCategoryRoot = styled25(Box14, {
3973
4570
  var separateChildren = (children) => {
3974
4571
  let labelChild = null;
3975
4572
  const otherChildren = [];
3976
- React15.Children.forEach(children, (child) => {
4573
+ React21.Children.forEach(children, (child) => {
3977
4574
  var _a;
3978
- if (React15.isValidElement(child)) {
4575
+ if (React21.isValidElement(child)) {
3979
4576
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
3980
4577
  if (displayName === "SidebarCategoryLabel") {
3981
4578
  labelChild = child;
@@ -3993,16 +4590,16 @@ var SidebarCategory = ({
3993
4590
  sx
3994
4591
  }) => {
3995
4592
  const { labelChild, otherChildren } = separateChildren(children);
3996
- return /* @__PURE__ */ jsxs12(SidebarCategoryRoot, { sx, children: [
4593
+ return /* @__PURE__ */ jsxs15(SidebarCategoryRoot, { sx, children: [
3997
4594
  labelChild,
3998
- /* @__PURE__ */ jsx38(List, { disablePadding: true, children: otherChildren })
4595
+ /* @__PURE__ */ jsx43(List, { disablePadding: true, children: otherChildren })
3999
4596
  ] });
4000
4597
  };
4001
4598
  SidebarCategory.displayName = "SidebarCategory";
4002
4599
 
4003
4600
  // src/components/Sidebar/SidebarItem.tsx
4004
- import * as React18 from "react";
4005
- import Box15 from "@mui/material/Box";
4601
+ import * as React24 from "react";
4602
+ import Box18 from "@mui/material/Box";
4006
4603
  import List2 from "@mui/material/List";
4007
4604
  import ListItem from "@mui/material/ListItem";
4008
4605
  import ListItemButton from "@mui/material/ListItemButton";
@@ -4011,17 +4608,17 @@ import ListItemText2 from "@mui/material/ListItemText";
4011
4608
  import MenuItem4 from "@mui/material/MenuItem";
4012
4609
  import MenuList from "@mui/material/MenuList";
4013
4610
  import Collapse from "@mui/material/Collapse";
4014
- import Tooltip3 from "@mui/material/Tooltip";
4015
- import Popover2 from "@mui/material/Popover";
4016
- import { styled as styled29 } from "@mui/material/styles";
4611
+ import Tooltip5 from "@mui/material/Tooltip";
4612
+ import Popover3 from "@mui/material/Popover";
4613
+ import { styled as styled34 } from "@mui/material/styles";
4017
4614
  import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
4018
4615
 
4019
4616
  // src/components/Sidebar/SidebarItemContext.tsx
4020
- import * as React16 from "react";
4021
- import { jsx as jsx39 } from "react/jsx-runtime";
4022
- var SidebarItemContext = React16.createContext(null);
4617
+ import * as React22 from "react";
4618
+ import { jsx as jsx44 } from "react/jsx-runtime";
4619
+ var SidebarItemContext = React22.createContext(null);
4023
4620
  var useSidebarItemContext = () => {
4024
- const context = React16.useContext(SidebarItemContext);
4621
+ const context = React22.useContext(SidebarItemContext);
4025
4622
  if (!context) {
4026
4623
  throw new Error(
4027
4624
  "useSidebarItemContext must be used within a SidebarItem component"
@@ -4030,15 +4627,15 @@ var useSidebarItemContext = () => {
4030
4627
  return context;
4031
4628
  };
4032
4629
  var SidebarItemProvider = ({ value, children }) => {
4033
- return /* @__PURE__ */ jsx39(SidebarItemContext.Provider, { value, children });
4630
+ return /* @__PURE__ */ jsx44(SidebarItemContext.Provider, { value, children });
4034
4631
  };
4035
4632
 
4036
4633
  // src/components/Sidebar/SidebarItemIcon.tsx
4037
- import * as React17 from "react";
4634
+ import * as React23 from "react";
4038
4635
  import ListItemIcon from "@mui/material/ListItemIcon";
4039
- import { styled as styled26 } from "@mui/material/styles";
4040
- import { jsx as jsx40 } from "react/jsx-runtime";
4041
- var SidebarItemIconRoot = styled26(ListItemIcon, {
4636
+ import { styled as styled31 } from "@mui/material/styles";
4637
+ import { jsx as jsx45 } from "react/jsx-runtime";
4638
+ var SidebarItemIconRoot = styled31(ListItemIcon, {
4042
4639
  name: "MuiSidebar",
4043
4640
  slot: "ItemIcon",
4044
4641
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4055,10 +4652,10 @@ var SidebarItemIcon = ({
4055
4652
  var _a;
4056
4653
  const { collapsed } = useSidebar();
4057
4654
  const { isActive } = useSidebarItemContext();
4058
- const iconWithSize = React17.isValidElement(children) ? React17.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
4655
+ const iconWithSize = React23.isValidElement(children) ? React23.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
4059
4656
  size: (_a = children.props.size) != null ? _a : 20
4060
4657
  })) : children;
4061
- return /* @__PURE__ */ jsx40(
4658
+ return /* @__PURE__ */ jsx45(
4062
4659
  SidebarItemIconRoot,
4063
4660
  {
4064
4661
  ownerState: { collapsed, isActive },
@@ -4071,9 +4668,9 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
4071
4668
 
4072
4669
  // src/components/Sidebar/SidebarItemLabel.tsx
4073
4670
  import ListItemText from "@mui/material/ListItemText";
4074
- import { styled as styled27 } from "@mui/material/styles";
4075
- import { jsx as jsx41 } from "react/jsx-runtime";
4076
- var SidebarItemLabelRoot = styled27(ListItemText, {
4671
+ import { styled as styled32 } from "@mui/material/styles";
4672
+ import { jsx as jsx46 } from "react/jsx-runtime";
4673
+ var SidebarItemLabelRoot = styled32(ListItemText, {
4077
4674
  name: "MuiSidebar",
4078
4675
  slot: "ItemLabel",
4079
4676
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4098,15 +4695,15 @@ var SidebarItemLabel = ({
4098
4695
  }) => {
4099
4696
  const { collapsed } = useSidebar();
4100
4697
  const { isActive } = useSidebarItemContext();
4101
- return /* @__PURE__ */ jsx41(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
4698
+ return /* @__PURE__ */ jsx46(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
4102
4699
  };
4103
4700
  SidebarItemLabel.displayName = "SidebarItemLabel";
4104
4701
 
4105
4702
  // src/components/Sidebar/SidebarItemBadge.tsx
4106
4703
  import Chip from "@mui/material/Chip";
4107
- import { styled as styled28 } from "@mui/material/styles";
4108
- import { jsx as jsx42 } from "react/jsx-runtime";
4109
- var SidebarItemBadgeRoot = styled28(Chip, {
4704
+ import { styled as styled33 } from "@mui/material/styles";
4705
+ import { jsx as jsx47 } from "react/jsx-runtime";
4706
+ var SidebarItemBadgeRoot = styled33(Chip, {
4110
4707
  name: "MuiSidebar",
4111
4708
  slot: "ItemBadge"
4112
4709
  })({
@@ -4123,20 +4720,20 @@ var SidebarItemBadge = ({
4123
4720
  if (collapsed) {
4124
4721
  return null;
4125
4722
  }
4126
- return /* @__PURE__ */ jsx42(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
4723
+ return /* @__PURE__ */ jsx47(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
4127
4724
  };
4128
4725
  SidebarItemBadge.displayName = "SidebarItemBadge";
4129
4726
 
4130
4727
  // src/components/Sidebar/SidebarItem.tsx
4131
- import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs13 } from "react/jsx-runtime";
4132
- var SidebarItemRoot = styled29(ListItem, {
4728
+ import { Fragment as Fragment5, jsx as jsx48, jsxs as jsxs16 } from "react/jsx-runtime";
4729
+ var SidebarItemRoot = styled34(ListItem, {
4133
4730
  name: "MuiSidebar",
4134
4731
  slot: "Item"
4135
4732
  })({
4136
4733
  display: "block",
4137
4734
  padding: 0
4138
4735
  });
4139
- var SidebarItemButton = styled29(ListItemButton, {
4736
+ var SidebarItemButton = styled34(ListItemButton, {
4140
4737
  name: "MuiSidebar",
4141
4738
  slot: "ItemButton",
4142
4739
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4160,7 +4757,7 @@ var SidebarItemButton = styled29(ListItemButton, {
4160
4757
  }
4161
4758
  }
4162
4759
  }));
4163
- var SidebarItemChevron = styled29(Box15, {
4760
+ var SidebarItemChevron = styled34(Box18, {
4164
4761
  name: "MuiSidebar",
4165
4762
  slot: "ItemChevron"
4166
4763
  })({
@@ -4169,20 +4766,20 @@ var SidebarItemChevron = styled29(Box15, {
4169
4766
  display: "flex",
4170
4767
  alignItems: "center"
4171
4768
  });
4172
- var SidebarItemPopover = styled29(Popover2, {
4769
+ var SidebarItemPopover = styled34(Popover3, {
4173
4770
  name: "MuiSidebar",
4174
4771
  slot: "ItemPopover"
4175
4772
  })({
4176
4773
  pointerEvents: "none"
4177
4774
  });
4178
- var SidebarItemPopoverList = styled29(MenuList, {
4775
+ var SidebarItemPopoverList = styled34(MenuList, {
4179
4776
  name: "MuiSidebar",
4180
4777
  slot: "ItemPopoverList"
4181
4778
  })(({ theme }) => ({
4182
4779
  padding: theme.spacing(0.5),
4183
4780
  pointerEvents: "auto"
4184
4781
  }));
4185
- var SidebarItemPopoverButton = styled29(MenuItem4, {
4782
+ var SidebarItemPopoverButton = styled34(MenuItem4, {
4186
4783
  name: "MuiSidebar",
4187
4784
  slot: "ItemPopoverButton"
4188
4785
  })(({ theme }) => ({
@@ -4206,9 +4803,9 @@ var CHILD_DISPLAY_NAMES = [
4206
4803
  var separateChildren2 = (children) => {
4207
4804
  const composableChildren = [];
4208
4805
  const nestedItems = [];
4209
- React18.Children.toArray(children).forEach((child) => {
4806
+ React24.Children.toArray(children).forEach((child) => {
4210
4807
  var _a;
4211
- if (React18.isValidElement(child)) {
4808
+ if (React24.isValidElement(child)) {
4212
4809
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4213
4810
  if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
4214
4811
  composableChildren.push(child);
@@ -4223,9 +4820,9 @@ var separateChildren2 = (children) => {
4223
4820
  };
4224
4821
  var getTooltipLabel = (children) => {
4225
4822
  let tooltipLabel = "";
4226
- React18.Children.forEach(children, (child) => {
4823
+ React24.Children.forEach(children, (child) => {
4227
4824
  var _a;
4228
- if (React18.isValidElement(child)) {
4825
+ if (React24.isValidElement(child)) {
4229
4826
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4230
4827
  const props = child.props;
4231
4828
  if (displayName === "SidebarItemLabel" && props.children) {
@@ -4238,9 +4835,9 @@ var getTooltipLabel = (children) => {
4238
4835
  var extractItemContent = (itemChildren) => {
4239
4836
  let icon = null;
4240
4837
  let label = "";
4241
- React18.Children.forEach(itemChildren, (child) => {
4838
+ React24.Children.forEach(itemChildren, (child) => {
4242
4839
  var _a;
4243
- if (React18.isValidElement(child)) {
4840
+ if (React24.isValidElement(child)) {
4244
4841
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4245
4842
  const props = child.props;
4246
4843
  if (displayName === "SidebarItemIcon") {
@@ -4264,33 +4861,33 @@ var SidebarItem = ({
4264
4861
  const hasNestedItems = nestedItems.length > 0;
4265
4862
  const isActive = activeItem === id;
4266
4863
  const isExpanded = expandedMenus[id] || false;
4267
- const hasActiveChild = React18.useMemo(() => {
4864
+ const hasActiveChild = React24.useMemo(() => {
4268
4865
  if (!hasNestedItems || !activeItem) return false;
4269
4866
  return nestedItems.some((child) => {
4270
- if (React18.isValidElement(child)) {
4867
+ if (React24.isValidElement(child)) {
4271
4868
  return child.props.id === activeItem;
4272
4869
  }
4273
4870
  return false;
4274
4871
  });
4275
4872
  }, [hasNestedItems, nestedItems, activeItem]);
4276
- const [popoverAnchor, setPopoverAnchor] = React18.useState(null);
4277
- const [popoverOpenedByClick, setPopoverOpenedByClick] = React18.useState(false);
4278
- const closeTimeoutRef = React18.useRef(null);
4873
+ const [popoverAnchor, setPopoverAnchor] = React24.useState(null);
4874
+ const [popoverOpenedByClick, setPopoverOpenedByClick] = React24.useState(false);
4875
+ const closeTimeoutRef = React24.useRef(null);
4279
4876
  const popoverOpen = Boolean(popoverAnchor);
4280
- const popoverId = React18.useId();
4281
- const clearCloseTimeout = React18.useCallback(() => {
4877
+ const popoverId = React24.useId();
4878
+ const clearCloseTimeout = React24.useCallback(() => {
4282
4879
  if (closeTimeoutRef.current != null) {
4283
4880
  clearTimeout(closeTimeoutRef.current);
4284
4881
  closeTimeoutRef.current = null;
4285
4882
  }
4286
4883
  }, []);
4287
- const closePopover = React18.useCallback(() => {
4884
+ const closePopover = React24.useCallback(() => {
4288
4885
  clearCloseTimeout();
4289
4886
  setPopoverAnchor(null);
4290
4887
  setPopoverOpenedByClick(false);
4291
4888
  }, [clearCloseTimeout]);
4292
- React18.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
4293
- React18.useEffect(() => {
4889
+ React24.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
4890
+ React24.useEffect(() => {
4294
4891
  if (!collapsed) {
4295
4892
  closePopover();
4296
4893
  }
@@ -4340,7 +4937,7 @@ var SidebarItem = ({
4340
4937
  const tooltipLabel = getTooltipLabel(children);
4341
4938
  const ownerState = { collapsed, depth };
4342
4939
  const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
4343
- const buttonContent = /* @__PURE__ */ jsx43(
4940
+ const buttonContent = /* @__PURE__ */ jsx48(
4344
4941
  SidebarItemButton,
4345
4942
  {
4346
4943
  selected: shouldShowSelected,
@@ -4351,21 +4948,21 @@ var SidebarItem = ({
4351
4948
  "aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
4352
4949
  "aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
4353
4950
  "aria-controls": popoverOpen ? popoverId : void 0,
4354
- children: /* @__PURE__ */ jsxs13(SidebarItemProvider, { value: contextValue, children: [
4951
+ children: /* @__PURE__ */ jsxs16(SidebarItemProvider, { value: contextValue, children: [
4355
4952
  composableChildren,
4356
- !collapsed && hasNestedItems && /* @__PURE__ */ jsx43(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx43(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx43(ChevronDown2, { size: 16 }) }),
4357
- !collapsed && !hasNestedItems && /* @__PURE__ */ jsx43(Box15, { sx: { ml: "auto", width: 16, pl: 1 } })
4953
+ !collapsed && hasNestedItems && /* @__PURE__ */ jsx48(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx48(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx48(ChevronDown2, { size: 16 }) }),
4954
+ !collapsed && !hasNestedItems && /* @__PURE__ */ jsx48(Box18, { sx: { ml: "auto", width: 16, pl: 1 } })
4358
4955
  ] })
4359
4956
  }
4360
4957
  );
4361
- const wrappedContent = link ? /* @__PURE__ */ jsx43(Fragment5, { children: React18.cloneElement(link, {}, buttonContent) }) : buttonContent;
4958
+ const wrappedContent = link ? /* @__PURE__ */ jsx48(Fragment5, { children: React24.cloneElement(link, {}, buttonContent) }) : buttonContent;
4362
4959
  const collapsedWithNested = collapsed && hasNestedItems;
4363
4960
  const handlePopoverItemClick = (itemId) => {
4364
4961
  onSelect == null ? void 0 : onSelect(itemId);
4365
4962
  closePopover();
4366
4963
  };
4367
- return /* @__PURE__ */ jsxs13(Fragment5, { children: [
4368
- /* @__PURE__ */ jsx43(
4964
+ return /* @__PURE__ */ jsxs16(Fragment5, { children: [
4965
+ /* @__PURE__ */ jsx48(
4369
4966
  SidebarItemRoot,
4370
4967
  {
4371
4968
  disablePadding: true,
@@ -4373,11 +4970,11 @@ var SidebarItem = ({
4373
4970
  onMouseLeave: handleMouseLeave,
4374
4971
  children: collapsed ? (
4375
4972
  // When collapsed: show tooltip only for items without nested children
4376
- collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx43(Tooltip3, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
4973
+ collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx48(Tooltip5, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
4377
4974
  ) : wrappedContent
4378
4975
  }
4379
4976
  ),
4380
- collapsedWithNested && /* @__PURE__ */ jsx43(
4977
+ collapsedWithNested && /* @__PURE__ */ jsx48(
4381
4978
  SidebarItemPopover,
4382
4979
  {
4383
4980
  open: popoverOpen,
@@ -4394,25 +4991,25 @@ var SidebarItem = ({
4394
4991
  onMouseLeave: handleMouseLeave
4395
4992
  }
4396
4993
  },
4397
- children: /* @__PURE__ */ jsx43(
4994
+ children: /* @__PURE__ */ jsx48(
4398
4995
  SidebarItemPopoverList,
4399
4996
  {
4400
4997
  id: popoverId,
4401
4998
  autoFocusItem: popoverOpen && popoverOpenedByClick,
4402
4999
  disablePadding: true,
4403
5000
  children: nestedItems.map((child, index) => {
4404
- if (React18.isValidElement(child)) {
5001
+ if (React24.isValidElement(child)) {
4405
5002
  const childProps = child.props;
4406
5003
  const { icon, label } = extractItemContent(childProps.children);
4407
5004
  const isItemActive = activeItem === childProps.id;
4408
- return /* @__PURE__ */ jsxs13(
5005
+ return /* @__PURE__ */ jsxs16(
4409
5006
  SidebarItemPopoverButton,
4410
5007
  {
4411
5008
  selected: isItemActive,
4412
5009
  onClick: () => handlePopoverItemClick(childProps.id),
4413
5010
  children: [
4414
- icon && /* @__PURE__ */ jsx43(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
4415
- /* @__PURE__ */ jsx43(ListItemText2, { primary: label })
5011
+ icon && /* @__PURE__ */ jsx48(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
5012
+ /* @__PURE__ */ jsx48(ListItemText2, { primary: label })
4416
5013
  ]
4417
5014
  },
4418
5015
  childProps.id || index
@@ -4424,9 +5021,9 @@ var SidebarItem = ({
4424
5021
  )
4425
5022
  }
4426
5023
  ),
4427
- hasNestedItems && !collapsed && /* @__PURE__ */ jsx43(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx43(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
4428
- if (React18.isValidElement(child)) {
4429
- return React18.cloneElement(child, {
5024
+ hasNestedItems && !collapsed && /* @__PURE__ */ jsx48(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx48(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
5025
+ if (React24.isValidElement(child)) {
5026
+ return React24.cloneElement(child, {
4430
5027
  key: child.key || index,
4431
5028
  depth: depth + 1
4432
5029
  });
@@ -4438,11 +5035,11 @@ var SidebarItem = ({
4438
5035
  SidebarItem.displayName = "SidebarItem";
4439
5036
 
4440
5037
  // src/components/Sidebar/SidebarFooter.tsx
4441
- import Box16 from "@mui/material/Box";
5038
+ import Box19 from "@mui/material/Box";
4442
5039
  import Divider4 from "@mui/material/Divider";
4443
- import { styled as styled30 } from "@mui/material/styles";
4444
- import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs14 } from "react/jsx-runtime";
4445
- var SidebarFooterRoot = styled30(Box16, {
5040
+ import { styled as styled35 } from "@mui/material/styles";
5041
+ import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs17 } from "react/jsx-runtime";
5042
+ var SidebarFooterRoot = styled35(Box19, {
4446
5043
  name: "MuiSidebar",
4447
5044
  slot: "Footer"
4448
5045
  })(({ theme }) => ({
@@ -4454,25 +5051,25 @@ var SidebarFooter = ({
4454
5051
  showDivider = true,
4455
5052
  sx
4456
5053
  }) => {
4457
- return /* @__PURE__ */ jsxs14(Fragment6, { children: [
4458
- showDivider && /* @__PURE__ */ jsx44(Divider4, {}),
4459
- /* @__PURE__ */ jsx44(SidebarFooterRoot, { sx, children })
5054
+ return /* @__PURE__ */ jsxs17(Fragment6, { children: [
5055
+ showDivider && /* @__PURE__ */ jsx49(Divider4, {}),
5056
+ /* @__PURE__ */ jsx49(SidebarFooterRoot, { sx, children })
4460
5057
  ] });
4461
5058
  };
4462
5059
 
4463
5060
  // src/components/Sidebar/SidebarUser.tsx
4464
- import * as React19 from "react";
4465
- import Box17 from "@mui/material/Box";
5061
+ import * as React25 from "react";
5062
+ import Box20 from "@mui/material/Box";
4466
5063
  import ListItemButton2 from "@mui/material/ListItemButton";
4467
- import Tooltip4 from "@mui/material/Tooltip";
5064
+ import Tooltip6 from "@mui/material/Tooltip";
4468
5065
  import Divider5 from "@mui/material/Divider";
4469
- import { styled as styled34 } from "@mui/material/styles";
5066
+ import { styled as styled39 } from "@mui/material/styles";
4470
5067
 
4471
5068
  // src/components/Sidebar/SidebarUserAvatar.tsx
4472
5069
  import Avatar2 from "@mui/material/Avatar";
4473
- import { styled as styled31 } from "@mui/material/styles";
4474
- import { jsx as jsx45 } from "react/jsx-runtime";
4475
- var SidebarUserAvatarRoot = styled31(Avatar2, {
5070
+ import { styled as styled36 } from "@mui/material/styles";
5071
+ import { jsx as jsx50 } from "react/jsx-runtime";
5072
+ var SidebarUserAvatarRoot = styled36(Avatar2, {
4476
5073
  name: "MuiSidebar",
4477
5074
  slot: "UserAvatar"
4478
5075
  })(({ theme }) => ({
@@ -4488,15 +5085,15 @@ var SidebarUserAvatar = ({
4488
5085
  alt,
4489
5086
  sx
4490
5087
  }) => {
4491
- return /* @__PURE__ */ jsx45(SidebarUserAvatarRoot, { src, alt, sx, children });
5088
+ return /* @__PURE__ */ jsx50(SidebarUserAvatarRoot, { src, alt, sx, children });
4492
5089
  };
4493
5090
  SidebarUserAvatar.displayName = "SidebarUserAvatar";
4494
5091
 
4495
5092
  // src/components/Sidebar/SidebarUserName.tsx
4496
- import Typography9 from "@mui/material/Typography";
4497
- import { styled as styled32 } from "@mui/material/styles";
4498
- import { jsx as jsx46 } from "react/jsx-runtime";
4499
- var SidebarUserNameRoot = styled32(Typography9, {
5093
+ import Typography11 from "@mui/material/Typography";
5094
+ import { styled as styled37 } from "@mui/material/styles";
5095
+ import { jsx as jsx51 } from "react/jsx-runtime";
5096
+ var SidebarUserNameRoot = styled37(Typography11, {
4500
5097
  name: "MuiSidebar",
4501
5098
  slot: "UserName"
4502
5099
  })({
@@ -4513,15 +5110,15 @@ var SidebarUserName = ({
4513
5110
  if (collapsed) {
4514
5111
  return null;
4515
5112
  }
4516
- return /* @__PURE__ */ jsx46(SidebarUserNameRoot, { variant: "body2", sx, children });
5113
+ return /* @__PURE__ */ jsx51(SidebarUserNameRoot, { variant: "body2", sx, children });
4517
5114
  };
4518
5115
  SidebarUserName.displayName = "SidebarUserName";
4519
5116
 
4520
5117
  // src/components/Sidebar/SidebarUserEmail.tsx
4521
- import Typography10 from "@mui/material/Typography";
4522
- import { styled as styled33 } from "@mui/material/styles";
4523
- import { jsx as jsx47 } from "react/jsx-runtime";
4524
- var SidebarUserEmailRoot = styled33(Typography10, {
5118
+ import Typography12 from "@mui/material/Typography";
5119
+ import { styled as styled38 } from "@mui/material/styles";
5120
+ import { jsx as jsx52 } from "react/jsx-runtime";
5121
+ var SidebarUserEmailRoot = styled38(Typography12, {
4525
5122
  name: "MuiSidebar",
4526
5123
  slot: "UserEmail"
4527
5124
  })(({ theme }) => ({
@@ -4539,19 +5136,19 @@ var SidebarUserEmail = ({
4539
5136
  if (collapsed) {
4540
5137
  return null;
4541
5138
  }
4542
- return /* @__PURE__ */ jsx47(SidebarUserEmailRoot, { variant: "caption", sx, children });
5139
+ return /* @__PURE__ */ jsx52(SidebarUserEmailRoot, { variant: "caption", sx, children });
4543
5140
  };
4544
5141
  SidebarUserEmail.displayName = "SidebarUserEmail";
4545
5142
 
4546
5143
  // src/components/Sidebar/SidebarUser.tsx
4547
- import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs15 } from "react/jsx-runtime";
4548
- var SidebarUserRoot = styled34(Box17, {
5144
+ import { Fragment as Fragment7, jsx as jsx53, jsxs as jsxs18 } from "react/jsx-runtime";
5145
+ var SidebarUserRoot = styled39(Box20, {
4549
5146
  name: "MuiSidebar",
4550
5147
  slot: "User"
4551
5148
  })(({ theme }) => ({
4552
5149
  padding: theme.spacing(2)
4553
5150
  }));
4554
- var SidebarUserButton = styled34(ListItemButton2, {
5151
+ var SidebarUserButton = styled39(ListItemButton2, {
4555
5152
  name: "MuiSidebar",
4556
5153
  slot: "UserButton",
4557
5154
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4568,7 +5165,7 @@ var SidebarUserButton = styled34(ListItemButton2, {
4568
5165
  duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
4569
5166
  })
4570
5167
  }));
4571
- var SidebarUserTextContainer = styled34(Box17, {
5168
+ var SidebarUserTextContainer = styled39(Box20, {
4572
5169
  name: "MuiSidebar",
4573
5170
  slot: "UserTextContainer",
4574
5171
  shouldForwardProp: (prop) => prop !== "collapsed"
@@ -4586,9 +5183,9 @@ var SidebarUserTextContainer = styled34(Box17, {
4586
5183
  var separateChildren3 = (children) => {
4587
5184
  let avatarChild = null;
4588
5185
  const textChildren = [];
4589
- React19.Children.forEach(children, (child) => {
5186
+ React25.Children.forEach(children, (child) => {
4590
5187
  var _a;
4591
- if (React19.isValidElement(child)) {
5188
+ if (React25.isValidElement(child)) {
4592
5189
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4593
5190
  if (displayName === "SidebarUserAvatar") {
4594
5191
  avatarChild = child;
@@ -4601,9 +5198,9 @@ var separateChildren3 = (children) => {
4601
5198
  };
4602
5199
  var getTooltipText = (children) => {
4603
5200
  let tooltipText = "";
4604
- React19.Children.forEach(children, (child) => {
5201
+ React25.Children.forEach(children, (child) => {
4605
5202
  var _a;
4606
- if (React19.isValidElement(child)) {
5203
+ if (React25.isValidElement(child)) {
4607
5204
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4608
5205
  const props = child.props;
4609
5206
  if (displayName === "SidebarUserName" && props.children) {
@@ -4623,22 +5220,22 @@ var SidebarUser = ({
4623
5220
  const { avatarChild, textChildren } = separateChildren3(children);
4624
5221
  const tooltipText = getTooltipText(children);
4625
5222
  const ownerState = { collapsed };
4626
- const content = /* @__PURE__ */ jsxs15(SidebarUserButton, { onClick, ownerState, children: [
5223
+ const content = /* @__PURE__ */ jsxs18(SidebarUserButton, { onClick, ownerState, children: [
4627
5224
  avatarChild,
4628
- /* @__PURE__ */ jsx48(SidebarUserTextContainer, { collapsed, children: textChildren })
5225
+ /* @__PURE__ */ jsx53(SidebarUserTextContainer, { collapsed, children: textChildren })
4629
5226
  ] });
4630
- return /* @__PURE__ */ jsxs15(Fragment7, { children: [
4631
- showDivider && /* @__PURE__ */ jsx48(Divider5, {}),
4632
- /* @__PURE__ */ jsx48(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx48(Tooltip4, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
5227
+ return /* @__PURE__ */ jsxs18(Fragment7, { children: [
5228
+ showDivider && /* @__PURE__ */ jsx53(Divider5, {}),
5229
+ /* @__PURE__ */ jsx53(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx53(Tooltip6, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
4633
5230
  ] });
4634
5231
  };
4635
5232
  SidebarUser.displayName = "SidebarUser";
4636
5233
 
4637
5234
  // src/components/Sidebar/Sidebar.tsx
4638
- import { jsx as jsx49 } from "react/jsx-runtime";
5235
+ import { jsx as jsx54 } from "react/jsx-runtime";
4639
5236
  var SIDEBAR_WIDTH = 250;
4640
5237
  var COLLAPSED_SIDEBAR_WIDTH = 64;
4641
- var SidebarRootStyled = styled35(Box18, {
5238
+ var SidebarRootStyled = styled40(Box21, {
4642
5239
  name: "MuiSidebar",
4643
5240
  slot: "Root",
4644
5241
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -4673,10 +5270,10 @@ var Sidebar = ({
4673
5270
  sx
4674
5271
  }) => {
4675
5272
  var _a, _b, _c;
4676
- const appShellContext = React20.useContext(AppShellContext);
5273
+ const appShellContext = React26.useContext(AppShellContext);
4677
5274
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
4678
5275
  const activeItem = activeItemProp != null ? activeItemProp : appShellContext == null ? void 0 : appShellContext.state.activeMenuItem;
4679
- const expandedMenus = React20.useMemo(
5276
+ const expandedMenus = React26.useMemo(
4680
5277
  () => {
4681
5278
  var _a2;
4682
5279
  return (_a2 = expandedMenusProp != null ? expandedMenusProp : appShellContext == null ? void 0 : appShellContext.state.expandedMenus) != null ? _a2 : {};
@@ -4687,7 +5284,7 @@ var Sidebar = ({
4687
5284
  const onToggleExpand = onToggleExpandProp != null ? onToggleExpandProp : appShellContext == null ? void 0 : appShellContext.actions.toggleMenu;
4688
5285
  const width = (_b = widthProp != null ? widthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarWidth) != null ? _b : SIDEBAR_WIDTH;
4689
5286
  const collapsedWidth = (_c = collapsedWidthProp != null ? collapsedWidthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsedWidth) != null ? _c : COLLAPSED_SIDEBAR_WIDTH;
4690
- const contextValue = React20.useMemo(
5287
+ const contextValue = React26.useMemo(
4691
5288
  () => ({
4692
5289
  collapsed,
4693
5290
  activeItem,
@@ -4698,7 +5295,7 @@ var Sidebar = ({
4698
5295
  [collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
4699
5296
  );
4700
5297
  const ownerState = { collapsed, width, collapsedWidth };
4701
- return /* @__PURE__ */ jsx49(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx49(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
5298
+ return /* @__PURE__ */ jsx54(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx54(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
4702
5299
  };
4703
5300
  Sidebar.Nav = SidebarNav;
4704
5301
  Sidebar.Category = SidebarCategory;
@@ -4715,17 +5312,17 @@ Sidebar.UserEmail = SidebarUserEmail;
4715
5312
  Sidebar.displayName = "Sidebar";
4716
5313
 
4717
5314
  // src/components/NotificationPanel/NotificationPanel.tsx
4718
- import * as React26 from "react";
4719
- import Box27 from "@mui/material/Box";
5315
+ import * as React32 from "react";
5316
+ import Box30 from "@mui/material/Box";
4720
5317
  import Drawer from "@mui/material/Drawer";
4721
- import { styled as styled51 } from "@mui/material/styles";
5318
+ import { styled as styled56 } from "@mui/material/styles";
4722
5319
  import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
4723
5320
 
4724
5321
  // src/components/NotificationPanel/context.ts
4725
- import * as React21 from "react";
4726
- var NotificationPanelContext = React21.createContext(null);
5322
+ import * as React27 from "react";
5323
+ var NotificationPanelContext = React27.createContext(null);
4727
5324
  var useNotificationPanel = () => {
4728
- const context = React21.useContext(NotificationPanelContext);
5325
+ const context = React27.useContext(NotificationPanelContext);
4729
5326
  if (!context) {
4730
5327
  throw new Error(
4731
5328
  "NotificationPanel compound components must be used within NotificationPanel"
@@ -4735,11 +5332,11 @@ var useNotificationPanel = () => {
4735
5332
  };
4736
5333
 
4737
5334
  // src/components/NotificationPanel/NotificationHeader.tsx
4738
- import * as React22 from "react";
4739
- import Box19 from "@mui/material/Box";
4740
- import { styled as styled36 } from "@mui/material/styles";
4741
- import { jsx as jsx50, jsxs as jsxs16 } from "react/jsx-runtime";
4742
- var NotificationHeaderRoot = styled36(Box19, {
5335
+ import * as React28 from "react";
5336
+ import Box22 from "@mui/material/Box";
5337
+ import { styled as styled41 } from "@mui/material/styles";
5338
+ import { jsx as jsx55, jsxs as jsxs19 } from "react/jsx-runtime";
5339
+ var NotificationHeaderRoot = styled41(Box22, {
4743
5340
  name: "MuiNotificationPanel",
4744
5341
  slot: "Header"
4745
5342
  })(({ theme }) => ({
@@ -4749,7 +5346,7 @@ var NotificationHeaderRoot = styled36(Box19, {
4749
5346
  padding: theme.spacing(2),
4750
5347
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
4751
5348
  }));
4752
- var NotificationHeaderContent = styled36(Box19, {
5349
+ var NotificationHeaderContent = styled41(Box22, {
4753
5350
  name: "MuiNotificationPanel",
4754
5351
  slot: "HeaderContent"
4755
5352
  })(({ theme }) => ({
@@ -4760,9 +5357,9 @@ var NotificationHeaderContent = styled36(Box19, {
4760
5357
  var separateChildren4 = (children) => {
4761
5358
  const leftChildren = [];
4762
5359
  let closeChild = null;
4763
- React22.Children.forEach(children, (child) => {
5360
+ React28.Children.forEach(children, (child) => {
4764
5361
  var _a;
4765
- if (React22.isValidElement(child)) {
5362
+ if (React28.isValidElement(child)) {
4766
5363
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4767
5364
  if (displayName === "NotificationHeaderClose") {
4768
5365
  closeChild = child;
@@ -4780,18 +5377,18 @@ var NotificationHeader = ({
4780
5377
  sx
4781
5378
  }) => {
4782
5379
  const { leftChildren, closeChild } = separateChildren4(children);
4783
- return /* @__PURE__ */ jsxs16(NotificationHeaderRoot, { sx, children: [
4784
- /* @__PURE__ */ jsx50(NotificationHeaderContent, { children: leftChildren }),
5380
+ return /* @__PURE__ */ jsxs19(NotificationHeaderRoot, { sx, children: [
5381
+ /* @__PURE__ */ jsx55(NotificationHeaderContent, { children: leftChildren }),
4785
5382
  closeChild
4786
5383
  ] });
4787
5384
  };
4788
5385
  NotificationHeader.displayName = "NotificationHeader";
4789
5386
 
4790
5387
  // src/components/NotificationPanel/NotificationHeaderIcon.tsx
4791
- import Box20 from "@mui/material/Box";
4792
- import { styled as styled37 } from "@mui/material/styles";
4793
- import { jsx as jsx51 } from "react/jsx-runtime";
4794
- var NotificationHeaderIconRoot = styled37(Box20, {
5388
+ import Box23 from "@mui/material/Box";
5389
+ import { styled as styled42 } from "@mui/material/styles";
5390
+ import { jsx as jsx56 } from "react/jsx-runtime";
5391
+ var NotificationHeaderIconRoot = styled42(Box23, {
4795
5392
  name: "MuiNotificationPanel",
4796
5393
  slot: "HeaderIcon"
4797
5394
  })({
@@ -4802,15 +5399,15 @@ var NotificationHeaderIcon = ({
4802
5399
  children,
4803
5400
  sx
4804
5401
  }) => {
4805
- return /* @__PURE__ */ jsx51(NotificationHeaderIconRoot, { sx, children });
5402
+ return /* @__PURE__ */ jsx56(NotificationHeaderIconRoot, { sx, children });
4806
5403
  };
4807
5404
  NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
4808
5405
 
4809
5406
  // src/components/NotificationPanel/NotificationHeaderTitle.tsx
4810
- import Typography11 from "@mui/material/Typography";
4811
- import { styled as styled38 } from "@mui/material/styles";
4812
- import { jsx as jsx52 } from "react/jsx-runtime";
4813
- var NotificationHeaderTitleRoot = styled38(Typography11, {
5407
+ import Typography13 from "@mui/material/Typography";
5408
+ import { styled as styled43 } from "@mui/material/styles";
5409
+ import { jsx as jsx57 } from "react/jsx-runtime";
5410
+ var NotificationHeaderTitleRoot = styled43(Typography13, {
4814
5411
  name: "MuiNotificationPanel",
4815
5412
  slot: "HeaderTitle"
4816
5413
  })({
@@ -4820,15 +5417,15 @@ var NotificationHeaderTitle = ({
4820
5417
  children,
4821
5418
  sx
4822
5419
  }) => {
4823
- return /* @__PURE__ */ jsx52(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
5420
+ return /* @__PURE__ */ jsx57(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
4824
5421
  };
4825
5422
  NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
4826
5423
 
4827
5424
  // src/components/NotificationPanel/NotificationHeaderBadge.tsx
4828
5425
  import Chip2 from "@mui/material/Chip";
4829
- import { styled as styled39 } from "@mui/material/styles";
4830
- import { jsx as jsx53 } from "react/jsx-runtime";
4831
- var NotificationHeaderBadgeRoot = styled39(Chip2, {
5426
+ import { styled as styled44 } from "@mui/material/styles";
5427
+ import { jsx as jsx58 } from "react/jsx-runtime";
5428
+ var NotificationHeaderBadgeRoot = styled44(Chip2, {
4832
5429
  name: "MuiNotificationPanel",
4833
5430
  slot: "HeaderBadge"
4834
5431
  })({
@@ -4843,16 +5440,16 @@ var NotificationHeaderBadge = ({
4843
5440
  if (!children || children === 0 || children === "0") {
4844
5441
  return null;
4845
5442
  }
4846
- return /* @__PURE__ */ jsx53(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
5443
+ return /* @__PURE__ */ jsx58(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
4847
5444
  };
4848
5445
  NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
4849
5446
 
4850
5447
  // src/components/NotificationPanel/NotificationHeaderClose.tsx
4851
- import IconButton4 from "@mui/material/IconButton";
4852
- import { styled as styled40 } from "@mui/material/styles";
5448
+ import IconButton5 from "@mui/material/IconButton";
5449
+ import { styled as styled45 } from "@mui/material/styles";
4853
5450
  import { X as X2 } from "@wso2/oxygen-ui-icons-react";
4854
- import { jsx as jsx54 } from "react/jsx-runtime";
4855
- var NotificationHeaderCloseRoot = styled40(IconButton4, {
5451
+ import { jsx as jsx59 } from "react/jsx-runtime";
5452
+ var NotificationHeaderCloseRoot = styled45(IconButton5, {
4856
5453
  name: "MuiNotificationPanel",
4857
5454
  slot: "HeaderClose"
4858
5455
  })({});
@@ -4869,33 +5466,33 @@ var NotificationHeaderClose = ({
4869
5466
  onClose == null ? void 0 : onClose();
4870
5467
  }
4871
5468
  };
4872
- return /* @__PURE__ */ jsx54(
5469
+ return /* @__PURE__ */ jsx59(
4873
5470
  NotificationHeaderCloseRoot,
4874
5471
  {
4875
5472
  onClick: handleClick,
4876
5473
  size: "small",
4877
5474
  sx,
4878
5475
  "aria-label": "Close notifications",
4879
- children: children || /* @__PURE__ */ jsx54(X2, { size: 20, "aria-hidden": "true" })
5476
+ children: children || /* @__PURE__ */ jsx59(X2, { size: 20, "aria-hidden": "true" })
4880
5477
  }
4881
5478
  );
4882
5479
  };
4883
5480
  NotificationHeaderClose.displayName = "NotificationHeaderClose";
4884
5481
 
4885
5482
  // src/components/NotificationPanel/NotificationTabs.tsx
4886
- import Box21 from "@mui/material/Box";
5483
+ import Box24 from "@mui/material/Box";
4887
5484
  import Tabs from "@mui/material/Tabs";
4888
5485
  import Tab from "@mui/material/Tab";
4889
5486
  import Chip3 from "@mui/material/Chip";
4890
- import { styled as styled41 } from "@mui/material/styles";
4891
- import { jsx as jsx55, jsxs as jsxs17 } from "react/jsx-runtime";
4892
- var NotificationTabsRoot = styled41(Box21, {
5487
+ import { styled as styled46 } from "@mui/material/styles";
5488
+ import { jsx as jsx60, jsxs as jsxs20 } from "react/jsx-runtime";
5489
+ var NotificationTabsRoot = styled46(Box24, {
4893
5490
  name: "MuiNotificationPanel",
4894
5491
  slot: "Tabs"
4895
5492
  })(({ theme }) => ({
4896
5493
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
4897
5494
  }));
4898
- var NotificationTabsInner = styled41(Tabs, {
5495
+ var NotificationTabsInner = styled46(Tabs, {
4899
5496
  name: "MuiNotificationPanel",
4900
5497
  slot: "TabsInner"
4901
5498
  })({
@@ -4906,7 +5503,7 @@ var NotificationTabsInner = styled41(Tabs, {
4906
5503
  fontWeight: 500
4907
5504
  }
4908
5505
  });
4909
- var NotificationTabLabel = styled41(Box21, {
5506
+ var NotificationTabLabel = styled46(Box24, {
4910
5507
  name: "MuiNotificationPanel",
4911
5508
  slot: "TabLabel"
4912
5509
  })(({ theme }) => ({
@@ -4914,7 +5511,7 @@ var NotificationTabLabel = styled41(Box21, {
4914
5511
  alignItems: "center",
4915
5512
  gap: theme.spacing(1)
4916
5513
  }));
4917
- var NotificationTabCount = styled41(Chip3, {
5514
+ var NotificationTabCount = styled46(Chip3, {
4918
5515
  name: "MuiNotificationPanel",
4919
5516
  slot: "TabCount"
4920
5517
  })({
@@ -4927,18 +5524,18 @@ var NotificationTabs = ({
4927
5524
  onChange,
4928
5525
  sx
4929
5526
  }) => {
4930
- return /* @__PURE__ */ jsx55(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx55(
5527
+ return /* @__PURE__ */ jsx60(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx60(
4931
5528
  NotificationTabsInner,
4932
5529
  {
4933
5530
  value,
4934
5531
  onChange: (_, newValue) => onChange(newValue),
4935
5532
  variant: "fullWidth",
4936
- children: tabs.map((tab, index) => /* @__PURE__ */ jsx55(
5533
+ children: tabs.map((tab, index) => /* @__PURE__ */ jsx60(
4937
5534
  Tab,
4938
5535
  {
4939
- label: /* @__PURE__ */ jsxs17(NotificationTabLabel, { children: [
5536
+ label: /* @__PURE__ */ jsxs20(NotificationTabLabel, { children: [
4940
5537
  tab.label,
4941
- tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx55(
5538
+ tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx60(
4942
5539
  NotificationTabCount,
4943
5540
  {
4944
5541
  label: tab.count,
@@ -4956,12 +5553,12 @@ var NotificationTabs = ({
4956
5553
  };
4957
5554
 
4958
5555
  // src/components/NotificationPanel/NotificationActions.tsx
4959
- import Box22 from "@mui/material/Box";
5556
+ import Box25 from "@mui/material/Box";
4960
5557
  import Button3 from "@mui/material/Button";
4961
- import { styled as styled42 } from "@mui/material/styles";
5558
+ import { styled as styled47 } from "@mui/material/styles";
4962
5559
  import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
4963
- import { jsx as jsx56, jsxs as jsxs18 } from "react/jsx-runtime";
4964
- var NotificationActionsRoot = styled42(Box22, {
5560
+ import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
5561
+ var NotificationActionsRoot = styled47(Box25, {
4965
5562
  name: "MuiNotificationPanel",
4966
5563
  slot: "Actions"
4967
5564
  })(({ theme }) => ({
@@ -4973,7 +5570,7 @@ var NotificationActionsRoot = styled42(Box22, {
4973
5570
  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
4974
5571
  backgroundColor: (theme.vars || theme).palette.action.hover
4975
5572
  }));
4976
- var NotificationActionButton = styled42(Button3, {
5573
+ var NotificationActionButton = styled47(Button3, {
4977
5574
  name: "MuiNotificationPanel",
4978
5575
  slot: "ActionButton"
4979
5576
  })({
@@ -4986,21 +5583,21 @@ var NotificationActions = ({
4986
5583
  onClearAll,
4987
5584
  sx
4988
5585
  }) => {
4989
- return /* @__PURE__ */ jsxs18(NotificationActionsRoot, { sx, children: [
4990
- hasUnread && onMarkAllRead && /* @__PURE__ */ jsx56(
5586
+ return /* @__PURE__ */ jsxs21(NotificationActionsRoot, { sx, children: [
5587
+ hasUnread && onMarkAllRead && /* @__PURE__ */ jsx61(
4991
5588
  NotificationActionButton,
4992
5589
  {
4993
5590
  size: "small",
4994
- startIcon: /* @__PURE__ */ jsx56(CheckCheck, { size: 14 }),
5591
+ startIcon: /* @__PURE__ */ jsx61(CheckCheck, { size: 14 }),
4995
5592
  onClick: onMarkAllRead,
4996
5593
  children: "Mark all read"
4997
5594
  }
4998
5595
  ),
4999
- onClearAll && /* @__PURE__ */ jsx56(
5596
+ onClearAll && /* @__PURE__ */ jsx61(
5000
5597
  NotificationActionButton,
5001
5598
  {
5002
5599
  size: "small",
5003
- startIcon: /* @__PURE__ */ jsx56(Trash2, { size: 14 }),
5600
+ startIcon: /* @__PURE__ */ jsx61(Trash2, { size: 14 }),
5004
5601
  onClick: onClearAll,
5005
5602
  color: "error",
5006
5603
  children: "Clear all"
@@ -5010,13 +5607,13 @@ var NotificationActions = ({
5010
5607
  };
5011
5608
 
5012
5609
  // src/components/NotificationPanel/NotificationList.tsx
5013
- import * as React23 from "react";
5014
- import Box23 from "@mui/material/Box";
5610
+ import * as React29 from "react";
5611
+ import Box26 from "@mui/material/Box";
5015
5612
  import List3 from "@mui/material/List";
5016
5613
  import Divider6 from "@mui/material/Divider";
5017
- import { styled as styled43 } from "@mui/material/styles";
5018
- import { jsx as jsx57, jsxs as jsxs19 } from "react/jsx-runtime";
5019
- var NotificationListRoot = styled43(Box23, {
5614
+ import { styled as styled48 } from "@mui/material/styles";
5615
+ import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
5616
+ var NotificationListRoot = styled48(Box26, {
5020
5617
  name: "MuiNotificationPanel",
5021
5618
  slot: "List"
5022
5619
  })({
@@ -5028,21 +5625,21 @@ var NotificationList = ({
5028
5625
  showDividers = true,
5029
5626
  sx
5030
5627
  }) => {
5031
- const childArray = React23.Children.toArray(children);
5032
- return /* @__PURE__ */ jsx57(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx57(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs19(React23.Fragment, { children: [
5628
+ const childArray = React29.Children.toArray(children);
5629
+ return /* @__PURE__ */ jsx62(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx62(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs22(React29.Fragment, { children: [
5033
5630
  child,
5034
- showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx57(Divider6, {})
5631
+ showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx62(Divider6, {})
5035
5632
  ] }, index)) }) });
5036
5633
  };
5037
5634
 
5038
5635
  // src/components/NotificationPanel/NotificationItem.tsx
5039
- import * as React25 from "react";
5040
- import Box24 from "@mui/material/Box";
5636
+ import * as React31 from "react";
5637
+ import Box27 from "@mui/material/Box";
5041
5638
  import ListItem2 from "@mui/material/ListItem";
5042
5639
  import ListItemButton3 from "@mui/material/ListItemButton";
5043
5640
  import ListItemText3 from "@mui/material/ListItemText";
5044
- import IconButton5 from "@mui/material/IconButton";
5045
- import { styled as styled44 } from "@mui/material/styles";
5641
+ import IconButton6 from "@mui/material/IconButton";
5642
+ import { styled as styled49 } from "@mui/material/styles";
5046
5643
  import { X as X3 } from "@wso2/oxygen-ui-icons-react";
5047
5644
 
5048
5645
  // src/components/NotificationPanel/utils.ts
@@ -5082,11 +5679,11 @@ var getNotificationTypeProps = (type) => {
5082
5679
  };
5083
5680
 
5084
5681
  // src/components/NotificationPanel/NotificationItemContext.tsx
5085
- import * as React24 from "react";
5086
- import { jsx as jsx58 } from "react/jsx-runtime";
5087
- var NotificationItemContext = React24.createContext(null);
5682
+ import * as React30 from "react";
5683
+ import { jsx as jsx63 } from "react/jsx-runtime";
5684
+ var NotificationItemContext = React30.createContext(null);
5088
5685
  var useNotificationItemContext = () => {
5089
- const context = React24.useContext(NotificationItemContext);
5686
+ const context = React30.useContext(NotificationItemContext);
5090
5687
  if (!context) {
5091
5688
  throw new Error(
5092
5689
  "useNotificationItemContext must be used within a NotificationItem component"
@@ -5095,12 +5692,12 @@ var useNotificationItemContext = () => {
5095
5692
  return context;
5096
5693
  };
5097
5694
  var NotificationItemProvider = ({ value, children }) => {
5098
- return /* @__PURE__ */ jsx58(NotificationItemContext.Provider, { value, children });
5695
+ return /* @__PURE__ */ jsx63(NotificationItemContext.Provider, { value, children });
5099
5696
  };
5100
5697
 
5101
5698
  // src/components/NotificationPanel/NotificationItem.tsx
5102
- import { jsx as jsx59, jsxs as jsxs20 } from "react/jsx-runtime";
5103
- var NotificationItemRoot = styled44(ListItem2, {
5699
+ import { jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
5700
+ var NotificationItemRoot = styled49(ListItem2, {
5104
5701
  name: "MuiNotificationPanel",
5105
5702
  slot: "Item",
5106
5703
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5110,13 +5707,13 @@ var NotificationItemRoot = styled44(ListItem2, {
5110
5707
  backgroundColor: (theme.vars || theme).palette.action.selected
5111
5708
  }
5112
5709
  }));
5113
- var NotificationItemButton = styled44(ListItemButton3, {
5710
+ var NotificationItemButton = styled49(ListItemButton3, {
5114
5711
  name: "MuiNotificationPanel",
5115
5712
  slot: "ItemButton"
5116
5713
  })(({ theme }) => ({
5117
5714
  paddingRight: theme.spacing(6)
5118
5715
  }));
5119
- var NotificationItemDismiss = styled44(IconButton5, {
5716
+ var NotificationItemDismiss = styled49(IconButton6, {
5120
5717
  name: "MuiNotificationPanel",
5121
5718
  slot: "ItemDismiss"
5122
5719
  })({
@@ -5125,7 +5722,7 @@ var NotificationItemDismiss = styled44(IconButton5, {
5125
5722
  opacity: 1
5126
5723
  }
5127
5724
  });
5128
- var NotificationItemFooter = styled44(Box24, {
5725
+ var NotificationItemFooter = styled49(Box27, {
5129
5726
  name: "MuiNotificationPanel",
5130
5727
  slot: "ItemFooter"
5131
5728
  })(({ theme }) => ({
@@ -5140,9 +5737,9 @@ var separateChildren5 = (children) => {
5140
5737
  let messageChild = null;
5141
5738
  let timestampChild = null;
5142
5739
  let actionChild = null;
5143
- React25.Children.forEach(children, (child) => {
5740
+ React31.Children.forEach(children, (child) => {
5144
5741
  var _a;
5145
- if (React25.isValidElement(child)) {
5742
+ if (React31.isValidElement(child)) {
5146
5743
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
5147
5744
  switch (displayName) {
5148
5745
  case "NotificationItemAvatar":
@@ -5192,12 +5789,12 @@ var NotificationItem = ({
5192
5789
  onAction == null ? void 0 : onAction();
5193
5790
  };
5194
5791
  const ownerState = { read };
5195
- return /* @__PURE__ */ jsx59(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx59(
5792
+ return /* @__PURE__ */ jsx64(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx64(
5196
5793
  NotificationItemRoot,
5197
5794
  {
5198
5795
  disablePadding: true,
5199
5796
  ownerState,
5200
- secondaryAction: onDismiss && /* @__PURE__ */ jsx59(
5797
+ secondaryAction: onDismiss && /* @__PURE__ */ jsx64(
5201
5798
  NotificationItemDismiss,
5202
5799
  {
5203
5800
  size: "small",
@@ -5206,19 +5803,19 @@ var NotificationItem = ({
5206
5803
  e.stopPropagation();
5207
5804
  onDismiss(id);
5208
5805
  },
5209
- children: /* @__PURE__ */ jsx59(X3, { size: 16, "aria-hidden": "true" })
5806
+ children: /* @__PURE__ */ jsx64(X3, { size: 16, "aria-hidden": "true" })
5210
5807
  }
5211
5808
  ),
5212
5809
  sx,
5213
- children: /* @__PURE__ */ jsxs20(NotificationItemButton, { onClick: handleClick, children: [
5810
+ children: /* @__PURE__ */ jsxs23(NotificationItemButton, { onClick: handleClick, children: [
5214
5811
  avatarChild,
5215
- /* @__PURE__ */ jsx59(
5812
+ /* @__PURE__ */ jsx64(
5216
5813
  ListItemText3,
5217
5814
  {
5218
5815
  primary: titleChild,
5219
- secondary: /* @__PURE__ */ jsxs20(Box24, { component: "span", children: [
5816
+ secondary: /* @__PURE__ */ jsxs23(Box27, { component: "span", children: [
5220
5817
  messageChild,
5221
- /* @__PURE__ */ jsxs20(NotificationItemFooter, { children: [
5818
+ /* @__PURE__ */ jsxs23(NotificationItemFooter, { children: [
5222
5819
  timestampChild,
5223
5820
  actionChild
5224
5821
  ] })
@@ -5234,9 +5831,9 @@ NotificationItem.displayName = "NotificationItem";
5234
5831
  // src/components/NotificationPanel/NotificationItemAvatar.tsx
5235
5832
  import ListItemAvatar from "@mui/material/ListItemAvatar";
5236
5833
  import Avatar3 from "@mui/material/Avatar";
5237
- import { styled as styled45 } from "@mui/material/styles";
5238
- import { jsx as jsx60 } from "react/jsx-runtime";
5239
- var NotificationItemAvatarStyled = styled45(Avatar3, {
5834
+ import { styled as styled50 } from "@mui/material/styles";
5835
+ import { jsx as jsx65 } from "react/jsx-runtime";
5836
+ var NotificationItemAvatarStyled = styled50(Avatar3, {
5240
5837
  name: "MuiNotificationPanel",
5241
5838
  slot: "ItemAvatar",
5242
5839
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5259,16 +5856,16 @@ var NotificationItemAvatar = ({
5259
5856
  color: typeProps.color,
5260
5857
  hasChildren: !!children
5261
5858
  };
5262
- return /* @__PURE__ */ jsx60(ListItemAvatar, { children: /* @__PURE__ */ jsx60(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx60(Icon, { size: 20 }) }) });
5859
+ return /* @__PURE__ */ jsx65(ListItemAvatar, { children: /* @__PURE__ */ jsx65(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx65(Icon, { size: 20 }) }) });
5263
5860
  };
5264
5861
  NotificationItemAvatar.displayName = "NotificationItemAvatar";
5265
5862
 
5266
5863
  // src/components/NotificationPanel/NotificationItemTitle.tsx
5267
- import Box25 from "@mui/material/Box";
5268
- import Typography12 from "@mui/material/Typography";
5269
- import { styled as styled46 } from "@mui/material/styles";
5270
- import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
5271
- var NotificationItemTitleRoot = styled46(Box25, {
5864
+ import Box28 from "@mui/material/Box";
5865
+ import Typography14 from "@mui/material/Typography";
5866
+ import { styled as styled51 } from "@mui/material/styles";
5867
+ import { jsx as jsx66, jsxs as jsxs24 } from "react/jsx-runtime";
5868
+ var NotificationItemTitleRoot = styled51(Box28, {
5272
5869
  name: "MuiNotificationPanel",
5273
5870
  slot: "ItemTitle"
5274
5871
  })(({ theme }) => ({
@@ -5276,7 +5873,7 @@ var NotificationItemTitleRoot = styled46(Box25, {
5276
5873
  alignItems: "center",
5277
5874
  gap: theme.spacing(1)
5278
5875
  }));
5279
- var NotificationItemTitleText = styled46(Typography12, {
5876
+ var NotificationItemTitleText = styled51(Typography14, {
5280
5877
  name: "MuiNotificationPanel",
5281
5878
  slot: "ItemTitleText",
5282
5879
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5284,7 +5881,7 @@ var NotificationItemTitleText = styled46(Typography12, {
5284
5881
  fontWeight: ownerState.read ? 400 : 600,
5285
5882
  flex: 1
5286
5883
  }));
5287
- var NotificationItemUnreadDot = styled46(Box25, {
5884
+ var NotificationItemUnreadDot = styled51(Box28, {
5288
5885
  name: "MuiNotificationPanel",
5289
5886
  slot: "ItemUnreadDot"
5290
5887
  })(({ theme }) => ({
@@ -5300,18 +5897,18 @@ var NotificationItemTitle = ({
5300
5897
  sx
5301
5898
  }) => {
5302
5899
  const { read } = useNotificationItemContext();
5303
- return /* @__PURE__ */ jsxs21(NotificationItemTitleRoot, { sx, children: [
5304
- /* @__PURE__ */ jsx61(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
5305
- showUnreadIndicator && !read && /* @__PURE__ */ jsx61(NotificationItemUnreadDot, {})
5900
+ return /* @__PURE__ */ jsxs24(NotificationItemTitleRoot, { sx, children: [
5901
+ /* @__PURE__ */ jsx66(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
5902
+ showUnreadIndicator && !read && /* @__PURE__ */ jsx66(NotificationItemUnreadDot, {})
5306
5903
  ] });
5307
5904
  };
5308
5905
  NotificationItemTitle.displayName = "NotificationItemTitle";
5309
5906
 
5310
5907
  // src/components/NotificationPanel/NotificationItemMessage.tsx
5311
- import Typography13 from "@mui/material/Typography";
5312
- import { styled as styled47 } from "@mui/material/styles";
5313
- import { jsx as jsx62 } from "react/jsx-runtime";
5314
- var NotificationItemMessageRoot = styled47(Typography13, {
5908
+ import Typography15 from "@mui/material/Typography";
5909
+ import { styled as styled52 } from "@mui/material/styles";
5910
+ import { jsx as jsx67 } from "react/jsx-runtime";
5911
+ var NotificationItemMessageRoot = styled52(Typography15, {
5315
5912
  name: "MuiNotificationPanel",
5316
5913
  slot: "ItemMessage"
5317
5914
  })(({ theme }) => ({
@@ -5323,15 +5920,15 @@ var NotificationItemMessage = ({
5323
5920
  children,
5324
5921
  sx
5325
5922
  }) => {
5326
- return /* @__PURE__ */ jsx62(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
5923
+ return /* @__PURE__ */ jsx67(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
5327
5924
  };
5328
5925
  NotificationItemMessage.displayName = "NotificationItemMessage";
5329
5926
 
5330
5927
  // src/components/NotificationPanel/NotificationItemTimestamp.tsx
5331
- import Typography14 from "@mui/material/Typography";
5332
- import { styled as styled48 } from "@mui/material/styles";
5333
- import { jsx as jsx63 } from "react/jsx-runtime";
5334
- var NotificationItemTimestampRoot = styled48(Typography14, {
5928
+ import Typography16 from "@mui/material/Typography";
5929
+ import { styled as styled53 } from "@mui/material/styles";
5930
+ import { jsx as jsx68 } from "react/jsx-runtime";
5931
+ var NotificationItemTimestampRoot = styled53(Typography16, {
5335
5932
  name: "MuiNotificationPanel",
5336
5933
  slot: "ItemTimestamp"
5337
5934
  })(({ theme }) => ({
@@ -5342,15 +5939,15 @@ var NotificationItemTimestamp = ({
5342
5939
  children,
5343
5940
  sx
5344
5941
  }) => {
5345
- return /* @__PURE__ */ jsx63(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
5942
+ return /* @__PURE__ */ jsx68(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
5346
5943
  };
5347
5944
  NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
5348
5945
 
5349
5946
  // src/components/NotificationPanel/NotificationItemAction.tsx
5350
5947
  import Chip4 from "@mui/material/Chip";
5351
- import { styled as styled49 } from "@mui/material/styles";
5352
- import { jsx as jsx64 } from "react/jsx-runtime";
5353
- var NotificationItemActionRoot = styled49(Chip4, {
5948
+ import { styled as styled54 } from "@mui/material/styles";
5949
+ import { jsx as jsx69 } from "react/jsx-runtime";
5950
+ var NotificationItemActionRoot = styled54(Chip4, {
5354
5951
  name: "MuiNotificationPanel",
5355
5952
  slot: "ItemAction"
5356
5953
  })({
@@ -5372,7 +5969,7 @@ var NotificationItemAction = ({
5372
5969
  onAction == null ? void 0 : onAction();
5373
5970
  }
5374
5971
  };
5375
- return /* @__PURE__ */ jsx64(
5972
+ return /* @__PURE__ */ jsx69(
5376
5973
  NotificationItemActionRoot,
5377
5974
  {
5378
5975
  label: children,
@@ -5386,12 +5983,12 @@ var NotificationItemAction = ({
5386
5983
  NotificationItemAction.displayName = "NotificationItemAction";
5387
5984
 
5388
5985
  // src/components/NotificationPanel/NotificationEmptyState.tsx
5389
- import Box26 from "@mui/material/Box";
5390
- import Typography15 from "@mui/material/Typography";
5391
- import { styled as styled50 } from "@mui/material/styles";
5986
+ import Box29 from "@mui/material/Box";
5987
+ import Typography17 from "@mui/material/Typography";
5988
+ import { styled as styled55 } from "@mui/material/styles";
5392
5989
  import { BellOff } from "@wso2/oxygen-ui-icons-react";
5393
- import { jsx as jsx65, jsxs as jsxs22 } from "react/jsx-runtime";
5394
- var NotificationEmptyStateRoot = styled50(Box26, {
5990
+ import { jsx as jsx70, jsxs as jsxs25 } from "react/jsx-runtime";
5991
+ var NotificationEmptyStateRoot = styled55(Box29, {
5395
5992
  name: "MuiNotificationPanel",
5396
5993
  slot: "EmptyState"
5397
5994
  })(({ theme }) => ({
@@ -5405,7 +6002,7 @@ var NotificationEmptyStateRoot = styled50(Box26, {
5405
6002
  paddingRight: theme.spacing(3),
5406
6003
  textAlign: "center"
5407
6004
  }));
5408
- var NotificationEmptyStateMessage = styled50(Typography15, {
6005
+ var NotificationEmptyStateMessage = styled55(Typography17, {
5409
6006
  name: "MuiNotificationPanel",
5410
6007
  slot: "EmptyStateMessage"
5411
6008
  })(({ theme }) => ({
@@ -5416,15 +6013,15 @@ var NotificationEmptyState = ({
5416
6013
  icon,
5417
6014
  sx
5418
6015
  }) => {
5419
- return /* @__PURE__ */ jsxs22(NotificationEmptyStateRoot, { sx, children: [
5420
- icon || /* @__PURE__ */ jsx65(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
5421
- /* @__PURE__ */ jsx65(NotificationEmptyStateMessage, { variant: "body2", children: message })
6016
+ return /* @__PURE__ */ jsxs25(NotificationEmptyStateRoot, { sx, children: [
6017
+ icon || /* @__PURE__ */ jsx70(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
6018
+ /* @__PURE__ */ jsx70(NotificationEmptyStateMessage, { variant: "body2", children: message })
5422
6019
  ] });
5423
6020
  };
5424
6021
 
5425
6022
  // src/components/NotificationPanel/NotificationPanel.tsx
5426
- import { jsx as jsx66, jsxs as jsxs23 } from "react/jsx-runtime";
5427
- var NotificationPanelRoot = styled51(Drawer, {
6023
+ import { jsx as jsx71, jsxs as jsxs26 } from "react/jsx-runtime";
6024
+ var NotificationPanelRoot = styled56(Drawer, {
5428
6025
  name: "MuiNotificationPanel",
5429
6026
  slot: "Root",
5430
6027
  shouldForwardProp: (prop) => prop !== "ownerState"
@@ -5451,9 +6048,9 @@ var NotificationPanel = ({
5451
6048
  sx
5452
6049
  }) => {
5453
6050
  var _a;
5454
- const appShellContext = React26.useContext(AppShellContext);
6051
+ const appShellContext = React32.useContext(AppShellContext);
5455
6052
  const open = (_a = openProp != null ? openProp : appShellContext == null ? void 0 : appShellContext.state.notificationPanelOpen) != null ? _a : false;
5456
- const onClose = React26.useMemo(
6053
+ const onClose = React32.useMemo(
5457
6054
  () => {
5458
6055
  var _a2;
5459
6056
  return (_a2 = onCloseProp != null ? onCloseProp : appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel) != null ? _a2 : (() => {
@@ -5462,10 +6059,10 @@ var NotificationPanel = ({
5462
6059
  [onCloseProp, appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel]
5463
6060
  );
5464
6061
  const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp.trim() : "Notifications";
5465
- const [liveAnnouncement, setLiveAnnouncementState] = React26.useState("");
5466
- const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React26.useState(0);
5467
- const prevLiveAnnouncementPropRef = React26.useRef(void 0);
5468
- const publishLiveAnnouncement = React26.useCallback(
6062
+ const [liveAnnouncement, setLiveAnnouncementState] = React32.useState("");
6063
+ const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React32.useState(0);
6064
+ const prevLiveAnnouncementPropRef = React32.useRef(void 0);
6065
+ const publishLiveAnnouncement = React32.useCallback(
5469
6066
  (message) => {
5470
6067
  if (!open) return;
5471
6068
  setLiveAnnouncementState(message);
@@ -5473,7 +6070,7 @@ var NotificationPanel = ({
5473
6070
  },
5474
6071
  [open]
5475
6072
  );
5476
- React26.useEffect(() => {
6073
+ React32.useEffect(() => {
5477
6074
  if (!open) {
5478
6075
  setLiveAnnouncementState("");
5479
6076
  prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
@@ -5491,12 +6088,12 @@ var NotificationPanel = ({
5491
6088
  publishLiveAnnouncement(liveAnnouncementProp);
5492
6089
  }
5493
6090
  }, [open, liveAnnouncementProp, publishLiveAnnouncement]);
5494
- const contextValue = React26.useMemo(
6091
+ const contextValue = React32.useMemo(
5495
6092
  () => ({ onClose, open, setLiveAnnouncement: publishLiveAnnouncement }),
5496
6093
  [onClose, open, publishLiveAnnouncement]
5497
6094
  );
5498
6095
  const ownerState = { width };
5499
- return /* @__PURE__ */ jsx66(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs23(
6096
+ return /* @__PURE__ */ jsx71(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs26(
5500
6097
  NotificationPanelRoot,
5501
6098
  {
5502
6099
  anchor,
@@ -5511,8 +6108,8 @@ var NotificationPanel = ({
5511
6108
  }
5512
6109
  },
5513
6110
  children: [
5514
- /* @__PURE__ */ jsx66(
5515
- Box27,
6111
+ /* @__PURE__ */ jsx71(
6112
+ Box30,
5516
6113
  {
5517
6114
  component: "div",
5518
6115
  role: "status",
@@ -5547,30 +6144,30 @@ NotificationPanel.EmptyState = NotificationEmptyState;
5547
6144
  NotificationPanel.displayName = "NotificationPanel";
5548
6145
 
5549
6146
  // src/components/Footer/Footer.tsx
5550
- import * as React27 from "react";
5551
- import Box28 from "@mui/material/Box";
5552
- import { styled as styled55 } from "@mui/material/styles";
6147
+ import * as React33 from "react";
6148
+ import Box31 from "@mui/material/Box";
6149
+ import { styled as styled60 } from "@mui/material/styles";
5553
6150
 
5554
6151
  // src/components/Footer/FooterCopyright.tsx
5555
- import Typography16 from "@mui/material/Typography";
5556
- import { styled as styled52 } from "@mui/material/styles";
5557
- import { jsx as jsx67 } from "react/jsx-runtime";
5558
- var StyledCopyrightText = styled52(Typography16, {
6152
+ import Typography18 from "@mui/material/Typography";
6153
+ import { styled as styled57 } from "@mui/material/styles";
6154
+ import { jsx as jsx72 } from "react/jsx-runtime";
6155
+ var StyledCopyrightText = styled57(Typography18, {
5559
6156
  name: "MuiFooter",
5560
6157
  slot: "CopyrightText"
5561
6158
  })(({ theme }) => ({
5562
6159
  color: (theme.vars || theme).palette.text.secondary
5563
6160
  }));
5564
6161
  var FooterCopyright = ({ children }) => {
5565
- return /* @__PURE__ */ jsx67(StyledCopyrightText, { variant: "caption", children });
6162
+ return /* @__PURE__ */ jsx72(StyledCopyrightText, { variant: "caption", children });
5566
6163
  };
5567
6164
  FooterCopyright.displayName = "Footer.Copyright";
5568
6165
 
5569
6166
  // src/components/Footer/FooterVersion.tsx
5570
- import Typography17 from "@mui/material/Typography";
5571
- import { styled as styled53 } from "@mui/material/styles";
5572
- import { jsx as jsx68 } from "react/jsx-runtime";
5573
- var StyledVersion = styled53(Typography17, {
6167
+ import Typography19 from "@mui/material/Typography";
6168
+ import { styled as styled58 } from "@mui/material/styles";
6169
+ import { jsx as jsx73 } from "react/jsx-runtime";
6170
+ var StyledVersion = styled58(Typography19, {
5574
6171
  name: "MuiFooter",
5575
6172
  slot: "Version"
5576
6173
  })(({ theme }) => ({
@@ -5581,15 +6178,15 @@ var StyledVersion = styled53(Typography17, {
5581
6178
  fontSize: 11
5582
6179
  }));
5583
6180
  var FooterVersion = ({ children }) => {
5584
- return /* @__PURE__ */ jsx68(StyledVersion, { variant: "caption", children });
6181
+ return /* @__PURE__ */ jsx73(StyledVersion, { variant: "caption", children });
5585
6182
  };
5586
6183
  FooterVersion.displayName = "Footer.Version";
5587
6184
 
5588
6185
  // src/components/Footer/FooterLink.tsx
5589
6186
  import Link2 from "@mui/material/Link";
5590
- import { styled as styled54 } from "@mui/material/styles";
5591
- import { jsx as jsx69 } from "react/jsx-runtime";
5592
- var StyledLink = styled54(Link2, {
6187
+ import { styled as styled59 } from "@mui/material/styles";
6188
+ import { jsx as jsx74 } from "react/jsx-runtime";
6189
+ var StyledLink = styled59(Link2, {
5593
6190
  name: "MuiFooter",
5594
6191
  slot: "Link"
5595
6192
  })(({ theme }) => ({
@@ -5601,15 +6198,15 @@ var StyledLink = styled54(Link2, {
5601
6198
  }));
5602
6199
  var FooterLink = (_a) => {
5603
6200
  var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
5604
- return /* @__PURE__ */ jsx69(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
6201
+ return /* @__PURE__ */ jsx74(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
5605
6202
  };
5606
6203
  FooterLink.displayName = "Footer.Link";
5607
6204
 
5608
6205
  // src/components/Footer/FooterDivider.tsx
5609
6206
  import Divider7 from "@mui/material/Divider";
5610
- import { jsx as jsx70 } from "react/jsx-runtime";
6207
+ import { jsx as jsx75 } from "react/jsx-runtime";
5611
6208
  var FooterDivider = () => {
5612
- return /* @__PURE__ */ jsx70(
6209
+ return /* @__PURE__ */ jsx75(
5613
6210
  Divider7,
5614
6211
  {
5615
6212
  orientation: "vertical",
@@ -5621,8 +6218,8 @@ var FooterDivider = () => {
5621
6218
  FooterDivider.displayName = "Footer.Divider";
5622
6219
 
5623
6220
  // src/components/Footer/Footer.tsx
5624
- import { jsx as jsx71, jsxs as jsxs24 } from "react/jsx-runtime";
5625
- var FooterRoot = styled55(Box28, {
6221
+ import { jsx as jsx76, jsxs as jsxs27 } from "react/jsx-runtime";
6222
+ var FooterRoot = styled60(Box31, {
5626
6223
  name: "MuiFooter",
5627
6224
  slot: "Root"
5628
6225
  })(({ theme }) => ({
@@ -5635,7 +6232,7 @@ var FooterRoot = styled55(Box28, {
5635
6232
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
5636
6233
  backgroundColor: (theme.vars || theme).palette.background.paper
5637
6234
  }));
5638
- var FooterContent = styled55(Box28, {
6235
+ var FooterContent = styled60(Box31, {
5639
6236
  name: "MuiFooter",
5640
6237
  slot: "Content"
5641
6238
  })(({ theme }) => ({
@@ -5649,7 +6246,7 @@ var FooterContent = styled55(Box28, {
5649
6246
  alignItems: "center"
5650
6247
  }
5651
6248
  }));
5652
- var FooterLeft = styled55(Box28, {
6249
+ var FooterLeft = styled60(Box31, {
5653
6250
  name: "MuiFooter",
5654
6251
  slot: "Left"
5655
6252
  })(({ theme }) => ({
@@ -5658,7 +6255,7 @@ var FooterLeft = styled55(Box28, {
5658
6255
  gap: theme.spacing(2),
5659
6256
  flexWrap: "wrap"
5660
6257
  }));
5661
- var FooterRight = styled55(Box28, {
6258
+ var FooterRight = styled60(Box31, {
5662
6259
  name: "MuiFooter",
5663
6260
  slot: "Right"
5664
6261
  })(({ theme }) => ({
@@ -5668,11 +6265,11 @@ var FooterRight = styled55(Box28, {
5668
6265
  flexWrap: "wrap"
5669
6266
  }));
5670
6267
  var Footer = ({ children, sx }) => {
5671
- const childrenArray = React27.Children.toArray(children);
6268
+ const childrenArray = React33.Children.toArray(children);
5672
6269
  const leftChildren = [];
5673
6270
  const rightChildren = [];
5674
6271
  childrenArray.forEach((child) => {
5675
- if (React27.isValidElement(child)) {
6272
+ if (React33.isValidElement(child)) {
5676
6273
  if (child.type === FooterCopyright || child.type === FooterVersion || child.type === FooterDivider) {
5677
6274
  leftChildren.push(child);
5678
6275
  } else if (child.type === FooterLink) {
@@ -5680,9 +6277,9 @@ var Footer = ({ children, sx }) => {
5680
6277
  }
5681
6278
  }
5682
6279
  });
5683
- return /* @__PURE__ */ jsx71(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs24(FooterContent, { children: [
5684
- leftChildren.length > 0 && /* @__PURE__ */ jsx71(FooterLeft, { children: leftChildren }),
5685
- rightChildren.length > 0 && /* @__PURE__ */ jsx71(FooterRight, { children: rightChildren })
6280
+ return /* @__PURE__ */ jsx76(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs27(FooterContent, { children: [
6281
+ leftChildren.length > 0 && /* @__PURE__ */ jsx76(FooterLeft, { children: leftChildren }),
6282
+ rightChildren.length > 0 && /* @__PURE__ */ jsx76(FooterRight, { children: rightChildren })
5686
6283
  ] }) });
5687
6284
  };
5688
6285
  Footer.Copyright = FooterCopyright;
@@ -5692,14 +6289,14 @@ Footer.Divider = FooterDivider;
5692
6289
  Footer.displayName = "Footer";
5693
6290
 
5694
6291
  // src/components/UserMenu/UserMenu.tsx
5695
- import * as React32 from "react";
6292
+ import * as React38 from "react";
5696
6293
  import Menu3 from "@mui/material/Menu";
5697
6294
 
5698
6295
  // src/components/UserMenu/UserMenuContext.tsx
5699
- import * as React28 from "react";
5700
- var UserMenuContext = React28.createContext(void 0);
6296
+ import * as React34 from "react";
6297
+ var UserMenuContext = React34.createContext(void 0);
5701
6298
  var useUserMenu = () => {
5702
- const context = React28.useContext(UserMenuContext);
6299
+ const context = React34.useContext(UserMenuContext);
5703
6300
  if (!context) {
5704
6301
  throw new Error("UserMenu sub-components must be used within a UserMenu component");
5705
6302
  }
@@ -5708,11 +6305,11 @@ var useUserMenu = () => {
5708
6305
  UserMenuContext.displayName = "UserMenu.Context";
5709
6306
 
5710
6307
  // src/components/UserMenu/UserMenuTrigger.tsx
5711
- import * as React29 from "react";
5712
- import Tooltip5 from "@mui/material/Tooltip";
5713
- import IconButton6 from "@mui/material/IconButton";
6308
+ import * as React35 from "react";
6309
+ import Tooltip7 from "@mui/material/Tooltip";
6310
+ import IconButton7 from "@mui/material/IconButton";
5714
6311
  import Avatar4 from "@mui/material/Avatar";
5715
- import { styled as styled56 } from "@mui/material/styles";
6312
+ import { styled as styled61 } from "@mui/material/styles";
5716
6313
 
5717
6314
  // src/components/UserMenu/getUserMenuAvatarProps.ts
5718
6315
  var IMAGE_URL_PATTERN = /^(https?:|\/|data:|blob:)/i;
@@ -5734,8 +6331,8 @@ function getUserMenuAvatarProps(name, avatar) {
5734
6331
  }
5735
6332
 
5736
6333
  // src/components/UserMenu/UserMenuTrigger.tsx
5737
- import { jsx as jsx72, jsxs as jsxs25 } from "react/jsx-runtime";
5738
- var StyledTrigger = styled56(IconButton6, {
6334
+ import { jsx as jsx77, jsxs as jsxs28 } from "react/jsx-runtime";
6335
+ var StyledTrigger = styled61(IconButton7, {
5739
6336
  name: "MuiUserMenu",
5740
6337
  slot: "Trigger",
5741
6338
  shouldForwardProp: (prop) => prop !== "showName"
@@ -5746,7 +6343,7 @@ var StyledTrigger = styled56(IconButton6, {
5746
6343
  paddingRight: theme.spacing(1.5),
5747
6344
  borderRadius: typeof theme.shape.borderRadius === "number" ? theme.shape.borderRadius * 2 : theme.spacing(2)
5748
6345
  }));
5749
- var StyledAvatar2 = styled56(Avatar4, {
6346
+ var StyledAvatar2 = styled61(Avatar4, {
5750
6347
  name: "MuiUserMenu",
5751
6348
  slot: "Avatar"
5752
6349
  })(({ theme }) => ({
@@ -5757,7 +6354,7 @@ var StyledAvatar2 = styled56(Avatar4, {
5757
6354
  fontSize: 14,
5758
6355
  fontWeight: 600
5759
6356
  }));
5760
- var StyledNameText = styled56("span", {
6357
+ var StyledNameText = styled61("span", {
5761
6358
  name: "MuiUserMenu",
5762
6359
  slot: "NameText"
5763
6360
  })(({ theme }) => ({
@@ -5769,14 +6366,14 @@ var StyledNameText = styled56("span", {
5769
6366
  display: "block"
5770
6367
  }
5771
6368
  }));
5772
- var UserMenuTrigger = React29.forwardRef(
6369
+ var UserMenuTrigger = React35.forwardRef(
5773
6370
  function UserMenuTrigger2(_a, ref) {
5774
6371
  var _b = _a, { name, avatar, showName = false, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "avatar", "showName", "onClick", "aria-label"]);
5775
6372
  const { open, handleOpen } = useUserMenu();
5776
6373
  const avatarProps = getUserMenuAvatarProps(name, avatar);
5777
6374
  const defaultAriaLabel = showName ? name : "Account";
5778
6375
  const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
5779
- return /* @__PURE__ */ jsx72(Tooltip5, { title: "Account", children: /* @__PURE__ */ jsxs25(
6376
+ return /* @__PURE__ */ jsx77(Tooltip7, { title: "Account", children: /* @__PURE__ */ jsxs28(
5780
6377
  StyledTrigger,
5781
6378
  __spreadProps(__spreadValues({}, props), {
5782
6379
  ref,
@@ -5791,8 +6388,8 @@ var UserMenuTrigger = React29.forwardRef(
5791
6388
  "aria-haspopup": "true",
5792
6389
  "aria-expanded": open ? "true" : void 0,
5793
6390
  children: [
5794
- /* @__PURE__ */ jsx72(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
5795
- showName && /* @__PURE__ */ jsx72(StyledNameText, { children: name })
6391
+ /* @__PURE__ */ jsx77(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6392
+ showName && /* @__PURE__ */ jsx77(StyledNameText, { children: name })
5796
6393
  ]
5797
6394
  })
5798
6395
  ) });
@@ -5802,20 +6399,20 @@ UserMenuTrigger.displayName = "UserMenu.Trigger";
5802
6399
 
5803
6400
  // src/components/UserMenu/UserMenuHeader.tsx
5804
6401
  import Divider8 from "@mui/material/Divider";
5805
- import Box29 from "@mui/material/Box";
6402
+ import Box32 from "@mui/material/Box";
5806
6403
  import Avatar5 from "@mui/material/Avatar";
5807
- import Typography18 from "@mui/material/Typography";
6404
+ import Typography20 from "@mui/material/Typography";
5808
6405
  import Chip5 from "@mui/material/Chip";
5809
- import { styled as styled57 } from "@mui/material/styles";
5810
- import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs26 } from "react/jsx-runtime";
5811
- var StyledHeaderBox = styled57(Box29, {
6406
+ import { styled as styled62 } from "@mui/material/styles";
6407
+ import { Fragment as Fragment9, jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
6408
+ var StyledHeaderBox = styled62(Box32, {
5812
6409
  name: "MuiUserMenu",
5813
6410
  slot: "HeaderBox"
5814
6411
  })(({ theme }) => ({
5815
6412
  padding: theme.spacing(2),
5816
6413
  paddingBottom: theme.spacing(1.5)
5817
6414
  }));
5818
- var StyledHeaderContent = styled57(Box29, {
6415
+ var StyledHeaderContent = styled62(Box32, {
5819
6416
  name: "MuiUserMenu",
5820
6417
  slot: "HeaderContent"
5821
6418
  })(({ theme }) => ({
@@ -5823,7 +6420,7 @@ var StyledHeaderContent = styled57(Box29, {
5823
6420
  alignItems: "center",
5824
6421
  gap: theme.spacing(2)
5825
6422
  }));
5826
- var StyledHeaderAvatar = styled57(Avatar5, {
6423
+ var StyledHeaderAvatar = styled62(Avatar5, {
5827
6424
  name: "MuiUserMenu",
5828
6425
  slot: "HeaderAvatar"
5829
6426
  })(({ theme }) => ({
@@ -5834,7 +6431,7 @@ var StyledHeaderAvatar = styled57(Avatar5, {
5834
6431
  fontSize: 16,
5835
6432
  fontWeight: 600
5836
6433
  }));
5837
- var StyledUserInfo = styled57(Box29, {
6434
+ var StyledUserInfo = styled62(Box32, {
5838
6435
  name: "MuiUserMenu",
5839
6436
  slot: "UserInfo"
5840
6437
  })(({ theme }) => ({
@@ -5844,7 +6441,7 @@ var StyledUserInfo = styled57(Box29, {
5844
6441
  flex: 1,
5845
6442
  minWidth: 0
5846
6443
  }));
5847
- var StyledNameRow = styled57(Box29, {
6444
+ var StyledNameRow = styled62(Box32, {
5848
6445
  name: "MuiUserMenu",
5849
6446
  slot: "NameRow"
5850
6447
  })(({ theme }) => ({
@@ -5852,7 +6449,7 @@ var StyledNameRow = styled57(Box29, {
5852
6449
  alignItems: "center",
5853
6450
  gap: theme.spacing(1)
5854
6451
  }));
5855
- var StyledName = styled57(Typography18, {
6452
+ var StyledName = styled62(Typography20, {
5856
6453
  name: "MuiUserMenu",
5857
6454
  slot: "Name"
5858
6455
  })({
@@ -5861,7 +6458,7 @@ var StyledName = styled57(Typography18, {
5861
6458
  overflow: "hidden",
5862
6459
  textOverflow: "ellipsis"
5863
6460
  });
5864
- var StyledRoleChip = styled57(Chip5, {
6461
+ var StyledRoleChip = styled62(Chip5, {
5865
6462
  name: "MuiUserMenu",
5866
6463
  slot: "RoleChip"
5867
6464
  })({
@@ -5869,7 +6466,7 @@ var StyledRoleChip = styled57(Chip5, {
5869
6466
  fontSize: 11,
5870
6467
  fontWeight: 600
5871
6468
  });
5872
- var StyledEmail = styled57(Typography18, {
6469
+ var StyledEmail = styled62(Typography20, {
5873
6470
  name: "MuiUserMenu",
5874
6471
  slot: "Email"
5875
6472
  })(({ theme }) => ({
@@ -5881,13 +6478,13 @@ var StyledEmail = styled57(Typography18, {
5881
6478
  }));
5882
6479
  var UserMenuHeader = ({ name, email, avatar, role }) => {
5883
6480
  const avatarProps = getUserMenuAvatarProps(name, avatar);
5884
- return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5885
- /* @__PURE__ */ jsx73(StyledHeaderBox, { children: /* @__PURE__ */ jsxs26(StyledHeaderContent, { children: [
5886
- /* @__PURE__ */ jsx73(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
5887
- /* @__PURE__ */ jsxs26(StyledUserInfo, { children: [
5888
- /* @__PURE__ */ jsxs26(StyledNameRow, { children: [
5889
- /* @__PURE__ */ jsx73(StyledName, { variant: "subtitle2", children: name }),
5890
- role && /* @__PURE__ */ jsx73(
6481
+ return /* @__PURE__ */ jsxs29(Fragment9, { children: [
6482
+ /* @__PURE__ */ jsx78(StyledHeaderBox, { children: /* @__PURE__ */ jsxs29(StyledHeaderContent, { children: [
6483
+ /* @__PURE__ */ jsx78(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
6484
+ /* @__PURE__ */ jsxs29(StyledUserInfo, { children: [
6485
+ /* @__PURE__ */ jsxs29(StyledNameRow, { children: [
6486
+ /* @__PURE__ */ jsx78(StyledName, { variant: "subtitle2", children: name }),
6487
+ role && /* @__PURE__ */ jsx78(
5891
6488
  StyledRoleChip,
5892
6489
  {
5893
6490
  label: role,
@@ -5896,32 +6493,32 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
5896
6493
  }
5897
6494
  )
5898
6495
  ] }),
5899
- /* @__PURE__ */ jsx73(StyledEmail, { variant: "caption", children: email })
6496
+ /* @__PURE__ */ jsx78(StyledEmail, { variant: "caption", children: email })
5900
6497
  ] })
5901
6498
  ] }) }),
5902
- /* @__PURE__ */ jsx73(Divider8, {})
6499
+ /* @__PURE__ */ jsx78(Divider8, {})
5903
6500
  ] });
5904
6501
  };
5905
6502
  UserMenuHeader.displayName = "UserMenu.Header";
5906
6503
 
5907
6504
  // src/components/UserMenu/UserMenuItem.tsx
5908
- import * as React30 from "react";
6505
+ import * as React36 from "react";
5909
6506
  import MenuItem5 from "@mui/material/MenuItem";
5910
6507
  import ListItemIcon3 from "@mui/material/ListItemIcon";
5911
6508
  import ListItemText4 from "@mui/material/ListItemText";
5912
- import Box30 from "@mui/material/Box";
6509
+ import Box33 from "@mui/material/Box";
5913
6510
  import Chip6 from "@mui/material/Chip";
5914
- import { styled as styled58 } from "@mui/material/styles";
6511
+ import { styled as styled63 } from "@mui/material/styles";
5915
6512
  import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
5916
- import { jsx as jsx74, jsxs as jsxs27 } from "react/jsx-runtime";
5917
- var StyledMenuItem2 = styled58(MenuItem5, {
6513
+ import { jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
6514
+ var StyledMenuItem2 = styled63(MenuItem5, {
5918
6515
  name: "MuiUserMenu",
5919
6516
  slot: "MenuItem"
5920
6517
  })(({ theme }) => ({
5921
6518
  paddingTop: theme.spacing(1.5),
5922
6519
  paddingBottom: theme.spacing(1.5)
5923
6520
  }));
5924
- var StyledBillingChip = styled58(Chip6, {
6521
+ var StyledBillingChip = styled63(Chip6, {
5925
6522
  name: "MuiUserMenu",
5926
6523
  slot: "BillingChip"
5927
6524
  })(() => ({
@@ -5941,13 +6538,13 @@ var UserMenuItem = ({
5941
6538
  handleClose();
5942
6539
  onClick == null ? void 0 : onClick();
5943
6540
  };
5944
- return /* @__PURE__ */ jsxs27(StyledMenuItem2, { onClick: handleClick, children: [
5945
- icon && /* @__PURE__ */ jsx74(ListItemIcon3, { children: React30.isValidElement(icon) ? React30.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6541
+ return /* @__PURE__ */ jsxs30(StyledMenuItem2, { onClick: handleClick, children: [
6542
+ icon && /* @__PURE__ */ jsx79(ListItemIcon3, { children: React36.isValidElement(icon) ? React36.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5946
6543
  size: (_a = icon.props.size) != null ? _a : 18
5947
6544
  })) : icon }),
5948
- /* @__PURE__ */ jsx74(ListItemText4, { primary: label }),
5949
- /* @__PURE__ */ jsxs27(Box30, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
5950
- badge && /* @__PURE__ */ jsx74(
6545
+ /* @__PURE__ */ jsx79(ListItemText4, { primary: label }),
6546
+ /* @__PURE__ */ jsxs30(Box33, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
6547
+ badge && /* @__PURE__ */ jsx79(
5951
6548
  StyledBillingChip,
5952
6549
  {
5953
6550
  label: badge,
@@ -5955,33 +6552,25 @@ var UserMenuItem = ({
5955
6552
  variant: "outlined"
5956
6553
  }
5957
6554
  ),
5958
- /* @__PURE__ */ jsx74(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
6555
+ /* @__PURE__ */ jsx79(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
5959
6556
  ] })
5960
6557
  ] });
5961
6558
  };
5962
6559
  UserMenuItem.displayName = "UserMenu.Item";
5963
6560
 
5964
6561
  // src/components/UserMenu/UserMenuLogout.tsx
5965
- import * as React31 from "react";
6562
+ import * as React37 from "react";
5966
6563
  import MenuItem6 from "@mui/material/MenuItem";
5967
6564
  import ListItemIcon4 from "@mui/material/ListItemIcon";
5968
6565
  import ListItemText5 from "@mui/material/ListItemText";
5969
- import { styled as styled59 } from "@mui/material/styles";
5970
- import { jsx as jsx75, jsxs as jsxs28 } from "react/jsx-runtime";
5971
- var StyledLogoutItem = styled59(MenuItem6, {
6566
+ import { styled as styled64 } from "@mui/material/styles";
6567
+ import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
6568
+ var StyledLogoutItem = styled64(MenuItem6, {
5972
6569
  name: "MuiUserMenu",
5973
6570
  slot: "LogoutItem"
5974
6571
  })(({ theme }) => ({
5975
6572
  paddingTop: theme.spacing(1.5),
5976
- paddingBottom: theme.spacing(1.5),
5977
- color: (theme.vars || theme).palette.error.main,
5978
- "&:hover": {
5979
- backgroundColor: (theme.vars || theme).palette.error.main,
5980
- color: (theme.vars || theme).palette.error.contrastText,
5981
- "& .MuiListItemIcon-root": {
5982
- color: (theme.vars || theme).palette.error.contrastText
5983
- }
5984
- }
6573
+ paddingBottom: theme.spacing(1.5)
5985
6574
  }));
5986
6575
  var UserMenuLogout = ({
5987
6576
  icon,
@@ -5994,25 +6583,25 @@ var UserMenuLogout = ({
5994
6583
  handleClose();
5995
6584
  onClick == null ? void 0 : onClick();
5996
6585
  };
5997
- return /* @__PURE__ */ jsxs28(StyledLogoutItem, { onClick: handleClick, children: [
5998
- icon && /* @__PURE__ */ jsx75(ListItemIcon4, { children: React31.isValidElement(icon) ? React31.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
6586
+ return /* @__PURE__ */ jsxs31(StyledLogoutItem, { onClick: handleClick, children: [
6587
+ icon && /* @__PURE__ */ jsx80(ListItemIcon4, { children: React37.isValidElement(icon) ? React37.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5999
6588
  size: (_a = icon.props.size) != null ? _a : 18
6000
6589
  })) : icon }),
6001
- /* @__PURE__ */ jsx75(ListItemText5, { primary: label })
6590
+ /* @__PURE__ */ jsx80(ListItemText5, { primary: label })
6002
6591
  ] });
6003
6592
  };
6004
6593
  UserMenuLogout.displayName = "UserMenu.Logout";
6005
6594
 
6006
6595
  // src/components/UserMenu/UserMenuDivider.tsx
6007
6596
  import Divider9 from "@mui/material/Divider";
6008
- import { jsx as jsx76 } from "react/jsx-runtime";
6009
- var UserMenuDivider = () => /* @__PURE__ */ jsx76(Divider9, {});
6597
+ import { jsx as jsx81 } from "react/jsx-runtime";
6598
+ var UserMenuDivider = () => /* @__PURE__ */ jsx81(Divider9, {});
6010
6599
  UserMenuDivider.displayName = "UserMenu.Divider";
6011
6600
 
6012
6601
  // src/components/UserMenu/UserMenu.tsx
6013
- import { jsx as jsx77, jsxs as jsxs29 } from "react/jsx-runtime";
6602
+ import { jsx as jsx82, jsxs as jsxs32 } from "react/jsx-runtime";
6014
6603
  var UserMenu = ({ children }) => {
6015
- const [anchorEl, setAnchorEl] = React32.useState(null);
6604
+ const [anchorEl, setAnchorEl] = React38.useState(null);
6016
6605
  const open = Boolean(anchorEl);
6017
6606
  const handleOpen = (event) => {
6018
6607
  setAnchorEl(event.currentTarget);
@@ -6020,16 +6609,16 @@ var UserMenu = ({ children }) => {
6020
6609
  const handleClose = () => {
6021
6610
  setAnchorEl(null);
6022
6611
  };
6023
- const childrenArray = React32.Children.toArray(children);
6612
+ const childrenArray = React38.Children.toArray(children);
6024
6613
  const triggerChild = childrenArray.find(
6025
- (child) => React32.isValidElement(child) && child.type === UserMenuTrigger
6614
+ (child) => React38.isValidElement(child) && child.type === UserMenuTrigger
6026
6615
  );
6027
6616
  const menuChildren = childrenArray.filter(
6028
- (child) => React32.isValidElement(child) && child.type !== UserMenuTrigger
6617
+ (child) => React38.isValidElement(child) && child.type !== UserMenuTrigger
6029
6618
  );
6030
- return /* @__PURE__ */ jsxs29(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
6619
+ return /* @__PURE__ */ jsxs32(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
6031
6620
  triggerChild,
6032
- /* @__PURE__ */ jsx77(
6621
+ /* @__PURE__ */ jsx82(
6033
6622
  Menu3,
6034
6623
  {
6035
6624
  id: "user-menu",
@@ -6059,15 +6648,15 @@ UserMenu.Divider = UserMenuDivider;
6059
6648
  UserMenu.displayName = "UserMenu";
6060
6649
 
6061
6650
  // src/components/NotificationBanner/NotificationBanner.tsx
6062
- import * as React33 from "react";
6651
+ import * as React39 from "react";
6063
6652
  import Alert from "@mui/material/Alert";
6064
6653
  import AlertTitle from "@mui/material/AlertTitle";
6065
6654
  import Collapse2 from "@mui/material/Collapse";
6066
6655
  import Button4 from "@mui/material/Button";
6067
- import Box31 from "@mui/material/Box";
6068
- import { styled as styled60 } from "@mui/material/styles";
6069
- import { jsx as jsx78, jsxs as jsxs30 } from "react/jsx-runtime";
6070
- var NotificationBannerAlert = styled60(Alert, {
6656
+ import Box34 from "@mui/material/Box";
6657
+ import { styled as styled65 } from "@mui/material/styles";
6658
+ import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
6659
+ var NotificationBannerAlert = styled65(Alert, {
6071
6660
  name: "MuiNotificationBanner",
6072
6661
  slot: "Root"
6073
6662
  })(({ theme }) => __spreadValues({
@@ -6095,7 +6684,7 @@ var NotificationBannerAlert = styled60(Alert, {
6095
6684
  }
6096
6685
  }
6097
6686
  })));
6098
- var NotificationBannerContent = styled60(Box31, {
6687
+ var NotificationBannerContent = styled65(Box34, {
6099
6688
  name: "MuiNotificationBanner",
6100
6689
  slot: "Content"
6101
6690
  })({
@@ -6104,7 +6693,7 @@ var NotificationBannerContent = styled60(Box31, {
6104
6693
  gap: 2,
6105
6694
  flex: 1
6106
6695
  });
6107
- var NotificationBannerAction = styled60(Button4, {
6696
+ var NotificationBannerAction = styled65(Button4, {
6108
6697
  name: "MuiNotificationBanner",
6109
6698
  slot: "Action"
6110
6699
  })({
@@ -6125,22 +6714,22 @@ var NotificationBanner = ({
6125
6714
  onDismiss,
6126
6715
  sx
6127
6716
  }) => {
6128
- const [isVisible, setIsVisible] = React33.useState(visible);
6129
- React33.useEffect(() => {
6717
+ const [isVisible, setIsVisible] = React39.useState(visible);
6718
+ React39.useEffect(() => {
6130
6719
  setIsVisible(visible);
6131
6720
  }, [visible]);
6132
6721
  const handleDismiss = () => {
6133
6722
  setIsVisible(false);
6134
6723
  onDismiss == null ? void 0 : onDismiss();
6135
6724
  };
6136
- return /* @__PURE__ */ jsx78(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx78(
6725
+ return /* @__PURE__ */ jsx83(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx83(
6137
6726
  NotificationBannerAlert,
6138
6727
  {
6139
6728
  severity,
6140
6729
  variant: "filled",
6141
6730
  onClose: handleDismiss,
6142
6731
  sx,
6143
- action: actionLabel && onAction ? /* @__PURE__ */ jsx78(
6732
+ action: actionLabel && onAction ? /* @__PURE__ */ jsx83(
6144
6733
  NotificationBannerAction,
6145
6734
  {
6146
6735
  color: "inherit",
@@ -6149,19 +6738,19 @@ var NotificationBanner = ({
6149
6738
  children: actionLabel
6150
6739
  }
6151
6740
  ) : void 0,
6152
- children: /* @__PURE__ */ jsxs30(NotificationBannerContent, { children: [
6153
- title && /* @__PURE__ */ jsx78(AlertTitle, { sx: { mb: 0 }, children: title }),
6154
- /* @__PURE__ */ jsx78(Box31, { component: "span", children: message })
6741
+ children: /* @__PURE__ */ jsxs33(NotificationBannerContent, { children: [
6742
+ title && /* @__PURE__ */ jsx83(AlertTitle, { sx: { mb: 0 }, children: title }),
6743
+ /* @__PURE__ */ jsx83(Box34, { component: "span", children: message })
6155
6744
  ] })
6156
6745
  }
6157
6746
  ) });
6158
6747
  };
6159
6748
 
6160
6749
  // src/components/Form/CardButton.tsx
6161
- import { Card as Card2, ButtonBase as ButtonBase2, Box as Box32, styled as styled61 } from "@mui/material";
6750
+ import { Card as Card3, ButtonBase as ButtonBase3, Box as Box35, styled as styled66 } from "@mui/material";
6162
6751
  import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
6163
- import { jsx as jsx79 } from "react/jsx-runtime";
6164
- var StyledCardButton = styled61(Card2, {
6752
+ import { jsx as jsx84 } from "react/jsx-runtime";
6753
+ var StyledCardButton = styled66(Card3, {
6165
6754
  shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
6166
6755
  })(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
6167
6756
  flexDirection: "column",
@@ -6189,90 +6778,90 @@ var StyledCardButton = styled61(Card2, {
6189
6778
  }));
6190
6779
  var CardButton = (props) => {
6191
6780
  const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
6192
- return /* @__PURE__ */ jsx79(
6781
+ return /* @__PURE__ */ jsx84(
6193
6782
  StyledCardButton,
6194
6783
  __spreadValues({
6195
6784
  alignItems,
6196
- component: ButtonBase2,
6785
+ component: ButtonBase3,
6197
6786
  selected,
6198
6787
  disabled
6199
6788
  }, rest)
6200
6789
  );
6201
6790
  };
6202
- var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx79(Box32, __spreadValues({ className: "creation-flow-card-actions" }, props));
6791
+ var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx84(Box35, __spreadValues({ className: "creation-flow-card-actions" }, props));
6203
6792
 
6204
6793
  // src/components/Form/Stack.tsx
6205
6794
  import { Stack as OxygenStack } from "@mui/material";
6206
- import { jsx as jsx80 } from "react/jsx-runtime";
6795
+ import { jsx as jsx85 } from "react/jsx-runtime";
6207
6796
  var Stack2 = (props) => {
6208
- return /* @__PURE__ */ jsx80(OxygenStack, __spreadValues({ spacing: 2 }, props));
6797
+ return /* @__PURE__ */ jsx85(OxygenStack, __spreadValues({ spacing: 2 }, props));
6209
6798
  };
6210
6799
 
6211
6800
  // src/components/Form/Typography.tsx
6212
- import { Typography as Typography19 } from "@mui/material";
6213
- import { jsx as jsx81 } from "react/jsx-runtime";
6801
+ import { Typography as Typography21 } from "@mui/material";
6802
+ import { jsx as jsx86 } from "react/jsx-runtime";
6214
6803
  var Header2 = (props) => {
6215
6804
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6216
- return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
6805
+ return /* @__PURE__ */ jsx86(Typography21, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
6217
6806
  };
6218
6807
  var Subheader = (props) => {
6219
6808
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6220
- return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
6809
+ return /* @__PURE__ */ jsx86(Typography21, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
6221
6810
  };
6222
6811
  var Body = (props) => {
6223
6812
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
6224
- return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
6813
+ return /* @__PURE__ */ jsx86(Typography21, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
6225
6814
  };
6226
6815
 
6227
6816
  // src/components/Form/Section.tsx
6228
- import { Card as Card3, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
6229
- import { jsx as jsx82 } from "react/jsx-runtime";
6817
+ import { Card as Card4, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
6818
+ import { jsx as jsx87 } from "react/jsx-runtime";
6230
6819
  var Section = ({ children }) => {
6231
- return /* @__PURE__ */ jsx82(Card3, { children: /* @__PURE__ */ jsx82(CardContent3, { children: /* @__PURE__ */ jsx82(Stack3, { direction: "column", spacing: 2, children }) }) });
6820
+ return /* @__PURE__ */ jsx87(Card4, { children: /* @__PURE__ */ jsx87(CardContent3, { children: /* @__PURE__ */ jsx87(Stack3, { direction: "column", spacing: 2, children }) }) });
6232
6821
  };
6233
6822
 
6234
6823
  // src/components/Form/Wizard.tsx
6235
6824
  import {
6236
- Card as Card4,
6825
+ Card as Card5,
6237
6826
  CardContent as CardContent4,
6238
6827
  StepLabel,
6239
6828
  Step,
6240
6829
  Stepper,
6241
6830
  Divider as Divider10
6242
6831
  } from "@mui/material";
6243
- import { styled as styled62 } from "@mui/material/styles";
6244
- import { useMemo as useMemo6 } from "react";
6245
- import { jsx as jsx83, jsxs as jsxs31 } from "react/jsx-runtime";
6246
- var StyledWizardActionsStack = styled62(Stack2)(() => ({
6832
+ import { styled as styled67 } from "@mui/material/styles";
6833
+ import { useMemo as useMemo7 } from "react";
6834
+ import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
6835
+ var StyledWizardActionsStack = styled67(Stack2)(() => ({
6247
6836
  justifyContent: "space-between",
6248
6837
  flexGrow: 1
6249
6838
  }));
6250
6839
  function Wizard({ steps, activeStep, actions }) {
6251
- const step = useMemo6(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
6252
- return /* @__PURE__ */ jsx83(Card4, { children: /* @__PURE__ */ jsx83(CardContent4, { children: /* @__PURE__ */ jsxs31(Stack2, { children: [
6253
- /* @__PURE__ */ jsx83(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx83(Step, { children: /* @__PURE__ */ jsx83(StepLabel, { children: step2.label }) }, step2.label)) }),
6254
- /* @__PURE__ */ jsx83(Divider10, {}),
6255
- /* @__PURE__ */ jsx83(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
6256
- /* @__PURE__ */ jsx83(StyledWizardActionsStack, { direction: "row", children: actions })
6840
+ const step = useMemo7(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
6841
+ return /* @__PURE__ */ jsx88(Card5, { children: /* @__PURE__ */ jsx88(CardContent4, { children: /* @__PURE__ */ jsxs34(Stack2, { children: [
6842
+ /* @__PURE__ */ jsx88(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx88(Step, { children: /* @__PURE__ */ jsx88(StepLabel, { children: step2.label }) }, step2.label)) }),
6843
+ /* @__PURE__ */ jsx88(Divider10, {}),
6844
+ /* @__PURE__ */ jsx88(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
6845
+ /* @__PURE__ */ jsx88(StyledWizardActionsStack, { direction: "row", children: actions })
6257
6846
  ] }) }) });
6258
6847
  }
6259
6848
 
6260
6849
  // src/components/Form/ElementWrapper.tsx
6261
6850
  import { FormControl as FormControl3, FormLabel } from "@mui/material";
6262
- import React34 from "react";
6263
- import { jsx as jsx84, jsxs as jsxs32 } from "react/jsx-runtime";
6851
+ import React40 from "react";
6852
+ import { jsx as jsx89, jsxs as jsxs35 } from "react/jsx-runtime";
6264
6853
  var ElementWrapper = (props) => {
6265
6854
  const { label, name, children } = props;
6266
6855
  const labelId = `${name}-label`;
6267
- const enhancedChildren = React34.Children.map(children, (child) => {
6856
+ const enhancedChildren = React40.Children.map(children, (child) => {
6268
6857
  var _a;
6269
- if (React34.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
6270
- return React34.cloneElement(child, { labelId });
6858
+ if (React40.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
6859
+ return React40.cloneElement(child, { labelId });
6271
6860
  }
6272
6861
  return child;
6273
6862
  });
6274
- return /* @__PURE__ */ jsxs32(FormControl3, { fullWidth: true, children: [
6275
- /* @__PURE__ */ jsx84(FormLabel, { id: labelId, htmlFor: name, children: label }),
6863
+ return /* @__PURE__ */ jsxs35(FormControl3, { fullWidth: true, children: [
6864
+ /* @__PURE__ */ jsx89(FormLabel, { id: labelId, htmlFor: name, children: label }),
6276
6865
  enhancedChildren
6277
6866
  ] });
6278
6867
  };
@@ -6296,16 +6885,16 @@ var Form = {
6296
6885
  };
6297
6886
 
6298
6887
  // src/components/AppShell/AppShell.tsx
6299
- import * as React36 from "react";
6300
- import Box37 from "@mui/material/Box";
6888
+ import * as React42 from "react";
6889
+ import Box40 from "@mui/material/Box";
6301
6890
 
6302
6891
  // src/layouts/Layout.tsx
6303
- import Box33 from "@mui/material/Box";
6304
- import { jsx as jsx85 } from "react/jsx-runtime";
6892
+ import Box36 from "@mui/material/Box";
6893
+ import { jsx as jsx90 } from "react/jsx-runtime";
6305
6894
  function Layout(_a) {
6306
6895
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6307
- return /* @__PURE__ */ jsx85(
6308
- Box33,
6896
+ return /* @__PURE__ */ jsx90(
6897
+ Box36,
6309
6898
  __spreadProps(__spreadValues({
6310
6899
  sx: __spreadValues({
6311
6900
  display: "flex",
@@ -6320,12 +6909,12 @@ Layout.displayName = "Layout";
6320
6909
  var Layout_default = Layout;
6321
6910
 
6322
6911
  // src/layouts/LayoutSidebar.tsx
6323
- import Box34 from "@mui/material/Box";
6324
- import { jsx as jsx86 } from "react/jsx-runtime";
6912
+ import Box37 from "@mui/material/Box";
6913
+ import { jsx as jsx91 } from "react/jsx-runtime";
6325
6914
  function LayoutSidebar(_a) {
6326
6915
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6327
- return /* @__PURE__ */ jsx86(
6328
- Box34,
6916
+ return /* @__PURE__ */ jsx91(
6917
+ Box37,
6329
6918
  __spreadProps(__spreadValues({
6330
6919
  sx: __spreadValues({
6331
6920
  display: "flex",
@@ -6347,12 +6936,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
6347
6936
  var LayoutNavbar_default = LayoutNavbar;
6348
6937
 
6349
6938
  // src/layouts/LayoutContent.tsx
6350
- import Box35 from "@mui/material/Box";
6351
- import { jsx as jsx87 } from "react/jsx-runtime";
6939
+ import Box38 from "@mui/material/Box";
6940
+ import { jsx as jsx92 } from "react/jsx-runtime";
6352
6941
  function LayoutContent(_a) {
6353
6942
  var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
6354
- return /* @__PURE__ */ jsx87(
6355
- Box35,
6943
+ return /* @__PURE__ */ jsx92(
6944
+ Box38,
6356
6945
  __spreadProps(__spreadValues({
6357
6946
  component: "main",
6358
6947
  sx: {
@@ -6370,12 +6959,12 @@ LayoutContent.displayName = "Layout.Content";
6370
6959
  var LayoutContent_default = LayoutContent;
6371
6960
 
6372
6961
  // src/layouts/LayoutHeader.tsx
6373
- import Box36 from "@mui/material/Box";
6374
- import { jsx as jsx88 } from "react/jsx-runtime";
6962
+ import Box39 from "@mui/material/Box";
6963
+ import { jsx as jsx93 } from "react/jsx-runtime";
6375
6964
  function LayoutHeader(_a) {
6376
6965
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6377
- return /* @__PURE__ */ jsx88(
6378
- Box36,
6966
+ return /* @__PURE__ */ jsx93(
6967
+ Box39,
6379
6968
  __spreadProps(__spreadValues({
6380
6969
  sx: __spreadValues({
6381
6970
  display: "flex"
@@ -6398,45 +6987,45 @@ var Layout2 = Object.assign(Layout_default, {
6398
6987
  var layouts_default = Layout2;
6399
6988
 
6400
6989
  // src/components/AppShell/AppShellNavbar.tsx
6401
- import { Fragment as Fragment10, jsx as jsx89 } from "react/jsx-runtime";
6990
+ import { Fragment as Fragment10, jsx as jsx94 } from "react/jsx-runtime";
6402
6991
  var AppShellNavbar = ({ children }) => {
6403
- return /* @__PURE__ */ jsx89(Fragment10, { children });
6992
+ return /* @__PURE__ */ jsx94(Fragment10, { children });
6404
6993
  };
6405
6994
  AppShellNavbar.displayName = "AppShellNavbar";
6406
6995
 
6407
6996
  // src/components/AppShell/AppShellSidebar.tsx
6408
- import { Fragment as Fragment11, jsx as jsx90 } from "react/jsx-runtime";
6997
+ import { Fragment as Fragment11, jsx as jsx95 } from "react/jsx-runtime";
6409
6998
  var AppShellSidebar = ({ children }) => {
6410
- return /* @__PURE__ */ jsx90(Fragment11, { children });
6999
+ return /* @__PURE__ */ jsx95(Fragment11, { children });
6411
7000
  };
6412
7001
  AppShellSidebar.displayName = "AppShellSidebar";
6413
7002
 
6414
7003
  // src/components/AppShell/AppShellMain.tsx
6415
- import { Fragment as Fragment12, jsx as jsx91 } from "react/jsx-runtime";
7004
+ import { Fragment as Fragment12, jsx as jsx96 } from "react/jsx-runtime";
6416
7005
  var AppShellMain = ({ children }) => {
6417
- return /* @__PURE__ */ jsx91(Fragment12, { children });
7006
+ return /* @__PURE__ */ jsx96(Fragment12, { children });
6418
7007
  };
6419
7008
  AppShellMain.displayName = "AppShellMain";
6420
7009
 
6421
7010
  // src/components/AppShell/AppShellFooter.tsx
6422
- import { Fragment as Fragment13, jsx as jsx92 } from "react/jsx-runtime";
7011
+ import { Fragment as Fragment13, jsx as jsx97 } from "react/jsx-runtime";
6423
7012
  var AppShellFooter = ({ children }) => {
6424
- return /* @__PURE__ */ jsx92(Fragment13, { children });
7013
+ return /* @__PURE__ */ jsx97(Fragment13, { children });
6425
7014
  };
6426
7015
  AppShellFooter.displayName = "AppShellFooter";
6427
7016
 
6428
7017
  // src/components/AppShell/AppShellNotificationPanel.tsx
6429
- import { Fragment as Fragment14, jsx as jsx93 } from "react/jsx-runtime";
7018
+ import { Fragment as Fragment14, jsx as jsx98 } from "react/jsx-runtime";
6430
7019
  var AppShellNotificationPanel = ({ children }) => {
6431
- return /* @__PURE__ */ jsx93(Fragment14, { children });
7020
+ return /* @__PURE__ */ jsx98(Fragment14, { children });
6432
7021
  };
6433
7022
  AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
6434
7023
 
6435
7024
  // src/hooks/useAppShell/useAppShell.ts
6436
- import * as React35 from "react";
7025
+ import * as React41 from "react";
6437
7026
  import useMediaQuery3 from "@mui/material/useMediaQuery";
6438
7027
  var useAppShell = (options) => {
6439
- const contextValue = React35.useContext(AppShellContext);
7028
+ const contextValue = React41.useContext(AppShellContext);
6440
7029
  const {
6441
7030
  initialCollapsed = false,
6442
7031
  initialActiveItem = "dashboard",
@@ -6447,7 +7036,7 @@ var useAppShell = (options) => {
6447
7036
  } = options || {};
6448
7037
  const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
6449
7038
  const isCreateMode = options !== void 0;
6450
- const [state, setState] = React35.useState({
7039
+ const [state, setState] = React41.useState({
6451
7040
  sidebarCollapsed: initialCollapsed,
6452
7041
  notificationPanelOpen: false,
6453
7042
  activeMenuItem: initialActiveItem,
@@ -6455,29 +7044,29 @@ var useAppShell = (options) => {
6455
7044
  sidebarWidth,
6456
7045
  sidebarCollapsedWidth
6457
7046
  });
6458
- React35.useEffect(() => {
7047
+ React41.useEffect(() => {
6459
7048
  if (isCreateMode && collapseOnMobile && isMobile) {
6460
7049
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
6461
7050
  }
6462
7051
  }, [isCreateMode, collapseOnMobile, isMobile]);
6463
- const toggleSidebar = React35.useCallback(() => {
7052
+ const toggleSidebar = React41.useCallback(() => {
6464
7053
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
6465
7054
  }, []);
6466
- const setSidebarCollapsed = React35.useCallback((collapsed) => {
7055
+ const setSidebarCollapsed = React41.useCallback((collapsed) => {
6467
7056
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: collapsed }));
6468
7057
  }, []);
6469
- const collapseSidebar = React35.useCallback(() => {
7058
+ const collapseSidebar = React41.useCallback(() => {
6470
7059
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
6471
7060
  }, []);
6472
- const expandSidebar = React35.useCallback(() => {
7061
+ const expandSidebar = React41.useCallback(() => {
6473
7062
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: false }));
6474
7063
  }, []);
6475
- const toggleNotificationPanel = React35.useCallback(() => {
7064
+ const toggleNotificationPanel = React41.useCallback(() => {
6476
7065
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
6477
7066
  notificationPanelOpen: !prev.notificationPanelOpen
6478
7067
  }));
6479
7068
  }, []);
6480
- const setActiveMenuItem = React35.useCallback((id) => {
7069
+ const setActiveMenuItem = React41.useCallback((id) => {
6481
7070
  setState((prev) => {
6482
7071
  const newState = __spreadProps(__spreadValues({}, prev), { activeMenuItem: id });
6483
7072
  if (collapseOnSelectOnMobile && isMobile && !prev.sidebarCollapsed) {
@@ -6486,14 +7075,14 @@ var useAppShell = (options) => {
6486
7075
  return newState;
6487
7076
  });
6488
7077
  }, [collapseOnSelectOnMobile, isMobile]);
6489
- const toggleMenu = React35.useCallback((id) => {
7078
+ const toggleMenu = React41.useCallback((id) => {
6490
7079
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
6491
7080
  expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
6492
7081
  [id]: !prev.expandedMenus[id]
6493
7082
  })
6494
7083
  }));
6495
7084
  }, []);
6496
- const actions = React35.useMemo(
7085
+ const actions = React41.useMemo(
6497
7086
  () => ({
6498
7087
  toggleSidebar,
6499
7088
  setSidebarCollapsed,
@@ -6513,7 +7102,7 @@ var useAppShell = (options) => {
6513
7102
  toggleMenu
6514
7103
  ]
6515
7104
  );
6516
- const createdValue = React35.useMemo(
7105
+ const createdValue = React41.useMemo(
6517
7106
  () => ({
6518
7107
  state,
6519
7108
  actions
@@ -6532,7 +7121,7 @@ var useAppShell = (options) => {
6532
7121
  };
6533
7122
 
6534
7123
  // src/components/AppShell/AppShell.tsx
6535
- import { jsx as jsx94, jsxs as jsxs33 } from "react/jsx-runtime";
7124
+ import { jsx as jsx99, jsxs as jsxs36 } from "react/jsx-runtime";
6536
7125
  var SLOT_DISPLAY_NAMES = {
6537
7126
  Navbar: "AppShellNavbar",
6538
7127
  Sidebar: "AppShellSidebar",
@@ -6548,9 +7137,9 @@ var extractSlots = (children) => {
6548
7137
  footer: null,
6549
7138
  notificationPanel: null
6550
7139
  };
6551
- React36.Children.forEach(children, (child) => {
7140
+ React42.Children.forEach(children, (child) => {
6552
7141
  var _a;
6553
- if (React36.isValidElement(child)) {
7142
+ if (React42.isValidElement(child)) {
6554
7143
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
6555
7144
  const childProps = child.props;
6556
7145
  switch (displayName) {
@@ -6582,12 +7171,12 @@ var AppShell = (_a) => {
6582
7171
  var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
6583
7172
  const shell = useAppShell(shellOptions);
6584
7173
  const slots = extractSlots(children);
6585
- return /* @__PURE__ */ jsx94(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs33(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
6586
- slots.navbar && /* @__PURE__ */ jsx94(layouts_default.Navbar, { children: slots.navbar }),
6587
- /* @__PURE__ */ jsxs33(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
6588
- slots.sidebar && /* @__PURE__ */ jsx94(layouts_default.Sidebar, { children: slots.sidebar }),
6589
- /* @__PURE__ */ jsxs33(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
6590
- /* @__PURE__ */ jsx94(Box37, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
7174
+ return /* @__PURE__ */ jsx99(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs36(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
7175
+ slots.navbar && /* @__PURE__ */ jsx99(layouts_default.Navbar, { children: slots.navbar }),
7176
+ /* @__PURE__ */ jsxs36(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
7177
+ slots.sidebar && /* @__PURE__ */ jsx99(layouts_default.Sidebar, { children: slots.sidebar }),
7178
+ /* @__PURE__ */ jsxs36(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
7179
+ /* @__PURE__ */ jsx99(Box40, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
6591
7180
  slots.footer
6592
7181
  ] })
6593
7182
  ] }),
@@ -6603,7 +7192,7 @@ AppShell.displayName = "AppShell";
6603
7192
 
6604
7193
  // src/components/ListingTable/ListingTable/ListingTable.tsx
6605
7194
  import MuiTable from "@mui/material/Table";
6606
- import { styled as styled68 } from "@mui/material/styles";
7195
+ import { styled as styled73 } from "@mui/material/styles";
6607
7196
 
6608
7197
  // src/components/ListingTable/shared/types.ts
6609
7198
  var densityStyles = {
@@ -6615,7 +7204,7 @@ var densityStyles = {
6615
7204
  // src/components/ListingTable/ListingTable/ListingTableContainer.tsx
6616
7205
  import MuiTableContainer from "@mui/material/TableContainer";
6617
7206
  import Paper from "@mui/material/Paper";
6618
- import { jsx as jsx95 } from "react/jsx-runtime";
7207
+ import { jsx as jsx100 } from "react/jsx-runtime";
6619
7208
  function ListingTableContainer(_a) {
6620
7209
  var _b = _a, {
6621
7210
  elevation = 1,
@@ -6627,17 +7216,17 @@ function ListingTableContainer(_a) {
6627
7216
  "children"
6628
7217
  ]);
6629
7218
  if (disablePaper) {
6630
- return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7219
+ return /* @__PURE__ */ jsx100(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
6631
7220
  }
6632
- return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
7221
+ return /* @__PURE__ */ jsx100(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
6633
7222
  }
6634
7223
  var ListingTableContainer_default = ListingTableContainer;
6635
7224
 
6636
7225
  // src/components/ListingTable/ListingTable/ListingTableHead.tsx
6637
7226
  import MuiTableHead from "@mui/material/TableHead";
6638
- import { styled as styled63 } from "@mui/material/styles";
6639
- import { jsx as jsx96 } from "react/jsx-runtime";
6640
- var StyledTableHead = styled63(MuiTableHead)(({ theme }) => ({
7227
+ import { styled as styled68 } from "@mui/material/styles";
7228
+ import { jsx as jsx101 } from "react/jsx-runtime";
7229
+ var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
6641
7230
  "& .MuiTableCell-head": __spreadValues(__spreadValues({
6642
7231
  fontWeight: 600
6643
7232
  }, theme.applyStyles("light", {
@@ -6648,33 +7237,33 @@ var StyledTableHead = styled63(MuiTableHead)(({ theme }) => ({
6648
7237
  }));
6649
7238
  function ListingTableHead(_a) {
6650
7239
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6651
- return /* @__PURE__ */ jsx96(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
7240
+ return /* @__PURE__ */ jsx101(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
6652
7241
  }
6653
7242
  var ListingTableHead_default = ListingTableHead;
6654
7243
 
6655
7244
  // src/components/ListingTable/ListingTable/ListingTableBody.tsx
6656
7245
  import MuiTableBody from "@mui/material/TableBody";
6657
- import { jsx as jsx97 } from "react/jsx-runtime";
7246
+ import { jsx as jsx102 } from "react/jsx-runtime";
6658
7247
  function ListingTableBody(_a) {
6659
7248
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6660
- return /* @__PURE__ */ jsx97(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
7249
+ return /* @__PURE__ */ jsx102(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
6661
7250
  }
6662
7251
  var ListingTableBody_default = ListingTableBody;
6663
7252
 
6664
7253
  // src/components/ListingTable/ListingTable/ListingTableFooter.tsx
6665
7254
  import MuiTableFooter from "@mui/material/TableFooter";
6666
- import { jsx as jsx98 } from "react/jsx-runtime";
7255
+ import { jsx as jsx103 } from "react/jsx-runtime";
6667
7256
  function ListingTableFooter(_a) {
6668
7257
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6669
- return /* @__PURE__ */ jsx98(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
7258
+ return /* @__PURE__ */ jsx103(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
6670
7259
  }
6671
7260
  var ListingTableFooter_default = ListingTableFooter;
6672
7261
 
6673
7262
  // src/components/ListingTable/ListingTable/ListingTableRow.tsx
6674
7263
  import MuiTableRow from "@mui/material/TableRow";
6675
- import { styled as styled64, alpha } from "@mui/material/styles";
6676
- import { jsx as jsx99 } from "react/jsx-runtime";
6677
- var StyledTableRow = styled64(MuiTableRow, {
7264
+ import { styled as styled69, alpha as alpha2 } from "@mui/material/styles";
7265
+ import { jsx as jsx104 } from "react/jsx-runtime";
7266
+ var StyledTableRow = styled69(MuiTableRow, {
6678
7267
  shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
6679
7268
  })(({ theme: muiTheme, clickable, variant = "table" }) => {
6680
7269
  const theme = muiTheme;
@@ -6684,7 +7273,7 @@ var StyledTableRow = styled64(MuiTableRow, {
6684
7273
  cursor: "pointer"
6685
7274
  }), variant === "card" && (() => {
6686
7275
  var _a, _b, _c, _d;
6687
- const borderColor = alpha(
7276
+ const borderColor = alpha2(
6688
7277
  isDarkMode ? theme.palette.common.white : theme.palette.common.black,
6689
7278
  isDarkMode ? 0.3 : 0.12
6690
7279
  );
@@ -6732,15 +7321,15 @@ function ListingTableRow(_a) {
6732
7321
  "variant",
6733
7322
  "children"
6734
7323
  ]);
6735
- return /* @__PURE__ */ jsx99(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
7324
+ return /* @__PURE__ */ jsx104(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
6736
7325
  }
6737
7326
  var ListingTableRow_default = ListingTableRow;
6738
7327
 
6739
7328
  // src/components/ListingTable/ListingTable/ListingTableCell.tsx
6740
7329
  import MuiTableCell from "@mui/material/TableCell";
6741
- import { styled as styled65 } from "@mui/material/styles";
6742
- import { jsx as jsx100 } from "react/jsx-runtime";
6743
- var StyledTableCell = styled65(MuiTableCell, {
7330
+ import { styled as styled70 } from "@mui/material/styles";
7331
+ import { jsx as jsx105 } from "react/jsx-runtime";
7332
+ var StyledTableCell = styled70(MuiTableCell, {
6744
7333
  shouldForwardProp: (prop) => {
6745
7334
  const excludedProps = ["truncate", "maxWidth"];
6746
7335
  return !excludedProps.some((excluded) => excluded === prop);
@@ -6762,24 +7351,24 @@ function ListingTableCell(_a) {
6762
7351
  "maxWidth",
6763
7352
  "children"
6764
7353
  ]);
6765
- return /* @__PURE__ */ jsx100(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
7354
+ return /* @__PURE__ */ jsx105(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
6766
7355
  }
6767
7356
  var ListingTableCell_default = ListingTableCell;
6768
7357
 
6769
7358
  // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
6770
- import { useCallback as useCallback4 } from "react";
7359
+ import { useCallback as useCallback5 } from "react";
6771
7360
  import { DataGrid } from "@mui/x-data-grid";
6772
- import { styled as styled66, alpha as alpha2 } from "@mui/material/styles";
7361
+ import { styled as styled71, alpha as alpha3 } from "@mui/material/styles";
6773
7362
 
6774
7363
  // src/components/ListingTable/context.ts
6775
- import * as React37 from "react";
6776
- var ListingTableContext = React37.createContext(null);
7364
+ import * as React43 from "react";
7365
+ var ListingTableContext = React43.createContext(null);
6777
7366
  ListingTableContext.displayName = "ListingTableContext";
6778
7367
  var useListingTable = () => {
6779
- return React37.useContext(ListingTableContext);
7368
+ return React43.useContext(ListingTableContext);
6780
7369
  };
6781
7370
  var useListingTableRequired = () => {
6782
- const context = React37.useContext(ListingTableContext);
7371
+ const context = React43.useContext(ListingTableContext);
6783
7372
  if (!context) {
6784
7373
  throw new Error(
6785
7374
  "useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
@@ -6789,8 +7378,8 @@ var useListingTableRequired = () => {
6789
7378
  };
6790
7379
 
6791
7380
  // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
6792
- import { jsx as jsx101 } from "react/jsx-runtime";
6793
- var StyledDataGrid = styled66(DataGrid)(({ theme }) => ({
7381
+ import { jsx as jsx106 } from "react/jsx-runtime";
7382
+ var StyledDataGrid = styled71(DataGrid)(({ theme }) => ({
6794
7383
  // Remove outer border for seamless integration within ListingTable.Container
6795
7384
  border: "none",
6796
7385
  // Ensure the grid fills its container
@@ -6821,7 +7410,7 @@ var StyledDataGrid = styled66(DataGrid)(({ theme }) => ({
6821
7410
  "& .MuiDataGrid-row.Mui-selected": {
6822
7411
  backgroundColor: theme.palette.action.selected,
6823
7412
  "&:hover": {
6824
- backgroundColor: alpha2(
7413
+ backgroundColor: alpha3(
6825
7414
  theme.palette.primary.main,
6826
7415
  theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity
6827
7416
  )
@@ -6870,7 +7459,7 @@ function ListingTableDataGrid(_a) {
6870
7459
  items: [],
6871
7460
  quickFilterValues: searchValue ? [searchValue] : []
6872
7461
  };
6873
- const defaultCardRowSpacing = useCallback4(
7462
+ const defaultCardRowSpacing = useCallback5(
6874
7463
  (params) => ({ top: params.isFirstVisible ? 0 : 12, bottom: 0 }),
6875
7464
  []
6876
7465
  );
@@ -6916,7 +7505,7 @@ function ListingTableDataGrid(_a) {
6916
7505
  border: "none",
6917
7506
  backgroundColor: (muiTheme.vars || muiTheme).palette.action.selected,
6918
7507
  "&:hover": {
6919
- backgroundColor: alpha2(
7508
+ backgroundColor: alpha3(
6920
7509
  muiTheme.palette.primary.main,
6921
7510
  muiTheme.palette.action.selectedOpacity + muiTheme.palette.action.hoverOpacity
6922
7511
  )
@@ -6947,7 +7536,7 @@ function ListingTableDataGrid(_a) {
6947
7536
  "& .MuiDataGrid-cell": { padding: cellPadding }
6948
7537
  };
6949
7538
  const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
6950
- return /* @__PURE__ */ jsx101(
7539
+ return /* @__PURE__ */ jsx106(
6951
7540
  StyledDataGrid,
6952
7541
  __spreadValues({
6953
7542
  density,
@@ -6962,13 +7551,13 @@ function ListingTableDataGrid(_a) {
6962
7551
  var ListingTableDataGrid_default = ListingTableDataGrid;
6963
7552
 
6964
7553
  // src/components/ListingTable/shared/ListingTableToolbar.tsx
6965
- import { useState as useState9, useCallback as useCallback5 } from "react";
6966
- import Box38 from "@mui/material/Box";
7554
+ import { useState as useState10, useCallback as useCallback6 } from "react";
7555
+ import Box41 from "@mui/material/Box";
6967
7556
  import TextField3 from "@mui/material/TextField";
6968
7557
  import InputAdornment3 from "@mui/material/InputAdornment";
6969
- import IconButton7 from "@mui/material/IconButton";
7558
+ import IconButton8 from "@mui/material/IconButton";
6970
7559
  import { Search as Search2, X as X4 } from "@wso2/oxygen-ui-icons-react";
6971
- import { Fragment as Fragment15, jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
7560
+ import { Fragment as Fragment15, jsx as jsx107, jsxs as jsxs37 } from "react/jsx-runtime";
6972
7561
  function ListingTableToolbar({
6973
7562
  showSearch = false,
6974
7563
  searchSlot,
@@ -6982,13 +7571,13 @@ function ListingTableToolbar({
6982
7571
  sx
6983
7572
  }) {
6984
7573
  const tableContext = useListingTable();
6985
- const [internalSearchValue, setInternalSearchValue] = useState9("");
7574
+ const [internalSearchValue, setInternalSearchValue] = useState10("");
6986
7575
  const isControlledByProp = controlledSearchValue !== void 0;
6987
7576
  const isControlledByContext = !isControlledByProp && (tableContext == null ? void 0 : tableContext.searchValue) !== void 0;
6988
7577
  const isControlled = isControlledByProp || isControlledByContext;
6989
7578
  const searchValue = isControlledByProp ? controlledSearchValue : isControlledByContext ? tableContext.searchValue : internalSearchValue;
6990
7579
  const effectiveOnSearchChange = onSearchChange != null ? onSearchChange : tableContext == null ? void 0 : tableContext.onSearchChange;
6991
- const handleSearchChange = useCallback5(
7580
+ const handleSearchChange = useCallback6(
6992
7581
  (event) => {
6993
7582
  const newValue = event.target.value;
6994
7583
  if (!isControlled) {
@@ -6998,7 +7587,7 @@ function ListingTableToolbar({
6998
7587
  },
6999
7588
  [isControlled, effectiveOnSearchChange]
7000
7589
  );
7001
- const handleClearSearch = useCallback5(() => {
7590
+ const handleClearSearch = useCallback6(() => {
7002
7591
  if (!isControlled) {
7003
7592
  setInternalSearchValue("");
7004
7593
  }
@@ -7009,7 +7598,7 @@ function ListingTableToolbar({
7009
7598
  return searchSlot;
7010
7599
  }
7011
7600
  if (showSearch) {
7012
- return /* @__PURE__ */ jsx102(
7601
+ return /* @__PURE__ */ jsx107(
7013
7602
  TextField3,
7014
7603
  {
7015
7604
  size: "small",
@@ -7025,8 +7614,8 @@ function ListingTableToolbar({
7025
7614
  "aria-label": searchPlaceholder || "Search"
7026
7615
  },
7027
7616
  input: {
7028
- startAdornment: /* @__PURE__ */ jsx102(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx102(Search2, { size: 18, "aria-hidden": "true" }) }),
7029
- endAdornment: searchValue ? /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx102(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
7617
+ startAdornment: /* @__PURE__ */ jsx107(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx107(Search2, { size: 18, "aria-hidden": "true" }) }),
7618
+ endAdornment: searchValue ? /* @__PURE__ */ jsx107(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx107(IconButton8, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx107(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
7030
7619
  }
7031
7620
  }
7032
7621
  }
@@ -7034,8 +7623,8 @@ function ListingTableToolbar({
7034
7623
  }
7035
7624
  return null;
7036
7625
  };
7037
- return /* @__PURE__ */ jsxs34(
7038
- Box38,
7626
+ return /* @__PURE__ */ jsxs37(
7627
+ Box41,
7039
7628
  {
7040
7629
  role: "toolbar",
7041
7630
  "aria-label": "Table toolbar",
@@ -7050,9 +7639,9 @@ function ListingTableToolbar({
7050
7639
  children: [
7051
7640
  renderSearch(),
7052
7641
  children,
7053
- actions && /* @__PURE__ */ jsxs34(Fragment15, { children: [
7054
- /* @__PURE__ */ jsx102(Box38, { sx: { flex: 1 } }),
7055
- /* @__PURE__ */ jsx102(Box38, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
7642
+ actions && /* @__PURE__ */ jsxs37(Fragment15, { children: [
7643
+ /* @__PURE__ */ jsx107(Box41, { sx: { flex: 1 } }),
7644
+ /* @__PURE__ */ jsx107(Box41, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
7056
7645
  ] })
7057
7646
  ]
7058
7647
  }
@@ -7061,9 +7650,9 @@ function ListingTableToolbar({
7061
7650
  var ListingTableToolbar_default = ListingTableToolbar;
7062
7651
 
7063
7652
  // src/components/ListingTable/shared/ListingTableEmptyState.tsx
7064
- import Box39 from "@mui/material/Box";
7065
- import Typography20 from "@mui/material/Typography";
7066
- import { jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
7653
+ import Box42 from "@mui/material/Box";
7654
+ import Typography22 from "@mui/material/Typography";
7655
+ import { jsx as jsx108, jsxs as jsxs38 } from "react/jsx-runtime";
7067
7656
  function ListingTableEmptyState({
7068
7657
  title = "No data available",
7069
7658
  description,
@@ -7072,8 +7661,8 @@ function ListingTableEmptyState({
7072
7661
  minHeight = 300,
7073
7662
  sx
7074
7663
  }) {
7075
- return /* @__PURE__ */ jsxs35(
7076
- Box39,
7664
+ return /* @__PURE__ */ jsxs38(
7665
+ Box42,
7077
7666
  {
7078
7667
  sx: __spreadValues({
7079
7668
  display: "flex",
@@ -7085,8 +7674,8 @@ function ListingTableEmptyState({
7085
7674
  textAlign: "center"
7086
7675
  }, sx),
7087
7676
  children: [
7088
- illustration && /* @__PURE__ */ jsx103(
7089
- Box39,
7677
+ illustration && /* @__PURE__ */ jsx108(
7678
+ Box42,
7090
7679
  {
7091
7680
  sx: {
7092
7681
  mb: 2,
@@ -7099,9 +7688,9 @@ function ListingTableEmptyState({
7099
7688
  children: illustration
7100
7689
  }
7101
7690
  ),
7102
- /* @__PURE__ */ jsx103(Typography20, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
7103
- description && /* @__PURE__ */ jsx103(Typography20, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
7104
- action && /* @__PURE__ */ jsx103(Box39, { children: action })
7691
+ /* @__PURE__ */ jsx108(Typography22, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
7692
+ description && /* @__PURE__ */ jsx108(Typography22, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
7693
+ action && /* @__PURE__ */ jsx108(Box42, { children: action })
7105
7694
  ]
7106
7695
  }
7107
7696
  );
@@ -7109,16 +7698,16 @@ function ListingTableEmptyState({
7109
7698
  var ListingTableEmptyState_default = ListingTableEmptyState;
7110
7699
 
7111
7700
  // src/components/ListingTable/shared/ListingTableDensityControl.tsx
7112
- import { useCallback as useCallback6 } from "react";
7701
+ import { useCallback as useCallback7 } from "react";
7113
7702
  import ToggleButton from "@mui/material/ToggleButton";
7114
7703
  import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
7115
- import Tooltip6 from "@mui/material/Tooltip";
7704
+ import Tooltip8 from "@mui/material/Tooltip";
7116
7705
  import { AlignJustify, Menu as Menu4, List as List4 } from "@wso2/oxygen-ui-icons-react";
7117
- import { jsx as jsx104 } from "react/jsx-runtime";
7706
+ import { jsx as jsx109 } from "react/jsx-runtime";
7118
7707
  var densityOptions = [
7119
- { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx104(AlignJustify, { size: 18 }) },
7120
- { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx104(Menu4, { size: 18 }) },
7121
- { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx104(List4, { size: 18 }) }
7708
+ { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx109(AlignJustify, { size: 18 }) },
7709
+ { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx109(Menu4, { size: 18 }) },
7710
+ { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx109(List4, { size: 18 }) }
7122
7711
  ];
7123
7712
  function ListingTableDensityControl({
7124
7713
  value: valueProp,
@@ -7130,7 +7719,7 @@ function ListingTableDensityControl({
7130
7719
  const tableContext = useListingTable();
7131
7720
  const value = (_a = valueProp != null ? valueProp : tableContext == null ? void 0 : tableContext.density) != null ? _a : "standard";
7132
7721
  const effectiveOnChange = onChangeProp != null ? onChangeProp : tableContext == null ? void 0 : tableContext.onDensityChange;
7133
- const handleChange = useCallback6(
7722
+ const handleChange = useCallback7(
7134
7723
  (_event, newDensity) => {
7135
7724
  if (newDensity !== null) {
7136
7725
  effectiveOnChange == null ? void 0 : effectiveOnChange(newDensity);
@@ -7138,7 +7727,7 @@ function ListingTableDensityControl({
7138
7727
  },
7139
7728
  [effectiveOnChange]
7140
7729
  );
7141
- return /* @__PURE__ */ jsx104(
7730
+ return /* @__PURE__ */ jsx109(
7142
7731
  ToggleButtonGroup,
7143
7732
  {
7144
7733
  value,
@@ -7147,18 +7736,18 @@ function ListingTableDensityControl({
7147
7736
  size,
7148
7737
  sx,
7149
7738
  "aria-label": "Table density",
7150
- children: densityOptions.map((option) => /* @__PURE__ */ jsx104(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx104(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx104("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
7739
+ children: densityOptions.map((option) => /* @__PURE__ */ jsx109(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx109(Tooltip8, { title: option.label, children: /* @__PURE__ */ jsx109("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
7151
7740
  }
7152
7741
  );
7153
7742
  }
7154
7743
  var ListingTableDensityControl_default = ListingTableDensityControl;
7155
7744
 
7156
7745
  // src/components/ListingTable/shared/ListingTableSortLabel.tsx
7157
- import { useCallback as useCallback7 } from "react";
7746
+ import { useCallback as useCallback8 } from "react";
7158
7747
  import MuiTableSortLabel from "@mui/material/TableSortLabel";
7159
- import { styled as styled67 } from "@mui/material/styles";
7160
- import { jsx as jsx105 } from "react/jsx-runtime";
7161
- var StyledTableSortLabel = styled67(MuiTableSortLabel)(({ theme }) => ({
7748
+ import { styled as styled72 } from "@mui/material/styles";
7749
+ import { jsx as jsx110 } from "react/jsx-runtime";
7750
+ var StyledTableSortLabel = styled72(MuiTableSortLabel)(({ theme }) => ({
7162
7751
  color: "inherit !important",
7163
7752
  "&.Mui-active": {
7164
7753
  color: "inherit !important",
@@ -7188,7 +7777,7 @@ function ListingTableSortLabel(_a) {
7188
7777
  const isActiveFromContext = field !== void 0 && (tableContext == null ? void 0 : tableContext.sortField) === field;
7189
7778
  const active = activeProp != null ? activeProp : isActiveFromContext;
7190
7779
  const direction = (_a2 = directionProp != null ? directionProp : isActiveFromContext ? tableContext == null ? void 0 : tableContext.sortDirection : void 0) != null ? _a2 : "asc";
7191
- const handleClick = useCallback7(
7780
+ const handleClick = useCallback8(
7192
7781
  (event) => {
7193
7782
  if (onClickProp) {
7194
7783
  onClickProp(event);
@@ -7201,13 +7790,13 @@ function ListingTableSortLabel(_a) {
7201
7790
  },
7202
7791
  [onClickProp, field, tableContext, active, direction]
7203
7792
  );
7204
- return /* @__PURE__ */ jsx105(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
7793
+ return /* @__PURE__ */ jsx110(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
7205
7794
  }
7206
7795
  var ListingTableSortLabel_default = ListingTableSortLabel;
7207
7796
 
7208
7797
  // src/components/ListingTable/shared/ListingTableRowActions.tsx
7209
- import Box40 from "@mui/material/Box";
7210
- import { jsx as jsx106 } from "react/jsx-runtime";
7798
+ import Box43 from "@mui/material/Box";
7799
+ import { jsx as jsx111 } from "react/jsx-runtime";
7211
7800
  var alignmentMap = {
7212
7801
  left: "flex-start",
7213
7802
  center: "center",
@@ -7219,8 +7808,8 @@ function ListingTableRowActions({
7219
7808
  align = "right",
7220
7809
  sx
7221
7810
  }) {
7222
- return /* @__PURE__ */ jsx106(
7223
- Box40,
7811
+ return /* @__PURE__ */ jsx111(
7812
+ Box43,
7224
7813
  {
7225
7814
  className: "table-row-actions",
7226
7815
  sx: __spreadValues(__spreadValues({
@@ -7243,9 +7832,9 @@ function ListingTableRowActions({
7243
7832
  var ListingTableRowActions_default = ListingTableRowActions;
7244
7833
 
7245
7834
  // src/components/ListingTable/shared/ListingTableCellIcon.tsx
7246
- import Box41 from "@mui/material/Box";
7247
- import Typography21 from "@mui/material/Typography";
7248
- import { Fragment as Fragment16, jsx as jsx107, jsxs as jsxs36 } from "react/jsx-runtime";
7835
+ import Box44 from "@mui/material/Box";
7836
+ import Typography23 from "@mui/material/Typography";
7837
+ import { Fragment as Fragment16, jsx as jsx112, jsxs as jsxs39 } from "react/jsx-runtime";
7249
7838
  function ListingTableCellIcon({
7250
7839
  icon,
7251
7840
  primary,
@@ -7254,8 +7843,8 @@ function ListingTableCellIcon({
7254
7843
  iconSx,
7255
7844
  sx
7256
7845
  }) {
7257
- const iconElement = /* @__PURE__ */ jsx107(
7258
- Box41,
7846
+ const iconElement = /* @__PURE__ */ jsx112(
7847
+ Box44,
7259
7848
  {
7260
7849
  sx: __spreadValues({
7261
7850
  display: "flex",
@@ -7267,9 +7856,9 @@ function ListingTableCellIcon({
7267
7856
  children: icon
7268
7857
  }
7269
7858
  );
7270
- const textContent = /* @__PURE__ */ jsxs36(Box41, { sx: { minWidth: 0, flex: 1 }, children: [
7271
- /* @__PURE__ */ jsx107(
7272
- Typography21,
7859
+ const textContent = /* @__PURE__ */ jsxs39(Box44, { sx: { minWidth: 0, flex: 1 }, children: [
7860
+ /* @__PURE__ */ jsx112(
7861
+ Typography23,
7273
7862
  {
7274
7863
  variant: "body2",
7275
7864
  component: "div",
@@ -7282,8 +7871,8 @@ function ListingTableCellIcon({
7282
7871
  children: primary
7283
7872
  }
7284
7873
  ),
7285
- secondary && /* @__PURE__ */ jsx107(
7286
- Typography21,
7874
+ secondary && /* @__PURE__ */ jsx112(
7875
+ Typography23,
7287
7876
  {
7288
7877
  variant: "caption",
7289
7878
  component: "div",
@@ -7297,8 +7886,8 @@ function ListingTableCellIcon({
7297
7886
  }
7298
7887
  )
7299
7888
  ] });
7300
- return /* @__PURE__ */ jsx107(
7301
- Box41,
7889
+ return /* @__PURE__ */ jsx112(
7890
+ Box44,
7302
7891
  {
7303
7892
  sx: __spreadValues({
7304
7893
  display: "flex",
@@ -7306,10 +7895,10 @@ function ListingTableCellIcon({
7306
7895
  gap: 1.5,
7307
7896
  minWidth: 0
7308
7897
  }, sx),
7309
- children: iconPosition === "left" ? /* @__PURE__ */ jsxs36(Fragment16, { children: [
7898
+ children: iconPosition === "left" ? /* @__PURE__ */ jsxs39(Fragment16, { children: [
7310
7899
  iconElement,
7311
7900
  textContent
7312
- ] }) : /* @__PURE__ */ jsxs36(Fragment16, { children: [
7901
+ ] }) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
7313
7902
  textContent,
7314
7903
  iconElement
7315
7904
  ] })
@@ -7319,8 +7908,8 @@ function ListingTableCellIcon({
7319
7908
  var ListingTableCellIcon_default = ListingTableCellIcon;
7320
7909
 
7321
7910
  // src/components/ListingTable/ListingTableProvider.tsx
7322
- import { useMemo as useMemo8 } from "react";
7323
- import { jsx as jsx108 } from "react/jsx-runtime";
7911
+ import { useMemo as useMemo9 } from "react";
7912
+ import { jsx as jsx113 } from "react/jsx-runtime";
7324
7913
  function ListingTableProvider({
7325
7914
  children,
7326
7915
  // Search
@@ -7358,7 +7947,7 @@ function ListingTableProvider({
7358
7947
  // Loading
7359
7948
  loading
7360
7949
  }) {
7361
- const contextValue = useMemo8(
7950
+ const contextValue = useMemo9(
7362
7951
  () => ({
7363
7952
  // Search
7364
7953
  searchValue,
@@ -7423,12 +8012,12 @@ function ListingTableProvider({
7423
8012
  loading
7424
8013
  ]
7425
8014
  );
7426
- return /* @__PURE__ */ jsx108(ListingTableContext.Provider, { value: contextValue, children });
8015
+ return /* @__PURE__ */ jsx113(ListingTableContext.Provider, { value: contextValue, children });
7427
8016
  }
7428
8017
 
7429
8018
  // src/components/ListingTable/ListingTable/ListingTable.tsx
7430
- import { jsx as jsx109 } from "react/jsx-runtime";
7431
- var StyledTable = styled68(MuiTable, {
8019
+ import { jsx as jsx114 } from "react/jsx-runtime";
8020
+ var StyledTable = styled73(MuiTable, {
7432
8021
  shouldForwardProp: (prop) => {
7433
8022
  const excludedProps = ["variant", "density", "striped", "bordered"];
7434
8023
  return !excludedProps.some((excluded) => excluded === prop);
@@ -7481,7 +8070,7 @@ function ListingTable(_a) {
7481
8070
  "children",
7482
8071
  "sx"
7483
8072
  ]);
7484
- return /* @__PURE__ */ jsx109(
8073
+ return /* @__PURE__ */ jsx114(
7485
8074
  StyledTable,
7486
8075
  __spreadProps(__spreadValues({
7487
8076
  variant,
@@ -7513,9 +8102,9 @@ var ListingTableCompound = Object.assign(ListingTable, {
7513
8102
  var ListingTable_default = ListingTableCompound;
7514
8103
 
7515
8104
  // src/animations/ParticleBackground/ParticleBackground.tsx
7516
- import { useEffect as useEffect7, useRef as useRef3 } from "react";
8105
+ import { useEffect as useEffect8, useRef as useRef4 } from "react";
7517
8106
  import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
7518
- import { jsx as jsx110 } from "react/jsx-runtime";
8107
+ import { jsx as jsx115 } from "react/jsx-runtime";
7519
8108
  var ParticleBackground = ({
7520
8109
  opacity = 0.5,
7521
8110
  baseDensity = 0.12,
@@ -7527,9 +8116,9 @@ var ParticleBackground = ({
7527
8116
  repelStrength = 0.35,
7528
8117
  clickBurst = 120
7529
8118
  }) => {
7530
- const canvasRef = useRef3(null);
8119
+ const canvasRef = useRef4(null);
7531
8120
  const { mode } = useColorScheme4();
7532
- useEffect7(() => {
8121
+ useEffect8(() => {
7533
8122
  const canvas = canvasRef.current;
7534
8123
  if (!canvas) return;
7535
8124
  const ctx = canvas.getContext("2d", { alpha: true });
@@ -7668,8 +8257,8 @@ var ParticleBackground = ({
7668
8257
  const dy = a.y - b.y;
7669
8258
  const dist = Math.hypot(dx, dy);
7670
8259
  if (dist < linkDist * DPR) {
7671
- const alpha3 = linkAlpha * (1 - dist / (linkDist * DPR));
7672
- context.globalAlpha = alpha3;
8260
+ const alpha4 = linkAlpha * (1 - dist / (linkDist * DPR));
8261
+ context.globalAlpha = alpha4;
7673
8262
  context.beginPath();
7674
8263
  context.moveTo(a.x, a.y);
7675
8264
  context.lineTo(b.x, b.y);
@@ -7726,7 +8315,7 @@ var ParticleBackground = ({
7726
8315
  cancelAnimationFrame(animationFrameId);
7727
8316
  };
7728
8317
  }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
7729
- return /* @__PURE__ */ jsx110(
8318
+ return /* @__PURE__ */ jsx115(
7730
8319
  "canvas",
7731
8320
  {
7732
8321
  ref: canvasRef,
@@ -7755,44 +8344,44 @@ function useThemeContent(contentMap, fallback) {
7755
8344
  var useThemeContent_default = useThemeContent;
7756
8345
 
7757
8346
  // src/hooks/useNotifications/useNotifications.ts
7758
- import * as React38 from "react";
8347
+ import * as React44 from "react";
7759
8348
  var generateId = () => {
7760
8349
  return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
7761
8350
  };
7762
8351
  var useNotifications = (options = {}) => {
7763
8352
  const { initialNotifications = [] } = options;
7764
- const [notifications, setNotifications] = React38.useState(
8353
+ const [notifications, setNotifications] = React44.useState(
7765
8354
  initialNotifications
7766
8355
  );
7767
- const markRead = React38.useCallback((id) => {
8356
+ const markRead = React44.useCallback((id) => {
7768
8357
  setNotifications(
7769
8358
  (prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
7770
8359
  );
7771
8360
  }, []);
7772
- const dismiss = React38.useCallback((id) => {
8361
+ const dismiss = React44.useCallback((id) => {
7773
8362
  setNotifications((prev) => prev.filter((n) => n.id !== id));
7774
8363
  }, []);
7775
- const markAllRead = React38.useCallback(() => {
8364
+ const markAllRead = React44.useCallback(() => {
7776
8365
  setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
7777
8366
  }, []);
7778
- const clearAll = React38.useCallback(() => {
8367
+ const clearAll = React44.useCallback(() => {
7779
8368
  setNotifications([]);
7780
8369
  }, []);
7781
- const add = React38.useCallback((notification) => {
8370
+ const add = React44.useCallback((notification) => {
7782
8371
  const newNotification = __spreadProps(__spreadValues({}, notification), {
7783
8372
  id: generateId()
7784
8373
  });
7785
8374
  setNotifications((prev) => [newNotification, ...prev]);
7786
8375
  }, []);
7787
- const unreadCount = React38.useMemo(
8376
+ const unreadCount = React44.useMemo(
7788
8377
  () => notifications.filter((n) => !n.read).length,
7789
8378
  [notifications]
7790
8379
  );
7791
- const unreadNotifications = React38.useMemo(
8380
+ const unreadNotifications = React44.useMemo(
7792
8381
  () => notifications.filter((n) => !n.read),
7793
8382
  [notifications]
7794
8383
  );
7795
- const actions = React38.useMemo(
8384
+ const actions = React44.useMemo(
7796
8385
  () => ({
7797
8386
  markRead,
7798
8387
  dismiss,
@@ -7825,6 +8414,7 @@ export {
7825
8414
  AdapterDateFns,
7826
8415
  AppBreadcrumbs,
7827
8416
  AppShell,
8417
+ AppSwitcher,
7828
8418
  ClassicTheme_default as ClassicTheme,
7829
8419
  CodeBlock_default as CodeBlock,
7830
8420
  ColorSchemeImage,