@overvis/hmi-workspace-ui 0.1.0 → 0.1.2
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/alarm-list-DKFio0hg.js +414 -0
- package/dist/alarm-rule-dialog-mb4_nHRW.js +417 -0
- package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-CfZXTWkK.js} +123 -125
- package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-DBLSkrrG.js} +15 -18
- package/dist/alert-dialog-D_iDv2lQ.js +891 -0
- package/dist/{base-revision-YCO27zR4.js → base-revision-DLF9EnGV.js} +26 -29
- package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D5R6Fz74.js} +6 -7
- package/dist/{catalog-list-DjZojYLJ.js → catalog-list-BkWosvh1.js} +2 -4
- package/dist/{code-editor-BVimvjDV.js → code-editor-DCM0KdMJ.js} +9 -6
- package/dist/dashboard-bindings.js +1 -2
- package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-DLc11Vzu.js} +335 -359
- package/dist/{de-14WdmJxZ.js → de-Z2er-E5v.js} +4 -2
- package/dist/diagnostic-text-CYZFPiND.js +116 -0
- package/dist/{dialogs-D_v1LeH4.js → dialogs-BX023zml.js} +2523 -2590
- package/dist/{dialogs-B6BRnf3Q.js → dialogs-DEOg9lxy.js} +219 -227
- package/dist/{display-DmOo23mi.js → display-VYGzneE0.js} +4 -6
- package/dist/{editor-language-To9MxloY.js → editor-language-CGENZxbI.js} +3 -5
- package/dist/editor-page-CaN52OQh.js +1337 -0
- package/dist/{en-BgercpT0.js → en-CKPPL6bQ.js} +4 -2
- package/dist/entity-controls-DJT47yeV.js +71 -0
- package/dist/errors-BAWoH_5w.js +25 -0
- package/dist/{footer-DC-Q0052.js → footer-CbPMP8aq.js} +2404 -2515
- package/dist/host.js +8254 -675
- package/dist/{i18n-BgzakKoC.js → i18n-ChjEbYEg.js} +77 -90
- package/dist/i18n.js +1 -2
- package/dist/index.js +5168 -5353
- package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
- package/dist/{list-page-CvsdZb86.js → list-page-Fa29SkaJ.js} +116 -123
- package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-DvXIYc1Z.js} +6 -6
- package/dist/{location-picker-renderer-CjCxg6ai.js → location-picker-renderer-B1_-n8lf.js} +3 -4
- package/dist/{model-B8gGi4OK.js → model-tpg_xpFB.js} +1 -2
- package/dist/{notice-card-DyGywFsW.js → notice-card-V_0K0lO0.js} +54 -58
- package/dist/page-B5te_1Lc.js +449 -0
- package/dist/{page-v6LCwswN.js → page-BorlLnMX.js} +92 -100
- package/dist/page-DxF7FOve.js +507 -0
- package/dist/panel-DuZD-cBP.js +949 -0
- package/dist/parameter-values.js +3 -16
- package/dist/{pl-lQ9HXV9k.js → pl-DVABrn5G.js} +4 -2
- package/dist/presence-code-DsabLTZs.js +73 -0
- package/dist/{query-gate-DVhNIkge.js → query-gate-BbIo1Xrj.js} +6 -6
- package/dist/{provider-DoEpKcQ-.js → quick-report-BcZsfkCZ.js} +9423 -5102
- package/dist/{retention-BYXNpYmR.js → retention-C7EZsq8u.js} +4 -6
- package/dist/retention-note-CmMeHV_u.js +40 -0
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{ru-qTKINoUj.js → ru-CBRLC_xM.js} +8 -6
- package/dist/run-text-CDdfbKbg.js +112 -0
- package/dist/{search-D4rDnE9T.js → search-C6xQ_Hvo.js} +26 -29
- package/dist/{sections-kCOyc4NR.js → sections-D_SBfVzV.js} +2 -3
- package/dist/{select-BKiOWdSr.js → select-nNLG-AMz.js} +17 -23
- package/dist/{spinner-C-HPNxOc.js → spinner-B-KLtBjp.js} +182 -201
- package/dist/src/code-editor/code-editor.d.ts +3 -0
- package/dist/src/code-editor/taskfile-language.d.ts +22 -2
- package/dist/src/i18n/catalogs/de/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/de.d.ts +3 -0
- package/dist/src/i18n/catalogs/en/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/en.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl.d.ts +3 -0
- package/dist/src/i18n/catalogs/ru/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/ru/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/ru.d.ts +7 -4
- package/dist/src/i18n/catalogs/uk/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/uk/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/uk.d.ts +7 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/workspace/graphics/inspector/item.d.ts +6 -6
- package/dist/src/workspace/local-workspace-app.d.ts +1 -1
- package/dist/src/workspace/routes.d.ts +1 -1
- package/dist/{starter-fields-BRLX0z-v.js → starter-fields-7S3LmtGa.js} +154 -157
- package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
- package/dist/styles.css +1 -1
- package/dist/ui.js +334 -374
- package/dist/{uk-CwpJAxmx.js → uk-17pbVYZa.js} +8 -6
- package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-Clb-7xRY.js} +14 -17
- package/package.json +15 -9
- package/dist/alarm-list-BL3xQ5Lf.js +0 -423
- package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
- package/dist/alert-B8MAoIO8.js +0 -45
- package/dist/alert-dialog-CYkuMg5D.js +0 -129
- package/dist/api-error-9rQmUN5L.js +0 -93
- package/dist/breadcrumb-DzVL1yHa.js +0 -74
- package/dist/button-6SxPBYMz.js +0 -44
- package/dist/context-u9KJQmdB.js +0 -102
- package/dist/copyable-id-DYGiAcnq.js +0 -40
- package/dist/dashboard-context-CBfG6DoT.js +0 -191
- package/dist/date-time-picker-C3FhMXk6.js +0 -266
- package/dist/diagnostic-text-BAkzW0SE.js +0 -111
- package/dist/diagnostic-text-DiKd2i1w.js +0 -76
- package/dist/dialog-BIhQXcZC.js +0 -237
- package/dist/dialog-BqyIxMD-.js +0 -54
- package/dist/dropdown-menu-DSzbBq3v.js +0 -136
- package/dist/editor-page-BiSZJz5b.js +0 -1353
- package/dist/empty-B-QJ-06w.js +0 -59
- package/dist/entity-controls-D1K4Ot3O.js +0 -76
- package/dist/errors-CcsvDHu8.js +0 -26
- package/dist/history-page-sAAhG54V.js +0 -1400
- package/dist/icon-D-pR9htW.js +0 -57
- package/dist/index-page-DMH82fZe.js +0 -214
- package/dist/item-B5SaTFQU.js +0 -120
- package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
- package/dist/mutations-THtGG6Ai.js +0 -240
- package/dist/page-2KPemaAj.js +0 -328
- package/dist/page-6rIoTg2L.js +0 -459
- package/dist/page-C6giEoEd.js +0 -1935
- package/dist/page-DCbTxKsi.js +0 -313
- package/dist/page-DWO427hT.js +0 -208
- package/dist/page-LXu_2zm3.js +0 -137
- package/dist/page-aaUiVOnk.js +0 -513
- package/dist/page-header-RB2YFWlE.js +0 -55
- package/dist/page-title-CdCbiLt8.js +0 -14
- package/dist/panel-DDy8tUNR.js +0 -338
- package/dist/presence-code-BfSXr50g.js +0 -83
- package/dist/progress-C7cxNJA1.js +0 -83
- package/dist/provider-BOeYHi0n.js +0 -134
- package/dist/quick-report-CUVJnbKP.js +0 -416
- package/dist/radio-group-CZGqVbkJ.js +0 -26
- package/dist/retention-note-CHhA6gjY.js +0 -42
- package/dist/run-text-DvaO8LDF.js +0 -113
- package/dist/select-eNgZdZ30.js +0 -521
- package/dist/skeleton-6yk8Tdh5.js +0 -19
- package/dist/slider-DorDsoF8.js +0 -37
- package/dist/status-page-DAHiKM9P.js +0 -3286
- package/dist/switch-BqD0RH_G.js +0 -18
- package/dist/table-Q2-voLuw.js +0 -65
- package/dist/tabs-CSIucYFP.js +0 -57
- package/dist/theme-provider-BkRohQFU.js +0 -61
- package/dist/toggle-group-9Bs0Mm3r.js +0 -82
- package/dist/trpc-CvJUuUXp.js +0 -153
- package/dist/utils-CX-Pz5p6.js +0 -8
- package/dist/writability-BuH-spxv.js +0 -57
|
@@ -4,7 +4,7 @@ import { toast as f } from "sonner";
|
|
|
4
4
|
import { jsx as p } from "react/jsx-runtime";
|
|
5
5
|
import { Type as m } from "typebox";
|
|
6
6
|
import { Compile as h } from "typebox/compile";
|
|
7
|
-
|
|
7
|
+
// src/i18n/locale.ts
|
|
8
8
|
var g = "PARAGLIDE_LOCALE", _ = l(), v = _.getLocale;
|
|
9
9
|
function y() {
|
|
10
10
|
if (typeof window > "u") return c;
|
|
@@ -33,7 +33,7 @@ async function x(e = y()) {
|
|
|
33
33
|
}
|
|
34
34
|
async function S(e) {
|
|
35
35
|
await _.setLocale(e, (e) => {
|
|
36
|
-
if (b(e),
|
|
36
|
+
if (b(e), typeof window < "u") {
|
|
37
37
|
try {
|
|
38
38
|
window.localStorage.setItem(g, e);
|
|
39
39
|
} catch {}
|
|
@@ -41,26 +41,24 @@ async function S(e) {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
//#region src/i18n/use-locale.ts
|
|
44
|
+
// src/i18n/use-locale.ts
|
|
46
45
|
function C() {
|
|
47
46
|
return s(_.subscribe, _.getLocale, _.getLocale);
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
//#region src/i18n/messages.ts
|
|
48
|
+
// src/i18n/messages.ts
|
|
51
49
|
var w = u({
|
|
52
|
-
en: () => import("./en-
|
|
53
|
-
pl: () => import("./pl-
|
|
54
|
-
de: () => import("./de-
|
|
55
|
-
uk: () => import("./uk-
|
|
56
|
-
ru: () => import("./ru-
|
|
50
|
+
en: () => import("./en-CKPPL6bQ.js"),
|
|
51
|
+
pl: () => import("./pl-DVABrn5G.js"),
|
|
52
|
+
de: () => import("./de-Z2er-E5v.js"),
|
|
53
|
+
uk: () => import("./uk-17pbVYZa.js"),
|
|
54
|
+
ru: () => import("./ru-CBRLC_xM.js")
|
|
57
55
|
});
|
|
58
56
|
_.register(w.load);
|
|
59
57
|
var ee = w.get, T = null;
|
|
60
58
|
function E() {
|
|
61
59
|
return T ?? v();
|
|
62
60
|
}
|
|
63
|
-
async function
|
|
61
|
+
async function te(e, t) {
|
|
64
62
|
await w.load(e);
|
|
65
63
|
let n = T;
|
|
66
64
|
T = e;
|
|
@@ -70,15 +68,14 @@ async function D(e, t) {
|
|
|
70
68
|
T = n;
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
|
-
function
|
|
71
|
+
function D(e, ...t) {
|
|
74
72
|
return w.get(E())(e, ...t);
|
|
75
73
|
}
|
|
76
|
-
function
|
|
74
|
+
function O() {
|
|
77
75
|
return w.get(C());
|
|
78
76
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
function A({ message: e, record: t }) {
|
|
77
|
+
// src/ui/message-history/legacy-content.tsx
|
|
78
|
+
function k({ message: e, record: t }) {
|
|
82
79
|
let n = a(null);
|
|
83
80
|
return r(() => {
|
|
84
81
|
n.current && t(n.current.textContent);
|
|
@@ -88,13 +85,12 @@ function A({ message: e, record: t }) {
|
|
|
88
85
|
children: typeof e == "function" ? e() : e
|
|
89
86
|
});
|
|
90
87
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var j = m.Object({
|
|
88
|
+
// src/ui/message-history/model.ts
|
|
89
|
+
var A = m.Object({
|
|
94
90
|
workspaceId: m.Optional(m.String()),
|
|
95
91
|
workspaceName: m.Optional(m.String()),
|
|
96
92
|
href: m.Optional(m.String())
|
|
97
|
-
}),
|
|
93
|
+
}), j = m.Object({
|
|
98
94
|
id: m.String(),
|
|
99
95
|
text: m.String(),
|
|
100
96
|
kind: m.Union([
|
|
@@ -107,31 +103,30 @@ var j = m.Object({
|
|
|
107
103
|
minimum: 0,
|
|
108
104
|
maximum: 864e13
|
|
109
105
|
}),
|
|
110
|
-
scope:
|
|
106
|
+
scope: A,
|
|
111
107
|
seen: m.Boolean()
|
|
112
108
|
});
|
|
113
|
-
function
|
|
109
|
+
function M(e) {
|
|
114
110
|
return e?.startsWith("/") && !e.startsWith("//") && !Array.from(e).some((e) => e === "\\" || e.charCodeAt(0) <= 32) ? e : void 0;
|
|
115
111
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
function F() {
|
|
112
|
+
// src/ui/message-history/emit.ts
|
|
113
|
+
var N = 0;
|
|
114
|
+
function P() {
|
|
120
115
|
let e = Date.now();
|
|
121
|
-
return
|
|
116
|
+
return N = e < Math.floor(N) ? e : Math.max(e, N + .001), N;
|
|
122
117
|
}
|
|
123
|
-
function
|
|
118
|
+
function ne(e, t, n = f) {
|
|
124
119
|
function r(r, i, a) {
|
|
125
120
|
if (!e.isActive()) return;
|
|
126
121
|
let { href: o, ...s } = {
|
|
127
122
|
...t,
|
|
128
123
|
...a
|
|
129
|
-
}, c =
|
|
124
|
+
}, c = M(o), l = crypto.randomUUID();
|
|
130
125
|
e.add({
|
|
131
126
|
id: l,
|
|
132
127
|
kind: r,
|
|
133
128
|
text: i,
|
|
134
|
-
time:
|
|
129
|
+
time: P(),
|
|
135
130
|
seen: !1,
|
|
136
131
|
scope: {
|
|
137
132
|
...s,
|
|
@@ -154,28 +149,28 @@ function te(e, t, n = f) {
|
|
|
154
149
|
}
|
|
155
150
|
};
|
|
156
151
|
}
|
|
157
|
-
function
|
|
152
|
+
function re(e, t, n = {}) {
|
|
158
153
|
f[e](t, {
|
|
159
154
|
...n.id == null ? {} : { id: n.id },
|
|
160
155
|
...n.description == null ? {} : { description: n.description },
|
|
161
156
|
...n.action == null ? {} : { action: n.action }
|
|
162
157
|
});
|
|
163
158
|
}
|
|
164
|
-
function
|
|
159
|
+
function ie() {
|
|
165
160
|
f.dismiss();
|
|
166
161
|
}
|
|
167
|
-
function
|
|
162
|
+
function F(e, n, r = f) {
|
|
168
163
|
function i(i) {
|
|
169
164
|
return (a, o) => {
|
|
170
165
|
let s = crypto.randomUUID(), c = !1, l = (t) => {
|
|
171
166
|
if (c || !e.isActive()) return;
|
|
172
167
|
c = !0;
|
|
173
|
-
let { href: r, ...a } = n, o =
|
|
168
|
+
let { href: r, ...a } = n, o = M(r);
|
|
174
169
|
e.add({
|
|
175
170
|
id: s,
|
|
176
171
|
kind: i,
|
|
177
172
|
text: t,
|
|
178
|
-
time:
|
|
173
|
+
time: P(),
|
|
179
174
|
seen: !1,
|
|
180
175
|
scope: {
|
|
181
176
|
...a,
|
|
@@ -183,7 +178,7 @@ function I(e, n, r = f) {
|
|
|
183
178
|
}
|
|
184
179
|
});
|
|
185
180
|
};
|
|
186
|
-
return typeof a == "string" || typeof a == "number" || typeof a == "bigint" ? (l(String(a)), r[i](a, o)) : r[i](t(
|
|
181
|
+
return typeof a == "string" || typeof a == "number" || typeof a == "bigint" ? (l(String(a)), r[i](a, o)) : r[i](t(k, {
|
|
187
182
|
message: a,
|
|
188
183
|
record: l
|
|
189
184
|
}), o);
|
|
@@ -196,15 +191,15 @@ function I(e, n, r = f) {
|
|
|
196
191
|
error: i("error")
|
|
197
192
|
};
|
|
198
193
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
201
|
-
return e > t - 6048e5 && e <= t +
|
|
194
|
+
var I = h(j), L = 6e4;
|
|
195
|
+
function R(e, t) {
|
|
196
|
+
return e > t - 6048e5 && e <= t + L;
|
|
202
197
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
198
|
+
var z = /^overvis\.hmi\.messages\.v1:[^:]*:/;
|
|
199
|
+
function B(e, t) {
|
|
205
200
|
let n = `overvis.hmi.messages.v1:${encodeURIComponent(e ?? "")}:`, r = e !== void 0 && t !== void 0, i = [], a = /* @__PURE__ */ new Set(), o = !0, s = (e) => `${n}message:${e}`, c = (e) => `${n}seen:${e}`;
|
|
206
201
|
function l(n, i = !1) {
|
|
207
|
-
if (
|
|
202
|
+
if ((r || i) && e !== void 0 && t) try {
|
|
208
203
|
n(t);
|
|
209
204
|
} catch {
|
|
210
205
|
r = !1;
|
|
@@ -222,7 +217,7 @@ function V(e, t) {
|
|
|
222
217
|
}
|
|
223
218
|
}
|
|
224
219
|
function f(e, t) {
|
|
225
|
-
let n = e.filter((e) =>
|
|
220
|
+
let n = e.filter((e) => R(e.time, t)).sort((e, t) => t.time - e.time || t.id.localeCompare(e.id)).slice(0, 100), r = new Set(n.map((e) => e.id));
|
|
226
221
|
for (let t of e) r.has(t.id) || u(t.id);
|
|
227
222
|
return n;
|
|
228
223
|
}
|
|
@@ -231,7 +226,7 @@ function V(e, t) {
|
|
|
231
226
|
l((r) => {
|
|
232
227
|
let i = [], a = Array.from({ length: r.length }, (e, t) => r.key(t));
|
|
233
228
|
for (let t of a) {
|
|
234
|
-
let a = t?.match(
|
|
229
|
+
let a = t?.match(z)?.[0];
|
|
235
230
|
if (!t || !a || !t.startsWith(`${a}message:`)) continue;
|
|
236
231
|
let o = r.getItem(t);
|
|
237
232
|
if (o == null) continue;
|
|
@@ -242,17 +237,13 @@ function V(e, t) {
|
|
|
242
237
|
r.removeItem(t);
|
|
243
238
|
continue;
|
|
244
239
|
}
|
|
245
|
-
|
|
246
|
-
r.removeItem(t);
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
a === n && i.push({
|
|
240
|
+
!I.Check(s) || `${a}message:${s.id}` !== t || !R(s.time, e) ? r.removeItem(t) : a === n && i.push({
|
|
250
241
|
...s,
|
|
251
242
|
seen: r.getItem(c(s.id)) !== null
|
|
252
243
|
});
|
|
253
244
|
}
|
|
254
245
|
for (let e of a) {
|
|
255
|
-
let t = e?.match(
|
|
246
|
+
let t = e?.match(z)?.[0];
|
|
256
247
|
e && t && e.startsWith(`${t}seen:`) && r.getItem(`${t}message:${e.slice(`${t}seen:`.length)}`) === null && r.removeItem(e);
|
|
257
248
|
}
|
|
258
249
|
t = i;
|
|
@@ -291,43 +282,42 @@ function V(e, t) {
|
|
|
291
282
|
}
|
|
292
283
|
};
|
|
293
284
|
}
|
|
294
|
-
function
|
|
285
|
+
function V() {
|
|
295
286
|
try {
|
|
296
287
|
return window.localStorage;
|
|
297
288
|
} catch {
|
|
298
289
|
return;
|
|
299
290
|
}
|
|
300
291
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
W === e && (W = U);
|
|
292
|
+
// src/ui/message-history/legacy.ts
|
|
293
|
+
var H = B(void 0), U = H, W = {};
|
|
294
|
+
function G(e) {
|
|
295
|
+
return U = e, () => {
|
|
296
|
+
U === e && (U = H);
|
|
307
297
|
};
|
|
308
298
|
}
|
|
309
|
-
function
|
|
310
|
-
let t =
|
|
311
|
-
return
|
|
312
|
-
|
|
299
|
+
function K(e) {
|
|
300
|
+
let t = W;
|
|
301
|
+
return W = e, () => {
|
|
302
|
+
W === e && (W = t);
|
|
313
303
|
};
|
|
314
304
|
}
|
|
315
|
-
var
|
|
316
|
-
success: (e, t) =>
|
|
317
|
-
info: (e, t) =>
|
|
318
|
-
warning: (e, t) =>
|
|
319
|
-
error: (e, t) =>
|
|
320
|
-
},
|
|
321
|
-
function
|
|
322
|
-
return /* @__PURE__ */ p(
|
|
305
|
+
var q = {
|
|
306
|
+
success: (e, t) => F(U, W).success(e, t),
|
|
307
|
+
info: (e, t) => F(U, W).info(e, t),
|
|
308
|
+
warning: (e, t) => F(U, W).warning(e, t),
|
|
309
|
+
error: (e, t) => F(U, W).error(e, t)
|
|
310
|
+
}, J = B(void 0), Y = e(J), X = e({});
|
|
311
|
+
function ae({ identity: e, children: t }) {
|
|
312
|
+
return /* @__PURE__ */ p(oe, {
|
|
323
313
|
identity: e,
|
|
324
314
|
children: t
|
|
325
315
|
}, e === void 0 ? "anonymous" : `identity:${e}`);
|
|
326
316
|
}
|
|
327
|
-
function
|
|
328
|
-
let [n] = o(() =>
|
|
317
|
+
function oe({ identity: e, children: t }) {
|
|
318
|
+
let [n] = o(() => B(e, V()));
|
|
329
319
|
return r(() => {
|
|
330
|
-
let e =
|
|
320
|
+
let e = G(n);
|
|
331
321
|
n.setActive(!0), n.refresh();
|
|
332
322
|
let t = () => {
|
|
333
323
|
n.refresh();
|
|
@@ -337,34 +327,33 @@ function ie({ identity: e, children: t }) {
|
|
|
337
327
|
window.addEventListener("storage", r), window.addEventListener("focus", t);
|
|
338
328
|
let i = window.setInterval(t, 6e4);
|
|
339
329
|
return () => {
|
|
340
|
-
e(), n.setActive(!1),
|
|
330
|
+
e(), n.setActive(!1), ie(), window.removeEventListener("storage", r), window.removeEventListener("focus", t), window.clearInterval(i);
|
|
341
331
|
};
|
|
342
332
|
}, [n]), /* @__PURE__ */ p(Y.Provider, {
|
|
343
333
|
value: n,
|
|
344
334
|
children: t
|
|
345
335
|
});
|
|
346
336
|
}
|
|
347
|
-
function
|
|
348
|
-
return r(() =>
|
|
337
|
+
function se({ scope: e, children: t }) {
|
|
338
|
+
return r(() => K(e), [e]), /* @__PURE__ */ p(X.Provider, {
|
|
349
339
|
value: e,
|
|
350
340
|
children: t
|
|
351
341
|
});
|
|
352
342
|
}
|
|
353
|
-
function
|
|
343
|
+
function Z() {
|
|
354
344
|
return n(Y);
|
|
355
345
|
}
|
|
356
|
-
function
|
|
346
|
+
function Q() {
|
|
357
347
|
return n(X);
|
|
358
348
|
}
|
|
359
|
-
function
|
|
360
|
-
let e =
|
|
349
|
+
function ce() {
|
|
350
|
+
let e = Z();
|
|
361
351
|
return s(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
362
352
|
}
|
|
363
|
-
|
|
364
|
-
//#region src/ui/message-history/toast.ts
|
|
353
|
+
// src/ui/message-history/toast.ts
|
|
365
354
|
function $() {
|
|
366
|
-
let e =
|
|
367
|
-
return i(() =>
|
|
355
|
+
let e = Z(), { workspaceId: t, workspaceName: n, href: r } = Q();
|
|
356
|
+
return i(() => ne(e, {
|
|
368
357
|
...t ? { workspaceId: t } : {},
|
|
369
358
|
...n ? { workspaceName: n } : {},
|
|
370
359
|
...r ? { href: r } : {}
|
|
@@ -375,9 +364,8 @@ function $() {
|
|
|
375
364
|
r
|
|
376
365
|
]);
|
|
377
366
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
function ce() {
|
|
367
|
+
// src/i18n/use-language-change.ts
|
|
368
|
+
function le() {
|
|
381
369
|
let e = C(), t = $(), [n, r] = o(!1);
|
|
382
370
|
async function i(e) {
|
|
383
371
|
if (d(e)) {
|
|
@@ -385,7 +373,7 @@ function ce() {
|
|
|
385
373
|
try {
|
|
386
374
|
await S(e);
|
|
387
375
|
} catch {
|
|
388
|
-
t.error(
|
|
376
|
+
t.error(D("language_load_failed"));
|
|
389
377
|
} finally {
|
|
390
378
|
r(!1);
|
|
391
379
|
}
|
|
@@ -397,5 +385,4 @@ function ce() {
|
|
|
397
385
|
changeLocale: i
|
|
398
386
|
};
|
|
399
387
|
}
|
|
400
|
-
|
|
401
|
-
export { y as _, se as a, S as b, ne as c, D as d, O as f, _ as g, C as h, ae as i, N as l, k as m, $ as n, Q as o, E as p, Z as r, J as s, ce as t, ee as u, v, x as y };
|
|
388
|
+
export { y as _, ce as a, S as b, re as c, te as d, D as f, _ as g, C as h, se as i, M as l, O as m, $ as n, Z as o, E as p, ae as r, q as s, le as t, ee as u, v, x as y };
|
package/dist/i18n.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { i as browserLocale, e as detectLocale, u as getLocale, l as getTranslations, n as inTranslationLocale, d as initializeLocale, t as setLocale, r as t, s as translationLocale, c as useLanguageChange, a as useLocale, o as useTranslation };
|
|
1
|
+
export { g as browserLocale, _ as detectLocale, v as getLocale, u as getTranslations, d as inTranslationLocale, y as initializeLocale, b as setLocale, f as t, p as translationLocale, t as useLanguageChange, h as useLocale, m as useTranslation } from "./i18n-ChjEbYEg.js";
|