@layers-app/shared 0.4.3 → 0.4.4

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 (57) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  3. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  4. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  5. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  6. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
  7. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  8. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  9. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  10. package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
  11. package/dist/components/CommentComposer/CommentComposer.module.css.js +1 -1
  12. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  13. package/dist/components/CommentComposer/index.js +53 -54
  14. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  15. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  16. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  17. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  18. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  19. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  20. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  21. package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
  22. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  23. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  24. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  25. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  26. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  27. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  28. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  29. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  30. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  31. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  32. package/dist/components/Loaders/styles.module.css.js +6 -6
  33. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  34. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +36 -36
  35. package/dist/components/MusicPlayerBar/components/VolumePopover.d.ts.map +1 -1
  36. package/dist/components/MusicPlayerBar/components/VolumePopover.js +22 -20
  37. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  38. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  39. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  40. package/dist/components/Notification/Notification.module.css.js +1 -1
  41. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  42. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  43. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  44. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  45. package/dist/components/table/FrontTable.d.ts.map +1 -1
  46. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  47. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  48. package/dist/helpers/showNotifications.module.css.js +1 -1
  49. package/dist/hooks/useOfficePreviewAvailable.d.ts +2 -0
  50. package/dist/hooks/useOfficePreviewAvailable.d.ts.map +1 -0
  51. package/dist/hooks/useOfficePreviewAvailable.js +20 -0
  52. package/dist/index.css +1 -1
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +266 -264
  56. package/docs/README.md +499 -499
  57. package/package.json +75 -75
