@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.
Files changed (128) hide show
  1. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  2. package/dist/components/AppContainer/AppContainer.js +72 -79
  3. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  4. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  6. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  8. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/Header.js +6 -5
  10. package/dist/components/AppContainer/components/Main.js +4 -4
  11. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  12. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  14. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  16. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  17. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  18. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  19. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  21. package/dist/components/AppContainer/types.d.ts +1 -0
  22. package/dist/components/AppContainer/types.d.ts.map +1 -1
  23. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  25. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
  27. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  28. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  30. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  32. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  34. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  35. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
  36. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  37. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  38. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  39. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  40. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  41. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
  42. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +40 -28
  43. package/dist/components/Chat/ChatInput/index.d.ts +29 -1
  44. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  45. package/dist/components/Chat/ChatInput/index.js +178 -118
  46. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  47. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  48. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  49. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +9 -9
  50. package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
  51. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  52. package/dist/components/Chat/ChatMessage/index.js +136 -118
  53. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
  54. package/dist/components/Chat/MessageActions/index.d.ts +7 -0
  55. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  56. package/dist/components/Chat/MessageActions/index.js +33 -30
  57. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -10
  58. package/dist/components/Chat/MessageList/index.d.ts +30 -3
  59. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  60. package/dist/components/Chat/MessageList/index.js +154 -66
  61. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +7 -7
  62. package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
  63. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
  64. package/dist/components/Chat/MessageReactions/index.js +60 -28
  65. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +6 -4
  66. package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
  67. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
  68. package/dist/components/Chat/MessageStatus/index.js +49 -34
  69. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  70. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  71. package/dist/components/ColorPicker/ColorPicker.module.css.js +26 -20
  72. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  73. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  74. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  75. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  76. package/dist/components/ColorPicker/icons.js +5 -5
  77. package/dist/components/ColorPicker/types.d.ts +6 -0
  78. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  79. package/dist/components/ColorPicker/types.js +53 -11
  80. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  81. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  82. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  83. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  84. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  85. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  86. package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
  87. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  88. package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
  89. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  90. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  91. package/dist/components/EntityIcon.d.ts +1 -0
  92. package/dist/components/EntityIcon.d.ts.map +1 -1
  93. package/dist/components/EntityIcon.js +80 -32
  94. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  95. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  96. package/dist/components/ErrorPage/components/Error403.js +25 -21
  97. package/dist/components/ErrorPage/index.d.ts +5 -1
  98. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  99. package/dist/components/ErrorPage/index.js +17 -10
  100. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  101. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  102. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  103. package/dist/components/NavMenu/NavMenu.js +54 -44
  104. package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
  105. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  106. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  107. package/dist/components/NavMenu/types.d.ts +4 -0
  108. package/dist/components/NavMenu/types.d.ts.map +1 -1
  109. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  110. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  111. package/dist/config/envConfig.d.ts +2 -0
  112. package/dist/config/envConfig.d.ts.map +1 -1
  113. package/dist/config/envConfig.js +41 -37
  114. package/dist/helpers/showNotifications.d.ts +15 -0
  115. package/dist/helpers/showNotifications.d.ts.map +1 -1
  116. package/dist/helpers/showNotifications.js +114 -72
  117. package/dist/helpers/showNotifications.module.css.js +16 -4
  118. package/dist/hooks/useUiPref.d.ts +2 -0
  119. package/dist/hooks/useUiPref.d.ts.map +1 -0
  120. package/dist/hooks/useUiPref.js +80 -0
  121. package/dist/index.css +1 -1
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +550 -540
  125. package/dist/lang/locales/ui_en.json.js +1 -1
  126. package/dist/lang/locales/ui_es.json.js +1 -1
  127. package/dist/lang/locales/ui_ru.json.js +1 -1
  128. package/package.json +1 -1
