@layers-app/shared 0.4.10 → 0.4.11

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/AppContainer/AppContainer.js +24 -24
  2. package/dist/components/AppContainer/components/Header.d.ts +3 -1
  3. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  4. package/dist/components/AppContainer/components/Header.js +9 -6
  5. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +102 -102
  6. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -2
  7. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts.map +1 -1
  8. package/dist/components/AppContainer/hooks/useAppContainerStore.js +20 -19
  9. package/dist/components/ColorPicker/icons.js +5 -5
  10. package/dist/components/MeetingPage/MeetingObjectAttitude.d.ts.map +1 -1
  11. package/dist/components/MeetingPage/MeetingObjectAttitude.js +64 -68
  12. package/dist/components/MeetingPage/MeetingObjectCard.d.ts.map +1 -1
  13. package/dist/components/MeetingPage/MeetingObjectCard.js +108 -109
  14. package/dist/components/MeetingPage/MeetingObjectDirectory.d.ts.map +1 -1
  15. package/dist/components/MeetingPage/MeetingObjectDirectory.js +85 -80
  16. package/dist/components/MeetingPage/MeetingObjectEditor.d.ts.map +1 -1
  17. package/dist/components/MeetingPage/MeetingObjectEditor.js +144 -140
  18. package/dist/components/MeetingPage/MeetingPanelError.d.ts.map +1 -1
  19. package/dist/components/MeetingPage/MeetingPanelError.js +17 -16
  20. package/dist/components/MeetingPage/MeetingPersonAppearances.d.ts.map +1 -1
  21. package/dist/components/MeetingPage/MeetingPersonAppearances.js +63 -55
  22. package/dist/components/MeetingPage/meetingAppearances.d.ts.map +1 -1
  23. package/dist/components/MeetingPage/meetingAppearances.js +29 -28
  24. package/dist/components/MeetingPage/meetingObjects.d.ts +8 -2
  25. package/dist/components/MeetingPage/meetingObjects.d.ts.map +1 -1
  26. package/dist/components/MeetingPage/meetingObjects.js +28 -31
  27. package/dist/components/MeetingPage/objectAttitude.d.ts +9 -2
  28. package/dist/components/MeetingPage/objectAttitude.d.ts.map +1 -1
  29. package/dist/components/MeetingPage/objectAttitude.js +88 -89
  30. package/dist/components/Notification/InfiniteScroll.js +10 -10
  31. package/dist/components/Notification/Notification.module.css.js +24 -20
  32. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -1
  33. package/dist/components/Notification/atoms/UnreadDot.js +4 -4
  34. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -1
  35. package/dist/components/Notification/molecules/InboxEmpty.js +17 -15
  36. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -1
  37. package/dist/components/Notification/molecules/InboxHeader.js +26 -26
  38. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -1
  39. package/dist/components/Notification/molecules/InboxTabs.js +33 -22
  40. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -1
  41. package/dist/components/Notification/molecules/NotificationContent.js +121 -121
  42. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -1
  43. package/dist/components/Notification/organisms/InboxItem.js +23 -22
  44. package/dist/components/Notification/organisms/InboxPanel.js +1 -1
  45. package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
  46. package/dist/components/StorageUsageProgress/index.js +1 -3
  47. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +10 -7
  48. package/dist/config/envConfig.d.ts +3 -0
  49. package/dist/config/envConfig.d.ts.map +1 -1
  50. package/dist/index.css +1 -1
  51. package/dist/lang/locales/ui_en.json.js +20 -18
  52. package/dist/lang/locales/ui_es.json.js +30 -28
  53. package/dist/lang/locales/ui_ru.json.js +24 -22
  54. package/dist/utils/formatStorage.d.ts +6 -5
  55. package/dist/utils/formatStorage.d.ts.map +1 -1
  56. package/dist/utils/formatStorage.js +21 -11
  57. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