@@ -1,11 +1,11 @@
1
- const e = "_page_4n9uu_5", u = "_figureContainer_4n9uu_31", g = "_figure_4n9uu_31", _ = "_figureA_4n9uu_57", a = "_figureB_4n9uu_65", n = "_grainOverlay_4n9uu_229", r = "_badgeWrap_4n9uu_253", i = "_badge0_4n9uu_309", t = "_badge1_4n9uu_319", d = "_badge2_4n9uu_337", o = "_badge3_4n9uu_355", b = {
1
+ const e = "_page_q8c84_3", g = "_figureContainer_q8c84_16", _ = "_figure_q8c84_16", a = "_figureA_q8c84_29", r = "_figureB_q8c84_33", c = "_grainOverlay_q8c84_115", n = "_badgeWrap_q8c84_127", i = "_badge0_q8c84_155", t = "_badge1_q8c84_160", d = "_badge2_q8c84_169", o = "_badge3_q8c84_178", b = {
2
2
  page: e,
3
- figureContainer: u,
4
- figure: g,
5
- figureA: _,
6
- figureB: a,
7
- grainOverlay: n,
8
- badgeWrap: r,
3
+ figureContainer: g,
4
+ figure: _,
5
+ figureA: a,
6
+ figureB: r,
7
+ grainOverlay: c,
8
+ badgeWrap: n,
9
9
  badge0: i,
10
10
  badge1: t,
11
11
  badge2: d,
@@ -16,12 +16,12 @@ export {
16
16
  t as badge1,
17
17
  d as badge2,
18
18
  o as badge3,
19
- r as badgeWrap,
19
+ n as badgeWrap,
20
20
  b as default,
21
- g as figure,
22
- _ as figureA,
23
- a as figureB,
24
- u as figureContainer,
25
- n as grainOverlay,
21
+ _ as figure,
22
+ a as figureA,
23
+ r as figureB,
24
+ g as figureContainer,
25
+ c as grainOverlay,
26
26
  e as page
27
27
  };
@@ -1,4 +1,4 @@
1
- const t = "_toolTitleInput_7pu9q_37", n = "_appSidebarButton_7pu9q_67", o = "_slideContainer_7pu9q_109", e = "_slideContent_7pu9q_121", i = "_main_7pu9q_151", l = "_floatingMeetSlot_7pu9q_169", a = {
1
+ const t = "_toolTitleInput_103nq_19", n = "_appSidebarButton_103nq_34", o = "_slideContainer_103nq_55", e = "_slideContent_103nq_61", i = "_main_103nq_76", l = "_floatingMeetSlot_103nq_85", a = {
2
2
  toolTitleInput: t,
3
3
  appSidebarButton: n,
4
4
  slideContainer: o,
@@ -1,4 +1,4 @@
1
- const t = "_dot_w7tk6_1", o = "_line_w7tk6_17", e = {
1
+ const t = "_dot_h8jhb_1", o = "_line_h8jhb_9", e = {
2
2
  dot: t,
3
3
  line: o
4
4
  };
@@ -1,6 +1,6 @@
1
- const t = "_root_10w7v_1", e = "_header_10w7v_17", o = "_section_10w7v_39", _ = "_leftSidebar_10w7v_55", n = "_rightSidebar_10w7v_71", r = "_main_10w7v_87", i = "_workContent_10w7v_103", a = {
2
- root: t,
3
- header: e,
1
+ const e = "_root_9zlef_1", t = "_header_9zlef_9", o = "_section_9zlef_20", _ = "_leftSidebar_9zlef_28", n = "_rightSidebar_9zlef_36", r = "_main_9zlef_44", i = "_workContent_9zlef_52", a = {
2
+ root: e,
3
+ header: t,
4
4
  section: o,
5
5
  leftSidebar: _,
6
6
  rightSidebar: n,
@@ -9,11 +9,11 @@ const t = "_root_10w7v_1", e = "_header_10w7v_17", o = "_section_10w7v_39", _ =
9
9
  };
10
10
  export {
11
11
  a as default,
12
- e as header,
12
+ t as header,
13
13
  _ as leftSidebar,
14
14
  r as main,
15
15
  n as rightSidebar,
16
- t as root,
16
+ e as root,
17
17
  o as section,
18
18
  i as workContent
19
19
  };
@@ -1,7 +1,7 @@
1
- const a = {
2
- "vod-player": "_vod-player_1paib_1",
3
- "vod-player__player": "_vod-player__player_1paib_25"
1
+ const e = {
2
+ "vod-player": "_vod-player_be6om_1",
3
+ "vod-player__player": "_vod-player__player_be6om_13"
4
4
  };
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,6 +1,6 @@
1
- const n = "_container_nqf56_1", o = "_root_nqf56_13", t = "_carouselRoot_nqf56_27", e = "_carouselViewport_nqf56_35", a = "_carouselSlide_nqf56_43", _ = "_navButton_nqf56_57", r = "_navButtonPrev_nqf56_83", i = "_navButtonNext_nqf56_91", c = "_headerAction_nqf56_99", d = "_modalContent_nqf56_127", s = "_modalBody_nqf56_137", u = "_videoContainer_nqf56_149", f = "_imageContainer_nqf56_159", l = "_pdfContainer_nqf56_173", m = "_pdfFrame_nqf56_189", q = "_audioContainer_nqf56_203", v = "_audioName_nqf56_233", C = "_audioElement_nqf56_249", B = {
2
- container: n,
3
- root: o,
1
+ const o = "_container_17z0f_1", n = "_root_17z0f_7", t = "_carouselRoot_17z0f_14", e = "_carouselViewport_17z0f_18", a = "_carouselSlide_17z0f_22", _ = "_navButton_17z0f_29", r = "_navButtonPrev_17z0f_42", i = "_navButtonNext_17z0f_46", c = "_headerAction_17z0f_50", d = "_modalContent_17z0f_64", s = "_modalBody_17z0f_69", u = "_videoContainer_17z0f_75", f = "_imageContainer_17z0f_80", l = "_pdfContainer_17z0f_87", m = "_pdfFrame_17z0f_95", z = "_audioContainer_17z0f_102", v = "_audioName_17z0f_117", C = "_audioElement_17z0f_125", B = {
2
+ container: o,
3
+ root: n,
4
4
  carouselRoot: t,
5
5
  carouselViewport: e,
6
6
  carouselSlide: a,
@@ -14,18 +14,18 @@ const n = "_container_nqf56_1", o = "_root_nqf56_13", t = "_carouselRoot_nqf56_2
14
14
  imageContainer: f,
15
15
  pdfContainer: l,
16
16
  pdfFrame: m,
17
- audioContainer: q,
17
+ audioContainer: z,
18
18
  audioName: v,
19
19
  audioElement: C
20
20
  };
21
21
  export {
22
- q as audioContainer,
22
+ z as audioContainer,
23
23
  C as audioElement,
24
24
  v as audioName,
25
25
  t as carouselRoot,
26
26
  a as carouselSlide,
27
27
  e as carouselViewport,
28
- n as container,
28
+ o as container,
29
29
  B as default,
30
30
  c as headerAction,
31
31
  f as imageContainer,
@@ -36,6 +36,6 @@ export {
36
36
  r as navButtonPrev,
37
37
  l as pdfContainer,
38
38
  m as pdfFrame,
39
- o as root,
39
+ n as root,
40
40
  u as videoContainer
41
41
  };
@@ -1,4 +1,4 @@
1
- const e = "_imagePreviewWrapper_1814g_1", t = "_deleteButton_1814g_11", o = "_downloadButton_1814g_25", i = "_filePreviewList_1814g_63", r = "_fileDownloadName_1814g_89", a = "_filePreviewWrapper_1814g_101", 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
3
  deleteButton: t,
4
4
  downloadButton: o,
@@ -1,15 +1,15 @@
1
- const o = "_wrapper_1n4or_1", s = "_logo_1n4or_15", _ = "_desktop_1n4or_45", t = "_shadow_1n4or_73", d = "_desktopShadow_1n4or_99", p = {
1
+ const o = "_wrapper_1y9p0_1", s = "_logo_1y9p0_8", p = "_desktop_1y9p0_23", _ = "_shadow_1y9p0_37", t = "_desktopShadow_1y9p0_50", d = {
2
2
  wrapper: o,
3
3
  logo: s,
4
- desktop: _,
5
- shadow: t,
6
- desktopShadow: d
4
+ desktop: p,
5
+ shadow: _,
6
+ desktopShadow: t
7
7
  };
8
8
  export {
9
- p as default,
10
- _ as desktop,
11
- d as desktopShadow,
9
+ d as default,
10
+ p as desktop,
11
+ t as desktopShadow,
12
12
  s as logo,
13
- t as shadow,
13
+ _ as shadow,
14
14
  o as wrapper
15
15
  };
@@ -1,4 +1,4 @@
1
- const o = "_accordionRoot_1of7x_1", c = "_accordionControl_1of7x_9", n = "_accordionItem_1of7x_17", t = {
1
+ const o = "_accordionRoot_3pkfo_1", c = "_accordionControl_3pkfo_5", n = "_accordionItem_3pkfo_9", t = {
2
2
  accordionRoot: o,
3
3
  accordionControl: c,
4
4
  accordionItem: n
@@ -1,31 +1,31 @@
1
- const t = "_section_tyqb8_3", i = "_sectionLabel_tyqb8_29", n = "_listItem_tyqb8_91", e = "_listItemActive_tyqb8_143", c = "_listItemLabel_tyqb8_151", l = "_listItemSwatch_tyqb8_167", _ = "_grid_tyqb8_183", s = "_inlineSection_tyqb8_323", o = "_inlineSectionLabel_tyqb8_343", a = "_inlineRow_tyqb8_359", b = "_inlineSwatch_tyqb8_377", S = "_inlineSwatchActive_tyqb8_429", w = "_inlineSwatchRound_tyqb8_449", y = {
2
- section: t,
3
- sectionLabel: i,
1
+ const i = "_section_lidow_2", t = "_sectionLabel_lidow_15", n = "_listItem_lidow_46", e = "_listItemActive_lidow_72", l = "_listItemLabel_lidow_76", o = "_listItemSwatch_lidow_84", c = "_grid_lidow_92", _ = "_inlineSection_lidow_162", s = "_inlineSectionLabel_lidow_172", w = "_inlineRow_lidow_180", a = "_inlineSwatch_lidow_189", d = "_inlineSwatchActive_lidow_215", S = "_inlineSwatchRound_lidow_225", h = {
2
+ section: i,
3
+ sectionLabel: t,
4
4
  listItem: n,
5
5
  listItemActive: e,
6
- listItemLabel: c,
7
- listItemSwatch: l,
8
- grid: _,
9
- inlineSection: s,
10
- inlineSectionLabel: o,
11
- inlineRow: a,
12
- inlineSwatch: b,
13
- inlineSwatchActive: S,
14
- inlineSwatchRound: w
6
+ listItemLabel: l,
7
+ listItemSwatch: o,
8
+ grid: c,
9
+ inlineSection: _,
10
+ inlineSectionLabel: s,
11
+ inlineRow: w,
12
+ inlineSwatch: a,
13
+ inlineSwatchActive: d,
14
+ inlineSwatchRound: S
15
15
  };
16
16
  export {
17
- y as default,
18
- _ as grid,
19
- a as inlineRow,
20
- s as inlineSection,
21
- o as inlineSectionLabel,
22
- b as inlineSwatch,
23
- S as inlineSwatchActive,
24
- w as inlineSwatchRound,
17
+ h as default,
18
+ c as grid,
19
+ w as inlineRow,
20
+ _ as inlineSection,
21
+ s as inlineSectionLabel,
22
+ a as inlineSwatch,
23
+ d as inlineSwatchActive,
24
+ S as inlineSwatchRound,
25
25
  n as listItem,
26
26
  e as listItemActive,
27
- c as listItemLabel,
28
- l as listItemSwatch,
29
- t as section,
30
- i as sectionLabel
27
+ l as listItemLabel,
28
+ o as listItemSwatch,
29
+ i as section,
30
+ t as sectionLabel
31
31
  };
@@ -1,4 +1,4 @@
1
- const o = "_commentComposerWrapper_f5dl7_1", e = "_commentComposerFloat_f5dl7_135", r = "_composerContainer_f5dl7_193", t = "_editorWrapper_f5dl7_225", p = "_editMode_f5dl7_361", m = {
1
+ const o = "_commentComposerWrapper_17oei_1", e = "_commentComposerFloat_17oei_68", r = "_composerContainer_17oei_97", t = "_editorWrapper_17oei_113", p = "_editMode_17oei_192", m = {
2
2
  commentComposerWrapper: o,
3
3
  commentComposerFloat: e,
4
4
  composerContainer: r,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AA0CrE,eAAO,MAAM,eAAe,GAAI,4EAQ7B,oBAAoB,4CAuctB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AA0CrE,eAAO,MAAM,eAAe,GAAI,4EAQ7B,oBAAoB,4CAsctB,CAAC"}
@@ -1,41 +1,41 @@
1
- import { jsx as n, jsxs as C } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as C } from "react/jsx-runtime";
2
2
  import { useState as Z, useRef as v, useMemo as U, useCallback as ee, useEffect as A } from "react";
3
3
  import { useTranslation as te } from "react-i18next";
4
- import { Attachment02Icon as oe, Sent02Icon as re } from "@hugeicons/core-free-icons";
4
+ import { Attachment02Icon as oe, Sent02Icon as ne } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as $ } from "@hugeicons/react";
6
- import { Stack as ne, Box as se, Group as B, FileButton as ie, ActionIcon as P, UnstyledButton as le, Text as ae, Button as ce, Popover as L } from "@mantine/core";
6
+ import { Stack as re, Box as se, Group as B, FileButton as ie, ActionIcon as P, UnstyledButton as le, Text as ae, Button as ce, Popover as L } from "@mantine/core";
7
7
  import { getMaxUploadSize as de } from "../../config/envConfig.js";
8
8
  import { showErrorNotification as W } from "../../helpers/showNotifications.js";
9
9
  import { AttachmentsPreview as me } from "../AttachmentsPreview/AttachmentsPreview.js";
10
- import { CommentEditorHandler as fe } from "./CommentEditorHotkeys.js";
11
- import { useVirtualAnchor as ue } from "./useVirtualAnchor.js";
10
+ import { CommentEditorHandler as ue } from "./CommentEditorHotkeys.js";
11
+ import { useVirtualAnchor as fe } from "./useVirtualAnchor.js";
12
12
  import y from "./CommentComposer.module.css.js";
13
- function j(r) {
14
- return "id" in r;
13
+ function j(n) {
14
+ return "id" in n;
15
15
  }
16
- function pe(r) {
17
- return typeof r == "object" && "isTemp" in r;
16
+ function pe(n) {
17
+ return typeof n == "object" && "isTemp" in n;
18
18
  }
19
- function he(r) {
20
- const c = URL.createObjectURL(r);
19
+ function he(n) {
20
+ const c = URL.createObjectURL(n);
21
21
  return {
22
22
  id: `temp-${crypto.randomUUID()}`,
23
- name: r.name,
24
- type: r.type,
25
- size: r.size,
23
+ name: n.name,
24
+ type: n.type,
25
+ size: n.size,
26
26
  url: c,
27
27
  src: c,
28
- isImage: r.type.startsWith("image/"),
28
+ isImage: n.type.startsWith("image/"),
29
29
  isTemp: !0,
30
- raw: r
30
+ raw: n
31
31
  };
32
32
  }
33
33
  const M = () => de() ?? 5 * 1024 * 1024, ge = 10;
34
- function xe(r, c) {
35
- return r(`composer.${c}`, { defaultValue: "" }) || r(`editor.composer.${c}`);
34
+ function xe(n, c) {
35
+ return n(`composer.${c}`, { defaultValue: "" }) || n(`editor.composer.${c}`);
36
36
  }
37
37
  const Ne = ({
38
- children: r,
38
+ children: n,
39
39
  onSubmit: c,
40
40
  initialDraft: d,
41
41
  updateLocation: N,
@@ -46,7 +46,7 @@ const Ne = ({
46
46
  const [m, _] = Z({
47
47
  text: d?.text ?? "",
48
48
  files: d?.files ?? []
49
- }), { t: h } = te(S), G = h(S === "comments" ? "composer.placeholder" : "editor.composer.placeholder"), g = v(null), f = typeof d?.text < "u", a = {
49
+ }), { t: h } = te(S), G = h(S === "comments" ? "composer.placeholder" : "editor.composer.placeholder"), g = v(null), u = typeof d?.text < "u", a = {
50
50
  text: m.text,
51
51
  files: m.files
52
52
  }, X = v(null), p = v(null), Y = U(
@@ -55,8 +55,8 @@ const Ne = ({
55
55
  elements: []
56
56
  }),
57
57
  []
58
- ), V = v(null), u = !!N, q = ue({
59
- isFloat: u,
58
+ ), V = v(null), f = !!N, q = fe({
59
+ isFloat: f,
60
60
  updateLocation: N,
61
61
  selectionRef: V,
62
62
  selectionState: Y
@@ -67,8 +67,8 @@ const Ne = ({
67
67
  ), s = t?.scrollHeight || 0, o = s > I, l = s > 35, i = e.closest(
68
68
  '[class*="commentComposerFloat"]'
69
69
  ) || e;
70
- u && l ? i.setAttribute("data-multiline", "true") : i.removeAttribute("data-multiline"), o && t ? (t.style.maxHeight = `${I}px`, t.style.overflowY = "auto", t.style.scrollbarWidth = "thin", i.setAttribute("data-editor-constrained", "true")) : t && (t.style.maxHeight = "", t.style.overflowY = "", t.style.scrollbarWidth = "", i.removeAttribute("data-editor-constrained"));
71
- }, [p, u, I]);
70
+ f && l ? i.setAttribute("data-multiline", "true") : i.removeAttribute("data-multiline"), o && t ? (t.style.maxHeight = `${I}px`, t.style.overflowY = "auto", t.style.scrollbarWidth = "thin", i.setAttribute("data-editor-constrained", "true")) : t && (t.style.maxHeight = "", t.style.overflowY = "", t.style.scrollbarWidth = "", i.removeAttribute("data-editor-constrained"));
71
+ }, [p, f, I]);
72
72
  A(() => {
73
73
  b();
74
74
  }, [b]), A(() => {
@@ -81,26 +81,26 @@ const Ne = ({
81
81
  };
82
82
  }, [b]), A(() => {
83
83
  const e = document.querySelector("main");
84
- if (e && u) {
84
+ if (e && f) {
85
85
  const t = e.style.overflow;
86
86
  return e.style.overflow = "hidden", () => {
87
87
  e.style.overflow = t;
88
88
  };
89
89
  }
90
- }, [u]);
90
+ }, [f]);
91
91
  const { textChanged: J, newFiles: K, deletedFiles: D, hasChanges: F } = U(() => {
92
92
  const e = d?.files || [], t = m.files, s = d?.text !== a.text, o = t.filter((i) => i.isTemp), x = new Set(
93
93
  t.filter(
94
94
  (i) => j(i)
95
95
  ).map((i) => i.id)
96
- ), l = e.filter(j).filter((i) => !x.has(i.id)), E = f ? JSON.stringify(d) === JSON.stringify(m) : a.text.trim().length > 0 || o.length > 0 || l.length > 0;
96
+ ), l = e.filter(j).filter((i) => !x.has(i.id)), E = u ? JSON.stringify(d) === JSON.stringify(m) : a.text.trim().length > 0 || o.length > 0 || l.length > 0;
97
97
  return {
98
98
  textChanged: s,
99
99
  newFiles: o,
100
100
  deletedFiles: l,
101
101
  hasChanges: E
102
102
  };
103
- }, [f, d, m, a.text]), H = () => {
103
+ }, [u, d, m, a.text]), H = () => {
104
104
  R ? R({
105
105
  id: "",
106
106
  text: "",
@@ -137,7 +137,7 @@ const Ne = ({
137
137
  });
138
138
  }, w = async () => {
139
139
  try {
140
- f ? await c({
140
+ u ? await c({
141
141
  mode: "edit",
142
142
  data: {
143
143
  textChanged: J,
@@ -164,14 +164,14 @@ const Ne = ({
164
164
  const s = new t.klass();
165
165
  e.append(s), s.select();
166
166
  }), T({ text: "", files: [] }, !0);
167
- }, O = /* @__PURE__ */ n(
168
- ne,
167
+ }, O = /* @__PURE__ */ r(
168
+ re,
169
169
  {
170
170
  ref: p,
171
171
  className: `
172
172
  ${y.commentComposerWrapper}
173
- ${f ? y.editMode : ""}
174
- ${u ? y.commentComposerFloat : ""}
173
+ ${u ? y.editMode : ""}
174
+ ${f ? y.commentComposerFloat : ""}
175
175
  `,
176
176
  children: /* @__PURE__ */ C(
177
177
  "div",
@@ -181,19 +181,19 @@ const Ne = ({
181
181
  "--placeholder-text": `"${G}"`
182
182
  },
183
183
  children: [
184
- /* @__PURE__ */ n("div", { className: y.editorWrapper, children: /* @__PURE__ */ n(
185
- fe,
184
+ /* @__PURE__ */ r("div", { className: y.editorWrapper, children: /* @__PURE__ */ r(
185
+ ue,
186
186
  {
187
187
  onSubmit: w,
188
188
  editorRef: g,
189
189
  inputContainerRef: p,
190
190
  commentDraft: a,
191
191
  onBlur: H,
192
- isEdit: f,
193
- isFloat: u,
192
+ isEdit: u,
193
+ isFloat: f,
194
194
  hasChanges: F,
195
195
  ns: S,
196
- children: r?.({
196
+ children: n?.({
197
197
  onSubmit: w,
198
198
  handleBlur: () => {
199
199
  },
@@ -204,8 +204,8 @@ const Ne = ({
204
204
  })
205
205
  }
206
206
  ) }),
207
- /* @__PURE__ */ n(se, { h: 10, "data-editor-spacer": !0, tabIndex: 0, style: { width: "100%" } }),
208
- /* @__PURE__ */ n(
207
+ /* @__PURE__ */ r(se, { h: 10, "data-editor-spacer": !0, tabIndex: 0, style: { width: "100%" } }),
208
+ /* @__PURE__ */ r(
209
209
  me,
210
210
  {
211
211
  files: m.files,
@@ -219,7 +219,7 @@ const Ne = ({
219
219
  /* @__PURE__ */ C(
220
220
  B,
221
221
  {
222
- justify: f ? "space-between" : "flex-end",
222
+ justify: u ? "space-between" : "flex-end",
223
223
  "data-comment-footer": !0,
224
224
  align: "center",
225
225
  w: "unset",
@@ -227,12 +227,12 @@ const Ne = ({
227
227
  tabIndex: 0,
228
228
  gap: "4px",
229
229
  children: [
230
- /* @__PURE__ */ n(
230
+ /* @__PURE__ */ r(
231
231
  ie,
232
232
  {
233
233
  onChange: (e) => Q(e, T),
234
234
  multiple: !0,
235
- children: (e) => /* @__PURE__ */ n(P, { ...e, variant: "subtle", size: "lg", color: "gray", children: /* @__PURE__ */ n(
235
+ children: (e) => /* @__PURE__ */ r(P, { ...e, variant: "subtle", size: "lg", color: "gray", children: /* @__PURE__ */ r(
236
236
  $,
237
237
  {
238
238
  style: { transform: "rotate(35deg)" },
@@ -242,8 +242,8 @@ const Ne = ({
242
242
  ) })
243
243
  }
244
244
  ),
245
- f ? /* @__PURE__ */ C(B, { gap: "8px", children: [
246
- /* @__PURE__ */ n(
245
+ u ? /* @__PURE__ */ C(B, { gap: "8px", children: [
246
+ /* @__PURE__ */ r(
247
247
  le,
248
248
  {
249
249
  onClick: H,
@@ -255,29 +255,28 @@ const Ne = ({
255
255
  background: "none",
256
256
  border: "none"
257
257
  },
258
- children: /* @__PURE__ */ n(ae, { size: "sm", c: "dimmed", children: h("composer.cancel") })
258
+ children: /* @__PURE__ */ r(ae, { size: "sm", c: "dimmed", children: h("composer.cancel") })
259
259
  }
260
260
  ),
261
- /* @__PURE__ */ n(
261
+ /* @__PURE__ */ r(
262
262
  ce,
263
263
  {
264
264
  size: "xs",
265
265
  radius: "md",
266
266
  onClick: w,
267
- disabled: f ? F : !F,
267
+ disabled: u ? F : !F,
268
268
  children: h("composer.save")
269
269
  }
270
270
  )
271
- ] }) : /* @__PURE__ */ n(
271
+ ] }) : /* @__PURE__ */ r(
272
272
  P,
273
273
  {
274
- color: "var(--mantine-primary-color-filled)",
275
274
  size: "lg",
276
275
  "data-comment-submit-button": !0,
277
276
  variant: "filled",
278
277
  onClick: w,
279
278
  disabled: !a.text.trim() && a.files.length === 0,
280
- children: /* @__PURE__ */ n($, { icon: re, size: 20 })
279
+ children: /* @__PURE__ */ r($, { icon: ne, size: 20 })
281
280
  }
282
281
  )
283
282
  ]
@@ -288,7 +287,7 @@ const Ne = ({
288
287
  )
289
288
  }
290
289
  );
291
- return u ? /* @__PURE__ */ C(
290
+ return f ? /* @__PURE__ */ C(
292
291
  L,
293
292
  {
294
293
  opened: !0,
@@ -322,7 +321,7 @@ const Ne = ({
322
321
  }
323
322
  },
324
323
  children: [
325
- /* @__PURE__ */ n(L.Target, { children: /* @__PURE__ */ n(
324
+ /* @__PURE__ */ r(L.Target, { children: /* @__PURE__ */ r(
326
325
  "div",
327
326
  {
328
327
  ref: q,
@@ -337,7 +336,7 @@ const Ne = ({
337
336
  }
338
337
  }
339
338
  ) }),
340
- /* @__PURE__ */ n(
339
+ /* @__PURE__ */ r(
341
340
  L.Dropdown,
342
341
  {
343
342
  ref: X,
@@ -1,4 +1,4 @@
1
- const s = "_section_6nzxb_1", t = {
1
+ const s = "_section_s7rqu_1", t = {
2
2
  section: s
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const r = "_brandingWrapper_ag0no_1", a = {
1
+ const r = "_brandingWrapper_vvk0o_1", a = {
2
2
  brandingWrapper: r
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_122b9_1", t = {
1
+ const o = "_root_195do_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,13 +1,13 @@
1
- const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
1
+ const o = "_item_o1hlf_1", a = "_randomIcon_o1hlf_26", n = "_originalTab_o1hlf_30", t = "_customTab_o1hlf_36", _ = {
2
2
  item: o,
3
- randomIcon: s,
4
- originalTab: a,
5
- customTab: n
3
+ randomIcon: a,
4
+ originalTab: n,
5
+ customTab: t
6
6
  };
7
7
  export {
8
- n as customTab,
9
- t as default,
8
+ t as customTab,
9
+ _ as default,
10
10
  o as item,
11
- a as originalTab,
12
- s as randomIcon
11
+ n as originalTab,
12
+ a as randomIcon
13
13
  };
@@ -1,4 +1,4 @@
1
- const t = "_textareaRoot_1bpsw_53", e = "_textareaInput_1bpsw_61", a = {
1
+ const t = "_textareaRoot_1ubu6_27", e = "_textareaInput_1ubu6_31", a = {
2
2
  textareaRoot: t,
3
3
  textareaInput: e
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Error404.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error404.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;eAC+X,CAAC;6CADrX,CAAC"}
1
+ {"version":3,"file":"Error404.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error404.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;eACkX,CAAC;6CADxW,CAAC"}