@layers-app/shared 0.4.5 → 0.4.6
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/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +72 -79
- package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +40 -28
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +9 -9
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -118
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +33 -30
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -10
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +7 -7
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +6 -4
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/ColorPicker/ColorPicker.module.css.js +26 -20
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +81 -68
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showNotifications.d.ts +15 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +114 -72
- package/dist/helpers/showNotifications.module.css.js +16 -4
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +550 -540
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as x, useLayoutEffect as E, useRef as
|
|
3
|
-
import { Stack as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { jsxs as P, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as x, useLayoutEffect as E, useRef as R } from "react";
|
|
3
|
+
import { Stack as w, Skeleton as l, Text as z } from "@mantine/core";
|
|
4
|
+
import { motion as $ } from "framer-motion";
|
|
5
|
+
import { DnDItem as q } from "./components/DnDItem.js";
|
|
6
|
+
import { DnDProvider as B } from "./components/DnDProvider.js";
|
|
7
|
+
import { NavMenuActionIcon as F } from "./components/NavMenuActionIcon.js";
|
|
8
|
+
import { NavMenuItem as s, NavMenuLoadMore as D } from "./components/NavMenuItem.js";
|
|
9
|
+
import { NavMenuLabel as G } from "./components/NavMenuLabel.js";
|
|
10
|
+
import { createNavMenuStore as H, NavMenuProvider as L } from "./store.js";
|
|
10
11
|
import T from "./NavMenu.module.css.js";
|
|
11
|
-
const
|
|
12
|
+
const J = ({
|
|
12
13
|
items: o,
|
|
13
|
-
loading:
|
|
14
|
+
loading: c,
|
|
14
15
|
onLoadMore: i,
|
|
15
16
|
noItemsPlaceholder: j,
|
|
16
17
|
onOrderChange: m,
|
|
@@ -20,20 +21,21 @@ const G = ({
|
|
|
20
21
|
store: I,
|
|
21
22
|
totalCount: N,
|
|
22
23
|
flatOrderChange: k,
|
|
23
|
-
canUserDragDrop:
|
|
24
|
-
canDragDropItem: M
|
|
24
|
+
canUserDragDrop: y = !0,
|
|
25
|
+
canDragDropItem: M,
|
|
26
|
+
animateReorder: A
|
|
25
27
|
}) => {
|
|
26
|
-
const n = x(() => I ??
|
|
27
|
-
const e = [], d = (
|
|
28
|
-
for (const [
|
|
28
|
+
const n = x(() => I ?? H(), [I]), h = n.useStore((e) => e.opened), u = x(() => {
|
|
29
|
+
const e = [], d = (a, C) => {
|
|
30
|
+
for (const [O, p] of a.entries()) {
|
|
29
31
|
const t = {
|
|
30
|
-
...
|
|
31
|
-
depth:
|
|
32
|
-
parentChildrenCount:
|
|
33
|
-
parentTotalChildren:
|
|
34
|
-
isLast:
|
|
32
|
+
...p,
|
|
33
|
+
depth: C.parentDepth + 1,
|
|
34
|
+
parentChildrenCount: C.parentChildrenCount,
|
|
35
|
+
parentTotalChildren: C.parentTotalChildren,
|
|
36
|
+
isLast: O === a.length - 1
|
|
35
37
|
};
|
|
36
|
-
e.push(t),
|
|
38
|
+
e.push(t), h?.includes(p.id) && p.children.length > 0 && d(p.children, {
|
|
37
39
|
parentDepth: t.depth,
|
|
38
40
|
parentChildrenCount: t.children.length,
|
|
39
41
|
parentTotalChildren: t.children.length
|
|
@@ -48,7 +50,7 @@ const G = ({
|
|
|
48
50
|
parentChildrenCount: o.length,
|
|
49
51
|
parentTotalChildren: N ?? o.length
|
|
50
52
|
}), e;
|
|
51
|
-
}, [o, i,
|
|
53
|
+
}, [o, i, h, N]);
|
|
52
54
|
E(() => {
|
|
53
55
|
n.useStore.setState({
|
|
54
56
|
props: {
|
|
@@ -59,19 +61,19 @@ const G = ({
|
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
}, [g, S, v, i, n]);
|
|
62
|
-
const
|
|
63
|
-
return
|
|
64
|
+
const f = R(null);
|
|
65
|
+
return c ? /* @__PURE__ */ P(w, { gap: 4, children: [
|
|
64
66
|
/* @__PURE__ */ r(l, { h: 32 }),
|
|
65
67
|
/* @__PURE__ */ r(l, { h: 32 }),
|
|
66
68
|
/* @__PURE__ */ r(l, { h: 32 }),
|
|
67
69
|
/* @__PURE__ */ r(l, { h: 32 })
|
|
68
|
-
] }) : o?.length ? m ? /* @__PURE__ */ r(L, { store: n, children: /* @__PURE__ */ r(
|
|
70
|
+
] }) : o?.length ? m ? /* @__PURE__ */ r(L, { store: n, children: /* @__PURE__ */ r(B, { containerRef: f, onOrderChange: m, children: /* @__PURE__ */ r(
|
|
69
71
|
"div",
|
|
70
72
|
{
|
|
71
73
|
className: T.container,
|
|
72
|
-
ref:
|
|
74
|
+
ref: f,
|
|
73
75
|
"data-flat-order-change": k,
|
|
74
|
-
children:
|
|
76
|
+
children: u.map((e, d) => {
|
|
75
77
|
if (e.id.includes("load-more"))
|
|
76
78
|
return /* @__PURE__ */ r(
|
|
77
79
|
D,
|
|
@@ -82,22 +84,22 @@ const G = ({
|
|
|
82
84
|
},
|
|
83
85
|
e.id
|
|
84
86
|
);
|
|
85
|
-
const
|
|
87
|
+
const a = M ? M(e) : y;
|
|
86
88
|
return /* @__PURE__ */ r(
|
|
87
|
-
|
|
89
|
+
q,
|
|
88
90
|
{
|
|
89
91
|
item: e,
|
|
90
92
|
index: d,
|
|
91
|
-
items:
|
|
92
|
-
opened:
|
|
93
|
-
itemAllowDragDrop:
|
|
94
|
-
children: /* @__PURE__ */ r(
|
|
93
|
+
items: u,
|
|
94
|
+
opened: h,
|
|
95
|
+
itemAllowDragDrop: a,
|
|
96
|
+
children: /* @__PURE__ */ r(s, { item: e })
|
|
95
97
|
},
|
|
96
98
|
e.id
|
|
97
99
|
);
|
|
98
100
|
})
|
|
99
101
|
}
|
|
100
|
-
) }) }) : /* @__PURE__ */ r(L, { store: n, children: /* @__PURE__ */ r("div", { className: T.container, ref:
|
|
102
|
+
) }) }) : /* @__PURE__ */ r(L, { store: n, children: /* @__PURE__ */ r("div", { className: T.container, ref: f, children: u.map((e) => e.id.includes("load-more") ? /* @__PURE__ */ r(
|
|
101
103
|
D,
|
|
102
104
|
{
|
|
103
105
|
depth: e.depth,
|
|
@@ -105,22 +107,30 @@ const G = ({
|
|
|
105
107
|
currentChildrenCount: e.parentChildrenCount ?? 0
|
|
106
108
|
},
|
|
107
109
|
e.id
|
|
108
|
-
) :
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
) : A ? /* @__PURE__ */ r(
|
|
111
|
+
$.div,
|
|
112
|
+
{
|
|
113
|
+
layout: "position",
|
|
114
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
115
|
+
children: /* @__PURE__ */ r(s, { item: e })
|
|
116
|
+
},
|
|
117
|
+
e.id
|
|
118
|
+
) : /* @__PURE__ */ r(s, { item: e }, e.id)) }) }) : /* @__PURE__ */ r(b, { children: j });
|
|
119
|
+
}, b = ({ children: o, ...c }) => /* @__PURE__ */ r(
|
|
120
|
+
z,
|
|
111
121
|
{
|
|
112
122
|
size: "xs",
|
|
113
123
|
c: "var(--app-container-section-subtitle-color)",
|
|
114
124
|
px: 4,
|
|
115
|
-
...
|
|
125
|
+
...c,
|
|
116
126
|
children: o
|
|
117
127
|
}
|
|
118
|
-
),
|
|
119
|
-
Item:
|
|
120
|
-
ActionIcon:
|
|
121
|
-
Label:
|
|
128
|
+
), te = Object.assign(J, {
|
|
129
|
+
Item: s,
|
|
130
|
+
ActionIcon: F,
|
|
131
|
+
Label: G,
|
|
122
132
|
Placeholder: b
|
|
123
133
|
});
|
|
124
134
|
export {
|
|
125
|
-
|
|
135
|
+
te as NavMenu
|
|
126
136
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_container_1khh8_1", e = "_depthBox_1khh8_25", n = "_itemContainer_1khh8_75", o = "_item_1khh8_75", _ = "_icon_1khh8_181", h = "_chevron_1khh8_189", a = "_droppable_1khh8_239", c = "_draggableOverlay_1khh8_353", r = "_editInput_1khh8_393", i = {
|
|
2
2
|
container: t,
|
|
3
3
|
depthBox: e,
|
|
4
4
|
itemContainer: n,
|
|
5
5
|
item: o,
|
|
6
6
|
icon: _,
|
|
7
|
-
chevron:
|
|
8
|
-
droppable:
|
|
9
|
-
draggableOverlay:
|
|
10
|
-
editInput:
|
|
7
|
+
chevron: h,
|
|
8
|
+
droppable: a,
|
|
9
|
+
draggableOverlay: c,
|
|
10
|
+
editInput: r
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
h as chevron,
|
|
14
14
|
t as container,
|
|
15
|
-
|
|
15
|
+
i as default,
|
|
16
16
|
e as depthBox,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
c as draggableOverlay,
|
|
18
|
+
a as droppable,
|
|
19
|
+
r as editInput,
|
|
20
20
|
_ as icon,
|
|
21
21
|
o as item,
|
|
22
22
|
n as itemContainer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/NavMenu/components/NavMenuItem.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,WAAW,oFACwB,gBAAgB,6CAgB/D,CAAC;
|
|
1
|
+
{"version":3,"file":"NavMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/NavMenu/components/NavMenuItem.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,WAAW,oFACwB,gBAAgB,6CAgB/D,CAAC;AAgSF,eAAO,MAAM,eAAe,GAAI,0CAI7B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,4CAiCA,CAAC"}
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as m, useRef as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { memo as m, useRef as S, useEffect as E, useState as M, useMemo as P } from "react";
|
|
3
|
+
import { useTranslation as v } from "react-i18next";
|
|
4
4
|
import { NavLink as A } from "react-router-dom";
|
|
5
5
|
import { MoreHorizontalIcon as D, ArrowRight01Icon as z } from "@hugeicons/core-free-icons";
|
|
6
|
-
import { HugeiconsIcon as
|
|
7
|
-
import { Flex as f, Loader as
|
|
8
|
-
import { useForm as
|
|
9
|
-
import { useClickOutside as
|
|
10
|
-
import { useAsyncStatus as
|
|
6
|
+
import { HugeiconsIcon as x } from "@hugeicons/react";
|
|
7
|
+
import { Flex as f, Loader as N, Text as b, FocusTrap as F, Tooltip as k, Center as R } from "@mantine/core";
|
|
8
|
+
import { useForm as j } from "@mantine/form";
|
|
9
|
+
import { useClickOutside as T } from "@mantine/hooks";
|
|
10
|
+
import { useAsyncStatus as L } from "../../../hooks/useAsyncStatus.js";
|
|
11
11
|
import { useMenu as V } from "../../../hooks/useMenu.js";
|
|
12
12
|
import { appContainerStore as $ } from "../../AppContainer/hooks/useAppContainerStore.js";
|
|
13
13
|
import { ColorPickerPopover as B } from "../../ColorPicker/ColorPickerPopover.js";
|
|
14
14
|
import { EmojiPicker as H } from "../../EmojiPicker/EmojiPicker.js";
|
|
15
|
-
import { EntityIcon as
|
|
15
|
+
import { EntityIcon as y } from "../../EntityIcon.js";
|
|
16
16
|
import { IconEntity as C } from "../../ProjectIcon/ProjectIcon.js";
|
|
17
17
|
import { NavMenu as I } from "../NavMenu.js";
|
|
18
18
|
import { useNavMenuStore as g } from "../store.js";
|
|
19
|
-
import { NavMenuActionIcon as
|
|
19
|
+
import { NavMenuActionIcon as G } from "./NavMenuActionIcon.js";
|
|
20
20
|
import c from "../NavMenu.module.css.js";
|
|
21
21
|
const ue = m(
|
|
22
22
|
({ item: e, ignoreDepth: i, disableToggleOnClick: r }) => {
|
|
23
|
-
const { useStore:
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
const { useStore: a } = g(), o = a((s) => s.editId === e.id);
|
|
24
|
+
return /* @__PURE__ */ t(
|
|
25
|
+
O,
|
|
26
26
|
{
|
|
27
27
|
depth: i ? void 0 : e.depth,
|
|
28
28
|
testId: e.testId,
|
|
29
|
-
children:
|
|
29
|
+
children: o ? /* @__PURE__ */ t(_, { item: e }) : /* @__PURE__ */ t(W, { item: e, disableToggleOnClick: r })
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
),
|
|
33
|
+
), W = m(
|
|
34
34
|
({
|
|
35
35
|
item: e,
|
|
36
36
|
disableToggleOnClick: i
|
|
37
37
|
}) => {
|
|
38
|
-
const { api: r, useStore:
|
|
39
|
-
i || (
|
|
40
|
-
},
|
|
38
|
+
const { api: r, useStore: a } = g(), o = a((n) => n.props.onClick), { isMobile: s } = V(), { t: p } = v("appContainer"), u = () => {
|
|
39
|
+
i || (o ? o(e) : e.hasChildren && r.toggleOpened(e));
|
|
40
|
+
}, l = e.data?.isReadOnly, d = e.href ? /* @__PURE__ */ t(
|
|
41
41
|
A,
|
|
42
42
|
{
|
|
43
43
|
to: e.href,
|
|
44
44
|
className: c.item,
|
|
45
45
|
"data-active": e.active,
|
|
46
46
|
"data-has-children": e.hasChildren,
|
|
47
|
-
"data-read-only":
|
|
48
|
-
onClick:
|
|
49
|
-
|
|
47
|
+
"data-read-only": l,
|
|
48
|
+
onClick: l ? void 0 : () => {
|
|
49
|
+
s && !e.hasChildren && $.api.closeToolbar();
|
|
50
50
|
},
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ t(w, { item: e })
|
|
52
52
|
}
|
|
53
|
-
) : /* @__PURE__ */
|
|
53
|
+
) : /* @__PURE__ */ t(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
className: c.item,
|
|
57
57
|
"data-active": e.active,
|
|
58
58
|
"data-has-children": e.hasChildren,
|
|
59
|
-
"data-read-only":
|
|
60
|
-
onClick:
|
|
61
|
-
children: /* @__PURE__ */
|
|
59
|
+
"data-read-only": l,
|
|
60
|
+
onClick: l ? void 0 : u,
|
|
61
|
+
children: /* @__PURE__ */ t(w, { item: e })
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
return
|
|
64
|
+
return l ? /* @__PURE__ */ t(k, { label: p("readOnlyAccess"), position: "right", withArrow: !0, children: d }) : d;
|
|
65
65
|
}
|
|
66
66
|
), w = m(({ item: e }) => {
|
|
67
|
-
const { t: i } =
|
|
68
|
-
() => ({ ...e.data, isOpen:
|
|
69
|
-
[
|
|
70
|
-
),
|
|
67
|
+
const { t: i } = v(), r = e.data?.type === "PAGE" ? i("untitled") : i("noName"), { useStore: a, api: o } = g(), s = a((n) => n.opened.includes(e.id)), p = a((n) => n.loading[e.id]), u = P(
|
|
68
|
+
() => ({ ...e.data, isOpen: s }),
|
|
69
|
+
[s, e.data]
|
|
70
|
+
), l = e.data?.isReadOnly, d = l ? 0.3 : void 0;
|
|
71
71
|
return /* @__PURE__ */ h(f, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
72
72
|
/* @__PURE__ */ h(f, { gap: 4, miw: 0, flex: 1, children: [
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
p ? /* @__PURE__ */ t(R, { w: 20, h: 20, children: /* @__PURE__ */ t(N, { size: 16 }) }) : e.hasChildren && !l && /* @__PURE__ */ t(
|
|
74
|
+
G,
|
|
75
75
|
{
|
|
76
76
|
className: c.chevron,
|
|
77
77
|
"data-cy": e.testId ? `${e.testId}-expand` : void 0,
|
|
78
|
-
onClick: (
|
|
79
|
-
|
|
78
|
+
onClick: (n) => {
|
|
79
|
+
n.preventDefault(), n.stopPropagation(), o.toggleOpened(e);
|
|
80
80
|
},
|
|
81
|
-
children: /* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
children: /* @__PURE__ */ t(
|
|
82
|
+
x,
|
|
83
83
|
{
|
|
84
84
|
icon: z,
|
|
85
85
|
size: 16,
|
|
86
86
|
style: {
|
|
87
|
-
transform: `rotate(${
|
|
87
|
+
transform: `rotate(${s ? 90 : 0}deg)`,
|
|
88
88
|
transition: "transform 0.1s ease-in-out"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
94
|
+
/* @__PURE__ */ t("div", { className: c.icon, style: { opacity: d }, children: /* @__PURE__ */ t(y, { item: u }) }),
|
|
95
|
+
/* @__PURE__ */ t(
|
|
96
|
+
k,
|
|
97
97
|
{
|
|
98
98
|
disabled: e.title.length < 25,
|
|
99
|
-
label: e.title ||
|
|
99
|
+
label: e.title || r,
|
|
100
100
|
openDelay: 400,
|
|
101
|
-
children: /* @__PURE__ */
|
|
102
|
-
|
|
101
|
+
children: /* @__PURE__ */ t(
|
|
102
|
+
b,
|
|
103
103
|
{
|
|
104
104
|
flex: 1,
|
|
105
105
|
truncate: !0,
|
|
@@ -109,10 +109,10 @@ const ue = m(
|
|
|
109
109
|
miw: 0,
|
|
110
110
|
c: "var(--mantine-color-text)",
|
|
111
111
|
"data-cy": e.testId ? `${e.testId}-title` : void 0,
|
|
112
|
-
onDoubleClick: (
|
|
113
|
-
|
|
112
|
+
onDoubleClick: (n) => {
|
|
113
|
+
a.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (n.preventDefault(), n.stopPropagation(), o.startEditing(e.id));
|
|
114
114
|
},
|
|
115
|
-
children: e.title ||
|
|
115
|
+
children: e.title || r
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
118
|
}
|
|
@@ -120,50 +120,50 @@ const ue = m(
|
|
|
120
120
|
] }),
|
|
121
121
|
e.rightSection
|
|
122
122
|
] });
|
|
123
|
-
}),
|
|
124
|
-
const { api: i, useStore: r } = g(),
|
|
123
|
+
}), _ = m(({ item: e }) => {
|
|
124
|
+
const { api: i, useStore: r } = g(), a = S(null), o = j({
|
|
125
125
|
initialValues: {
|
|
126
126
|
name: e.title,
|
|
127
127
|
icon: e.data?.icon || ""
|
|
128
128
|
}
|
|
129
|
-
}),
|
|
129
|
+
}), s = (n) => {
|
|
130
130
|
i.handleEdit({
|
|
131
131
|
id: e.id,
|
|
132
|
-
name:
|
|
133
|
-
icon:
|
|
132
|
+
name: n.name ?? "",
|
|
133
|
+
icon: n.icon ?? ""
|
|
134
134
|
}), i.stopEditing();
|
|
135
|
-
}, p =
|
|
136
|
-
|
|
135
|
+
}, p = T(() => {
|
|
136
|
+
o.isDirty() ? s(o.getValues()) : i.stopEditing();
|
|
137
137
|
});
|
|
138
138
|
E(() => {
|
|
139
|
-
|
|
139
|
+
a.current && a.current.select();
|
|
140
140
|
}, []);
|
|
141
|
-
const u = r((
|
|
142
|
-
return /* @__PURE__ */
|
|
141
|
+
const u = r((n) => n.opened.includes(e.id)), [l, d] = M(!1);
|
|
142
|
+
return /* @__PURE__ */ t(
|
|
143
143
|
"form",
|
|
144
144
|
{
|
|
145
|
-
onSubmit:
|
|
145
|
+
onSubmit: o.onSubmit(s),
|
|
146
146
|
className: c.item,
|
|
147
147
|
ref: p,
|
|
148
148
|
"data-editing": !0,
|
|
149
149
|
children: /* @__PURE__ */ h(f, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ t("div", { className: c.icon, children: e.colorPickerOnly ? /* @__PURE__ */ t(
|
|
151
151
|
B,
|
|
152
152
|
{
|
|
153
|
-
value: C.parse(
|
|
154
|
-
onChange: (
|
|
153
|
+
value: C.parse(o.values.icon)?.color,
|
|
154
|
+
onChange: (n) => o.setFieldValue("icon", C.stringify({ color: n })),
|
|
155
155
|
withinPortal: !1,
|
|
156
156
|
floatingStrategy: "fixed",
|
|
157
|
-
opened:
|
|
158
|
-
setOpened:
|
|
159
|
-
children: /* @__PURE__ */
|
|
160
|
-
|
|
157
|
+
opened: l,
|
|
158
|
+
setOpened: d,
|
|
159
|
+
children: /* @__PURE__ */ t(I.ActionIcon, { onClick: () => d((n) => !n), children: /* @__PURE__ */ t(
|
|
160
|
+
y,
|
|
161
161
|
{
|
|
162
|
-
item: { ...e.data, isOpen: u, icon:
|
|
162
|
+
item: { ...e.data, isOpen: u, icon: o.values.icon }
|
|
163
163
|
}
|
|
164
164
|
) })
|
|
165
165
|
}
|
|
166
|
-
) : /* @__PURE__ */
|
|
166
|
+
) : /* @__PURE__ */ t(
|
|
167
167
|
H,
|
|
168
168
|
{
|
|
169
169
|
showIcons: !0,
|
|
@@ -172,31 +172,31 @@ const ue = m(
|
|
|
172
172
|
popoverProps: {
|
|
173
173
|
floatingStrategy: "fixed"
|
|
174
174
|
},
|
|
175
|
-
value:
|
|
176
|
-
onChange: (
|
|
177
|
-
children: /* @__PURE__ */
|
|
178
|
-
|
|
175
|
+
value: o.values.icon,
|
|
176
|
+
onChange: (n) => o.setFieldValue("icon", n),
|
|
177
|
+
children: /* @__PURE__ */ t(I.ActionIcon, { children: /* @__PURE__ */ t(
|
|
178
|
+
y,
|
|
179
179
|
{
|
|
180
|
-
item: { ...e.data, isOpen: u, icon:
|
|
180
|
+
item: { ...e.data, isOpen: u, icon: o.values.icon }
|
|
181
181
|
}
|
|
182
182
|
) })
|
|
183
183
|
}
|
|
184
184
|
) }),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
|
|
186
186
|
"input",
|
|
187
187
|
{
|
|
188
|
-
ref:
|
|
188
|
+
ref: a,
|
|
189
189
|
className: c.editInput,
|
|
190
190
|
"data-cy": e.testId ? `${e.testId}-rename-input` : void 0,
|
|
191
|
-
...
|
|
191
|
+
...o.getInputProps("name"),
|
|
192
192
|
maxLength: 255,
|
|
193
|
-
onFocus: (
|
|
193
|
+
onFocus: (n) => n.target.select()
|
|
194
194
|
}
|
|
195
195
|
) })
|
|
196
196
|
] })
|
|
197
197
|
}
|
|
198
198
|
);
|
|
199
|
-
}),
|
|
199
|
+
}), O = m(
|
|
200
200
|
({
|
|
201
201
|
depth: e = 0,
|
|
202
202
|
children: i,
|
|
@@ -210,7 +210,7 @@ const ue = m(
|
|
|
210
210
|
"--depth": e
|
|
211
211
|
},
|
|
212
212
|
children: [
|
|
213
|
-
Array.from({ length: e }).map((
|
|
213
|
+
Array.from({ length: e }).map((a, o) => /* @__PURE__ */ t("div", { className: c.depthBox }, o)),
|
|
214
214
|
i
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -220,15 +220,15 @@ const ue = m(
|
|
|
220
220
|
itemId: i,
|
|
221
221
|
currentChildrenCount: r
|
|
222
222
|
}) => {
|
|
223
|
-
const { t:
|
|
224
|
-
return /* @__PURE__ */
|
|
223
|
+
const { t: a } = v("appContainer"), { api: o } = g(), { isLoading: s, onSubmit: p } = L();
|
|
224
|
+
return /* @__PURE__ */ t(O, { depth: e, children: /* @__PURE__ */ t(
|
|
225
225
|
"div",
|
|
226
226
|
{
|
|
227
227
|
className: c.item,
|
|
228
|
-
onClick: () => p(() =>
|
|
229
|
-
children: /* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
228
|
+
onClick: () => p(() => o.loadMore({ itemId: i, currentChildrenCount: r })),
|
|
229
|
+
children: /* @__PURE__ */ t(f, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ h(f, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
|
|
230
|
+
/* @__PURE__ */ t("div", { className: c.icon, children: s ? /* @__PURE__ */ t(N, { size: 16 }) : /* @__PURE__ */ t(x, { icon: D, size: 16 }) }),
|
|
231
|
+
/* @__PURE__ */ t(b, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: a("loadMore") })
|
|
232
232
|
] }) })
|
|
233
233
|
}
|
|
234
234
|
) });
|
|
@@ -4,6 +4,10 @@ export type NavMenuItemData = {
|
|
|
4
4
|
icon?: string | null;
|
|
5
5
|
title?: string | null;
|
|
6
6
|
isReadOnly?: boolean;
|
|
7
|
+
/** Entity id — consumed by EntityIcon (e.g. USER avatar initials/color). */
|
|
8
|
+
id?: string | null;
|
|
9
|
+
/** Avatar URL for USER-type items, rendered by EntityIcon. */
|
|
10
|
+
avatarUrl?: string | null;
|
|
7
11
|
};
|
|
8
12
|
export type NavMenuItemDef<DATA = NavMenuItemData> = {
|
|
9
13
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,IA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AAI,CAAC,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CA0CvE,CAAC"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as n, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as c } from "react-i18next";
|
|
3
3
|
import { Menu as p, Flex as m, Box as a, Text as i } from "@mantine/core";
|
|
4
|
-
import { usePlatform as
|
|
4
|
+
import { usePlatform as d } from "../../hooks/usePlatform.js";
|
|
5
5
|
import { WorkspaceAvatar as u } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
6
|
-
const
|
|
7
|
-
const { t: r } = c("workspaceMenu"), o =
|
|
8
|
-
return /* @__PURE__ */
|
|
6
|
+
const I = ({ workspace: e, onClick: s }) => {
|
|
7
|
+
const { t: r } = c("workspaceMenu"), o = d();
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
9
|
p.Item,
|
|
10
10
|
{
|
|
11
|
+
"data-cy": `workspace-menu-item-${e.workspaceId}`,
|
|
12
|
+
"data-testid": `workspace-menu-item-${e.workspaceId}`,
|
|
11
13
|
p: 4,
|
|
12
|
-
onClick: () =>
|
|
14
|
+
onClick: () => s?.(e),
|
|
13
15
|
component: "a",
|
|
14
16
|
styles: { itemLabel: { minWidth: 0 } },
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
!e?.invitation && /* @__PURE__ */
|
|
20
|
-
o.has("memberCount") && e.totalMembers ? /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ n(m, { gap: 12, children: [
|
|
18
|
+
/* @__PURE__ */ t(u, { workspace: e, size: 36 }),
|
|
19
|
+
/* @__PURE__ */ n(a, { flex: 1, miw: 0, children: [
|
|
20
|
+
/* @__PURE__ */ t(i, { truncate: !0, size: "sm", fw: 500, c: "var(--mantine-color-bright)", children: e.workspaceName }),
|
|
21
|
+
!e?.invitation && /* @__PURE__ */ t(i, { c: "gray", fw: 500, size: "xs", component: "span", children: /* @__PURE__ */ n(m, { gap: 8, component: "span", children: [
|
|
22
|
+
o.has("memberCount") && e.totalMembers ? /* @__PURE__ */ n(l, { children: [
|
|
21
23
|
r("member", { count: e.totalMembers }),
|
|
22
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ t(
|
|
23
25
|
a,
|
|
24
26
|
{
|
|
25
27
|
w: 2,
|
|
@@ -38,5 +40,5 @@ const M = ({ workspace: e, onClick: l }) => {
|
|
|
38
40
|
);
|
|
39
41
|
};
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
I as WorkspaceItem
|
|
42
44
|
};
|
|
@@ -70,6 +70,7 @@ export interface EnvConfig {
|
|
|
70
70
|
};
|
|
71
71
|
livekit?: {
|
|
72
72
|
enabled?: boolean;
|
|
73
|
+
callsEnabled?: boolean;
|
|
73
74
|
url?: string;
|
|
74
75
|
};
|
|
75
76
|
office?: {
|
|
@@ -106,6 +107,7 @@ export interface EnvConfig {
|
|
|
106
107
|
}
|
|
107
108
|
export declare const getEnvConfig: () => EnvConfig;
|
|
108
109
|
export declare const isLivekitEnabled: () => boolean;
|
|
110
|
+
export declare const isLivekitCallsEnabled: () => boolean;
|
|
109
111
|
export declare const isOfficeEnabled: () => boolean;
|
|
110
112
|
export declare const getOfficeUrl: () => string | undefined;
|
|
111
113
|
export declare const getEnvValue: <T>(selector: (config: EnvConfig) => T | undefined, fallback?: T) => T | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envConfig.d.ts","sourceRoot":"","sources":["../../src/config/envConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,MA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