@layers-app/shared 0.2.3 → 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 (230) 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 +54 -43
  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/hooks/useAppContainerStore.d.ts.map +1 -1
  26. package/dist/components/AppContainer/hooks/useAppContainerStore.js +12 -9
  27. package/dist/components/AppContainer/types.d.ts +2 -0
  28. package/dist/components/AppContainer/types.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
  30. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
  32. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
  34. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
  35. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
  36. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
  37. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
  38. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  39. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
  40. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  41. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
  42. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  43. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
  44. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  45. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
  46. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
  47. package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
  48. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  49. package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
  50. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
  51. package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
  52. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  53. package/dist/components/ColorPicker/ColorPicker.js +66 -59
  54. package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
  55. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  56. package/dist/components/Copyright/index.d.ts.map +1 -1
  57. package/dist/components/Copyright/index.js +6 -6
  58. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  59. package/dist/components/EmojiPicker/EmojiPanel.js +47 -46
  60. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  61. package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
  62. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  63. package/dist/components/EmojiPicker/IconsPanel.js +72 -72
  64. package/dist/components/EmojiPicker/utils.d.ts +11 -0
  65. package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
  66. package/dist/components/EmojiPicker/utils.js +46 -0
  67. package/dist/components/EntityIcon.d.ts +5 -2
  68. package/dist/components/EntityIcon.d.ts.map +1 -1
  69. package/dist/components/EntityIcon.js +44 -46
  70. package/dist/components/FilePicker/FilePicker.d.ts +2 -3
  71. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  72. package/dist/components/FilePicker/FilePicker.js +95 -130
  73. package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -3
  74. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  75. package/dist/components/FilePicker/FilePickerGiphy.js +43 -44
  76. package/dist/components/FilePicker/FilePickerLink.d.ts +2 -3
  77. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  78. package/dist/components/FilePicker/FilePickerLink.js +21 -21
  79. package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -3
  80. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  81. package/dist/components/FilePicker/FilePickerUnsplash.js +45 -46
  82. package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -3
  83. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  84. package/dist/components/FilePicker/FilePickerUpload.js +49 -43
  85. package/dist/components/FilePicker/types.d.ts +1 -1
  86. package/dist/components/FilePicker/types.d.ts.map +1 -1
  87. package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
  88. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
  89. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
  90. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
  91. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
  92. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
  93. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  94. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
  95. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  96. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
  97. package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
  98. package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
  99. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  100. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
  101. package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
  102. package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
  103. package/dist/components/FormViewer/store/formStore.d.ts +10 -3
  104. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  105. package/dist/components/LanguagePicker/LanguagePicker.js +13 -13
  106. package/dist/components/Loaders/styles.module.css.js +1 -1
  107. package/dist/components/NavMenu/NavMenu.d.ts +4 -1
  108. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  109. package/dist/components/NavMenu/NavMenu.js +96 -77
  110. package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
  111. package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
  112. package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
  113. package/dist/components/NavMenu/components/DnDItem.js +32 -30
  114. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  115. package/dist/components/NavMenu/components/DnDProvider.js +28 -26
  116. package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
  117. package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
  118. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  119. package/dist/components/NavMenu/components/NavMenuItem.js +109 -94
  120. package/dist/components/NavMenu/store.d.ts +1 -0
  121. package/dist/components/NavMenu/store.d.ts.map +1 -1
  122. package/dist/components/NavMenu/types.d.ts +1 -0
  123. package/dist/components/NavMenu/types.d.ts.map +1 -1
  124. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  125. package/dist/components/NoData/NoData.d.ts +32 -26
  126. package/dist/components/NoData/NoData.d.ts.map +1 -1
  127. package/dist/components/NoData/NoData.js +73 -73
  128. package/dist/components/OnBoarding/ProjectBoard.js +17 -17
  129. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
  130. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
  131. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
  132. package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
  133. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
  134. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
  135. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
  136. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
  137. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
  138. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
  139. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
  140. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
  141. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
  142. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
  143. package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
  144. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +1 -1
  145. package/dist/components/PaymentSuccess/PaymentSuccess.js +9 -9
  146. package/dist/components/SearchFilters/components/DateFilter.js +19 -19
  147. package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
  148. package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
  149. package/dist/components/SortableList/SortableList.d.ts.map +1 -1
  150. package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
  151. package/dist/components/SortableList/components/SortableItem/SortableItem.js +1 -9
  152. package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
  153. package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
  154. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
  155. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
  156. package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
  157. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
  158. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
  159. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
  160. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
  161. package/dist/components/StorageUsageProgress/index.d.ts +2 -2
  162. package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
  163. package/dist/components/StorageUsageProgress/index.js +73 -40
  164. package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
  165. package/dist/components/ThemeIndicator/index.js +4 -4
  166. package/dist/components/UserAvatar/index.js +14 -14
  167. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +2 -2
  168. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  169. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +103 -103
  170. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  171. package/dist/components/modals/RemoveConfirmModal.js +31 -24
  172. package/dist/components/table/export.d.ts.map +1 -1
  173. package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
  174. package/dist/components/table/hooks/useSaveRowCount.js +4 -4
  175. package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
  176. package/dist/components/table/hooks/useSorting.js +3 -1
  177. package/dist/constants.d.ts.map +1 -1
  178. package/dist/constants.js +8 -1
  179. package/dist/helpers/getFileIcons.js +12 -12
  180. package/dist/helpers/isAppMode.d.ts +1 -1
  181. package/dist/helpers/isAppMode.d.ts.map +1 -1
  182. package/dist/helpers/validateAliasFormat.d.ts +2 -0
  183. package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
  184. package/dist/helpers/validateAliasFormat.js +4 -0
  185. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  186. package/dist/index.css +1 -1
  187. package/dist/index.d.ts +3 -4
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +328 -329
  190. package/dist/lang/locales/ui_en.json.js +20 -12
  191. package/dist/lang/locales/ui_es.json.js +18 -10
  192. package/dist/lang/locales/ui_ru.json.js +26 -18
  193. package/dist/store/trashModal.d.ts +8 -0
  194. package/dist/store/trashModal.d.ts.map +1 -0
  195. package/dist/store/trashModal.js +13 -0
  196. package/dist/types/storageCategories.d.ts +4 -0
  197. package/dist/types/storageCategories.d.ts.map +1 -0
  198. package/dist/types/storageCategories.js +21 -0
  199. package/dist/utils/formatStorage.d.ts +1 -1
  200. package/dist/utils/formatStorage.d.ts.map +1 -1
  201. package/dist/utils/formatStorage.js +3 -3
  202. package/docs/README.md +17 -4
  203. package/package.json +1 -1
  204. package/dist/assets/fileTypes/archives.svg.js +0 -5
  205. package/dist/assets/fileTypes/audio.svg.js +0 -5
  206. package/dist/assets/fileTypes/code.svg.js +0 -5
  207. package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
  208. package/dist/assets/fileTypes/images.svg.js +0 -5
  209. package/dist/assets/fileTypes/other.svg.js +0 -5
  210. package/dist/assets/fileTypes/videos.svg.js +0 -5
  211. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
  212. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
  213. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
  214. package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
  215. package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
  216. package/dist/components/EmojiPicker/getIconsList.js +0 -32
  217. package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
  218. package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
  219. package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
  220. package/dist/components/NoData/NoData.module.css.js +0 -7
  221. package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
  222. package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
  223. package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
  224. package/dist/components/PaymentError/PaymentError.d.ts +0 -2
  225. package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
  226. package/dist/components/PaymentError/PaymentError.js +0 -41
  227. package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
  228. package/dist/store/accessOptionsControl.d.ts +0 -17
  229. package/dist/store/accessOptionsControl.d.ts.map +0 -1
  230. package/dist/store/accessOptionsControl.js +0 -18