- import { panelFetch as d } from "./panelFetch.js";
2
- function t(n) {
3
- return typeof n == "string" && n.trim() ? n : null;
1
+ import { panelFetch as m } from "./panelFetch.js";
2
+ function i(t) {
3
+ return typeof t == "string" && t.trim() ? t : null;
4
4
  }
5
- function m(n) {
6
- return typeof n == "number" && Number.isFinite(n) ? n : null;
5
+ function a(t) {
6
+ return typeof t == "number" && Number.isFinite(t) ? t : null;
7
7
  }
8
- function r(n) {
9
- return m(n) ?? 0;
8
+ function r(t) {
9
+ return a(t) ?? 0;
10
10
  }
11
- function T(n) {
12
- const e = n ?? {}, o = e.sentiment === "POSITIVE" ? "POSITIVE" : "NEGATIVE", i = t(e.mentionId), s = t(e.quote);
13
- return !i || !s ? null : {
14
- mentionId: i,
15
- sentiment: e.sentiment === "POSITIVE" || e.sentiment === "NEGATIVE" ? o : "NEGATIVE",
16
- strength: m(e.strength),
17
- summary: t(e.summary),
11
+ function u(t) {
12
+ const e = t ?? {}, n = e.sentiment === "POSITIVE" ? "POSITIVE" : "NEGATIVE", o = i(e.mentionId), s = i(e.quote);
13
+ return !o || !s ? null : {
14
+ mentionId: o,
15
+ sentiment: e.sentiment === "POSITIVE" || e.sentiment === "NEGATIVE" ? n : "NEGATIVE",
16
+ strength: a(e.strength),
17
+ summary: i(e.summary),
18
18
  quote: s,
19
- surfaceForm: t(e.surfaceForm),
20
- resolvedName: t(e.resolvedName),
21
- startMs: m(e.startMs),
22
- endMs: m(e.endMs),
23
- transcriptSegmentId: t(e.transcriptSegmentId),
24
- method: t(e.method)
19
+ surfaceForm: i(e.surfaceForm),
20
+ resolvedName: i(e.resolvedName),
21
+ startMs: a(e.startMs),
22
+ endMs: a(e.endMs),
23
+ transcriptSegmentId: i(e.transcriptSegmentId),
24
+ method: i(e.method)
25
25
  };
26
26
  }
27
- function l(n) {
28
- const e = n ?? {};
27
+ function c(t) {
28
+ const e = t ?? {};
29
29
  return {
30
- recordingId: t(e.recordingId),
31
- videoId: t(e.videoId),
32
- sourceAttachmentId: t(e.sourceAttachmentId),
33
- summaryPageId: t(e.summaryPageId),
34
- title: t(e.title),
35
- occurredAt: t(e.occurredAt),
30
+ recordingId: i(e.recordingId),
31
+ videoId: i(e.videoId),
32
+ sourceAttachmentId: i(e.sourceAttachmentId),
33
+ summaryPageId: i(e.summaryPageId),
34
+ title: i(e.title),
35
+ occurredAt: i(e.occurredAt),
36
36
  mentions: r(e.mentions),
37
37
  positive: r(e.positive),
38
38
  negative: r(e.negative),
39
39
  neutral: r(e.neutral),
40
40
  unread: r(e.unread),
41
41
  netTone: r(e.netTone),
42
- marks: Array.isArray(e.marks) ? e.marks.map(T).filter((o) => o !== null) : []
42
+ marks: Array.isArray(e.marks) ? e.marks.map(u).filter((n) => n !== null) : []
43
43
  };
44
44
  }
45
- const u = {
45
+ const d = {
46
46
  objectType: "PERSON",
47
47
  objectId: "",
48
48
  displayName: "",
@@ -56,13 +56,13 @@ const u = {
56
56
  netTone: 0,
57
57
  meetings: []
58
58
  };
59
- function I(n) {
60
- const e = n ?? {}, o = e.state === "READY" || e.state === "NEUTRAL" ? e.state : "NOT_ANALYZED";
59
+ function l(t) {
60
+ const e = t ?? {}, n = e.state === "READY" || e.state === "NEUTRAL" ? e.state : "NOT_ANALYZED";
61
61
  return {
62
62
  objectType: e.objectType === "ORGANIZATION" ? "ORGANIZATION" : "PERSON",
63
- objectId: t(e.objectId) ?? "",
64
- displayName: t(e.displayName) ?? "",
65
- state: o,
63
+ objectId: i(e.objectId) ?? "",
64
+ displayName: i(e.displayName) ?? "",
65
+ state: n,
66
66
  mentions: r(e.mentions),
67
67
  positive: r(e.positive),
68
68
  negative: r(e.negative),
@@ -70,20 +70,20 @@ function I(n) {
70
70
  unread: r(e.unread),
71
71
  coloredShare: r(e.coloredShare),
72
72
  netTone: r(e.netTone),
73
- meetings: Array.isArray(e.meetings) ? e.meetings.map(l) : []
73
+ meetings: Array.isArray(e.meetings) ? e.meetings.map(c) : []
74
74
  };
75
75
  }
76
- async function A(n, e, o = 50) {
77
- return !n || !e ? { data: u, isError: !1, status: null } : d(
78
- `/v1/objects/${n.toLowerCase()}/${e}/sentiment?limit=${o}`,
79
- I,
80
- u
76
+ async function g(t, e, n = 50) {
77
+ return !t || !e ? { data: d, isError: !1, status: null } : m(
78
+ `/v1/objects/${t.toLowerCase()}/${e}/sentiment?limit=${n}`,
79
+ l,
80
+ d
81
81
  );
82
82
  }
83
- async function f(n, e) {
84
- if (!n) return !1;
85
- const o = await d(
86
- `/v1/mentions/${n}/sentiment`,
83
+ async function I(t, e) {
84
+ if (!t) return !1;
85
+ const n = await m(
86
+ `/v1/mentions/${t}/sentiment`,
87
87
  () => !0,
88
88
  !1,
89
89
  {
@@ -92,65 +92,64 @@ async function f(n, e) {
92
92
  body: JSON.stringify({ sentiment: e })
93
93
  }
94
94
  );
95
- return o.data && !o.isError;
95
+ return n.data && !n.isError;
96
96
  }
97
- const p = {
97
+ const E = {
98
98
  POSITIVE: "Отозвались хорошо",
99
99
  NEGATIVE: "Отозвались плохо",
100
100
  NEUTRAL: "Без оценки"
101
- }, g = {
102
- POSITIVE: "хорошо",
103
- NEGATIVE: "плохо",
104
- NEUTRAL: "без оценки"
105
- }, O = {
101
+ }, A = {
102
+ POSITIVE: "meeting.attitude.shortPositive",
103
+ NEGATIVE: "meeting.attitude.shortNegative",
104
+ NEUTRAL: "meeting.attitude.shortNeutral"
105
+ }, f = {
106
106
  POSITIVE: "+",
107
107
  NEGATIVE: "−",
108
108
  NEUTRAL: ""
109
109
  };
110
- function S(n) {
111
- if (n.mentions === 0)
112
- return {
113
- headline: "Пока не называли",
114
- detail: "Ни на одной встрече это имя не прозвучало — отзываться было не о чем."
115
- };
116
- if (n.state === "NOT_ANALYZED")
117
- return {
118
- headline: "Ещё не смотрели",
119
- detail: `Имя звучало ${n.mentions} ${a(n.mentions, "раз", "раза", "раз")}, но как о нём отзывались — пока не разбирали.`
120
- };
121
- if (n.state === "NEUTRAL")
122
- return {
123
- headline: "Без оценок",
124
- detail: `Имя звучало ${n.mentions} ${a(n.mentions, "раз", "раза", "раз")} и всякий раз просто как имя: ни хорошего, ни плохого о нём не говорили.`
125
- };
126
- const e = n.positive + n.negative;
127
- return {
128
- headline: n.netTone > 0.2 ? "Отзывались скорее хорошо" : n.netTone < -0.2 ? "Отзывались скорее плохо" : "Отзывались по-разному",
129
- detail: `Из ${n.mentions} ${a(n.mentions, "упоминания", "упоминаний", "упоминаний")} ${e} ${a(e, "несёт", "несут", "несут")} оценку: ${n.positive} хороших, ${n.negative} плохих.`
110
+ function p(t) {
111
+ const e = t.positive + t.negative, n = {
112
+ count: t.mentions,
113
+ colored: e,
114
+ positive: t.positive,
115
+ negative: t.negative
116
+ };
117
+ return t.mentions === 0 ? {
118
+ headline: "meeting.attitude.neverNamedHeadline",
119
+ detail: "meeting.attitude.neverNamedDetail",
120
+ values: n
121
+ } : t.state === "NOT_ANALYZED" ? {
122
+ headline: "meeting.attitude.notAnalyzedHeadline",
123
+ detail: "meeting.attitude.notAnalyzedDetail",
124
+ values: n
125
+ } : t.state === "NEUTRAL" ? {
126
+ headline: "meeting.attitude.neutralHeadline",
127
+ detail: "meeting.attitude.neutralDetail",
128
+ values: n
129
+ } : {
130
+ headline: t.netTone > 0.2 ? "meeting.attitude.positiveHeadline" : t.netTone < -0.2 ? "meeting.attitude.negativeHeadline" : "meeting.attitude.mixedHeadline",
131
+ detail: "meeting.attitude.mixedDetail",
132
+ values: n
130
133
  };
131
134
  }
132
- function a(n, e, o, i) {
133
- const s = Math.abs(n) % 100, c = s % 10;
134
- return s >= 11 && s <= 14 ? i : c === 1 ? e : c >= 2 && c <= 4 ? o : i;
135
- }
136
- function E(n) {
137
- return n.meetings.filter((e) => e.marks.length > 0);
135
+ function T(t) {
136
+ return t.meetings.filter((e) => e.marks.length > 0);
138
137
  }
139
- function h(n) {
140
- return E(n).map((e) => ({
138
+ function v(t) {
139
+ return T(t).map((e) => ({
141
140
  at: e.occurredAt,
142
141
  netTone: e.netTone,
143
142
  marks: e.positive + e.negative
144
143
  })).reverse();
145
144
  }
146
145
  export {
147
- g as SENTIMENT_SHORT,
148
- O as SENTIMENT_SIGN,
149
- p as SENTIMENT_WORD,
150
- h as attitudeTrend,
151
- S as describeAttitude,
152
- A as loadObjectAttitude,
153
- E as meetingsWithMarks,
154
- I as normalizeObjectAttitude,
155
- f as setMentionSentiment
146
+ A as SENTIMENT_SHORT,
147
+ f as SENTIMENT_SIGN,
148
+ E as SENTIMENT_WORD,
149
+ v as attitudeTrend,
150
+ p as describeAttitude,
151
+ g as loadObjectAttitude,
152
+ T as meetingsWithMarks,
153
+ l as normalizeObjectAttitude,
154
+ I as setMentionSentiment
156
155
  };
@@ -1,20 +1,20 @@
1
1
  import { jsx as l, jsxs as p } from "react/jsx-runtime";
2
2
  import { useRef as n, useCallback as S } from "react";
3
3
  import { ScrollArea as R, Stack as g, Center as d, Loader as H } from "@mantine/core";
4
- function k({
5
- children: f,
4
+ function j({
5
+ children: h,
6
6
  isLoading: r = !1,
7
7
  height: a = "100%",
8
8
  threshold: o = 200,
9
9
  disabled: t = !1,
10
10
  onLoadMore: c
11
11
  }) {
12
- const i = n(null), s = n(r), h = n(t);
13
- s.current = r, h.current = t;
12
+ const s = n(null), i = n(r), f = n(t);
13
+ i.current = r, f.current = t;
14
14
  const u = S(
15
15
  ({ y: m }) => {
16
- if (s.current || h.current) return;
17
- const e = i.current?.querySelector(
16
+ if (i.current || f.current) return;
17
+ const e = s.current?.querySelector(
18
18
  ".mantine-ScrollArea-viewport"
19
19
  );
20
20
  if (!e?.clientHeight || !e?.scrollHeight) return;
@@ -25,18 +25,18 @@ function k({
25
25
  return /* @__PURE__ */ l(
26
26
  R,
27
27
  {
28
- ref: i,
28
+ ref: s,
29
29
  h: a,
30
30
  scrollbars: "y",
31
- pr: 12,
31
+ offsetScrollbars: "present",
32
32
  onScrollPositionChange: u,
33
33
  children: /* @__PURE__ */ p(g, { gap: 0, children: [
34
- f,
34
+ h,
35
35
  r && !t && /* @__PURE__ */ l(d, { py: "md", children: /* @__PURE__ */ l(H, { size: "sm" }) })
36
36
  ] })
37
37
  }
38
38
  );
39
39
  }
40
40
  export {
41
- k as InfiniteScroll
41
+ j as InfiniteScroll
42
42
  };
@@ -1,30 +1,34 @@
1
- const t = "_tabsList_1bfw3_5", e = "_tabsBar_1bfw3_27", n = "_tabDivider_1bfw3_39", i = "_inboxMenu_1bfw3_65", b = "_inboxMenuLabel_1bfw3_93", _ = "_inboxMenuItem_1bfw3_109", o = "_inboxMenuItemActive_1bfw3_127", s = "_tab_1bfw3_5", a = "_shrink_1bfw3_227", c = "_item_1bfw3_245", r = "_itemContent_1bfw3_273", w = "_itemActions_1bfw3_283", m = "_replyPreview_1bfw3_341", f = {
1
+ const t = "_tabsList_1a0gc_5", e = "_tabsBar_1a0gc_27", n = "_tabDivider_1a0gc_39", _ = "_inboxMenu_1a0gc_65", a = "_inboxMenuLabel_1a0gc_89", i = "_inboxMenuItem_1a0gc_105", o = "_inboxMenuItemActive_1a0gc_131", c = "_tab_1a0gc_5", s = "_shrink_1a0gc_237", b = "_item_1a0gc_255", m = "_itemContent_1a0gc_283", r = "_metaRow_1a0gc_293", g = "_metaDot_1a0gc_303", u = "_itemActions_1a0gc_325", x = "_replyPreview_1a0gc_383", M = {
2
2
  tabsList: t,
3
3
  tabsBar: e,
4
4
  tabDivider: n,
5
- inboxMenu: i,
6
- inboxMenuLabel: b,
7
- inboxMenuItem: _,
5
+ inboxMenu: _,
6
+ inboxMenuLabel: a,
7
+ inboxMenuItem: i,
8
8
  inboxMenuItemActive: o,
9
- tab: s,
10
- shrink: a,
11
- item: c,
12
- itemContent: r,
13
- itemActions: w,
14
- replyPreview: m
9
+ tab: c,
10
+ shrink: s,
11
+ item: b,
12
+ itemContent: m,
13
+ metaRow: r,
14
+ metaDot: g,
15
+ itemActions: u,
16
+ replyPreview: x
15
17
  };
16
18
  export {
17
- f as default,
18
- i as inboxMenu,
19
- _ as inboxMenuItem,
19
+ M as default,
20
+ _ as inboxMenu,
21
+ i as inboxMenuItem,
20
22
  o as inboxMenuItemActive,
21
- b as inboxMenuLabel,
22
- c as item,
23
- w as itemActions,
24
- r as itemContent,
25
- m as replyPreview,
26
- a as shrink,
27
- s as tab,
23
+ a as inboxMenuLabel,
24
+ b as item,
25
+ u as itemActions,
26
+ m as itemContent,
27
+ g as metaDot,
28
+ r as metaRow,
29
+ x as replyPreview,
30
+ s as shrink,
31
+ c as tab,
28
32
  n as tabDivider,
29
33
  e as tabsBar,
30
34
  t as tabsList
@@ -1 +1 @@
1
- {"version":3,"file":"UnreadDot.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/UnreadDot.tsx"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE,cAAc,2CAiBtD"}
1
+ {"version":3,"file":"UnreadDot.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/UnreadDot.tsx"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAQ,EAAE,EAAE,cAAc,2CAiBrD"}
@@ -1,17 +1,17 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- function i({ size: o = 10 }) {
2
+ function i({ size: o = 8 }) {
3
3
  return /* @__PURE__ */ r(
4
4
  "div",
5
5
  {
6
6
  style: {
7
7
  position: "absolute",
8
- top: -2,
9
- left: -2,
8
+ top: -1,
9
+ left: -1,
10
10
  width: o,
11
11
  height: o,
12
12
  borderRadius: "50%",
13
13
  backgroundColor: "var(--mantine-primary-color-filled)",
14
- border: "2px solid var(--mantine-color-body)",
14
+ border: "1px solid var(--mantine-color-body)",
15
15
  boxSizing: "content-box",
16
16
  zIndex: 2
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InboxEmpty.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxEmpty.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,UAAU,eAAe;IACvB,GAAG,EAAE,eAAe,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAWD,wBAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAe5D"}
1
+ {"version":3,"file":"InboxEmpty.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxEmpty.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,UAAU,eAAe;IACvB,GAAG,EAAE,eAAe,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAWD,wBAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAe5D"}
@@ -1,21 +1,23 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as x } from "react-i18next";
3
- import { Stack as f, Text as i } from "@mantine/core";
4
- import { IconCheck as I, IconArchive as C, IconInbox as h, IconMail as y } from "@tabler/icons-react";
5
- const t = "var(--mantine-color-gray-5)", s = {
6
- ALL: /* @__PURE__ */ o(y, { size: 32, stroke: 1.5, color: t }),
7
- MENTIONS: /* @__PURE__ */ o(h, { size: 32, stroke: 1.5, color: t }),
8
- ARCHIVE: /* @__PURE__ */ o(C, { size: 32, stroke: 1.5, color: t }),
9
- CAUGHT_UP: /* @__PURE__ */ o(I, { size: 32, stroke: 1.75, color: "var(--mantine-color-indigo-5)" })
3
+ import { Tick02Icon as d, Archive04Icon as s } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as t } from "@hugeicons/react";
5
+ import { Stack as I, Text as m } from "@mantine/core";
6
+ import { IconArchive as y } from "@tabler/icons-react";
7
+ const e = "var(--mantine-color-gray-6)", l = {
8
+ ALL: /* @__PURE__ */ o(t, { icon: s, size: 32, strokeWidth: 1.5, color: e }),
9
+ MENTIONS: /* @__PURE__ */ o(t, { icon: s, size: 32, strokeWidth: 1.5, color: e }),
10
+ ARCHIVE: /* @__PURE__ */ o(y, { size: 32, stroke: 1.5, color: e }),
11
+ CAUGHT_UP: /* @__PURE__ */ o(t, { icon: d, size: 32, strokeWidth: 1.5, color: "var(--mantine-color-indigo-5)" })
10
12
  };
11
- function A({ tab: e, caughtUp: n }) {
12
- const { t: r } = x("appContainer"), c = n ? "caughtUp" : e.toLowerCase(), l = r(`inbox.empty.${c}.title`), a = r(`inbox.empty.${c}.desc`), m = n ? s.CAUGHT_UP : s[e];
13
- return /* @__PURE__ */ p(f, { gap: 10, align: "center", justify: "center", px: 10, style: { flex: 1, minHeight: 0 }, children: [
14
- m,
15
- /* @__PURE__ */ o(i, { fw: 600, fz: 16, lh: 1.55, ta: "center", c: "var(--mantine-color-text)", children: l }),
16
- /* @__PURE__ */ o(i, { fz: 14, c: "gray.6", lh: 1.45, ta: "center", children: a })
13
+ function u({ tab: r, caughtUp: n }) {
14
+ const { t: i } = x("appContainer"), c = n ? "caughtUp" : r.toLowerCase(), a = i(`inbox.empty.${c}.title`), p = i(`inbox.empty.${c}.desc`), f = n ? l.CAUGHT_UP : l[r];
15
+ return /* @__PURE__ */ h(I, { gap: 10, align: "center", justify: "center", px: 10, style: { flex: 1, minHeight: 0 }, children: [
16
+ f,
17
+ /* @__PURE__ */ o(m, { fw: 600, fz: 16, lh: 1.55, ta: "center", c: "var(--mantine-color-text)", children: a }),
18
+ /* @__PURE__ */ o(m, { fz: 14, c: "gray.6", lh: 1.45, ta: "center", children: p })
17
19
  ] });
18
20
  }
19
21
  export {
20
- A as InboxEmpty
22
+ u as InboxEmpty
21
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InboxHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,UAAU,UAAU;IAClB,GAAG,EAAE,iBAAiB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;CACxB;AAED,UAAU,gBAAgB;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,aAAa,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EAAE,aAAa,EAAE,cAAc,EAC1C,UAAU,EAAE,kBAAkB,GAC/B,EAAE,gBAAgB,2CAwDlB"}
1
+ {"version":3,"file":"InboxHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,UAAU,UAAU;IAClB,GAAG,EAAE,iBAAiB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;CACxB;AAED,UAAU,gBAAgB;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,aAAa,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EAAE,aAAa,EAAE,cAAc,EAC1C,UAAU,EAAE,kBAAkB,GAC/B,EAAE,gBAAgB,2CA0DlB"}
@@ -1,32 +1,32 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { useTranslation as x } from "react-i18next";
3
- import { Group as a, Text as s, Switch as f, Menu as i, ActionIcon as g } from "@mantine/core";
4
- import { IconSettings as I, IconCheck as z } from "@tabler/icons-react";
3
+ import { Group as a, Text as s, Switch as f, Menu as r, Tooltip as g, ActionIcon as I } from "@mantine/core";
4
+ import { IconSettings as z, IconCheck as v } from "@tabler/icons-react";
5
5
  import t from "../Notification.module.css.js";
6
- function T({
6
+ function j({
7
7
  sourceItems: p,
8
8
  activeSources: c,
9
9
  onToggleSource: d,
10
- unreadOnly: m,
11
- onUnreadOnlyChange: h
10
+ unreadOnly: h,
11
+ onUnreadOnlyChange: m
12
12
  }) {
13
- const { t: n } = x("appContainer"), w = c.size === 0;
14
- return /* @__PURE__ */ r(a, { justify: "space-between", wrap: "nowrap", px: "md", py: "md", gap: "md", children: [
13
+ const { t: n } = x("appContainer"), b = c.size === 0;
14
+ return /* @__PURE__ */ i(a, { justify: "space-between", wrap: "nowrap", px: "md", py: "md", gap: "md", children: [
15
15
  /* @__PURE__ */ e(s, { fw: 700, fz: 18, lh: 1.6, style: { whiteSpace: "nowrap" }, children: n("inbox.title") }),
16
- /* @__PURE__ */ r(a, { gap: 10, wrap: "nowrap", align: "center", children: [
17
- /* @__PURE__ */ r(a, { gap: 8, wrap: "nowrap", align: "center", children: [
16
+ /* @__PURE__ */ i(a, { gap: 10, wrap: "nowrap", align: "center", children: [
17
+ /* @__PURE__ */ i(a, { gap: 8, wrap: "nowrap", align: "center", children: [
18
18
  /* @__PURE__ */ e(s, { fz: 14, lh: 1.45, c: "var(--mantine-color-text)", style: { whiteSpace: "nowrap" }, children: n("inbox.showUnread") }),
19
19
  /* @__PURE__ */ e(
20
20
  f,
21
21
  {
22
22
  size: "xs",
23
- checked: m,
24
- onChange: (o) => h(o.currentTarget.checked)
23
+ checked: h,
24
+ onChange: (o) => m(o.currentTarget.checked)
25
25
  }
26
26
  )
27
27
  ] }),
28
- /* @__PURE__ */ r(
29
- i,
28
+ /* @__PURE__ */ i(
29
+ r,
30
30
  {
31
31
  position: "bottom-end",
32
32
  shadow: "md",
@@ -34,29 +34,29 @@ function T({
34
34
  closeOnItemClick: !1,
35
35
  classNames: { dropdown: t.inboxMenu, item: t.inboxMenuItem, label: t.inboxMenuLabel },
36
36
  children: [
37
- /* @__PURE__ */ e(i.Target, { children: /* @__PURE__ */ e(
38
- g,
37
+ /* @__PURE__ */ e(r.Target, { children: /* @__PURE__ */ e(g, { label: n("inbox.sources"), children: /* @__PURE__ */ e(
38
+ I,
39
39
  {
40
40
  variant: "subtle",
41
41
  size: 28,
42
42
  radius: "md",
43
43
  color: "gray",
44
44
  "aria-label": n("inbox.sources"),
45
- children: /* @__PURE__ */ e(I, { size: 18, stroke: 1.5 })
45
+ children: /* @__PURE__ */ e(z, { size: 18, stroke: 1.5 })
46
46
  }
47
- ) }),
48
- /* @__PURE__ */ r(i.Dropdown, { w: 200, children: [
49
- /* @__PURE__ */ e(i.Label, { children: n("inbox.sources") }),
50
- p.map(({ key: o, i18nKey: b, icon: u }) => {
51
- const l = w || c.has(o);
47
+ ) }) }),
48
+ /* @__PURE__ */ i(r.Dropdown, { w: 200, children: [
49
+ /* @__PURE__ */ e(r.Label, { children: n("inbox.sources") }),
50
+ p.map(({ key: o, i18nKey: w, icon: u }) => {
51
+ const l = b || c.has(o);
52
52
  return /* @__PURE__ */ e(
53
- i.Item,
53
+ r.Item,
54
54
  {
55
55
  leftSection: u,
56
- rightSection: l ? /* @__PURE__ */ e(z, { size: 16, stroke: 1.75, color: "var(--mantine-color-indigo-5)" }) : null,
56
+ rightSection: l ? /* @__PURE__ */ e(v, { size: 16, stroke: 1.5, color: "var(--mantine-color-indigo-5)" }) : null,
57
57
  onClick: () => d(o),
58
58
  className: l ? t.inboxMenuItemActive : void 0,
59
- children: n(`inbox.sourceLabel.${b}`)
59
+ children: n(`inbox.sourceLabel.${w}`)
60
60
  },
61
61
  o
62
62
  );
@@ -69,5 +69,5 @@ function T({
69
69
  ] });
70
70
  }
71
71
  export {
72
- T as InboxHeader
72
+ j as InboxHeader
73
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InboxTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIlE,UAAU,cAAc;IACtB,GAAG,EAAE,eAAe,CAAC;IACrB,WAAW,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,EACxB,GAAG,EAAE,WAAW,EAAE,YAAY,EAC9B,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,GAC9D,EAAE,cAAc,2CA6ChB"}
1
+ {"version":3,"file":"InboxTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/InboxTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIlE,UAAU,cAAc;IACtB,GAAG,EAAE,eAAe,CAAC;IACrB,WAAW,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,EACxB,GAAG,EAAE,WAAW,EAAE,YAAY,EAC9B,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,GAC9D,EAAE,cAAc,2CAkDhB"}
@@ -1,60 +1,71 @@
1
1
  import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { useTranslation as I } from "react-i18next";
3
- import { Tabs as a, Stack as c, Group as g, Box as k, Menu as n, ActionIcon as v } from "@mantine/core";
4
- import { IconDotsVertical as T, IconChecks as N, IconArchive as m } from "@tabler/icons-react";
3
+ import { Tabs as a, Stack as c, Group as g, Box as k, Menu as n, Tooltip as v, ActionIcon as T } from "@mantine/core";
4
+ import { IconDotsVertical as C, IconChecks as N, IconArchive as m } from "@tabler/icons-react";
5
5
  import { TabBadge as h } from "../atoms/TabBadge.js";
6
- import i from "../Notification.module.css.js";
7
- function z({
8
- tab: r,
6
+ import t from "../Notification.module.css.js";
7
+ function H({
8
+ tab: l,
9
9
  onTabChange: d,
10
- unreadCounts: l,
10
+ unreadCounts: r,
11
11
  onMarkAllRead: b,
12
12
  onArchiveAll: p,
13
13
  onArchiveRead: x,
14
14
  children: f,
15
15
  isEmpty: u
16
16
  }) {
17
- const { t } = I("appContainer");
17
+ const { t: i } = I("appContainer");
18
18
  return /* @__PURE__ */ e(
19
19
  a,
20
20
  {
21
- value: r,
21
+ value: l,
22
22
  onChange: (s) => s && d(s),
23
23
  variant: "pills",
24
- classNames: { list: i.tabsList, tab: i.tab },
24
+ classNames: { list: t.tabsList, tab: t.tab },
25
25
  style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" },
26
26
  children: /* @__PURE__ */ o(c, { gap: 0, h: "100%", style: { minHeight: 0 }, children: [
27
- /* @__PURE__ */ o(g, { justify: "space-between", wrap: "nowrap", gap: 0, px: "md", className: i.tabsBar, children: [
27
+ /* @__PURE__ */ o(g, { justify: "space-between", wrap: "nowrap", gap: 0, px: "md", className: t.tabsBar, children: [
28
28
  /* @__PURE__ */ o(a.List, { children: [
29
- /* @__PURE__ */ e(a.Tab, { value: "ALL", rightSection: /* @__PURE__ */ e(h, { count: l.all, active: r === "ALL" }), children: t("inbox.tab.all") }),
30
- /* @__PURE__ */ e(a.Tab, { value: "MENTIONS", rightSection: /* @__PURE__ */ e(h, { count: l.mentions, active: r === "MENTIONS" }), children: t("inbox.tab.mentions") }),
31
- /* @__PURE__ */ e(k, { className: i.tabDivider }),
32
- /* @__PURE__ */ e(a.Tab, { value: "ARCHIVE", children: t("inbox.tab.archive") })
29
+ /* @__PURE__ */ e(a.Tab, { value: "ALL", rightSection: /* @__PURE__ */ e(h, { count: r.all, active: l === "ALL" }), children: i("inbox.tab.all") }),
30
+ /* @__PURE__ */ e(a.Tab, { value: "MENTIONS", rightSection: /* @__PURE__ */ e(h, { count: r.mentions, active: l === "MENTIONS" }), children: i("inbox.tab.mentions") }),
31
+ /* @__PURE__ */ e(k, { className: t.tabDivider }),
32
+ /* @__PURE__ */ e(a.Tab, { value: "ARCHIVE", children: i("inbox.tab.archive") })
33
33
  ] }),
34
- /* @__PURE__ */ o(
34
+ l !== "ARCHIVE" && /* @__PURE__ */ o(
35
35
  n,
36
36
  {
37
37
  position: "bottom-end",
38
38
  shadow: "md",
39
39
  withinPortal: !1,
40
40
  closeOnItemClick: !0,
41
- classNames: { dropdown: i.inboxMenu, item: i.inboxMenuItem },
41
+ classNames: { dropdown: t.inboxMenu, item: t.inboxMenuItem },
42
42
  children: [
43
- /* @__PURE__ */ e(n.Target, { children: /* @__PURE__ */ e(v, { variant: "subtle", size: 28, radius: "md", color: "gray", mt: 4, children: /* @__PURE__ */ e(T, { size: 20, stroke: 1.5 }) }) }),
43
+ /* @__PURE__ */ e(n.Target, { children: /* @__PURE__ */ e(v, { label: i("inbox.actions"), children: /* @__PURE__ */ e(
44
+ T,
45
+ {
46
+ variant: "subtle",
47
+ size: 28,
48
+ radius: "md",
49
+ color: "gray",
50
+ mt: 4,
51
+ "aria-label": i("inbox.actions"),
52
+ children: /* @__PURE__ */ e(C, { size: 20, stroke: 1.5 })
53
+ }
54
+ ) }) }),
44
55
  /* @__PURE__ */ o(n.Dropdown, { w: 200, children: [
45
- /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(N, { size: 16, stroke: 1.5 }), onClick: b, children: t("inbox.markAllRead") }),
46
- /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(m, { size: 16, stroke: 1.5 }), onClick: p, children: t("inbox.archiveAll") }),
47
- /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(m, { size: 16, stroke: 1.5 }), onClick: x, children: t("inbox.archiveRead") })
56
+ /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(N, { size: 16, stroke: 1.5 }), onClick: b, children: i("inbox.markAllRead") }),
57
+ /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(m, { size: 16, stroke: 1.5 }), onClick: p, children: i("inbox.archiveAll") }),
58
+ /* @__PURE__ */ e(n.Item, { leftSection: /* @__PURE__ */ e(m, { size: 16, stroke: 1.5 }), onClick: x, children: i("inbox.archiveRead") })
48
59
  ] })
49
60
  ]
50
61
  }
51
62
  )
52
63
  ] }),
53
- /* @__PURE__ */ e(c, { gap: 0, style: { flex: 1, minHeight: 0, justifyContent: u ? "center" : "flex-start" }, className: i.shrink, children: f })
64
+ /* @__PURE__ */ e(c, { gap: 0, style: { flex: 1, minHeight: 0, justifyContent: u ? "center" : "flex-start" }, className: t.shrink, children: f })
54
65
  ] })
55
66
  }
56
67
  );
57
68
  }
58
69
  export {
59
- z as InboxTabs
70
+ H as InboxTabs
60
71
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/NotificationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAyCtE,UAAU,wBAAwB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAcD,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAChE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAClE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,aAAa,GACzD,EAAE,wBAAwB,2CAsI1B"}
1
+ {"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/molecules/NotificationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAqCtE,UAAU,wBAAwB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAsBD,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAChE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAClE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,aAAa,GACzD,EAAE,wBAAwB,2CA8I1B"}