@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.
- package/dist/components/AppContainer/AppContainer.js +24 -24
- package/dist/components/AppContainer/components/Header.d.ts +3 -1
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +9 -6
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +102 -102
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -2
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +20 -19
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/MeetingPage/MeetingObjectAttitude.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectAttitude.js +64 -68
- package/dist/components/MeetingPage/MeetingObjectCard.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectCard.js +108 -109
- package/dist/components/MeetingPage/MeetingObjectDirectory.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectDirectory.js +85 -80
- package/dist/components/MeetingPage/MeetingObjectEditor.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectEditor.js +144 -140
- package/dist/components/MeetingPage/MeetingPanelError.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingPanelError.js +17 -16
- package/dist/components/MeetingPage/MeetingPersonAppearances.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingPersonAppearances.js +63 -55
- package/dist/components/MeetingPage/meetingAppearances.d.ts.map +1 -1
- package/dist/components/MeetingPage/meetingAppearances.js +29 -28
- package/dist/components/MeetingPage/meetingObjects.d.ts +8 -2
- package/dist/components/MeetingPage/meetingObjects.d.ts.map +1 -1
- package/dist/components/MeetingPage/meetingObjects.js +28 -31
- package/dist/components/MeetingPage/objectAttitude.d.ts +9 -2
- package/dist/components/MeetingPage/objectAttitude.d.ts.map +1 -1
- package/dist/components/MeetingPage/objectAttitude.js +88 -89
- package/dist/components/Notification/InfiniteScroll.js +10 -10
- package/dist/components/Notification/Notification.module.css.js +24 -20
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -1
- package/dist/components/Notification/atoms/UnreadDot.js +4 -4
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxEmpty.js +17 -15
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxHeader.js +26 -26
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxTabs.js +33 -22
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -1
- package/dist/components/Notification/molecules/NotificationContent.js +121 -121
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -1
- package/dist/components/Notification/organisms/InboxItem.js +23 -22
- package/dist/components/Notification/organisms/InboxPanel.js +1 -1
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +1 -3
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +10 -7
- package/dist/config/envConfig.d.ts +3 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/lang/locales/ui_en.json.js +20 -18
- package/dist/lang/locales/ui_es.json.js +30 -28
- package/dist/lang/locales/ui_ru.json.js +24 -22
- package/dist/utils/formatStorage.d.ts +6 -5
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +21 -11
- package/package.json +1 -1
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { jsxs as n, jsx as i, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s, useCallback as J, useEffect as D } from "react";
|
|
3
|
+
import { useTranslation as V } from "react-i18next";
|
|
4
|
+
import { MeetingObjectCard as X } from "./MeetingObjectCard.js";
|
|
5
|
+
import { listAliases as Y, listRelations as $, listObjects as G, removeAlias as ee, addAlias as H, removeRelation as te, addRelation as ae, mergeObjects as ie } from "./meetingObjects.js";
|
|
6
|
+
import t from "./MeetingPage.module.css.js";
|
|
6
7
|
function ce({
|
|
7
8
|
workspaceId: u,
|
|
8
|
-
objectType:
|
|
9
|
-
objectId:
|
|
10
|
-
onChanged:
|
|
11
|
-
onMerged:
|
|
9
|
+
objectType: r,
|
|
10
|
+
objectId: l,
|
|
11
|
+
onChanged: f,
|
|
12
|
+
onMerged: L
|
|
12
13
|
}) {
|
|
13
|
-
const [
|
|
14
|
+
const { t: a } = V("ui"), [k, W] = s([]), [C, Q] = s([]), [Z, K] = s(/* @__PURE__ */ new Map()), [c, b] = s(""), [o, p] = s(!1), [w, h] = s(null), [y, F] = s(""), [S, T] = s(""), [A, B] = s(""), [R, P] = s(""), [E, U] = s([]), [N, _] = s(""), [M, j] = s([]), O = J(() => {
|
|
14
15
|
let e = !1;
|
|
15
16
|
return Promise.all([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
]).then(([
|
|
19
|
-
e || (
|
|
17
|
+
Y(r, l),
|
|
18
|
+
$(r, l, null)
|
|
19
|
+
]).then(([d, g]) => {
|
|
20
|
+
e || (W(d), Q(g));
|
|
20
21
|
}), () => {
|
|
21
22
|
e = !0;
|
|
22
23
|
};
|
|
23
|
-
}, [
|
|
24
|
-
|
|
24
|
+
}, [r, l]);
|
|
25
|
+
D(O, [O]), D(() => {
|
|
25
26
|
let e = !1;
|
|
26
27
|
return Promise.all([
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]).then(([
|
|
28
|
+
G("ORGANIZATION", u),
|
|
29
|
+
G(r, u)
|
|
30
|
+
]).then(([d, g]) => {
|
|
30
31
|
if (e) return;
|
|
31
|
-
const
|
|
32
|
-
U(
|
|
33
|
-
const
|
|
34
|
-
[...
|
|
32
|
+
const z = d.data, I = g.data;
|
|
33
|
+
U(z), j(I.filter((v) => v.id !== l));
|
|
34
|
+
const x = /* @__PURE__ */ new Map();
|
|
35
|
+
[...z, ...I].forEach((v) => x.set(v.id, v.displayName)), K(x);
|
|
35
36
|
}), () => {
|
|
36
37
|
e = !0;
|
|
37
38
|
};
|
|
38
|
-
}, [u,
|
|
39
|
-
const
|
|
39
|
+
}, [u, r, l]);
|
|
40
|
+
const m = async (e, d) => {
|
|
40
41
|
p(!0), h(null);
|
|
41
|
-
const
|
|
42
|
-
if (p(!1), !
|
|
43
|
-
h(
|
|
42
|
+
const g = await e();
|
|
43
|
+
if (p(!1), !g) {
|
|
44
|
+
h(d);
|
|
44
45
|
return;
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
+
O(), f();
|
|
47
48
|
};
|
|
48
|
-
return /* @__PURE__ */ n("div", { className:
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
return /* @__PURE__ */ n("div", { className: t.editor, "data-cy": "meeting-object-editor", children: [
|
|
50
|
+
/* @__PURE__ */ i(
|
|
51
|
+
X,
|
|
51
52
|
{
|
|
52
|
-
objectType:
|
|
53
|
-
objectId:
|
|
53
|
+
objectType: r,
|
|
54
|
+
objectId: l,
|
|
54
55
|
appearancesLimit: 6,
|
|
55
56
|
workspaceId: u,
|
|
56
|
-
onChanged:
|
|
57
|
+
onChanged: f
|
|
57
58
|
},
|
|
58
|
-
|
|
59
|
+
l
|
|
59
60
|
),
|
|
60
|
-
/* @__PURE__ */ n("div", { className:
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
61
|
+
/* @__PURE__ */ n("div", { className: t.editorBlock, children: [
|
|
62
|
+
/* @__PURE__ */ i("span", { className: t.appearancesTitle, children: a("meeting.editor.aliasesTitle") }),
|
|
63
|
+
k.length > 0 && /* @__PURE__ */ i("span", { className: t.chips, children: k.map((e) => /* @__PURE__ */ n("span", { className: t.chipQuiet, children: [
|
|
63
64
|
e.alias,
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ i(
|
|
65
66
|
"button",
|
|
66
67
|
{
|
|
67
68
|
type: "button",
|
|
68
|
-
className:
|
|
69
|
-
disabled:
|
|
70
|
-
title: "
|
|
69
|
+
className: t.chipRemove,
|
|
70
|
+
disabled: o,
|
|
71
|
+
title: a("meeting.editor.aliasRemove"),
|
|
71
72
|
onClick: () => {
|
|
72
|
-
|
|
73
|
-
() =>
|
|
74
|
-
"
|
|
73
|
+
m(
|
|
74
|
+
() => ee(r, l, e.id),
|
|
75
|
+
a("meeting.editor.removeFailed")
|
|
75
76
|
);
|
|
76
77
|
},
|
|
77
78
|
"data-cy": "meeting-alias-remove",
|
|
@@ -79,193 +80,196 @@ function ce({
|
|
|
79
80
|
}
|
|
80
81
|
)
|
|
81
82
|
] }, e.id)) }),
|
|
82
|
-
/* @__PURE__ */ n("span", { className:
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ n("span", { className: t.editorRow, children: [
|
|
84
|
+
/* @__PURE__ */ i(
|
|
84
85
|
"input",
|
|
85
86
|
{
|
|
86
|
-
className:
|
|
87
|
-
value:
|
|
88
|
-
placeholder: "
|
|
89
|
-
disabled:
|
|
90
|
-
onChange: (e) =>
|
|
87
|
+
className: t.namingInput,
|
|
88
|
+
value: c,
|
|
89
|
+
placeholder: a("meeting.editor.aliasPlaceholder"),
|
|
90
|
+
disabled: o,
|
|
91
|
+
onChange: (e) => b(e.target.value),
|
|
91
92
|
onKeyDown: (e) => {
|
|
92
|
-
e.key !== "Enter" || !
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
}, "
|
|
93
|
+
e.key !== "Enter" || !c.trim() || m(async () => {
|
|
94
|
+
const d = await H(r, l, c);
|
|
95
|
+
return d && b(""), !!d;
|
|
96
|
+
}, a("meeting.editor.aliasFailed"));
|
|
96
97
|
},
|
|
97
98
|
"data-cy": "meeting-alias-input"
|
|
98
99
|
}
|
|
99
100
|
),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ i(
|
|
101
102
|
"button",
|
|
102
103
|
{
|
|
103
104
|
type: "button",
|
|
104
|
-
className:
|
|
105
|
-
disabled:
|
|
105
|
+
className: t.objectAction,
|
|
106
|
+
disabled: o || !c.trim(),
|
|
106
107
|
onClick: () => {
|
|
107
|
-
|
|
108
|
-
const e = await
|
|
109
|
-
return e &&
|
|
110
|
-
}, "
|
|
108
|
+
m(async () => {
|
|
109
|
+
const e = await H(r, l, c);
|
|
110
|
+
return e && b(""), !!e;
|
|
111
|
+
}, a("meeting.editor.aliasFailed"));
|
|
111
112
|
},
|
|
112
113
|
"data-cy": "meeting-alias-add",
|
|
113
|
-
children: "
|
|
114
|
+
children: a("meeting.editor.aliasAdd")
|
|
114
115
|
}
|
|
115
116
|
)
|
|
116
117
|
] })
|
|
117
118
|
] }),
|
|
118
|
-
/* @__PURE__ */ n("div", { className:
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
return /* @__PURE__ */ n("span", { className:
|
|
123
|
-
/* @__PURE__ */ n("span", { className:
|
|
124
|
-
e.roleTitle && /* @__PURE__ */ n("span", { className:
|
|
119
|
+
/* @__PURE__ */ n("div", { className: t.editorBlock, children: [
|
|
120
|
+
/* @__PURE__ */ i("span", { className: t.appearancesTitle, children: a("meeting.editor.relationsTitle") }),
|
|
121
|
+
C.length > 0 && /* @__PURE__ */ i("span", { className: t.editorList, children: C.map((e) => {
|
|
122
|
+
const d = e.subjectId === l ? e.objectId : e.subjectId;
|
|
123
|
+
return /* @__PURE__ */ n("span", { className: t.editorRow, children: [
|
|
124
|
+
/* @__PURE__ */ n("span", { className: t.editorWhat, children: [
|
|
125
|
+
e.roleTitle && /* @__PURE__ */ n("span", { className: t.objectRole, children: [
|
|
125
126
|
e.roleTitle,
|
|
126
127
|
" "
|
|
127
128
|
] }),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */ t("span", { className: a.objectPast, children: e.current ? "" : " — уже не так" })
|
|
129
|
+
/* @__PURE__ */ i("span", { className: t.objectWhere, children: a("meeting.editor.relationAt", {
|
|
130
|
+
name: Z.get(d) ?? "…"
|
|
131
|
+
}) }),
|
|
132
|
+
/* @__PURE__ */ i("span", { className: t.objectPast, children: e.current ? "" : a("meeting.editor.relationPast") })
|
|
133
133
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ i(
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
137
|
type: "button",
|
|
138
|
-
className:
|
|
139
|
-
disabled:
|
|
138
|
+
className: t.objectActionQuiet,
|
|
139
|
+
disabled: o,
|
|
140
140
|
onClick: () => {
|
|
141
|
-
|
|
142
|
-
() =>
|
|
143
|
-
"
|
|
141
|
+
m(
|
|
142
|
+
() => te(e.id),
|
|
143
|
+
a("meeting.editor.removeFailed")
|
|
144
144
|
);
|
|
145
145
|
},
|
|
146
146
|
"data-cy": "meeting-relation-remove",
|
|
147
|
-
children: "
|
|
147
|
+
children: a("meeting.editor.relationRemove")
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
] }, e.id);
|
|
151
151
|
}) }),
|
|
152
|
-
|
|
152
|
+
E.length === 0 ? /* @__PURE__ */ i("span", { className: t.objectHint, children: a("meeting.editor.noOrganizations") }) : /* @__PURE__ */ n("span", { className: t.editorRow, children: [
|
|
153
153
|
/* @__PURE__ */ n(
|
|
154
154
|
"select",
|
|
155
155
|
{
|
|
156
|
-
className:
|
|
157
|
-
value:
|
|
158
|
-
disabled:
|
|
159
|
-
onChange: (e) =>
|
|
156
|
+
className: t.namingInput,
|
|
157
|
+
value: y,
|
|
158
|
+
disabled: o,
|
|
159
|
+
onChange: (e) => F(e.target.value),
|
|
160
160
|
"data-cy": "meeting-relation-target",
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
162
|
+
/* @__PURE__ */ i("option", { value: "", children: a("meeting.editor.organizationOption") }),
|
|
163
|
+
E.map((e) => /* @__PURE__ */ i("option", { value: e.id, children: e.displayName }, e.id))
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ i(
|
|
168
168
|
"input",
|
|
169
169
|
{
|
|
170
|
-
className:
|
|
171
|
-
value:
|
|
172
|
-
placeholder: "
|
|
173
|
-
disabled:
|
|
174
|
-
onChange: (e) =>
|
|
170
|
+
className: t.namingInput,
|
|
171
|
+
value: S,
|
|
172
|
+
placeholder: a("meeting.editor.rolePlaceholder"),
|
|
173
|
+
disabled: o,
|
|
174
|
+
onChange: (e) => T(e.target.value),
|
|
175
175
|
"data-cy": "meeting-relation-role"
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ i(
|
|
179
179
|
"input",
|
|
180
180
|
{
|
|
181
|
-
className:
|
|
181
|
+
className: t.namingInput,
|
|
182
182
|
type: "date",
|
|
183
|
-
value:
|
|
184
|
-
title: "
|
|
185
|
-
disabled:
|
|
186
|
-
onChange: (e) =>
|
|
183
|
+
value: A,
|
|
184
|
+
title: a("meeting.editor.sinceTitle"),
|
|
185
|
+
disabled: o,
|
|
186
|
+
onChange: (e) => B(e.target.value)
|
|
187
187
|
}
|
|
188
188
|
),
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ i(
|
|
190
190
|
"input",
|
|
191
191
|
{
|
|
192
|
-
className:
|
|
192
|
+
className: t.namingInput,
|
|
193
193
|
type: "date",
|
|
194
|
-
value:
|
|
195
|
-
title: "
|
|
196
|
-
disabled:
|
|
197
|
-
onChange: (e) =>
|
|
194
|
+
value: R,
|
|
195
|
+
title: a("meeting.editor.untilTitle"),
|
|
196
|
+
disabled: o,
|
|
197
|
+
onChange: (e) => P(e.target.value)
|
|
198
198
|
}
|
|
199
199
|
),
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ i(
|
|
201
201
|
"button",
|
|
202
202
|
{
|
|
203
203
|
type: "button",
|
|
204
|
-
className:
|
|
205
|
-
disabled:
|
|
204
|
+
className: t.objectAction,
|
|
205
|
+
disabled: o || !y,
|
|
206
206
|
onClick: () => {
|
|
207
|
-
|
|
207
|
+
m(async () => {
|
|
208
208
|
const e = await ae(
|
|
209
|
+
r,
|
|
209
210
|
l,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
A ? new Date(A).toISOString() : null
|
|
211
|
+
{ objectType: "ORGANIZATION", objectId: y },
|
|
212
|
+
S,
|
|
213
|
+
A ? new Date(A).toISOString() : null,
|
|
214
|
+
R ? new Date(R).toISOString() : null
|
|
215
215
|
);
|
|
216
|
-
return e && (
|
|
217
|
-
}, "
|
|
216
|
+
return e && (F(""), T(""), B(""), P("")), !!e;
|
|
217
|
+
}, a("meeting.editor.relationFailed"));
|
|
218
218
|
},
|
|
219
219
|
"data-cy": "meeting-relation-add",
|
|
220
|
-
children: "
|
|
220
|
+
children: a("meeting.editor.relationAdd")
|
|
221
221
|
}
|
|
222
222
|
)
|
|
223
223
|
] })
|
|
224
224
|
] }),
|
|
225
|
-
/* @__PURE__ */ n("div", { className:
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */ n("span", { className:
|
|
225
|
+
/* @__PURE__ */ n("div", { className: t.editorBlock, children: [
|
|
226
|
+
/* @__PURE__ */ i("span", { className: t.appearancesTitle, children: a("meeting.editor.mergeTitle") }),
|
|
227
|
+
M.length === 0 ? /* @__PURE__ */ i("span", { className: t.objectHint, children: a("meeting.editor.noSiblings") }) : /* @__PURE__ */ n(q, { children: [
|
|
228
|
+
/* @__PURE__ */ i("span", { className: t.objectHint, children: a("meeting.editor.mergeWarning") }),
|
|
229
|
+
/* @__PURE__ */ n("span", { className: t.editorRow, children: [
|
|
230
230
|
/* @__PURE__ */ n(
|
|
231
231
|
"select",
|
|
232
232
|
{
|
|
233
|
-
className:
|
|
234
|
-
value:
|
|
235
|
-
disabled:
|
|
236
|
-
onChange: (e) =>
|
|
233
|
+
className: t.namingInput,
|
|
234
|
+
value: N,
|
|
235
|
+
disabled: o,
|
|
236
|
+
onChange: (e) => _(e.target.value),
|
|
237
237
|
"data-cy": "meeting-merge-target",
|
|
238
238
|
children: [
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
|
|
239
|
+
/* @__PURE__ */ i("option", { value: "", children: a("meeting.editor.mergeOption") }),
|
|
240
|
+
M.map((e) => /* @__PURE__ */ i("option", { value: e.id, children: e.displayName }, e.id))
|
|
241
241
|
]
|
|
242
242
|
}
|
|
243
243
|
),
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ i(
|
|
245
245
|
"button",
|
|
246
246
|
{
|
|
247
247
|
type: "button",
|
|
248
|
-
className:
|
|
249
|
-
disabled:
|
|
248
|
+
className: t.objectAction,
|
|
249
|
+
disabled: o || !N,
|
|
250
250
|
onClick: () => {
|
|
251
|
-
p(!0), h(null),
|
|
251
|
+
p(!0), h(null), ie(r, l, N).then(
|
|
252
252
|
(e) => {
|
|
253
253
|
if (p(!1), !e.ok) {
|
|
254
|
-
h(
|
|
254
|
+
h(
|
|
255
|
+
e.reason ?? a(
|
|
256
|
+
e.code === "NO_TARGET" ? "meeting.editor.mergePick" : "meeting.editor.mergeFailed"
|
|
257
|
+
)
|
|
258
|
+
);
|
|
255
259
|
return;
|
|
256
260
|
}
|
|
257
|
-
|
|
261
|
+
f(), L(N);
|
|
258
262
|
}
|
|
259
263
|
);
|
|
260
264
|
},
|
|
261
265
|
"data-cy": "meeting-merge",
|
|
262
|
-
children: "
|
|
266
|
+
children: a("meeting.editor.mergeAction")
|
|
263
267
|
}
|
|
264
268
|
)
|
|
265
269
|
] })
|
|
266
270
|
] })
|
|
267
271
|
] }),
|
|
268
|
-
|
|
272
|
+
w && /* @__PURE__ */ i("span", { className: t.namingError, children: w })
|
|
269
273
|
] });
|
|
270
274
|
}
|
|
271
275
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeetingPanelError.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingPanelError.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeetingPanelError.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingPanelError.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EAAE,MAA8B,GAC1C,EAAE,sBAAsB,2CAuBxB"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as c } from "react-i18next";
|
|
3
|
+
import e from "./MeetingPage.module.css.js";
|
|
4
|
+
function E({
|
|
5
|
+
onRetry: t,
|
|
6
|
+
what: n,
|
|
6
7
|
message: l,
|
|
7
|
-
retryLabel: s
|
|
8
|
-
"data-cy":
|
|
8
|
+
retryLabel: s,
|
|
9
|
+
"data-cy": a = "meeting-panel-error"
|
|
9
10
|
}) {
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
11
|
+
const { t: r } = c("ui"), i = l ?? (n ? r("meeting.panelError.textWhat", { what: n }) : r("meeting.panelError.text"));
|
|
12
|
+
return /* @__PURE__ */ p("span", { className: e.panelError, role: "status", "data-cy": a, children: [
|
|
13
|
+
/* @__PURE__ */ o("span", { className: e.panelErrorText, children: i }),
|
|
14
|
+
t ? /* @__PURE__ */ o(
|
|
14
15
|
"button",
|
|
15
16
|
{
|
|
16
17
|
type: "button",
|
|
17
|
-
className:
|
|
18
|
-
onClick:
|
|
19
|
-
"data-cy": `${
|
|
20
|
-
children: s
|
|
18
|
+
className: e.panelErrorRetry,
|
|
19
|
+
onClick: t,
|
|
20
|
+
"data-cy": `${a}-retry`,
|
|
21
|
+
children: s ?? r("meeting.panelError.retry")
|
|
21
22
|
}
|
|
22
23
|
) : null
|
|
23
24
|
] });
|
|
24
25
|
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
E as MeetingPanelError
|
|
27
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeetingPersonAppearances.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingPersonAppearances.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeetingPersonAppearances.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingPersonAppearances.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,KAAS,GACV,EAAE,6BAA6B,kDAiK/B"}
|