@layers-app/shared 0.2.4 → 0.2.5

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 (214) hide show
  1. package/dist/assets/jsons/emoji-categorized-windows.json.js +4 -0
  2. package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
  3. package/dist/assets/svg/users.svg.js +5 -0
  4. package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
  5. package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
  6. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  7. package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
  8. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  9. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  10. package/dist/components/AppContainer/AppContainer.js +48 -45
  11. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  12. package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
  13. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
  14. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +56 -43
  16. package/dist/components/AppContainer/components/Main.d.ts +5 -1
  17. package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/Main.js +11 -8
  19. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  20. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
  21. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  22. package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
  23. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
  24. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
  25. package/dist/components/AppContainer/types.d.ts +1 -0
  26. package/dist/components/AppContainer/types.d.ts.map +1 -1
  27. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
  28. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
  30. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
  32. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
  34. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
  35. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
  36. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
  38. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  39. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
  40. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  41. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
  42. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  43. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
  44. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
  45. package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
  46. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  47. package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
  48. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
  49. package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
  50. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  51. package/dist/components/ColorPicker/ColorPicker.js +66 -59
  52. package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
  53. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  54. package/dist/components/Copyright/index.d.ts.map +1 -1
  55. package/dist/components/Copyright/index.js +6 -6
  56. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  57. package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
  58. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  59. package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
  60. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  61. package/dist/components/EmojiPicker/IconsPanel.js +37 -38
  62. package/dist/components/EmojiPicker/utils.d.ts +11 -0
  63. package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
  64. package/dist/components/EmojiPicker/utils.js +46 -0
  65. package/dist/components/EntityIcon.d.ts +5 -2
  66. package/dist/components/EntityIcon.d.ts.map +1 -1
  67. package/dist/components/EntityIcon.js +44 -46
  68. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  69. package/dist/components/FilePicker/FilePicker.js +58 -59
  70. package/dist/components/FilePicker/types.d.ts +1 -1
  71. package/dist/components/FilePicker/types.d.ts.map +1 -1
  72. package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
  73. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
  74. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
  75. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
  76. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
  77. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
  78. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  79. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
  80. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  81. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
  82. package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
  83. package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
  84. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  85. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
  86. package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
  87. package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
  88. package/dist/components/FormViewer/store/formStore.d.ts +10 -3
  89. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  90. package/dist/components/LanguagePicker/LanguagePicker.js +13 -13
  91. package/dist/components/Loaders/styles.module.css.js +1 -1
  92. package/dist/components/NavMenu/NavMenu.d.ts +4 -1
  93. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  94. package/dist/components/NavMenu/NavMenu.js +96 -77
  95. package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
  96. package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
  97. package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
  98. package/dist/components/NavMenu/components/DnDItem.js +32 -30
  99. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  100. package/dist/components/NavMenu/components/DnDProvider.js +28 -26
  101. package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
  102. package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
  103. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  104. package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
  105. package/dist/components/NavMenu/store.d.ts +1 -0
  106. package/dist/components/NavMenu/store.d.ts.map +1 -1
  107. package/dist/components/NavMenu/types.d.ts +1 -0
  108. package/dist/components/NavMenu/types.d.ts.map +1 -1
  109. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  110. package/dist/components/NoData/NoData.d.ts +32 -26
  111. package/dist/components/NoData/NoData.d.ts.map +1 -1
  112. package/dist/components/NoData/NoData.js +73 -73
  113. package/dist/components/OnBoarding/ProjectBoard.js +17 -17
  114. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
  115. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
  116. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
  117. package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
  118. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
  119. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
  120. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
  121. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
  122. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
  123. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
  124. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
  125. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
  126. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
  127. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
  128. package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
  129. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +1 -1
  130. package/dist/components/PaymentSuccess/PaymentSuccess.js +9 -9
  131. package/dist/components/SearchFilters/components/DateFilter.js +19 -19
  132. package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
  133. package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
  134. package/dist/components/SortableList/SortableList.d.ts.map +1 -1
  135. package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
  136. package/dist/components/SortableList/components/SortableItem/SortableItem.js +1 -9
  137. package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
  138. package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
  139. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
  140. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
  141. package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
  142. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
  143. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
  144. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
  145. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
  146. package/dist/components/StorageUsageProgress/index.d.ts +2 -2
  147. package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
  148. package/dist/components/StorageUsageProgress/index.js +73 -40
  149. package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
  150. package/dist/components/ThemeIndicator/index.js +4 -4
  151. package/dist/components/UserAvatar/index.js +14 -14
  152. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  153. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +40 -37
  154. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  155. package/dist/components/modals/RemoveConfirmModal.js +31 -24
  156. package/dist/components/table/export.d.ts.map +1 -1
  157. package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
  158. package/dist/components/table/hooks/useSaveRowCount.js +4 -4
  159. package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
  160. package/dist/components/table/hooks/useSorting.js +3 -1
  161. package/dist/constants.d.ts.map +1 -1
  162. package/dist/constants.js +8 -1
  163. package/dist/helpers/getFileIcons.js +12 -12
  164. package/dist/helpers/isAppMode.d.ts +1 -1
  165. package/dist/helpers/isAppMode.d.ts.map +1 -1
  166. package/dist/helpers/validateAliasFormat.d.ts +2 -0
  167. package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
  168. package/dist/helpers/validateAliasFormat.js +4 -0
  169. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  170. package/dist/index.css +1 -1
  171. package/dist/index.d.ts +3 -4
  172. package/dist/index.d.ts.map +1 -1
  173. package/dist/index.js +328 -329
  174. package/dist/lang/locales/ui_en.json.js +1 -1
  175. package/dist/lang/locales/ui_es.json.js +9 -9
  176. package/dist/lang/locales/ui_ru.json.js +9 -9
  177. package/dist/store/trashModal.d.ts +8 -0
  178. package/dist/store/trashModal.d.ts.map +1 -0
  179. package/dist/store/trashModal.js +13 -0
  180. package/dist/types/storageCategories.d.ts +4 -0
  181. package/dist/types/storageCategories.d.ts.map +1 -0
  182. package/dist/types/storageCategories.js +21 -0
  183. package/dist/utils/formatStorage.d.ts +1 -1
  184. package/dist/utils/formatStorage.d.ts.map +1 -1
  185. package/dist/utils/formatStorage.js +3 -3
  186. package/docs/README.md +17 -4
  187. package/package.json +1 -1
  188. package/dist/assets/fileTypes/archives.svg.js +0 -5
  189. package/dist/assets/fileTypes/audio.svg.js +0 -5
  190. package/dist/assets/fileTypes/code.svg.js +0 -5
  191. package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
  192. package/dist/assets/fileTypes/images.svg.js +0 -5
  193. package/dist/assets/fileTypes/other.svg.js +0 -5
  194. package/dist/assets/fileTypes/videos.svg.js +0 -5
  195. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
  196. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
  197. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
  198. package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
  199. package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
  200. package/dist/components/EmojiPicker/getIconsList.js +0 -32
  201. package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
  202. package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
  203. package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
  204. package/dist/components/NoData/NoData.module.css.js +0 -7
  205. package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
  206. package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
  207. package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
  208. package/dist/components/PaymentError/PaymentError.d.ts +0 -2
  209. package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
  210. package/dist/components/PaymentError/PaymentError.js +0 -41
  211. package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
  212. package/dist/store/accessOptionsControl.d.ts +0 -17
  213. package/dist/store/accessOptionsControl.d.ts.map +0 -1
  214. package/dist/store/accessOptionsControl.js +0 -18
