@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
@@ -2,20 +2,20 @@ import { jsx as i } from "react/jsx-runtime";
2
2
  import { Link as c } from "react-router-dom";
3
3
  import { PinIcon as m } from "@hugeicons/core-free-icons";
4
4
  import { HugeiconsIcon as p } from "@hugeicons/react";
5
- import { useAppContainerDataStore as a } from "../../hooks/useAppContainerDataStore.js";
6
- import { Stack as s, Menu as l, ActionIcon as d } from "@mantine/core";
7
- import { IconPinFilled as f } from "@tabler/icons-react";
5
+ import { Stack as a, Menu as s, ActionIcon as l } from "@mantine/core";
6
+ import { IconPinFilled as d } from "@tabler/icons-react";
7
+ import { useAppContainerDataStore as f } from "../../hooks/useAppContainerDataStore.js";
8
8
  import { appContainerStore as n } from "../../hooks/useAppContainerStore.js";
9
9
  const y = () => {
10
- const e = n.useStore((o) => o.hiddenTools), t = a((o) => o.tools);
11
- return /* @__PURE__ */ i(s, { gap: 2, children: t?.map((o) => /* @__PURE__ */ i(
12
- l.Item,
10
+ const e = n.useStore((o) => o.hiddenTools), t = f((o) => o.tools);
11
+ return /* @__PURE__ */ i(a, { gap: 2, children: t?.map((o) => /* @__PURE__ */ i(
12
+ s.Item,
13
13
  {
14
14
  component: c,
15
15
  to: o.path,
16
16
  leftSection: o.icon({ size: 16 }),
17
17
  rightSection: /* @__PURE__ */ i(
18
- d,
18
+ l,
19
19
  {
20
20
  size: "sm",
21
21
  color: "gray",
@@ -24,7 +24,7 @@ const y = () => {
24
24
  r.preventDefault(), r.stopPropagation(), n.api.toggleToolVisibility(o.id);
25
25
  },
26
26
  children: e.includes(o.id) ? /* @__PURE__ */ i(p, { icon: m, size: 16 }) : /* @__PURE__ */ i(
27
- f,
27
+ d,
28
28
  {
29
29
  size: 16,
30
30
  color: "var(--mantine-primary-color-filled)"
@@ -4,6 +4,7 @@ import { appMode } from '../../../../../helpers/isAppMode';
4
4
  export type MenuUser = {
5
5
  id: string;
6
6
  avatar: string | null;
7
+ avatarUrl?: string | null;
7
8
  email?: string | null;
8
9
  name: string | null;
9
10
  mode?: appMode;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuUserDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAGL,gBAAgB,EAIjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,0CAK9B,qBAAqB,4CAyCvB,CAAC"}
1
+ {"version":3,"file":"MenuUserDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/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erStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA+GjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iCA9CI,OAAO;iCAIP,MAAM;kCAIL,MAAM;mCAKL,MAAM;4BASb,kBAAkB;0BAIpB,MAAM;;CAoByB,CAAC"}
1
+ {"version":3,"file":"useAppContainerStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAyHjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iCA9CI,OAAO;iCAIP,MAAM;kCAIL,MAAM;mCAKL,MAAM;4BASb,kBAAkB;0BAIpB,MAAM;;CAoByB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { create as l } from "zustand";
2
2
  import { persist as n, createJSONStorage as g } from "zustand/middleware";
3
- import { DEFAULT_COLOR_SCHEME as r, isValidColorScheme as b } from "../../../constants.js";
4
- const i = 338, c = () => {
3
+ import { DEFAULT_COLOR_SCHEME as i, isValidColorScheme as b } from "../../../constants.js";
4
+ const r = 338, d = () => typeof window > "u" ? !0 : !window.matchMedia("(max-width: 992px)").matches, c = () => {
5
5
  const o = l(
6
6
  n(
7
7
  () => ({
8
8
  layout: "default",
9
- showToolbar: !0,
10
- theme: r,
9
+ showToolbar: d(),
10
+ theme: i,
11
11
  hiddenTools: [],
12
12
  toolbarWidth: 280,
13
13
  isTourPassed: !1,
@@ -19,10 +19,13 @@ const i = 338, c = () => {
19
19
  version: 3,
20
20
  storage: g(() => localStorage),
21
21
  migrate: (e) => {
22
- const s = typeof e?.theme == "string" && b(e.theme) ? e.theme : r;
22
+ const s = typeof e?.theme == "string" && b(e.theme) ? e.theme : i;
23
23
  return {
24
24
  ...e,
25
- rightbarWidth: Math.max(e?.rightbarWidth || 0, i),
25
+ rightbarWidth: Math.max(
26
+ e?.rightbarWidth || 0,
27
+ r
28
+ ),
26
29
  theme: s
27
30
  };
28
31
  }
@@ -51,7 +54,7 @@ const i = 338, c = () => {
51
54
  o.setState({ toolbarWidth: t });
52
55
  },
53
56
  setRightbarWidth: (t) => {
54
- const a = Math.max(t, i);
57
+ const a = Math.max(t, r);
55
58
  o.setState({ rightbarWidth: a });
56
59
  },
57
60
  toggleToolVisibility: (t) => {
@@ -66,7 +69,7 @@ const i = 338, c = () => {
66
69
  setTheme: (t) => {
67
70
  o.setState({ theme: t });
68
71
  }
69
- }), M = c();
72
+ }), I = c();
70
73
  export {
71
- M as appContainerStore
74
+ I as appContainerStore
72
75
  };
@@ -15,6 +15,7 @@ export type ToolDef = {
15
15
  };
16
16
  export type AppContainerProps = {
17
17
  showAppsSidebar?: boolean;
18
+ headerBorderless?: boolean;
18
19
  content?: ReactNode;
19
20
  toolbar?: ReactNode;
20
21
  rightbar?: ReactNode;
@@ -25,6 +26,7 @@ export type AppContainerProps = {
25
26
  onTitleChange?: (title?: string) => void;
26
27
  trashMenu?: ReactNode;
27
28
  onInviteClick?: () => void;
29
+ withBg?: boolean;
28
30
  };
29
31
  export type AppContainerDataStore = {
30
32
  tools: ToolDef[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,i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I,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IFileResponse } from '../../types/files.ts';
1
+ import { IFileResponse } from '../../types/files';
2
2
  interface AttachmentsGalleryModalV2Props {
3
3
  opened: boolean;
4
4
  onOpenChange?: (opened: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentsGalleryModal.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryModal.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAarD,UAAU,8BAA8B;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8GD,eAAO,MAAM,uBAAuB,6FAM/B,8BAA8B,6CAyBlC,CAAC"}
1
+ {"version":3,"file":"AttachmentsGalleryModal.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryModal.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAalD,UAAU,8BAA8B;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8GD,eAAO,MAAM,uBAAuB,6FAM/B,8BAA8B,6CAyBlC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { TransformWrapper } from 'react-zoom-pan-pinch';
2
- import { IFileResponse } from '../../../types/files.ts';
2
+ import { IFileResponse } from '../../../types/files';
3
3
  interface IProps {
4
4
  onTransformed?: React.ComponentProps<typeof TransformWrapper>['onTransformed'];
5
5
  isActive: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAK5E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,wIAoExB,CAAC"}
1
+ {"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAUrD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,wIAoExB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, Fragment as a } from "react/jsx-runtime";
2
2
  import { memo as u, forwardRef as g } from "react";
3
3
  import { TransformWrapper as h, TransformComponent as C } from "react-zoom-pan-pinch";
4
- import { ShakaVideoPlayer as N } from "./ShakePlayer/ShakaPlayer.js";
5
- import { Box as O } from "@mantine/core";
6
- import { BaseLoader as P } from "../../Loaders/BaseLoader.js";
4
+ import { Box as N } from "@mantine/core";
5
+ import { BaseLoader as O } from "../../Loaders/BaseLoader.js";
6
+ import { ShakaVideoPlayer as P } from "./ShakePlayer/ShakaPlayer.js";
7
7
  import { ZOOM_CONFIG as o, TRANSFORM_COMPONENT_STYLES as t } from "../constants.js";
8
8
  import { useGetPreviewUrl as b } from "../hooks/useGetPreviewUrl.js";
9
9
  import { usePanning as w } from "../hooks/usePanning.js";
@@ -41,8 +41,8 @@ const k = u(
41
41
  wrapperStyle: t,
42
42
  contentStyle: t,
43
43
  wrapperProps: S,
44
- children: i ? /* @__PURE__ */ r(P, {}) : /* @__PURE__ */ r(a, { children: l ? /* @__PURE__ */ r(O, { className: m.videoContainer, children: /* @__PURE__ */ r(
45
- N,
44
+ children: i ? /* @__PURE__ */ r(O, {}) : /* @__PURE__ */ r(a, { children: l ? /* @__PURE__ */ r(N, { className: m.videoContainer, children: /* @__PURE__ */ r(
45
+ P,
46
46
  {
47
47
  isActive: s,
48
48
  autoPlay: !1,
@@ -1,4 +1,4 @@
1
- import { IFileResponse } from '../../../types/files.ts';
1
+ import { IFileResponse } from '../../../types/files';
2
2
  export declare const ModalFooter: ({ attachments, }: {
3
3
  attachments?: IFileResponse[];
4
4
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,eAAO,MAAM,WAAW,GAAI,kBAEzB;IACD,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B,mDAeA,CAAC"}
1
+ {"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,WAAW,GAAI,kBAEzB;IACD,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B,mDAeA,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { useMenu as l } from "../../../hooks/useMenu.js";
3
- import { Flex as i, Text as s } from "@mantine/core";
2
+ import { Flex as l, Text as i } from "@mantine/core";
3
+ import { useMenu as s } from "../../../hooks/useMenu.js";
4
4
  import { useAttachmentsGalleryContext as a } from "../AttachmentsGalleryContext.js";
5
5
  const f = ({
6
6
  attachments: t
7
7
  }) => {
8
- const { selectedIndex: r } = a(), o = t?.[r], { isMobile: n } = l();
9
- return n ? /* @__PURE__ */ e(i, { justify: "center", style: { flex: "none" }, children: /* @__PURE__ */ e(s, { py: 8, size: "xs", c: "var(--app-gallary-text)", children: o?.originalFileName }) }) : null;
8
+ const { selectedIndex: r } = a(), o = t?.[r], { isMobile: n } = s();
9
+ return n ? /* @__PURE__ */ e(l, { justify: "center", style: { flex: "none" }, children: /* @__PURE__ */ e(i, { py: 8, size: "xs", c: "var(--app-gallary-text)", children: o?.originalFileName }) }) : null;
10
10
  };
11
11
  export {
12
12
  f as ModalFooter
@@ -1,4 +1,4 @@
1
- import { IFileResponse } from '../../../types/files.ts';
1
+ import { IFileResponse } from '../../../types/files';
2
2
  interface ModalHeaderProps {
3
3
  onClose: () => void;
4
4
  attachments?: IFileResponse[];
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,6CAgI5C,CAAC"}
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,6CAgI5C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { SyntheticEvent } from 'react';
2
- import { IFileResponse } from '../../../types/files.ts';
2
+ import { IFileResponse } from '../../../types/files';
3
3
  export declare const useDownloadFile: (targetAttach?: IFileResponse) => {
4
4
  isVideo: boolean;
5
5
  isMobile: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkC,MAAM,OAAO,CAAC;AAMvE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,eAAe,GAAI,eAAe,aAAa;;;oBAI9C,cAAc;;CA8C3B,CAAC"}
1
+ {"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkC,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,eAAe,GAAI,eAAe,aAAa;;;oBAI9C,cAAc;;CA8C3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IFileResponse } from '../../../types/files.ts';
1
+ import { IFileResponse } from '../../../types/files';
2
2
  export declare const useGetPreviewUrl: (attachment: IFileResponse) => {
3
3
  fileUrl: string | null;
4
4
  isFetching: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useGetPreviewUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,gBAAgB,GAAI,YAAY,aAAa;;;;;;CAwCzD,CAAC"}
1
+ {"version":3,"file":"useGetPreviewUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,gBAAgB,GAAI,YAAY,aAAa;;;;;;CAwCzD,CAAC"}
@@ -1,14 +1,14 @@
1
- const o = "_container_ohoof_1", t = "_root_ohoof_7", n = "_carouselRoot_ohoof_14", e = "_carouselViewport_ohoof_18", a = "_carouselSlide_ohoof_22", _ = "_navButton_ohoof_30", r = "_navButtonPrev_ohoof_44", c = "_navButtonNext_ohoof_48", s = "_modalContent_ohoof_52", i = "_modalBody_ohoof_57", l = "_videoContainer_ohoof_63", u = "_imageContainer_ohoof_68", d = {
1
+ const o = "_container_1jpi5_1", t = "_root_1jpi5_7", n = "_carouselRoot_1jpi5_14", e = "_carouselViewport_1jpi5_18", a = "_carouselSlide_1jpi5_22", _ = "_navButton_1jpi5_29", i = "_navButtonPrev_1jpi5_42", r = "_navButtonNext_1jpi5_46", c = "_modalContent_1jpi5_50", s = "_modalBody_1jpi5_55", l = "_videoContainer_1jpi5_61", u = "_imageContainer_1jpi5_66", d = {
2
2
  container: o,
3
3
  root: t,
4
4
  carouselRoot: n,
5
5
  carouselViewport: e,
6
6
  carouselSlide: a,
7
7
  navButton: _,
8
- navButtonPrev: r,
9
- navButtonNext: c,
10
- modalContent: s,
11
- modalBody: i,
8
+ navButtonPrev: i,
9
+ navButtonNext: r,
10
+ modalContent: c,
11
+ modalBody: s,
12
12
  videoContainer: l,
13
13
  imageContainer: u
14
14
  };
@@ -19,11 +19,11 @@ export {
19
19
  o as container,
20
20
  d as default,
21
21
  u as imageContainer,
22
- i as modalBody,
23
- s as modalContent,
22
+ s as modalBody,
23
+ c as modalContent,
24
24
  _ as navButton,
25
- c as navButtonNext,
26
- r as navButtonPrev,
25
+ r as navButtonNext,
26
+ i as navButtonPrev,
27
27
  t as root,
28
28
  l as videoContainer
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsPreview/AttachmentsPreview.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,8BAA8B;IACtC,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAC;IAC7C,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,8BAA8B,mDAyLhC,CAAC"}
1
+ {"version":3,"file":"AttachmentsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsPreview/AttachmentsPreview.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,8BAA8B;IACtC,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAC;IAC7C,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,8BAA8B,mDAgNhC,CAAC"}
@@ -1,19 +1,19 @@
1
- import { jsxs as n, Fragment as b, jsx as r } from "react/jsx-runtime";
2
- import { Download01Icon as C } from "@hugeicons/core-free-icons";
3
- import { HugeiconsIcon as k } from "@hugeicons/react";
4
- import { Stack as g, Grid as x, Box as p, Image as F, LoadingOverlay as v, ActionIcon as h, CloseIcon as f, Flex as z, Text as I } from "@mantine/core";
1
+ import { jsxs as n, Fragment as C, jsx as r } from "react/jsx-runtime";
2
+ import { Download01Icon as g } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as x } from "@hugeicons/react";
4
+ import { Stack as v, Grid as z, Box as h, Image as F, LoadingOverlay as f, ActionIcon as c, CloseIcon as I, Flex as y, Text as N } from "@mantine/core";
5
5
  import { useDisclosure as M } from "@mantine/hooks";
6
6
  import { getFileIcons as P } from "../../helpers/getFileIcons.js";
7
7
  import { getFileType as A } from "../../helpers/getFileType.js";
8
8
  import { AttachmentsGalleryModal as B } from "../AttachmentsGalleryModal/AttachmentsGalleryModal.js";
9
9
  import t from "./AttachmentsPreview.module.css.js";
10
10
  const U = ({
11
- files: a,
11
+ files: o,
12
12
  onRemove: i,
13
- mode: o,
13
+ mode: a,
14
14
  parentIsExisting: u
15
15
  }) => {
16
- const [y, { open: w, close: N }] = M(!1), s = a.filter((e) => e.isImage), c = a.filter((e) => !e.isImage), D = s.map((e) => ({
16
+ const [T, { open: w, close: b }] = M(!1), s = o.filter((e) => e.isImage), d = o.filter((e) => !e.isImage), D = s.map((e) => ({
17
17
  id: e.id,
18
18
  Url: e.url,
19
19
  contentType: "image",
@@ -30,15 +30,15 @@ const U = ({
30
30
  version: 1,
31
31
  deleted: !1,
32
32
  deletedAt: /* @__PURE__ */ new Date()
33
- })), d = s.every((e) => !e.isTemp), T = () => {
34
- d && w();
33
+ })), m = s.every((e) => !e.isTemp), k = () => {
34
+ m && w();
35
35
  };
36
- return a.length === 0 ? null : /* @__PURE__ */ n(b, { children: [
37
- /* @__PURE__ */ n(g, { gap: "10px", w: "100%", tabIndex: 0, children: [
38
- s.length > 0 && /* @__PURE__ */ r(x, { gutter: "xs", children: s.map((e) => {
39
- const l = a.indexOf(e);
40
- return /* @__PURE__ */ r(x.Col, { span: "content", children: /* @__PURE__ */ n(
41
- p,
36
+ return o.length === 0 ? null : /* @__PURE__ */ n(C, { children: [
37
+ /* @__PURE__ */ n(v, { gap: "10px", w: "100%", tabIndex: 0, children: [
38
+ s.length > 0 && /* @__PURE__ */ r(z, { gutter: "xs", children: s.map((e) => {
39
+ const l = o.indexOf(e);
40
+ return /* @__PURE__ */ r(z.Col, { span: "content", children: /* @__PURE__ */ n(
41
+ h,
42
42
  {
43
43
  w: 56,
44
44
  h: 56,
@@ -54,113 +54,139 @@ const U = ({
54
54
  fit: "cover",
55
55
  radius: "sm",
56
56
  style: {
57
- cursor: d ? "zoom-in" : "default"
57
+ cursor: m ? "zoom-in" : "default"
58
58
  },
59
- onClick: () => T()
59
+ onClick: () => k()
60
60
  }
61
61
  ),
62
62
  /* @__PURE__ */ r(
63
- v,
63
+ f,
64
64
  {
65
- visible: e.isTemp && o === "view" && u,
65
+ visible: e.isTemp && a === "view" && u,
66
66
  loaderProps: { size: 20 }
67
67
  }
68
68
  ),
69
- o === "draft" && i && /* @__PURE__ */ r(
70
- h,
69
+ a === "view" && !e.isTemp && /* @__PURE__ */ r(
70
+ c,
71
+ {
72
+ component: "a",
73
+ size: "20px",
74
+ href: e.url,
75
+ download: e.name,
76
+ rel: "noopener noreferrer",
77
+ variant: "subtle",
78
+ color: "white",
79
+ top: 2,
80
+ right: 2,
81
+ bg: "var(--mantine-color-dark-filled, #2E2E2E)",
82
+ className: t.downloadButton,
83
+ children: /* @__PURE__ */ r(x, { size: 16, icon: g })
84
+ }
85
+ ),
86
+ a === "draft" && i && /* @__PURE__ */ r(
87
+ c,
71
88
  {
72
89
  size: "20px",
73
90
  radius: "xl",
74
91
  variant: "filled",
75
- onMouseDown: (m) => m.preventDefault(),
92
+ onMouseDown: (p) => p.preventDefault(),
76
93
  pos: "absolute",
77
94
  color: "dark",
78
95
  onClick: () => i(l),
79
96
  className: t.deleteButton,
80
- children: /* @__PURE__ */ r(f, { size: "12px" })
97
+ children: /* @__PURE__ */ r(I, { size: "12px" })
81
98
  }
82
99
  )
83
100
  ]
84
101
  }
85
102
  ) }, e.id);
86
103
  }) }),
87
- c.length > 0 && /* @__PURE__ */ r(
88
- p,
104
+ d.length > 0 && /* @__PURE__ */ r(
105
+ h,
89
106
  {
90
107
  w: "100%",
91
108
  className: t.filePreviewList,
92
- "data-many": c.length >= 4,
93
- children: c.map((e) => {
94
- const l = a.indexOf(e);
95
- return /* @__PURE__ */ n(p, { className: t.filePreviewWrapper, children: [
109
+ "data-many": d.length >= 4,
110
+ children: d.map((e) => {
111
+ const l = o.indexOf(e);
112
+ return /* @__PURE__ */ n(h, { className: t.filePreviewWrapper, children: [
96
113
  /* @__PURE__ */ r(
97
- v,
114
+ f,
98
115
  {
99
- visible: e.isTemp && o === "view" && u,
116
+ visible: e.isTemp && a === "view" && u,
100
117
  loaderProps: { size: 20 }
101
118
  }
102
119
  ),
103
- /* @__PURE__ */ n(z, { align: "center", justify: "space-between", wrap: "nowrap", children: [
104
- /* @__PURE__ */ n(
105
- z,
106
- {
107
- align: "center",
108
- gap: "xs",
109
- wrap: "nowrap",
110
- flex: 1,
111
- miw: 0,
112
- children: [
113
- P(A(e.type), !1, 36),
114
- /* @__PURE__ */ n(g, { gap: 0, flex: 1, miw: 0, children: [
115
- /* @__PURE__ */ r(
116
- I,
117
- {
118
- size: "sm",
119
- truncate: !0,
120
- title: e.name,
121
- className: t.fileDownloadName,
122
- component: "a",
123
- href: e.url,
124
- download: e.name,
125
- rel: "noopener noreferrer",
126
- w: "fit-content",
127
- children: e.name
128
- }
129
- ),
130
- /* @__PURE__ */ n(I, { size: "xs", c: "dimmed", children: [
131
- Math.round(e.size / 1024),
132
- " KB"
133
- ] })
134
- ] })
135
- ]
136
- }
137
- ),
138
- o === "view" && !e.isTemp && /* @__PURE__ */ r(
139
- h,
140
- {
141
- component: "a",
142
- href: e.url,
143
- download: e.name,
144
- rel: "noopener noreferrer",
145
- variant: "subtle",
146
- color: "gray",
147
- size: "sm",
148
- className: t.downloadButton,
149
- children: /* @__PURE__ */ r(k, { size: 16, icon: C })
150
- }
151
- )
152
- ] }),
153
- o === "draft" && i && /* @__PURE__ */ r(
154
- h,
120
+ /* @__PURE__ */ n(
121
+ y,
122
+ {
123
+ align: "center",
124
+ justify: "space-between",
125
+ wrap: "nowrap",
126
+ gap: 2,
127
+ children: [
128
+ /* @__PURE__ */ n(
129
+ y,
130
+ {
131
+ align: "center",
132
+ gap: "xs",
133
+ wrap: "nowrap",
134
+ flex: 1,
135
+ miw: 0,
136
+ children: [
137
+ P(A(e.type), !1, 36),
138
+ /* @__PURE__ */ n(v, { gap: 0, flex: 1, miw: 0, children: [
139
+ /* @__PURE__ */ r(
140
+ N,
141
+ {
142
+ size: "sm",
143
+ truncate: !0,
144
+ title: e.name,
145
+ className: t.fileDownloadName,
146
+ component: "a",
147
+ href: e.url,
148
+ download: e.name,
149
+ rel: "noopener noreferrer",
150
+ w: "fit-content",
151
+ children: e.name
152
+ }
153
+ ),
154
+ /* @__PURE__ */ n(N, { size: "xs", c: "dimmed", children: [
155
+ Math.round(e.size / 1024),
156
+ " KB"
157
+ ] })
158
+ ] })
159
+ ]
160
+ }
161
+ ),
162
+ a === "view" && !e.isTemp && /* @__PURE__ */ r(
163
+ c,
164
+ {
165
+ component: "a",
166
+ href: e.url,
167
+ download: e.name,
168
+ rel: "noopener noreferrer",
169
+ variant: "subtle",
170
+ color: "gray",
171
+ size: "sm",
172
+ className: t.downloadButton,
173
+ children: /* @__PURE__ */ r(x, { size: 16, icon: g })
174
+ }
175
+ )
176
+ ]
177
+ }
178
+ ),
179
+ a === "draft" && i && /* @__PURE__ */ r(
180
+ c,
155
181
  {
156
182
  size: "xs",
157
183
  radius: "xl",
158
- onMouseDown: (m) => m.preventDefault(),
184
+ onMouseDown: (p) => p.preventDefault(),
159
185
  variant: "filled",
160
186
  color: "dark",
161
187
  onClick: () => i(l),
162
188
  className: t.deleteButton,
163
- children: /* @__PURE__ */ r(f, { size: "12px" })
189
+ children: /* @__PURE__ */ r(I, { size: "12px" })
164
190
  }
165
191
  )
166
192
  ] }, e.id);
@@ -168,11 +194,11 @@ const U = ({
168
194
  }
169
195
  )
170
196
  ] }),
171
- d && /* @__PURE__ */ r(
197
+ m && /* @__PURE__ */ r(
172
198
  B,
173
199
  {
174
- opened: y,
175
- onOpenChange: (e) => e ? w() : N(),
200
+ opened: T,
201
+ onOpenChange: (e) => e ? w() : b(),
176
202
  attachments: D
177
203
  }
178
204
  )
@@ -1,17 +1,17 @@
1
- const e = "_imagePreviewWrapper_14r3g_1", r = "_deleteButton_14r3g_8", t = "_downloadButton_14r3g_19", o = "_filePreviewList_14r3g_31", i = "_fileDownloadName_14r3g_45", a = "_filePreviewWrapper_14r3g_50", l = {
1
+ const e = "_imagePreviewWrapper_qqm20_1", t = "_deleteButton_qqm20_6", o = "_downloadButton_qqm20_13", i = "_filePreviewList_qqm20_32", r = "_fileDownloadName_qqm20_45", a = "_filePreviewWrapper_qqm20_51", l = {
2
2
  imagePreviewWrapper: e,
3
- deleteButton: r,
4
- downloadButton: t,
5
- filePreviewList: o,
6
- fileDownloadName: i,
3
+ deleteButton: t,
4
+ downloadButton: o,
5
+ filePreviewList: i,
6
+ fileDownloadName: r,
7
7
  filePreviewWrapper: a
8
8
  };
9
9
  export {
10
10
  l as default,
11
- r as deleteButton,
12
- t as downloadButton,
13
- i as fileDownloadName,
14
- o as filePreviewList,
11
+ t as deleteButton,
12
+ o as downloadButton,
13
+ r as fileDownloadName,
14
+ i as filePreviewList,
15
15
  a as filePreviewWrapper,
16
16
  e as imagePreviewWrapper
17
17
  };
@@ -1,4 +1,8 @@
1
- export declare const BouncingLogo: ({ c }: {
1
+ import { appMode } from '../../helpers/isAppMode';
2
+ type BouncingLogoProps = {
2
3
  c?: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
+ appMode?: appMode | null;
5
+ };
6
+ export declare const BouncingLogo: ({ c, appMode }: BouncingLogoProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
4
8
  //# sourceMappingURL=BouncingLogo.d.ts.map