@@ -1,70 +1,79 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
- import { Stack as v, Flex as c, Text as n, TextInput as h, Loader as f } from "@mantine/core";
3
- const w = ({
4
- form: d,
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { HelpCircleIcon as v } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as g } from "@hugeicons/react";
4
+ import { Stack as x, Flex as l, Text as c, TextInput as y, Loader as w, Box as z, Tooltip as L } from "@mantine/core";
5
+ const H = ({
6
+ form: p,
5
7
  label: e,
6
- disabled: r,
7
- localization: { aliasPlaceholder: s },
8
- stackProps: u,
9
- flexProps: i,
10
- textInputProps: a,
11
- isCheckingAlias: m
8
+ disabled: o,
9
+ localization: { aliasPlaceholder: a },
10
+ stackProps: m,
11
+ flexProps: d,
12
+ textInputProps: s,
13
+ isCheckingAlias: u,
14
+ previewMode: n = !1,
15
+ tooltipLabel: h
12
16
  }) => {
13
- const { error: t, ...p } = d;
14
- return /* @__PURE__ */ l(v, { gap: 5, ...u, children: [
15
- e ? typeof e == "string" ? /* @__PURE__ */ o(n, { fw: 500, fz: "xs", lh: "sm", children: e }) : e : null,
16
- /* @__PURE__ */ l(
17
- c,
17
+ const { error: t, ...f } = p;
18
+ return /* @__PURE__ */ i(x, { gap: 5, ...m, children: [
19
+ e ? typeof e == "string" ? /* @__PURE__ */ r(c, { fw: 500, fz: "xs", lh: "sm", children: e }) : e : null,
20
+ /* @__PURE__ */ i(
21
+ l,
18
22
  {
19
- pl: 12,
20
- gap: 0,
21
- ...i,
23
+ px: 12,
24
+ gap: "sm",
25
+ ...d,
22
26
  style: {
23
27
  border: `1px solid ${t ? "var(--mantine-color-error)" : "var(--mantine-color-default-border)"}`,
24
28
  borderRadius: "var(--mantine-radius-default)",
25
- color: r ? "var(--input-disabled-color)" : void 0,
26
- background: r ? "var(--mantine-color-disabled)" : void 0,
27
- opacity: r ? 0.6 : 1,
28
- cursor: r ? "not-allowed" : void 0,
29
- ...i?.style
29
+ color: o ? "var(--input-disabled-color)" : void 0,
30
+ background: o ? "var(--mantine-color-disabled)" : void 0,
31
+ opacity: o ? 0.6 : 1,
32
+ overflow: "hidden",
33
+ cursor: o ? "not-allowed" : n ? "pointer" : void 0,
34
+ ...d?.style
30
35
  },
31
36
  children: [
32
- /* @__PURE__ */ o(c, { align: "center", children: /* @__PURE__ */ o(
33
- n,
34
- {
35
- fw: 400,
36
- c: r ? "var(--mantine-color-dimmed)" : "var(--mantine-color-gray-text)",
37
- lh: "sm",
38
- style: { whiteSpace: "nowrap" },
39
- children: "app.layers.md/"
40
- }
41
- ) }),
42
- /* @__PURE__ */ o(
43
- h,
44
- {
45
- w: "100%",
46
- placeholder: s,
47
- variant: "unstyled",
48
- leftSectionWidth: "auto",
49
- maxLength: 50,
50
- disabled: r,
51
- rightSection: m ? /* @__PURE__ */ o(f, { size: 14 }) : void 0,
52
- ...p,
53
- ...a,
54
- styles: {
55
- input: {
56
- cursor: r ? "not-allowed" : void 0
57
- },
58
- ...a?.styles
37
+ /* @__PURE__ */ i(l, { gap: 0, flex: 1, align: "center", children: [
38
+ /* @__PURE__ */ r(l, { align: "center", children: /* @__PURE__ */ r(
39
+ c,
40
+ {
41
+ fw: 400,
42
+ c: o ? "dimmed" : "gray",
43
+ lh: "sm",
44
+ style: { whiteSpace: "nowrap" },
45
+ children: "app.layers.md/"
59
46
  }
60
- }
61
- )
47
+ ) }),
48
+ /* @__PURE__ */ r(
49
+ y,
50
+ {
51
+ w: "100%",
52
+ placeholder: a,
53
+ variant: "unstyled",
54
+ leftSectionWidth: "auto",
55
+ maxLength: 50,
56
+ disabled: o,
57
+ rightSection: u ? /* @__PURE__ */ r(w, { size: 14 }) : void 0,
58
+ ...f,
59
+ ...s,
60
+ styles: {
61
+ input: {
62
+ pointerEvents: n ? "none" : void 0,
63
+ cursor: o ? "not-allowed" : void 0
64
+ },
65
+ ...s?.styles
66
+ }
67
+ }
68
+ )
69
+ ] }),
70
+ n && /* @__PURE__ */ r(z, { w: 20, h: 20, children: /* @__PURE__ */ r(L, { label: h || a, children: /* @__PURE__ */ r(g, { size: 20, color: "gray", icon: v }) }) })
62
71
  ]
63
72
  }
64
73
  ),
65
- t && /* @__PURE__ */ o(n, { fz: "xs", c: "var(--mantine-color-error)", children: t })
74
+ t && /* @__PURE__ */ r(c, { fz: "xs", c: "var(--mantine-color-error)", children: t })
66
75
  ] });
67
76
  };
68
77
  export {
69
- w as AliasTextInput
78
+ H as AliasTextInput
70
79
  };
@@ -5,7 +5,7 @@ declare global {
5
5
  preSignMode?: boolean;
6
6
  }
7
7
  }
8
- export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
8
+ export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, withBg, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
9
9
  NavbarContent: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
10
  NewButton: ({ children, ...props }: import("@mantine/core").PolymorphicComponentProps<"button", import("@mantine/core").ButtonProps>) => import("react/jsx-runtime").JSX.Element;
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAqED,eAAO,MAAM,YAAY,4HAxDtB,iBAAiB;;;CA2DlB,CAAC"}
1
+ {"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AA0ED,eAAO,MAAM,YAAY,sJA3DtB,iBAAiB;;;CA8DlB,CAAC"}
@@ -1,56 +1,67 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { useEffect as C } from "react";
3
- import { useMantineColorScheme as y, Stack as A, Flex as j } from "@mantine/core";
4
- import { useQueryParam as k } from "../../hooks/useNumberQueryParam.js";
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { useEffect as T } from "react";
3
+ import { useMantineColorScheme as j, Stack as B, Flex as D } from "@mantine/core";
4
+ import { isAppMode as H } from "../../helpers/isAppMode.js";
5
+ import { useQueryParam as M } from "../../hooks/useNumberQueryParam.js";
5
6
  import { AppShell as e } from "../AppShell/AppShell.js";
6
- import { AppsSidebar as v } from "./components/AppsSidebar/AppsSidebar.js";
7
- import { Header as H } from "./components/Header.js";
8
- import { Main as N } from "./components/Main.js";
9
- import T from "./components/NavbarContent.js";
10
- import { RightSidebar as W } from "./components/RightSidebar.js";
11
- import { ToolSidebar as B } from "./components/ToolSidebar.js";
12
- import { ToolbarNewButton as M } from "./components/ToolbarNewButton.js";
13
- import { appContainerStore as P } from "./hooks/useAppContainerStore.js";
14
- const $ = ({
15
- header: h,
16
- content: l,
7
+ import { AppsSidebar as N } from "./components/AppsSidebar/AppsSidebar.js";
8
+ import { Header as P } from "./components/Header.js";
9
+ import { Main as W } from "./components/Main.js";
10
+ import E from "./components/NavbarContent.js";
11
+ import { RightSidebar as O } from "./components/RightSidebar.js";
12
+ import { ToolSidebar as $ } from "./components/ToolSidebar.js";
13
+ import { ToolbarNewButton as F } from "./components/ToolbarNewButton.js";
14
+ import { appContainerStore as K } from "./hooks/useAppContainerStore.js";
15
+ import { useAppContainerDataStore as Q } from "./hooks/useAppContainerDataStore.js";
16
+ const R = ({
17
+ header: l,
18
+ content: h,
17
19
  toolbar: i,
18
- navbarTitle: c,
20
+ navbarTitle: d,
19
21
  footer: n,
20
- onTitleChange: d,
21
- trashMenu: s,
22
+ onTitleChange: c,
23
+ trashMenu: f,
22
24
  rightbar: m,
23
- onInviteClick: f,
24
- showAppsSidebar: u = !0
25
+ onInviteClick: u,
26
+ showAppsSidebar: S = !0,
27
+ headerBorderless: b = !1,
28
+ withBg: x = !1
25
29
  }) => {
26
- const { toolbarWidth: S, rightbarWidth: b, layout: a } = P.useStore(), { setColorScheme: p } = y(), t = k("theme");
27
- C(() => {
28
- (t === "dark" || t === "light") && p(t);
29
- }, [t, p]);
30
- const x = {
31
- "--toolbar-width": `${S}px`,
32
- "--rightbar-width": `${b}px`
33
- }, w = a !== "nothing", g = a === "default" && i;
34
- return /* @__PURE__ */ o(e, { style: x, children: [
35
- u && /* @__PURE__ */ r(e.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ r(v, { onInviteClick: f, trashMenu: s }) }),
36
- /* @__PURE__ */ o(e.Section, { flex: 1, display: "flex", pos: "relative", children: [
37
- g && /* @__PURE__ */ r(B, { onTitleChange: d, navbarTitle: c, children: i }),
38
- /* @__PURE__ */ o(A, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
39
- w && /* @__PURE__ */ r(e.Header, { px: "sm", children: /* @__PURE__ */ r(H, { children: h }) }),
40
- /* @__PURE__ */ o(j, { mih: 0, gap: 0, h: "100%", children: [
41
- /* @__PURE__ */ r(e.WorkContent, { children: /* @__PURE__ */ o(N, { children: [
42
- l,
43
- n && /* @__PURE__ */ r("footer", { children: n })
30
+ const { toolbarWidth: w, rightbarWidth: C, layout: p } = K.useStore(), g = Q((v) => v.user), a = H(g.mode, "DESKTOP"), { setColorScheme: s } = j(), t = M("theme");
31
+ T(() => {
32
+ !a && (t === "dark" || t === "light") && s(t);
33
+ }, [t, s, a]);
34
+ const A = {
35
+ "--toolbar-width": `${w}px`,
36
+ "--rightbar-width": `${C}px`
37
+ }, y = p !== "nothing", k = p === "default" && i;
38
+ return /* @__PURE__ */ r(e, { style: A, children: [
39
+ S && /* @__PURE__ */ o(e.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ o(N, { onInviteClick: u, trashMenu: f }) }),
40
+ /* @__PURE__ */ r(e.Section, { flex: 1, display: "flex", pos: "relative", children: [
41
+ k && /* @__PURE__ */ o($, { onTitleChange: c, navbarTitle: d, children: i }),
42
+ /* @__PURE__ */ r(B, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
43
+ y && /* @__PURE__ */ o(
44
+ e.Header,
45
+ {
46
+ px: "sm",
47
+ style: b ? { borderBottom: "none" } : void 0,
48
+ children: /* @__PURE__ */ o(P, { children: l })
49
+ }
50
+ ),
51
+ /* @__PURE__ */ r(D, { mih: 0, gap: 0, h: "100%", children: [
52
+ /* @__PURE__ */ o(e.WorkContent, { children: /* @__PURE__ */ r(W, { withBg: x, children: [
53
+ h,
54
+ n && /* @__PURE__ */ o("footer", { children: n })
44
55
  ] }) }),
45
- m && /* @__PURE__ */ r(W, { children: m })
56
+ m && /* @__PURE__ */ o(O, { children: m })
46
57
  ] })
47
58
  ] })
48
59
  ] })
49
60
  ] });
50
- }, L = Object.assign($, {
51
- NavbarContent: T,
52
- NewButton: M
61
+ }, to = Object.assign(R, {
62
+ NavbarContent: E,
63
+ NewButton: F
53
64
  });
54
65
  export {
55
- L as AppContainer
66
+ to as AppContainer
56
67
  };
@@ -1,4 +1,4 @@
1
- const t = "_toolTitleInput_117jg_19", n = "_appSidebarButton_117jg_34", o = "_slideContainer_117jg_52", e = "_slideContent_117jg_58", i = "_main_117jg_73", s = {
1
+ const t = "_toolTitleInput_14hbr_19", n = "_appSidebarButton_14hbr_34", o = "_slideContainer_14hbr_55", e = "_slideContent_14hbr_61", i = "_main_14hbr_76", s = {
2
2
  toolTitleInput: t,
3
3
  appSidebarButton: n,
4
4
  slideContainer: o,
@@ -29,7 +29,7 @@ const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */
29
29
  fw: 500,
30
30
  lh: 1.4,
31
31
  c: "var(--app-container-title-color)",
32
- px: 8,
32
+ px: 4,
33
33
  truncate: !0,
34
34
  ta: "center",
35
35
  w: "var(--apps-sidebar-width)",
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
- import { useTranslation as l } from "react-i18next";
2
+ import { useTranslation as s } from "react-i18next";
3
3
  import { matchPath as m } from "react-router-dom";
4
4
  import { More01Icon as d } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as h } from "@hugeicons/react";
@@ -9,16 +9,16 @@ import { appContainerStore as g } from "../../hooks/useAppContainerStore.js";
9
9
  import { AppSidebarButton as n } from "../AppSidebarButton.js";
10
10
  import { MoreMenu as w } from "../menus/MoreMenu.js";
11
11
  const y = () => {
12
- const { t: p } = l("appContainer"), { hiddenTools: a } = g.useStore(), { tools: i, publicMode: c } = S();
12
+ const { t: p } = s("appContainer"), { hiddenTools: a } = g.useStore(), { tools: i, publicMode: c } = S();
13
13
  return /* @__PURE__ */ r(
14
14
  f,
15
15
  {
16
16
  w: "var(--apps-sidebar-width)",
17
17
  style: { borderTop: "1px solid var(--app-shell-border)" },
18
18
  py: 8,
19
- children: /* @__PURE__ */ t(u, { gap: "sm", align: "center", children: [
19
+ children: /* @__PURE__ */ t(u, { gap: 8, align: "center", children: [
20
20
  i?.filter((o) => !a.includes(o.id))?.map((o) => {
21
- const s = !!m(
21
+ const l = !!m(
22
22
  { path: o.path, end: !1 },
23
23
  window.location.pathname
24
24
  );
@@ -27,7 +27,7 @@ const y = () => {
27
27
  {
28
28
  title: o.name,
29
29
  icon: o.icon(),
30
- active: s,
30
+ active: l,
31
31
  onClick: o.onClick
32
32
  },
33
33
  o.id
@@ -1 +1 @@
1
- {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CA2EA,CAAC"}
1
+ {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CAyFA,CAAC"}
@@ -1,21 +1,22 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as g } from "react-i18next";
3
- import { Link as u } from "react-router-dom";
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { useTranslation as M } from "react-i18next";
3
+ import { Link as T } from "react-router-dom";
4
4
  import { Delete03Icon as w, UserAdd02Icon as I, HelpCircleIcon as b } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as t } from "@hugeicons/react";
6
- import { Stack as s, Menu as e, Tooltip as x, ActionIcon as T } from "@mantine/core";
7
- import { IconUserCircle as z } from "@tabler/icons-react";
8
- import { useAppContainerDataStore as A } from "../../hooks/useAppContainerDataStore.js";
9
- import { AppSidebarButton as p } from "../AppSidebarButton.js";
10
- import { HelpMenu as D } from "../menus/HelpMenu/HelpMenu.js";
11
- import { MenuUserDropdown as M } from "../menus/UserMenu/MenuUserDropdown.js";
12
- const q = ({
13
- trashMenu: h,
5
+ import { HugeiconsIcon as s } from "@hugeicons/react";
6
+ import { Stack as p, Menu as e, Tooltip as x, ActionIcon as z } from "@mantine/core";
7
+ import { IconUserCircle as A } from "@tabler/icons-react";
8
+ import { useTrashModalStore as C, openTrashModal as D, closeTrashModal as S } from "../../../../store/trashModal.js";
9
+ import { useAppContainerDataStore as U } from "../../hooks/useAppContainerDataStore.js";
10
+ import { AppSidebarButton as l } from "../AppSidebarButton.js";
11
+ import { HelpMenu as j } from "../menus/HelpMenu/HelpMenu.js";
12
+ import { MenuUserDropdown as v } from "../menus/UserMenu/MenuUserDropdown.js";
13
+ const N = ({
14
+ trashMenu: m,
14
15
  onInviteClick: c
15
16
  }) => {
16
- const { t: r } = g("appContainer"), { user: l, isAnonym: n, userMenuItems: a, publicMode: f } = A(), d = !n && !f && l.role !== "mG", m = !n && c;
17
- return /* @__PURE__ */ i(
18
- s,
17
+ const { t: i } = M("appContainer"), { user: d, isAnonym: n, userMenuItems: f, publicMode: g } = U(), u = C((t) => t.opened), a = !n && !g && d.role !== "mG", h = !n && c;
18
+ return /* @__PURE__ */ r(
19
+ p,
19
20
  {
20
21
  style: { borderTop: "1px solid var(--app-shell-border)" },
21
22
  flex: 1,
@@ -23,51 +24,63 @@ const q = ({
23
24
  gap: 16,
24
25
  align: "center",
25
26
  children: [
26
- /* @__PURE__ */ i(
27
- s,
27
+ /* @__PURE__ */ r(
28
+ p,
28
29
  {
29
- justify: !d && !m ? "end" : "space-between",
30
+ justify: !a && !h ? "end" : "space-between",
30
31
  gap: 8,
31
32
  flex: 1,
32
33
  children: [
33
- d && /* @__PURE__ */ i(e, { position: "right", offset: 6, width: 360, children: [
34
- /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
35
- p,
34
+ a && /* @__PURE__ */ r(
35
+ e,
36
+ {
37
+ position: "right",
38
+ offset: 6,
39
+ width: 360,
40
+ opened: u,
41
+ onChange: (t) => {
42
+ t ? D() : S();
43
+ },
44
+ children: [
45
+ /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
46
+ l,
47
+ {
48
+ title: i("trash"),
49
+ icon: /* @__PURE__ */ o(s, { icon: w, size: 20 })
50
+ }
51
+ ) }),
52
+ /* @__PURE__ */ o(e.Dropdown, { children: m })
53
+ ]
54
+ }
55
+ ),
56
+ /* @__PURE__ */ r(p, { gap: 8, children: [
57
+ h && /* @__PURE__ */ o(
58
+ l,
36
59
  {
37
- title: r("trash"),
38
- icon: /* @__PURE__ */ o(t, { icon: w, size: 20 })
39
- }
40
- ) }),
41
- /* @__PURE__ */ o(e.Dropdown, { children: h })
42
- ] }),
43
- /* @__PURE__ */ i(s, { gap: 8, children: [
44
- m && /* @__PURE__ */ o(
45
- p,
46
- {
47
- title: r("invite"),
48
- icon: /* @__PURE__ */ o(t, { icon: I, size: 20 }),
60
+ title: i("invite"),
61
+ icon: /* @__PURE__ */ o(s, { icon: I, size: 20 }),
49
62
  onClick: c
50
63
  }
51
64
  ),
52
- /* @__PURE__ */ i(e, { position: "right-end", offset: 6, width: 260, children: [
65
+ /* @__PURE__ */ r(e, { position: "right-end", offset: 6, width: 260, children: [
53
66
  /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
54
- p,
67
+ l,
55
68
  {
56
- title: r("help"),
57
- icon: /* @__PURE__ */ o(t, { icon: b, size: 20 })
69
+ title: i("help"),
70
+ icon: /* @__PURE__ */ o(s, { icon: b, size: 20 })
58
71
  }
59
72
  ) }),
60
- /* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(D, {}) })
73
+ /* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(j, {}) })
61
74
  ] })
62
75
  ] })
63
76
  ]
64
77
  }
65
78
  ),
66
- n ? /* @__PURE__ */ o(u, { to: "/login", children: /* @__PURE__ */ o(x, { label: "Log in", position: "right", children: /* @__PURE__ */ o(T, { size: "lg", variant: "light", children: /* @__PURE__ */ o(z, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
67
- M,
79
+ n ? /* @__PURE__ */ o(T, { to: "/login", children: /* @__PURE__ */ o(x, { label: "Log in", position: "right", children: /* @__PURE__ */ o(z, { size: "lg", variant: "light", children: /* @__PURE__ */ o(A, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
80
+ v,
68
81
  {
69
- user: l,
70
- menuItems: a,
82
+ user: d,
83
+ menuItems: f,
71
84
  position: "right-end"
72
85
  }
73
86
  )
@@ -76,5 +89,5 @@ const q = ({
76
89
  );
77
90
  };
78
91
  export {
79
- q as UserSection
92
+ N as UserSection
80
93
  };
@@ -1,3 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const Main: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
2
+ type MainProps = PropsWithChildren<{
3
+ withBg?: boolean;
4
+ }>;
5
+ export declare const Main: ({ children, withBg }: MainProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
3
7
  //# sourceMappingURL=Main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,IAAI,GAAI,cAAc,iBAAiB,4CAYnD,CAAC"}
1
+ {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,KAAK,SAAS,GAAG,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,IAAI,GAAI,sBAA8B,SAAS,4CAiB3D,CAAC"}
@@ -1,14 +1,17 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { appContainerStore as e } from "../hooks/useAppContainerStore.js";
3
- import n from "../AppContainer.module.css.js";
4
- const p = ({ children: o }) => {
5
- const r = e.useStore((a) => a.showToolbar);
6
- return /* @__PURE__ */ t(
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
3
+ import s from "../AppContainer.module.css.js";
4
+ const p = ({ children: o, withBg: r = !1 }) => {
5
+ const a = n.useStore((t) => t.showToolbar);
6
+ return /* @__PURE__ */ e(
7
7
  "main",
8
8
  {
9
- className: n.main,
10
- "data-tool-sidebar-opened": r,
9
+ className: s.main,
10
+ "data-tool-sidebar-opened": a,
11
11
  "data-app-container": !0,
12
+ style: {
13
+ backgroundColor: r ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
14
+ },
12
15
  children: o
13
16
  }
14
17
  );
@@ -1 +1 @@
1
- {"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,QAAQ,+CA2GpB,CAAC"}
1
+ {"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,QAAQ,+CAuHpB,CAAC"}
@@ -1,25 +1,40 @@
1
1
  import { jsxs as o, jsx as e, Fragment as d } from "react/jsx-runtime";
2
2
  import { useTranslation as g } from "react-i18next";
3
- import { DiscountTag02Icon as f, CustomerSupportIcon as u, Layers01Icon as S, BookOpen01Icon as I, LicenseIcon as b } from "@hugeicons/core-free-icons";
3
+ import { DiscountTag02Icon as f, CustomerSupportIcon as u, Layers01Icon as S, BookOpen01Icon as b, LicenseIcon as I } from "@hugeicons/core-free-icons";
4
4
  import { HugeiconsIcon as n } from "@hugeicons/react";
5
- import { Stack as v, Button as s, Menu as i, Text as k } from "@mantine/core";
6
- import w from "../../../../../assets/svg/discord-icon.svg.js";
5
+ import { Stack as w, Button as r, Menu as i, Text as v } from "@mantine/core";
6
+ import k from "../../../../../assets/svg/discord-icon.svg.js";
7
7
  import y from "../../../../../assets/svg/telegram-icon.svg.js";
8
- import { useAppContainerDataStore as D } from "../../../hooks/useAppContainerDataStore.js";
9
- import { WhatsNew as z } from "./WhatsNew.js";
10
- const P = () => {
8
+ import D from "../../../../../assets/svg/whatsapp-icon.svg.js";
9
+ import { useAppContainerDataStore as z } from "../../../hooks/useAppContainerDataStore.js";
10
+ import { WhatsNew as j } from "./WhatsNew.js";
11
+ const B = () => {
11
12
  const { t } = g("helpMenu"), {
12
- showMessenger: r,
13
+ showMessenger: s,
13
14
  showNewMessage: a,
14
15
  version: m,
15
16
  updatedAt: l,
16
17
  privacyPolicyLink: p,
17
18
  userAgreementLink: h,
18
19
  whatsNewItems: c
19
- } = D();
20
- return /* @__PURE__ */ o(v, { gap: 6, p: 4, children: [
20
+ } = z();
21
+ return /* @__PURE__ */ o(w, { gap: 6, p: 4, children: [
21
22
  /* @__PURE__ */ e(
22
- s,
23
+ r,
24
+ {
25
+ component: "a",
26
+ href: "https://wa.me/37378291264",
27
+ target: "_blank",
28
+ bg: "#00C000",
29
+ leftSection: /* @__PURE__ */ e(D, { width: 16, height: 16 }),
30
+ c: "white",
31
+ size: "sm",
32
+ justify: "flex-start",
33
+ children: t("joinWhatsApp")
34
+ }
35
+ ),
36
+ /* @__PURE__ */ e(
37
+ r,
23
38
  {
24
39
  component: "a",
25
40
  href: "https://t.me/layers_app",
@@ -33,13 +48,13 @@ const P = () => {
33
48
  }
34
49
  ),
35
50
  /* @__PURE__ */ e(
36
- s,
51
+ r,
37
52
  {
38
53
  component: "a",
39
54
  href: "https://discord.gg/mEd2PbchRD",
40
55
  target: "_blank",
41
56
  bg: "indigo.5",
42
- leftSection: /* @__PURE__ */ e(w, { width: 16, height: 16 }),
57
+ leftSection: /* @__PURE__ */ e(k, { width: 16, height: 16 }),
43
58
  c: "white",
44
59
  size: "sm",
45
60
  justify: "flex-start",
@@ -51,7 +66,7 @@ const P = () => {
51
66
  i.Item,
52
67
  {
53
68
  onClick: () => {
54
- r(), a(t("contactSalesMessage"));
69
+ s(), a(t("contactSalesMessage"));
55
70
  },
56
71
  leftSection: /* @__PURE__ */ e(n, { icon: f, size: 16 }),
57
72
  children: t("contactSales")
@@ -60,7 +75,7 @@ const P = () => {
60
75
  /* @__PURE__ */ e(
61
76
  i.Item,
62
77
  {
63
- onClick: r,
78
+ onClick: s,
64
79
  leftSection: /* @__PURE__ */ e(n, { icon: u, size: 16 }),
65
80
  children: t("getSupport")
66
81
  }
@@ -83,7 +98,7 @@ const P = () => {
83
98
  component: "a",
84
99
  target: "_blank",
85
100
  href: h,
86
- leftSection: /* @__PURE__ */ e(n, { icon: I, size: 16 }),
101
+ leftSection: /* @__PURE__ */ e(n, { icon: b, size: 16 }),
87
102
  children: t("userAgreement")
88
103
  }
89
104
  ),
@@ -94,16 +109,16 @@ const P = () => {
94
109
  component: "a",
95
110
  target: "_blank",
96
111
  href: p,
97
- leftSection: /* @__PURE__ */ e(n, { icon: b, size: 16 }),
112
+ leftSection: /* @__PURE__ */ e(n, { icon: I, size: 16 }),
98
113
  children: t("termsAndPrivacy")
99
114
  }
100
115
  ),
101
116
  /* @__PURE__ */ e(i.Divider, {}),
102
117
  !!c?.length && /* @__PURE__ */ o(d, { children: [
103
- /* @__PURE__ */ e(z, { items: c }),
118
+ /* @__PURE__ */ e(j, { items: c }),
104
119
  /* @__PURE__ */ e(i.Divider, {})
105
120
  ] }),
106
- /* @__PURE__ */ o(k, { size: "xs", c: "dimmed", children: [
121
+ /* @__PURE__ */ o(v, { size: "xs", c: "dimmed", children: [
107
122
  t("updated"),
108
123
  " ",
109
124
  l,
@@ -118,5 +133,5 @@ const P = () => {
118
133
  ] });
119
134
  };
120
135
  export {
121
- P as HelpMenu
136
+ B as HelpMenu
122
137
  };
@@ -1,4 +1,4 @@
1
- const t = "_dot_1x557_1", o = "_line_1x557_9", e = {
1
+ const t = "_dot_h8jhb_1", o = "_line_h8jhb_9", e = {
2
2
  dot: t,
3
3
  line: o
4
4
  };