@@ -1,89 +1,100 @@
1
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import { memo as m, useRef as C, useEffect as b, useMemo as E } from "react";
1
+ import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
+ import { memo as m, useRef as k, useEffect as O, useMemo as y } from "react";
3
3
  import { useTranslation as g } from "react-i18next";
4
- import { NavLink as S } from "react-router-dom";
4
+ import { NavLink as E } from "react-router-dom";
5
5
  import { MoreHorizontalIcon as I, ArrowRight01Icon as M } from "@hugeicons/core-free-icons";
6
- import { HugeiconsIcon as v } from "@hugeicons/react";
7
- import { ApiCommon as h } from "../../../node_modules/@layers-app/layers/src/api/common.js";
8
- import { Flex as p, Loader as y, Text as N, FocusTrap as k, Center as j, Tooltip as P } from "@mantine/core";
9
- import { useForm as z } from "@mantine/form";
10
- import { useClickOutside as A } from "@mantine/hooks";
11
- import { useAsyncStatus as D } from "../../../hooks/useAsyncStatus.js";
6
+ import { HugeiconsIcon as C } from "@hugeicons/react";
7
+ import { Flex as h, Loader as N, Text as w, FocusTrap as P, Tooltip as b, Center as R } from "@mantine/core";
8
+ import { useForm as j } from "@mantine/form";
9
+ import { useClickOutside as z } from "@mantine/hooks";
10
+ import { useAsyncStatus as A } from "../../../hooks/useAsyncStatus.js";
11
+ import { useMenu as D } from "../../../hooks/useMenu.js";
12
+ import { appContainerStore as T } from "../../AppContainer/hooks/useAppContainerStore.js";
12
13
  import { EmojiPicker as F } from "../../EmojiPicker/EmojiPicker.js";
