@epam/statgpt-conversation-view 0.1.0-rc.1 → 0.1.0-rc.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/index.d.ts +3 -0
- package/index.js +10 -10
- package/index.mjs +338 -317
- package/package.json +6 -6
package/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as h, jsxs as b, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import ge, { createContext as Do, useState as C, useContext as xo, useCallback as R, useMemo as ce, useEffect as O, useRef as ue, startTransition as
|
|
4
|
-
import { Role as Ne, DialSchemaProperties as Un, SharePermission as
|
|
3
|
+
import ge, { createContext as Do, useState as C, useContext as xo, useCallback as R, useMemo as ce, useEffect as O, useRef as ue, startTransition as yl } from "react";
|
|
4
|
+
import { Role as Ne, DialSchemaProperties as Un, SharePermission as Cl } from "@epam/ai-dial-shared";
|
|
5
5
|
import L from "classnames";
|
|
6
|
-
import { IconPlayerStopFilled as
|
|
7
|
-
import { useFloating as xn, autoUpdate as To, offset as Oo, flip as _o, shift as Lo, useClick as Ro, useDismiss as Io, useInteractions as Mn, useRole as
|
|
6
|
+
import { IconPlayerStopFilled as El, IconX as Al, IconCheck as Dl, IconCopy as Mo, IconCalendarEvent as xl, IconChevronDown as Ml, IconPlus as So, IconSearch as Sl, IconCircleFilled as Tl, IconClock as Ol, IconArrowUpRight as _l, IconExternalLink as Ll, IconPointFilled as Rl } from "@tabler/icons-react";
|
|
7
|
+
import { useFloating as xn, autoUpdate as To, offset as Oo, flip as _o, shift as Lo, useClick as Ro, useDismiss as Io, useInteractions as Mn, useRole as Il, FloatingPortal as Po, FloatingOverlay as Pl, FloatingFocusManager as Vl, arrow as $l, useHover as Wl, safePolygon as Hl } from "@floating-ui/react";
|
|
8
8
|
import Vo from "react-markdown";
|
|
9
9
|
import $o from "remark-gfm";
|
|
10
|
-
import
|
|
11
|
-
import { FixedSizeList as
|
|
12
|
-
import
|
|
10
|
+
import Gl from "react-flatpickr";
|
|
11
|
+
import { FixedSizeList as Bl } from "react-window";
|
|
12
|
+
import Fl from "react-virtualized-auto-sizer";
|
|
13
13
|
import Wo from "echarts-for-react";
|
|
14
14
|
import { AgGridReact as Ho } from "ag-grid-react";
|
|
15
|
-
import { ModuleRegistry as
|
|
16
|
-
import { format as
|
|
17
|
-
import { isEqual as
|
|
15
|
+
import { ModuleRegistry as Ul, AllCommunityModule as zl } from "ag-grid-community";
|
|
16
|
+
import { format as jl, isValid as Yl } from "date-fns";
|
|
17
|
+
import { isEqual as Jl } from "lodash";
|
|
18
18
|
const Go = Do(
|
|
19
19
|
void 0
|
|
20
20
|
), r1 = ({
|
|
@@ -38,6 +38,33 @@ const Go = Do(
|
|
|
38
38
|
"useAdvancedView must be used within a AdvancedViewProvider"
|
|
39
39
|
);
|
|
40
40
|
return e;
|
|
41
|
+
}, Bo = Do(
|
|
42
|
+
void 0
|
|
43
|
+
), o1 = ({
|
|
44
|
+
children: e
|
|
45
|
+
}) => {
|
|
46
|
+
const [n, t] = C(""), [r, o] = C(""), [i, a] = C(), [d, l] = C();
|
|
47
|
+
return /* @__PURE__ */ h(
|
|
48
|
+
Bo.Provider,
|
|
49
|
+
{
|
|
50
|
+
value: {
|
|
51
|
+
onboardingFileName: n,
|
|
52
|
+
onboardingFilePath: r,
|
|
53
|
+
isShowOnboarding: i,
|
|
54
|
+
onboardingFileSchema: d,
|
|
55
|
+
setOnboardingFileName: t,
|
|
56
|
+
setOnboardingFilePath: o,
|
|
57
|
+
setIsShowOnboarding: a,
|
|
58
|
+
setOnboardingFileSchema: l
|
|
59
|
+
},
|
|
60
|
+
children: e
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}, De = () => {
|
|
64
|
+
const e = xo(Bo);
|
|
65
|
+
if (e === void 0)
|
|
66
|
+
throw new Error("useOnboarding must be used within a OnboardingProvider");
|
|
67
|
+
return e;
|
|
41
68
|
};
|
|
42
69
|
var zn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(zn || {});
|
|
43
70
|
const Ve = ({
|
|
@@ -61,7 +88,7 @@ const Ve = ({
|
|
|
61
88
|
"aria-label": "button",
|
|
62
89
|
children: e
|
|
63
90
|
}
|
|
64
|
-
),
|
|
91
|
+
), Kl = ({
|
|
65
92
|
value: e,
|
|
66
93
|
inputId: n,
|
|
67
94
|
placeholder: t = "",
|
|
@@ -101,7 +128,7 @@ const Ve = ({
|
|
|
101
128
|
}) => /* @__PURE__ */ b("div", { className: L("input w-full flex flex-row", t), children: [
|
|
102
129
|
e,
|
|
103
130
|
/* @__PURE__ */ h(
|
|
104
|
-
|
|
131
|
+
Kl,
|
|
105
132
|
{
|
|
106
133
|
cssClass: L(
|
|
107
134
|
"border-0 bg-transparent p-0 h-full shadow-none flex-1 min-w-0 rounded-none",
|
|
@@ -112,8 +139,8 @@ const Ve = ({
|
|
|
112
139
|
),
|
|
113
140
|
n
|
|
114
141
|
] });
|
|
115
|
-
var
|
|
116
|
-
const
|
|
142
|
+
var Fo = /* @__PURE__ */ ((e) => (e.Enter = "Enter", e))(Fo || {});
|
|
143
|
+
const Uo = ({
|
|
117
144
|
inProcess: e,
|
|
118
145
|
containerClasses: n,
|
|
119
146
|
inputClasses: t,
|
|
@@ -138,7 +165,7 @@ const Fo = ({
|
|
|
138
165
|
placeholder: r,
|
|
139
166
|
onChange: c,
|
|
140
167
|
onKeyDown: (f) => {
|
|
141
|
-
f.key ===
|
|
168
|
+
f.key === Fo.Enter && !f.shiftKey && s(d.trim());
|
|
142
169
|
},
|
|
143
170
|
cssClass: L(t, "input-for-ask"),
|
|
144
171
|
value: d,
|
|
@@ -147,7 +174,7 @@ const Fo = ({
|
|
|
147
174
|
{
|
|
148
175
|
buttonClassName: "input-for-ask-button",
|
|
149
176
|
onClick: () => a == null ? void 0 : a(),
|
|
150
|
-
icon: /* @__PURE__ */ h(
|
|
177
|
+
icon: /* @__PURE__ */ h(El, {})
|
|
151
178
|
}
|
|
152
179
|
) : /* @__PURE__ */ h(
|
|
153
180
|
Ve,
|
|
@@ -159,7 +186,7 @@ const Fo = ({
|
|
|
159
186
|
)
|
|
160
187
|
}
|
|
161
188
|
);
|
|
162
|
-
},
|
|
189
|
+
}, Zl = ({ title: e, text: n, onClick: t }) => /* @__PURE__ */ h(
|
|
163
190
|
"button",
|
|
164
191
|
{
|
|
165
192
|
type: "button",
|
|
@@ -168,32 +195,32 @@ const Fo = ({
|
|
|
168
195
|
"aria-label": "button",
|
|
169
196
|
children: /* @__PURE__ */ h("h4", { children: e })
|
|
170
197
|
}
|
|
171
|
-
), Br = 160,
|
|
172
|
-
`[${
|
|
198
|
+
), Br = 160, ql = ':;,=/{}%&\\"', Xl = new RegExp(
|
|
199
|
+
`[${ql}]|(\r
|
|
173
200
|
|
|
|
174
201
|
|\r| )|[\0-]`,
|
|
175
202
|
"gm"
|
|
176
|
-
),
|
|
177
|
-
name:
|
|
203
|
+
), Ql = (e, n, t, r) => ({
|
|
204
|
+
name: ea(
|
|
178
205
|
r || `${t} ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`
|
|
179
206
|
),
|
|
180
207
|
folderId: `${e}/${n}`,
|
|
181
208
|
prompt: r
|
|
182
|
-
}),
|
|
209
|
+
}), ea = (e) => {
|
|
183
210
|
const n = (e == null ? void 0 : e.replace(/\r\n|\r/gm, `
|
|
184
211
|
`).split(`
|
|
185
|
-
`).map((r) => r.replace(
|
|
212
|
+
`).map((r) => r.replace(Xl, " ").trim()).filter(Boolean)[0]) ?? "";
|
|
186
213
|
return (n.length > Br ? n.substring(0, Br) : n).trim();
|
|
187
|
-
},
|
|
188
|
-
const n = Date.now(), t =
|
|
214
|
+
}, na = (e) => (e == null ? void 0 : e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-+|-+$/g, "").replace(/-/g, " ")) || "", zo = (e) => {
|
|
215
|
+
const n = Date.now(), t = na(e.name);
|
|
189
216
|
return `${e.folderId}/${t}-${n}`;
|
|
190
|
-
},
|
|
217
|
+
}, ta = (e, n, t, r, o, i) => {
|
|
191
218
|
const a = `${e}/${n}`;
|
|
192
219
|
return {
|
|
193
220
|
name: t,
|
|
194
221
|
folderId: a,
|
|
195
222
|
prompt: o,
|
|
196
|
-
id:
|
|
223
|
+
id: zo({ folderId: a, name: t }),
|
|
197
224
|
messages: [
|
|
198
225
|
{
|
|
199
226
|
role: Ne.Assistant,
|
|
@@ -210,8 +237,8 @@ const Fo = ({
|
|
|
210
237
|
...n,
|
|
211
238
|
name: n.name.split(/-\d+$/)[0]
|
|
212
239
|
})), Ce = () => /* @__PURE__ */ h("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ h("div", { className: "loader" }) });
|
|
213
|
-
var
|
|
214
|
-
const
|
|
240
|
+
var jo = /* @__PURE__ */ ((e) => (e.CONVERSATION = "CONVERSATION", e))(jo || {}), rt = /* @__PURE__ */ ((e) => (e.ME = "me", e.OTHERS = "others", e))(rt || {});
|
|
241
|
+
const ra = (e, n) => {
|
|
215
242
|
var t, r;
|
|
216
243
|
return ((r = (t = e == null ? void 0 : e.resources) == null ? void 0 : t.filter((o) => (o == null ? void 0 : o.parentPath) === n)) == null ? void 0 : r.map((o) => {
|
|
217
244
|
var d, l, c;
|
|
@@ -223,7 +250,7 @@ const ta = (e, n) => {
|
|
|
223
250
|
isShared: !0
|
|
224
251
|
};
|
|
225
252
|
})) || [];
|
|
226
|
-
},
|
|
253
|
+
}, Yo = (e) => ({ resourceTypes: [jo.CONVERSATION], with: e }), ot = ({
|
|
227
254
|
triggerButton: e,
|
|
228
255
|
options: n,
|
|
229
256
|
content: t,
|
|
@@ -294,7 +321,7 @@ const ta = (e, n) => {
|
|
|
294
321
|
}
|
|
295
322
|
)
|
|
296
323
|
] });
|
|
297
|
-
},
|
|
324
|
+
}, oa = (e) => /* @__PURE__ */ X.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), Jo = ({ userInfo: e, signOutAction: n, title: t }) => {
|
|
298
325
|
const r = ce(
|
|
299
326
|
() => (e == null ? void 0 : e.name.split(" ").map((a) => a[0].toUpperCase()).join("")) || "",
|
|
300
327
|
[e]
|
|
@@ -316,7 +343,7 @@ const ta = (e, n) => {
|
|
|
316
343
|
className: "p-3 items-center flex gap-1 text-primary fill-primary h3",
|
|
317
344
|
onClick: n,
|
|
318
345
|
children: [
|
|
319
|
-
/* @__PURE__ */ h(
|
|
346
|
+
/* @__PURE__ */ h(oa, { width: 20, height: 20 }),
|
|
320
347
|
t || "Sign out"
|
|
321
348
|
]
|
|
322
349
|
}
|
|
@@ -333,20 +360,20 @@ const ta = (e, n) => {
|
|
|
333
360
|
}
|
|
334
361
|
);
|
|
335
362
|
};
|
|
336
|
-
var
|
|
363
|
+
var ia = Object.defineProperty, vn = Object.getOwnPropertySymbols, Ko = Object.prototype.hasOwnProperty, Zo = Object.prototype.propertyIsEnumerable, Fr = (e, n, t) => n in e ? ia(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Yn = (e, n) => {
|
|
337
364
|
for (var t in n || (n = {}))
|
|
338
|
-
|
|
365
|
+
Ko.call(n, t) && Fr(e, t, n[t]);
|
|
339
366
|
if (vn)
|
|
340
367
|
for (var t of vn(n))
|
|
341
|
-
|
|
368
|
+
Zo.call(n, t) && Fr(e, t, n[t]);
|
|
342
369
|
return e;
|
|
343
370
|
}, Jn = (e, n) => {
|
|
344
371
|
var t = {};
|
|
345
372
|
for (var r in e)
|
|
346
|
-
|
|
373
|
+
Ko.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
|
|
347
374
|
if (e != null && vn)
|
|
348
375
|
for (var r of vn(e))
|
|
349
|
-
n.indexOf(r) < 0 &&
|
|
376
|
+
n.indexOf(r) < 0 && Zo.call(e, r) && (t[r] = e[r]);
|
|
350
377
|
return t;
|
|
351
378
|
};
|
|
352
379
|
/**
|
|
@@ -895,13 +922,13 @@ var Ke = je;
|
|
|
895
922
|
* Copyright (c) Paul O'Shannessy
|
|
896
923
|
* SPDX-License-Identifier: ISC
|
|
897
924
|
*/
|
|
898
|
-
var
|
|
925
|
+
var la = {
|
|
899
926
|
L: Ke.QrCode.Ecc.LOW,
|
|
900
927
|
M: Ke.QrCode.Ecc.MEDIUM,
|
|
901
928
|
Q: Ke.QrCode.Ecc.QUARTILE,
|
|
902
929
|
H: Ke.QrCode.Ecc.HIGH
|
|
903
|
-
},
|
|
904
|
-
function
|
|
930
|
+
}, qo = 128, Xo = "L", Qo = "#FFFFFF", ei = "#000000", ni = !1, ti = 1, aa = 4, sa = 0, ca = 0.1;
|
|
931
|
+
function ri(e, n = 0) {
|
|
905
932
|
const t = [];
|
|
906
933
|
return e.forEach(function(r, o) {
|
|
907
934
|
let i = null;
|
|
@@ -924,13 +951,13 @@ function ti(e, n = 0) {
|
|
|
924
951
|
});
|
|
925
952
|
}), t.join("");
|
|
926
953
|
}
|
|
927
|
-
function
|
|
954
|
+
function oi(e, n) {
|
|
928
955
|
return e.slice().map((t, r) => r < n.y || r >= n.y + n.h ? t : t.map((o, i) => i < n.x || i >= n.x + n.w ? o : !1));
|
|
929
956
|
}
|
|
930
|
-
function
|
|
957
|
+
function da(e, n, t, r) {
|
|
931
958
|
if (r == null)
|
|
932
959
|
return null;
|
|
933
|
-
const o = e.length + t * 2, i = Math.floor(n *
|
|
960
|
+
const o = e.length + t * 2, i = Math.floor(n * ca), a = o / n, d = (r.width || i) * a, l = (r.height || i) * a, c = r.x == null ? e.length / 2 - d / 2 : r.x * a, s = r.y == null ? e.length / 2 - l / 2 : r.y * a, u = r.opacity == null ? 1 : r.opacity;
|
|
934
961
|
let f = null;
|
|
935
962
|
if (r.excavate) {
|
|
936
963
|
let m = Math.floor(c), p = Math.floor(s), w = Math.ceil(d + c - m), k = Math.ceil(l + s - p);
|
|
@@ -939,10 +966,10 @@ function ca(e, n, t, r) {
|
|
|
939
966
|
const g = r.crossOrigin;
|
|
940
967
|
return { x: c, y: s, h: l, w: d, excavation: f, opacity: u, crossOrigin: g };
|
|
941
968
|
}
|
|
942
|
-
function
|
|
943
|
-
return n != null ? Math.max(Math.floor(n), 0) : e ?
|
|
969
|
+
function ua(e, n) {
|
|
970
|
+
return n != null ? Math.max(Math.floor(n), 0) : e ? aa : sa;
|
|
944
971
|
}
|
|
945
|
-
function
|
|
972
|
+
function ii({
|
|
946
973
|
value: e,
|
|
947
974
|
level: n,
|
|
948
975
|
minVersion: t,
|
|
@@ -956,7 +983,7 @@ function oi({
|
|
|
956
983
|
const m = (Array.isArray(e) ? e : [e]).reduce((p, w) => (p.push(...Ke.QrSegment.makeSegments(w)), p), []);
|
|
957
984
|
return Ke.QrCode.encodeSegments(
|
|
958
985
|
m,
|
|
959
|
-
|
|
986
|
+
la[n],
|
|
960
987
|
t,
|
|
961
988
|
void 0,
|
|
962
989
|
void 0,
|
|
@@ -965,7 +992,7 @@ function oi({
|
|
|
965
992
|
}, [e, n, t, d]);
|
|
966
993
|
const { cells: c, margin: s, numCells: u, calculatedImageSettings: f } = ge.useMemo(() => {
|
|
967
994
|
let g = l.getModules();
|
|
968
|
-
const m =
|
|
995
|
+
const m = ua(r, o), p = g.length + m * 2, w = da(
|
|
969
996
|
g,
|
|
970
997
|
a,
|
|
971
998
|
m,
|
|
@@ -986,23 +1013,23 @@ function oi({
|
|
|
986
1013
|
calculatedImageSettings: f
|
|
987
1014
|
};
|
|
988
1015
|
}
|
|
989
|
-
var
|
|
1016
|
+
var ha = (function() {
|
|
990
1017
|
try {
|
|
991
1018
|
new Path2D().addPath(new Path2D());
|
|
992
1019
|
} catch {
|
|
993
1020
|
return !1;
|
|
994
1021
|
}
|
|
995
1022
|
return !0;
|
|
996
|
-
})(),
|
|
1023
|
+
})(), fa = ge.forwardRef(
|
|
997
1024
|
function(n, t) {
|
|
998
1025
|
const r = n, {
|
|
999
1026
|
value: o,
|
|
1000
|
-
size: i =
|
|
1001
|
-
level: a =
|
|
1002
|
-
bgColor: d =
|
|
1003
|
-
fgColor: l =
|
|
1004
|
-
includeMargin: c =
|
|
1005
|
-
minVersion: s =
|
|
1027
|
+
size: i = qo,
|
|
1028
|
+
level: a = Xo,
|
|
1029
|
+
bgColor: d = Qo,
|
|
1030
|
+
fgColor: l = ei,
|
|
1031
|
+
includeMargin: c = ni,
|
|
1032
|
+
minVersion: s = ti,
|
|
1006
1033
|
boostLevel: u,
|
|
1007
1034
|
marginSize: f,
|
|
1008
1035
|
imageSettings: g
|
|
@@ -1022,7 +1049,7 @@ var ua = (function() {
|
|
|
1022
1049
|
v.current = B, typeof t == "function" ? t(B) : t && (t.current = B);
|
|
1023
1050
|
},
|
|
1024
1051
|
[t]
|
|
1025
|
-
), [A, S] = ge.useState(!1), { margin: M, cells: _, numCells: D, calculatedImageSettings: x } =
|
|
1052
|
+
), [A, S] = ge.useState(!1), { margin: M, cells: _, numCells: D, calculatedImageSettings: x } = ii({
|
|
1026
1053
|
value: o,
|
|
1027
1054
|
level: a,
|
|
1028
1055
|
minVersion: s,
|
|
@@ -1039,14 +1066,14 @@ var ua = (function() {
|
|
|
1039
1066
|
return;
|
|
1040
1067
|
let I = _;
|
|
1041
1068
|
const H = E.current, W = x != null && H !== null && H.complete && H.naturalHeight !== 0 && H.naturalWidth !== 0;
|
|
1042
|
-
W && x.excavation != null && (I =
|
|
1069
|
+
W && x.excavation != null && (I = oi(
|
|
1043
1070
|
_,
|
|
1044
1071
|
x.excavation
|
|
1045
1072
|
));
|
|
1046
1073
|
const F = window.devicePixelRatio || 1;
|
|
1047
1074
|
B.height = B.width = i * F;
|
|
1048
1075
|
const Z = i / D * F;
|
|
1049
|
-
$.scale(Z, Z), $.fillStyle = d, $.fillRect(0, 0, D, D), $.fillStyle = l,
|
|
1076
|
+
$.scale(Z, Z), $.fillStyle = d, $.fillRect(0, 0, D, D), $.fillStyle = l, ha ? $.fill(new Path2D(ri(I, M))) : _.forEach(function(ie, te) {
|
|
1050
1077
|
ie.forEach(function(le, fe) {
|
|
1051
1078
|
le && $.fillRect(fe + M, te + M, 1, 1);
|
|
1052
1079
|
});
|
|
@@ -1087,17 +1114,17 @@ var ua = (function() {
|
|
|
1087
1114
|
), U);
|
|
1088
1115
|
}
|
|
1089
1116
|
);
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1117
|
+
fa.displayName = "QRCodeCanvas";
|
|
1118
|
+
var li = ge.forwardRef(
|
|
1092
1119
|
function(n, t) {
|
|
1093
1120
|
const r = n, {
|
|
1094
1121
|
value: o,
|
|
1095
|
-
size: i =
|
|
1096
|
-
level: a =
|
|
1097
|
-
bgColor: d =
|
|
1098
|
-
fgColor: l =
|
|
1099
|
-
includeMargin: c =
|
|
1100
|
-
minVersion: s =
|
|
1122
|
+
size: i = qo,
|
|
1123
|
+
level: a = Xo,
|
|
1124
|
+
bgColor: d = Qo,
|
|
1125
|
+
fgColor: l = ei,
|
|
1126
|
+
includeMargin: c = ni,
|
|
1127
|
+
minVersion: s = ti,
|
|
1101
1128
|
boostLevel: u,
|
|
1102
1129
|
title: f,
|
|
1103
1130
|
marginSize: g,
|
|
@@ -1114,7 +1141,7 @@ var ii = ge.forwardRef(
|
|
|
1114
1141
|
"title",
|
|
1115
1142
|
"marginSize",
|
|
1116
1143
|
"imageSettings"
|
|
1117
|
-
]), { margin: w, cells: k, numCells: N, calculatedImageSettings: v } =
|
|
1144
|
+
]), { margin: w, cells: k, numCells: N, calculatedImageSettings: v } = ii({
|
|
1118
1145
|
value: o,
|
|
1119
1146
|
level: a,
|
|
1120
1147
|
minVersion: s,
|
|
@@ -1125,7 +1152,7 @@ var ii = ge.forwardRef(
|
|
|
1125
1152
|
size: i
|
|
1126
1153
|
});
|
|
1127
1154
|
let E = k, y = null;
|
|
1128
|
-
m != null && v != null && (v.excavation != null && (E =
|
|
1155
|
+
m != null && v != null && (v.excavation != null && (E = oi(
|
|
1129
1156
|
k,
|
|
1130
1157
|
v.excavation
|
|
1131
1158
|
)), y = /* @__PURE__ */ ge.createElement(
|
|
@@ -1141,7 +1168,7 @@ var ii = ge.forwardRef(
|
|
|
1141
1168
|
crossOrigin: v.crossOrigin
|
|
1142
1169
|
}
|
|
1143
1170
|
));
|
|
1144
|
-
const A =
|
|
1171
|
+
const A = ri(E, w);
|
|
1145
1172
|
return /* @__PURE__ */ ge.createElement(
|
|
1146
1173
|
"svg",
|
|
1147
1174
|
Yn({
|
|
@@ -1165,25 +1192,25 @@ var ii = ge.forwardRef(
|
|
|
1165
1192
|
);
|
|
1166
1193
|
}
|
|
1167
1194
|
);
|
|
1168
|
-
|
|
1169
|
-
var
|
|
1170
|
-
const
|
|
1171
|
-
invitationType:
|
|
1195
|
+
li.displayName = "QRCodeSVG";
|
|
1196
|
+
var ai = /* @__PURE__ */ ((e) => (e.LINK = "link", e))(ai || {});
|
|
1197
|
+
const si = "share", ga = (e, n) => ({
|
|
1198
|
+
invitationType: ai.LINK,
|
|
1172
1199
|
resources: [
|
|
1173
1200
|
{
|
|
1174
1201
|
url: `conversations/${encodeURI(e)}`
|
|
1175
1202
|
},
|
|
1176
1203
|
...n
|
|
1177
1204
|
]
|
|
1178
|
-
}),
|
|
1205
|
+
}), ma = (e) => {
|
|
1179
1206
|
var t;
|
|
1180
1207
|
const n = ((t = e == null ? void 0 : e.invitationLink) == null ? void 0 : t.split("/").at(-1)) || "";
|
|
1181
|
-
return `/${
|
|
1182
|
-
},
|
|
1208
|
+
return `/${si}/${n}`;
|
|
1209
|
+
}, wa = (e, n) => n == null ? void 0 : n.find((t) => {
|
|
1183
1210
|
var i, a, d, l;
|
|
1184
1211
|
const r = (a = (i = e == null ? void 0 : e.id) == null ? void 0 : i.split("/")) == null ? void 0 : a.pop(), o = ((l = (d = t == null ? void 0 : t.url) == null ? void 0 : d.split("/")) == null ? void 0 : l.pop()) || "";
|
|
1185
1212
|
return o === r || decodeURI(o) === r;
|
|
1186
|
-
}),
|
|
1213
|
+
}), pa = (e) => {
|
|
1187
1214
|
var t, r;
|
|
1188
1215
|
const n = (t = e == null ? void 0 : e.messages) == null ? void 0 : t.filter(
|
|
1189
1216
|
(o) => {
|
|
@@ -1249,9 +1276,9 @@ const Sn = ({
|
|
|
1249
1276
|
className: n,
|
|
1250
1277
|
title: e,
|
|
1251
1278
|
onClick: o,
|
|
1252
|
-
children: /* @__PURE__ */ h(
|
|
1279
|
+
children: /* @__PURE__ */ h(Al, { height: r || 20, width: t || 20 })
|
|
1253
1280
|
}
|
|
1254
|
-
),
|
|
1281
|
+
), va = ({
|
|
1255
1282
|
portalId: e,
|
|
1256
1283
|
state: n = ee.Opened,
|
|
1257
1284
|
heading: t,
|
|
@@ -1266,20 +1293,20 @@ const Sn = ({
|
|
|
1266
1293
|
const { refs: s, context: u } = xn({
|
|
1267
1294
|
open: n !== ee.Closed && !!n,
|
|
1268
1295
|
onOpenChange: o
|
|
1269
|
-
}), f =
|
|
1296
|
+
}), f = Il(u, { role: "dialog" }), g = Io(u, { outsidePress: !0 }), { getFloatingProps: m } = Mn([f, g]), p = R(
|
|
1270
1297
|
(w) => {
|
|
1271
1298
|
w == null || w.preventDefault(), w == null || w.stopPropagation(), o();
|
|
1272
1299
|
},
|
|
1273
1300
|
[o]
|
|
1274
1301
|
);
|
|
1275
1302
|
return /* @__PURE__ */ h(Po, { id: e, children: n !== ee.Closed && /* @__PURE__ */ h(
|
|
1276
|
-
|
|
1303
|
+
Pl,
|
|
1277
1304
|
{
|
|
1278
1305
|
className: L(
|
|
1279
1306
|
"z-[52] flex items-center justify-center bg-blackout p-4",
|
|
1280
1307
|
a
|
|
1281
1308
|
),
|
|
1282
|
-
children: /* @__PURE__ */ h(
|
|
1309
|
+
children: /* @__PURE__ */ h(Vl, { context: u, children: /* @__PURE__ */ b(
|
|
1283
1310
|
"div",
|
|
1284
1311
|
{
|
|
1285
1312
|
className: L(
|
|
@@ -1314,7 +1341,7 @@ const Sn = ({
|
|
|
1314
1341
|
) })
|
|
1315
1342
|
}
|
|
1316
1343
|
) });
|
|
1317
|
-
}, rn = (e) => e.state === ee.Closed ? null : /* @__PURE__ */ h(
|
|
1344
|
+
}, rn = (e) => e.state === ee.Closed ? null : /* @__PURE__ */ h(va, { ...e }), ba = ({
|
|
1318
1345
|
conversation: e,
|
|
1319
1346
|
locale: n,
|
|
1320
1347
|
onCloseModal: t,
|
|
@@ -1342,7 +1369,7 @@ const Sn = ({
|
|
|
1342
1369
|
var te;
|
|
1343
1370
|
const ie = N || window.location.origin;
|
|
1344
1371
|
if (N && N !== window.location.origin && E && y) {
|
|
1345
|
-
const le = (te = A == null ? void 0 : A.split(`/${
|
|
1372
|
+
const le = (te = A == null ? void 0 : A.split(`/${si}/`)) == null ? void 0 : te[1];
|
|
1346
1373
|
return `${ie}/${E}?${y}=${le}`;
|
|
1347
1374
|
}
|
|
1348
1375
|
return `${ie}/${n}${A}`;
|
|
@@ -1350,14 +1377,14 @@ const Sn = ({
|
|
|
1350
1377
|
O(() => {
|
|
1351
1378
|
(async () => {
|
|
1352
1379
|
try {
|
|
1353
|
-
const te = decodeURI(e ? e == null ? void 0 : e.id : `${v == null ? void 0 : v[0]}/${n}/${v == null ? void 0 : v[1]}`), le = `${decodeURI(te)}`, fe = await (o == null ? void 0 : o(le)), ke =
|
|
1380
|
+
const te = decodeURI(e ? e == null ? void 0 : e.id : `${v == null ? void 0 : v[0]}/${n}/${v == null ? void 0 : v[1]}`), le = `${decodeURI(te)}`, fe = await (o == null ? void 0 : o(le)), ke = ga(
|
|
1354
1381
|
te,
|
|
1355
|
-
|
|
1382
|
+
pa(fe)
|
|
1356
1383
|
), Ee = await (i == null ? void 0 : i(ke)), me = await (w == null ? void 0 : w(
|
|
1357
|
-
|
|
1384
|
+
Yo(rt.OTHERS)
|
|
1358
1385
|
));
|
|
1359
|
-
Ee && me && (x(!0), S(
|
|
1360
|
-
|
|
1386
|
+
Ee && me && (x(!0), S(ma(Ee)), _(
|
|
1387
|
+
wa(
|
|
1361
1388
|
e,
|
|
1362
1389
|
me == null ? void 0 : me.resources
|
|
1363
1390
|
)
|
|
@@ -1388,7 +1415,7 @@ const Sn = ({
|
|
|
1388
1415
|
ve,
|
|
1389
1416
|
{
|
|
1390
1417
|
buttonClassName: T ? "text-button-secondary" : "text-button-primary",
|
|
1391
|
-
iconBefore: T ? /* @__PURE__ */ h(
|
|
1418
|
+
iconBefore: T ? /* @__PURE__ */ h(Dl, { width: 20, height: 20 }) : /* @__PURE__ */ h(Mo, { width: 20, height: 20 }),
|
|
1392
1419
|
title: T ? f ?? "Copied" : u ?? "Copy link",
|
|
1393
1420
|
disabled: T,
|
|
1394
1421
|
onClick: W
|
|
@@ -1424,7 +1451,7 @@ const Sn = ({
|
|
|
1424
1451
|
] })
|
|
1425
1452
|
] }),
|
|
1426
1453
|
/* @__PURE__ */ h(
|
|
1427
|
-
|
|
1454
|
+
li,
|
|
1428
1455
|
{
|
|
1429
1456
|
className: "self-center border border-neutrals-600 p-2 rounded min-h-[200px]",
|
|
1430
1457
|
value: I,
|
|
@@ -1458,7 +1485,7 @@ const Sn = ({
|
|
|
1458
1485
|
]
|
|
1459
1486
|
}
|
|
1460
1487
|
);
|
|
1461
|
-
},
|
|
1488
|
+
}, ci = ({
|
|
1462
1489
|
shareButtonClass: e,
|
|
1463
1490
|
shareIcon: n,
|
|
1464
1491
|
...t
|
|
@@ -1478,9 +1505,9 @@ const Sn = ({
|
|
|
1478
1505
|
onClick: i
|
|
1479
1506
|
}
|
|
1480
1507
|
),
|
|
1481
|
-
r === ee.Opened && /* @__PURE__ */ h(
|
|
1508
|
+
r === ee.Opened && /* @__PURE__ */ h(ba, { onCloseModal: a, ...t })
|
|
1482
1509
|
] });
|
|
1483
|
-
},
|
|
1510
|
+
}, di = ({
|
|
1484
1511
|
conversation: e,
|
|
1485
1512
|
locale: n,
|
|
1486
1513
|
isOpenedAdvancedView: t,
|
|
@@ -1511,7 +1538,7 @@ const Sn = ({
|
|
|
1511
1538
|
),
|
|
1512
1539
|
/* @__PURE__ */ b("div", { className: "flex gap-4", children: [
|
|
1513
1540
|
!t && r && /* @__PURE__ */ h("div", { className: "flex gap-x-2", children: /* @__PURE__ */ h(
|
|
1514
|
-
|
|
1541
|
+
ci,
|
|
1515
1542
|
{
|
|
1516
1543
|
conversation: e,
|
|
1517
1544
|
locale: n,
|
|
@@ -1519,7 +1546,7 @@ const Sn = ({
|
|
|
1519
1546
|
}
|
|
1520
1547
|
) }),
|
|
1521
1548
|
o && /* @__PURE__ */ h(
|
|
1522
|
-
|
|
1549
|
+
Jo,
|
|
1523
1550
|
{
|
|
1524
1551
|
userInfo: i || null,
|
|
1525
1552
|
signOutAction: l,
|
|
@@ -1529,7 +1556,7 @@ const Sn = ({
|
|
|
1529
1556
|
] })
|
|
1530
1557
|
]
|
|
1531
1558
|
}
|
|
1532
|
-
) }),
|
|
1559
|
+
) }), ui = ({ content: e, textColorClass: n }) => {
|
|
1533
1560
|
const { isOpenedAdvancedView: t } = ze();
|
|
1534
1561
|
return /* @__PURE__ */ h(
|
|
1535
1562
|
"div",
|
|
@@ -1554,7 +1581,7 @@ const Sn = ({
|
|
|
1554
1581
|
);
|
|
1555
1582
|
};
|
|
1556
1583
|
var Kn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(Kn || {}), it = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(it || {});
|
|
1557
|
-
const
|
|
1584
|
+
const hi = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
|
|
1558
1585
|
var r;
|
|
1559
1586
|
return /* @__PURE__ */ h("div", { className: "mt-4", children: /* @__PURE__ */ b(
|
|
1560
1587
|
"button",
|
|
@@ -1577,7 +1604,7 @@ const ui = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
|
|
|
1577
1604
|
) }, t.title);
|
|
1578
1605
|
});
|
|
1579
1606
|
var Je = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.SUCCESS = "success", e.IN_PROGRESS = "in_progress", e))(Je || {});
|
|
1580
|
-
const
|
|
1607
|
+
const Na = ({
|
|
1581
1608
|
alertDetails: e,
|
|
1582
1609
|
successIcon: n,
|
|
1583
1610
|
errorIcon: t,
|
|
@@ -1653,11 +1680,11 @@ const Ur = ({
|
|
|
1653
1680
|
{
|
|
1654
1681
|
htmlFor: i,
|
|
1655
1682
|
className: "absolute cursor-pointer right-[11px] top-[29px]",
|
|
1656
|
-
children: a || /* @__PURE__ */ h(
|
|
1683
|
+
children: a || /* @__PURE__ */ h(xl, {})
|
|
1657
1684
|
}
|
|
1658
1685
|
),
|
|
1659
1686
|
/* @__PURE__ */ h(
|
|
1660
|
-
|
|
1687
|
+
Gl,
|
|
1661
1688
|
{
|
|
1662
1689
|
defaultValue: (u = o === Pe.MONTH ? new Date(t.getFullYear(), t.getMonth()) : t) == null ? void 0 : u.toDateString(),
|
|
1663
1690
|
options: l,
|
|
@@ -1670,7 +1697,7 @@ const Ur = ({
|
|
|
1670
1697
|
}
|
|
1671
1698
|
)
|
|
1672
1699
|
] });
|
|
1673
|
-
},
|
|
1700
|
+
}, fi = ({
|
|
1674
1701
|
label: e,
|
|
1675
1702
|
id: n,
|
|
1676
1703
|
checked: t,
|
|
@@ -1723,7 +1750,7 @@ const Ur = ({
|
|
|
1723
1750
|
]
|
|
1724
1751
|
}
|
|
1725
1752
|
);
|
|
1726
|
-
},
|
|
1753
|
+
}, gi = ({
|
|
1727
1754
|
title: e,
|
|
1728
1755
|
icon: n,
|
|
1729
1756
|
children: t,
|
|
@@ -1741,7 +1768,7 @@ const Ur = ({
|
|
|
1741
1768
|
className: "collapsible-block-title flex cursor-pointer items-center py-4",
|
|
1742
1769
|
onClick: () => i(!o),
|
|
1743
1770
|
children: [
|
|
1744
|
-
/* @__PURE__ */ h("div", { className: `${o ? "rotate-180" : ""} transition-transform`, children: n || /* @__PURE__ */ h(
|
|
1771
|
+
/* @__PURE__ */ h("div", { className: `${o ? "rotate-180" : ""} transition-transform`, children: n || /* @__PURE__ */ h(Ml, { className: "w-5 h-5 mr-3" }) }),
|
|
1745
1772
|
/* @__PURE__ */ b("div", { className: "flex flex-1 items-center justify-between", children: [
|
|
1746
1773
|
/* @__PURE__ */ h("span", { children: e }),
|
|
1747
1774
|
r && /* @__PURE__ */ h("p", { className: "body-1 text-neutrals-800", children: r })
|
|
@@ -1753,7 +1780,7 @@ const Ur = ({
|
|
|
1753
1780
|
]
|
|
1754
1781
|
}
|
|
1755
1782
|
);
|
|
1756
|
-
},
|
|
1783
|
+
}, ka = ({
|
|
1757
1784
|
url: e,
|
|
1758
1785
|
title: n,
|
|
1759
1786
|
linkClassName: t = "",
|
|
@@ -1779,7 +1806,7 @@ const Ur = ({
|
|
|
1779
1806
|
]
|
|
1780
1807
|
}
|
|
1781
1808
|
);
|
|
1782
|
-
},
|
|
1809
|
+
}, mi = ({
|
|
1783
1810
|
label: e,
|
|
1784
1811
|
id: n,
|
|
1785
1812
|
checked: t,
|
|
@@ -1841,7 +1868,7 @@ const Ur = ({
|
|
|
1841
1868
|
]
|
|
1842
1869
|
}
|
|
1843
1870
|
);
|
|
1844
|
-
},
|
|
1871
|
+
}, ya = 24, zr = 24;
|
|
1845
1872
|
function Tn(e = 719) {
|
|
1846
1873
|
const [n, t] = C(
|
|
1847
1874
|
() => typeof window < "u" ? window.innerWidth < e : !1
|
|
@@ -1853,7 +1880,7 @@ function Tn(e = 719) {
|
|
|
1853
1880
|
return t(r.matches), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
1854
1881
|
}, [e]), n;
|
|
1855
1882
|
}
|
|
1856
|
-
function
|
|
1883
|
+
function Ca(e, n) {
|
|
1857
1884
|
const t = ue(null);
|
|
1858
1885
|
return R(
|
|
1859
1886
|
(...o) => {
|
|
@@ -1864,7 +1891,7 @@ function ya(e, n) {
|
|
|
1864
1891
|
[e, n]
|
|
1865
1892
|
);
|
|
1866
1893
|
}
|
|
1867
|
-
const
|
|
1894
|
+
const Ea = ({
|
|
1868
1895
|
titles: e,
|
|
1869
1896
|
messageContent: n,
|
|
1870
1897
|
choiceButtons: t,
|
|
@@ -1872,7 +1899,7 @@ const Ca = ({
|
|
|
1872
1899
|
handleOnboardingSkip: o
|
|
1873
1900
|
}) => /* @__PURE__ */ b("div", { className: "onboarding w-full h-full flex flex-col flex-1 overflow-auto", children: [
|
|
1874
1901
|
/* @__PURE__ */ h(
|
|
1875
|
-
|
|
1902
|
+
di,
|
|
1876
1903
|
{
|
|
1877
1904
|
conversation: {
|
|
1878
1905
|
name: (e == null ? void 0 : e.onboardingTitle) ?? "Introducing the AI assistant"
|
|
@@ -1880,8 +1907,8 @@ const Ca = ({
|
|
|
1880
1907
|
}
|
|
1881
1908
|
),
|
|
1882
1909
|
/* @__PURE__ */ b("div", { className: "onboarding-content flex flex-col", children: [
|
|
1883
|
-
/* @__PURE__ */ h(
|
|
1884
|
-
/* @__PURE__ */ h("div", { className: "mt-4", children: /* @__PURE__ */ h(
|
|
1910
|
+
/* @__PURE__ */ h(ui, { content: n }),
|
|
1911
|
+
/* @__PURE__ */ h("div", { className: "mt-4", children: /* @__PURE__ */ h(hi, { choiceButtons: t, onClick: r }) }),
|
|
1885
1912
|
/* @__PURE__ */ b("div", { className: "flex mt-8", children: [
|
|
1886
1913
|
/* @__PURE__ */ h(
|
|
1887
1914
|
ve,
|
|
@@ -1903,7 +1930,7 @@ const Ca = ({
|
|
|
1903
1930
|
)
|
|
1904
1931
|
] })
|
|
1905
1932
|
] })
|
|
1906
|
-
] }),
|
|
1933
|
+
] }), Aa = ({ titles: e, openNewConversation: n }) => /* @__PURE__ */ b("div", { className: "text-center bg-accent-300 body-3 p-2", children: [
|
|
1907
1934
|
/* @__PURE__ */ h("span", { className: "mr-2 text-neutrals-900", children: e == null ? void 0 : e.onboardingFooter }),
|
|
1908
1935
|
/* @__PURE__ */ b(
|
|
1909
1936
|
"span",
|
|
@@ -1916,14 +1943,7 @@ const Ca = ({
|
|
|
1916
1943
|
]
|
|
1917
1944
|
}
|
|
1918
1945
|
)
|
|
1919
|
-
] }),
|
|
1920
|
-
void 0
|
|
1921
|
-
), De = () => {
|
|
1922
|
-
const e = xo(Aa);
|
|
1923
|
-
if (e === void 0)
|
|
1924
|
-
throw new Error("useOnboarding must be used within a OnboardingProvider");
|
|
1925
|
-
return e;
|
|
1926
|
-
}, l1 = ({
|
|
1946
|
+
] }), a1 = ({
|
|
1927
1947
|
suggestionsList: e,
|
|
1928
1948
|
welcomeText: n,
|
|
1929
1949
|
titleIcon: t,
|
|
@@ -1964,14 +1984,14 @@ const Ca = ({
|
|
|
1964
1984
|
var H, W, F;
|
|
1965
1985
|
N(!0), p || console.error("No bucket");
|
|
1966
1986
|
try {
|
|
1967
|
-
const Z = A ?
|
|
1987
|
+
const Z = A ? ta(
|
|
1968
1988
|
p || "",
|
|
1969
1989
|
u,
|
|
1970
1990
|
(o == null ? void 0 : o.onboardingTitle) ?? "Introducing the AI assistant",
|
|
1971
1991
|
((W = (H = l == null ? void 0 : l.properties) == null ? void 0 : H.choice) == null ? void 0 : W.description) ?? "",
|
|
1972
1992
|
$,
|
|
1973
1993
|
I
|
|
1974
|
-
) :
|
|
1994
|
+
) : Ql(
|
|
1975
1995
|
p || "",
|
|
1976
1996
|
u,
|
|
1977
1997
|
o.newChat ?? "New chat",
|
|
@@ -1981,7 +2001,7 @@ const Ca = ({
|
|
|
1981
2001
|
u,
|
|
1982
2002
|
A
|
|
1983
2003
|
), te = await r.getConversations(u), le = await r.getSharedConversations(
|
|
1984
|
-
|
|
2004
|
+
Yo(rt.ME)
|
|
1985
2005
|
);
|
|
1986
2006
|
if (l && v) {
|
|
1987
2007
|
const fe = {
|
|
@@ -1997,7 +2017,7 @@ const Ca = ({
|
|
|
1997
2017
|
}
|
|
1998
2018
|
s(jn(te)), f(
|
|
1999
2019
|
jn(
|
|
2000
|
-
|
|
2020
|
+
ra(le, u)
|
|
2001
2021
|
)
|
|
2002
2022
|
), c(ie.folderId, ie.id);
|
|
2003
2023
|
} catch (Z) {
|
|
@@ -2051,7 +2071,7 @@ const Ca = ({
|
|
|
2051
2071
|
d && p && _(d);
|
|
2052
2072
|
}, [p, d]), /* @__PURE__ */ b("div", { className: "flex flex-col h-full w-full", children: [
|
|
2053
2073
|
d || k ? /* @__PURE__ */ h(Ce, {}) : A ? /* @__PURE__ */ h(
|
|
2054
|
-
|
|
2074
|
+
Ea,
|
|
2055
2075
|
{
|
|
2056
2076
|
titles: o,
|
|
2057
2077
|
messageContent: ((T = (x = l == null ? void 0 : l.properties) == null ? void 0 : x.choice) == null ? void 0 : T.description) || "",
|
|
@@ -2061,7 +2081,7 @@ const Ca = ({
|
|
|
2061
2081
|
}
|
|
2062
2082
|
) : /* @__PURE__ */ b("div", { className: "flex flex-col h-full items-center justify-center sm:px-4", children: [
|
|
2063
2083
|
g && /* @__PURE__ */ h("div", { className: "absolute top-4 right-4", children: /* @__PURE__ */ h(
|
|
2064
|
-
|
|
2084
|
+
Jo,
|
|
2065
2085
|
{
|
|
2066
2086
|
userInfo: g,
|
|
2067
2087
|
signOutAction: m,
|
|
@@ -2082,7 +2102,7 @@ const Ca = ({
|
|
|
2082
2102
|
}
|
|
2083
2103
|
),
|
|
2084
2104
|
/* @__PURE__ */ h(
|
|
2085
|
-
|
|
2105
|
+
Uo,
|
|
2086
2106
|
{
|
|
2087
2107
|
containerClasses: L(
|
|
2088
2108
|
"mb-6",
|
|
@@ -2105,7 +2125,7 @@ const Ca = ({
|
|
|
2105
2125
|
children: e.map(($) => {
|
|
2106
2126
|
var I;
|
|
2107
2127
|
return /* @__PURE__ */ h(
|
|
2108
|
-
|
|
2128
|
+
Zl,
|
|
2109
2129
|
{
|
|
2110
2130
|
title: $.title,
|
|
2111
2131
|
text: (I = $[Un.DialWidgetOptions]) == null ? void 0 : I.populateText,
|
|
@@ -2118,7 +2138,7 @@ const Ca = ({
|
|
|
2118
2138
|
) })
|
|
2119
2139
|
] }),
|
|
2120
2140
|
A && /* @__PURE__ */ h(
|
|
2121
|
-
|
|
2141
|
+
Aa,
|
|
2122
2142
|
{
|
|
2123
2143
|
titles: o,
|
|
2124
2144
|
openNewConversation: () => S(!1)
|
|
@@ -2126,7 +2146,7 @@ const Ca = ({
|
|
|
2126
2146
|
)
|
|
2127
2147
|
] });
|
|
2128
2148
|
}, lt = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Da = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M8.00016 1.33325C4.3135 1.33325 1.3335 4.31325 1.3335 7.99992C1.3335 11.6866 4.3135 14.6666 8.00016 14.6666C11.6868 14.6666 14.6668 11.6866 14.6668 7.99992C14.6668 4.31325 11.6868 1.33325 8.00016 1.33325ZM8.00016 13.3333C5.06016 13.3333 2.66683 10.9399 2.66683 7.99992C2.66683 5.05992 5.06016 2.66659 8.00016 2.66659C10.9402 2.66659 13.3335 5.05992 13.3335 7.99992C13.3335 10.9399 10.9402 13.3333 8.00016 13.3333ZM10.3935 4.66659L8.00016 7.05992L5.60683 4.66659L4.66683 5.60659L7.06016 7.99992L4.66683 10.3933L5.60683 11.3333L8.00016 8.93992L10.3935 11.3333L11.3335 10.3933L8.94016 7.99992L11.3335 5.60659L10.3935 4.66659Z", fill: "currentColor" })), xa = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M12.8232 7C12.926 7 13.012 7.07201 13.0244 7.16797L13.1807 8.22754C13.4315 8.32754 13.6621 8.46012 13.876 8.62012L14.9004 8.21973C14.9208 8.21186 14.9453 8.20803 14.9697 8.20801C15.0436 8.20801 15.1133 8.24392 15.1504 8.30762L15.9736 9.69238C16.0227 9.7803 16.0018 9.88834 15.9238 9.94824L15.0566 10.6084C15.0731 10.7363 15.085 10.8642 15.085 11C15.085 11.1358 15.0731 11.2637 15.0566 11.3916L15.9238 12.0518C16.0018 12.1117 16.0227 12.2197 15.9736 12.3076L15.1504 13.6924C15.1133 13.7561 15.0434 13.792 14.9736 13.792C14.9492 13.7919 14.9248 13.7881 14.9004 13.7803L13.876 13.3799C13.6621 13.5359 13.4315 13.6725 13.1807 13.7725L13.0244 14.832C13.012 14.928 12.926 15 12.8232 15H11.1787C11.0759 15 10.9889 14.928 10.9766 14.832L10.8203 13.7725C10.5696 13.6725 10.3397 13.5398 10.126 13.3799L9.10156 13.7803C9.08115 13.7882 9.05667 13.792 9.03223 13.792C8.95826 13.792 8.88761 13.7563 8.85059 13.6924L8.02832 12.3076C7.97924 12.2197 8.0001 12.1117 8.07812 12.0518L8.94531 11.3916C8.92889 11.2637 8.91699 11.1319 8.91699 11C8.91699 10.8681 8.92889 10.7363 8.94531 10.6084L8.07812 9.94824C8.0001 9.88832 7.97515 9.78032 8.02832 9.69238L8.85059 8.30762C8.88754 8.24383 8.95763 8.20816 9.02734 8.20801C9.05192 8.20801 9.07699 8.21179 9.10156 8.21973L10.126 8.62012C10.3397 8.46418 10.5696 8.32752 10.8203 8.22754L10.9766 7.16797C10.9889 7.07197 11.0759 7 11.1787 7H12.8232ZM11.7129 7.7998L11.6309 8.33984L11.5654 8.79199L11.1289 8.96387C10.9604 9.03184 10.792 9.12795 10.6152 9.25586L10.2451 9.52832L9.81738 9.36035L9.29492 9.15625L9.00684 9.63965L9.45117 9.97559L9.81738 10.2559L9.75977 10.708C9.74743 10.828 9.73926 10.92 9.73926 11C9.73926 11.08 9.74743 11.1719 9.75977 11.2959L9.81738 11.748L9.45117 12.0283L9.00684 12.3643L9.29492 12.8477L9.81738 12.6436L10.2529 12.4717L10.627 12.752C10.7913 12.8719 10.9561 12.9642 11.1328 13.0361L11.5693 13.208L11.6348 13.6602L11.7129 14.2002H12.2891L12.3711 13.6602L12.4365 13.208L12.873 13.0361C13.0415 12.9681 13.21 12.8721 13.3867 12.7441L13.7568 12.4717L14.1846 12.6396L14.707 12.8438L14.9941 12.3604L14.5508 12.0244L14.1846 11.7441L14.2422 11.292C14.2545 11.172 14.2627 11.084 14.2627 11C14.2627 10.916 14.2586 10.832 14.2422 10.708L14.1846 10.2559L14.5508 9.97559L14.9902 9.63574L14.7021 9.15234L14.1807 9.35645L13.7441 9.52832L13.3701 9.24805C13.2057 9.12808 13.0411 9.03586 12.8643 8.96387L12.4287 8.79199L12.3623 8.33984L12.2842 7.7998H11.7129ZM3.33301 12.6338H2V11.3008H3.33301V12.6338ZM7.00977 11.3008C7.03732 11.7651 7.12864 12.2121 7.27441 12.6338H4.66699V11.3008H7.00977ZM12.001 9.40039C12.9097 9.40043 13.6455 10.116 13.6455 11C13.6455 11.884 12.9097 12.5996 12.001 12.5996C11.0922 12.5996 10.3564 11.884 10.3564 11C10.3564 10.116 11.0922 9.40039 12.001 9.40039ZM12.001 10.2002C11.5486 10.2002 11.1787 10.56 11.1787 11C11.1787 11.44 11.5486 11.7998 12.001 11.7998C12.4533 11.7998 12.8232 11.44 12.8232 11C12.8232 10.56 12.4533 10.2002 12.001 10.2002ZM3.33301 8.63379H2V7.30078H3.33301V8.63379ZM8.63574 7.30078C8.21765 7.68124 7.86483 8.13197 7.59473 8.63379H4.66699V7.30078H8.63574ZM3.33301 4.7334H2V3.40039H3.33301V4.7334ZM14 4.7334H4.66699V3.40039H14V4.7334Z", fill: "currentColor" }));
|
|
2129
|
-
function
|
|
2149
|
+
function wi(e) {
|
|
2130
2150
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2131
2151
|
}
|
|
2132
2152
|
var en = { exports: {} }, Ma = en.exports, jr;
|
|
@@ -2151,7 +2171,7 @@ function Sa() {
|
|
|
2151
2171
|
***************************************************************************** */
|
|
2152
2172
|
var r = function() {
|
|
2153
2173
|
return r = Object.assign || function(Ie) {
|
|
2154
|
-
for (var sn, $n = 1,
|
|
2174
|
+
for (var sn, $n = 1, kl = arguments.length; $n < kl; $n++) {
|
|
2155
2175
|
sn = arguments[$n];
|
|
2156
2176
|
for (var Wn in sn) Object.prototype.hasOwnProperty.call(sn, Wn) && (Ie[Wn] = sn[Wn]);
|
|
2157
2177
|
}
|
|
@@ -4256,9 +4276,9 @@ function Sa() {
|
|
|
4256
4276
|
time_24hr: !0
|
|
4257
4277
|
};
|
|
4258
4278
|
Jt.l10ns.mn = Kt, Jt.l10ns;
|
|
4259
|
-
var
|
|
4279
|
+
var vl = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4260
4280
|
l10ns: {}
|
|
4261
|
-
},
|
|
4281
|
+
}, bl = {
|
|
4262
4282
|
weekdays: {
|
|
4263
4283
|
shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
|
|
4264
4284
|
longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"]
|
|
@@ -4298,7 +4318,7 @@ function Sa() {
|
|
|
4298
4318
|
return "";
|
|
4299
4319
|
}
|
|
4300
4320
|
};
|
|
4301
|
-
|
|
4321
|
+
vl.l10ns;
|
|
4302
4322
|
var Zt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4303
4323
|
l10ns: {}
|
|
4304
4324
|
}, qt = {
|
|
@@ -5524,7 +5544,7 @@ function Sa() {
|
|
|
5524
5544
|
toggleTitle: "點擊切換 12/24 小時時制"
|
|
5525
5545
|
};
|
|
5526
5546
|
Hr.l10ns.zh_tw = Gr, Hr.l10ns;
|
|
5527
|
-
var
|
|
5547
|
+
var Nl = {
|
|
5528
5548
|
ar: i,
|
|
5529
5549
|
at: d,
|
|
5530
5550
|
az: c,
|
|
@@ -5566,7 +5586,7 @@ function Sa() {
|
|
|
5566
5586
|
lv: zt,
|
|
5567
5587
|
mk: Yt,
|
|
5568
5588
|
mn: Kt,
|
|
5569
|
-
ms:
|
|
5589
|
+
ms: bl,
|
|
5570
5590
|
my: qt,
|
|
5571
5591
|
nl: Qt,
|
|
5572
5592
|
nn: nr,
|
|
@@ -5591,12 +5611,12 @@ function Sa() {
|
|
|
5591
5611
|
uz: Lr,
|
|
5592
5612
|
uz_latn: Ir
|
|
5593
5613
|
};
|
|
5594
|
-
t.default =
|
|
5614
|
+
t.default = Nl, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
5595
5615
|
}));
|
|
5596
5616
|
})(en, en.exports)), en.exports;
|
|
5597
5617
|
}
|
|
5598
5618
|
var Ta = Sa();
|
|
5599
|
-
const Oa = /* @__PURE__ */
|
|
5619
|
+
const Oa = /* @__PURE__ */ wi(Ta);
|
|
5600
5620
|
var hn = { exports: {} }, _a = hn.exports, Yr;
|
|
5601
5621
|
function La() {
|
|
5602
5622
|
return Yr || (Yr = 1, (function(e, n) {
|
|
@@ -5793,17 +5813,17 @@ function La() {
|
|
|
5793
5813
|
})(hn)), hn.exports;
|
|
5794
5814
|
}
|
|
5795
5815
|
var Ra = La();
|
|
5796
|
-
const Ia = /* @__PURE__ */
|
|
5816
|
+
const Ia = /* @__PURE__ */ wi(Ra), Pa = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, Va = /^[0-9][0-9][0-9][0-9]-W[0-9][0-9]?$/, $a = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, Wa = /^[0-9][0-9][0-9][0-9]$/, Ha = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, Ga = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, at = (e) => Wa.exec(e), On = (e) => !!at(e), Ba = (e) => $a.exec(e), st = (e) => !!Ba(e), ct = (e) => Ga.exec(e), on = (e) => !!ct(e), dt = (e) => Pa.exec(e), ln = (e) => !!dt(e), Fa = (e) => Ha.exec(e), Ua = (e) => !!Fa(e), za = (e) => Va.exec(e), ut = (e) => !!za(e), he = (e, n) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.names[n]) || (e == null ? void 0 : e.name), pi = (e, n, t) => {
|
|
5797
5817
|
if (!(!e || n != null && n.has(e == null ? void 0 : e.id)) && (n == null || n.set(e == null ? void 0 : e.id, e), e != null && e.parent)) {
|
|
5798
5818
|
const r = t == null ? void 0 : t.get(e == null ? void 0 : e.parent);
|
|
5799
|
-
|
|
5819
|
+
pi(r, n, t);
|
|
5800
5820
|
}
|
|
5801
|
-
},
|
|
5821
|
+
}, vi = (e, n) => {
|
|
5802
5822
|
const t = /* @__PURE__ */ new Map(), r = new Map(e == null ? void 0 : e.map((o) => [o.id, o]));
|
|
5803
5823
|
return n == null || n.forEach((o) => {
|
|
5804
|
-
|
|
5824
|
+
pi(o, t, r);
|
|
5805
5825
|
}), Array.from(t == null ? void 0 : t.values());
|
|
5806
|
-
}, ja = "time_period_end", Ya = "time_period_start", bn = "TIME_PERIOD",
|
|
5826
|
+
}, ja = "time_period_end", Ya = "time_period_start", bn = "TIME_PERIOD", bi = (e) => {
|
|
5807
5827
|
const n = e == null ? void 0 : e.find(
|
|
5808
5828
|
(i) => i.id === Ya
|
|
5809
5829
|
), t = e == null ? void 0 : e.find(
|
|
@@ -5828,7 +5848,7 @@ const Ia = /* @__PURE__ */ mi(Ra), Pa = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, Va = /^
|
|
|
5828
5848
|
i < o.length && o[i].memberValue === d.id && (t[a[1]] = a[0]);
|
|
5829
5849
|
}
|
|
5830
5850
|
return t.filter((a) => a != null);
|
|
5831
|
-
}, qa = (e) => !!(e != null && e.some((n) => n.parent)),
|
|
5851
|
+
}, qa = (e) => !!(e != null && e.some((n) => n.parent)), Ni = (e, n, t, r, o = []) => {
|
|
5832
5852
|
var a, d;
|
|
5833
5853
|
let i = e || [];
|
|
5834
5854
|
if (Xa(t || [], n || "")) {
|
|
@@ -5845,7 +5865,7 @@ const Ia = /* @__PURE__ */ mi(Ra), Pa = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, Va = /^
|
|
|
5845
5865
|
})) : Za(i, c.selectionValues) : i = [];
|
|
5846
5866
|
}
|
|
5847
5867
|
} else o.length !== 0 && (i = i.filter(({ id: l }) => o.includes(l)));
|
|
5848
|
-
return qa(e) && (i =
|
|
5868
|
+
return qa(e) && (i = vi(e, i)), i == null ? void 0 : i.map((l) => ({
|
|
5849
5869
|
...l,
|
|
5850
5870
|
name: r ? he(l, r) : l == null ? void 0 : l.name
|
|
5851
5871
|
}));
|
|
@@ -5960,15 +5980,15 @@ const Jr = (e, n, t, r, o = !1, i) => {
|
|
|
5960
5980
|
}, cs = (e, n, t) => {
|
|
5961
5981
|
ds(t);
|
|
5962
5982
|
const r = ss(e, n);
|
|
5963
|
-
return
|
|
5964
|
-
},
|
|
5983
|
+
return ki[t].includes(r);
|
|
5984
|
+
}, ki = {
|
|
5965
5985
|
">": [1],
|
|
5966
5986
|
">=": [0, 1],
|
|
5967
5987
|
"=": [0],
|
|
5968
5988
|
"<=": [-1, 0],
|
|
5969
5989
|
"<": [-1],
|
|
5970
5990
|
"!=": [-1, 1]
|
|
5971
|
-
}, eo = Object.keys(
|
|
5991
|
+
}, eo = Object.keys(ki), ds = (e) => {
|
|
5972
5992
|
if (eo.indexOf(e) === -1)
|
|
5973
5993
|
throw new Error(`Invalid operator, expected one of ${eo.join("|")}`);
|
|
5974
5994
|
}, kn = (e) => {
|
|
@@ -5976,7 +5996,7 @@ const Jr = (e, n, t, r, o = !1, i) => {
|
|
|
5976
5996
|
const n = e.split("=");
|
|
5977
5997
|
return n.length === 1 ? e : n[1];
|
|
5978
5998
|
}
|
|
5979
|
-
},
|
|
5999
|
+
}, yi = (e) => {
|
|
5980
6000
|
var r;
|
|
5981
6001
|
if (e == null)
|
|
5982
6002
|
return {};
|
|
@@ -5987,13 +6007,13 @@ const Jr = (e, n, t, r, o = !1, i) => {
|
|
|
5987
6007
|
};
|
|
5988
6008
|
return n && (n.includes(":") && (t.agency = n.split(":")[0], t.id = n.split(":")[1].split("(")[0]), n.includes("(") && n.includes(")") && (t.version = (r = n.split("(")[1]) == null ? void 0 : r.split(")")[0])), t;
|
|
5989
6009
|
}, us = (e) => {
|
|
5990
|
-
const [n, t] = e.split(")."), { agency: r, id: o, version: i } =
|
|
6010
|
+
const [n, t] = e.split(")."), { agency: r, id: o, version: i } = yi(n + ")");
|
|
5991
6011
|
return { childId: t, agency: r, id: o, version: i };
|
|
5992
6012
|
}, yn = (e, n, t) => {
|
|
5993
6013
|
const r = n === "" ? "" : `(${n})`;
|
|
5994
6014
|
return `${t}:${e}${r}`;
|
|
5995
6015
|
}, Zn = "+", _n = (e, n) => {
|
|
5996
|
-
const { agency: t, id: r, version: o } =
|
|
6016
|
+
const { agency: t, id: r, version: o } = yi(e), i = n.filter(
|
|
5997
6017
|
(l) => {
|
|
5998
6018
|
var c;
|
|
5999
6019
|
return l.agencyID === t && l.id === r && !((c = l == null ? void 0 : l.version) != null && c.includes(Zn));
|
|
@@ -6053,7 +6073,7 @@ const Jr = (e, n, t, r, o = !1, i) => {
|
|
|
6053
6073
|
concept: void 0,
|
|
6054
6074
|
scheme: void 0
|
|
6055
6075
|
};
|
|
6056
|
-
}, no = (e, n) => e == null ? void 0 : e.find((t) => t.id === n), ps = (e, n, t, r) => e.id === n && e.agencyID === t && e.version === r,
|
|
6076
|
+
}, no = (e, n) => e == null ? void 0 : e.find((t) => t.id === n), ps = (e, n, t, r) => e.id === n && e.agencyID === t && e.version === r, Ci = (e = [], n, t) => {
|
|
6057
6077
|
const r = kn(n == null ? void 0 : n.conceptIdentity) || "", o = an(r, e);
|
|
6058
6078
|
return t ? he(o, t) : (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.id) ?? (n == null ? void 0 : n.id);
|
|
6059
6079
|
}, vs = (e, n, t, r) => {
|
|
@@ -6090,7 +6110,7 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6090
6110
|
), d = i == null ? void 0 : i.some((c) => c == null ? void 0 : c.parent);
|
|
6091
6111
|
return {
|
|
6092
6112
|
id: o == null ? void 0 : o.id,
|
|
6093
|
-
title:
|
|
6113
|
+
title: Ci(n == null ? void 0 : n.conceptSchemes, o, r),
|
|
6094
6114
|
dimensionValues: a,
|
|
6095
6115
|
isTimeDimension: (o == null ? void 0 : o.type) === Ln.TIME_DIMENSION,
|
|
6096
6116
|
isHierarchical: d,
|
|
@@ -6104,9 +6124,9 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6104
6124
|
), Ns = (e, n, t) => e ? e.map((r) => (r == null ? void 0 : r.id) === n ? {
|
|
6105
6125
|
...r,
|
|
6106
6126
|
displayMode: t
|
|
6107
|
-
} : r) : [],
|
|
6127
|
+
} : r) : [], Ei = (e) => (e == null ? void 0 : e.filter((n) => !!(n != null && n.isSelectedValue))) || [], Ai = (e) => e == null ? void 0 : e.map((n) => ({
|
|
6108
6128
|
...n,
|
|
6109
|
-
dimensionValues:
|
|
6129
|
+
dimensionValues: Ei(n == null ? void 0 : n.dimensionValues)
|
|
6110
6130
|
})).filter(
|
|
6111
6131
|
(n) => {
|
|
6112
6132
|
var t, r, o;
|
|
@@ -6118,7 +6138,7 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6118
6138
|
return (((r = t == null ? void 0 : t.dimensionValues) == null ? void 0 : r.length) ?? 0) + n;
|
|
6119
6139
|
},
|
|
6120
6140
|
0
|
|
6121
|
-
)) || 0,
|
|
6141
|
+
)) || 0, Di = (e) => {
|
|
6122
6142
|
var n;
|
|
6123
6143
|
return {
|
|
6124
6144
|
...e,
|
|
@@ -6128,7 +6148,7 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6128
6148
|
})),
|
|
6129
6149
|
timeRange: void 0
|
|
6130
6150
|
};
|
|
6131
|
-
}, ys = (e, n) => e == null ? void 0 : e.map((t) => (t == null ? void 0 : t.id) === n ?
|
|
6151
|
+
}, ys = (e, n) => e == null ? void 0 : e.map((t) => (t == null ? void 0 : t.id) === n ? Di(t) : t), Cs = (e) => e == null ? void 0 : e.map((n) => Di(n)), Es = (e, n, t) => e.map((r) => {
|
|
6132
6152
|
var a, d;
|
|
6133
6153
|
const o = n == null ? void 0 : n.filters.find(
|
|
6134
6154
|
(l) => l.componentCode === r.id
|
|
@@ -6138,7 +6158,7 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6138
6158
|
if (r.isTimeDimension) {
|
|
6139
6159
|
const l = o.values.filter(
|
|
6140
6160
|
(g) => !!g
|
|
6141
|
-
), c =
|
|
6161
|
+
), c = bi(
|
|
6142
6162
|
(a = t == null ? void 0 : t[0]) == null ? void 0 : a.annotations
|
|
6143
6163
|
), s = l[0] ? Be(l[0]) : null, u = l[1] ? Be(l[1]) : null;
|
|
6144
6164
|
let f = c;
|
|
@@ -6178,7 +6198,7 @@ const Rn = (e = [], n = [], t) => {
|
|
|
6178
6198
|
o && t.push(o);
|
|
6179
6199
|
}
|
|
6180
6200
|
}), t;
|
|
6181
|
-
}, xs = (e, n = !1) => n ? `${e * zr -
|
|
6201
|
+
}, xs = (e, n = !1) => n ? `${e * zr - ya}px` : `${e * zr}px`, nn = (e) => {
|
|
6182
6202
|
var n;
|
|
6183
6203
|
return ((n = e == null ? void 0 : e.children) == null ? void 0 : n.reduce(
|
|
6184
6204
|
(t, r) => [
|
|
@@ -6246,7 +6266,7 @@ const Ts = ({
|
|
|
6246
6266
|
defaultTimeOption: u
|
|
6247
6267
|
}) => {
|
|
6248
6268
|
var S, M, _, D;
|
|
6249
|
-
const f =
|
|
6269
|
+
const f = bi(
|
|
6250
6270
|
a == null ? void 0 : a[0].annotations
|
|
6251
6271
|
), [g, m] = C(
|
|
6252
6272
|
n
|
|
@@ -6301,7 +6321,7 @@ const Ts = ({
|
|
|
6301
6321
|
);
|
|
6302
6322
|
return /* @__PURE__ */ b("div", { className: "mt-3 overflow-auto flex flex-col pt-2 pb-2 pr-3 h-full flex-1 min-w-0", children: [
|
|
6303
6323
|
/* @__PURE__ */ h("div", { className: "w-full", children: N.map((x) => /* @__PURE__ */ h(
|
|
6304
|
-
|
|
6324
|
+
mi,
|
|
6305
6325
|
{
|
|
6306
6326
|
id: x.value.toString(),
|
|
6307
6327
|
checked: w === x.value,
|
|
@@ -6341,7 +6361,7 @@ const Ts = ({
|
|
|
6341
6361
|
)
|
|
6342
6362
|
] }) })
|
|
6343
6363
|
] });
|
|
6344
|
-
}, Os = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })),
|
|
6364
|
+
}, Os = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), xi = ({
|
|
6345
6365
|
node: e,
|
|
6346
6366
|
level: n = 1,
|
|
6347
6367
|
checkboxIcon: t,
|
|
@@ -6382,7 +6402,7 @@ const Ts = ({
|
|
|
6382
6402
|
}
|
|
6383
6403
|
)),
|
|
6384
6404
|
/* @__PURE__ */ h(
|
|
6385
|
-
|
|
6405
|
+
fi,
|
|
6386
6406
|
{
|
|
6387
6407
|
id: e == null ? void 0 : e.id,
|
|
6388
6408
|
label: e == null ? void 0 : e.name,
|
|
@@ -6395,7 +6415,7 @@ const Ts = ({
|
|
|
6395
6415
|
}
|
|
6396
6416
|
),
|
|
6397
6417
|
a && (e == null ? void 0 : e.isExpanded) && /* @__PURE__ */ h(ae, { children: (s = e == null ? void 0 : e.children) == null ? void 0 : s.map((u) => /* @__PURE__ */ h(
|
|
6398
|
-
|
|
6418
|
+
xi,
|
|
6399
6419
|
{
|
|
6400
6420
|
node: u,
|
|
6401
6421
|
level: n + 1,
|
|
@@ -6420,7 +6440,7 @@ const Ts = ({
|
|
|
6420
6440
|
return O(() => {
|
|
6421
6441
|
a(Ds(e));
|
|
6422
6442
|
}, [e]), i == null ? void 0 : i.map((d) => /* @__PURE__ */ h(
|
|
6423
|
-
|
|
6443
|
+
xi,
|
|
6424
6444
|
{
|
|
6425
6445
|
node: d,
|
|
6426
6446
|
checkboxIcon: n,
|
|
@@ -6436,7 +6456,7 @@ const Ts = ({
|
|
|
6436
6456
|
checkboxIcon: t,
|
|
6437
6457
|
selectFilterValue: r
|
|
6438
6458
|
}) => /* @__PURE__ */ h("div", { style: e, children: /* @__PURE__ */ h(
|
|
6439
|
-
|
|
6459
|
+
fi,
|
|
6440
6460
|
{
|
|
6441
6461
|
id: n.id,
|
|
6442
6462
|
label: n.name,
|
|
@@ -6444,7 +6464,7 @@ const Ts = ({
|
|
|
6444
6464
|
checkboxIcon: t,
|
|
6445
6465
|
onChange: r
|
|
6446
6466
|
}
|
|
6447
|
-
) }), Rs =
|
|
6467
|
+
) }), Rs = Bl, oo = 24, io = 232, Is = ({
|
|
6448
6468
|
filterValues: e,
|
|
6449
6469
|
checkboxIcon: n,
|
|
6450
6470
|
isHierarchicalView: t,
|
|
@@ -6473,7 +6493,7 @@ const Ts = ({
|
|
|
6473
6493
|
selectHierarchicalNodes: i,
|
|
6474
6494
|
expandHierarchicalValue: a
|
|
6475
6495
|
}
|
|
6476
|
-
) : /* @__PURE__ */ h(
|
|
6496
|
+
) : /* @__PURE__ */ h(Fl, { children: ({ width: s, height: u }) => /* @__PURE__ */ h(
|
|
6477
6497
|
Rs,
|
|
6478
6498
|
{
|
|
6479
6499
|
itemCount: e.length,
|
|
@@ -6494,7 +6514,7 @@ const Ts = ({
|
|
|
6494
6514
|
) })
|
|
6495
6515
|
}
|
|
6496
6516
|
);
|
|
6497
|
-
},
|
|
6517
|
+
}, Mi = ({
|
|
6498
6518
|
selectedFilter: e,
|
|
6499
6519
|
filterValuesProps: n,
|
|
6500
6520
|
locale: t,
|
|
@@ -6518,7 +6538,7 @@ const Ts = ({
|
|
|
6518
6538
|
}
|
|
6519
6539
|
)) || [];
|
|
6520
6540
|
p(
|
|
6521
|
-
w ?
|
|
6541
|
+
w ? vi(
|
|
6522
6542
|
e == null ? void 0 : e.dimensionValues,
|
|
6523
6543
|
N
|
|
6524
6544
|
) : N
|
|
@@ -6566,7 +6586,7 @@ const Ts = ({
|
|
|
6566
6586
|
value: f,
|
|
6567
6587
|
onChange: k,
|
|
6568
6588
|
iconBeforeInput: /* @__PURE__ */ h(
|
|
6569
|
-
|
|
6589
|
+
Sl,
|
|
6570
6590
|
{
|
|
6571
6591
|
width: n == null ? void 0 : n.searchIconSize,
|
|
6572
6592
|
height: n == null ? void 0 : n.searchIconSize,
|
|
@@ -6616,7 +6636,7 @@ const Ts = ({
|
|
|
6616
6636
|
O(() => {
|
|
6617
6637
|
var D;
|
|
6618
6638
|
k(
|
|
6619
|
-
(D =
|
|
6639
|
+
(D = Ei(e == null ? void 0 : e.dimensionValues)) == null ? void 0 : D.length
|
|
6620
6640
|
);
|
|
6621
6641
|
}, [e == null ? void 0 : e.dimensionValues]);
|
|
6622
6642
|
const A = (D) => {
|
|
@@ -6713,7 +6733,7 @@ const Ts = ({
|
|
|
6713
6733
|
}
|
|
6714
6734
|
),
|
|
6715
6735
|
N && /* @__PURE__ */ h(
|
|
6716
|
-
|
|
6736
|
+
Mi,
|
|
6717
6737
|
{
|
|
6718
6738
|
titles: i,
|
|
6719
6739
|
selectedFilter: e,
|
|
@@ -6878,7 +6898,7 @@ const Ts = ({
|
|
|
6878
6898
|
}
|
|
6879
6899
|
),
|
|
6880
6900
|
!p && /* @__PURE__ */ h(
|
|
6881
|
-
|
|
6901
|
+
Mi,
|
|
6882
6902
|
{
|
|
6883
6903
|
selectedFilter: t,
|
|
6884
6904
|
locale: o,
|
|
@@ -6903,7 +6923,7 @@ const Ts = ({
|
|
|
6903
6923
|
t == null ? void 0 : t.codelists,
|
|
6904
6924
|
t == null ? void 0 : t.conceptSchemes,
|
|
6905
6925
|
a
|
|
6906
|
-
), l =
|
|
6926
|
+
), l = Ni(
|
|
6907
6927
|
d == null ? void 0 : d.codes,
|
|
6908
6928
|
a.id,
|
|
6909
6929
|
r,
|
|
@@ -6993,9 +7013,9 @@ const Fs = "&", so = ":", Us = "=", ht = (e, n) => {
|
|
|
6993
7013
|
(a) => `${encodeURIComponent(`c[${i}]`)}${Us}${encodeURIComponent(a)}`
|
|
6994
7014
|
).join(Fs);
|
|
6995
7015
|
}, zs = (e, n) => {
|
|
6996
|
-
const t =
|
|
7016
|
+
const t = Si(e, n) || null;
|
|
6997
7017
|
return t ? ft(t, n == null ? void 0 : n.id) : null;
|
|
6998
|
-
},
|
|
7018
|
+
}, Si = (e, n) => {
|
|
6999
7019
|
var l, c;
|
|
7000
7020
|
const t = n.id, r = (l = e == null ? void 0 : e.filters) == null ? void 0 : l.find(
|
|
7001
7021
|
(s) => s.componentCode === t
|
|
@@ -7023,10 +7043,10 @@ const Fs = "&", so = ":", Us = "=", ht = (e, n) => {
|
|
|
7023
7043
|
}
|
|
7024
7044
|
), Ys = (e, n) => {
|
|
7025
7045
|
var i;
|
|
7026
|
-
const t = (i = n == null ? void 0 : n.timeDimensions) == null ? void 0 : i[0], r =
|
|
7046
|
+
const t = (i = n == null ? void 0 : n.timeDimensions) == null ? void 0 : i[0], r = Si(e, t) || null;
|
|
7027
7047
|
return r ? ft(r, t == null ? void 0 : t.id) : null;
|
|
7028
7048
|
}, Js = (e, n) => {
|
|
7029
|
-
const t =
|
|
7049
|
+
const t = Ai(e), r = t.find(
|
|
7030
7050
|
(o) => (o == null ? void 0 : o.isTimeDimension) && (o == null ? void 0 : o.timeRange)
|
|
7031
7051
|
);
|
|
7032
7052
|
return {
|
|
@@ -7133,7 +7153,7 @@ const mt = [
|
|
|
7133
7153
|
...mt,
|
|
7134
7154
|
"openAdvancedView"
|
|
7135
7155
|
/* OPEN_ADVANCED_VIEW */
|
|
7136
|
-
],
|
|
7156
|
+
], Ti = [
|
|
7137
7157
|
"filters",
|
|
7138
7158
|
"chartPerSeries",
|
|
7139
7159
|
"metadataPerDataset",
|
|
@@ -7153,9 +7173,9 @@ const mt = [
|
|
|
7153
7173
|
if (r)
|
|
7154
7174
|
return r;
|
|
7155
7175
|
}
|
|
7156
|
-
const t = qn(
|
|
7176
|
+
const t = qn(Ti, e);
|
|
7157
7177
|
return t || "";
|
|
7158
|
-
},
|
|
7178
|
+
}, Oi = (e, n) => {
|
|
7159
7179
|
const t = qn(e, n);
|
|
7160
7180
|
return {
|
|
7161
7181
|
...n,
|
|
@@ -7166,10 +7186,10 @@ const mt = [
|
|
|
7166
7186
|
},
|
|
7167
7187
|
lastDisplayedElement: t
|
|
7168
7188
|
};
|
|
7169
|
-
},
|
|
7170
|
-
|
|
7189
|
+
}, _i = (e) => Oi(
|
|
7190
|
+
Ti,
|
|
7171
7191
|
e
|
|
7172
|
-
), ec = (e) =>
|
|
7192
|
+
), ec = (e) => Oi(
|
|
7173
7193
|
mt,
|
|
7174
7194
|
e
|
|
7175
7195
|
), nc = (e) => {
|
|
@@ -7189,7 +7209,7 @@ const mt = [
|
|
|
7189
7209
|
Oo({ mainAxis: 10, crossAxis: -5 }),
|
|
7190
7210
|
_o(),
|
|
7191
7211
|
Lo(),
|
|
7192
|
-
|
|
7212
|
+
$l({ element: i })
|
|
7193
7213
|
],
|
|
7194
7214
|
whileElementsMounted: To
|
|
7195
7215
|
}), g = Ro(u), { getFloatingProps: m } = Mn([g]), p = R(() => {
|
|
@@ -7295,17 +7315,17 @@ function wt(e) {
|
|
|
7295
7315
|
var n;
|
|
7296
7316
|
return e.type === xe.MARKDOWN && e.title != null && ((n = e.title) == null ? void 0 : n.startsWith("URL Query"));
|
|
7297
7317
|
}
|
|
7298
|
-
function
|
|
7318
|
+
function Li(e) {
|
|
7299
7319
|
var n;
|
|
7300
7320
|
return e.type === xe.JSON && e.title != null && ((n = e.title) == null ? void 0 : n.startsWith("Query (JSON)"));
|
|
7301
7321
|
}
|
|
7302
|
-
function
|
|
7322
|
+
function Ri(e) {
|
|
7303
7323
|
return e.type === xe.MARKDOWN && !wt(e);
|
|
7304
7324
|
}
|
|
7305
7325
|
function rc(e) {
|
|
7306
7326
|
return e.type === xe.CSV;
|
|
7307
7327
|
}
|
|
7308
|
-
function
|
|
7328
|
+
function Ii(e) {
|
|
7309
7329
|
return e.type === xe.TABLE;
|
|
7310
7330
|
}
|
|
7311
7331
|
function Cn(e) {
|
|
@@ -7329,7 +7349,7 @@ const ic = (e, n) => {
|
|
|
7329
7349
|
(n, t, r) => {
|
|
7330
7350
|
var o, i;
|
|
7331
7351
|
return (i = (o = t == null ? void 0 : t.custom_content) == null ? void 0 : o.attachments) != null && i.some(
|
|
7332
|
-
(a) =>
|
|
7352
|
+
(a) => Li(a)
|
|
7333
7353
|
) ? r : n;
|
|
7334
7354
|
},
|
|
7335
7355
|
-1
|
|
@@ -7452,7 +7472,7 @@ const ic = (e, n) => {
|
|
|
7452
7472
|
r == null ? void 0 : r.codelists,
|
|
7453
7473
|
r == null ? void 0 : r.conceptSchemes,
|
|
7454
7474
|
j
|
|
7455
|
-
), we =
|
|
7475
|
+
), we = Ni(
|
|
7456
7476
|
re == null ? void 0 : re.codes,
|
|
7457
7477
|
j.id,
|
|
7458
7478
|
B.current,
|
|
@@ -7491,7 +7511,7 @@ const ic = (e, n) => {
|
|
|
7491
7511
|
l,
|
|
7492
7512
|
le
|
|
7493
7513
|
]), O(() => {
|
|
7494
|
-
A != null && A.length && x(
|
|
7514
|
+
A != null && A.length && x(Ai(A));
|
|
7495
7515
|
}, [A]), O(() => {
|
|
7496
7516
|
y(
|
|
7497
7517
|
(G) => to(G, M)
|
|
@@ -7590,7 +7610,7 @@ const ic = (e, n) => {
|
|
|
7590
7610
|
pe(G);
|
|
7591
7611
|
}, [pe, E]), ye = R(() => {
|
|
7592
7612
|
const G = Ee(E);
|
|
7593
|
-
c == null || c(G, B.current, E), S(E), v(ee.Closed),
|
|
7613
|
+
c == null || c(G, B.current, E), S(E), v(ee.Closed), yl(() => {
|
|
7594
7614
|
fe(E);
|
|
7595
7615
|
});
|
|
7596
7616
|
}, [
|
|
@@ -7703,9 +7723,9 @@ const ic = (e, n) => {
|
|
|
7703
7723
|
]
|
|
7704
7724
|
}
|
|
7705
7725
|
);
|
|
7706
|
-
},
|
|
7726
|
+
}, Pi = "json";
|
|
7707
7727
|
function fc(e) {
|
|
7708
|
-
return mc(e) ? gc(e == null ? void 0 : e.slice(
|
|
7728
|
+
return mc(e) ? gc(e == null ? void 0 : e.slice(Pi.length)) : e;
|
|
7709
7729
|
}
|
|
7710
7730
|
function gc(e) {
|
|
7711
7731
|
let n = "";
|
|
@@ -7718,7 +7738,7 @@ function gc(e) {
|
|
|
7718
7738
|
return n;
|
|
7719
7739
|
}
|
|
7720
7740
|
function mc(e) {
|
|
7721
|
-
return (e == null ? void 0 : e.startsWith(
|
|
7741
|
+
return (e == null ? void 0 : e.startsWith(Pi)) || !1;
|
|
7722
7742
|
}
|
|
7723
7743
|
const wc = ({ attachment: e, className: n = "" }) => {
|
|
7724
7744
|
const t = fc(e.data);
|
|
@@ -7759,7 +7779,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7759
7779
|
}
|
|
7760
7780
|
),
|
|
7761
7781
|
/* @__PURE__ */ b("div", { className: "flex-1 min-w-0", children: [
|
|
7762
|
-
/* @__PURE__ */ h("div", { className: "mb-1", children: /* @__PURE__ */ h(
|
|
7782
|
+
/* @__PURE__ */ h("div", { className: "mb-1", children: /* @__PURE__ */ h(ka, { url: r, title: e.title }) }),
|
|
7763
7783
|
/* @__PURE__ */ h("div", { className: "text-neutrals-600 break-all truncate", children: r })
|
|
7764
7784
|
] }),
|
|
7765
7785
|
/* @__PURE__ */ h("div", { className: "flex-shrink-0", children: /* @__PURE__ */ h(
|
|
@@ -7773,7 +7793,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7773
7793
|
] })
|
|
7774
7794
|
}
|
|
7775
7795
|
);
|
|
7776
|
-
},
|
|
7796
|
+
}, Vi = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M2.33325 12.3267L6.33325 8.32001L8.99992 10.9867L14.6666 4.61334L13.7266 3.67334L8.99992 8.98667L6.33325 6.32001L1.33325 11.3267L2.33325 12.3267Z", fill: "currentColor" })), kc = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.50644 4.00043L1.97857 7.52207L1.5 7.99979L1.97857 8.47751L5.50644 11.9991L6.46019 11.0437L3.41088 7.99979L6.46019 4.95587L5.50644 4.00043ZM10.4918 4.00043L14.0197 7.52207L14.4983 7.99979L14.0197 8.47751L10.4918 11.9991L9.53809 11.0437L12.5874 7.99979L9.53809 4.95587L10.4918 4.00043Z", fill: "currentColor" })), yc = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { d: "M2.3999 4V12H13.5999V4H2.3999ZM5.7359 10.8H3.5999V5.2H5.7359V10.8ZM9.0639 10.8H6.9359V5.2H9.0719V10.8H9.0639ZM12.3999 10.8H10.2639V5.2H12.3999V10.8Z", fill: "currentColor" })), Cc = (e) => /* @__PURE__ */ X.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.18519 10.4815H7.18116C7.31033 10.9089 7.50501 11.3078 7.7535 11.6667H2.18519C1.53333 11.6667 1 11.1333 1 10.4815V2.18519C1 1.53333 1.53333 1 2.18519 1H10.4815C11.1333 1 11.6667 1.53333 11.6667 2.18519V5.02017C11.5296 5.00683 11.3906 5 11.25 5C10.9876 5 10.7307 5.02378 10.4815 5.06931V2.18519H2.18519V10.4815ZM7.69316 6.92288C7.99945 6.45568 8.39531 6.05248 8.85633 5.73769H3.37044V6.92288H7.69316ZM7 9.25C7 8.8544 7.05405 8.47143 7.15517 8.10807H3.37044V9.29326H7.00022L7 9.25ZM3.37044 4.5525H9.29636V3.36731H3.37044V4.5525ZM11.6624 10.9695C12.5981 10.8087 13.2264 9.91979 13.0656 8.98403C12.9049 8.04827 12.016 7.42002 11.0802 7.58078C10.1444 7.74155 9.51618 8.63046 9.67695 9.56621C9.83771 10.502 10.7266 11.1302 11.6624 10.9695ZM11.8656 12.1521C11.9243 12.142 11.9824 12.1303 12.0396 12.1168L14.5611 15.5477L15.5281 14.8371L13.1449 11.5944C13.9785 10.9558 14.4384 9.88763 14.2483 8.78085C13.9753 7.19192 12.4659 6.12513 10.877 6.39811C9.28808 6.67109 8.22129 8.18047 8.49428 9.7694C8.76726 11.3583 10.2766 12.4251 11.8656 12.1521Z", fill: "currentColor" })), Ec = ({
|
|
7777
7797
|
attachment: e,
|
|
7778
7798
|
index: n,
|
|
7779
7799
|
selectedAttachmentIndex: t,
|
|
@@ -7783,7 +7803,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7783
7803
|
titles: a
|
|
7784
7804
|
}) => {
|
|
7785
7805
|
const d = ue(null), [l, c] = C(""), [s, u] = C(""), [f, g] = C(!1), { onboardingFileSchema: m, isShowOnboarding: p } = De(), w = R(
|
|
7786
|
-
(N, v = "") => o ? oc(N) || fn(N) ? /* @__PURE__ */ h(
|
|
7806
|
+
(N, v = "") => o ? oc(N) || fn(N) ? /* @__PURE__ */ h(Vi, { className: v }) : Cn(N) ? /* @__PURE__ */ h(yc, { className: v }) : wt(N) ? /* @__PURE__ */ h(Cc, { className: v }) : Ri(N) ? /* @__PURE__ */ h(kc, { className: v }) : null : null,
|
|
7787
7807
|
[o]
|
|
7788
7808
|
), k = R(
|
|
7789
7809
|
(N) => Cn(N) ? i || "Data Grid" : N.title,
|
|
@@ -7889,7 +7909,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7889
7909
|
);
|
|
7890
7910
|
}
|
|
7891
7911
|
)
|
|
7892
|
-
] }),
|
|
7912
|
+
] }), $i = ({ dimensionsInfo: e }) => /* @__PURE__ */ h("div", { className: "sidebar flex flex-col w-[176px] gap-3 min-h-0 overflow-auto", children: e.map((n) => /* @__PURE__ */ b("div", { className: "flex flex-col", children: [
|
|
7893
7913
|
/* @__PURE__ */ h("h5", { className: "text-neutrals-800", children: n.title }),
|
|
7894
7914
|
/* @__PURE__ */ h("h5", { className: "font-bold", children: n.value })
|
|
7895
7915
|
] }, n.title)) }), Mc = ({ titles: e, chart: n, isOpen: t, onClose: r }) => {
|
|
@@ -7920,13 +7940,13 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7920
7940
|
style: { width: "100%", height: "100%" }
|
|
7921
7941
|
}
|
|
7922
7942
|
) }),
|
|
7923
|
-
/* @__PURE__ */ h(
|
|
7943
|
+
/* @__PURE__ */ h($i, { dimensionsInfo: n.dimensions })
|
|
7924
7944
|
] }),
|
|
7925
7945
|
/* @__PURE__ */ h("div", {})
|
|
7926
7946
|
]
|
|
7927
7947
|
}
|
|
7928
7948
|
) });
|
|
7929
|
-
},
|
|
7949
|
+
}, Wi = (e) => {
|
|
7930
7950
|
var m;
|
|
7931
7951
|
const [n, t] = C(!1), r = ue(null), [o, i] = C(""), [a, d] = C(""), [l, c] = C(!1), { onboardingFileSchema: s, isShowOnboarding: u } = De(), f = R(() => {
|
|
7932
7952
|
t(!0);
|
|
@@ -7955,7 +7975,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7955
7975
|
{
|
|
7956
7976
|
title: ((m = e.titles) == null ? void 0 : m.chart) ?? "Chart",
|
|
7957
7977
|
buttonClassName: "!text-neutrals-1000 !border-none !p-1",
|
|
7958
|
-
icon: /* @__PURE__ */ h(
|
|
7978
|
+
icon: /* @__PURE__ */ h(Vi, { className: "w-5 h-5" }),
|
|
7959
7979
|
onClick: f
|
|
7960
7980
|
}
|
|
7961
7981
|
) }),
|
|
@@ -7977,7 +7997,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7977
7997
|
}
|
|
7978
7998
|
)
|
|
7979
7999
|
] });
|
|
7980
|
-
}, In = 32, pt = 32, Sc = 16, vt = "padding-0", Pn = 200, Xn = { flex: 1, minWidth: Pn }, Tc = In,
|
|
8000
|
+
}, In = 32, pt = 32, Sc = 16, vt = "padding-0", Pn = 200, Xn = { flex: 1, minWidth: Pn }, Tc = In, Hi = "observationValueCell", Gi = "metadataCell", Oc = "chartCell", En = "Chart_column", _c = (e, n, t, r, o, i) => ({
|
|
7981
8001
|
headerName: "",
|
|
7982
8002
|
suppressHeaderMenuButton: !0,
|
|
7983
8003
|
suppressNavigable: !0,
|
|
@@ -7987,7 +8007,7 @@ const wc = ({ attachment: e, className: n = "" }) => {
|
|
|
7987
8007
|
width: 32,
|
|
7988
8008
|
maxWidth: 32,
|
|
7989
8009
|
cellClass: vt,
|
|
7990
|
-
cellRenderer:
|
|
8010
|
+
cellRenderer: Gi,
|
|
7991
8011
|
cellRendererParams: {
|
|
7992
8012
|
attributesData: n,
|
|
7993
8013
|
dataSetData: e,
|
|
@@ -8012,7 +8032,7 @@ function Lc(e, n, t, r = Tc, o, i) {
|
|
|
8012
8032
|
minWidth: r,
|
|
8013
8033
|
cellClass: vt,
|
|
8014
8034
|
suppressColumnsToolPanel: !0,
|
|
8015
|
-
cellRenderer:
|
|
8035
|
+
cellRenderer: Wi,
|
|
8016
8036
|
cellRendererParams: {
|
|
8017
8037
|
attributesData: n,
|
|
8018
8038
|
dataSetData: e,
|
|
@@ -8066,7 +8086,7 @@ const Qn = ["index", "value"], Rc = (e) => ({
|
|
|
8066
8086
|
tooltipValueGetter: (g) => g.value
|
|
8067
8087
|
});
|
|
8068
8088
|
return a.push(...c), a;
|
|
8069
|
-
},
|
|
8089
|
+
}, Bi = (e) => e * pt + In + Sc, $c = ({ attachment: e, actions: n, className: t = "" }) => {
|
|
8070
8090
|
const [r, o] = C(!1), [i, a] = C([]), [d, l] = C(), [c, s] = C(400);
|
|
8071
8091
|
O(() => {
|
|
8072
8092
|
e.url != null && (o(!0), n.getFile(e.url).then((f) => {
|
|
@@ -8078,7 +8098,7 @@ const Qn = ["index", "value"], Rc = (e) => ({
|
|
|
8078
8098
|
a(m), l(g), o(!1);
|
|
8079
8099
|
}));
|
|
8080
8100
|
}, [e.url, n]), O(() => {
|
|
8081
|
-
i && s(
|
|
8101
|
+
i && s(Bi(i.length));
|
|
8082
8102
|
}, [i]);
|
|
8083
8103
|
const u = ce(
|
|
8084
8104
|
() => /* @__PURE__ */ h(
|
|
@@ -8330,7 +8350,7 @@ const Fc = (e, n) => {
|
|
|
8330
8350
|
}, zc = (e) => {
|
|
8331
8351
|
var n;
|
|
8332
8352
|
return (n = e == null ? void 0 : e.data) == null ? void 0 : n.attributes;
|
|
8333
|
-
},
|
|
8353
|
+
}, Fi = (e, n) => Object.entries(e == null ? void 0 : e.data).filter(([t]) => n == null ? void 0 : n.get(t)).map(([t, r]) => ({ name: t, value: String(r) })), go = (e, n, t) => {
|
|
8334
8354
|
var o;
|
|
8335
8355
|
const r = typeof e == "object" ? e == null ? void 0 : e[n] : e;
|
|
8336
8356
|
return t ? he(
|
|
@@ -8352,29 +8372,29 @@ const Fc = (e, n) => {
|
|
|
8352
8372
|
Vn(e, t, r),
|
|
8353
8373
|
{ title: (r == null ? void 0 : r.agency) ?? "Agency", value: e == null ? void 0 : e.agencyID },
|
|
8354
8374
|
{ title: (r == null ? void 0 : r.lastUpdated) ?? "Last updated", value: n }
|
|
8355
|
-
],
|
|
8375
|
+
], Ui = (e, n, t) => {
|
|
8356
8376
|
var r, o;
|
|
8357
8377
|
return {
|
|
8358
|
-
title:
|
|
8378
|
+
title: Ci(
|
|
8359
8379
|
e == null ? void 0 : e.conceptSchemes,
|
|
8360
8380
|
(o = (r = Oe(e)) == null ? void 0 : r.timeDimensions) == null ? void 0 : o[0],
|
|
8361
8381
|
n
|
|
8362
8382
|
),
|
|
8363
8383
|
value: (t == null ? void 0 : t.colId) || ""
|
|
8364
8384
|
};
|
|
8365
|
-
},
|
|
8385
|
+
}, zi = (e, n) => ({
|
|
8366
8386
|
title: (n == null ? void 0 : n.observation) || "Observation",
|
|
8367
8387
|
value: e
|
|
8368
|
-
}),
|
|
8388
|
+
}), ji = (e, n, t, r, o, i) => {
|
|
8369
8389
|
var d;
|
|
8370
8390
|
const a = {
|
|
8371
8391
|
title: (r == null ? void 0 : r.timeSeries) || "Time Series",
|
|
8372
8392
|
value: (d = i == null ? void 0 : i.originalData) == null ? void 0 : d.name
|
|
8373
8393
|
};
|
|
8374
8394
|
return t ? [
|
|
8375
|
-
|
|
8395
|
+
Ui(e, n, o),
|
|
8376
8396
|
a,
|
|
8377
|
-
|
|
8397
|
+
zi(t, r)
|
|
8378
8398
|
] : [a];
|
|
8379
8399
|
}, Yc = (e) => {
|
|
8380
8400
|
var r, o, i, a, d;
|
|
@@ -8446,7 +8466,7 @@ const Fc = (e, n) => {
|
|
|
8446
8466
|
}, Xc = (e) => {
|
|
8447
8467
|
const n = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.id), t = (e == null ? void 0 : e.values) || (e == null ? void 0 : e.ids);
|
|
8448
8468
|
return n != null ? [n] : t || [null];
|
|
8449
|
-
},
|
|
8469
|
+
}, Yi = (e, n, t) => {
|
|
8450
8470
|
var o, i;
|
|
8451
8471
|
if (n == null)
|
|
8452
8472
|
return n;
|
|
@@ -8464,7 +8484,7 @@ const Fc = (e, n) => {
|
|
|
8464
8484
|
const f = ((u = i == null ? void 0 : i[s]) == null ? void 0 : u.id) || "", g = he(
|
|
8465
8485
|
n == null ? void 0 : n.get(f),
|
|
8466
8486
|
r
|
|
8467
|
-
), m =
|
|
8487
|
+
), m = Yi(
|
|
8468
8488
|
f,
|
|
8469
8489
|
c,
|
|
8470
8490
|
n
|
|
@@ -8486,7 +8506,7 @@ const Fc = (e, n) => {
|
|
|
8486
8506
|
id: u == null ? void 0 : u.id,
|
|
8487
8507
|
title: he(m, o),
|
|
8488
8508
|
value: Array.isArray(p) ? p == null ? void 0 : p.map(
|
|
8489
|
-
(k) =>
|
|
8509
|
+
(k) => Yi(
|
|
8490
8510
|
u == null ? void 0 : u.id,
|
|
8491
8511
|
k,
|
|
8492
8512
|
t
|
|
@@ -8514,7 +8534,7 @@ const Fc = (e, n) => {
|
|
|
8514
8534
|
e.titles
|
|
8515
8535
|
),
|
|
8516
8536
|
...An(
|
|
8517
|
-
|
|
8537
|
+
Fi(e, f),
|
|
8518
8538
|
f,
|
|
8519
8539
|
e == null ? void 0 : e.locale
|
|
8520
8540
|
),
|
|
@@ -8534,7 +8554,7 @@ const Fc = (e, n) => {
|
|
|
8534
8554
|
},
|
|
8535
8555
|
[e, f]
|
|
8536
8556
|
), m = ce(
|
|
8537
|
-
() =>
|
|
8557
|
+
() => ji(
|
|
8538
8558
|
e == null ? void 0 : e.dataSetData,
|
|
8539
8559
|
e == null ? void 0 : e.locale,
|
|
8540
8560
|
(e == null ? void 0 : e.valueFormatted) || (e == null ? void 0 : e.value),
|
|
@@ -8616,17 +8636,17 @@ const Fc = (e, n) => {
|
|
|
8616
8636
|
e == null ? void 0 : e.titles
|
|
8617
8637
|
),
|
|
8618
8638
|
...An(
|
|
8619
|
-
|
|
8639
|
+
Fi(e, r),
|
|
8620
8640
|
r,
|
|
8621
8641
|
e == null ? void 0 : e.locale
|
|
8622
8642
|
),
|
|
8623
8643
|
...(g = e == null ? void 0 : e.metadataSettings) != null && g.isMetadataDescription ? [] : [
|
|
8624
|
-
|
|
8644
|
+
Ui(
|
|
8625
8645
|
e == null ? void 0 : e.dataSetData,
|
|
8626
8646
|
e == null ? void 0 : e.locale,
|
|
8627
8647
|
e == null ? void 0 : e.colDef
|
|
8628
8648
|
),
|
|
8629
|
-
|
|
8649
|
+
zi(
|
|
8630
8650
|
(e == null ? void 0 : e.valueFormatted) || (e == null ? void 0 : e.value),
|
|
8631
8651
|
e == null ? void 0 : e.titles
|
|
8632
8652
|
)
|
|
@@ -8636,7 +8656,7 @@ const Fc = (e, n) => {
|
|
|
8636
8656
|
},
|
|
8637
8657
|
[e, r, o]
|
|
8638
8658
|
), a = ce(
|
|
8639
|
-
() =>
|
|
8659
|
+
() => ji(
|
|
8640
8660
|
e == null ? void 0 : e.dataSetData,
|
|
8641
8661
|
e == null ? void 0 : e.locale,
|
|
8642
8662
|
(e == null ? void 0 : e.valueFormatted) || (e == null ? void 0 : e.value),
|
|
@@ -8690,7 +8710,7 @@ const Fc = (e, n) => {
|
|
|
8690
8710
|
l(e.grid_data.data), s(M), a(!1);
|
|
8691
8711
|
}
|
|
8692
8712
|
}, [e.grid_data, t]), O(() => {
|
|
8693
|
-
d && f(
|
|
8713
|
+
d && f(Bi(d.length));
|
|
8694
8714
|
}, [d]), O(() => {
|
|
8695
8715
|
if (E) {
|
|
8696
8716
|
const { title: M, description: _ } = He(
|
|
@@ -8739,9 +8759,9 @@ const Fc = (e, n) => {
|
|
|
8739
8759
|
tooltipShowDelay: 0,
|
|
8740
8760
|
tooltipShowMode: "whenTruncated",
|
|
8741
8761
|
components: {
|
|
8742
|
-
[
|
|
8743
|
-
[
|
|
8744
|
-
[Oc]:
|
|
8762
|
+
[Gi]: nd,
|
|
8763
|
+
[Hi]: td,
|
|
8764
|
+
[Oc]: Wi
|
|
8745
8765
|
}
|
|
8746
8766
|
}
|
|
8747
8767
|
),
|
|
@@ -8865,8 +8885,8 @@ const Fc = (e, n) => {
|
|
|
8865
8885
|
open: r,
|
|
8866
8886
|
onOpenChange: o,
|
|
8867
8887
|
placement: "top-start"
|
|
8868
|
-
}), l =
|
|
8869
|
-
handleClose:
|
|
8888
|
+
}), l = Wl(d, {
|
|
8889
|
+
handleClose: Hl({
|
|
8870
8890
|
blockPointerEvents: !0
|
|
8871
8891
|
})
|
|
8872
8892
|
}), { getReferenceProps: c, getFloatingProps: s } = Mn([l]);
|
|
@@ -8992,7 +9012,7 @@ const dd = ({ option: e, style: n }) => {
|
|
|
8992
9012
|
block: "center",
|
|
8993
9013
|
behavior: "smooth"
|
|
8994
9014
|
})), g.lastDisplayedElement === de.CHART_PER_SERIES && (p == null || p(
|
|
8995
|
-
|
|
9015
|
+
_i(g)
|
|
8996
9016
|
)));
|
|
8997
9017
|
}, [
|
|
8998
9018
|
i,
|
|
@@ -9058,7 +9078,7 @@ const dd = ({ option: e, style: n }) => {
|
|
|
9058
9078
|
)
|
|
9059
9079
|
] }),
|
|
9060
9080
|
/* @__PURE__ */ h(
|
|
9061
|
-
|
|
9081
|
+
$i,
|
|
9062
9082
|
{
|
|
9063
9083
|
dimensionsInfo: u.dimensions
|
|
9064
9084
|
}
|
|
@@ -9141,8 +9161,8 @@ const hd = ({
|
|
|
9141
9161
|
items: n,
|
|
9142
9162
|
selectedValue: t,
|
|
9143
9163
|
setSelectedValue: r
|
|
9144
|
-
}) => /* @__PURE__ */ h(
|
|
9145
|
-
|
|
9164
|
+
}) => /* @__PURE__ */ h(gi, { title: e, value: t.title, children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-y-1", children: n.map((o) => /* @__PURE__ */ h("div", { className: "flex flex-col", children: /* @__PURE__ */ h(
|
|
9165
|
+
mi,
|
|
9146
9166
|
{
|
|
9147
9167
|
id: o.value,
|
|
9148
9168
|
checked: t.value === o.value,
|
|
@@ -9151,7 +9171,7 @@ const hd = ({
|
|
|
9151
9171
|
onChange: () => {
|
|
9152
9172
|
r(o);
|
|
9153
9173
|
},
|
|
9154
|
-
radioIcon: /* @__PURE__ */ h(
|
|
9174
|
+
radioIcon: /* @__PURE__ */ h(Tl, { className: "w-3 h-3" })
|
|
9155
9175
|
},
|
|
9156
9176
|
o.value
|
|
9157
9177
|
) }, o.value)) }) }), pd = (e, n, t, r) => {
|
|
@@ -9256,7 +9276,7 @@ const hd = ({
|
|
|
9256
9276
|
}
|
|
9257
9277
|
),
|
|
9258
9278
|
/* @__PURE__ */ h(
|
|
9259
|
-
|
|
9279
|
+
gi,
|
|
9260
9280
|
{
|
|
9261
9281
|
title: (u == null ? void 0 : u.metadata) || "Metadata",
|
|
9262
9282
|
value: k ? (u == null ? void 0 : u.all) || "Included" : (u == null ? void 0 : u.none) || "Not included",
|
|
@@ -9326,7 +9346,7 @@ const hd = ({
|
|
|
9326
9346
|
},
|
|
9327
9347
|
children: /* @__PURE__ */ h("h3", { className: "dataset-tab-title truncate", title: n, children: n })
|
|
9328
9348
|
}
|
|
9329
|
-
),
|
|
9349
|
+
), Ji = ({
|
|
9330
9350
|
datasets: e,
|
|
9331
9351
|
locale: n,
|
|
9332
9352
|
isHideAdvancedViewButton: t,
|
|
@@ -9415,8 +9435,8 @@ const hd = ({
|
|
|
9415
9435
|
}
|
|
9416
9436
|
);
|
|
9417
9437
|
};
|
|
9418
|
-
|
|
9419
|
-
const
|
|
9438
|
+
Ul.registerModules([zl]);
|
|
9439
|
+
const Ki = ({
|
|
9420
9440
|
attachments: e,
|
|
9421
9441
|
actions: n,
|
|
9422
9442
|
titles: t,
|
|
@@ -9493,7 +9513,7 @@ const Ji = ({
|
|
|
9493
9513
|
}
|
|
9494
9514
|
),
|
|
9495
9515
|
!M && (u == null ? void 0 : u.length) != null && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ h(
|
|
9496
|
-
|
|
9516
|
+
Ji,
|
|
9497
9517
|
{
|
|
9498
9518
|
datasets: u,
|
|
9499
9519
|
initialSelectedDatasetUrn: f,
|
|
@@ -9546,7 +9566,7 @@ const Ji = ({
|
|
|
9546
9566
|
attachment: A
|
|
9547
9567
|
}
|
|
9548
9568
|
),
|
|
9549
|
-
|
|
9569
|
+
Ii(A) && /* @__PURE__ */ h(
|
|
9550
9570
|
$c,
|
|
9551
9571
|
{
|
|
9552
9572
|
actions: n,
|
|
@@ -9580,7 +9600,7 @@ const Ji = ({
|
|
|
9580
9600
|
openLinkTitle: o == null ? void 0 : o.openLinkTitle
|
|
9581
9601
|
}
|
|
9582
9602
|
),
|
|
9583
|
-
|
|
9603
|
+
Ri(A) && /* @__PURE__ */ h(wc, { attachment: A })
|
|
9584
9604
|
] })
|
|
9585
9605
|
] })
|
|
9586
9606
|
}
|
|
@@ -9607,7 +9627,7 @@ const Ji = ({
|
|
|
9607
9627
|
}
|
|
9608
9628
|
),
|
|
9609
9629
|
I && /* @__PURE__ */ h(
|
|
9610
|
-
|
|
9630
|
+
Na,
|
|
9611
9631
|
{
|
|
9612
9632
|
alertDetails: W,
|
|
9613
9633
|
successIcon: o == null ? void 0 : o.successDownloadIcon,
|
|
@@ -9662,7 +9682,7 @@ const Ji = ({
|
|
|
9662
9682
|
)
|
|
9663
9683
|
] }),
|
|
9664
9684
|
/* @__PURE__ */ h("div", { className: "advanced-view-attachments-container flex-1 min-h-0", children: /* @__PURE__ */ h(
|
|
9665
|
-
|
|
9685
|
+
Ki,
|
|
9666
9686
|
{
|
|
9667
9687
|
titles: s,
|
|
9668
9688
|
attachments: t,
|
|
@@ -9748,11 +9768,11 @@ function Ad(e) {
|
|
|
9748
9768
|
};
|
|
9749
9769
|
}
|
|
9750
9770
|
const po = Symbol.for("constructDateFrom");
|
|
9751
|
-
function
|
|
9771
|
+
function Zi(e, n) {
|
|
9752
9772
|
return typeof e == "function" ? e(n) : e && typeof e == "object" && po in e ? e[po](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
|
|
9753
9773
|
}
|
|
9754
9774
|
function Dd(e, ...n) {
|
|
9755
|
-
const t =
|
|
9775
|
+
const t = Zi.bind(
|
|
9756
9776
|
null,
|
|
9757
9777
|
e || n.find((r) => typeof r == "object")
|
|
9758
9778
|
);
|
|
@@ -9763,14 +9783,14 @@ function Md() {
|
|
|
9763
9783
|
return xd;
|
|
9764
9784
|
}
|
|
9765
9785
|
function yt(e, n) {
|
|
9766
|
-
return
|
|
9786
|
+
return Zi(n || e, e);
|
|
9767
9787
|
}
|
|
9768
9788
|
function vo(e, n) {
|
|
9769
9789
|
var d, l, c, s;
|
|
9770
9790
|
const t = Md(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((l = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((s = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : s.weekStartsOn) ?? 0, o = yt(e, n == null ? void 0 : n.in), i = o.getDay(), a = (i < r ? 7 : 0) + i - r;
|
|
9771
9791
|
return o.setDate(o.getDate() - a), o.setHours(0, 0, 0, 0), o;
|
|
9772
9792
|
}
|
|
9773
|
-
function
|
|
9793
|
+
function qi(e, n, t) {
|
|
9774
9794
|
const [r, o] = Dd(
|
|
9775
9795
|
t == null ? void 0 : t.in,
|
|
9776
9796
|
e,
|
|
@@ -10009,7 +10029,7 @@ function Pd(e) {
|
|
|
10009
10029
|
return "'у минулий " + n + " о' p";
|
|
10010
10030
|
}
|
|
10011
10031
|
}
|
|
10012
|
-
function
|
|
10032
|
+
function Xi(e) {
|
|
10013
10033
|
return "'у " + Ct[e] + " о' p";
|
|
10014
10034
|
}
|
|
10015
10035
|
function Vd(e) {
|
|
@@ -10028,10 +10048,10 @@ function Vd(e) {
|
|
|
10028
10048
|
}
|
|
10029
10049
|
const $d = (e, n, t) => {
|
|
10030
10050
|
const r = yt(e), o = r.getDay();
|
|
10031
|
-
return
|
|
10051
|
+
return qi(r, n, t) ? Xi(o) : Pd(o);
|
|
10032
10052
|
}, Wd = (e, n, t) => {
|
|
10033
10053
|
const r = yt(e), o = r.getDay();
|
|
10034
|
-
return
|
|
10054
|
+
return qi(r, n, t) ? Xi(o) : Vd(o);
|
|
10035
10055
|
}, Hd = {
|
|
10036
10056
|
lastWeek: $d,
|
|
10037
10057
|
yesterday: "'вчора о' p",
|
|
@@ -10335,7 +10355,7 @@ const $d = (e, n, t) => {
|
|
|
10335
10355
|
}
|
|
10336
10356
|
}, uu = (e) => e === We.UK ? "dd MMM, yyyy" : " MMM dd, yyyy hh:mm aa", hu = (e, n) => {
|
|
10337
10357
|
const t = uu(n);
|
|
10338
|
-
return e != null && e !== "" && t &&
|
|
10358
|
+
return e != null && e !== "" && t && Yl(new Date(e)) ? jl(
|
|
10339
10359
|
new Date(e),
|
|
10340
10360
|
t,
|
|
10341
10361
|
n === We.UK ? { locale: du } : void 0
|
|
@@ -10410,7 +10430,7 @@ const $d = (e, n, t) => {
|
|
|
10410
10430
|
}
|
|
10411
10431
|
) }),
|
|
10412
10432
|
n == null ? void 0 : n.name,
|
|
10413
|
-
l && /* @__PURE__ */ h("a", { href: l, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ h(
|
|
10433
|
+
l && /* @__PURE__ */ h("a", { href: l, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ h(Ll, { className: "text-primary cursor-pointer w-4 h-4 shrink-0" }) })
|
|
10414
10434
|
] }),
|
|
10415
10435
|
/* @__PURE__ */ b("div", { className: "flex mt-1 text-neutrals-800 body-3 divide-x divide-neutrals-500", children: [
|
|
10416
10436
|
/* @__PURE__ */ b("p", { className: "pr-2", children: [
|
|
@@ -10431,7 +10451,7 @@ const $d = (e, n, t) => {
|
|
|
10431
10451
|
(a == null ? void 0 : a.dataset) ?? "Dataset"
|
|
10432
10452
|
] }),
|
|
10433
10453
|
/* @__PURE__ */ b("h5", { className: "flex items-center text-neutrals-700", children: [
|
|
10434
|
-
/* @__PURE__ */ h(
|
|
10454
|
+
/* @__PURE__ */ h(Ol, { className: "w-4 h-4 mr-1" }),
|
|
10435
10455
|
(a == null ? void 0 : a.lastUpdated) ?? "Last updated",
|
|
10436
10456
|
":",
|
|
10437
10457
|
/* @__PURE__ */ h("span", { className: "ml-1", children: c })
|
|
@@ -10448,7 +10468,7 @@ const $d = (e, n, t) => {
|
|
|
10448
10468
|
onClick: M
|
|
10449
10469
|
}
|
|
10450
10470
|
) }),
|
|
10451
|
-
l && /* @__PURE__ */ h("a", { href: l, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ h(
|
|
10471
|
+
l && /* @__PURE__ */ h("a", { href: l, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ h(_l, { className: "cursor-pointer w-6 h-6 shrink-0" }) })
|
|
10452
10472
|
] })
|
|
10453
10473
|
] }),
|
|
10454
10474
|
N && /* @__PURE__ */ h(
|
|
@@ -10532,11 +10552,11 @@ const $d = (e, n, t) => {
|
|
|
10532
10552
|
]
|
|
10533
10553
|
}
|
|
10534
10554
|
),
|
|
10535
|
-
t && /* @__PURE__ */ h(
|
|
10555
|
+
t && /* @__PURE__ */ h(ci, { locale: n, ...r })
|
|
10536
10556
|
]
|
|
10537
10557
|
}
|
|
10538
10558
|
);
|
|
10539
|
-
}, mu = 1, wu = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, pu = /^[0-9][0-9][0-9][0-9]-W[0-9][0-9]?$/, vu = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, bu = /^[0-9][0-9][0-9][0-9]$/, Nu = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, Et = (e) => bu.exec(e),
|
|
10559
|
+
}, mu = 1, wu = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, pu = /^[0-9][0-9][0-9][0-9]-W[0-9][0-9]?$/, vu = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, bu = /^[0-9][0-9][0-9][0-9]$/, Nu = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, Et = (e) => bu.exec(e), Qi = (e) => !!Et(e), ku = (e) => vu.exec(e), el = (e) => !!ku(e), At = (e) => Nu.exec(e), nl = (e) => !!At(e), Dt = (e) => wu.exec(e), tl = (e) => !!Dt(e), yu = (e) => pu.exec(e), rl = (e) => !!yu(e), ol = (e, n, t) => {
|
|
10540
10560
|
const r = Fe(n, !0), o = Fe(t), i = Fe(e, !0), a = Fe(e), d = r.getTime() > i.getTime() ? r : i, l = o.getTime() < a.getTime() ? o : a;
|
|
10541
10561
|
return {
|
|
10542
10562
|
start: d,
|
|
@@ -10544,10 +10564,10 @@ const $d = (e, n, t) => {
|
|
|
10544
10564
|
};
|
|
10545
10565
|
};
|
|
10546
10566
|
function Cu(e) {
|
|
10547
|
-
return
|
|
10567
|
+
return Qi(e) ? Au(e) : el(e) ? xu(e) : tl(e) ? Su(e) : nl(e) ? Ou(e) : rl(e) ? Yu(e) : Lu(e);
|
|
10548
10568
|
}
|
|
10549
10569
|
function Eu(e) {
|
|
10550
|
-
return
|
|
10570
|
+
return Qi(e) ? Du(e) : el(e) ? Mu(e) : tl(e) ? Tu(e) : nl(e) ? _u(e) : rl(e) ? Ju(e) : Ru(e);
|
|
10551
10571
|
}
|
|
10552
10572
|
function Au(e) {
|
|
10553
10573
|
const n = Et(e);
|
|
@@ -10627,15 +10647,15 @@ const Iu = (e, n, t, r = !0, o = "Q") => {
|
|
|
10627
10647
|
}, Pu = (e, n, t, r = "S") => {
|
|
10628
10648
|
const o = [];
|
|
10629
10649
|
return (n || 1) < 7 && (t || 12) > 6 && o.push(`${e}-${r}1`), t == null && o.push(`${e}-${r}2`), o;
|
|
10630
|
-
},
|
|
10650
|
+
}, il = (e, n, t = "M") => `${e}-${t}${n.toString().padStart(2, "0")}`, Vu = (e, n, t = "M") => {
|
|
10631
10651
|
const r = [];
|
|
10632
10652
|
for (let o = n; o <= 12; o++)
|
|
10633
|
-
r.push(
|
|
10653
|
+
r.push(il(e, o, t));
|
|
10634
10654
|
return r;
|
|
10635
10655
|
}, $u = (e, n, t, r = "M") => {
|
|
10636
10656
|
const o = [];
|
|
10637
10657
|
for (let i = n; i < t; i++)
|
|
10638
|
-
o.push(
|
|
10658
|
+
o.push(il(e, i, r));
|
|
10639
10659
|
return o;
|
|
10640
10660
|
}, Wu = (e, n, t, r = "M") => {
|
|
10641
10661
|
const o = n || 1, i = t == null, a = t || 12;
|
|
@@ -10650,19 +10670,19 @@ const Iu = (e, n, t, r = !0, o = "Q") => {
|
|
|
10650
10670
|
const t = Number(e);
|
|
10651
10671
|
return e.toString().length !== 13 ? n ? Cu(e) : Eu(e) : isNaN(t) ? /* @__PURE__ */ new Date(`${e}T00:00:00.000Z`) : new Date(t);
|
|
10652
10672
|
}, Bu = (e, n) => n ? Math.floor((e + 1) / 3) : Math.ceil((e + 1) / 3), Fu = (e, n, t, r = "W") => {
|
|
10653
|
-
const o = +e, { start: i, end: a } =
|
|
10673
|
+
const o = +e, { start: i, end: a } = ol(e, n, t);
|
|
10654
10674
|
if (i.getTime() > a.getTime())
|
|
10655
10675
|
return [];
|
|
10656
10676
|
const d = Dn(i, r), l = d.weekYear === o ? d.weekNumber : d.weekYear < o ? 1 : bo(o, r), c = Dn(a, r), s = c.weekYear === o ? c.weekNumber : c.weekYear > o ? bo(o, r) : 1, u = [];
|
|
10657
10677
|
if (l < s)
|
|
10658
10678
|
for (let f = l; f <= s; f++)
|
|
10659
|
-
u.push(
|
|
10679
|
+
u.push(ll(o, f, r));
|
|
10660
10680
|
return u;
|
|
10661
10681
|
}, Uu = (e) => {
|
|
10662
10682
|
const n = new Date(e);
|
|
10663
10683
|
return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n.toISOString().slice(0, 10);
|
|
10664
10684
|
}, zu = (e, n, t) => {
|
|
10665
|
-
const { start: r, end: o } =
|
|
10685
|
+
const { start: r, end: o } = ol(e, n, t);
|
|
10666
10686
|
if (r.getTime() > o.getTime())
|
|
10667
10687
|
return [];
|
|
10668
10688
|
const i = [], a = new Date(
|
|
@@ -10695,7 +10715,7 @@ function bo(e, n = "W") {
|
|
|
10695
10715
|
const o = `${e}-12-24`;
|
|
10696
10716
|
return Dn(new Date(o), n).weekNumber;
|
|
10697
10717
|
}
|
|
10698
|
-
function
|
|
10718
|
+
function ll(e, n, t = "W") {
|
|
10699
10719
|
return `${e}-${t}${n < 10 ? "0" + n : n}`;
|
|
10700
10720
|
}
|
|
10701
10721
|
function Dn(e, n = "W") {
|
|
@@ -10703,7 +10723,7 @@ function Dn(e, n = "W") {
|
|
|
10703
10723
|
(t.getTime() - o.getTime()) / Mt
|
|
10704
10724
|
);
|
|
10705
10725
|
return {
|
|
10706
|
-
code:
|
|
10726
|
+
code: ll(r, i, n),
|
|
10707
10727
|
weekNumber: i,
|
|
10708
10728
|
weekYear: r
|
|
10709
10729
|
};
|
|
@@ -10781,19 +10801,19 @@ function Tt(e, n, t) {
|
|
|
10781
10801
|
codeList: o || void 0
|
|
10782
10802
|
};
|
|
10783
10803
|
}
|
|
10784
|
-
function
|
|
10804
|
+
function al(e, n, t) {
|
|
10785
10805
|
const r = e.findIndex(
|
|
10786
10806
|
(o) => o.id === n
|
|
10787
10807
|
);
|
|
10788
10808
|
return t.originalData.parsedTimeSeriesValue[r];
|
|
10789
10809
|
}
|
|
10790
|
-
function
|
|
10810
|
+
function sl(e, n, t, r, o) {
|
|
10791
10811
|
var d;
|
|
10792
|
-
const i =
|
|
10812
|
+
const i = al(e, n, r), a = (d = t == null ? void 0 : t.codes) == null ? void 0 : d.find((l) => l.id === i);
|
|
10793
10813
|
return he(a, o);
|
|
10794
10814
|
}
|
|
10795
|
-
const Ot = 1440 * 60 * 1e3,
|
|
10796
|
-
function
|
|
10815
|
+
const Ot = 1440 * 60 * 1e3, cl = 7 * Ot;
|
|
10816
|
+
function dl(e) {
|
|
10797
10817
|
const n = `${e}-01-01`, t = new Date(n);
|
|
10798
10818
|
if (t.getDay() !== 4) {
|
|
10799
10819
|
const o = 1 + (4 - t.getDay() + 7) % 7;
|
|
@@ -10802,11 +10822,11 @@ function cl(e) {
|
|
|
10802
10822
|
return t;
|
|
10803
10823
|
}
|
|
10804
10824
|
function nh(e) {
|
|
10805
|
-
const [n, t] = e.split("-W"), o =
|
|
10825
|
+
const [n, t] = e.split("-W"), o = dl(+n).getTime() + (+t - 1) * cl - 3 * Ot;
|
|
10806
10826
|
return new Date(o);
|
|
10807
10827
|
}
|
|
10808
10828
|
function th(e) {
|
|
10809
|
-
const [n, t] = e.split("-W"), o =
|
|
10829
|
+
const [n, t] = e.split("-W"), o = dl(+n).getTime() + (+t - 1) * cl + 3 * Ot;
|
|
10810
10830
|
return new Date(o);
|
|
10811
10831
|
}
|
|
10812
10832
|
function rh(e) {
|
|
@@ -10940,7 +10960,7 @@ function wh(e, n) {
|
|
|
10940
10960
|
r
|
|
10941
10961
|
), c = (s) => {
|
|
10942
10962
|
const { data: u, colDef: f } = s, g = f.field;
|
|
10943
|
-
return
|
|
10963
|
+
return sl(
|
|
10944
10964
|
o,
|
|
10945
10965
|
g,
|
|
10946
10966
|
d,
|
|
@@ -10996,7 +11016,7 @@ const vh = (e, n, t = wn, r) => ({
|
|
|
10996
11016
|
return ((f = (u = (s = c.data[c.column.getColId()]) == null ? void 0 : s.value) == null ? void 0 : u[0]) == null ? void 0 : f.value) || null;
|
|
10997
11017
|
},
|
|
10998
11018
|
cellClass: vt,
|
|
10999
|
-
cellRenderer:
|
|
11019
|
+
cellRenderer: Hi,
|
|
11000
11020
|
width: Pn,
|
|
11001
11021
|
cellRendererParams: {
|
|
11002
11022
|
dataSetData: t,
|
|
@@ -11186,7 +11206,7 @@ function _h(e, n, t) {
|
|
|
11186
11206
|
const Lh = (e, n, t, r) => {
|
|
11187
11207
|
const o = Ih(e, n), i = {};
|
|
11188
11208
|
for (const a of o) {
|
|
11189
|
-
const d = a.rowTime, l =
|
|
11209
|
+
const d = a.rowTime, l = ul(d, r);
|
|
11190
11210
|
if (i[l] == null) {
|
|
11191
11211
|
i[l] = {};
|
|
11192
11212
|
for (const c of r)
|
|
@@ -11203,8 +11223,8 @@ const Lh = (e, n, t, r) => {
|
|
|
11203
11223
|
};
|
|
11204
11224
|
}
|
|
11205
11225
|
return Object.values(i);
|
|
11206
|
-
},
|
|
11207
|
-
const t =
|
|
11226
|
+
}, ul = (e, n) => n.map((t) => e[t]).join("_"), Rh = (e, n) => {
|
|
11227
|
+
const t = ul(e, n), { OBS_VALUE: r, obsAttributes: o } = e, i = {};
|
|
11208
11228
|
return i[t] = {
|
|
11209
11229
|
value: r,
|
|
11210
11230
|
obsAttributes: o
|
|
@@ -11302,7 +11322,7 @@ function Co(e = Vh, n = $h) {
|
|
|
11302
11322
|
}
|
|
11303
11323
|
};
|
|
11304
11324
|
}
|
|
11305
|
-
function
|
|
11325
|
+
function hl(e, n, t, r) {
|
|
11306
11326
|
return n.map((i) => {
|
|
11307
11327
|
var c;
|
|
11308
11328
|
const a = ((c = Oe(t)) == null ? void 0 : c.dimensions) || [], d = a == null ? void 0 : a.find((s) => s.id === i);
|
|
@@ -11313,7 +11333,7 @@ function ul(e, n, t, r) {
|
|
|
11313
11333
|
t.conceptSchemes || [],
|
|
11314
11334
|
t.codelists || []
|
|
11315
11335
|
);
|
|
11316
|
-
return
|
|
11336
|
+
return sl(
|
|
11317
11337
|
a,
|
|
11318
11338
|
i,
|
|
11319
11339
|
l,
|
|
@@ -11346,7 +11366,7 @@ function Gh(e, n, t) {
|
|
|
11346
11366
|
function Bh(e, n, t) {
|
|
11347
11367
|
var i, a, d, l;
|
|
11348
11368
|
const r = ((l = (d = (a = (i = t.dataStructures) == null ? void 0 : i[0]) == null ? void 0 : a.dataStructureComponents) == null ? void 0 : d.dimensionList) == null ? void 0 : l.dimensions) || [];
|
|
11349
|
-
return n.map((c) => (r == null ? void 0 : r.find((u) => u.id === c)) == null ? e[c] || "" :
|
|
11369
|
+
return n.map((c) => (r == null ? void 0 : r.find((u) => u.id === c)) == null ? e[c] || "" : al(r, c, e)).join(" - ");
|
|
11350
11370
|
}
|
|
11351
11371
|
function Fh(e, n) {
|
|
11352
11372
|
const t = {};
|
|
@@ -11372,7 +11392,7 @@ const jh = ["FREQ", "FREQUENCY"];
|
|
|
11372
11392
|
var pn = /* @__PURE__ */ ((e) => (e.ANNUAL = "A", e.QUARTERLY = "Q", e.MONTHLY = "M", e))(pn || {});
|
|
11373
11393
|
const Yh = "line", un = 10;
|
|
11374
11394
|
function Jh(e, n, t, r, o) {
|
|
11375
|
-
const i =
|
|
11395
|
+
const i = gl(n, e, t, r, o), d = Nt(n).sort((u, f) => _t(u, f)), l = Hh(
|
|
11376
11396
|
e,
|
|
11377
11397
|
t
|
|
11378
11398
|
), { nonUniqDimensions: c } = Fh(
|
|
@@ -11381,12 +11401,12 @@ function Jh(e, n, t, r, o) {
|
|
|
11381
11401
|
);
|
|
11382
11402
|
return {
|
|
11383
11403
|
units: Gh(i, c, e).map(
|
|
11384
|
-
(u) =>
|
|
11404
|
+
(u) => fl(u, e, t, d, r, o)
|
|
11385
11405
|
)
|
|
11386
11406
|
};
|
|
11387
11407
|
}
|
|
11388
11408
|
function Kh(e, n, t, r, o, i) {
|
|
11389
|
-
return
|
|
11409
|
+
return fl(
|
|
11390
11410
|
{ rows: [e] },
|
|
11391
11411
|
t,
|
|
11392
11412
|
r,
|
|
@@ -11395,7 +11415,7 @@ function Kh(e, n, t, r, o, i) {
|
|
|
11395
11415
|
i
|
|
11396
11416
|
);
|
|
11397
11417
|
}
|
|
11398
|
-
function
|
|
11418
|
+
function fl(e, n, t, r, o, i) {
|
|
11399
11419
|
var c, s;
|
|
11400
11420
|
const a = qh(
|
|
11401
11421
|
e.rows.length > un ? e.rows.slice(0, un) : e.rows,
|
|
@@ -11437,7 +11457,7 @@ function qh(e, n, t, r, o) {
|
|
|
11437
11457
|
return e.map((i) => {
|
|
11438
11458
|
var a, d;
|
|
11439
11459
|
return {
|
|
11440
|
-
name: ((a = t == null ? void 0 : t.metadata) == null ? void 0 : a.countryDimension) == null ? "" :
|
|
11460
|
+
name: ((a = t == null ? void 0 : t.metadata) == null ? void 0 : a.countryDimension) == null ? "" : hl(
|
|
11441
11461
|
i,
|
|
11442
11462
|
[(d = t == null ? void 0 : t.metadata) == null ? void 0 : d.countryDimension],
|
|
11443
11463
|
n,
|
|
@@ -11459,7 +11479,7 @@ function Qh(e, n, t) {
|
|
|
11459
11479
|
return {
|
|
11460
11480
|
id: o.id,
|
|
11461
11481
|
title: ef(o, n, t),
|
|
11462
|
-
value:
|
|
11482
|
+
value: hl(e[0], [o.id], n, t)
|
|
11463
11483
|
};
|
|
11464
11484
|
}).filter((o) => o != null);
|
|
11465
11485
|
}
|
|
@@ -11467,7 +11487,7 @@ function ef(e, n, t) {
|
|
|
11467
11487
|
const r = n.conceptSchemes || [], o = n.codelists || [], { concept: i } = Tt(e, r, o);
|
|
11468
11488
|
return he(i, t) || e.id;
|
|
11469
11489
|
}
|
|
11470
|
-
function
|
|
11490
|
+
function gl(e, n, t, r, o) {
|
|
11471
11491
|
var c, s;
|
|
11472
11492
|
const i = e == null ? [] : Eh(e), a = ((c = Oe(n)) == null ? void 0 : c.dimensions) || [], d = ((s = Oe(n)) == null ? void 0 : s.timeDimensions) || [], l = _h(i, a, d);
|
|
11473
11493
|
return nf(
|
|
@@ -11506,10 +11526,10 @@ function tf(e, n, t, r, o, i, a, d, l, c, s) {
|
|
|
11506
11526
|
c,
|
|
11507
11527
|
s
|
|
11508
11528
|
),
|
|
11509
|
-
data:
|
|
11529
|
+
data: gl(n, e, t, r, a)
|
|
11510
11530
|
};
|
|
11511
11531
|
}
|
|
11512
|
-
function
|
|
11532
|
+
function ml(e, n, t, r, o, i, a) {
|
|
11513
11533
|
const [d, l] = C(), [c, s] = C(), [u, f] = C(), [g, m] = C(), [p, w] = C({
|
|
11514
11534
|
title: (a == null ? void 0 : a.dataGrid) || "Data Grid",
|
|
11515
11535
|
type: xe.CUSTOM_DATA_GRID
|
|
@@ -11655,7 +11675,7 @@ function gl(e, n, t, r, o, i, a) {
|
|
|
11655
11675
|
dataSetAttachments: B
|
|
11656
11676
|
};
|
|
11657
11677
|
}
|
|
11658
|
-
const
|
|
11678
|
+
const s1 = ({
|
|
11659
11679
|
attachmentsProps: e,
|
|
11660
11680
|
actions: n,
|
|
11661
11681
|
titles: t,
|
|
@@ -11678,7 +11698,7 @@ const a1 = ({
|
|
|
11678
11698
|
onFiltersChange: w,
|
|
11679
11699
|
isLoadingGridData: k,
|
|
11680
11700
|
constraints: N
|
|
11681
|
-
} =
|
|
11701
|
+
} = ml(
|
|
11682
11702
|
n,
|
|
11683
11703
|
a,
|
|
11684
11704
|
e.currentDataQuery,
|
|
@@ -11709,7 +11729,7 @@ const a1 = ({
|
|
|
11709
11729
|
),
|
|
11710
11730
|
(S = e == null ? void 0 : e.datasets) != null && S.length ? /* @__PURE__ */ b(ae, { children: [
|
|
11711
11731
|
((M = e == null ? void 0 : e.datasets) == null ? void 0 : M.length) > 1 && /* @__PURE__ */ h(
|
|
11712
|
-
|
|
11732
|
+
Ji,
|
|
11713
11733
|
{
|
|
11714
11734
|
datasets: e == null ? void 0 : e.datasets,
|
|
11715
11735
|
initialSelectedDatasetUrn: (_ = e == null ? void 0 : e.currentDataQuery) == null ? void 0 : _.urn,
|
|
@@ -11811,7 +11831,7 @@ function rf(e, n) {
|
|
|
11811
11831
|
}
|
|
11812
11832
|
function Eo(e) {
|
|
11813
11833
|
const n = e == null ? void 0 : e.filter(
|
|
11814
|
-
(t) =>
|
|
11834
|
+
(t) => Li(t)
|
|
11815
11835
|
);
|
|
11816
11836
|
if (n != null && n.every((t) => !!(t != null && t.data)))
|
|
11817
11837
|
return n == null ? void 0 : n.map((t) => ({
|
|
@@ -11843,7 +11863,7 @@ function lf(e) {
|
|
|
11843
11863
|
}
|
|
11844
11864
|
};
|
|
11845
11865
|
}
|
|
11846
|
-
var
|
|
11866
|
+
var wl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(wl || {});
|
|
11847
11867
|
const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
11848
11868
|
"div",
|
|
11849
11869
|
{
|
|
@@ -11851,7 +11871,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
11851
11871
|
className: "message-stage flex relative pb-8 last:pb-0 last:mb-8",
|
|
11852
11872
|
children: [
|
|
11853
11873
|
/* @__PURE__ */ h("span", { className: "message-stage-line absolute border-l h-full" }),
|
|
11854
|
-
/* @__PURE__ */ h(
|
|
11874
|
+
/* @__PURE__ */ h(Rl, { className: "message-stage-indicator flex shrink-0 z-10" }),
|
|
11855
11875
|
/* @__PURE__ */ b("div", { className: "ml-2 w-full", children: [
|
|
11856
11876
|
/* @__PURE__ */ b(
|
|
11857
11877
|
"div",
|
|
@@ -11898,7 +11918,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
11898
11918
|
O(() => {
|
|
11899
11919
|
var s;
|
|
11900
11920
|
a(
|
|
11901
|
-
(s = e == null ? void 0 : e.filter((u) => (u == null ? void 0 : u.status) !==
|
|
11921
|
+
(s = e == null ? void 0 : e.filter((u) => (u == null ? void 0 : u.status) !== wl.COMPLETED)) == null ? void 0 : s.at(-1)
|
|
11902
11922
|
);
|
|
11903
11923
|
}, [e]), O(() => {
|
|
11904
11924
|
var s;
|
|
@@ -11991,7 +12011,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
11991
12011
|
return (n == null ? void 0 : n.filter(
|
|
11992
12012
|
(r) => {
|
|
11993
12013
|
var o, i, a;
|
|
11994
|
-
return !
|
|
12014
|
+
return !Jl(
|
|
11995
12015
|
(i = (o = t == null ? void 0 : t.get(r == null ? void 0 : r.id)) == null ? void 0 : o.valuesTitles) == null ? void 0 : i.sort(),
|
|
11996
12016
|
(a = r == null ? void 0 : r.valuesTitles) == null ? void 0 : a.sort()
|
|
11997
12017
|
);
|
|
@@ -12165,7 +12185,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12165
12185
|
O(() => {
|
|
12166
12186
|
D(S == null ? void 0 : S[0]);
|
|
12167
12187
|
}, [S]);
|
|
12168
|
-
const { dataSetAttachments: me, dimensions: pe, isLoadingGridData: _e } =
|
|
12188
|
+
const { dataSetAttachments: me, dimensions: pe, isLoadingGridData: _e } = ml(
|
|
12169
12189
|
r,
|
|
12170
12190
|
u,
|
|
12171
12191
|
_,
|
|
@@ -12193,7 +12213,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12193
12213
|
Ee(re || []);
|
|
12194
12214
|
}, [e, A]), O(() => {
|
|
12195
12215
|
const j = ho(e), re = Eo(j), we = j.filter(
|
|
12196
|
-
(P) =>
|
|
12216
|
+
(P) => Ii(P)
|
|
12197
12217
|
);
|
|
12198
12218
|
M(re), B(we);
|
|
12199
12219
|
}, [e]), O(() => {
|
|
@@ -12239,7 +12259,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12239
12259
|
a
|
|
12240
12260
|
]), G = ce(
|
|
12241
12261
|
() => /* @__PURE__ */ h(
|
|
12242
|
-
|
|
12262
|
+
Ki,
|
|
12243
12263
|
{
|
|
12244
12264
|
actions: r,
|
|
12245
12265
|
titles: t,
|
|
@@ -12329,7 +12349,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12329
12349
|
onEditApply: $e,
|
|
12330
12350
|
editMessageTitles: E
|
|
12331
12351
|
}
|
|
12332
|
-
) : /* @__PURE__ */ h(
|
|
12352
|
+
) : /* @__PURE__ */ h(ui, { content: e.content })
|
|
12333
12353
|
]
|
|
12334
12354
|
}
|
|
12335
12355
|
),
|
|
@@ -12355,7 +12375,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12355
12375
|
}
|
|
12356
12376
|
)),
|
|
12357
12377
|
!Ae && /* @__PURE__ */ h(
|
|
12358
|
-
|
|
12378
|
+
hi,
|
|
12359
12379
|
{
|
|
12360
12380
|
choiceButtons: ke,
|
|
12361
12381
|
onClick: w
|
|
@@ -12411,7 +12431,7 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12411
12431
|
O(() => {
|
|
12412
12432
|
d && u(!1);
|
|
12413
12433
|
}, [d]);
|
|
12414
|
-
const p =
|
|
12434
|
+
const p = Ca(m, 300);
|
|
12415
12435
|
return O(() => {
|
|
12416
12436
|
var k;
|
|
12417
12437
|
const w = (k = a.current) == null ? void 0 : k.parentElement;
|
|
@@ -12453,8 +12473,8 @@ const af = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ b(
|
|
|
12453
12473
|
return (o = (r = (t = e.choices) == null ? void 0 : t[0]) == null ? void 0 : r.delta) != null && o.content && (n.content = e.choices[0].delta.content), (d = (a = (i = e.choices) == null ? void 0 : i[0]) == null ? void 0 : a.delta) != null && d.custom_content && (n.custom_content = e.choices[0].delta.custom_content), (s = (c = (l = e.choices) == null ? void 0 : l[0]) == null ? void 0 : c.delta) != null && s.role && (n.role = e.choices[0].delta.role), e.id && (n.responseId = e.id), n;
|
|
12454
12474
|
}, pf = "local", vf = (e) => {
|
|
12455
12475
|
var n;
|
|
12456
|
-
return !((n = e.permissions) != null && n.includes(
|
|
12457
|
-
}, bf = (e, n) =>
|
|
12476
|
+
return !((n = e.permissions) != null && n.includes(Cl.WRITE)) && !Nf(e);
|
|
12477
|
+
}, bf = (e, n) => pl(e) !== n, Nf = (e) => pl(e) === pf, pl = (e) => e.id.split("/")[0], kf = (e, n) => Lt([...(n == null ? void 0 : n.messages) || [], e]), Lt = (e) => [...e].map((n) => {
|
|
12458
12478
|
const t = {
|
|
12459
12479
|
role: n.role,
|
|
12460
12480
|
content: n.content
|
|
@@ -12647,7 +12667,7 @@ function Vf(e, n) {
|
|
|
12647
12667
|
return `${t}/${r}`;
|
|
12648
12668
|
}
|
|
12649
12669
|
const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == null ? void 0 : e.id)}`, Wf = (e, n, t) => {
|
|
12650
|
-
const r = `${n}/${t}`, o =
|
|
12670
|
+
const r = `${n}/${t}`, o = zo({
|
|
12651
12671
|
folderId: r,
|
|
12652
12672
|
name: e == null ? void 0 : e.name
|
|
12653
12673
|
});
|
|
@@ -12656,7 +12676,7 @@ const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == nu
|
|
|
12656
12676
|
folderId: r,
|
|
12657
12677
|
id: o
|
|
12658
12678
|
};
|
|
12659
|
-
}, Hf = "AbortError",
|
|
12679
|
+
}, Hf = "AbortError", c1 = ({
|
|
12660
12680
|
conversationKey: e,
|
|
12661
12681
|
conversation: n,
|
|
12662
12682
|
actions: t,
|
|
@@ -12701,7 +12721,7 @@ const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == nu
|
|
|
12701
12721
|
));
|
|
12702
12722
|
}, [t, F, ie, Z]), O(() => {
|
|
12703
12723
|
W && (F == null ? void 0 : F.lastDisplayedElement) === de.OPEN_ADVANCED_VIEW && (le == null || le(
|
|
12704
|
-
|
|
12724
|
+
_i(F)
|
|
12705
12725
|
));
|
|
12706
12726
|
}, [
|
|
12707
12727
|
t,
|
|
@@ -13007,7 +13027,7 @@ const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == nu
|
|
|
13007
13027
|
),
|
|
13008
13028
|
children: [
|
|
13009
13029
|
W && !d ? null : /* @__PURE__ */ h(
|
|
13010
|
-
|
|
13030
|
+
di,
|
|
13011
13031
|
{
|
|
13012
13032
|
conversation: n,
|
|
13013
13033
|
locale: u,
|
|
@@ -13068,7 +13088,7 @@ const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == nu
|
|
|
13068
13088
|
buttonClassName: L("text-button-secondary")
|
|
13069
13089
|
}
|
|
13070
13090
|
) }) : /* @__PURE__ */ h("div", { className: L(i.inputContainerClass), children: /* @__PURE__ */ h(
|
|
13071
|
-
|
|
13091
|
+
Uo,
|
|
13072
13092
|
{
|
|
13073
13093
|
onSendMessage: (P) => q(P, n),
|
|
13074
13094
|
onStopStreaming: Le,
|
|
@@ -13094,10 +13114,11 @@ const $f = (e, n, t) => `/${n}${t}/${Vf(e == null ? void 0 : e.folderId, e == nu
|
|
|
13094
13114
|
);
|
|
13095
13115
|
};
|
|
13096
13116
|
export {
|
|
13097
|
-
|
|
13117
|
+
s1 as AdvancedView,
|
|
13098
13118
|
r1 as AdvancedViewProvider,
|
|
13099
13119
|
zn as ChartingIcon,
|
|
13100
|
-
|
|
13101
|
-
|
|
13120
|
+
c1 as ConversationView,
|
|
13121
|
+
a1 as ConversationWelcome,
|
|
13122
|
+
o1 as OnboardingProvider,
|
|
13102
13123
|
ze as useAdvancedView
|
|
13103
13124
|
};
|