@m4l/components 9.86.0-beta-pkg-799-preparar-app-cd-ci.0 → 9.87.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/components/Label/Label.styles.d.ts.map +1 -1
- package/components/Label/Label.styles.js +80 -59
- package/components/Label/types.d.ts +2 -2
- package/components/Label/types.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.styles.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.styles.js +89 -81
- package/components/PropertyValue/PropertyValue.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.js +76 -74
- package/components/PropertyValue/PropertyValue.styles.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.styles.js +57 -37
- package/components/PropertyValue/types.d.ts +3 -1
- package/components/PropertyValue/types.d.ts.map +1 -1
- package/components/SideBar/SideBar.d.ts +2 -7
- package/components/SideBar/SideBar.d.ts.map +1 -1
- package/components/SideBar/SideBar.js +54 -48
- package/components/SideBar/constants.d.ts +21 -0
- package/components/SideBar/constants.d.ts.map +1 -1
- package/components/SideBar/constants.js +34 -14
- package/components/SideBar/dictionaryDefaults.d.ts +4 -0
- package/components/SideBar/dictionaryDefaults.d.ts.map +1 -0
- package/components/SideBar/dictionaryDefaults.js +35 -0
- package/components/SideBar/helpers/getMenuDataWithState/index.js +4 -4
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts +3 -0
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts.map +1 -0
- package/components/SideBar/helpers/resolveSidebarWidth.js +7 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts +4 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts.map +1 -0
- package/components/SideBar/hooks/useSideBarPreferences.js +71 -0
- package/components/SideBar/index.d.ts +4 -1
- package/components/SideBar/index.d.ts.map +1 -1
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.js +257 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts +6 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.js +44 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.js +77 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.js +40 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.js +21 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.js +62 -0
- package/components/SideBar/subcomponents/SideBarNavigation/assets/sidebar-texture.jpg.js +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts +32 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.js +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.js +61 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts +75 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.js +508 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts +108 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts +16 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.js +42 -0
- package/components/SideBar/types.d.ts +70 -60
- package/components/SideBar/types.d.ts.map +1 -1
- package/index.js +200 -194
- package/package.json +10 -10
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { BooleanPinOffSmallOutlined as g, BooleanPinSmallOutlined as B, ActionsTrashOutlined as O } from "@m4l/icons";
|
|
3
|
+
import { SIDEBAR_DICTIONARY as i } from "../../constants.js";
|
|
4
|
+
import { windowShortcutId as k, instanceTitle as x } from "./helpers.js";
|
|
5
|
+
import { SidebarInstancePopover as T, SidebarInstanceRow as j, SidebarPrimaryAction as v, SidebarGlyph as l, SidebarLabel as D, SidebarActions as E, SidebarAction as p } from "./slots/styled.js";
|
|
6
|
+
function Y({
|
|
7
|
+
menu: o,
|
|
8
|
+
instances: m,
|
|
9
|
+
selectedWindowId: b,
|
|
10
|
+
favorites: w,
|
|
11
|
+
icon: S,
|
|
12
|
+
getLabel: r,
|
|
13
|
+
onSelect: I,
|
|
14
|
+
onToggleFavorite: f,
|
|
15
|
+
onCloseInstance: C,
|
|
16
|
+
onDismiss: P
|
|
17
|
+
}) {
|
|
18
|
+
const c = o.anchor.getBoundingClientRect(), y = o.anchor.closest("[data-sidebar-panel]")?.getBoundingClientRect(), A = { top: Math.max(8, c.top - 14), left: (y?.right ?? c.right) - 10 }, s = r(i.closeInstance);
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
20
|
+
T,
|
|
21
|
+
{
|
|
22
|
+
open: !0,
|
|
23
|
+
anchorReference: "anchorPosition",
|
|
24
|
+
anchorPosition: A,
|
|
25
|
+
onClose: P,
|
|
26
|
+
marginThreshold: 8,
|
|
27
|
+
slotProps: { paper: { role: "menu", "aria-label": r(i.instances) } },
|
|
28
|
+
children: m.map((t, R) => {
|
|
29
|
+
const a = b === t.windowId, h = k(t.windowId), n = w.includes(h), u = r(n ? i.unpin : i.pin);
|
|
30
|
+
return /* @__PURE__ */ d(j, { ownerState: { selected: a, nested: !1 }, children: [
|
|
31
|
+
/* @__PURE__ */ d(
|
|
32
|
+
v,
|
|
33
|
+
{
|
|
34
|
+
type: "button",
|
|
35
|
+
role: "menuitemradio",
|
|
36
|
+
"aria-checked": a,
|
|
37
|
+
autoFocus: a,
|
|
38
|
+
onClick: () => I(t),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ e(l, { "aria-hidden": "true", "data-sidebar-icon": !0, children: S }),
|
|
41
|
+
/* @__PURE__ */ e(D, { children: x(o.entry.item.title, t.moduleCount ?? R + 1) })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ d(E, { "data-sidebar-actions": !0, children: [
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
p,
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
ownerState: { pinned: n },
|
|
51
|
+
"aria-label": u,
|
|
52
|
+
"aria-pressed": n,
|
|
53
|
+
title: u,
|
|
54
|
+
onClick: () => f(h),
|
|
55
|
+
children: /* @__PURE__ */ e(l, { "aria-hidden": "true", children: n ? /* @__PURE__ */ e(g, {}) : /* @__PURE__ */ e(B, {}) })
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
type: "button",
|
|
62
|
+
ownerState: { destructive: !0 },
|
|
63
|
+
"aria-label": s,
|
|
64
|
+
title: s,
|
|
65
|
+
onClick: () => C(t.windowId),
|
|
66
|
+
children: /* @__PURE__ */ e(l, { "aria-hidden": "true", children: /* @__PURE__ */ e(O, {}) })
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] })
|
|
70
|
+
] }, t.windowId);
|
|
71
|
+
})
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
Y as SidebarInstances
|
|
77
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuDataType } from '../../types';
|
|
2
|
+
/** Render the design-system icon for standard modules and honor backend artwork for other entries. */
|
|
3
|
+
export declare function sidebarItemIcon(item: MenuDataType, hostApiRemote: string, groupIndex?: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarItemIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarItemIcon.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA2ChD,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,oDAwB7F"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Icon as _ } from "@m4l/base";
|
|
3
|
+
import { FileFolderLogOutlined as p, MarkTagOutlined as m, ShapeNetworkOutlined as v, UserPersonsOutlined as O, NotificationBellCogOutlined as f, ConectivityDispositiveOutlined as l, NotificationBookAlertOutlined as h, UserUsersOutlined as I, ChartAnalyticsOutlined as g, TravelRoute02Outlined as y, TravelGpsHistoryOutlined as F, DevCommandLineOutlined as U, MediaVideoOutlined as k, TravelCarOutlined as C, LayoutGridOutlined as b, ShapeBlocksOutlined as a, FileFolderFilesOutlined as B, FileFolderBriefcaseOutlined as M } from "@m4l/icons";
|
|
4
|
+
import { isValidElement as T } from "react";
|
|
5
|
+
const n = {
|
|
6
|
+
operative_my_gps_devices: C,
|
|
7
|
+
operative_media_manager: k,
|
|
8
|
+
operative_devices_commands_list: U,
|
|
9
|
+
operative_gps_history_list: F,
|
|
10
|
+
operative_movements_and_stops: y,
|
|
11
|
+
shared_reports_list: g,
|
|
12
|
+
shared_users_list: I,
|
|
13
|
+
operative_protocols_list: h,
|
|
14
|
+
operative_devices_list: l,
|
|
15
|
+
admin_devices_list: l,
|
|
16
|
+
operative_alarms_profiles_list: f,
|
|
17
|
+
shared_persons_list: O,
|
|
18
|
+
operative_departments_list: v,
|
|
19
|
+
shared_tags_list: m,
|
|
20
|
+
shared_users_resources_logs_list: p
|
|
21
|
+
}, L = [a, B, M];
|
|
22
|
+
function A(e, d, s) {
|
|
23
|
+
const r = e.moduleId && Object.prototype.hasOwnProperty.call(n, e.moduleId) ? n[e.moduleId] : void 0;
|
|
24
|
+
if (r)
|
|
25
|
+
return /* @__PURE__ */ o(r, {});
|
|
26
|
+
if (T(e.iconUrl))
|
|
27
|
+
return e.iconUrl;
|
|
28
|
+
if (typeof e.iconUrl == "string") {
|
|
29
|
+
const t = e.iconUrl.trim(), i = d.replace(/\/$/u, "");
|
|
30
|
+
if (i && (t.startsWith("/main/na/icons/") || t.startsWith(i + "/main/na/icons/"))) {
|
|
31
|
+
const u = t.startsWith("/") ? i + t : t;
|
|
32
|
+
return /* @__PURE__ */ o(_, { src: u, size: "small", color: "currentColor" });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const c = s === void 0 ? b : L[s] ?? a;
|
|
36
|
+
return /* @__PURE__ */ o(c, {});
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
A as sidebarItemIcon
|
|
40
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarLabelTooltipProps } from './types';
|
|
2
|
+
/** Show the complete label on the existing menu control when its text is clipped. */
|
|
3
|
+
export declare function SidebarLabelTooltip({ title, children }: SidebarLabelTooltipProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarLabelTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLabelTooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,wBAAwB,oDA2BhF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Tooltip as u } from "@m4l/base";
|
|
3
|
+
import { useRef as a, useState as f, useCallback as b, useEffect as d } from "react";
|
|
4
|
+
import { SidebarLabel as m } from "./slots/styled.js";
|
|
5
|
+
function R({ title: t, children: s }) {
|
|
6
|
+
const o = a(null), [c, i] = f(!1), r = b(() => {
|
|
7
|
+
const e = o.current;
|
|
8
|
+
i(!!(e && e.scrollWidth > e.clientWidth));
|
|
9
|
+
}, []);
|
|
10
|
+
return d(() => {
|
|
11
|
+
r();
|
|
12
|
+
const e = o.current;
|
|
13
|
+
if (!e || typeof ResizeObserver > "u")
|
|
14
|
+
return;
|
|
15
|
+
const n = new ResizeObserver(r);
|
|
16
|
+
return n.observe(e), () => n.disconnect();
|
|
17
|
+
}, [t, r]), /* @__PURE__ */ l(u, { describeChild: !0, title: c ? t : null, onOpen: r, children: s(/* @__PURE__ */ l(m, { ref: o, children: t })) });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
R as SidebarLabelTooltip
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarRowProps } from './types';
|
|
2
|
+
/** Render one launch target with independent pin and duplicate actions. */
|
|
3
|
+
export declare function SidebarRow({ title, icon, selected, pinned, favoriteShortcut, nested, onSelect, onPin, onAdd, getLabel, }: SidebarRowProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarRow.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,gBAAwB,EACxB,MAAc,EACd,QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,eAAe,oDAgDjB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { BooleanPinOffSmallOutlined as y, BooleanPinSmallOutlined as A, ActionsAddOutlined as O } from "@m4l/icons";
|
|
3
|
+
import { SIDEBAR_DICTIONARY as t } from "../../constants.js";
|
|
4
|
+
import { SidebarLabelTooltip as R } from "./SidebarLabelTooltip.js";
|
|
5
|
+
import { SidebarRowFrame as B, SidebarRowBody as C, SidebarPrimaryAction as I, SidebarGlyph as m, SidebarActions as k, SidebarAction as s, SidebarSmallGlyph as x } from "./slots/styled.js";
|
|
6
|
+
function L({
|
|
7
|
+
title: u,
|
|
8
|
+
icon: S,
|
|
9
|
+
selected: r,
|
|
10
|
+
pinned: e,
|
|
11
|
+
favoriteShortcut: o = !1,
|
|
12
|
+
nested: h = !1,
|
|
13
|
+
onSelect: p,
|
|
14
|
+
onPin: f,
|
|
15
|
+
onAdd: n,
|
|
16
|
+
getLabel: d
|
|
17
|
+
}) {
|
|
18
|
+
const l = { selected: r, nested: h }, c = d(e ? t.unpin : t.pin), b = d(t.addInstance);
|
|
19
|
+
return /* @__PURE__ */ i(B, { ownerState: l, role: o ? "listitem" : void 0, children: /* @__PURE__ */ a(C, { ownerState: l, "data-sidebar-row": !0, children: [
|
|
20
|
+
/* @__PURE__ */ i(R, { title: u, children: (w) => /* @__PURE__ */ a(
|
|
21
|
+
I,
|
|
22
|
+
{
|
|
23
|
+
type: "button",
|
|
24
|
+
role: o ? void 0 : "menuitem",
|
|
25
|
+
"aria-current": r ? "page" : void 0,
|
|
26
|
+
onClick: p,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ i(m, { "aria-hidden": "true", "data-sidebar-icon": !0, children: S }),
|
|
29
|
+
w
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) }),
|
|
33
|
+
/* @__PURE__ */ a(k, { "data-sidebar-actions": !0, children: [
|
|
34
|
+
/* @__PURE__ */ i(
|
|
35
|
+
s,
|
|
36
|
+
{
|
|
37
|
+
type: "button",
|
|
38
|
+
ownerState: { selected: r, pinned: e },
|
|
39
|
+
"aria-label": c,
|
|
40
|
+
"aria-pressed": e,
|
|
41
|
+
title: c,
|
|
42
|
+
onClick: f,
|
|
43
|
+
children: /* @__PURE__ */ i(m, { "aria-hidden": "true", children: e ? /* @__PURE__ */ i(y, {}) : /* @__PURE__ */ i(A, {}) })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
n && /* @__PURE__ */ i(
|
|
47
|
+
s,
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
ownerState: { selected: r },
|
|
51
|
+
"aria-label": b,
|
|
52
|
+
title: b,
|
|
53
|
+
onClick: n,
|
|
54
|
+
children: /* @__PURE__ */ i(x, { "aria-hidden": "true", children: /*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1/r61pJbpLR6rTo3v93pcyhO6s9GrJ90/Pdb+T6ryPrXUOo/4F/WvPW0/R/qekzMj6/iP60ofr+kiI7S9Des+n4f0Fadfv/Nkw3fqzp7Xov1/9mpL4n6f5BHaXp+h3Hhn/AJClp/vv/wCizUT6en6MKe33mVqn/H3L/wBdP/ZhVvf5fqzPqv8AB/8AJAD/2Q==";
|
|
2
|
+
export {
|
|
3
|
+
v as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MenuDataType } from '../../types';
|
|
2
|
+
import { SidebarAreas } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The tenant provides a single logo. In dark mode, neutralize its RGB channels
|
|
5
|
+
* while preserving alpha and lift the flat grey to match primary text.
|
|
6
|
+
* Contrast alone lands at 4.13:1 against the default dark background. Raising
|
|
7
|
+
* brightness to 1.4 brings the result to #B3B3B3 (7.79:1) and matches the
|
|
8
|
+
* surrounding menu labels. A value near 1.8 would give the brand more prominence.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DARK_MODE_LOGO_FILTER = "contrast(0) brightness(1.4)";
|
|
11
|
+
/** Keep the original logo artwork in light mode. */
|
|
12
|
+
export declare const LIGHT_MODE_LOGO_FILTER = "none";
|
|
13
|
+
export declare const SIDEBAR_TYPOGRAPHY: {
|
|
14
|
+
readonly heading: {
|
|
15
|
+
readonly letterSpacing: string;
|
|
16
|
+
readonly fontSize: string;
|
|
17
|
+
readonly lineHeight: string;
|
|
18
|
+
readonly fontWeight: number;
|
|
19
|
+
};
|
|
20
|
+
readonly section: import('@m4l/styles').FontProperties;
|
|
21
|
+
readonly control: import('@m4l/styles').FontProperties;
|
|
22
|
+
readonly item: import('@m4l/styles').FontProperties;
|
|
23
|
+
readonly hint: import('@m4l/styles').FontProperties;
|
|
24
|
+
};
|
|
25
|
+
export declare const SIDEBAR_KEYBOARD_RESIZE_STEP = 8;
|
|
26
|
+
export declare const SIDEBAR_ATTRIBUTION_SIZE: {
|
|
27
|
+
readonly width: "47px";
|
|
28
|
+
readonly height: "9px";
|
|
29
|
+
};
|
|
30
|
+
export declare const EMPTY_SIDEBAR_MENU: MenuDataType[];
|
|
31
|
+
export declare const EMPTY_SIDEBAR_WINDOWS: SidebarAreas['windows'];
|
|
32
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gCAAgC,CAAC;AAEnE,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAMrB,CAAC;AACX,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB;;;CAA4C,CAAC;AAClF,eAAO,MAAM,kBAAkB,EAAE,YAAY,EAAO,CAAC;AACrD,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,SAAS,CAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TYPOGRAPHY_SIZES_DESKTOP as t, BASE_LETTER_SPACING as n } from "@m4l/styles";
|
|
2
|
+
const { bodyDens: o, bodyStandard: E, captionDens: _, captionStandard: S, captionSlim: c } = t.medium, i = "contrast(0) brightness(1.4)", s = "none", R = {
|
|
3
|
+
heading: { ..._, letterSpacing: n["normal0-5"] },
|
|
4
|
+
section: o,
|
|
5
|
+
control: S,
|
|
6
|
+
item: E,
|
|
7
|
+
hint: c
|
|
8
|
+
}, T = 8, D = { width: "47px", height: "9px" }, e = [], A = {};
|
|
9
|
+
export {
|
|
10
|
+
i as DARK_MODE_LOGO_FILTER,
|
|
11
|
+
e as EMPTY_SIDEBAR_MENU,
|
|
12
|
+
A as EMPTY_SIDEBAR_WINDOWS,
|
|
13
|
+
s as LIGHT_MODE_LOGO_FILTER,
|
|
14
|
+
D as SIDEBAR_ATTRIBUTION_SIZE,
|
|
15
|
+
T as SIDEBAR_KEYBOARD_RESIZE_STEP,
|
|
16
|
+
R as SIDEBAR_TYPOGRAPHY
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MenuDataType } from '../../types';
|
|
2
|
+
import { SidebarEntry } from './types';
|
|
3
|
+
/** Promote the environment root's children while retaining their original shortcut keys. */
|
|
4
|
+
export declare function sidebarNavigationEntries(items: MenuDataType[], environmentTitle: string, additionalRootTitles?: readonly string[]): SidebarEntry[];
|
|
5
|
+
/** Keep matching branches visible while preserving the existing menu structure. */
|
|
6
|
+
export declare function filterSidebarEntries(entries: SidebarEntry[], search: string): SidebarEntry[];
|
|
7
|
+
/** Return selectable navigation leaves in display order. */
|
|
8
|
+
export declare function sidebarLeaves(entries: SidebarEntry[]): SidebarEntry[];
|
|
9
|
+
/** Find the selected entry's path in the full menu, including folded or filtered ancestors. */
|
|
10
|
+
export declare function sidebarRoute(entries: SidebarEntry[], id: string): string[];
|
|
11
|
+
/** Keep instance shortcuts tied to the real window even when display numbers are reused. */
|
|
12
|
+
export declare function windowShortcutId(windowId: string): string;
|
|
13
|
+
/** Format the instance label with the prototype's two-digit window counter. */
|
|
14
|
+
export declare function instanceTitle(title: string, count: number): string;
|
|
15
|
+
/** Update the ordered shortcuts without rewriting an already resolved favorite. */
|
|
16
|
+
export declare function setShortcutPinned(ids: string[], id: string, pinned: boolean): string[];
|
|
17
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkB5C,4FAA4F;AAC5F,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EAAE,EACrB,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,GAAE,SAAS,MAAM,EAAO,GAC3C,YAAY,EAAE,CAOhB;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,EAAE,CAgB5F;AAED,4DAA4D;AAC5D,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAErE;AAED,+FAA+F;AAC/F,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAa1E;AAED,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAKtF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function u(r, t = "navigation") {
|
|
2
|
+
return r.map((n) => {
|
|
3
|
+
const e = n.id ?? n.path, i = typeof e == "string" || typeof e == "number" ? String(e) : "", o = n.moduleId ? ["module", n.moduleId, i].join(":") : [t, i || n.title].join("/");
|
|
4
|
+
return {
|
|
5
|
+
id: o,
|
|
6
|
+
item: n,
|
|
7
|
+
children: n.children?.length ? u(n.children, o) : void 0
|
|
8
|
+
};
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function a(r, t, n = []) {
|
|
12
|
+
const e = [t, ...n].map((i) => i.trim().toLowerCase());
|
|
13
|
+
return u(r).flatMap(
|
|
14
|
+
(i) => i.children && e.includes(i.item.title.trim().toLowerCase()) ? i.children : [i]
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
function l(r, t) {
|
|
18
|
+
return t ? r.flatMap((n) => {
|
|
19
|
+
if (n.item.title.toLocaleLowerCase().includes(t))
|
|
20
|
+
return [n];
|
|
21
|
+
if (n.children) {
|
|
22
|
+
const e = l(n.children, t);
|
|
23
|
+
if (e.length > 0)
|
|
24
|
+
return [{ ...n, children: e }];
|
|
25
|
+
}
|
|
26
|
+
return [];
|
|
27
|
+
}) : r;
|
|
28
|
+
}
|
|
29
|
+
function c(r) {
|
|
30
|
+
return r.flatMap((t) => t.children ? c(t.children) : [t]);
|
|
31
|
+
}
|
|
32
|
+
function d(r, t) {
|
|
33
|
+
for (const n of r) {
|
|
34
|
+
if (n.id === t)
|
|
35
|
+
return [t];
|
|
36
|
+
if (n.children) {
|
|
37
|
+
const e = d(n.children, t);
|
|
38
|
+
if (e.length > 0)
|
|
39
|
+
return [n.id, ...e];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
function f(r) {
|
|
45
|
+
return `window:${r}`;
|
|
46
|
+
}
|
|
47
|
+
function s(r, t) {
|
|
48
|
+
return `${String(t).padStart(2, "0")} ${r}`;
|
|
49
|
+
}
|
|
50
|
+
function h(r, t, n) {
|
|
51
|
+
return r.includes(t) === n ? r : n ? [...r, t] : r.filter((e) => e !== t);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
l as filterSidebarEntries,
|
|
55
|
+
s as instanceTitle,
|
|
56
|
+
h as setShortcutPinned,
|
|
57
|
+
c as sidebarLeaves,
|
|
58
|
+
a as sidebarNavigationEntries,
|
|
59
|
+
d as sidebarRoute,
|
|
60
|
+
f as windowShortcutId
|
|
61
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { SidebarActionState, SidebarBranchState, SidebarDisclosureState, SidebarLogoState, SidebarRowState, SidebarSizeState } from '../types';
|
|
3
|
+
export declare const SidebarFrame: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
4
|
+
ownerState: SidebarSizeState;
|
|
5
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
6
|
+
export declare const SidebarDrawer: import('@emotion/styled').StyledComponent<import('@mui/material').DrawerProps & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
|
|
7
|
+
export declare const SidebarPanel: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const SidebarResizeHandle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
9
|
+
export declare const SidebarChromeHeader: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
10
|
+
export declare const SidebarBrandHeader: import('@emotion/styled').StyledComponent<Omit<import('../../../..').StackProps, "ref"> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
|
|
11
|
+
export declare const SidebarBrandLogo: import('@emotion/styled').StyledComponent<import('../../../..').ImageProps & import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
12
|
+
ownerState: SidebarLogoState;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export declare const SidebarBrandBadge: import('@emotion/styled').StyledComponent<import('../../../..').ChipProps & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
|
|
15
|
+
export declare const SidebarScroll: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
16
|
+
ownerState: {
|
|
17
|
+
showHeading: boolean;
|
|
18
|
+
};
|
|
19
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const SidebarSearch: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
21
|
+
export declare const SidebarSearchInput: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
22
|
+
export declare const SidebarMenu: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const SidebarGroup: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
24
|
+
export declare const SidebarGroupHeading: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
25
|
+
export declare const SidebarDisclosure: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
26
|
+
ownerState: SidebarDisclosureState;
|
|
27
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
28
|
+
export declare const SidebarDisclosureClip: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
export declare const SidebarBranches: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
30
|
+
export declare const SidebarBranch: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
31
|
+
ownerState: SidebarBranchState;
|
|
32
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
33
|
+
export declare const SidebarBranchToggle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
34
|
+
ownerState: SidebarBranchState;
|
|
35
|
+
}, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
36
|
+
export declare const SidebarLabel: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
37
|
+
export declare const SidebarGlyph: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
38
|
+
export declare const SidebarSmallGlyph: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement>, {}, {}>;
|
|
39
|
+
export declare const SidebarBranchGlyph: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
40
|
+
ownerState: SidebarBranchState;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
export declare const SidebarChevron: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
43
|
+
ownerState: SidebarDisclosureState;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
export declare const SidebarChildren: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
46
|
+
ownerState: {
|
|
47
|
+
nested: boolean;
|
|
48
|
+
withGuide?: boolean;
|
|
49
|
+
};
|
|
50
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
51
|
+
export declare const SidebarRowFrame: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
52
|
+
ownerState: SidebarRowState;
|
|
53
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
54
|
+
export declare const SidebarRowBody: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
55
|
+
ownerState: SidebarRowState;
|
|
56
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
|
+
export declare const SidebarPrimaryAction: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
58
|
+
export declare const SidebarActions: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
59
|
+
export declare const SidebarAction: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
60
|
+
ownerState: SidebarActionState;
|
|
61
|
+
}, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
62
|
+
export declare const SidebarEmpty: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
63
|
+
export declare const SidebarChromeFooter: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
64
|
+
export declare const SidebarFooterAction: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement>, {}, {}>;
|
|
65
|
+
export declare const SidebarAttributionRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
66
|
+
export declare const SidebarAttributionDivider: import('@emotion/styled').StyledComponent<import('../../../../extended/mui/Divider/types').DividerProps & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
|
|
67
|
+
export declare const SidebarAttributionLogo: import('@emotion/styled').StyledComponent<import('../../../..').ImageProps & import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
68
|
+
ownerState: SidebarLogoState;
|
|
69
|
+
}, {}, {}>;
|
|
70
|
+
export declare const SidebarAttributionMark: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
71
|
+
export declare const SidebarInstancePopover: import('@emotion/styled').StyledComponent<import('@mui/material').PopoverProps & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
|
|
72
|
+
export declare const SidebarInstanceRow: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme> & {
|
|
73
|
+
ownerState: SidebarRowState;
|
|
74
|
+
} & import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement>, {}, {}>;
|
|
75
|
+
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/slots/styled.ts"],"names":[],"mappings":"AASA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAmClB,eAAO,MAAM,YAAY;gBAAiC,gBAAgB;mGAuBzE,CAAC;AAEF,eAAO,MAAM,aAAa,4IAMvB,CAAC;AAEJ,eAAO,MAAM,YAAY,qMAmCvB,CAAC;AAEH,eAAO,MAAM,mBAAmB,iNAiB7B,CAAC;AAEJ,eAAO,MAAM,mBAAmB,+LAO7B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,sMAQ7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;gBAA+B,gBAAgB;UAIzE,CAAC;AAEJ,eAAO,MAAM,iBAAiB,wLAe3B,CAAC;AAEJ,eAAO,MAAM,aAAa;gBAA+B;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE;yGAU9E,CAAC;AAEJ,eAAO,MAAM,aAAa,8MAUvB,CAAC;AAEJ,eAAO,MAAM,kBAAkB,8MAW5B,CAAC;AAEJ,eAAO,MAAM,WAAW,qMAIrB,CAAC;AAEJ,eAAO,MAAM,YAAY,+LAItB,CAAC;AAEJ,eAAO,MAAM,mBAAmB,6MAG9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;gBAA+B,sBAAsB;yGAclF,CAAC;AAEF,e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