13
- import { EntityIcon as w } from "../../EntityIcon.js";
14
+ import { EntityIcon as x } from "../../EntityIcon.js";
14
15
  import { NavMenu as L } from "../NavMenu.js";
15
- import { useNavMenuStore as u } from "../store.js";
16
- import { NavMenuActionIcon as O } from "./NavMenuActionIcon.js";
17
- import a from "../NavMenu.module.css.js";
18
- const ne = m(({ item: e, ignoreDepth: o }) => {
19
- const { useStore: r } = u(), n = r((s) => s.editId === e.id);
20
- return /* @__PURE__ */ t(x, { depth: o ? void 0 : e.depth, children: n ? /* @__PURE__ */ t(B, { item: e }) : /* @__PURE__ */ t(T, { item: e }) });
21
- }), T = m(({ item: e }) => {
22
- const { api: o } = u();
23
- return e.href ? /* @__PURE__ */ t(
24
- S,
16
+ import { useNavMenuStore as f } from "../store.js";
17
+ import { NavMenuActionIcon as B } from "./NavMenuActionIcon.js";
18
+ import s from "../NavMenu.module.css.js";
19
+ const re = m(({ item: e, ignoreDepth: a }) => {
20
+ const { useStore: r } = f(), i = r((t) => t.editId === e.id);
21
+ return /* @__PURE__ */ n(S, { depth: a ? void 0 : e.depth, children: i ? /* @__PURE__ */ n(H, { item: e }) : /* @__PURE__ */ n(V, { item: e }) });
22
+ }), V = m(({ item: e }) => {
23
+ const { api: a, useStore: r } = f(), i = r((o) => o.props.onClick), { isMobile: t } = D(), { t: l } = g("appContainer"), d = () => {
24
+ i ? i(e) : e.hasChildren && a.toggleOpened(e);
25
+ }, c = e.data?.isReadOnly, p = e.href ? /* @__PURE__ */ n(
26
+ E,
25
27
  {
26
28
  to: e.href,
27
- className: a.item,
29
+ className: s.item,
28
30
  "data-active": e.active,
29
31
  "data-has-children": e.hasChildren,
30
- children: /* @__PURE__ */ t(f, { item: e })
32
+ "data-read-only": c,
33
+ onClick: c ? void 0 : () => {
34
+ t && !e.hasChildren && T.api.closeToolbar();
35
+ },
36
+ children: /* @__PURE__ */ n(v, { item: e })
31
37
  }
32
- ) : /* @__PURE__ */ t(
38
+ ) : /* @__PURE__ */ n(
33
39
  "div",
34
40
  {
35
- className: a.item,
41
+ className: s.item,
36
42
  "data-active": e.active,
37
43
  "data-has-children": e.hasChildren,
38
- onClick: () => o.toggleOpened(e),
39
- children: /* @__PURE__ */ t(f, { item: e })
44
+ "data-read-only": c,
45
+ onClick: c ? void 0 : d,
46
+ children: /* @__PURE__ */ n(v, { item: e })
40
47
  }
41
48
  );
42
- }), f = m(({ item: e }) => {
43
- const { t: o } = g(), { useStore: r, api: n } = u(), s = r((i) => i.opened.includes(e.id)), l = r((i) => i.loading[e.id]);
44
- return /* @__PURE__ */ d(p, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
45
- /* @__PURE__ */ d(p, { gap: 4, miw: 0, flex: 1, children: [
46
- l ? /* @__PURE__ */ t(j, { w: 20, h: 20, children: /* @__PURE__ */ t(y, { size: 16 }) }) : e.hasChildren && /* @__PURE__ */ t(
47
- O,
49
+ return c ? /* @__PURE__ */ n(b, { label: l("readOnlyAccess"), position: "right", withArrow: !0, children: p }) : p;
50
+ }), v = m(({ item: e }) => {
51
+ const { t: a } = g(), { useStore: r, api: i } = f(), t = r((o) => o.opened.includes(e.id)), l = r((o) => o.loading[e.id]), d = y(
52
+ () => ({ ...e.data, isOpen: t }),
53
+ [t, e.data]
54
+ ), c = e.data?.isReadOnly, p = c ? 0.3 : void 0;
55
+ return /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
56
+ /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, children: [
57
+ l ? /* @__PURE__ */ n(R, { w: 20, h: 20, children: /* @__PURE__ */ n(N, { size: 16 }) }) : e.hasChildren && !c && /* @__PURE__ */ n(
58
+ B,
48
59
  {
49
- className: a.chevron,
50
- onClick: (i) => {
51
- i.preventDefault(), i.stopPropagation(), n.toggleOpened(e);
60
+ className: s.chevron,
61
+ onClick: (o) => {
62
+ o.preventDefault(), o.stopPropagation(), i.toggleOpened(e);
52
63
  },
53
- children: /* @__PURE__ */ t(
54
- v,
64
+ children: /* @__PURE__ */ n(
65
+ C,
55
66
  {
56
67
  icon: M,
57
68
  size: 16,
58
69
  style: {
59
- transform: `rotate(${s ? 90 : 0}deg)`,
70
+ transform: `rotate(${t ? 90 : 0}deg)`,
60
71
  transition: "transform 0.1s ease-in-out"
61
72
  }
62
73
  }
63
74
  )
64
75
  }
65
76
  ),
66
- /* @__PURE__ */ t("div", { className: a.icon, children: /* @__PURE__ */ t(w, { item: e.data }) }),
67
- /* @__PURE__ */ t(
68
- P,
77
+ /* @__PURE__ */ n("div", { className: s.icon, style: { opacity: p }, children: /* @__PURE__ */ n(x, { item: d }) }),
78
+ /* @__PURE__ */ n(
79
+ b,
69
80
  {
70
81
  disabled: e.title.length < 25,
71
- label: e.title || o("noName"),
82
+ label: e.title || a("noName"),
72
83
  openDelay: 400,
73
- children: /* @__PURE__ */ t(
74
- N,
84
+ children: /* @__PURE__ */ n(
85
+ w,
75
86
  {
76
87
  flex: 1,
77
88
  truncate: !0,
78
- style: { opacity: e.title ? 1 : 0.5 },
89
+ style: { opacity: e.title ? p ?? 1 : 0.5 },
79
90
  size: "sm",
80
91
  fw: 500,
81
92
  miw: 0,
82
93
  c: "var(--mantine-color-text)",
83
- onDoubleClick: (i) => {
84
- r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (i.preventDefault(), i.stopPropagation(), n.startEditing(e.id));
94
+ onDoubleClick: (o) => {
95
+ r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (o.preventDefault(), o.stopPropagation(), i.startEditing(e.id));
85
96
  },
86
- children: e.title || o("noName")
97
+ children: e.title || a("noName")
87
98
  }
88
99
  )
89
100
  }
@@ -91,39 +102,37 @@ const ne = m(({ item: e, ignoreDepth: o }) => {
91
102
  ] }),
92
103
  e.rightSection
93
104
  ] });
94
- }), B = m(({ item: e }) => {
95
- const { api: o } = u(), r = C(null), n = z({
105
+ }), H = m(({ item: e }) => {
106
+ const { api: a, useStore: r } = f(), i = k(null), t = j({
96
107
  initialValues: {
97
108
  name: e.title,
98
109
  icon: e.data?.icon || ""
99
110
  }
100
- }), s = (c) => {
101
- o.handleEdit({
111
+ }), l = (o) => {
112
+ a.handleEdit({
102
113
  id: e.id,
103
- name: c.name ?? "",
104
- icon: c.icon ?? ""
105
- }), o.stopEditing();
106
- }, l = A(() => {
107
- s(n.getValues());
114
+ name: o.name ?? "",
115
+ icon: o.icon ?? ""
116
+ }), a.stopEditing();
117
+ }, d = z(() => {
118
+ l(t.getValues());
108
119
  });
109
- b(() => {
110
- r.current && r.current.select();
120
+ O(() => {
121
+ i.current && i.current.select();
111
122
  }, []);
112
- const i = E(
113
- () => [h.Entity.Sprint, h.Entity.Project].includes(
114
- e.data?.type || ""
115
- ),
123
+ const c = y(
124
+ () => ["SPRINT", "PROJECT"].includes(e.data?.type || ""),
116
125
  [e.data?.type]
117
- );
118
- return /* @__PURE__ */ t(
126
+ ), p = r((o) => o.opened.includes(e.id));
127
+ return /* @__PURE__ */ n(
119
128
  "form",
120
129
  {
121
- onSubmit: n.onSubmit(s),
122
- className: a.item,
123
- ref: l,
130
+ onSubmit: t.onSubmit(l),
131
+ className: s.item,
132
+ ref: d,
124
133
  "data-editing": !0,
125
- children: /* @__PURE__ */ d(p, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
126
- /* @__PURE__ */ t("div", { className: a.icon, children: /* @__PURE__ */ t(
134
+ children: /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
135
+ /* @__PURE__ */ n("div", { className: s.icon, children: /* @__PURE__ */ n(
127
136
  F,
128
137
  {
129
138
  showIcons: !0,
@@ -132,57 +141,62 @@ const ne = m(({ item: e, ignoreDepth: o }) => {
132
141
  popoverProps: {
133
142
  floatingStrategy: "fixed"
134
143
  },
135
- value: n.values.icon,
136
- onChange: (c) => n.setFieldValue("icon", c),
137
- children: /* @__PURE__ */ t(L.ActionIcon, { disabled: i, children: /* @__PURE__ */ t(w, { item: { ...e.data, icon: n.values.icon } }) })
144
+ value: t.values.icon,
145
+ onChange: (o) => t.setFieldValue("icon", o),
146
+ children: /* @__PURE__ */ n(L.ActionIcon, { disabled: c, children: /* @__PURE__ */ n(
147
+ x,
148
+ {
149
+ item: { ...e.data, isOpen: p, icon: t.values.icon }
150
+ }
151
+ ) })
138
152
  }
139
153
  ) }),
140
- /* @__PURE__ */ t(k, { children: /* @__PURE__ */ t(
154
+ /* @__PURE__ */ n(P, { children: /* @__PURE__ */ n(
141
155
  "input",
142
156
  {
143
- ref: r,
144
- className: a.editInput,
145
- ...n.getInputProps("name"),
157
+ ref: i,
158
+ className: s.editInput,
159
+ ...t.getInputProps("name"),
146
160
  maxLength: 255,
147
- onFocus: (c) => c.target.select()
161
+ onFocus: (o) => o.target.select()
148
162
  }
149
163
  ) })
150
164
  ] })
151
165
  }
152
166
  );
153
- }), x = m(
154
- ({ depth: e = 0, children: o }) => /* @__PURE__ */ d(
167
+ }), S = m(
168
+ ({ depth: e = 0, children: a }) => /* @__PURE__ */ u(
155
169
  "div",
156
170
  {
157
- className: a.itemContainer,
171
+ className: s.itemContainer,
158
172
  style: {
159
173
  "--depth": e
160
174
  },
161
175
  children: [
162
- Array.from({ length: e }).map((r, n) => /* @__PURE__ */ t("div", { className: a.depthBox }, n)),
163
- o
176
+ Array.from({ length: e }).map((r, i) => /* @__PURE__ */ n("div", { className: s.depthBox }, i)),
177
+ a
164
178
  ]
165
179
  }
166
180
  )
167
- ), oe = ({
181
+ ), se = ({
168
182
  depth: e,
169
- itemId: o,
183
+ itemId: a,
170
184
  currentChildrenCount: r
171
185
  }) => {
172
- const { t: n } = g("appContainer"), { api: s } = u(), { isLoading: l, onSubmit: i } = D();
173
- return /* @__PURE__ */ t(x, { depth: e, children: /* @__PURE__ */ t(
186
+ const { t: i } = g("appContainer"), { api: t } = f(), { isLoading: l, onSubmit: d } = A();
187
+ return /* @__PURE__ */ n(S, { depth: e, children: /* @__PURE__ */ n(
174
188
  "div",
175
189
  {
176
- className: a.item,
177
- onClick: () => i(() => s.loadMore({ itemId: o, currentChildrenCount: r })),
178
- children: /* @__PURE__ */ t(p, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ d(p, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
179
- /* @__PURE__ */ t("div", { className: a.icon, children: l ? /* @__PURE__ */ t(y, { size: 16 }) : /* @__PURE__ */ t(v, { icon: I, size: 16 }) }),
180
- /* @__PURE__ */ t(N, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: n("loadMore") })
190
+ className: s.item,
191
+ onClick: () => d(() => t.loadMore({ itemId: a, currentChildrenCount: r })),
192
+ children: /* @__PURE__ */ n(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
193
+ /* @__PURE__ */ n("div", { className: s.icon, children: l ? /* @__PURE__ */ n(N, { size: 16 }) : /* @__PURE__ */ n(C, { icon: I, size: 16 }) }),
194
+ /* @__PURE__ */ n(w, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: i("loadMore") })
181
195
  ] }) })
182
196
  }
183
197
  ) });
184
198
  };
185
199
  export {
186
- ne as NavMenuItem,
187
- oe as NavMenuLoadMore
200
+ re as NavMenuItem,
201
+ se as NavMenuLoadMore
188
202
  };
@@ -13,6 +13,7 @@ export type NavMenuStore = {
13
13
  props: {
14
14
  onEdit?: (props: NavMenuEditData) => void;
15
15
  onToggle?: (item: ExpandNavMenuItemDef) => void;
16
+ onClick?: (item: ExpandNavMenuItemDef) => void;
16
17
  onLoadMore?: NavMenuOnLoadMore;
17
18
  };
18
19
  };
@@ -1 +1 @@
1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AAoB;yBAaxB,MAAM,EAAE;yBAIR,MAAM,WAAW,OAAO,GAAG,SAAS;6BAVhC,MAAM;;CAwDoB,CAAC"}
@@ -3,6 +3,7 @@ export type NavMenuItemData = {
3
3
  type?: string | null;
4
4
  icon?: string | null;
5
5
  title?: string | null;
6
+ isReadOnly?: boolean;
6
7
  };
7
8
  export type NavMenuItemDef<DATA = NavMenuItemData> = {
8
9
  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;CACvB,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;CACvC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,GAAG,eAAe,IACrD,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,KAAK,EAAE,MAAM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Q,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;CACvC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,GAAG,eAAe,IACrD,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEJ,MAAM,MAAM,kBAAkB,CAAC,IAAI,GAAG,eAAe,IAAI,CAAC,CAAC,EAAE;IAC3D,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,QAAQ,EAAE,0BAA0B,CAAC;CACtC,KAAK,IAAI,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
@@ -1,7 +1,7 @@
1
- const e = "_resizer_ez847_1", s = {
1
+ const e = "_resizer_hdrhk_1", r = {
2
2
  resizer: e
3
3
  };
4
4
  export {
5
- s as default,
5
+ r as default,
6
6
  e as resizer
7
7
  };
@@ -1,152 +1,159 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import React from 'react';
2
3
  import { ButtonProps, PolymorphicComponentProps, StackProps, TextProps, TitleProps } from '@mantine/core';
3
4
  export declare const illustrationMap: {
4
- empty: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
5
+ empty: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
5
6
  title?: string;
6
7
  titleId?: string;
7
8
  desc?: string;
8
9
  descId?: string;
9
10
  }>;
10
- noAccess: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
11
+ noAccess: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
11
12
  title?: string;
12
13
  titleId?: string;
13
14
  desc?: string;
14
15
  descId?: string;
15
16
  }>;
16
- trash: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
17
+ trash: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
17
18
  title?: string;
18
19
  titleId?: string;
19
20
  desc?: string;
20
21
  descId?: string;
21
22
  }>;
22
- noImage: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
23
+ noImage: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
23
24
  title?: string;
24
25
  titleId?: string;
25
26
  desc?: string;
26
27
  descId?: string;
27
28
  }>;
28
- noResults: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
29
+ noResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
29
30
  title?: string;
30
31
  titleId?: string;
31
32
  desc?: string;
32
33
  descId?: string;
33
34
  }>;
34
- noComments: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
35
+ noComments: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
35
36
  title?: string;
36
37
  titleId?: string;
37
38
  desc?: string;
38
39
  descId?: string;
39
40
  }>;
40
- noData: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
41
+ noData: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
41
42
  title?: string;
42
43
  titleId?: string;
43
44
  desc?: string;
44
45
  descId?: string;
45
46
  }>;
46
- emptyFolder: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
47
+ emptyFolder: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
47
48
  title?: string;
48
49
  titleId?: string;
49
50
  desc?: string;
50
51
  descId?: string;
51
52
  }>;
52
- noTaskResults: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
53
+ noTaskResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
53
54
  title?: string;
54
55
  titleId?: string;
55
56
  desc?: string;
56
57
  descId?: string;
57
58
  }>;
58
- noSearchResults: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
59
+ noSearchResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
59
60
  title?: string;
60
61
  titleId?: string;
61
62
  desc?: string;
62
63
  descId?: string;
63
64
  }>;
64
- noMembers: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
65
+ noMembers: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
65
66
  title?: string;
66
67
  titleId?: string;
67
68
  desc?: string;
68
69
  descId?: string;
69
70
  }>;
70
- noGroups: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
71
+ noGroups: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
71
72
  title?: string;
72
73
  titleId?: string;
73
74
  desc?: string;
74
75
  descId?: string;
75
76
  }>;
76
- noNotifications: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
77
+ noNotifications: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
77
78
  title?: string;
78
79
  titleId?: string;
79
80
  desc?: string;
80
81
  descId?: string;
81
82
  }>;
82
- noWorkspaces: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
83
+ noWorkspaces: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
83
84
  title?: string;
84
85
  titleId?: string;
85
86
  desc?: string;
86
87
  descId?: string;
87
88
  }>;
88
- paymentSuccess: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
89
+ paymentSuccess: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
89
90
  title?: string;
90
91
  titleId?: string;
91
92
  desc?: string;
92
93
  descId?: string;
93
94
  }>;
94
- notSuccessMan: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
95
+ notSuccessMan: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
95
96
  title?: string;
96
97
  titleId?: string;
97
98
  desc?: string;
98
99
  descId?: string;
99
100
  }>;
100
- noAnswers: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
101
+ noAnswers: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
101
102
  title?: string;
102
103
  titleId?: string;
103
104
  desc?: string;
104
105
  descId?: string;
105
106
  }>;
106
- alertMan: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
107
+ alertMan: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
107
108
  title?: string;
108
109
  titleId?: string;
109
110
  desc?: string;
110
111
  descId?: string;
111
112
  }>;
112
- noFlows: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
113
+ noFlows: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
113
114
  title?: string;
114
115
  titleId?: string;
115
116
  desc?: string;
116
117
  descId?: string;
117
118
  }>;
118
- noTasks: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
119
+ noTasks: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
119
120
  title?: string;
120
121
  titleId?: string;
121
122
  desc?: string;
122
123
  descId?: string;
123
124
  }>;
124
- noCloud: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
125
+ noCloud: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
125
126
  title?: string;
126
127
  titleId?: string;
127
128
  desc?: string;
128
129
  descId?: string;
129
130
  }>;
130
- noForms: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
131
+ noForms: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
131
132
  title?: string;
132
133
  titleId?: string;
133
134
  desc?: string;
134
135
  descId?: string;
135
136
  }>;
136
- '404': import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
137
+ users: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
137
138
  title?: string;
138
139
  titleId?: string;
139
140
  desc?: string;
140
141
  descId?: string;
141
142
  }>;
142
- '500': import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
143
+ '404': React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
144
+ title?: string;
145
+ titleId?: string;
146
+ desc?: string;
147
+ descId?: string;
148
+ }>;
149
+ '500': React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
143
150
  title?: string;
144
151
  titleId?: string;
145
152
  desc?: string;
146
153
  descId?: string;
147
154
  }>;
148
155
  };
149
- export type IllustrationType = keyof typeof illustrationMap | string;
156
+ export type IllustrationType = keyof typeof illustrationMap | string | ReactNode;
150
157
  export type NoDataProps = {
151
158
  title?: ReactNode;
152
159
  titleProps?: TitleProps;
@@ -157,7 +164,6 @@ export type NoDataProps = {
157
164
  size?: number;
158
165
  width?: number | string;
159
166
  height?: number | string;
160
- showDots?: boolean;
161
167
  } & StackProps;
162
168
  export declare const NoData: FC<NoDataProps>;
163
169
  //# sourceMappingURL=NoData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/components/NoData/NoData.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAGL,WAAW,EAGX,yBAAyB,EAEzB,UAAU,EAEV,SAAS,EAET,UAAU,EACX,MAAM,eAAe,CAAC;AAkCvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,eAAe,GAAG,MAAM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