@@ -1,16 +1,17 @@
1
- import { jsxs as y, jsx as r } from "react/jsx-runtime";
2
- import { useMemo as x, useLayoutEffect as E, useRef as O } from "react";
3
- import { Stack as R, Skeleton as l, Text as w } from "@mantine/core";
4
- import { DnDItem as z } from "./components/DnDItem.js";
5
- import { DnDProvider as $ } from "./components/DnDProvider.js";
6
- import { NavMenuActionIcon as q } from "./components/NavMenuActionIcon.js";
7
- import { NavMenuItem as C, NavMenuLoadMore as D } from "./components/NavMenuItem.js";
8
- import { NavMenuLabel as B } from "./components/NavMenuLabel.js";
9
- import { createNavMenuStore as F, NavMenuProvider as L } from "./store.js";
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 G = ({
12
+ const J = ({
12
13
  items: o,
13
- loading: s,
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: A = !0,
24
- canDragDropItem: M
24
+ canUserDragDrop: y = !0,
25
+ canDragDropItem: M,
26
+ animateReorder: A
25
27
  }) => {
26
- const n = x(() => I ?? F(), [I]), c = n.useStore((e) => e.opened), h = x(() => {
27
- const e = [], d = (p, f) => {
28
- for (const [P, a] of p.entries()) {
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
- ...a,
31
- depth: f.parentDepth + 1,
32
- parentChildrenCount: f.parentChildrenCount,
33
- parentTotalChildren: f.parentTotalChildren,
34
- isLast: P === p.length - 1
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), c?.includes(a.id) && a.children.length > 0 && d(a.children, {
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, c, N]);
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 u = O(null);
63
- return s ? /* @__PURE__ */ y(R, { gap: 4, children: [
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($, { containerRef: u, onOrderChange: m, 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: u,
74
+ ref: f,
73
75
  "data-flat-order-change": k,
74
- children: h.map((e, d) => {
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 p = M ? M(e) : A;
87
+ const a = M ? M(e) : y;
86
88
  return /* @__PURE__ */ r(
87
- z,
89
+ q,
88
90
  {
89
91
  item: e,
90
92
  index: d,
91
- items: h,
92
- opened: c,
93
- itemAllowDragDrop: p,
94
- children: /* @__PURE__ */ r(C, { item: e })
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: u, children: h.map((e) => e.id.includes("load-more") ? /* @__PURE__ */ r(
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
- ) : /* @__PURE__ */ r(C, { item: e }, e.id)) }) }) : /* @__PURE__ */ r(b, { children: j });
109
- }, b = ({ children: o, ...s }) => /* @__PURE__ */ r(
110
- w,
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
- ...s,
125
+ ...c,
116
126
  children: o
117
127
  }
118
- ), ee = Object.assign(G, {
119
- Item: C,
120
- ActionIcon: q,
121
- Label: B,
128
+ ), te = Object.assign(J, {
129
+ Item: s,
130
+ ActionIcon: F,
131
+ Label: G,
122
132
  Placeholder: b
123
133
  });
124
134
  export {
125
- ee as NavMenu
135
+ te as NavMenu
126
136
  };
@@ -1,22 +1,22 @@
1
- const t = "_container_t27w5_1", e = "_depthBox_t27w5_25", n = "_itemContainer_t27w5_75", o = "_item_t27w5_75", _ = "_icon_t27w5_181", a = "_chevron_t27w5_189", c = "_droppable_t27w5_239", r = "_draggableOverlay_t27w5_353", i = "_editInput_t27w5_371", d = {
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: a,
8
- droppable: c,
9
- draggableOverlay: r,
10
- editInput: i
7
+ chevron: h,
8
+ droppable: a,
9
+ draggableOverlay: c,
10
+ editInput: r
11
11
  };
12
12
  export {
13
- a as chevron,
13
+ h as chevron,
14
14
  t as container,
15
- d as default,
15
+ i as default,
16
16
  e as depthBox,
17
- r as draggableOverlay,
18
- c as droppable,
19
- i as editInput,
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;AA8RF,eAAO,MAAM,eAAe,GAAI,0CAI7B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,4CAiCA,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 o, jsxs as h } from "react/jsx-runtime";
2
- import { memo as m, useRef as k, useEffect as E, useState as M, useMemo as P } from "react";
3
- import { useTranslation as y } from "react-i18next";
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 N } from "@hugeicons/react";
7
- import { Flex as f, Loader as x, Text as O, FocusTrap as R, Tooltip as S, Center as j } from "@mantine/core";
8
- import { useForm as F } from "@mantine/form";
9
- import { useClickOutside as L } from "@mantine/hooks";
10
- import { useAsyncStatus as T } from "../../../hooks/useAsyncStatus.js";
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 v } from "../../EntityIcon.js";
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 W } from "./NavMenuActionIcon.js";
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: s } = g(), n = s((l) => l.editId === e.id);
24
- return /* @__PURE__ */ o(
25
- b,
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: n ? /* @__PURE__ */ o(q, { item: e }) : /* @__PURE__ */ o(_, { item: e, disableToggleOnClick: r })
29
+ children: o ? /* @__PURE__ */ t(_, { item: e }) : /* @__PURE__ */ t(W, { item: e, disableToggleOnClick: r })
30
30
  }
31
31
  );
32
32
  }
33
- ), _ = m(
33
+ ), W = m(
34
34
  ({
35
35
  item: e,
36
36
  disableToggleOnClick: i
37
37
  }) => {
38
- const { api: r, useStore: s } = g(), n = s((a) => a.props.onClick), { isMobile: l } = V(), { t: p } = y("appContainer"), u = () => {
39
- i || (n ? n(e) : e.hasChildren && r.toggleOpened(e));
40
- }, d = e.data?.isReadOnly, t = e.href ? /* @__PURE__ */ o(
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": d,
48
- onClick: d ? void 0 : () => {
49
- l && !e.hasChildren && $.api.closeToolbar();
47
+ "data-read-only": l,
48
+ onClick: l ? void 0 : () => {
49
+ s && !e.hasChildren && $.api.closeToolbar();
50
50
  },
51
- children: /* @__PURE__ */ o(w, { item: e })
51
+ children: /* @__PURE__ */ t(w, { item: e })
52
52
  }
53
- ) : /* @__PURE__ */ o(
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": d,
60
- onClick: d ? void 0 : u,
61
- children: /* @__PURE__ */ o(w, { item: e })
59
+ "data-read-only": l,
60
+ onClick: l ? void 0 : u,
61
+ children: /* @__PURE__ */ t(w, { item: e })
62
62
  }
63
63
  );
64
- return d ? /* @__PURE__ */ o(S, { label: p("readOnlyAccess"), position: "right", withArrow: !0, children: t }) : t;
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 } = y(), { useStore: r, api: s } = g(), n = r((t) => t.opened.includes(e.id)), l = r((t) => t.loading[e.id]), p = P(
68
- () => ({ ...e.data, isOpen: n }),
69
- [n, e.data]
70
- ), u = e.data?.isReadOnly, d = u ? 0.3 : void 0;
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
- l ? /* @__PURE__ */ o(j, { w: 20, h: 20, children: /* @__PURE__ */ o(x, { size: 16 }) }) : e.hasChildren && !u && /* @__PURE__ */ o(
74
- W,
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: (t) => {
79
- t.preventDefault(), t.stopPropagation(), s.toggleOpened(e);
78
+ onClick: (n) => {
79
+ n.preventDefault(), n.stopPropagation(), o.toggleOpened(e);
80
80
  },
81
- children: /* @__PURE__ */ o(
82
- N,
81
+ children: /* @__PURE__ */ t(
82
+ x,
83
83
  {
84
84
  icon: z,
85
85
  size: 16,
86
86
  style: {
87
- transform: `rotate(${n ? 90 : 0}deg)`,
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__ */ o("div", { className: c.icon, style: { opacity: d }, children: /* @__PURE__ */ o(v, { item: p }) }),
95
- /* @__PURE__ */ o(
96
- S,
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 || i("noName"),
99
+ label: e.title || r,
100
100
  openDelay: 400,
101
- children: /* @__PURE__ */ o(
102
- O,
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: (t) => {
113
- r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (t.preventDefault(), t.stopPropagation(), s.startEditing(e.id));
112
+ onDoubleClick: (n) => {
113
+ a.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (n.preventDefault(), n.stopPropagation(), o.startEditing(e.id));
114
114
  },
115
- children: e.title || i("noName")
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
- }), q = m(({ item: e }) => {
124
- const { api: i, useStore: r } = g(), s = k(null), n = F({
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
- }), l = (a) => {
129
+ }), s = (n) => {
130
130
  i.handleEdit({
131
131
  id: e.id,
132
- name: a.name ?? "",
133
- icon: a.icon ?? ""
132
+ name: n.name ?? "",
133
+ icon: n.icon ?? ""
134
134
  }), i.stopEditing();
135
- }, p = L(() => {
136
- n.isDirty() ? l(n.getValues()) : i.stopEditing();
135
+ }, p = T(() => {
136
+ o.isDirty() ? s(o.getValues()) : i.stopEditing();
137
137
  });
138
138
  E(() => {
139
- s.current && s.current.select();
139
+ a.current && a.current.select();
140
140
  }, []);
141
- const u = r((a) => a.opened.includes(e.id)), [d, t] = M(!1);
142
- return /* @__PURE__ */ o(
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: n.onSubmit(l),
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__ */ o("div", { className: c.icon, children: e.colorPickerOnly ? /* @__PURE__ */ o(
150
+ /* @__PURE__ */ t("div", { className: c.icon, children: e.colorPickerOnly ? /* @__PURE__ */ t(
151
151
  B,
152
152
  {
153
- value: C.parse(n.values.icon)?.color,
154
- onChange: (a) => n.setFieldValue("icon", C.stringify({ color: a })),
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: d,
158
- setOpened: t,
159
- children: /* @__PURE__ */ o(I.ActionIcon, { onClick: () => t((a) => !a), children: /* @__PURE__ */ o(
160
- v,
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: n.values.icon }
162
+ item: { ...e.data, isOpen: u, icon: o.values.icon }
163
163
  }
164
164
  ) })
165
165
  }
166
- ) : /* @__PURE__ */ o(
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: n.values.icon,
176
- onChange: (a) => n.setFieldValue("icon", a),
177
- children: /* @__PURE__ */ o(I.ActionIcon, { children: /* @__PURE__ */ o(
178
- v,
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: n.values.icon }
180
+ item: { ...e.data, isOpen: u, icon: o.values.icon }
181
181
  }
182
182
  ) })
183
183
  }
184
184
  ) }),
185
- /* @__PURE__ */ o(R, { children: /* @__PURE__ */ o(
185
+ /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
186
186
  "input",
187
187
  {
188
- ref: s,
188
+ ref: a,
189
189
  className: c.editInput,
190
190
  "data-cy": e.testId ? `${e.testId}-rename-input` : void 0,
191
- ...n.getInputProps("name"),
191
+ ...o.getInputProps("name"),
192
192
  maxLength: 255,
193
- onFocus: (a) => a.target.select()
193
+ onFocus: (n) => n.target.select()
194
194
  }
195
195
  ) })
196
196
  ] })
197
197
  }
198
198
  );
199
- }), b = m(
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((s, n) => /* @__PURE__ */ o("div", { className: c.depthBox }, n)),
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: s } = y("appContainer"), { api: n } = g(), { isLoading: l, onSubmit: p } = T();
224
- return /* @__PURE__ */ o(b, { depth: e, children: /* @__PURE__ */ o(
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(() => n.loadMore({ itemId: i, currentChildrenCount: r })),
229
- children: /* @__PURE__ */ o(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__ */ o("div", { className: c.icon, children: l ? /* @__PURE__ */ o(x, { size: 16 }) : /* @__PURE__ */ o(N, { icon: D, size: 16 }) }),
231
- /* @__PURE__ */ o(O, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: s("loadMore") })
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;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,GAAG,eAAe,IAAI;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,GAAG,eAAe,IACrD,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,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E,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,4CAwCvE,CAAC"}
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 n, jsxs as t, Fragment as s } from "react/jsx-runtime";
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 h } from "../../hooks/usePlatform.js";
4
+ import { usePlatform as d } from "../../hooks/usePlatform.js";
5
5
  import { WorkspaceAvatar as u } from "../WorkspaceAvatar/WorkspaceAvatar.js";
6
- const M = ({ workspace: e, onClick: l }) => {
7
- const { t: r } = c("workspaceMenu"), o = h();
8
- return /* @__PURE__ */ n(
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: () => l?.(e),
14
+ onClick: () => s?.(e),
13
15
  component: "a",
14
16
  styles: { itemLabel: { minWidth: 0 } },
15
- children: /* @__PURE__ */ t(m, { gap: 12, children: [
16
- /* @__PURE__ */ n(u, { workspace: e, size: 36 }),
17
- /* @__PURE__ */ t(a, { flex: 1, miw: 0, children: [
18
- /* @__PURE__ */ n(i, { truncate: !0, size: "sm", fw: 500, c: "var(--mantine-color-bright)", children: e.workspaceName }),
19
- !e?.invitation && /* @__PURE__ */ n(i, { c: "gray", fw: 500, size: "xs", component: "span", children: /* @__PURE__ */ t(m, { gap: 8, component: "span", children: [
20
- o.has("memberCount") && e.totalMembers ? /* @__PURE__ */ t(s, { children: [
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__ */ n(
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
- M as WorkspaceItem
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,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CA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