@epam/statgpt-conversation-view 0.4.0-rc.20 → 0.4.0-rc.21
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.js +5 -5
- package/index.mjs +631 -587
- package/package.json +6 -6
package/index.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as c, jsxs as C, Fragment as me } from "react/jsx-runtime";
|
|
2
2
|
import * as ce from "react";
|
|
3
3
|
import ke, { createContext as nt, useState as b, useContext as $e, useMemo as j, useCallback as I, useEffect as R, useRef as be, startTransition as os, Fragment as Mo } from "react";
|
|
4
|
-
import { Role as _e, DialSchemaProperties as
|
|
5
|
-
import { InputWithIcon as
|
|
6
|
-
import { IconRefresh as Fo, IconPlayerStopFilled as Vo, IconCheck as Go, IconCopy as fs, IconPlus as ms, IconSearch as gs, IconCircleFilled as Ho, IconDatabase as zo, IconExternalLink as
|
|
4
|
+
import { Role as _e, DialSchemaProperties as Bn, LikeState as rt, SharePermission as No } from "@epam/ai-dial-shared";
|
|
5
|
+
import { InputWithIcon as gn, KeyboardKey as To, IconButton as We, Button as Ne, Popup as wt, PopUpSize as vt, Loader as He, PopUpState as ae, useAgentAvailability as pn, InlineAlert as nn, InlineAlertType as Nt, Tag as Ao, TREE_NODE_PADDING as yi, TREE_NODE_ARROW_SIZE as ko, Radio as ls, Calendar as Di, Checkbox as cs, useIsMobile as wn, Dropdown as Eo, SERIES_LIMIT as mt, CloseButton as ds, CollapsibleBlock as us, RequestLimitMessage as hs, DownloadFormatMessage as xo, CopyButton as Io, Link as Lo, Alert as Oo, filterDraggableListNodes as _o, DraggableList as Ro, useDebounce as Po } from "@epam/statgpt-ui-components";
|
|
6
|
+
import { IconRefresh as Fo, IconPlayerStopFilled as Vo, IconCheck as Go, IconCopy as fs, IconPlus as ms, IconSearch as gs, IconCircleFilled as Ho, IconDatabase as zo, IconExternalLink as rr, IconX as ps, IconRotate as Bo, IconPointFilled as Uo } from "@tabler/icons-react";
|
|
7
7
|
import H from "classnames";
|
|
8
|
-
import { generateConversationId as ws, InvitationType as jo, getSharedConversationsRequest as vs, ShareTarget as Cs, AttachmentType as Ie, ERROR_CONTEXT_KIND as
|
|
9
|
-
import { SHARE_CONVERSATION_ROUTE as ys, cleanConversationNames as
|
|
8
|
+
import { generateConversationId as ws, InvitationType as jo, getSharedConversationsRequest as vs, ShareTarget as Cs, AttachmentType as Ie, ERROR_CONTEXT_KIND as ir, DIAL_ERROR_TYPES as bs, DIAL_ERROR_CODES as Wo, CUSTOM_VIEW_STATE_KEY as Un, mergeMessages as $o, streamChatResponse as Jo, isRateLimitStillActive as Yo, getRateLimitRestoreDate as Ko, formatDateTime as qo } from "@epam/statgpt-dial-toolkit";
|
|
9
|
+
import { SHARE_CONVERSATION_ROUTE as ys, cleanConversationNames as jn, CalendarResolution as qt, getTimePeriod as rn, CUSTOM_PERIOD as $t, Locale as qe, QueryFilterType as sn, defaultFormatNumbers as Ds, formatNumberBySign as Ss, linkifyText as Zo, getConversationNavPath as Xo, getConversationAttachmentUrls as Qo, replaceConversationAttachmentUrls as el, HTTP_ERROR_CODES as an, HttpError as Wn, isHttpError as tl } from "@epam/statgpt-shared-toolkit";
|
|
10
10
|
import { transformSharedConversations as nl } from "@epam/statgpt-conversation-list";
|
|
11
11
|
import Ms from "react-markdown";
|
|
12
12
|
import Ns from "remark-gfm";
|
|
13
|
-
import { isQuarterly as
|
|
13
|
+
import { isQuarterly as on, isMonthly as ln, findCodelistByDimension as xt, getAvailableCodes as rl, DimensionType as il, getDimensionTitle as vn, getAnnotationPeriod as Cn, getAvailableCodesFromConstrains as sr, SeriesFilterOperator as $n, GET_v3_FILTER_AND as sl, getTimeRangeFromAttachment as al, getQueryTimePeriodFilters as Ts, getTimeSeriesFilterKey as It, TIME_PERIOD as gt, generateShortUrn as ot, TIME_PERIOD_START_ANNOTATION_KEY as ol, TIME_PERIOD_END_ANNOTATION_KEY as ll, getFilteredItemsWithParents as cl, getTimeSeriesCount as dl, SdmxDataFormat as _n, FileColumnsAttribute as Rn, DownloadType as cn, getTimeQueryFilter as ul, getTimeDimension as hl, getLocalizedName as Se, getDimensions as Ve, getConcept as As, getStructureComponentsMap as bn, getLastUpdatedTime as Lt, getArtifactByUrnWithWildCard as fl, getAdditionalColumns as ml, getTimePeriods as yn, isYearly as Jn, isSemiAnnually as Si, isWeekly as Mi, isDaily as Ni, sortPeriods as Dn, FREQUENCY_DIMENSION_ID as gl, Periods as Pn, getParsedResponse as pl, getFiltersDtoFromDataQuery as wl, getStructureDimensions as Yn, getFiltersDtoMapFromDataQuery as vl } from "@epam/statgpt-sdmx-toolkit";
|
|
14
14
|
import { FixedSizeList as Cl } from "react-window";
|
|
15
15
|
import bl from "react-virtualized-auto-sizer";
|
|
16
16
|
import { useFloating as ks, autoUpdate as yl, offset as Dl, flip as Sl, shift as Ml, arrow as Nl, useClick as Tl, useInteractions as Es, FloatingPortal as Al, useHover as kl, safePolygon as El } from "@floating-ui/react";
|
|
17
17
|
import { ModuleRegistry as xl, AllCommunityModule as Il } from "ag-grid-community";
|
|
18
18
|
import { isEqual as Ll, cloneDeep as Ol, merge as _l } from "lodash";
|
|
19
19
|
import xs from "echarts-for-react";
|
|
20
|
-
import { AgGridReact as
|
|
20
|
+
import { AgGridReact as ar } from "ag-grid-react";
|
|
21
21
|
import { extendTailwindMerge as Rl } from "tailwind-merge";
|
|
22
22
|
import { isValid as Pl, format as Fl } from "date-fns";
|
|
23
23
|
import { Editor as Vl } from "@monaco-editor/react";
|
|
24
24
|
const Is = nt(
|
|
25
25
|
void 0
|
|
26
|
-
),
|
|
26
|
+
), og = ({
|
|
27
27
|
children: e
|
|
28
28
|
}) => {
|
|
29
29
|
const [t, n] = b(!1);
|
|
@@ -46,7 +46,7 @@ const Is = nt(
|
|
|
46
46
|
return e;
|
|
47
47
|
}, Ls = nt(
|
|
48
48
|
void 0
|
|
49
|
-
),
|
|
49
|
+
), lg = ({
|
|
50
50
|
children: e
|
|
51
51
|
}) => {
|
|
52
52
|
const [t, n] = b(!1);
|
|
@@ -68,7 +68,7 @@ const Is = nt(
|
|
|
68
68
|
);
|
|
69
69
|
return e;
|
|
70
70
|
}, Os = nt(null);
|
|
71
|
-
function
|
|
71
|
+
function cg({
|
|
72
72
|
value: e,
|
|
73
73
|
children: t
|
|
74
74
|
}) {
|
|
@@ -85,7 +85,7 @@ function _s() {
|
|
|
85
85
|
}
|
|
86
86
|
const Rs = nt(
|
|
87
87
|
void 0
|
|
88
|
-
),
|
|
88
|
+
), dg = ({
|
|
89
89
|
children: e
|
|
90
90
|
}) => {
|
|
91
91
|
const [t, n] = b(""), [r, i] = b(""), [s, o] = b(), [u, a] = b();
|
|
@@ -105,13 +105,13 @@ const Rs = nt(
|
|
|
105
105
|
children: e
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
},
|
|
108
|
+
}, Ge = () => {
|
|
109
109
|
const e = $e(Rs);
|
|
110
110
|
if (e === void 0)
|
|
111
111
|
throw new Error("useOnboarding must be used within a OnboardingProvider");
|
|
112
112
|
return e;
|
|
113
113
|
};
|
|
114
|
-
var
|
|
114
|
+
var Kn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(Kn || {}), or = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(or || {}), Hl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(Hl || {}), qn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(qn || {});
|
|
115
115
|
const Ps = ({
|
|
116
116
|
inProcess: e,
|
|
117
117
|
disabled: t,
|
|
@@ -157,7 +157,7 @@ const Ps = ({
|
|
|
157
157
|
}
|
|
158
158
|
) : null;
|
|
159
159
|
return /* @__PURE__ */ c(
|
|
160
|
-
|
|
160
|
+
gn,
|
|
161
161
|
{
|
|
162
162
|
inputId: "ask-input",
|
|
163
163
|
containerClasses: n,
|
|
@@ -206,19 +206,19 @@ const Ps = ({
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
var $l = Object.defineProperty,
|
|
209
|
+
var $l = Object.defineProperty, dn = Object.getOwnPropertySymbols, Fs = Object.prototype.hasOwnProperty, Vs = Object.prototype.propertyIsEnumerable, Ai = (e, t, n) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Zn = (e, t) => {
|
|
210
210
|
for (var n in t || (t = {}))
|
|
211
211
|
Fs.call(t, n) && Ai(e, n, t[n]);
|
|
212
|
-
if (
|
|
213
|
-
for (var n of
|
|
212
|
+
if (dn)
|
|
213
|
+
for (var n of dn(t))
|
|
214
214
|
Vs.call(t, n) && Ai(e, n, t[n]);
|
|
215
215
|
return e;
|
|
216
|
-
},
|
|
216
|
+
}, Xn = (e, t) => {
|
|
217
217
|
var n = {};
|
|
218
218
|
for (var r in e)
|
|
219
219
|
Fs.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
220
|
-
if (e != null &&
|
|
221
|
-
for (var r of
|
|
220
|
+
if (e != null && dn)
|
|
221
|
+
for (var r of dn(e))
|
|
222
222
|
t.indexOf(r) < 0 && Vs.call(e, r) && (n[r] = e[r]);
|
|
223
223
|
return n;
|
|
224
224
|
};
|
|
@@ -869,7 +869,7 @@ var Ql = (function() {
|
|
|
869
869
|
boostLevel: h,
|
|
870
870
|
marginSize: f,
|
|
871
871
|
imageSettings: m
|
|
872
|
-
} = r, y =
|
|
872
|
+
} = r, y = Xn(r, [
|
|
873
873
|
"value",
|
|
874
874
|
"size",
|
|
875
875
|
"level",
|
|
@@ -880,7 +880,7 @@ var Ql = (function() {
|
|
|
880
880
|
"boostLevel",
|
|
881
881
|
"marginSize",
|
|
882
882
|
"imageSettings"
|
|
883
|
-
]), { style: p } = y, D =
|
|
883
|
+
]), { style: p } = y, D = Xn(y, ["style"]), S = m?.src, w = ke.useRef(null), v = ke.useRef(null), M = ke.useCallback(
|
|
884
884
|
(P) => {
|
|
885
885
|
w.current = P, typeof n == "function" ? n(P) : n && (n.current = P);
|
|
886
886
|
},
|
|
@@ -924,7 +924,7 @@ var Ql = (function() {
|
|
|
924
924
|
}), ke.useEffect(() => {
|
|
925
925
|
x(!1);
|
|
926
926
|
}, [S]);
|
|
927
|
-
const E =
|
|
927
|
+
const E = Zn({ height: s, width: s }, p);
|
|
928
928
|
let L = null;
|
|
929
929
|
return S != null && (L = /* @__PURE__ */ ke.createElement(
|
|
930
930
|
"img",
|
|
@@ -940,7 +940,7 @@ var Ql = (function() {
|
|
|
940
940
|
}
|
|
941
941
|
)), /* @__PURE__ */ ke.createElement(ke.Fragment, null, /* @__PURE__ */ ke.createElement(
|
|
942
942
|
"canvas",
|
|
943
|
-
|
|
943
|
+
Zn({
|
|
944
944
|
style: E,
|
|
945
945
|
height: s,
|
|
946
946
|
width: s,
|
|
@@ -965,7 +965,7 @@ var Ys = ke.forwardRef(
|
|
|
965
965
|
title: f,
|
|
966
966
|
marginSize: m,
|
|
967
967
|
imageSettings: g
|
|
968
|
-
} = r, y =
|
|
968
|
+
} = r, y = Xn(r, [
|
|
969
969
|
"value",
|
|
970
970
|
"size",
|
|
971
971
|
"level",
|
|
@@ -1007,7 +1007,7 @@ var Ys = ke.forwardRef(
|
|
|
1007
1007
|
const T = Ws(v, p);
|
|
1008
1008
|
return /* @__PURE__ */ ke.createElement(
|
|
1009
1009
|
"svg",
|
|
1010
|
-
|
|
1010
|
+
Zn({
|
|
1011
1011
|
height: s,
|
|
1012
1012
|
width: s,
|
|
1013
1013
|
viewBox: `0 0 ${S} ${S}`,
|
|
@@ -1165,7 +1165,7 @@ const tc = (e, t) => ({
|
|
|
1165
1165
|
),
|
|
1166
1166
|
/* @__PURE__ */ c("p", { className: "body-2 text-neutrals-1000", children: m ?? "Your name, special instructions, and any messages you add after sharing remain confidential." }),
|
|
1167
1167
|
/* @__PURE__ */ c(
|
|
1168
|
-
|
|
1168
|
+
gn,
|
|
1169
1169
|
{
|
|
1170
1170
|
containerClasses: "share-input-container",
|
|
1171
1171
|
cssClass: "share-input",
|
|
@@ -1176,7 +1176,7 @@ const tc = (e, t) => ({
|
|
|
1176
1176
|
iconAfterInput: ne()
|
|
1177
1177
|
}
|
|
1178
1178
|
)
|
|
1179
|
-
] }) : /* @__PURE__ */ c("div", { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(
|
|
1179
|
+
] }) : /* @__PURE__ */ c("div", { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(He, {}) }),
|
|
1180
1180
|
N ? e && k ? /* @__PURE__ */ c("div", { className: "remove-access", children: /* @__PURE__ */ c(
|
|
1181
1181
|
Ne,
|
|
1182
1182
|
{
|
|
@@ -1287,13 +1287,13 @@ const tc = (e, t) => ({
|
|
|
1287
1287
|
className: r,
|
|
1288
1288
|
disabled: t,
|
|
1289
1289
|
onClick: () => n(
|
|
1290
|
-
i[
|
|
1290
|
+
i[Bn.DialWidgetOptions]?.populateText,
|
|
1291
1291
|
i?.const
|
|
1292
1292
|
),
|
|
1293
1293
|
"aria-label": "button",
|
|
1294
1294
|
children: [
|
|
1295
1295
|
/* @__PURE__ */ c("h3", { className: "mb-1", children: i.title }),
|
|
1296
|
-
i.const !==
|
|
1296
|
+
i.const !== or.COMPLETE && /* @__PURE__ */ c("p", { className: "body-1 text-neutrals-800", children: i[Bn.DialWidgetOptions]?.populateText })
|
|
1297
1297
|
]
|
|
1298
1298
|
}
|
|
1299
1299
|
) }, i.title));
|
|
@@ -1377,7 +1377,7 @@ const tc = (e, t) => ({
|
|
|
1377
1377
|
]
|
|
1378
1378
|
}
|
|
1379
1379
|
);
|
|
1380
|
-
},
|
|
1380
|
+
}, fg = ({
|
|
1381
1381
|
suggestionsList: e,
|
|
1382
1382
|
welcomeText: t,
|
|
1383
1383
|
titleIcon: n,
|
|
@@ -1399,7 +1399,7 @@ const tc = (e, t) => ({
|
|
|
1399
1399
|
isShowOnboarding: T,
|
|
1400
1400
|
setIsShowOnboarding: x,
|
|
1401
1401
|
setOnboardingFileSchema: k
|
|
1402
|
-
} =
|
|
1402
|
+
} = Ge(), { isAgentAvailable: F } = pn(), { statusMessages: N } = _s();
|
|
1403
1403
|
R(() => {
|
|
1404
1404
|
(async () => {
|
|
1405
1405
|
try {
|
|
@@ -1450,8 +1450,8 @@ const tc = (e, t) => ({
|
|
|
1450
1450
|
ne
|
|
1451
1451
|
), k?.(ne);
|
|
1452
1452
|
}
|
|
1453
|
-
l(
|
|
1454
|
-
|
|
1453
|
+
l(jn(B)), f(
|
|
1454
|
+
jn(
|
|
1455
1455
|
nl(Y, h)
|
|
1456
1456
|
)
|
|
1457
1457
|
), d(z.folderId, z.id);
|
|
@@ -1531,7 +1531,7 @@ const tc = (e, t) => ({
|
|
|
1531
1531
|
Ao,
|
|
1532
1532
|
{
|
|
1533
1533
|
title: O.title,
|
|
1534
|
-
text: O[
|
|
1534
|
+
text: O[Bn.DialWidgetOptions]?.populateText,
|
|
1535
1535
|
disabled: P,
|
|
1536
1536
|
onClick: A
|
|
1537
1537
|
},
|
|
@@ -1539,10 +1539,10 @@ const tc = (e, t) => ({
|
|
|
1539
1539
|
))
|
|
1540
1540
|
}
|
|
1541
1541
|
) })
|
|
1542
|
-
] }) : /* @__PURE__ */ c(
|
|
1542
|
+
] }) : /* @__PURE__ */ c(nn, { type: Nt.Error, children: N.assistantUnavailable });
|
|
1543
1543
|
};
|
|
1544
1544
|
return /* @__PURE__ */ C("div", { className: "flex size-full flex-col", children: [
|
|
1545
|
-
D || u && y ? /* @__PURE__ */ c(
|
|
1545
|
+
D || u && y ? /* @__PURE__ */ c(He, {}) : T ? /* @__PURE__ */ c(
|
|
1546
1546
|
ac,
|
|
1547
1547
|
{
|
|
1548
1548
|
titles: i,
|
|
@@ -1583,7 +1583,7 @@ const tc = (e, t) => ({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
)
|
|
1585
1585
|
] });
|
|
1586
|
-
},
|
|
1586
|
+
}, lr = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), cc = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), dc = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" }));
|
|
1587
1587
|
function Qs(e) {
|
|
1588
1588
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1589
1589
|
}
|
|
@@ -1595,9 +1595,9 @@ function hc() {
|
|
|
1595
1595
|
})(uc, (function(n) {
|
|
1596
1596
|
var r = function() {
|
|
1597
1597
|
return r = Object.assign || function(Je) {
|
|
1598
|
-
for (var
|
|
1599
|
-
|
|
1600
|
-
for (var
|
|
1598
|
+
for (var Wt, Ln = 1, So = arguments.length; Ln < So; Ln++) {
|
|
1599
|
+
Wt = arguments[Ln];
|
|
1600
|
+
for (var On in Wt) Object.prototype.hasOwnProperty.call(Wt, On) && (Je[On] = Wt[On]);
|
|
1601
1601
|
}
|
|
1602
1602
|
return Je;
|
|
1603
1603
|
}, r.apply(this, arguments);
|
|
@@ -3225,7 +3225,7 @@ function hc() {
|
|
|
3225
3225
|
Te.l10ns.it = Qe, Te.l10ns;
|
|
3226
3226
|
var ut = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3227
3227
|
l10ns: {}
|
|
3228
|
-
},
|
|
3228
|
+
}, zt = {
|
|
3229
3229
|
weekdays: {
|
|
3230
3230
|
shorthand: ["日", "月", "火", "水", "木", "金", "土"],
|
|
3231
3231
|
longhand: [
|
|
@@ -3276,8 +3276,8 @@ function hc() {
|
|
|
3276
3276
|
hourAriaLabel: "時間",
|
|
3277
3277
|
minuteAriaLabel: "分"
|
|
3278
3278
|
};
|
|
3279
|
-
ut.l10ns.ja =
|
|
3280
|
-
var
|
|
3279
|
+
ut.l10ns.ja = zt, ut.l10ns;
|
|
3280
|
+
var Bt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3281
3281
|
l10ns: {}
|
|
3282
3282
|
}, st = {
|
|
3283
3283
|
weekdays: {
|
|
@@ -3334,8 +3334,8 @@ function hc() {
|
|
|
3334
3334
|
yearAriaLabel: "წელი",
|
|
3335
3335
|
time_24hr: !0
|
|
3336
3336
|
};
|
|
3337
|
-
|
|
3338
|
-
var
|
|
3337
|
+
Bt.l10ns.ka = st, Bt.l10ns;
|
|
3338
|
+
var Ut = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3339
3339
|
l10ns: {}
|
|
3340
3340
|
}, V = {
|
|
3341
3341
|
weekdays: {
|
|
@@ -3386,7 +3386,7 @@ function hc() {
|
|
|
3386
3386
|
rangeSeparator: " ~ ",
|
|
3387
3387
|
amPM: ["오전", "오후"]
|
|
3388
3388
|
};
|
|
3389
|
-
|
|
3389
|
+
Ut.l10ns.ko = V, Ut.l10ns;
|
|
3390
3390
|
var G = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3391
3391
|
l10ns: {}
|
|
3392
3392
|
}, W = {
|
|
@@ -3609,7 +3609,7 @@ function hc() {
|
|
|
3609
3609
|
ht.l10ns.lv = Pe, ht.l10ns;
|
|
3610
3610
|
var et = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3611
3611
|
l10ns: {}
|
|
3612
|
-
},
|
|
3612
|
+
}, jt = {
|
|
3613
3613
|
weekdays: {
|
|
3614
3614
|
shorthand: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са"],
|
|
3615
3615
|
longhand: [
|
|
@@ -3657,7 +3657,7 @@ function hc() {
|
|
|
3657
3657
|
rangeSeparator: " до ",
|
|
3658
3658
|
time_24hr: !0
|
|
3659
3659
|
};
|
|
3660
|
-
et.l10ns.mk =
|
|
3660
|
+
et.l10ns.mk = jt, et.l10ns;
|
|
3661
3661
|
var Ar = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3662
3662
|
l10ns: {}
|
|
3663
3663
|
}, kr = {
|
|
@@ -5001,14 +5001,14 @@ function hc() {
|
|
|
5001
5001
|
id: ge,
|
|
5002
5002
|
is: pe,
|
|
5003
5003
|
it: Qe,
|
|
5004
|
-
ja:
|
|
5004
|
+
ja: zt,
|
|
5005
5005
|
ka: st,
|
|
5006
5006
|
ko: V,
|
|
5007
5007
|
km: W,
|
|
5008
5008
|
kz: te,
|
|
5009
5009
|
lt: Be,
|
|
5010
5010
|
lv: Pe,
|
|
5011
|
-
mk:
|
|
5011
|
+
mk: jt,
|
|
5012
5012
|
mn: kr,
|
|
5013
5013
|
ms: yo,
|
|
5014
5014
|
my: xr,
|
|
@@ -5041,7 +5041,7 @@ function hc() {
|
|
|
5041
5041
|
}
|
|
5042
5042
|
var fc = hc();
|
|
5043
5043
|
const mc = /* @__PURE__ */ Qs(fc);
|
|
5044
|
-
var
|
|
5044
|
+
var Zt = { exports: {} }, gc = Zt.exports, Ei;
|
|
5045
5045
|
function pc() {
|
|
5046
5046
|
return Ei || (Ei = 1, (function(e, t) {
|
|
5047
5047
|
(function(n, r) {
|
|
@@ -5220,7 +5220,7 @@ function pc() {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
return u;
|
|
5222
5222
|
}));
|
|
5223
|
-
})(
|
|
5223
|
+
})(Zt)), Zt.exports;
|
|
5224
5224
|
}
|
|
5225
5225
|
var wc = pc();
|
|
5226
5226
|
const vc = /* @__PURE__ */ Qs(wc), xi = (e, t, n, r, i = !1, s) => {
|
|
@@ -5229,11 +5229,11 @@ const vc = /* @__PURE__ */ Qs(wc), xi = (e, t, n, r, i = !1, s) => {
|
|
|
5229
5229
|
}, u = vc;
|
|
5230
5230
|
i && (o.firstDayOfWeek = 1);
|
|
5231
5231
|
const a = {
|
|
5232
|
-
minDate: n ===
|
|
5233
|
-
maxDate: n ===
|
|
5232
|
+
minDate: n === qt.MONTH ? new Date(e.getFullYear(), e.getMonth()) : e,
|
|
5233
|
+
maxDate: n === qt.MONTH ? new Date(t.getFullYear(), t.getMonth()) : t,
|
|
5234
5234
|
locale: o
|
|
5235
5235
|
};
|
|
5236
|
-
return n ===
|
|
5236
|
+
return n === qt.MONTH ? {
|
|
5237
5237
|
...a,
|
|
5238
5238
|
dateFormat: "M Y",
|
|
5239
5239
|
plugins: [
|
|
@@ -5253,7 +5253,7 @@ const vc = /* @__PURE__ */ Qs(wc), xi = (e, t, n, r, i = !1, s) => {
|
|
|
5253
5253
|
year: "numeric",
|
|
5254
5254
|
month: "short",
|
|
5255
5255
|
day: "numeric"
|
|
5256
|
-
},
|
|
5256
|
+
}, un = (e, t) => e?.toLocaleDateString(t, Cc) || "", bc = (e, t) => {
|
|
5257
5257
|
const { startPeriod: n, endPeriod: r } = e;
|
|
5258
5258
|
if (!t.startPeriod && !t.endPeriod && n && r)
|
|
5259
5259
|
return {
|
|
@@ -5292,7 +5292,7 @@ const vc = /* @__PURE__ */ Qs(wc), xi = (e, t, n, r, i = !1, s) => {
|
|
|
5292
5292
|
monthly: e?.monthly || "M"
|
|
5293
5293
|
}), ea = (e, t) => {
|
|
5294
5294
|
const n = Dc(t);
|
|
5295
|
-
return
|
|
5295
|
+
return on(e) && n?.quarterly ? e?.replace(/Q/g, n?.quarterly) : ln(e) && n?.monthly ? e?.replace(/M/g, n?.monthly) : e;
|
|
5296
5296
|
};
|
|
5297
5297
|
var it = /* @__PURE__ */ ((e) => (e.FLAT_LIST = "FLAT_LIST", e.HIERARCHY = "HIERARCHY", e))(it || {});
|
|
5298
5298
|
const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
@@ -5308,7 +5308,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5308
5308
|
), a = o?.some((d) => d?.parent);
|
|
5309
5309
|
return {
|
|
5310
5310
|
id: s?.id,
|
|
5311
|
-
title:
|
|
5311
|
+
title: vn(t?.conceptSchemes, s, r),
|
|
5312
5312
|
dimensionValues: u,
|
|
5313
5313
|
isTimeDimension: s?.type === il.TIME_DIMENSION,
|
|
5314
5314
|
isHierarchical: a,
|
|
@@ -5319,7 +5319,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5319
5319
|
}) || [], Sc = (e) => e?.filterType === "shared", Tt = (e) => {
|
|
5320
5320
|
if (e?.id)
|
|
5321
5321
|
return Sc(e) ? `shared:${e.id}` : e?.datasetUrn ? `${e.datasetUrn}:${e.id}` : e.id;
|
|
5322
|
-
}, Fe = (e, t) => Tt(e) === Tt(t),
|
|
5322
|
+
}, Fe = (e, t) => Tt(e) === Tt(t), hn = (e, t) => e?.map(
|
|
5323
5323
|
(n) => t && Fe(n, t) ? { ...t, isSelectedFilter: !0 } : {
|
|
5324
5324
|
...n,
|
|
5325
5325
|
isSelectedFilter: !1
|
|
@@ -5327,12 +5327,12 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5327
5327
|
), na = (e, t, n) => e ? e.map((r) => Fe(r, t) ? {
|
|
5328
5328
|
...r,
|
|
5329
5329
|
displayMode: n
|
|
5330
|
-
} : r) : [], ra = (e) => e?.filter((t) => !!t?.isSelectedValue) || [],
|
|
5330
|
+
} : r) : [], ra = (e) => e?.filter((t) => !!t?.isSelectedValue) || [], Sn = (e) => e?.map((t) => ({
|
|
5331
5331
|
...t,
|
|
5332
5332
|
dimensionValues: ra(t?.dimensionValues)
|
|
5333
5333
|
})).filter(
|
|
5334
5334
|
(t) => t.dimensionValues?.length || t.timeRange?.startPeriod || t.timeRange?.endPeriod
|
|
5335
|
-
),
|
|
5335
|
+
), cr = (e) => e?.reduce(
|
|
5336
5336
|
(t, n) => (n?.dimensionValues?.length ?? 0) + t,
|
|
5337
5337
|
0
|
|
5338
5338
|
) || 0, ia = (e) => ({
|
|
@@ -5351,9 +5351,9 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5351
5351
|
if (r.isTimeDimension) {
|
|
5352
5352
|
const o = i.values.filter(
|
|
5353
5353
|
(h) => !!h
|
|
5354
|
-
), u =
|
|
5354
|
+
), u = Cn(
|
|
5355
5355
|
n?.[0]?.annotations
|
|
5356
|
-
), a = o[0] ?
|
|
5356
|
+
), a = o[0] ? rn(o[0]) : null, d = o[1] ? rn(o[1]) : null;
|
|
5357
5357
|
let l = u;
|
|
5358
5358
|
return a && d && (l = u ? bc(
|
|
5359
5359
|
{ startPeriod: a, endPeriod: d },
|
|
@@ -5367,7 +5367,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5367
5367
|
else
|
|
5368
5368
|
s = r.dimensionValues;
|
|
5369
5369
|
return { ...r, dimensionValues: s };
|
|
5370
|
-
}),
|
|
5370
|
+
}), fn = (e) => e?.map((t) => ({
|
|
5371
5371
|
...t,
|
|
5372
5372
|
isDisabled: !0
|
|
5373
5373
|
})), Mc = (e) => new Map(
|
|
@@ -5395,7 +5395,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5395
5395
|
...Mt(n)
|
|
5396
5396
|
],
|
|
5397
5397
|
[]
|
|
5398
|
-
) || [],
|
|
5398
|
+
) || [], Jt = (e, t) => e ? e.map((n) => ({
|
|
5399
5399
|
...n,
|
|
5400
5400
|
isSelectedValue: t
|
|
5401
5401
|
})) : [], Ac = (e) => {
|
|
@@ -5408,23 +5408,23 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5408
5408
|
if (e.isSelectedValue && t)
|
|
5409
5409
|
return [
|
|
5410
5410
|
{ ...e, isSelectedValue: !1 },
|
|
5411
|
-
|
|
5411
|
+
...Jt(Mt(e), !0)
|
|
5412
5412
|
];
|
|
5413
5413
|
} else {
|
|
5414
5414
|
if (n)
|
|
5415
5415
|
return [
|
|
5416
5416
|
{ ...e, isSelectedValue: !0 },
|
|
5417
|
-
|
|
5417
|
+
...Jt(Mt(e), !0)
|
|
5418
5418
|
];
|
|
5419
5419
|
if (t)
|
|
5420
5420
|
return [
|
|
5421
5421
|
{ ...e, isSelectedValue: !0 },
|
|
5422
|
-
|
|
5422
|
+
...Jt(Mt(e), !1)
|
|
5423
5423
|
];
|
|
5424
5424
|
}
|
|
5425
5425
|
return [
|
|
5426
5426
|
{ ...e, isSelectedValue: !1 },
|
|
5427
|
-
|
|
5427
|
+
...Jt(Mt(e), !1)
|
|
5428
5428
|
];
|
|
5429
5429
|
}, kc = (e) => [
|
|
5430
5430
|
{
|
|
@@ -5449,16 +5449,16 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5449
5449
|
titles: l,
|
|
5450
5450
|
defaultTimeOption: h
|
|
5451
5451
|
}) => {
|
|
5452
|
-
const f =
|
|
5452
|
+
const f = Cn(
|
|
5453
5453
|
o?.[0]?.annotations
|
|
5454
5454
|
), [m, g] = b(
|
|
5455
5455
|
t
|
|
5456
|
-
), y = !t || t?.startPeriod?.getTime() === f?.startPeriod?.getTime() && t?.endPeriod?.getTime() === f?.endPeriod?.getTime() ? 0 :
|
|
5456
|
+
), y = !t || t?.startPeriod?.getTime() === f?.startPeriod?.getTime() && t?.endPeriod?.getTime() === f?.endPeriod?.getTime() ? 0 : $t, [p, D] = b(
|
|
5457
5457
|
h ?? y
|
|
5458
5458
|
), S = j(() => {
|
|
5459
5459
|
const { startPeriod: x, endPeriod: k } = f, F = x?.getFullYear(), N = k?.getFullYear(), A = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5460
5460
|
return n.filter(
|
|
5461
|
-
(E) => E.value ===
|
|
5461
|
+
(E) => E.value === $t || E.value === 0 || +E.value >= 0 && N - A >= +E.value || +E.value < 0 && F - A < +E.value
|
|
5462
5462
|
);
|
|
5463
5463
|
}, [f, n]);
|
|
5464
5464
|
R(() => {
|
|
@@ -5511,7 +5511,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5511
5511
|
label: x.title,
|
|
5512
5512
|
onChange: () => {
|
|
5513
5513
|
const { value: k } = x;
|
|
5514
|
-
D(k), k !==
|
|
5514
|
+
D(k), k !== $t && g(
|
|
5515
5515
|
k === 0 ? f : yc(f, k)
|
|
5516
5516
|
);
|
|
5517
5517
|
},
|
|
@@ -5519,7 +5519,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5519
5519
|
},
|
|
5520
5520
|
x.value.toString()
|
|
5521
5521
|
)) }),
|
|
5522
|
-
/* @__PURE__ */ c("div", { className: "w-full", children: p ===
|
|
5522
|
+
/* @__PURE__ */ c("div", { className: "w-full", children: p === $t && /* @__PURE__ */ C("div", { className: "filters-time-period caption mt-3 flex gap-4 text-neutral-700", children: [
|
|
5523
5523
|
/* @__PURE__ */ c(
|
|
5524
5524
|
Di,
|
|
5525
5525
|
{
|
|
@@ -5576,7 +5576,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5576
5576
|
onClick: () => s?.(e)
|
|
5577
5577
|
}
|
|
5578
5578
|
) : /* @__PURE__ */ c(
|
|
5579
|
-
|
|
5579
|
+
lr,
|
|
5580
5580
|
{
|
|
5581
5581
|
className: a,
|
|
5582
5582
|
onClick: () => s?.(e)
|
|
@@ -5650,7 +5650,7 @@ const ta = (e, t, n, r, i) => e?.map((s) => {
|
|
|
5650
5650
|
isCrossDatasetModeOn: !1,
|
|
5651
5651
|
isTableSettingsFeatureEnabled: !1
|
|
5652
5652
|
}, ca = nt(Lc);
|
|
5653
|
-
function
|
|
5653
|
+
function mg({
|
|
5654
5654
|
children: e,
|
|
5655
5655
|
isMetadataInSidePanel: t = !1,
|
|
5656
5656
|
isCrossDatasetModeOn: n = !1,
|
|
@@ -5673,13 +5673,13 @@ function ug({
|
|
|
5673
5673
|
function Le() {
|
|
5674
5674
|
return $e(ca);
|
|
5675
5675
|
}
|
|
5676
|
-
const
|
|
5676
|
+
const Xt = (e, t, n, r, i = qe.EN) => {
|
|
5677
5677
|
const s = t?.map((o) => {
|
|
5678
5678
|
const u = xt(
|
|
5679
5679
|
n?.codelists,
|
|
5680
5680
|
n?.conceptSchemes,
|
|
5681
5681
|
o
|
|
5682
|
-
), a =
|
|
5682
|
+
), a = sr(
|
|
5683
5683
|
u?.codes,
|
|
5684
5684
|
o.id,
|
|
5685
5685
|
r,
|
|
@@ -5706,9 +5706,9 @@ const Zt = (e, t, n, r, i = qe.EN) => {
|
|
|
5706
5706
|
dimensionValues: a
|
|
5707
5707
|
};
|
|
5708
5708
|
}) || [];
|
|
5709
|
-
},
|
|
5709
|
+
}, Qn = (e, t) => {
|
|
5710
5710
|
let n = [];
|
|
5711
|
-
return
|
|
5711
|
+
return dr(e).filter(
|
|
5712
5712
|
(r) => r.timeRange || r.dimensionValues?.some((i) => i.isSelectedValue)
|
|
5713
5713
|
).forEach((r) => {
|
|
5714
5714
|
const { id: i, dimensionValues: s } = r;
|
|
@@ -5717,19 +5717,19 @@ const Zt = (e, t, n, r, i = qe.EN) => {
|
|
|
5717
5717
|
...Oc(r.timeRange, i)
|
|
5718
5718
|
] : n.push({
|
|
5719
5719
|
componentCode: i,
|
|
5720
|
-
operator:
|
|
5720
|
+
operator: $n.EQUALS,
|
|
5721
5721
|
value: s?.filter((o) => o.isSelectedValue)?.map((o) => o.id).join(sl) || ""
|
|
5722
5722
|
});
|
|
5723
5723
|
}), n;
|
|
5724
5724
|
}, Oc = (e, t) => e == null || e.startPeriod == null || e.endPeriod == null ? [] : [
|
|
5725
5725
|
{
|
|
5726
5726
|
componentCode: t,
|
|
5727
|
-
operator:
|
|
5727
|
+
operator: $n.GREATER_OR_EQUAL,
|
|
5728
5728
|
value: Oi(new Date(e.startPeriod))
|
|
5729
5729
|
},
|
|
5730
5730
|
{
|
|
5731
5731
|
componentCode: t,
|
|
5732
|
-
operator:
|
|
5732
|
+
operator: $n.LESS_OR_EQUAL,
|
|
5733
5733
|
value: Oi(new Date(e.endPeriod), 1)
|
|
5734
5734
|
}
|
|
5735
5735
|
], _c = 1e3 * 60 * 60 * 24, Oi = (e, t = 0) => {
|
|
@@ -5739,7 +5739,7 @@ const Zt = (e, t, n, r, i = qe.EN) => {
|
|
|
5739
5739
|
}, At = (e) => [...e].map((t) => ({
|
|
5740
5740
|
...t,
|
|
5741
5741
|
value: t.value.split(",").sort().join(",")
|
|
5742
|
-
})).sort((t, n) => t.componentCode.localeCompare(n.componentCode)),
|
|
5742
|
+
})).sort((t, n) => t.componentCode.localeCompare(n.componentCode)), Qt = /* @__PURE__ */ new Map(), en = /* @__PURE__ */ new Map();
|
|
5743
5743
|
function Rc(e, t) {
|
|
5744
5744
|
return `${e.name ?? ""}::${t}`;
|
|
5745
5745
|
}
|
|
@@ -5748,31 +5748,31 @@ function Ue(...e) {
|
|
|
5748
5748
|
}
|
|
5749
5749
|
async function je(e, t, n) {
|
|
5750
5750
|
const r = Rc(e, t);
|
|
5751
|
-
if (
|
|
5752
|
-
return
|
|
5753
|
-
const i =
|
|
5751
|
+
if (Qt.has(r))
|
|
5752
|
+
return Qt.get(r);
|
|
5753
|
+
const i = en.get(r);
|
|
5754
5754
|
if (i)
|
|
5755
5755
|
return i;
|
|
5756
|
-
const s = n().then((o) => (
|
|
5757
|
-
|
|
5756
|
+
const s = n().then((o) => (Qt.set(r, o), o)).finally(() => {
|
|
5757
|
+
en.delete(r);
|
|
5758
5758
|
});
|
|
5759
|
-
return
|
|
5759
|
+
return en.set(r, s), s;
|
|
5760
5760
|
}
|
|
5761
5761
|
function _i() {
|
|
5762
|
-
|
|
5762
|
+
Qt.clear(), en.clear();
|
|
5763
5763
|
}
|
|
5764
5764
|
const Pc = (e) => e.map(
|
|
5765
5765
|
(t) => ({
|
|
5766
5766
|
componentCode: t.id || "",
|
|
5767
|
-
operator:
|
|
5767
|
+
operator: sn.IN,
|
|
5768
5768
|
values: t.dimensionValues?.map((n) => n.id) || []
|
|
5769
5769
|
})
|
|
5770
5770
|
), da = (e, t) => {
|
|
5771
5771
|
const n = t?.timeDimensions?.[0], r = al(e, n) || null;
|
|
5772
5772
|
return r ? Ts(r, n?.id) : null;
|
|
5773
5773
|
}, ua = (e, t, n) => {
|
|
5774
|
-
const r =
|
|
5775
|
-
|
|
5774
|
+
const r = Sn(
|
|
5775
|
+
dr(e)
|
|
5776
5776
|
), i = r.find(
|
|
5777
5777
|
(s) => s?.isTimeDimension && s?.timeRange
|
|
5778
5778
|
);
|
|
@@ -5786,18 +5786,18 @@ const Pc = (e) => e.map(
|
|
|
5786
5786
|
i?.id
|
|
5787
5787
|
)
|
|
5788
5788
|
};
|
|
5789
|
-
}, ha = (e, t) =>
|
|
5789
|
+
}, ha = (e, t) => dr(e)?.filter(
|
|
5790
5790
|
(n) => n.timeRange || n.dimensionValues?.some((r) => r.isSelectedValue)
|
|
5791
5791
|
).map((n) => n?.isTimeDimension ? {
|
|
5792
5792
|
componentCode: n?.id,
|
|
5793
|
-
operator:
|
|
5793
|
+
operator: sn.BETWEEN,
|
|
5794
5794
|
values: [
|
|
5795
5795
|
Ri(n?.timeRange?.startPeriod || void 0) || "",
|
|
5796
5796
|
Ri(n?.timeRange?.endPeriod || void 0) || ""
|
|
5797
5797
|
]
|
|
5798
5798
|
} : {
|
|
5799
5799
|
componentCode: n?.id,
|
|
5800
|
-
operator:
|
|
5800
|
+
operator: sn.IN,
|
|
5801
5801
|
values: n?.dimensionValues?.filter((r) => r.isSelectedValue)?.map((r) => r.id) || []
|
|
5802
5802
|
}), Ri = (e) => {
|
|
5803
5803
|
if (!e) return "";
|
|
@@ -5916,7 +5916,7 @@ const Pc = (e) => e.map(
|
|
|
5916
5916
|
}, Yc = (e, t) => {
|
|
5917
5917
|
if (!e.isTimeDimension || !e.timeRange)
|
|
5918
5918
|
return e;
|
|
5919
|
-
const n =
|
|
5919
|
+
const n = Cn(
|
|
5920
5920
|
t?.[0]?.annotations
|
|
5921
5921
|
), r = n.startPeriod, i = n.endPeriod;
|
|
5922
5922
|
if (!r || !i)
|
|
@@ -5962,7 +5962,7 @@ const Pc = (e) => e.map(
|
|
|
5962
5962
|
e?.structuresMap?.get(n)?.codelists,
|
|
5963
5963
|
e?.structuresMap?.get(n)?.conceptSchemes,
|
|
5964
5964
|
s
|
|
5965
|
-
), u =
|
|
5965
|
+
), u = sr(
|
|
5966
5966
|
o?.codes,
|
|
5967
5967
|
s.id,
|
|
5968
5968
|
e?.constraintsMap?.get(n),
|
|
@@ -6000,28 +6000,28 @@ const Pc = (e) => e.map(
|
|
|
6000
6000
|
const i = r?.urn, s = e?.get(i) || [], o = n?.get(i) || [];
|
|
6001
6001
|
return oa(s, r, o);
|
|
6002
6002
|
}) || []
|
|
6003
|
-
),
|
|
6003
|
+
), Fn = (e, t) => e?.flatMap((n) => $c(n))?.reduce((n, r) => {
|
|
6004
6004
|
const i = r?.datasetUrn || "", s = Yc(
|
|
6005
6005
|
r,
|
|
6006
6006
|
t?.get(i)
|
|
6007
6007
|
);
|
|
6008
6008
|
return n.has(i) || n.set(i, []), n?.get(i)?.push(s), n;
|
|
6009
|
-
}, /* @__PURE__ */ new Map()),
|
|
6009
|
+
}, /* @__PURE__ */ new Map()), Yt = (e, t, n = qe.EN) => {
|
|
6010
6010
|
const r = [];
|
|
6011
6011
|
return Array.from(e?.entries())?.forEach(([i, s]) => {
|
|
6012
6012
|
const o = t?.dimensionsMap?.get(i), u = t?.structuresMap?.get(i), a = t?.constraintsMap?.get(i);
|
|
6013
6013
|
r.push(
|
|
6014
|
-
...
|
|
6014
|
+
...Xt(s, o, u, a, n)
|
|
6015
6015
|
);
|
|
6016
6016
|
}), ga(r);
|
|
6017
|
-
},
|
|
6017
|
+
}, dr = (e, t) => e.filter((n) => n.filterType !== "shared"), pa = (e, t) => {
|
|
6018
6018
|
if (e?.filterType === "shared")
|
|
6019
6019
|
return;
|
|
6020
6020
|
const n = e?.datasetUrn ? t?.get(e.datasetUrn)?.dataflows?.[0] : void 0;
|
|
6021
6021
|
return n ? ot(n?.name, "", n?.agencyID) : void 0;
|
|
6022
6022
|
}, Qc = (e, t) => e?.length ? !!t?.dimensionsMap && !!t?.structuresMap && !!t?.structureDimensionsMap && !!t?.constraintsMap : !1, Fi = (e, t, n) => e?.map((r) => {
|
|
6023
6023
|
const i = r?.urn ?? "", s = At(
|
|
6024
|
-
|
|
6024
|
+
Qn(t?.get(i) || []).filter(
|
|
6025
6025
|
(o) => o.componentCode !== gt
|
|
6026
6026
|
)
|
|
6027
6027
|
);
|
|
@@ -6046,7 +6046,7 @@ const Pc = (e) => e.map(
|
|
|
6046
6046
|
if (e && t?.filterType === "shared" && t?.isTimeDimension) {
|
|
6047
6047
|
const s = Array.from(
|
|
6048
6048
|
r?.values() || []
|
|
6049
|
-
).flatMap((a) => a || []).map((a) =>
|
|
6049
|
+
).flatMap((a) => a || []).map((a) => Cn(a?.annotations)).filter(
|
|
6050
6050
|
(a) => a.startPeriod !== null && a.endPeriod !== null
|
|
6051
6051
|
);
|
|
6052
6052
|
if (!s.length)
|
|
@@ -6092,7 +6092,7 @@ const Pc = (e) => e.map(
|
|
|
6092
6092
|
ha(t?.get(r) || [])
|
|
6093
6093
|
];
|
|
6094
6094
|
})
|
|
6095
|
-
),
|
|
6095
|
+
), ur = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M8 14C6.32222 14 4.90278 13.7417 3.74167 13.225C2.58056 12.7083 2 12.0778 2 11.3333V4.66667C2 3.93333 2.58611 3.30556 3.75833 2.78333C4.93056 2.26111 6.34444 2 8 2C9.65556 2 11.0694 2.26111 12.2417 2.78333C13.4139 3.30556 14 3.93333 14 4.66667V11.3333C14 12.0778 13.4194 12.7083 12.2583 13.225C11.0972 13.7417 9.67778 14 8 14ZM8 6.01667C8.98889 6.01667 9.98333 5.875 10.9833 5.59167C11.9833 5.30833 12.5444 5.00556 12.6667 4.68333C12.5444 4.36111 11.9861 4.05556 10.9917 3.76667C9.99722 3.47778 9 3.33333 8 3.33333C6.98889 3.33333 5.99722 3.475 5.025 3.75833C4.05278 4.04167 3.48889 4.35 3.33333 4.68333C3.48889 5.01667 4.05278 5.32222 5.025 5.6C5.99722 5.87778 6.98889 6.01667 8 6.01667ZM8 9.33333C8.46667 9.33333 8.91667 9.31111 9.35 9.26667C9.78333 9.22222 10.1972 9.15833 10.5917 9.075C10.9861 8.99167 11.3583 8.88889 11.7083 8.76667C12.0583 8.64444 12.3778 8.50556 12.6667 8.35V6.35C12.3778 6.50556 12.0583 6.64444 11.7083 6.76667C11.3583 6.88889 10.9861 6.99167 10.5917 7.075C10.1972 7.15833 9.78333 7.22222 9.35 7.26667C8.91667 7.31111 8.46667 7.33333 8 7.33333C7.53333 7.33333 7.07778 7.31111 6.63333 7.26667C6.18889 7.22222 5.76944 7.15833 5.375 7.075C4.98056 6.99167 4.61111 6.88889 4.26667 6.76667C3.92222 6.64444 3.61111 6.50556 3.33333 6.35V8.35C3.61111 8.50556 3.92222 8.64444 4.26667 8.76667C4.61111 8.88889 4.98056 8.99167 5.375 9.075C5.76944 9.15833 6.18889 9.22222 6.63333 9.26667C7.07778 9.31111 7.53333 9.33333 8 9.33333ZM8 12.6667C8.51111 12.6667 9.03056 12.6278 9.55833 12.55C10.0861 12.4722 10.5722 12.3694 11.0167 12.2417C11.4611 12.1139 11.8333 11.9694 12.1333 11.8083C12.4333 11.6472 12.6111 11.4833 12.6667 11.3167V9.68333C12.3778 9.83889 12.0583 9.97778 11.7083 10.1C11.3583 10.2222 10.9861 10.325 10.5917 10.4083C10.1972 10.4917 9.78333 10.5556 9.35 10.6C8.91667 10.6444 8.46667 10.6667 8 10.6667C7.53333 10.6667 7.07778 10.6444 6.63333 10.6C6.18889 10.5556 5.76944 10.4917 5.375 10.4083C4.98056 10.325 4.61111 10.2222 4.26667 10.1C3.92222 9.97778 3.61111 9.83889 3.33333 9.68333V11.3333C3.38889 11.5 3.56389 11.6611 3.85833 11.8167C4.15278 11.9722 4.52222 12.1139 4.96667 12.2417C5.41111 12.3694 5.9 12.4722 6.43333 12.55C6.96667 12.6278 7.48889 12.6667 8 12.6667Z", fill: "currentColor" })), nd = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M6.66663 6.175L10.4833 10L6.66663 13.825L7.84163 15L12.8416 10L7.84163 5L6.66663 6.175Z", fill: "currentColor" })), rd = Cl, Gi = 24, Hi = 232, Vn = ({
|
|
6096
6096
|
selectedFilter: e,
|
|
6097
6097
|
filterValues: t,
|
|
6098
6098
|
checkboxIcon: n,
|
|
@@ -6105,7 +6105,7 @@ const Pc = (e) => e.map(
|
|
|
6105
6105
|
selectHierarchicalNodes: d,
|
|
6106
6106
|
expandHierarchicalValue: l
|
|
6107
6107
|
}) => {
|
|
6108
|
-
const h =
|
|
6108
|
+
const h = wn(), { isCrossDatasetModeOn: f } = Le();
|
|
6109
6109
|
if (!t) return null;
|
|
6110
6110
|
const m = e ? pa(e, u) : void 0, g = f && e?.filterType !== "shared" && !!m && !!e?.title, y = t.length * Gi, p = y > Hi ? Hi : y;
|
|
6111
6111
|
return /* @__PURE__ */ C(
|
|
@@ -6117,7 +6117,7 @@ const Pc = (e) => e.map(
|
|
|
6117
6117
|
),
|
|
6118
6118
|
children: [
|
|
6119
6119
|
g && /* @__PURE__ */ C("div", { className: "mb-2 flex items-center gap-x-1", children: [
|
|
6120
|
-
/* @__PURE__ */ c(
|
|
6120
|
+
/* @__PURE__ */ c(ur, { className: "size-4 shrink-0 text-neutrals-700" }),
|
|
6121
6121
|
/* @__PURE__ */ c("span", { className: "h4 text-neutrals-800", children: m }),
|
|
6122
6122
|
/* @__PURE__ */ c(nd, { className: "size-4 shrink-0 text-neutrals-1000" }),
|
|
6123
6123
|
/* @__PURE__ */ c("span", { className: "h4 text-neutrals-1000", children: e?.title })
|
|
@@ -6235,7 +6235,7 @@ const Pc = (e) => e.map(
|
|
|
6235
6235
|
{
|
|
6236
6236
|
titles: a,
|
|
6237
6237
|
initialConstraints: d,
|
|
6238
|
-
calendarResolution:
|
|
6238
|
+
calendarResolution: qt.DAY,
|
|
6239
6239
|
timeRange: t?.timeRange || null,
|
|
6240
6240
|
timeRangeOptions: s || [],
|
|
6241
6241
|
calendarStartFromMonday: !0,
|
|
@@ -6255,7 +6255,7 @@ const Pc = (e) => e.map(
|
|
|
6255
6255
|
),
|
|
6256
6256
|
children: [
|
|
6257
6257
|
/* @__PURE__ */ c(
|
|
6258
|
-
|
|
6258
|
+
gn,
|
|
6259
6259
|
{
|
|
6260
6260
|
inputId: "filters-search-input",
|
|
6261
6261
|
containerClasses: "gap-2 items-center filters-search-input",
|
|
@@ -6287,7 +6287,7 @@ const Pc = (e) => e.map(
|
|
|
6287
6287
|
/* @__PURE__ */ c("div", { className: "body-2 mt-3 flex min-h-0 flex-1 flex-col overflow-auto", children: k ? /* @__PURE__ */ C(me, { children: [
|
|
6288
6288
|
t && /* @__PURE__ */ C("div", { className: "shrink-0 pb-4", children: [
|
|
6289
6289
|
/* @__PURE__ */ c(
|
|
6290
|
-
|
|
6290
|
+
Vn,
|
|
6291
6291
|
{
|
|
6292
6292
|
selectedFilter: t,
|
|
6293
6293
|
filterValues: A,
|
|
@@ -6325,7 +6325,7 @@ const Pc = (e) => e.map(
|
|
|
6325
6325
|
{
|
|
6326
6326
|
className: "shrink-0 pb-4 last:pb-0",
|
|
6327
6327
|
children: /* @__PURE__ */ c(
|
|
6328
|
-
|
|
6328
|
+
Vn,
|
|
6329
6329
|
{
|
|
6330
6330
|
selectedFilter: O,
|
|
6331
6331
|
filterValues: _,
|
|
@@ -6345,7 +6345,7 @@ const Pc = (e) => e.map(
|
|
|
6345
6345
|
)
|
|
6346
6346
|
)
|
|
6347
6347
|
] }) : /* @__PURE__ */ c(
|
|
6348
|
-
|
|
6348
|
+
Vn,
|
|
6349
6349
|
{
|
|
6350
6350
|
selectedFilter: t,
|
|
6351
6351
|
filterValues: A,
|
|
@@ -6381,8 +6381,8 @@ const Pc = (e) => e.map(
|
|
|
6381
6381
|
selectHierarchicalNodes: p,
|
|
6382
6382
|
expandHierarchicalValue: D
|
|
6383
6383
|
}) => {
|
|
6384
|
-
const S =
|
|
6385
|
-
${
|
|
6384
|
+
const S = wn(), [w, v] = b(0), [M, T] = b(!1), x = t?.isTimeDimension && t?.timeRange, k = j(() => t?.timeRange?.startPeriod && t?.timeRange?.endPeriod ? `${un(t?.timeRange?.startPeriod, s)} -
|
|
6385
|
+
${un(t?.timeRange?.endPeriod, s)}` : "", [s, t?.timeRange]);
|
|
6386
6386
|
R(() => {
|
|
6387
6387
|
v(
|
|
6388
6388
|
ra(t?.dimensionValues)?.length
|
|
@@ -6421,7 +6421,7 @@ const Pc = (e) => e.map(
|
|
|
6421
6421
|
children: [
|
|
6422
6422
|
/* @__PURE__ */ c("span", { className: "truncate", children: t?.title }),
|
|
6423
6423
|
S && /* @__PURE__ */ c(
|
|
6424
|
-
|
|
6424
|
+
lr,
|
|
6425
6425
|
{
|
|
6426
6426
|
className: H(
|
|
6427
6427
|
"chevron-icon w-6 h-6 shrink-0",
|
|
@@ -6582,8 +6582,8 @@ const Pc = (e) => e.map(
|
|
|
6582
6582
|
onTimePeriodChange: D,
|
|
6583
6583
|
selectedTimeOption: S
|
|
6584
6584
|
}) => {
|
|
6585
|
-
const w =
|
|
6586
|
-
|
|
6585
|
+
const w = wn(), { isCrossDatasetModeOn: v } = Le(), M = cr(
|
|
6586
|
+
Sn(e)
|
|
6587
6587
|
), T = I(
|
|
6588
6588
|
(A) => {
|
|
6589
6589
|
const E = e?.find(
|
|
@@ -6749,7 +6749,7 @@ const Pc = (e) => e.map(
|
|
|
6749
6749
|
timeseriesLength: o,
|
|
6750
6750
|
limitMessages: u
|
|
6751
6751
|
}) => {
|
|
6752
|
-
const a =
|
|
6752
|
+
const a = wn(), d = e?.footerActionsPosition === "right", l = e?.isShowCancelButton, h = e?.isShowClearAllButton ?? !0, f = l ? d ? "justify-end" : "justify-start" : d ? "flex-row items-center justify-between sm:flex-col-reverse sm:gap-y-4" : "gap-x-8 flex-row-reverse items-center justify-between sm:flex-col sm:gap-y-4", m = l ? d ? "items-center gap-x-8" : "justify-between" : d ? "flex-row justify-end items-center sm:flex-col-reverse sm:gap-y-4" : "gap-x-8 flex-row-reverse justify-end items-center sm:flex-col-reverse sm:gap-y-4";
|
|
6753
6753
|
return /* @__PURE__ */ C(
|
|
6754
6754
|
"div",
|
|
6755
6755
|
{
|
|
@@ -6803,14 +6803,14 @@ const Pc = (e) => e.map(
|
|
|
6803
6803
|
);
|
|
6804
6804
|
}, od = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M3.33333 13.3327V8.66602H2V7.33268H6V8.66602H4.66667V13.3327H3.33333ZM3.33333 5.99935V2.66602H4.66667V5.99935H3.33333ZM6 5.99935V4.66602H7.33333V2.66602H8.66667V4.66602H10V5.99935H6ZM7.33333 13.3327V7.33268H8.66667V13.3327H7.33333ZM11.3333 13.3327V11.3327H10V9.99935H14V11.3327H12.6667V13.3327H11.3333ZM11.3333 8.66602V2.66602H12.6667V8.66602H11.3333Z", fill: "currentColor" }));
|
|
6805
6805
|
var Ce = /* @__PURE__ */ ((e) => (e.DATA_GRID = "dataGrid", e.METADATA_PER_SERIES = "metadataPerSeries", e.CHARTS = "charts", e.CHARTS_NAVIGATION = "chartsNavigation", e.OPEN_ADVANCED_VIEW = "openAdvancedView", e.FILTERS = "filters", e.CHART_PER_SERIES = "chartPerSeries", e.METADATA_PER_DATASET = "metadataPerDataset", e.EXIT_ADVANCED_VIEW = "exitAdvancedView", e))(Ce || {});
|
|
6806
|
-
const
|
|
6806
|
+
const hr = [
|
|
6807
6807
|
"charts",
|
|
6808
6808
|
"chartsNavigation"
|
|
6809
6809
|
/* CHARTS_NAVIGATION */
|
|
6810
6810
|
], Bi = [
|
|
6811
6811
|
"dataGrid",
|
|
6812
6812
|
"metadataPerSeries",
|
|
6813
|
-
...
|
|
6813
|
+
...hr,
|
|
6814
6814
|
"openAdvancedView"
|
|
6815
6815
|
/* OPEN_ADVANCED_VIEW */
|
|
6816
6816
|
], ya = [
|
|
@@ -6825,18 +6825,18 @@ const dr = [
|
|
|
6825
6825
|
title: typeof n == "string" ? n : "",
|
|
6826
6826
|
description: typeof r == "string" ? r : ""
|
|
6827
6827
|
};
|
|
6828
|
-
},
|
|
6828
|
+
}, er = (e, t) => e.find((n) => !t.infoElements?.[n]) || "", ld = (e, t) => {
|
|
6829
6829
|
if (!e || !t)
|
|
6830
6830
|
return "";
|
|
6831
6831
|
if (Bi.includes(t)) {
|
|
6832
|
-
const r =
|
|
6832
|
+
const r = er(Bi, e);
|
|
6833
6833
|
if (r)
|
|
6834
6834
|
return r;
|
|
6835
6835
|
}
|
|
6836
|
-
const n =
|
|
6836
|
+
const n = er(ya, e);
|
|
6837
6837
|
return n || "";
|
|
6838
6838
|
}, Da = (e, t) => {
|
|
6839
|
-
const n =
|
|
6839
|
+
const n = er(e, t);
|
|
6840
6840
|
return {
|
|
6841
6841
|
...t,
|
|
6842
6842
|
infoElements: {
|
|
@@ -6850,9 +6850,9 @@ const dr = [
|
|
|
6850
6850
|
ya,
|
|
6851
6851
|
e
|
|
6852
6852
|
), cd = (e) => Da(
|
|
6853
|
-
|
|
6853
|
+
hr,
|
|
6854
6854
|
e
|
|
6855
|
-
), dd = (e) => (!e?.infoElements?.charts || !e?.infoElements?.chartsNavigation) && !
|
|
6855
|
+
), dd = (e) => (!e?.infoElements?.charts || !e?.infoElements?.chartsNavigation) && !hr.includes(
|
|
6856
6856
|
e.lastDisplayedElement
|
|
6857
6857
|
), Ye = 5, ud = ({
|
|
6858
6858
|
targetPosition: e,
|
|
@@ -6927,7 +6927,7 @@ const dr = [
|
|
|
6927
6927
|
shouldMoveToNextStep: s,
|
|
6928
6928
|
supressReferenceClick: o
|
|
6929
6929
|
}) => {
|
|
6930
|
-
const [u, a] = b(!0), [d, l] = b(!1), h = be(null), { isShowOnboarding: f, onboardingFileSchema: m, setOnboardingFileSchema: g } =
|
|
6930
|
+
const [u, a] = b(!0), [d, l] = b(!1), h = be(null), { isShowOnboarding: f, onboardingFileSchema: m, setOnboardingFileSchema: g } = Ge(), { refs: y, floatingStyles: p, context: D, placement: S } = ks({
|
|
6931
6931
|
open: u,
|
|
6932
6932
|
onOpenChange: a,
|
|
6933
6933
|
placement: "right-start",
|
|
@@ -7014,7 +7014,7 @@ const dr = [
|
|
|
7014
7014
|
filterIconClassName: u,
|
|
7015
7015
|
timeSeriesCount: a
|
|
7016
7016
|
}) => {
|
|
7017
|
-
const d = be(null), [l, h] = b(""), [f, m] = b(""), [g, y] = b(!1), { onboardingFileSchema: p, isShowOnboarding: D } =
|
|
7017
|
+
const d = be(null), [l, h] = b(""), [f, m] = b(""), [g, y] = b(!1), { onboardingFileSchema: p, isShowOnboarding: D } = Ge(), S = mt < (a ?? 0), w = j(
|
|
7018
7018
|
() => e?.isShowBadge ? e?.title : `${e?.title}: ${t}`,
|
|
7019
7019
|
[e?.isShowBadge, e?.title, t]
|
|
7020
7020
|
);
|
|
@@ -7030,7 +7030,7 @@ const dr = [
|
|
|
7030
7030
|
D && y(
|
|
7031
7031
|
p?.lastDisplayedElement === Ce.FILTERS
|
|
7032
7032
|
);
|
|
7033
|
-
}, [p?.lastDisplayedElement, D]), /* @__PURE__ */ c("div", { className: "filter-button-container relative", ref: d, children: n ? /* @__PURE__ */ c(
|
|
7033
|
+
}, [p?.lastDisplayedElement, D]), /* @__PURE__ */ c("div", { className: "filter-button-container relative", ref: d, children: n ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ C(me, { children: [
|
|
7034
7034
|
/* @__PURE__ */ c(
|
|
7035
7035
|
Ne,
|
|
7036
7036
|
{
|
|
@@ -7063,34 +7063,34 @@ const dr = [
|
|
|
7063
7063
|
const t = [];
|
|
7064
7064
|
return e.custom_content?.attachments && t.push(...e.custom_content.attachments), t;
|
|
7065
7065
|
};
|
|
7066
|
-
function
|
|
7066
|
+
function fr(e) {
|
|
7067
7067
|
return e.type === Ie.MARKDOWN && e.title != null && e.title?.startsWith("URL Query");
|
|
7068
7068
|
}
|
|
7069
7069
|
function Na(e) {
|
|
7070
7070
|
return e.type === Ie.JSON && e.title != null && e.title?.startsWith("Query (JSON)");
|
|
7071
7071
|
}
|
|
7072
7072
|
function Ta(e) {
|
|
7073
|
-
return e.type === Ie.MARKDOWN && !
|
|
7073
|
+
return e.type === Ie.MARKDOWN && !fr(e);
|
|
7074
7074
|
}
|
|
7075
7075
|
function hd(e) {
|
|
7076
7076
|
return e.type === Ie.CSV;
|
|
7077
7077
|
}
|
|
7078
|
-
function
|
|
7078
|
+
function mr(e) {
|
|
7079
7079
|
return e.type === Ie.TABLE;
|
|
7080
7080
|
}
|
|
7081
7081
|
function at(e) {
|
|
7082
7082
|
return e.type === Ie.CUSTOM_DATA_GRID;
|
|
7083
7083
|
}
|
|
7084
|
-
function
|
|
7084
|
+
function tn(e) {
|
|
7085
7085
|
return e.type === Ie.CUSTOM_CHART;
|
|
7086
7086
|
}
|
|
7087
7087
|
function fd(e) {
|
|
7088
7088
|
return e.type === Ie.PLOTLY;
|
|
7089
7089
|
}
|
|
7090
|
-
function
|
|
7090
|
+
function gr(e) {
|
|
7091
7091
|
return e.type === Ie.CUSTOM_CODE_SAMPLE;
|
|
7092
7092
|
}
|
|
7093
|
-
function
|
|
7093
|
+
function Mn(e) {
|
|
7094
7094
|
return e.type === Ie.CROSS_DATASET_GRID;
|
|
7095
7095
|
}
|
|
7096
7096
|
const md = (e, t) => e?.filter(
|
|
@@ -7166,8 +7166,8 @@ const md = (e, t) => e?.filter(
|
|
|
7166
7166
|
const ue = U ? T.map(
|
|
7167
7167
|
(le) => Fe(le, U) ? U : le
|
|
7168
7168
|
) : T;
|
|
7169
|
-
J(!0), x(
|
|
7170
|
-
U?.isTimeDimension ?
|
|
7169
|
+
J(!0), x(fn(ue)), ne?.(!0), ee(
|
|
7170
|
+
U?.isTimeDimension ? hn(ue, U) : ue,
|
|
7171
7171
|
x,
|
|
7172
7172
|
ne
|
|
7173
7173
|
);
|
|
@@ -7178,7 +7178,7 @@ const md = (e, t) => e?.filter(
|
|
|
7178
7178
|
const ee = I(
|
|
7179
7179
|
(U, ue, le) => {
|
|
7180
7180
|
const ge = o?.urn ?? "", Me = At(
|
|
7181
|
-
|
|
7181
|
+
Qn(U).filter(
|
|
7182
7182
|
(Te) => Te.componentCode !== gt
|
|
7183
7183
|
)
|
|
7184
7184
|
);
|
|
@@ -7189,7 +7189,7 @@ const md = (e, t) => e?.filter(
|
|
|
7189
7189
|
) : Promise.resolve(void 0)).then((Te) => {
|
|
7190
7190
|
const Qe = Te?.data?.dataConstraints || [];
|
|
7191
7191
|
_.current = Qe, le?.(!1), ue(
|
|
7192
|
-
|
|
7192
|
+
Xt(
|
|
7193
7193
|
U,
|
|
7194
7194
|
t,
|
|
7195
7195
|
r,
|
|
@@ -7199,7 +7199,7 @@ const md = (e, t) => e?.filter(
|
|
|
7199
7199
|
);
|
|
7200
7200
|
}).catch(() => {
|
|
7201
7201
|
_.current = [], le?.(!1), ue(
|
|
7202
|
-
|
|
7202
|
+
Xt(
|
|
7203
7203
|
U,
|
|
7204
7204
|
t,
|
|
7205
7205
|
r,
|
|
@@ -7224,7 +7224,7 @@ const md = (e, t) => e?.filter(
|
|
|
7224
7224
|
r?.codelists,
|
|
7225
7225
|
r?.conceptSchemes,
|
|
7226
7226
|
ge
|
|
7227
|
-
), pe =
|
|
7227
|
+
), pe = sr(
|
|
7228
7228
|
Me?.codes,
|
|
7229
7229
|
ge.id,
|
|
7230
7230
|
_.current,
|
|
@@ -7263,10 +7263,10 @@ const md = (e, t) => e?.filter(
|
|
|
7263
7263
|
a,
|
|
7264
7264
|
ee
|
|
7265
7265
|
]), R(() => {
|
|
7266
|
-
k?.length && L(
|
|
7266
|
+
k?.length && L(Sn(k));
|
|
7267
7267
|
}, [k]), R(() => {
|
|
7268
7268
|
x(
|
|
7269
|
-
(U) =>
|
|
7269
|
+
(U) => hn(U, N)
|
|
7270
7270
|
);
|
|
7271
7271
|
}, [N]), R(() => {
|
|
7272
7272
|
v === ae.Opened && (A({ ...k?.[0], isSelectedFilter: !0 }), x(k)), v === ae.Closed && A(void 0);
|
|
@@ -7321,7 +7321,7 @@ const md = (e, t) => e?.filter(
|
|
|
7321
7321
|
[t]
|
|
7322
7322
|
), Ee = I(
|
|
7323
7323
|
(U, ue) => {
|
|
7324
|
-
const le =
|
|
7324
|
+
const le = Xt(
|
|
7325
7325
|
ue,
|
|
7326
7326
|
t,
|
|
7327
7327
|
r,
|
|
@@ -7337,9 +7337,9 @@ const md = (e, t) => e?.filter(
|
|
|
7337
7337
|
[t, l, r]
|
|
7338
7338
|
), we = I(
|
|
7339
7339
|
(U) => {
|
|
7340
|
-
J(!0), x(
|
|
7340
|
+
J(!0), x(fn(U));
|
|
7341
7341
|
const ue = o?.urn ?? "", le = At(
|
|
7342
|
-
|
|
7342
|
+
Qn(U).filter(
|
|
7343
7343
|
(Me) => Me.componentCode !== gt
|
|
7344
7344
|
)
|
|
7345
7345
|
);
|
|
@@ -7389,7 +7389,7 @@ const md = (e, t) => e?.filter(
|
|
|
7389
7389
|
Ma,
|
|
7390
7390
|
{
|
|
7391
7391
|
buttonProps: i,
|
|
7392
|
-
selectedFiltersCount:
|
|
7392
|
+
selectedFiltersCount: cr(
|
|
7393
7393
|
E
|
|
7394
7394
|
),
|
|
7395
7395
|
isLoading: Y,
|
|
@@ -7510,22 +7510,22 @@ const md = (e, t) => e?.filter(
|
|
|
7510
7510
|
] })
|
|
7511
7511
|
}
|
|
7512
7512
|
), Dd = (e) => /* @__PURE__ */ ce.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ce.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), Sd = (e) => /* @__PURE__ */ ce.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ce.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), ji = [
|
|
7513
|
-
{ value:
|
|
7514
|
-
{ value:
|
|
7515
|
-
{ value:
|
|
7513
|
+
{ value: _n.JSON, title: "SDMX-JSON" },
|
|
7514
|
+
{ value: _n.XML, title: "SDMX-ML (XML)" },
|
|
7515
|
+
{ value: _n.CSV, title: "SDMX-CSV" }
|
|
7516
7516
|
], Md = (e) => [
|
|
7517
7517
|
{
|
|
7518
|
-
value:
|
|
7518
|
+
value: Rn.ID,
|
|
7519
7519
|
title: e?.idOptions || "ID",
|
|
7520
7520
|
description: e?.idOptionsDescription
|
|
7521
7521
|
},
|
|
7522
7522
|
{
|
|
7523
|
-
value:
|
|
7523
|
+
value: Rn.NAME,
|
|
7524
7524
|
title: e?.nameOptions || "Name",
|
|
7525
7525
|
description: e?.nameOptionsDescription
|
|
7526
7526
|
},
|
|
7527
7527
|
{
|
|
7528
|
-
value:
|
|
7528
|
+
value: Rn.ID_NAME,
|
|
7529
7529
|
title: e?.idAndNameOptions || "Combined ID and Name",
|
|
7530
7530
|
description: e?.idAndNameOptionsDescription
|
|
7531
7531
|
}
|
|
@@ -7552,10 +7552,10 @@ const md = (e, t) => e?.filter(
|
|
|
7552
7552
|
) }, s.value)) }),
|
|
7553
7553
|
i
|
|
7554
7554
|
] }), Nd = (e, t, n, r) => {
|
|
7555
|
-
if (r?.filterKey && e ===
|
|
7555
|
+
if (r?.filterKey && e === cn.DATA_IN_TABLE)
|
|
7556
7556
|
return r;
|
|
7557
7557
|
let i = null, s = null;
|
|
7558
|
-
return t && n && e ===
|
|
7558
|
+
return t && n && e === cn.DATA_IN_TABLE && (i = n == null ? null : It(n, t.filters), s = ul(t, hl(n))), {
|
|
7559
7559
|
filterKey: i,
|
|
7560
7560
|
timeFilter: s
|
|
7561
7561
|
};
|
|
@@ -7566,7 +7566,7 @@ const md = (e, t) => e?.filter(
|
|
|
7566
7566
|
isDisplayDatasetIcon: r = !0,
|
|
7567
7567
|
datasetName: i,
|
|
7568
7568
|
onCloseModal: s,
|
|
7569
|
-
type: o =
|
|
7569
|
+
type: o = cn.FULL_DATASET,
|
|
7570
7570
|
locale: u = qe.EN,
|
|
7571
7571
|
dimensions: a,
|
|
7572
7572
|
filters: d,
|
|
@@ -7744,7 +7744,7 @@ const md = (e, t) => e?.filter(
|
|
|
7744
7744
|
onOpenAdvancedView: o,
|
|
7745
7745
|
titles: u
|
|
7746
7746
|
}) => {
|
|
7747
|
-
const { isOpenedAdvancedView: a } = Re(), [d, l] = b(), h = be(null), [f, m] = b(""), [g, y] = b(""), [p, D] = b(!1), { onboardingFileSchema: S, isShowOnboarding: w } =
|
|
7747
|
+
const { isOpenedAdvancedView: a } = Re(), [d, l] = b(), h = be(null), [f, m] = b(""), [g, y] = b(""), [p, D] = b(!1), { onboardingFileSchema: S, isShowOnboarding: w } = Ge();
|
|
7748
7748
|
R(() => {
|
|
7749
7749
|
if (w) {
|
|
7750
7750
|
const { title: M, description: T } = Ze(
|
|
@@ -7831,7 +7831,7 @@ const md = (e, t) => e?.filter(
|
|
|
7831
7831
|
onOpenAdvancedView: i,
|
|
7832
7832
|
titles: s
|
|
7833
7833
|
}) => {
|
|
7834
|
-
const { isOpenedAdvancedView: o } = Re(), u = be(null), [a, d] = b(""), [l, h] = b(""), [f, m] = b(!1), { onboardingFileSchema: g, isShowOnboarding: y } =
|
|
7834
|
+
const { isOpenedAdvancedView: o } = Re(), u = be(null), [a, d] = b(""), [l, h] = b(""), [f, m] = b(!1), { onboardingFileSchema: g, isShowOnboarding: y } = Ge();
|
|
7835
7835
|
R(() => {
|
|
7836
7836
|
if (y) {
|
|
7837
7837
|
const { title: v, description: M } = Ze(
|
|
@@ -7956,7 +7956,7 @@ const md = (e, t) => e?.filter(
|
|
|
7956
7956
|
}, Id = (e, t, n, r) => t?.map((i) => {
|
|
7957
7957
|
const s = e?.find(
|
|
7958
7958
|
(h) => h?.urn === i?.urn
|
|
7959
|
-
), o = n?.get(i?.urn), u = o?.conceptSchemes || [], a = o?.codelists || [], d =
|
|
7959
|
+
), o = n?.get(i?.urn), u = o?.conceptSchemes || [], a = o?.codelists || [], d = Ve(o), l = [
|
|
7960
7960
|
...d?.dimensions || [],
|
|
7961
7961
|
...d?.timeDimensions || []
|
|
7962
7962
|
];
|
|
@@ -8003,8 +8003,8 @@ const md = (e, t) => e?.filter(
|
|
|
8003
8003
|
return {
|
|
8004
8004
|
id: s?.componentCode,
|
|
8005
8005
|
title: Se(u, i),
|
|
8006
|
-
valuesTitles: s?.operator ===
|
|
8007
|
-
`${
|
|
8006
|
+
valuesTitles: s?.operator === sn.BETWEEN ? [
|
|
8007
|
+
`${un(rn(s?.values?.[0]), i)} - ${un(rn(s?.values?.[1]), i)}`
|
|
8008
8008
|
] : s?.values?.map((d) => Se(
|
|
8009
8009
|
a?.codes?.find((l) => l?.id === d),
|
|
8010
8010
|
i
|
|
@@ -8039,15 +8039,15 @@ const md = (e, t) => e?.filter(
|
|
|
8039
8039
|
dataGridTitle: s,
|
|
8040
8040
|
titles: o
|
|
8041
8041
|
}) => {
|
|
8042
|
-
const u = be(null), [a, d] = b(""), [l, h] = b(""), [f, m] = b(!1), { onboardingFileSchema: g, isShowOnboarding: y } =
|
|
8043
|
-
(S, w = "") => i ? fd(S) ||
|
|
8042
|
+
const u = be(null), [a, d] = b(""), [l, h] = b(""), [f, m] = b(!1), { onboardingFileSchema: g, isShowOnboarding: y } = Ge(), p = I(
|
|
8043
|
+
(S, w = "") => i ? fd(S) || tn(S) ? /* @__PURE__ */ c(Ia, { className: w }) : at(S) || Mn(S) ? /* @__PURE__ */ c(La, { className: w }) : fr(S) ? /* @__PURE__ */ c(Rd, { className: w }) : Ta(S) || gr(S) ? /* @__PURE__ */ c(_d, { className: w }) : null : null,
|
|
8044
8044
|
[i]
|
|
8045
8045
|
), D = I(
|
|
8046
8046
|
(S) => at(S) ? s || "Data Grid" : S.title,
|
|
8047
8047
|
[s]
|
|
8048
8048
|
);
|
|
8049
8049
|
return R(() => {
|
|
8050
|
-
if (y &&
|
|
8050
|
+
if (y && tn(e)) {
|
|
8051
8051
|
const { title: S, description: w } = Ze(
|
|
8052
8052
|
Ce.CHARTS,
|
|
8053
8053
|
o
|
|
@@ -8055,7 +8055,7 @@ const md = (e, t) => e?.filter(
|
|
|
8055
8055
|
d(S), h(w);
|
|
8056
8056
|
}
|
|
8057
8057
|
}, [e, o, y]), R(() => {
|
|
8058
|
-
if (
|
|
8058
|
+
if (tn(e) && y) {
|
|
8059
8059
|
const S = g?.lastDisplayedElement === Ce.CHARTS;
|
|
8060
8060
|
m(S), S && u?.current?.scrollIntoView({
|
|
8061
8061
|
block: "end",
|
|
@@ -8115,7 +8115,7 @@ const md = (e, t) => e?.filter(
|
|
|
8115
8115
|
isTableSettingsOpen: h,
|
|
8116
8116
|
onTableSettingsOpen: f
|
|
8117
8117
|
}) => {
|
|
8118
|
-
const { isTableSettingsFeatureEnabled: m } = Le(), g = m && !l && !!f && !!(n && (at(n) ||
|
|
8118
|
+
const { isTableSettingsFeatureEnabled: m } = Le(), g = m && !l && !!f && !!(n && (at(n) || Mn(n)));
|
|
8119
8119
|
return /* @__PURE__ */ C("div", { className: "itms-center flex w-full min-w-0 justify-between", children: [
|
|
8120
8120
|
/* @__PURE__ */ c(
|
|
8121
8121
|
Fd,
|
|
@@ -8158,7 +8158,7 @@ const md = (e, t) => e?.filter(
|
|
|
8158
8158
|
iconBefore: r?.downloadIcon
|
|
8159
8159
|
}
|
|
8160
8160
|
),
|
|
8161
|
-
n &&
|
|
8161
|
+
n && gr(n) && /* @__PURE__ */ c(
|
|
8162
8162
|
Io,
|
|
8163
8163
|
{
|
|
8164
8164
|
title: r?.copyTitle,
|
|
@@ -8311,7 +8311,7 @@ const Ud = ({ attachment: e, className: t = "" }) => {
|
|
|
8311
8311
|
/* @__PURE__ */ C("div", { className: "single-chart-popup-content flex h-full min-h-0 flex-1 flex-row gap-4", children: [
|
|
8312
8312
|
/* @__PURE__ */ C("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
8313
8313
|
i && /* @__PURE__ */ C("div", { className: "mb-2 flex items-center gap-1", children: [
|
|
8314
|
-
/* @__PURE__ */ c(
|
|
8314
|
+
/* @__PURE__ */ c(ur, { className: "size-4 shrink-0 text-neutrals-1000" }),
|
|
8315
8315
|
/* @__PURE__ */ c("h4", { className: "text-neutrals-1000", children: i })
|
|
8316
8316
|
] }),
|
|
8317
8317
|
/* @__PURE__ */ c(
|
|
@@ -8329,8 +8329,8 @@ const Ud = ({ attachment: e, className: t = "" }) => {
|
|
|
8329
8329
|
]
|
|
8330
8330
|
}
|
|
8331
8331
|
) });
|
|
8332
|
-
},
|
|
8333
|
-
const [t, n] = b(!1), r = be(null), [i, s] = b(""), [o, u] = b(""), [a, d] = b(!1), { onboardingFileSchema: l, isShowOnboarding: h } =
|
|
8332
|
+
}, pr = (e) => {
|
|
8333
|
+
const [t, n] = b(!1), r = be(null), [i, s] = b(""), [o, u] = b(""), [a, d] = b(!1), { onboardingFileSchema: l, isShowOnboarding: h } = Ge(), { isCrossDatasetModeOn: f } = Le(), [m, g] = b(!1), y = I(() => {
|
|
8334
8334
|
n(!0);
|
|
8335
8335
|
}, []), p = I(() => {
|
|
8336
8336
|
n(!1), g(!0);
|
|
@@ -8382,7 +8382,7 @@ const Ud = ({ attachment: e, className: t = "" }) => {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
)
|
|
8384
8384
|
] });
|
|
8385
|
-
}, Ot = 32,
|
|
8385
|
+
}, Ot = 32, Nn = 32, Kd = 16, ct = "padding-0", Ct = 200, pt = { flex: 1, minWidth: Ct }, qd = Ot, Tn = "observationValueCell", An = "metadataCell", Ra = "chartCell", Pa = "mergedDimensionCell", Fa = "datasetDetailCell", kt = "Chart_column", Zd = (e, t, n, r, i, s) => ({
|
|
8386
8386
|
headerName: "",
|
|
8387
8387
|
suppressHeaderMenuButton: !0,
|
|
8388
8388
|
suppressNavigable: !0,
|
|
@@ -8392,7 +8392,7 @@ const Ud = ({ attachment: e, className: t = "" }) => {
|
|
|
8392
8392
|
width: 32,
|
|
8393
8393
|
maxWidth: 32,
|
|
8394
8394
|
cellClass: ct,
|
|
8395
|
-
cellRenderer:
|
|
8395
|
+
cellRenderer: An,
|
|
8396
8396
|
cellRendererParams: {
|
|
8397
8397
|
attributesData: t,
|
|
8398
8398
|
dataSetData: e,
|
|
@@ -8417,7 +8417,7 @@ function Va(e, t, n, r = qd, i, s) {
|
|
|
8417
8417
|
minWidth: r,
|
|
8418
8418
|
cellClass: ct,
|
|
8419
8419
|
suppressColumnsToolPanel: !0,
|
|
8420
|
-
cellRenderer:
|
|
8420
|
+
cellRenderer: pr,
|
|
8421
8421
|
cellRendererParams: {
|
|
8422
8422
|
attributesData: t,
|
|
8423
8423
|
dataSetData: e,
|
|
@@ -8438,11 +8438,11 @@ function Xd(e, t, n) {
|
|
|
8438
8438
|
width: 32,
|
|
8439
8439
|
maxWidth: 32,
|
|
8440
8440
|
cellClass: ct,
|
|
8441
|
-
cellRenderer:
|
|
8441
|
+
cellRenderer: An,
|
|
8442
8442
|
cellRendererParams: { structuresMap: e, locale: t, titles: n }
|
|
8443
8443
|
};
|
|
8444
8444
|
}
|
|
8445
|
-
const
|
|
8445
|
+
const tr = ["index", "value"], Qd = (e) => ({
|
|
8446
8446
|
columns: nu(e),
|
|
8447
8447
|
data: eu(e)
|
|
8448
8448
|
}), eu = (e) => {
|
|
@@ -8456,7 +8456,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8456
8456
|
};
|
|
8457
8457
|
}
|
|
8458
8458
|
return Object.values(n);
|
|
8459
|
-
}, tu = (e, t) => Object.keys(e).filter((n) => !
|
|
8459
|
+
}, tu = (e, t) => Object.keys(e).filter((n) => !tr.includes(n) && n !== t).map((n) => e[n]).join("."), nu = (e) => {
|
|
8460
8460
|
const { metadata: t, data: n } = e, r = t.time_column, i = t.pinned_columns || [], s = n.schema.fields, o = [], u = n.data.map((f) => f[r]), d = Array.from(new Set(u)).filter((f) => f != null).map(
|
|
8461
8461
|
(f) => ({
|
|
8462
8462
|
field: f,
|
|
@@ -8468,7 +8468,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8468
8468
|
), l = i.map((f) => s.find((m) => m.name === f)).filter((f) => f != null), h = s.filter((f) => !i.includes(f.name)).filter((f) => f != null);
|
|
8469
8469
|
if (l.length > 0)
|
|
8470
8470
|
for (const f of [...l])
|
|
8471
|
-
f.name === r ||
|
|
8471
|
+
f.name === r || tr.includes(f.name) || o.push({
|
|
8472
8472
|
colId: f.name,
|
|
8473
8473
|
field: f.name,
|
|
8474
8474
|
headerName: f.name,
|
|
@@ -8477,7 +8477,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8477
8477
|
tooltipValueGetter: (m) => m.value
|
|
8478
8478
|
});
|
|
8479
8479
|
for (const f of [...h])
|
|
8480
|
-
f.name === r ||
|
|
8480
|
+
f.name === r || tr.includes(f.name) || o.push({
|
|
8481
8481
|
colId: f.name,
|
|
8482
8482
|
field: f.name,
|
|
8483
8483
|
headerName: f.name,
|
|
@@ -8486,7 +8486,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8486
8486
|
tooltipValueGetter: (m) => m.value
|
|
8487
8487
|
});
|
|
8488
8488
|
return o.push(...d), o;
|
|
8489
|
-
},
|
|
8489
|
+
}, wr = (e) => e * Nn + Ot + Kd, ru = ({
|
|
8490
8490
|
attachment: e,
|
|
8491
8491
|
actions: t,
|
|
8492
8492
|
className: n = "",
|
|
@@ -8503,14 +8503,14 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8503
8503
|
u(y), d(g), s(!1);
|
|
8504
8504
|
}));
|
|
8505
8505
|
}, [e.url, t]), R(() => {
|
|
8506
|
-
o ? (h(
|
|
8506
|
+
o ? (h(wr(o.length)), r?.(o.length >= mt)) : r?.(!1);
|
|
8507
8507
|
}, [o, r]);
|
|
8508
8508
|
const f = j(
|
|
8509
8509
|
() => /* @__PURE__ */ c(
|
|
8510
|
-
|
|
8510
|
+
ar,
|
|
8511
8511
|
{
|
|
8512
8512
|
headerHeight: Ot,
|
|
8513
|
-
rowHeight:
|
|
8513
|
+
rowHeight: Nn,
|
|
8514
8514
|
rowData: o,
|
|
8515
8515
|
columnDefs: a,
|
|
8516
8516
|
enableCellTextSelection: !0,
|
|
@@ -8524,7 +8524,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8524
8524
|
),
|
|
8525
8525
|
[o, a]
|
|
8526
8526
|
);
|
|
8527
|
-
return i ? /* @__PURE__ */ c(
|
|
8527
|
+
return i ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ c("div", { className: `w-full ${n}`, children: /* @__PURE__ */ c(
|
|
8528
8528
|
"div",
|
|
8529
8529
|
{
|
|
8530
8530
|
className: "ag-theme-quartz max-h-[400px] min-h-[80px] w-full",
|
|
@@ -8599,7 +8599,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8599
8599
|
i ? "rotate-[180deg]" : ""
|
|
8600
8600
|
),
|
|
8601
8601
|
isBaseIconStyles: !1,
|
|
8602
|
-
icon: /* @__PURE__ */ c(
|
|
8602
|
+
icon: /* @__PURE__ */ c(lr, { width: 24, height: 24 }),
|
|
8603
8603
|
onClick: d
|
|
8604
8604
|
}
|
|
8605
8605
|
)
|
|
@@ -8643,7 +8643,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8643
8643
|
},
|
|
8644
8644
|
i?.id || i?.title
|
|
8645
8645
|
)) : /* @__PURE__ */ c("div", { className: "metadata-empty flex h-full items-center justify-center text-neutrals-700", children: n?.noMetadata || "No metadata" }) })
|
|
8646
|
-
] }),
|
|
8646
|
+
] }), vr = ({
|
|
8647
8647
|
metadata: e,
|
|
8648
8648
|
metadataDescription: t = [],
|
|
8649
8649
|
isOpenMetadata: n,
|
|
@@ -8696,7 +8696,7 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8696
8696
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
8697
8697
|
/* @__PURE__ */ c(zo, { className: "size-4 text-neutrals-700" }),
|
|
8698
8698
|
/* @__PURE__ */ c("p", { className: "h4 break-words text-neutrals-1000", children: i(e?.value) }),
|
|
8699
|
-
r && /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(
|
|
8699
|
+
r && /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(rr, { className: "size-4 shrink-0 cursor-pointer text-primary" }) })
|
|
8700
8700
|
] }),
|
|
8701
8701
|
t && /* @__PURE__ */ C("div", { className: "body-3 flex gap-1", children: [
|
|
8702
8702
|
/* @__PURE__ */ C("span", { className: "text-neutrals-800", children: [
|
|
@@ -8856,9 +8856,9 @@ const Xn = ["index", "value"], Qd = (e) => ({
|
|
|
8856
8856
|
value: t
|
|
8857
8857
|
} : void 0
|
|
8858
8858
|
}), za = (e, t, n) => ({
|
|
8859
|
-
title:
|
|
8859
|
+
title: vn(
|
|
8860
8860
|
e?.conceptSchemes,
|
|
8861
|
-
|
|
8861
|
+
Ve(e)?.timeDimensions?.[0],
|
|
8862
8862
|
t
|
|
8863
8863
|
),
|
|
8864
8864
|
value: n?.colId || ""
|
|
@@ -9044,7 +9044,7 @@ function Du({
|
|
|
9044
9044
|
);
|
|
9045
9045
|
}
|
|
9046
9046
|
const Wa = nt(null);
|
|
9047
|
-
function
|
|
9047
|
+
function gg({
|
|
9048
9048
|
children: e
|
|
9049
9049
|
}) {
|
|
9050
9050
|
const [t, n] = b(
|
|
@@ -9104,7 +9104,7 @@ function Ja({
|
|
|
9104
9104
|
}
|
|
9105
9105
|
);
|
|
9106
9106
|
}
|
|
9107
|
-
function
|
|
9107
|
+
function Gn(e) {
|
|
9108
9108
|
return (t = {}) => {
|
|
9109
9109
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
9110
9110
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -9180,11 +9180,11 @@ let Au = {};
|
|
|
9180
9180
|
function ku() {
|
|
9181
9181
|
return Au;
|
|
9182
9182
|
}
|
|
9183
|
-
function
|
|
9183
|
+
function Cr(e, t) {
|
|
9184
9184
|
return Ya(t || e, e);
|
|
9185
9185
|
}
|
|
9186
9186
|
function Ki(e, t) {
|
|
9187
|
-
const n = ku(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i =
|
|
9187
|
+
const n = ku(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = Cr(e, t?.in), s = i.getDay(), o = (s < r ? 7 : 0) + s - r;
|
|
9188
9188
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
9189
9189
|
}
|
|
9190
9190
|
function Ka(e, t, n) {
|
|
@@ -9391,19 +9391,19 @@ const Eu = (e, t) => t && t.addSuffix ? t.comparison && t.comparison > 0 ? "за
|
|
|
9391
9391
|
medium: "{{date}}, {{time}}",
|
|
9392
9392
|
short: "{{date}}, {{time}}"
|
|
9393
9393
|
}, Ru = {
|
|
9394
|
-
date:
|
|
9394
|
+
date: Gn({
|
|
9395
9395
|
formats: Lu,
|
|
9396
9396
|
defaultWidth: "full"
|
|
9397
9397
|
}),
|
|
9398
|
-
time:
|
|
9398
|
+
time: Gn({
|
|
9399
9399
|
formats: Ou,
|
|
9400
9400
|
defaultWidth: "full"
|
|
9401
9401
|
}),
|
|
9402
|
-
dateTime:
|
|
9402
|
+
dateTime: Gn({
|
|
9403
9403
|
formats: _u,
|
|
9404
9404
|
defaultWidth: "full"
|
|
9405
9405
|
})
|
|
9406
|
-
},
|
|
9406
|
+
}, br = [
|
|
9407
9407
|
"неділю",
|
|
9408
9408
|
"понеділок",
|
|
9409
9409
|
"вівторок",
|
|
@@ -9413,7 +9413,7 @@ const Eu = (e, t) => t && t.addSuffix ? t.comparison && t.comparison > 0 ? "за
|
|
|
9413
9413
|
"суботу"
|
|
9414
9414
|
];
|
|
9415
9415
|
function Pu(e) {
|
|
9416
|
-
const t =
|
|
9416
|
+
const t = br[e];
|
|
9417
9417
|
switch (e) {
|
|
9418
9418
|
case 0:
|
|
9419
9419
|
case 3:
|
|
@@ -9427,10 +9427,10 @@ function Pu(e) {
|
|
|
9427
9427
|
}
|
|
9428
9428
|
}
|
|
9429
9429
|
function qa(e) {
|
|
9430
|
-
return "'у " +
|
|
9430
|
+
return "'у " + br[e] + " о' p";
|
|
9431
9431
|
}
|
|
9432
9432
|
function Fu(e) {
|
|
9433
|
-
const t =
|
|
9433
|
+
const t = br[e];
|
|
9434
9434
|
switch (e) {
|
|
9435
9435
|
case 0:
|
|
9436
9436
|
case 3:
|
|
@@ -9444,10 +9444,10 @@ function Fu(e) {
|
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
9446
|
const Vu = (e, t, n) => {
|
|
9447
|
-
const r =
|
|
9447
|
+
const r = Cr(e), i = r.getDay();
|
|
9448
9448
|
return Ka(r, t, n) ? qa(i) : Pu(i);
|
|
9449
9449
|
}, Gu = (e, t, n) => {
|
|
9450
|
-
const r =
|
|
9450
|
+
const r = Cr(e), i = r.getDay();
|
|
9451
9451
|
return Ka(r, t, n) ? qa(i) : Fu(i);
|
|
9452
9452
|
}, Hu = {
|
|
9453
9453
|
lastWeek: Vu,
|
|
@@ -9758,14 +9758,14 @@ const Vu = (e, t, n) => {
|
|
|
9758
9758
|
t === qe.UK ? { locale: dh } : void 0
|
|
9759
9759
|
) : "";
|
|
9760
9760
|
}, Za = (e) => {
|
|
9761
|
-
const t = "grid-metadata-side-panel", [n, r] = b(!1), i = be(null), [s, o] = b(""), [u, a] = b(""), [d, l] = b(!1), { onboardingFileSchema: h, isShowOnboarding: f } =
|
|
9761
|
+
const t = "grid-metadata-side-panel", [n, r] = b(!1), i = be(null), [s, o] = b(""), [u, a] = b(""), [d, l] = b(!1), { onboardingFileSchema: h, isShowOnboarding: f } = Ge(), { isOpenedAdvancedView: m } = Re(), g = dt(), { isMetadataInSidePanel: y } = Le(), [p, D] = b(!1), S = e?.context?.externalLink, w = j(() => {
|
|
9762
9762
|
if (e.structuresMap) {
|
|
9763
9763
|
const N = e?.data?.dataset?.urn;
|
|
9764
9764
|
return N != null ? e.structuresMap.get(N) : void 0;
|
|
9765
9765
|
}
|
|
9766
9766
|
return e.dataSetData;
|
|
9767
9767
|
}, [e.structuresMap, e.data, e.dataSetData]), v = j(
|
|
9768
|
-
() =>
|
|
9768
|
+
() => bn(w),
|
|
9769
9769
|
[w]
|
|
9770
9770
|
), M = j(
|
|
9771
9771
|
() => [
|
|
@@ -9893,7 +9893,7 @@ const Vu = (e, t, n) => {
|
|
|
9893
9893
|
}
|
|
9894
9894
|
),
|
|
9895
9895
|
n && /* @__PURE__ */ c(
|
|
9896
|
-
|
|
9896
|
+
vr,
|
|
9897
9897
|
{
|
|
9898
9898
|
titles: e.titles,
|
|
9899
9899
|
locale: e?.locale,
|
|
@@ -9912,7 +9912,7 @@ const Vu = (e, t, n) => {
|
|
|
9912
9912
|
}
|
|
9913
9913
|
return e.dataSetData;
|
|
9914
9914
|
}, [e.structuresMap, e.data, e.dataSetData]), d = j(
|
|
9915
|
-
() =>
|
|
9915
|
+
() => bn(a),
|
|
9916
9916
|
[a]
|
|
9917
9917
|
), l = j(
|
|
9918
9918
|
() => Et(
|
|
@@ -10013,7 +10013,7 @@ const Vu = (e, t, n) => {
|
|
|
10013
10013
|
)
|
|
10014
10014
|
] }),
|
|
10015
10015
|
n && /* @__PURE__ */ c(
|
|
10016
|
-
|
|
10016
|
+
vr,
|
|
10017
10017
|
{
|
|
10018
10018
|
titles: e.titles,
|
|
10019
10019
|
locale: e?.locale,
|
|
@@ -10045,7 +10045,7 @@ const Vu = (e, t, n) => {
|
|
|
10045
10045
|
showLimitMessage: o,
|
|
10046
10046
|
onApiReady: u
|
|
10047
10047
|
}) => {
|
|
10048
|
-
const [a, d] = b(!1), [l, h] = b([]), [f, m] = b(), [g, y] = b(400), p = be(null), [D, S] = b(""), [w, v] = b(""), [M, T] = b(!1), { isShowOnboarding: x, onboardingFileSchema: k, setOnboardingFileSchema: F } =
|
|
10048
|
+
const [a, d] = b(!1), [l, h] = b([]), [f, m] = b(), [g, y] = b(400), p = be(null), [D, S] = b(""), [w, v] = b(""), [M, T] = b(!1), { isShowOnboarding: x, onboardingFileSchema: k, setOnboardingFileSchema: F } = Ge();
|
|
10049
10049
|
R(() => {
|
|
10050
10050
|
if (e.grid_data == null)
|
|
10051
10051
|
d(!0);
|
|
@@ -10054,7 +10054,7 @@ const Vu = (e, t, n) => {
|
|
|
10054
10054
|
h(e.grid_data.data), m(E), d(!1);
|
|
10055
10055
|
}
|
|
10056
10056
|
}, [e.grid_data, n]), R(() => {
|
|
10057
|
-
l ? (y(
|
|
10057
|
+
l ? (y(wr(l.length)), o?.(l.length >= mt)) : o?.(!1);
|
|
10058
10058
|
}, [l, o]), R(() => {
|
|
10059
10059
|
if (x) {
|
|
10060
10060
|
const { title: E, description: L } = Ze(
|
|
@@ -10095,11 +10095,11 @@ const Vu = (e, t, n) => {
|
|
|
10095
10095
|
[u]
|
|
10096
10096
|
), A = j(
|
|
10097
10097
|
() => /* @__PURE__ */ c(
|
|
10098
|
-
|
|
10098
|
+
ar,
|
|
10099
10099
|
{
|
|
10100
10100
|
onGridReady: N,
|
|
10101
10101
|
headerHeight: Ot,
|
|
10102
|
-
rowHeight:
|
|
10102
|
+
rowHeight: Nn,
|
|
10103
10103
|
rowData: l,
|
|
10104
10104
|
enableCellTextSelection: !0,
|
|
10105
10105
|
columnDefs: f,
|
|
@@ -10108,15 +10108,15 @@ const Vu = (e, t, n) => {
|
|
|
10108
10108
|
tooltipShowDelay: 0,
|
|
10109
10109
|
tooltipShowMode: "whenTruncated",
|
|
10110
10110
|
components: {
|
|
10111
|
-
[
|
|
10112
|
-
[
|
|
10113
|
-
[Ra]:
|
|
10111
|
+
[An]: Za,
|
|
10112
|
+
[Tn]: Xa,
|
|
10113
|
+
[Ra]: pr
|
|
10114
10114
|
}
|
|
10115
10115
|
}
|
|
10116
10116
|
),
|
|
10117
10117
|
[l, f, N, s]
|
|
10118
10118
|
);
|
|
10119
|
-
return a || t ? /* @__PURE__ */ c(
|
|
10119
|
+
return a || t ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ C("div", { className: "size-full", children: [
|
|
10120
10120
|
/* @__PURE__ */ c(
|
|
10121
10121
|
Qa,
|
|
10122
10122
|
{
|
|
@@ -10144,7 +10144,7 @@ const Vu = (e, t, n) => {
|
|
|
10144
10144
|
onPrev: i,
|
|
10145
10145
|
onNext: s
|
|
10146
10146
|
}) => {
|
|
10147
|
-
const o = be(null), [u, a] = b(""), [d, l] = b(""), [h, f] = b(!1), { onboardingFileSchema: m, isShowOnboarding: g } =
|
|
10147
|
+
const o = be(null), [u, a] = b(""), [d, l] = b(""), [h, f] = b(!1), { onboardingFileSchema: m, isShowOnboarding: g } = Ge();
|
|
10148
10148
|
R(() => {
|
|
10149
10149
|
if (g) {
|
|
10150
10150
|
const { title: S, description: w } = Ze(
|
|
@@ -10172,7 +10172,7 @@ const Vu = (e, t, n) => {
|
|
|
10172
10172
|
e === 0 ? "text-neutrals-700" : "text-primary"
|
|
10173
10173
|
),
|
|
10174
10174
|
onClick: i,
|
|
10175
|
-
children: n?.[
|
|
10175
|
+
children: n?.[qn.PREVIOUS]
|
|
10176
10176
|
}
|
|
10177
10177
|
),
|
|
10178
10178
|
/* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-1 pt-[20px]", children: [
|
|
@@ -10210,7 +10210,7 @@ const Vu = (e, t, n) => {
|
|
|
10210
10210
|
),
|
|
10211
10211
|
onClick: s,
|
|
10212
10212
|
ref: o,
|
|
10213
|
-
children: n?.[
|
|
10213
|
+
children: n?.[qn.NEXT]
|
|
10214
10214
|
}
|
|
10215
10215
|
),
|
|
10216
10216
|
h && /* @__PURE__ */ c(
|
|
@@ -10354,7 +10354,7 @@ const Ch = ({ option: e, style: t }) => {
|
|
|
10354
10354
|
}) => {
|
|
10355
10355
|
const [o, u] = b(!0), [a, d] = b([]), [l, h] = b(0), [f, m] = b(
|
|
10356
10356
|
void 0
|
|
10357
|
-
), [g, y] = b(), { onboardingFileSchema: p, isShowOnboarding: D, setOnboardingFileSchema: S } =
|
|
10357
|
+
), [g, y] = b(), { onboardingFileSchema: p, isShowOnboarding: D, setOnboardingFileSchema: S } = Ge(), w = be(null);
|
|
10358
10358
|
R(() => {
|
|
10359
10359
|
u(e.charting_data == null);
|
|
10360
10360
|
const T = e.charting_data?.groups ?? [], x = e.charting_data?.units ?? [];
|
|
@@ -10388,7 +10388,7 @@ const Ch = ({ option: e, style: t }) => {
|
|
|
10388
10388
|
}, [a.length]), M = I(() => {
|
|
10389
10389
|
h((T) => Math.max(T - 1, 0));
|
|
10390
10390
|
}, []);
|
|
10391
|
-
return o || n ? /* @__PURE__ */ c(
|
|
10391
|
+
return o || n ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ c("div", { className: "chart-attachment size-full", ref: w, children: e.charting_data && /* @__PURE__ */ c("div", { className: "flex size-full flex-col gap-4", children: a.length == 0 || f == null ? /* @__PURE__ */ c("h4", { className: "ml-1", children: s?.chartInfo || "No data" }) : /* @__PURE__ */ C(me, { children: [
|
|
10392
10392
|
/* @__PURE__ */ C("div", { className: "flex flex-col gap-1", children: [
|
|
10393
10393
|
/* @__PURE__ */ C("h3", { className: "chart-attachment-title", children: [
|
|
10394
10394
|
s?.chart || "Chart",
|
|
@@ -10410,7 +10410,7 @@ const Ch = ({ option: e, style: t }) => {
|
|
|
10410
10410
|
children: [
|
|
10411
10411
|
/* @__PURE__ */ C("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
10412
10412
|
g && /* @__PURE__ */ C("div", { className: "mb-1 flex items-center gap-1", children: [
|
|
10413
|
-
/* @__PURE__ */ c(
|
|
10413
|
+
/* @__PURE__ */ c(ur, { className: "size-4 shrink-0 text-neutrals-1000" }),
|
|
10414
10414
|
/* @__PURE__ */ c("h4", { className: "text-neutrals-1000", children: g })
|
|
10415
10415
|
] }),
|
|
10416
10416
|
/* @__PURE__ */ C("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col gap-4", children: [
|
|
@@ -10501,7 +10501,7 @@ function to({
|
|
|
10501
10501
|
function no() {
|
|
10502
10502
|
return $e(eo);
|
|
10503
10503
|
}
|
|
10504
|
-
const Dh = "Dataset", qi = "dataset_name", Sh = "Agency", Zi = "agency", Mh = "Country dimensions", Vt = "country_aggregated", Nh = "Indicator dimensions", Gt = "indicator_aggregated", Th = "Frequency",
|
|
10504
|
+
const Dh = "Dataset", qi = "dataset_name", Sh = "Agency", Zi = "agency", Mh = "Country dimensions", Vt = "country_aggregated", Nh = "Indicator dimensions", Gt = "indicator_aggregated", Th = "Frequency", kn = "frequency_aggregated", ro = ".";
|
|
10505
10505
|
function Xi(e) {
|
|
10506
10506
|
return {
|
|
10507
10507
|
columnState: e.getColumnState(),
|
|
@@ -10577,7 +10577,7 @@ function kh({
|
|
|
10577
10577
|
initialColumnsState: r
|
|
10578
10578
|
};
|
|
10579
10579
|
}
|
|
10580
|
-
const
|
|
10580
|
+
const yr = nt(
|
|
10581
10581
|
null
|
|
10582
10582
|
);
|
|
10583
10583
|
function Eh({
|
|
@@ -10642,18 +10642,18 @@ function Eh({
|
|
|
10642
10642
|
f
|
|
10643
10643
|
]
|
|
10644
10644
|
);
|
|
10645
|
-
return /* @__PURE__ */ c(
|
|
10645
|
+
return /* @__PURE__ */ c(yr.Provider, { value: g, children: i });
|
|
10646
10646
|
}
|
|
10647
|
-
function
|
|
10648
|
-
const e = $e(
|
|
10647
|
+
function Dr() {
|
|
10648
|
+
const e = $e(yr);
|
|
10649
10649
|
if (!e)
|
|
10650
10650
|
throw new Error(
|
|
10651
10651
|
"useTableSettingsContext must be used within TableSettingsProvider"
|
|
10652
10652
|
);
|
|
10653
10653
|
return e;
|
|
10654
10654
|
}
|
|
10655
|
-
const xh = () => $e(
|
|
10656
|
-
function
|
|
10655
|
+
const xh = () => $e(yr);
|
|
10656
|
+
function En(e, t, n) {
|
|
10657
10657
|
const r = As(e.conceptIdentity, t), i = fl(
|
|
10658
10658
|
r?.coreRepresentation?.enumeration,
|
|
10659
10659
|
n
|
|
@@ -10669,7 +10669,7 @@ function so(e, t, n) {
|
|
|
10669
10669
|
);
|
|
10670
10670
|
return n.originalData.parsedTimeSeriesValue[r];
|
|
10671
10671
|
}
|
|
10672
|
-
function
|
|
10672
|
+
function Sr(e, t, n, r, i) {
|
|
10673
10673
|
const s = so(e, t, r), o = n?.codes?.find((u) => u.id === s);
|
|
10674
10674
|
return Se(o, i);
|
|
10675
10675
|
}
|
|
@@ -10692,15 +10692,20 @@ function Ih(e, t, n, r) {
|
|
|
10692
10692
|
t,
|
|
10693
10693
|
n,
|
|
10694
10694
|
r
|
|
10695
|
+
),
|
|
10696
|
+
...Rh(
|
|
10697
|
+
e,
|
|
10698
|
+
t,
|
|
10699
|
+
n
|
|
10695
10700
|
)
|
|
10696
10701
|
];
|
|
10697
10702
|
}
|
|
10698
10703
|
function Lh(e, t, n, r) {
|
|
10699
10704
|
const i = (s) => {
|
|
10700
|
-
const { structures: o, urn: u, data: a } =
|
|
10701
|
-
return a == null || u == null || o == null || d == null ? "" :
|
|
10705
|
+
const { structures: o, urn: u, data: a } = In(s, e), d = t.get(u)?.region;
|
|
10706
|
+
return a == null || u == null || o == null || d == null ? "" : Ht(o, d, a, n);
|
|
10702
10707
|
};
|
|
10703
|
-
return
|
|
10708
|
+
return xn(
|
|
10704
10709
|
r?.countryDimensions || Mh,
|
|
10705
10710
|
Vt,
|
|
10706
10711
|
i,
|
|
@@ -10712,12 +10717,12 @@ function Lh(e, t, n, r) {
|
|
|
10712
10717
|
}
|
|
10713
10718
|
function Oh(e, t, n, r) {
|
|
10714
10719
|
const i = (s) => {
|
|
10715
|
-
const { structures: o, urn: u, data: a } =
|
|
10720
|
+
const { structures: o, urn: u, data: a } = In(s, e), d = t.get(u)?.indicators;
|
|
10716
10721
|
return a == null || u == null || o == null || d == null || d.length === 0 ? "" : d.map(
|
|
10717
|
-
(h) =>
|
|
10722
|
+
(h) => Ht(o, h, a, n) || ""
|
|
10718
10723
|
).join(ro);
|
|
10719
10724
|
};
|
|
10720
|
-
return
|
|
10725
|
+
return xn(
|
|
10721
10726
|
r?.indicatorDimensions || Nh,
|
|
10722
10727
|
Gt,
|
|
10723
10728
|
i,
|
|
@@ -10729,12 +10734,12 @@ function Oh(e, t, n, r) {
|
|
|
10729
10734
|
}
|
|
10730
10735
|
function _h(e, t, n, r) {
|
|
10731
10736
|
const i = (s) => {
|
|
10732
|
-
const { structures: o, urn: u, data: a } =
|
|
10733
|
-
return a == null || u == null || o == null || d == null ? "" :
|
|
10737
|
+
const { structures: o, urn: u, data: a } = In(s, e), d = t.get(u)?.frequency;
|
|
10738
|
+
return a == null || u == null || o == null || d == null ? "" : Ht(o, d, a, n);
|
|
10734
10739
|
};
|
|
10735
|
-
return
|
|
10740
|
+
return xn(
|
|
10736
10741
|
r?.frequency || Th,
|
|
10737
|
-
|
|
10742
|
+
kn,
|
|
10738
10743
|
i,
|
|
10739
10744
|
e,
|
|
10740
10745
|
t,
|
|
@@ -10742,7 +10747,46 @@ function _h(e, t, n, r) {
|
|
|
10742
10747
|
r
|
|
10743
10748
|
);
|
|
10744
10749
|
}
|
|
10745
|
-
function
|
|
10750
|
+
function Rh(e, t, n) {
|
|
10751
|
+
const r = /* @__PURE__ */ new Set();
|
|
10752
|
+
return t.forEach((i) => {
|
|
10753
|
+
i?.other?.forEach((s) => {
|
|
10754
|
+
r.add(s);
|
|
10755
|
+
});
|
|
10756
|
+
}), Array.from(r).map(
|
|
10757
|
+
(i) => Ph(
|
|
10758
|
+
i,
|
|
10759
|
+
e,
|
|
10760
|
+
t,
|
|
10761
|
+
n
|
|
10762
|
+
)
|
|
10763
|
+
);
|
|
10764
|
+
}
|
|
10765
|
+
function Ph(e, t, n, r) {
|
|
10766
|
+
const i = (s) => {
|
|
10767
|
+
const { structures: o, urn: u, data: a } = In(s, t), d = n.get(u)?.other ?? [];
|
|
10768
|
+
return a == null || u == null || o == null || !d.includes(e) ? "" : Ht(o, e, a, r);
|
|
10769
|
+
};
|
|
10770
|
+
return xn(
|
|
10771
|
+
Fh(e, t, r),
|
|
10772
|
+
e,
|
|
10773
|
+
i,
|
|
10774
|
+
t,
|
|
10775
|
+
n,
|
|
10776
|
+
r
|
|
10777
|
+
);
|
|
10778
|
+
}
|
|
10779
|
+
function Fh(e, t, n) {
|
|
10780
|
+
for (const r of t.values()) {
|
|
10781
|
+
if (!r)
|
|
10782
|
+
continue;
|
|
10783
|
+
const s = (Ve(r)?.dimensions || []).find((o) => o.id === e);
|
|
10784
|
+
if (s)
|
|
10785
|
+
return vn(r.conceptSchemes, s, n) ?? e;
|
|
10786
|
+
}
|
|
10787
|
+
return e;
|
|
10788
|
+
}
|
|
10789
|
+
function xn(e, t, n, r, i, s, o) {
|
|
10746
10790
|
return {
|
|
10747
10791
|
headerName: e,
|
|
10748
10792
|
field: t,
|
|
@@ -10761,7 +10805,7 @@ function Dr(e, t, n, r, i, s, o) {
|
|
|
10761
10805
|
}
|
|
10762
10806
|
};
|
|
10763
10807
|
}
|
|
10764
|
-
function
|
|
10808
|
+
function In(e, t) {
|
|
10765
10809
|
const { data: n } = e, r = n?.dataset?.urn, i = r == null ? void 0 : t.get(r);
|
|
10766
10810
|
return {
|
|
10767
10811
|
data: n,
|
|
@@ -10769,16 +10813,16 @@ function Sr(e, t) {
|
|
|
10769
10813
|
structures: i
|
|
10770
10814
|
};
|
|
10771
10815
|
}
|
|
10772
|
-
function
|
|
10773
|
-
const i = e.conceptSchemes || [], s = e.codelists || [], o =
|
|
10816
|
+
function Ht(e, t, n, r) {
|
|
10817
|
+
const i = e.conceptSchemes || [], s = e.codelists || [], o = Ve(e)?.dimensions || [], u = o.find((d) => d.id === t);
|
|
10774
10818
|
if (u == null)
|
|
10775
10819
|
return;
|
|
10776
|
-
const { codeList: a } =
|
|
10820
|
+
const { codeList: a } = En(
|
|
10777
10821
|
u,
|
|
10778
10822
|
i,
|
|
10779
10823
|
s
|
|
10780
10824
|
);
|
|
10781
|
-
return
|
|
10825
|
+
return Sr(
|
|
10782
10826
|
o,
|
|
10783
10827
|
t,
|
|
10784
10828
|
a,
|
|
@@ -10786,18 +10830,18 @@ function kn(e, t, n, r) {
|
|
|
10786
10830
|
r
|
|
10787
10831
|
);
|
|
10788
10832
|
}
|
|
10789
|
-
const
|
|
10790
|
-
function
|
|
10791
|
-
return `${e}${
|
|
10833
|
+
const mn = "::";
|
|
10834
|
+
function Vh(e, t) {
|
|
10835
|
+
return `${e}${mn}${t}`;
|
|
10792
10836
|
}
|
|
10793
10837
|
function es(e) {
|
|
10794
|
-
return e.includes(
|
|
10838
|
+
return e.includes(mn);
|
|
10795
10839
|
}
|
|
10796
|
-
function
|
|
10797
|
-
const t = e.indexOf(
|
|
10840
|
+
function Hn(e) {
|
|
10841
|
+
const t = e.indexOf(mn);
|
|
10798
10842
|
return {
|
|
10799
10843
|
urn: e.slice(0, t),
|
|
10800
|
-
dimensionKey: e.slice(t +
|
|
10844
|
+
dimensionKey: e.slice(t + mn.length)
|
|
10801
10845
|
};
|
|
10802
10846
|
}
|
|
10803
10847
|
function ao(e, t) {
|
|
@@ -10807,32 +10851,32 @@ function ao(e, t) {
|
|
|
10807
10851
|
...e.filter((r) => !t.order.includes(r))
|
|
10808
10852
|
]), t?.hidden.size && (n = n.filter((r) => !t.hidden.has(r))), n;
|
|
10809
10853
|
}
|
|
10810
|
-
const
|
|
10854
|
+
const Gh = /* @__PURE__ */ new Set([
|
|
10811
10855
|
Gt,
|
|
10812
10856
|
Vt,
|
|
10813
|
-
|
|
10857
|
+
kn
|
|
10814
10858
|
]);
|
|
10815
|
-
function
|
|
10859
|
+
function Hh(e, t, n) {
|
|
10816
10860
|
const r = n(t);
|
|
10817
|
-
return r ? e === Gt ? r.indicators : e === Vt ? r.region ? [r.region] : [] : e ===
|
|
10861
|
+
return r ? e === Gt ? r.indicators : e === Vt ? r.region ? [r.region] : [] : e === kn ? r.frequency ? [r.frequency] : [] : [] : [];
|
|
10818
10862
|
}
|
|
10819
|
-
function
|
|
10863
|
+
function zh(e, t, n) {
|
|
10820
10864
|
const r = e.getDimensionConfig(t, n);
|
|
10821
10865
|
if (r?.alias) return r.alias;
|
|
10822
|
-
const i = e.structuresMap.get(t), o = (i ?
|
|
10823
|
-
return
|
|
10866
|
+
const i = e.structuresMap.get(t), o = (i ? Ve(i)?.dimensions ?? [] : []).find((u) => u.id === n);
|
|
10867
|
+
return vn(
|
|
10824
10868
|
i?.conceptSchemes ?? [],
|
|
10825
10869
|
o,
|
|
10826
10870
|
e.locale
|
|
10827
10871
|
) ?? n;
|
|
10828
10872
|
}
|
|
10829
|
-
function
|
|
10873
|
+
function Bh(e) {
|
|
10830
10874
|
return (t) => {
|
|
10831
|
-
if (!
|
|
10875
|
+
if (!Gh.has(t.id))
|
|
10832
10876
|
return t;
|
|
10833
10877
|
const n = [];
|
|
10834
10878
|
for (const { urn: r } of e.dataQueries) {
|
|
10835
|
-
const i =
|
|
10879
|
+
const i = Hh(
|
|
10836
10880
|
t.id,
|
|
10837
10881
|
r,
|
|
10838
10882
|
e.getDimensionsScheme
|
|
@@ -10843,9 +10887,9 @@ function Gh(e) {
|
|
|
10843
10887
|
hidden: /* @__PURE__ */ new Set()
|
|
10844
10888
|
}) : i, u = o.length > 1, a = o.map(
|
|
10845
10889
|
(h) => ({
|
|
10846
|
-
id:
|
|
10890
|
+
id: Vh(r, h),
|
|
10847
10891
|
type: "item",
|
|
10848
|
-
label:
|
|
10892
|
+
label: zh(e, r, h),
|
|
10849
10893
|
isChecked: !s?.hidden.has(h),
|
|
10850
10894
|
draggable: u,
|
|
10851
10895
|
checkable: u
|
|
@@ -10862,12 +10906,12 @@ function Gh(e) {
|
|
|
10862
10906
|
};
|
|
10863
10907
|
}
|
|
10864
10908
|
function ts(e, t) {
|
|
10865
|
-
return e === Gt ? t.indicators ?? [] : e === Vt ? t.region ? [t.region] : [] : e ===
|
|
10909
|
+
return e === Gt ? t.indicators ?? [] : e === Vt ? t.region ? [t.region] : [] : e === kn ? t.frequency ? [t.frequency] : [] : t.other?.includes(e) ? [e] : [];
|
|
10866
10910
|
}
|
|
10867
|
-
function
|
|
10911
|
+
function Uh(e, t) {
|
|
10868
10912
|
return e === Gt ? t?.indicatorMetadataPanel || "Indicator dimension details" : e === Vt ? t?.countryMetadataPanel || "Country dimension details" : t?.metadata || "Metadata";
|
|
10869
10913
|
}
|
|
10870
|
-
const
|
|
10914
|
+
const jh = "merged-dimension-metadata-side-panel", Wh = (e) => {
|
|
10871
10915
|
const { isOpenedAdvancedView: t } = Re(), n = dt(), { isMetadataInSidePanel: r } = Le(), i = xh(), s = e?.data?.dataset?.urn, o = s != null ? e.structuresMap.get(s) : void 0, u = s != null ? e.datasetDimensionsSchemesMap.get(s) : void 0, a = i?.dimensionCustomization, d = j(() => {
|
|
10872
10916
|
if (!o || !u || s == null)
|
|
10873
10917
|
return e.valueFormatted ?? e.value;
|
|
@@ -10875,7 +10919,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10875
10919
|
return ao(
|
|
10876
10920
|
ts(e.colId, u),
|
|
10877
10921
|
g
|
|
10878
|
-
).map((D) =>
|
|
10922
|
+
).map((D) => Ht(o, D, e.data, e.locale)).filter(Boolean).join(ro);
|
|
10879
10923
|
}, [
|
|
10880
10924
|
a,
|
|
10881
10925
|
o,
|
|
@@ -10888,7 +10932,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10888
10932
|
e.locale
|
|
10889
10933
|
]), l = j(() => {
|
|
10890
10934
|
if (!o || !u) return [];
|
|
10891
|
-
const g = ts(e.colId, u), y =
|
|
10935
|
+
const g = ts(e.colId, u), y = bn(o), p = g.filter((D) => e.data[D] != null).map((D) => ({ name: D, value: String(e.data[D]) }));
|
|
10892
10936
|
return Et(
|
|
10893
10937
|
p,
|
|
10894
10938
|
y,
|
|
@@ -10909,9 +10953,9 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10909
10953
|
);
|
|
10910
10954
|
}, [o, e.locale, e.titles]), f = r && !!n && !!e.value, m = I(() => {
|
|
10911
10955
|
n && n.openPanel({
|
|
10912
|
-
id:
|
|
10956
|
+
id: jh,
|
|
10913
10957
|
scope: t ? "advanced" : "conversation",
|
|
10914
|
-
title:
|
|
10958
|
+
title: Uh(e.colId, e.titles),
|
|
10915
10959
|
bodyClassName: "overflow-hidden",
|
|
10916
10960
|
content: /* @__PURE__ */ c(
|
|
10917
10961
|
_t,
|
|
@@ -10943,7 +10987,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10943
10987
|
}
|
|
10944
10988
|
)
|
|
10945
10989
|
] });
|
|
10946
|
-
},
|
|
10990
|
+
}, $h = "dataset-detail-metadata-side-panel", Jh = (e) => {
|
|
10947
10991
|
const { isOpenedAdvancedView: t } = Re(), n = dt(), { isMetadataInSidePanel: r } = Le(), i = e?.data?.dataset?.urn, s = i != null ? e.structuresMap.get(i) : void 0, o = j(() => {
|
|
10948
10992
|
const d = s?.dataflows?.[0];
|
|
10949
10993
|
if (!d) return;
|
|
@@ -10959,7 +11003,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10959
11003
|
);
|
|
10960
11004
|
}, [s, e.locale, e.titles]), u = r && !!n && !!e.value, a = I(() => {
|
|
10961
11005
|
n && n.openPanel({
|
|
10962
|
-
id:
|
|
11006
|
+
id: $h,
|
|
10963
11007
|
scope: t ? "advanced" : "conversation",
|
|
10964
11008
|
title: e.titles?.datasetMetadataPanel || "Dataset Metadata",
|
|
10965
11009
|
bodyClassName: "overflow-hidden",
|
|
@@ -10991,7 +11035,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
10991
11035
|
}
|
|
10992
11036
|
)
|
|
10993
11037
|
] });
|
|
10994
|
-
},
|
|
11038
|
+
}, Yh = ({
|
|
10995
11039
|
attachment: e,
|
|
10996
11040
|
isDataLoading: t,
|
|
10997
11041
|
isChartColumnVisible: n,
|
|
@@ -11008,7 +11052,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11008
11052
|
d(e.gridContent.data), h(p), u(!1);
|
|
11009
11053
|
}
|
|
11010
11054
|
}, [e.gridContent, n]), R(() => {
|
|
11011
|
-
a ? (m(
|
|
11055
|
+
a ? (m(wr(a.length)), i?.(a.length >= mt)) : i?.(!1);
|
|
11012
11056
|
}, [a, i]);
|
|
11013
11057
|
const g = I(
|
|
11014
11058
|
(p) => {
|
|
@@ -11017,10 +11061,10 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11017
11061
|
[s]
|
|
11018
11062
|
), y = j(
|
|
11019
11063
|
() => /* @__PURE__ */ c(
|
|
11020
|
-
|
|
11064
|
+
ar,
|
|
11021
11065
|
{
|
|
11022
11066
|
headerHeight: Ot,
|
|
11023
|
-
rowHeight:
|
|
11067
|
+
rowHeight: Nn,
|
|
11024
11068
|
rowData: a,
|
|
11025
11069
|
enableCellTextSelection: !0,
|
|
11026
11070
|
columnDefs: l,
|
|
@@ -11028,19 +11072,19 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11028
11072
|
tooltipShowDelay: 0,
|
|
11029
11073
|
tooltipShowMode: "whenTruncated",
|
|
11030
11074
|
components: {
|
|
11031
|
-
[
|
|
11032
|
-
[
|
|
11033
|
-
[Pa]:
|
|
11034
|
-
[Ra]:
|
|
11035
|
-
[Fa]:
|
|
11075
|
+
[An]: Za,
|
|
11076
|
+
[Tn]: Xa,
|
|
11077
|
+
[Pa]: Wh,
|
|
11078
|
+
[Ra]: pr,
|
|
11079
|
+
[Fa]: Jh
|
|
11036
11080
|
},
|
|
11037
11081
|
onGridReady: g
|
|
11038
11082
|
}
|
|
11039
11083
|
),
|
|
11040
11084
|
[a, l, g]
|
|
11041
11085
|
);
|
|
11042
|
-
return o || t ? /* @__PURE__ */ c(
|
|
11043
|
-
},
|
|
11086
|
+
return o || t ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ c("div", { className: "size-full", children: /* @__PURE__ */ c(Qa, { fixHeight: r, gridHeight: f, children: y }) });
|
|
11087
|
+
}, Kh = ({
|
|
11044
11088
|
selectedAttachment: e,
|
|
11045
11089
|
actions: t,
|
|
11046
11090
|
attachmentsStyles: n,
|
|
@@ -11061,7 +11105,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11061
11105
|
attachment: e
|
|
11062
11106
|
}
|
|
11063
11107
|
),
|
|
11064
|
-
|
|
11108
|
+
mr(e) && /* @__PURE__ */ c(
|
|
11065
11109
|
ru,
|
|
11066
11110
|
{
|
|
11067
11111
|
actions: t,
|
|
@@ -11082,8 +11126,8 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11082
11126
|
externalLink: i
|
|
11083
11127
|
}
|
|
11084
11128
|
),
|
|
11085
|
-
|
|
11086
|
-
|
|
11129
|
+
Mn(e) && /* @__PURE__ */ c(
|
|
11130
|
+
Yh,
|
|
11087
11131
|
{
|
|
11088
11132
|
attachment: e,
|
|
11089
11133
|
isDataLoading: r,
|
|
@@ -11093,7 +11137,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11093
11137
|
onApiReady: a
|
|
11094
11138
|
}
|
|
11095
11139
|
),
|
|
11096
|
-
|
|
11140
|
+
tn(e) && /* @__PURE__ */ c(
|
|
11097
11141
|
bh,
|
|
11098
11142
|
{
|
|
11099
11143
|
titles: d,
|
|
@@ -11104,7 +11148,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11104
11148
|
fixHeight: !s
|
|
11105
11149
|
}
|
|
11106
11150
|
),
|
|
11107
|
-
|
|
11151
|
+
fr(e) && /* @__PURE__ */ c(
|
|
11108
11152
|
Jd,
|
|
11109
11153
|
{
|
|
11110
11154
|
attachment: e,
|
|
@@ -11112,7 +11156,7 @@ const zh = "merged-dimension-metadata-side-panel", Bh = (e) => {
|
|
|
11112
11156
|
}
|
|
11113
11157
|
),
|
|
11114
11158
|
Ta(e) && /* @__PURE__ */ c(Ud, { attachment: e }),
|
|
11115
|
-
|
|
11159
|
+
gr(e) && /* @__PURE__ */ c(
|
|
11116
11160
|
yh,
|
|
11117
11161
|
{
|
|
11118
11162
|
attachment: e,
|
|
@@ -11153,7 +11197,7 @@ const oo = ({
|
|
|
11153
11197
|
const [N, A] = b(0), [E, L] = b(null), { isOpenedAdvancedView: P, setIsOpenedAdvancedView: O } = Re(), [_, z] = b(ae.Closed), [B, Y] = b(!1), [ne, Z] = b(), [J, oe] = b(), [fe, $] = b(!1), X = {
|
|
11154
11198
|
downloadDataSet: t.downloadDataSet,
|
|
11155
11199
|
getConstraints: t.getConstraints
|
|
11156
|
-
}, ee =
|
|
11200
|
+
}, ee = cn.DATA_IN_TABLE, se = (xe) => {
|
|
11157
11201
|
A(xe);
|
|
11158
11202
|
}, de = I(() => {
|
|
11159
11203
|
w?.(), O(!0), t.updateCurrentDataQuery(a || d?.[0]), t.updateDataQueries(d), t.updateDatasets(h);
|
|
@@ -11172,7 +11216,7 @@ const oo = ({
|
|
|
11172
11216
|
g && (h == null || h?.length == 0)
|
|
11173
11217
|
);
|
|
11174
11218
|
}, [h, g]), R(() => {
|
|
11175
|
-
T && E && !at(E) && !
|
|
11219
|
+
T && E && !at(E) && !Mn(E) && k?.();
|
|
11176
11220
|
}, [T, E, k]);
|
|
11177
11221
|
const ye = I(() => {
|
|
11178
11222
|
z(ae.Closed);
|
|
@@ -11197,7 +11241,7 @@ const oo = ({
|
|
|
11197
11241
|
"flex flex-col pb-1"
|
|
11198
11242
|
),
|
|
11199
11243
|
children: [
|
|
11200
|
-
!P && B ? /* @__PURE__ */ c(
|
|
11244
|
+
!P && B ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ C(me, { children: [
|
|
11201
11245
|
s && !P && /* @__PURE__ */ c(
|
|
11202
11246
|
bd,
|
|
11203
11247
|
{
|
|
@@ -11226,7 +11270,7 @@ const oo = ({
|
|
|
11226
11270
|
hs,
|
|
11227
11271
|
{
|
|
11228
11272
|
limitMessages: v,
|
|
11229
|
-
showAdvancedViewButton: !!E &&
|
|
11273
|
+
showAdvancedViewButton: !!E && mr(E) && u,
|
|
11230
11274
|
onAdvancedViewClick: de,
|
|
11231
11275
|
query: we
|
|
11232
11276
|
}
|
|
@@ -11258,7 +11302,7 @@ const oo = ({
|
|
|
11258
11302
|
}
|
|
11259
11303
|
),
|
|
11260
11304
|
E != null && /* @__PURE__ */ c(
|
|
11261
|
-
|
|
11305
|
+
Kh,
|
|
11262
11306
|
{
|
|
11263
11307
|
selectedAttachment: E,
|
|
11264
11308
|
actions: t,
|
|
@@ -11312,23 +11356,23 @@ const oo = ({
|
|
|
11312
11356
|
]
|
|
11313
11357
|
}
|
|
11314
11358
|
) });
|
|
11315
|
-
},
|
|
11316
|
-
function
|
|
11359
|
+
}, qh = ({ label: e, colDef: t }) => !!e.trim() && !t.suppressColumnsToolPanel;
|
|
11360
|
+
function Zh(e) {
|
|
11317
11361
|
return e.colId ?? e.field ?? null;
|
|
11318
11362
|
}
|
|
11319
|
-
function
|
|
11363
|
+
function Xh(e) {
|
|
11320
11364
|
return String(e.headerName ?? e.field ?? e.colId ?? "").trim();
|
|
11321
11365
|
}
|
|
11322
|
-
function
|
|
11366
|
+
function Qh(e) {
|
|
11323
11367
|
return new Map(e.getColumnState().map((t) => [t.colId, t]));
|
|
11324
11368
|
}
|
|
11325
|
-
function
|
|
11326
|
-
const n = e.getColumnDefs() ?? [], r =
|
|
11369
|
+
function ef(e, t) {
|
|
11370
|
+
const n = e.getColumnDefs() ?? [], r = Qh(e), i = [];
|
|
11327
11371
|
for (const u of n) {
|
|
11328
|
-
const a =
|
|
11372
|
+
const a = Zh(u);
|
|
11329
11373
|
if (!a)
|
|
11330
11374
|
continue;
|
|
11331
|
-
const d =
|
|
11375
|
+
const d = Xh(u);
|
|
11332
11376
|
if (!t({ colId: a, label: d, colDef: u }))
|
|
11333
11377
|
continue;
|
|
11334
11378
|
const l = r.get(a);
|
|
@@ -11347,11 +11391,11 @@ function Zh(e, t) {
|
|
|
11347
11391
|
return d - l;
|
|
11348
11392
|
});
|
|
11349
11393
|
}
|
|
11350
|
-
function
|
|
11394
|
+
function tf(e, t, n) {
|
|
11351
11395
|
const r = [...t];
|
|
11352
11396
|
return e.map((i) => n.has(i) ? r.shift() ?? i : i);
|
|
11353
11397
|
}
|
|
11354
|
-
function
|
|
11398
|
+
function zn(e, t) {
|
|
11355
11399
|
let n = e, r;
|
|
11356
11400
|
for (const i of t) {
|
|
11357
11401
|
if (r = n.find((s) => s.id === i), !r)
|
|
@@ -11360,11 +11404,11 @@ function Vn(e, t) {
|
|
|
11360
11404
|
}
|
|
11361
11405
|
return r?.type === "item" ? r : void 0;
|
|
11362
11406
|
}
|
|
11363
|
-
function
|
|
11407
|
+
function nr(e, t) {
|
|
11364
11408
|
const n = [];
|
|
11365
11409
|
for (const r of e) {
|
|
11366
11410
|
if (r.type === "group") {
|
|
11367
|
-
n.push(...
|
|
11411
|
+
n.push(...nr(r.items, t));
|
|
11368
11412
|
continue;
|
|
11369
11413
|
}
|
|
11370
11414
|
if (t?.(r)) {
|
|
@@ -11372,17 +11416,17 @@ function Qn(e, t) {
|
|
|
11372
11416
|
continue;
|
|
11373
11417
|
}
|
|
11374
11418
|
if (r.items?.length) {
|
|
11375
|
-
n.push(...
|
|
11419
|
+
n.push(...nr(r.items, t));
|
|
11376
11420
|
continue;
|
|
11377
11421
|
}
|
|
11378
11422
|
n.push(r.id);
|
|
11379
11423
|
}
|
|
11380
11424
|
return n;
|
|
11381
11425
|
}
|
|
11382
|
-
function
|
|
11426
|
+
function nf({
|
|
11383
11427
|
api: e,
|
|
11384
11428
|
searchQuery: t,
|
|
11385
|
-
includeColumn: n =
|
|
11429
|
+
includeColumn: n = qh,
|
|
11386
11430
|
enrichItem: r,
|
|
11387
11431
|
onSubItemOrderChange: i,
|
|
11388
11432
|
onSubItemVisibilityChange: s
|
|
@@ -11391,7 +11435,7 @@ function Qh({
|
|
|
11391
11435
|
u((w) => w + 1);
|
|
11392
11436
|
}, []);
|
|
11393
11437
|
io(e, l);
|
|
11394
|
-
const h = j(() => !e || !e.getColumnState() ? [] :
|
|
11438
|
+
const h = j(() => !e || !e.getColumnState() ? [] : ef(e, n), [e, n, o]), f = j(() => (r ? h.map((v) => v.type === "item" ? r(v) : v) : h).map(
|
|
11395
11439
|
(v) => v.type === "item" && v.items?.length ? { ...v, isExpanded: !a.has(v.id) } : v
|
|
11396
11440
|
), [h, r, a]), m = j(
|
|
11397
11441
|
() => new Set(h.map((w) => w.id)),
|
|
@@ -11401,11 +11445,11 @@ function Qh({
|
|
|
11401
11445
|
if (!e)
|
|
11402
11446
|
return;
|
|
11403
11447
|
if (es(w.itemId) && s) {
|
|
11404
|
-
const { urn: M, dimensionKey: T } =
|
|
11448
|
+
const { urn: M, dimensionKey: T } = Hn(w.itemId), x = w.path[0];
|
|
11405
11449
|
s(M, x, T, !w.nextChecked);
|
|
11406
11450
|
return;
|
|
11407
11451
|
}
|
|
11408
|
-
const v =
|
|
11452
|
+
const v = zn(f, w.path);
|
|
11409
11453
|
!v || !m.has(v.id) || (e.applyColumnState({
|
|
11410
11454
|
state: [{ colId: v.id, hide: !w.nextChecked }]
|
|
11411
11455
|
}), l());
|
|
@@ -11416,7 +11460,7 @@ function Qh({
|
|
|
11416
11460
|
if (!e)
|
|
11417
11461
|
return;
|
|
11418
11462
|
if (es(w.itemId) && s) {
|
|
11419
|
-
const { urn: x, dimensionKey: k } =
|
|
11463
|
+
const { urn: x, dimensionKey: k } = Hn(w.itemId), F = w.path[0], N = zn(f, w.path);
|
|
11420
11464
|
N?.type === "item" && s(
|
|
11421
11465
|
x,
|
|
11422
11466
|
F,
|
|
@@ -11425,7 +11469,7 @@ function Qh({
|
|
|
11425
11469
|
);
|
|
11426
11470
|
return;
|
|
11427
11471
|
}
|
|
11428
|
-
const v =
|
|
11472
|
+
const v = zn(f, w.path);
|
|
11429
11473
|
if (!v || !m.has(v.id))
|
|
11430
11474
|
return;
|
|
11431
11475
|
const T = !(e.getColumnState().find((x) => x.colId === v.id)?.hide ?? !1);
|
|
@@ -11444,10 +11488,10 @@ function Qh({
|
|
|
11444
11488
|
(w) => {
|
|
11445
11489
|
if (!e)
|
|
11446
11490
|
return;
|
|
11447
|
-
const v = e.getColumnState().map((k) => k.colId), M = new Set(h.map((k) => k.id)), T =
|
|
11491
|
+
const v = e.getColumnState().map((k) => k.colId), M = new Set(h.map((k) => k.id)), T = nr(
|
|
11448
11492
|
w,
|
|
11449
11493
|
(k) => m.has(k.id)
|
|
11450
|
-
), x =
|
|
11494
|
+
), x = tf(
|
|
11451
11495
|
v,
|
|
11452
11496
|
T,
|
|
11453
11497
|
M
|
|
@@ -11465,7 +11509,7 @@ function Qh({
|
|
|
11465
11509
|
);
|
|
11466
11510
|
if (N.length <= 1) continue;
|
|
11467
11511
|
const A = F.id, E = N.map(
|
|
11468
|
-
(L) =>
|
|
11512
|
+
(L) => Hn(L.id).dimensionKey
|
|
11469
11513
|
);
|
|
11470
11514
|
i(A, k.id, E);
|
|
11471
11515
|
}
|
|
@@ -11482,7 +11526,7 @@ function Qh({
|
|
|
11482
11526
|
handleItemsChange: S
|
|
11483
11527
|
};
|
|
11484
11528
|
}
|
|
11485
|
-
function
|
|
11529
|
+
function rf({
|
|
11486
11530
|
api: e,
|
|
11487
11531
|
includeColumn: t,
|
|
11488
11532
|
enrichItem: n,
|
|
@@ -11506,7 +11550,7 @@ function ef({
|
|
|
11506
11550
|
handleToggleChecked: f,
|
|
11507
11551
|
handleToggleExpanded: m,
|
|
11508
11552
|
handleItemClick: g
|
|
11509
|
-
} =
|
|
11553
|
+
} = nf({
|
|
11510
11554
|
api: e,
|
|
11511
11555
|
includeColumn: t,
|
|
11512
11556
|
searchQuery: s,
|
|
@@ -11516,7 +11560,7 @@ function ef({
|
|
|
11516
11560
|
});
|
|
11517
11561
|
return /* @__PURE__ */ C("div", { className: "flex min-h-0 flex-1 flex-col gap-2 px-5 py-7", children: [
|
|
11518
11562
|
/* @__PURE__ */ c(
|
|
11519
|
-
|
|
11563
|
+
gn,
|
|
11520
11564
|
{
|
|
11521
11565
|
inputId: "columns-search-input",
|
|
11522
11566
|
containerClasses: "items-center filters-search-input gap-1 !p-2",
|
|
@@ -11540,8 +11584,8 @@ function ef({
|
|
|
11540
11584
|
) })
|
|
11541
11585
|
] });
|
|
11542
11586
|
}
|
|
11543
|
-
const
|
|
11544
|
-
map:
|
|
11587
|
+
const sf = {}, af = {
|
|
11588
|
+
map: sf,
|
|
11545
11589
|
getDimensionsMetadata: () => {
|
|
11546
11590
|
},
|
|
11547
11591
|
getDimensionMetadata: () => {
|
|
@@ -11554,9 +11598,9 @@ const tf = {}, nf = {
|
|
|
11554
11598
|
getDimensionsScheme: () => {
|
|
11555
11599
|
}
|
|
11556
11600
|
}, Mr = nt(
|
|
11557
|
-
|
|
11601
|
+
af
|
|
11558
11602
|
);
|
|
11559
|
-
function
|
|
11603
|
+
function pg({
|
|
11560
11604
|
map: e,
|
|
11561
11605
|
children: t
|
|
11562
11606
|
}) {
|
|
@@ -11594,16 +11638,16 @@ function fg({
|
|
|
11594
11638
|
}, [e]);
|
|
11595
11639
|
return /* @__PURE__ */ c(Mr.Provider, { value: n, children: t });
|
|
11596
11640
|
}
|
|
11597
|
-
function
|
|
11641
|
+
function of() {
|
|
11598
11642
|
return $e(Mr);
|
|
11599
11643
|
}
|
|
11600
|
-
function
|
|
11644
|
+
function lf() {
|
|
11601
11645
|
return $e(Mr);
|
|
11602
11646
|
}
|
|
11603
|
-
const ns = "table-settings-side-panel",
|
|
11647
|
+
const ns = "table-settings-side-panel", cf = ({
|
|
11604
11648
|
resetTitle: e
|
|
11605
11649
|
}) => {
|
|
11606
|
-
const { gridApi: t, initialColumnsState: n, resetDimensionCustomization: r } =
|
|
11650
|
+
const { gridApi: t, initialColumnsState: n, resetDimensionCustomization: r } = Dr(), i = I(() => {
|
|
11607
11651
|
t && (Ah(t, n), r());
|
|
11608
11652
|
}, [t, n, r]);
|
|
11609
11653
|
return /* @__PURE__ */ C(
|
|
@@ -11618,7 +11662,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11618
11662
|
]
|
|
11619
11663
|
}
|
|
11620
11664
|
);
|
|
11621
|
-
},
|
|
11665
|
+
}, df = () => {
|
|
11622
11666
|
const {
|
|
11623
11667
|
gridApi: e,
|
|
11624
11668
|
structuresMap: t,
|
|
@@ -11627,9 +11671,9 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11627
11671
|
dimensionCustomization: i,
|
|
11628
11672
|
setDimensionKeyOrder: s,
|
|
11629
11673
|
setDimensionKeyHidden: o
|
|
11630
|
-
} =
|
|
11674
|
+
} = Dr(), u = lf(), a = j(() => {
|
|
11631
11675
|
if (!(!u || !t || !n || !r?.length))
|
|
11632
|
-
return
|
|
11676
|
+
return Bh({
|
|
11633
11677
|
dataQueries: r,
|
|
11634
11678
|
structuresMap: t,
|
|
11635
11679
|
getDimensionsScheme: u.getDimensionsScheme,
|
|
@@ -11645,7 +11689,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11645
11689
|
i
|
|
11646
11690
|
]);
|
|
11647
11691
|
return e ? /* @__PURE__ */ c(
|
|
11648
|
-
|
|
11692
|
+
rf,
|
|
11649
11693
|
{
|
|
11650
11694
|
api: e,
|
|
11651
11695
|
enrichItem: a,
|
|
@@ -11653,23 +11697,23 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11653
11697
|
onSubItemVisibilityChange: o
|
|
11654
11698
|
}
|
|
11655
11699
|
) : null;
|
|
11656
|
-
},
|
|
11700
|
+
}, uf = ({
|
|
11657
11701
|
attachmentsStyles: e,
|
|
11658
11702
|
...t
|
|
11659
11703
|
}) => {
|
|
11660
|
-
const { onGridApiReady: n } =
|
|
11704
|
+
const { onGridApiReady: n } = Dr(), r = dt(), i = I(() => {
|
|
11661
11705
|
r && r.openPanel({
|
|
11662
11706
|
id: ns,
|
|
11663
11707
|
scope: "advanced",
|
|
11664
11708
|
title: e?.columnsTitle || "Columns",
|
|
11665
11709
|
headerClassName: "border-b border-neutrals-500",
|
|
11666
11710
|
headerExtension: /* @__PURE__ */ c(
|
|
11667
|
-
|
|
11711
|
+
cf,
|
|
11668
11712
|
{
|
|
11669
11713
|
resetTitle: e?.columnsResetTitle
|
|
11670
11714
|
}
|
|
11671
11715
|
),
|
|
11672
|
-
content: /* @__PURE__ */ c(
|
|
11716
|
+
content: /* @__PURE__ */ c(df, {})
|
|
11673
11717
|
});
|
|
11674
11718
|
}, [
|
|
11675
11719
|
e?.columnsResetTitle,
|
|
@@ -11687,7 +11731,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11687
11731
|
onGridApiReady: n
|
|
11688
11732
|
}
|
|
11689
11733
|
);
|
|
11690
|
-
},
|
|
11734
|
+
}, hf = ({
|
|
11691
11735
|
actions: e,
|
|
11692
11736
|
structureDataMaps: t,
|
|
11693
11737
|
buttonProps: n,
|
|
@@ -11717,8 +11761,8 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11717
11761
|
const Q = K ? w.map(
|
|
11718
11762
|
(q) => Fe(q, K) ? K : q
|
|
11719
11763
|
) : w;
|
|
11720
|
-
Y(!0), v(
|
|
11721
|
-
K?.isTimeDimension ?
|
|
11764
|
+
Y(!0), v(fn(Q)), z?.(!0), fe(
|
|
11765
|
+
K?.isTimeDimension ? hn(Q, K) : Q,
|
|
11722
11766
|
v,
|
|
11723
11767
|
z
|
|
11724
11768
|
);
|
|
@@ -11728,11 +11772,11 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11728
11772
|
}, [D]);
|
|
11729
11773
|
const fe = I(
|
|
11730
11774
|
(K, Q, q) => {
|
|
11731
|
-
const ve =
|
|
11775
|
+
const ve = Fn(K);
|
|
11732
11776
|
Promise.all(Fi(i, ve, e)).then((U) => {
|
|
11733
11777
|
const ue = Vi(U);
|
|
11734
11778
|
L.current = ue, q?.(!1), Q(
|
|
11735
|
-
|
|
11779
|
+
Yt(
|
|
11736
11780
|
ve,
|
|
11737
11781
|
{ ...t, constraintsMap: ue },
|
|
11738
11782
|
o
|
|
@@ -11741,7 +11785,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11741
11785
|
}).catch(() => {
|
|
11742
11786
|
const U = /* @__PURE__ */ new Map();
|
|
11743
11787
|
L.current = U, q?.(!1), Q(
|
|
11744
|
-
|
|
11788
|
+
Yt(
|
|
11745
11789
|
ve,
|
|
11746
11790
|
{ ...t, constraintsMap: U },
|
|
11747
11791
|
o
|
|
@@ -11778,10 +11822,10 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11778
11822
|
o,
|
|
11779
11823
|
t
|
|
11780
11824
|
]), R(() => {
|
|
11781
|
-
M?.length && N(
|
|
11825
|
+
M?.length && N(Sn(M));
|
|
11782
11826
|
}, [M]), R(() => {
|
|
11783
11827
|
v(
|
|
11784
|
-
(K) =>
|
|
11828
|
+
(K) => hn(K, x)
|
|
11785
11829
|
);
|
|
11786
11830
|
}, [x]), R(() => {
|
|
11787
11831
|
D === ae.Opened && (E(void 0), k({ ...M?.[0], isSelectedFilter: !0 }), v(M)), D === ae.Closed && k(void 0);
|
|
@@ -11835,7 +11879,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11835
11879
|
[i, t?.dimensionsMap]
|
|
11836
11880
|
), se = I(
|
|
11837
11881
|
(K, Q) => {
|
|
11838
|
-
const q =
|
|
11882
|
+
const q = Yt(
|
|
11839
11883
|
K,
|
|
11840
11884
|
Q,
|
|
11841
11885
|
o
|
|
@@ -11849,8 +11893,8 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11849
11893
|
[o]
|
|
11850
11894
|
), de = I(
|
|
11851
11895
|
(K, Q) => {
|
|
11852
|
-
Y(!0), v(
|
|
11853
|
-
const q =
|
|
11896
|
+
Y(!0), v(fn(K));
|
|
11897
|
+
const q = Fn(K);
|
|
11854
11898
|
Promise.all(Fi(Q, q, e)).then((ve) => {
|
|
11855
11899
|
se(q, {
|
|
11856
11900
|
...t,
|
|
@@ -11878,10 +11922,10 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11878
11922
|
const K = aa(w);
|
|
11879
11923
|
de(K, i);
|
|
11880
11924
|
}, [de, w, i]), xe = I(() => {
|
|
11881
|
-
const K =
|
|
11925
|
+
const K = Fn(
|
|
11882
11926
|
w,
|
|
11883
11927
|
L.current
|
|
11884
|
-
), Q =
|
|
11928
|
+
), Q = Yt(
|
|
11885
11929
|
K,
|
|
11886
11930
|
{
|
|
11887
11931
|
...t,
|
|
@@ -11912,7 +11956,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11912
11956
|
Ma,
|
|
11913
11957
|
{
|
|
11914
11958
|
buttonProps: n,
|
|
11915
|
-
selectedFiltersCount:
|
|
11959
|
+
selectedFiltersCount: cr(
|
|
11916
11960
|
F
|
|
11917
11961
|
),
|
|
11918
11962
|
isLoading: _,
|
|
@@ -11972,7 +12016,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11972
12016
|
}
|
|
11973
12017
|
) })
|
|
11974
12018
|
] });
|
|
11975
|
-
},
|
|
12019
|
+
}, ff = ({
|
|
11976
12020
|
filtersProps: e,
|
|
11977
12021
|
actions: t,
|
|
11978
12022
|
attachments: n,
|
|
@@ -11998,7 +12042,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
11998
12042
|
/* @__PURE__ */ C("div", { className: "data-details-header flex items-center justify-between", children: [
|
|
11999
12043
|
/* @__PURE__ */ c("h2", { children: l?.content ?? "Content" }),
|
|
12000
12044
|
p ? /* @__PURE__ */ c(
|
|
12001
|
-
|
|
12045
|
+
hf,
|
|
12002
12046
|
{
|
|
12003
12047
|
attachmentsDataQuery: r,
|
|
12004
12048
|
dataQueries: i,
|
|
@@ -12028,7 +12072,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12028
12072
|
)
|
|
12029
12073
|
] }),
|
|
12030
12074
|
/* @__PURE__ */ c("div", { className: "advanced-view-attachments-container min-h-0 flex-1", children: /* @__PURE__ */ c(
|
|
12031
|
-
|
|
12075
|
+
uf,
|
|
12032
12076
|
{
|
|
12033
12077
|
titles: l,
|
|
12034
12078
|
attachments: n,
|
|
@@ -12046,7 +12090,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12046
12090
|
}
|
|
12047
12091
|
) })
|
|
12048
12092
|
] }) });
|
|
12049
|
-
},
|
|
12093
|
+
}, mf = ({
|
|
12050
12094
|
isShowAgency: e,
|
|
12051
12095
|
isShowDatasetBadge: t,
|
|
12052
12096
|
dataset: n,
|
|
@@ -12065,7 +12109,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12065
12109
|
infoSegmentHeaderClassName: y,
|
|
12066
12110
|
nameAndMetadataContainerClassName: p
|
|
12067
12111
|
}) => {
|
|
12068
|
-
const D = "dataset-metadata-side-panel", [S, w] = b(""), [v, M] = b(!1), T = be(null), [x, k] = b(""), [F, N] = b(""), [A, E] = b(!1), { onboardingFileSchema: L, isShowOnboarding: P } =
|
|
12112
|
+
const D = "dataset-metadata-side-panel", [S, w] = b(""), [v, M] = b(!1), T = be(null), [x, k] = b(""), [F, N] = b(""), [A, E] = b(!1), { onboardingFileSchema: L, isShowOnboarding: P } = Ge(), { isOpenedAdvancedView: O } = Re(), _ = dt(), { isMetadataInSidePanel: z } = Le(), [B, Y] = b(!1), ne = j(
|
|
12069
12113
|
() => s?.isMetadataDescription ? hu(n, S, o, u) : [],
|
|
12070
12114
|
[
|
|
12071
12115
|
n,
|
|
@@ -12079,7 +12123,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12079
12123
|
...s?.isMetadataDescription ? [] : [Rt(n, o, u)],
|
|
12080
12124
|
...mu(
|
|
12081
12125
|
fu(r),
|
|
12082
|
-
|
|
12126
|
+
bn(i),
|
|
12083
12127
|
o
|
|
12084
12128
|
)
|
|
12085
12129
|
],
|
|
@@ -12205,7 +12249,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12205
12249
|
]
|
|
12206
12250
|
}
|
|
12207
12251
|
),
|
|
12208
|
-
d && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: h || /* @__PURE__ */ c(
|
|
12252
|
+
d && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: h || /* @__PURE__ */ c(rr, { className: "size-4 shrink-0 cursor-pointer text-primary" }) })
|
|
12209
12253
|
] }),
|
|
12210
12254
|
/* @__PURE__ */ C("div", { className: "body-3 flex items-center gap-2", children: [
|
|
12211
12255
|
e && /* @__PURE__ */ C(me, { children: [
|
|
@@ -12238,7 +12282,7 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12238
12282
|
}
|
|
12239
12283
|
),
|
|
12240
12284
|
v && /* @__PURE__ */ c(
|
|
12241
|
-
|
|
12285
|
+
vr,
|
|
12242
12286
|
{
|
|
12243
12287
|
titles: u,
|
|
12244
12288
|
locale: o,
|
|
@@ -12249,13 +12293,13 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12249
12293
|
}
|
|
12250
12294
|
)
|
|
12251
12295
|
] });
|
|
12252
|
-
},
|
|
12296
|
+
}, gf = ({
|
|
12253
12297
|
titles: e,
|
|
12254
12298
|
locale: t,
|
|
12255
12299
|
isShowShare: n,
|
|
12256
12300
|
shareConversationProps: r
|
|
12257
12301
|
}) => {
|
|
12258
|
-
const { setIsOpenedAdvancedView: i } = Re(), s = be(null), [o, u] = b(""), [a, d] = b(""), [l, h] = b(!1), { onboardingFileSchema: f, isShowOnboarding: m } =
|
|
12302
|
+
const { setIsOpenedAdvancedView: i } = Re(), s = be(null), [o, u] = b(""), [a, d] = b(""), [l, h] = b(!1), { onboardingFileSchema: f, isShowOnboarding: m } = Ge();
|
|
12259
12303
|
return R(() => {
|
|
12260
12304
|
if (m) {
|
|
12261
12305
|
const { title: g, description: y } = Ze(
|
|
@@ -12319,11 +12363,11 @@ const ns = "table-settings-side-panel", af = ({
|
|
|
12319
12363
|
}
|
|
12320
12364
|
);
|
|
12321
12365
|
};
|
|
12322
|
-
function
|
|
12323
|
-
const d =
|
|
12366
|
+
function pf(e, t, n, r, i, s, o, u, a) {
|
|
12367
|
+
const d = wf(e, n), l = a?.startPeriod && a.endPeriod ? ml(
|
|
12324
12368
|
u,
|
|
12325
12369
|
a
|
|
12326
|
-
) : [], h =
|
|
12370
|
+
) : [], h = vf(
|
|
12327
12371
|
e,
|
|
12328
12372
|
t,
|
|
12329
12373
|
n,
|
|
@@ -12346,16 +12390,16 @@ function ff(e, t, n, r, i, s, o, u, a) {
|
|
|
12346
12390
|
Va(e, t?.data, n, void 0, s, o)
|
|
12347
12391
|
];
|
|
12348
12392
|
}
|
|
12349
|
-
function
|
|
12350
|
-
const n = e.conceptSchemes || [], r = e.codelists || [], i =
|
|
12393
|
+
function wf(e, t) {
|
|
12394
|
+
const n = e.conceptSchemes || [], r = e.codelists || [], i = Ve(e)?.dimensions || [];
|
|
12351
12395
|
return i.map((s) => {
|
|
12352
|
-
const { codeList: o, concept: u } =
|
|
12396
|
+
const { codeList: o, concept: u } = En(
|
|
12353
12397
|
s,
|
|
12354
12398
|
n,
|
|
12355
12399
|
r
|
|
12356
12400
|
), a = (d) => {
|
|
12357
12401
|
const { data: l, colDef: h } = d, f = h.field;
|
|
12358
|
-
return
|
|
12402
|
+
return Sr(
|
|
12359
12403
|
i,
|
|
12360
12404
|
f,
|
|
12361
12405
|
o,
|
|
@@ -12373,11 +12417,11 @@ function mf(e, t) {
|
|
|
12373
12417
|
};
|
|
12374
12418
|
});
|
|
12375
12419
|
}
|
|
12376
|
-
function
|
|
12377
|
-
const u =
|
|
12378
|
-
return
|
|
12420
|
+
function vf(e, t, n, r, i, s, o) {
|
|
12421
|
+
const u = yf(o, yn(t));
|
|
12422
|
+
return bf(
|
|
12379
12423
|
u,
|
|
12380
|
-
(d, l) =>
|
|
12424
|
+
(d, l) => Cf(
|
|
12381
12425
|
d,
|
|
12382
12426
|
l || d,
|
|
12383
12427
|
r,
|
|
@@ -12389,7 +12433,7 @@ function gf(e, t, n, r, i, s, o) {
|
|
|
12389
12433
|
s
|
|
12390
12434
|
);
|
|
12391
12435
|
}
|
|
12392
|
-
const
|
|
12436
|
+
const Cf = (e, t, n = Ds, r) => ({
|
|
12393
12437
|
headerName: ea(t, r),
|
|
12394
12438
|
colId: e,
|
|
12395
12439
|
field: e,
|
|
@@ -12399,16 +12443,16 @@ const pf = (e, t, n = Ds, r) => ({
|
|
|
12399
12443
|
width: Ct,
|
|
12400
12444
|
cellClass: ["justify-end", "cell-with-meta"],
|
|
12401
12445
|
valueFormatter: (i) => Ss(i.value, n)
|
|
12402
|
-
}),
|
|
12446
|
+
}), bf = (e, t, n, r, i, s) => {
|
|
12403
12447
|
const o = [];
|
|
12404
|
-
return e.sort((a, d) =>
|
|
12448
|
+
return e.sort((a, d) => Dn(a, d)).forEach((a) => {
|
|
12405
12449
|
o.push({
|
|
12406
12450
|
headerName: a.toString(),
|
|
12407
12451
|
field: a.toString(),
|
|
12408
12452
|
...t(a.toString()),
|
|
12409
12453
|
valueGetter: (d) => d.data[d.column.getColId()]?.value?.[0]?.value || null,
|
|
12410
12454
|
cellClass: ct,
|
|
12411
|
-
cellRenderer:
|
|
12455
|
+
cellRenderer: Tn,
|
|
12412
12456
|
width: Ct,
|
|
12413
12457
|
cellRendererParams: {
|
|
12414
12458
|
dataSetData: n,
|
|
@@ -12418,25 +12462,25 @@ const pf = (e, t, n = Ds, r) => ({
|
|
|
12418
12462
|
}
|
|
12419
12463
|
});
|
|
12420
12464
|
}), o;
|
|
12421
|
-
},
|
|
12465
|
+
}, yf = (e = [], t = []) => {
|
|
12422
12466
|
if (!e.length)
|
|
12423
12467
|
return t;
|
|
12424
12468
|
if (!t.length)
|
|
12425
12469
|
return e;
|
|
12426
|
-
const n = t.some((d) =>
|
|
12470
|
+
const n = t.some((d) => Jn(d)), r = t.some((d) => Si(d)), i = t.some((d) => on(d)), s = t.some((d) => ln(d)), o = t.some((d) => Mi(d)), u = t.some((d) => Ni(d)), a = e.filter((d) => Jn(d) ? n : Si(d) ? r : on(d) ? i : ln(d) ? s : Mi(d) ? o : Ni(d) ? u : !0);
|
|
12427
12471
|
return Array.from(/* @__PURE__ */ new Set([...a, ...t]));
|
|
12428
12472
|
};
|
|
12429
|
-
function
|
|
12473
|
+
function Df(e, t, n) {
|
|
12430
12474
|
const r = t.map((s) => s.id).filter((s) => s != null), i = n.map((s) => s.id).filter((s) => s != null);
|
|
12431
|
-
return
|
|
12475
|
+
return Sf(
|
|
12432
12476
|
e,
|
|
12433
12477
|
r,
|
|
12434
12478
|
i,
|
|
12435
12479
|
r
|
|
12436
12480
|
);
|
|
12437
12481
|
}
|
|
12438
|
-
const
|
|
12439
|
-
const i =
|
|
12482
|
+
const Sf = (e, t, n, r) => {
|
|
12483
|
+
const i = Nf(e, t), s = {};
|
|
12440
12484
|
for (const o of i) {
|
|
12441
12485
|
const u = o.rowTime, a = lo(u, r);
|
|
12442
12486
|
if (s[a] == null) {
|
|
@@ -12451,17 +12495,17 @@ const bf = (e, t, n, r) => {
|
|
|
12451
12495
|
...s[a],
|
|
12452
12496
|
id: a,
|
|
12453
12497
|
originalData: o.originalData,
|
|
12454
|
-
...
|
|
12498
|
+
...Mf(u, n)
|
|
12455
12499
|
};
|
|
12456
12500
|
}
|
|
12457
12501
|
return Object.values(s);
|
|
12458
|
-
}, lo = (e, t) => t.map((n) => e[n]).join("_"),
|
|
12502
|
+
}, lo = (e, t) => t.map((n) => e[n]).join("_"), Mf = (e, t) => {
|
|
12459
12503
|
const n = lo(e, t), { OBS_VALUE: r, obsAttributes: i } = e, s = {};
|
|
12460
12504
|
return s[n] = {
|
|
12461
12505
|
value: r,
|
|
12462
12506
|
obsAttributes: i
|
|
12463
12507
|
}, s;
|
|
12464
|
-
},
|
|
12508
|
+
}, Nf = (e, t) => {
|
|
12465
12509
|
const n = [];
|
|
12466
12510
|
for (const r of e) {
|
|
12467
12511
|
const i = {}, s = r.name.split(".");
|
|
@@ -12479,7 +12523,7 @@ const bf = (e, t, n, r) => {
|
|
|
12479
12523
|
r.values.forEach((o) => {
|
|
12480
12524
|
const u = { ...i };
|
|
12481
12525
|
u.TIME_PERIOD = o.dimensionAtObservation;
|
|
12482
|
-
const a =
|
|
12526
|
+
const a = Tf(r, o);
|
|
12483
12527
|
u.OBS_VALUE = a, u.obsAttributes = o?.obsAttributes?.filter(({ value: d }) => d) || [], n.push({
|
|
12484
12528
|
rowTime: u,
|
|
12485
12529
|
attributes: r.attributes,
|
|
@@ -12489,13 +12533,13 @@ const bf = (e, t, n, r) => {
|
|
|
12489
12533
|
});
|
|
12490
12534
|
}
|
|
12491
12535
|
return n;
|
|
12492
|
-
},
|
|
12536
|
+
}, Tf = (e, t) => {
|
|
12493
12537
|
const r = [...e.attributes, ...t.obsAttributes].find(
|
|
12494
12538
|
({ name: i }) => i === "OBS_VALUE"
|
|
12495
12539
|
);
|
|
12496
12540
|
return r ? [r] : t.values;
|
|
12497
|
-
},
|
|
12498
|
-
function
|
|
12541
|
+
}, Af = "#EEEEEE", kf = "#777777";
|
|
12542
|
+
function Ef(e, t, n) {
|
|
12499
12543
|
const r = {
|
|
12500
12544
|
animation: !1,
|
|
12501
12545
|
tooltip: {
|
|
@@ -12531,7 +12575,7 @@ function Tf(e, t, n) {
|
|
|
12531
12575
|
};
|
|
12532
12576
|
return n?.colors != null && (r.color = n.colors), r;
|
|
12533
12577
|
}
|
|
12534
|
-
function rs(e =
|
|
12578
|
+
function rs(e = Af, t = kf) {
|
|
12535
12579
|
return {
|
|
12536
12580
|
splitLine: {
|
|
12537
12581
|
show: !0,
|
|
@@ -12555,15 +12599,15 @@ function rs(e = Mf, t = Nf) {
|
|
|
12555
12599
|
}
|
|
12556
12600
|
function co(e, t, n, r) {
|
|
12557
12601
|
return t.map((s) => {
|
|
12558
|
-
const o =
|
|
12602
|
+
const o = Ve(n)?.dimensions || [], u = o?.find((d) => d.id === s);
|
|
12559
12603
|
if (u == null)
|
|
12560
12604
|
return e[s] || "";
|
|
12561
|
-
const { codeList: a } =
|
|
12605
|
+
const { codeList: a } = En(
|
|
12562
12606
|
u,
|
|
12563
12607
|
n.conceptSchemes || [],
|
|
12564
12608
|
n.codelists || []
|
|
12565
12609
|
);
|
|
12566
|
-
return
|
|
12610
|
+
return Sr(
|
|
12567
12611
|
o,
|
|
12568
12612
|
s,
|
|
12569
12613
|
a,
|
|
@@ -12572,31 +12616,31 @@ function co(e, t, n, r) {
|
|
|
12572
12616
|
);
|
|
12573
12617
|
}).join(" - ");
|
|
12574
12618
|
}
|
|
12575
|
-
function
|
|
12619
|
+
function xf(e, t) {
|
|
12576
12620
|
const n = [
|
|
12577
12621
|
...t?.metadata?.indicatorDimensions || []
|
|
12578
|
-
].filter((s) => s != null), i =
|
|
12622
|
+
].filter((s) => s != null), i = Ve(e)?.dimensions?.filter(
|
|
12579
12623
|
(s) => s.id != null && !n.includes(s.id) && t?.metadata?.countryDimension !== s.id
|
|
12580
12624
|
).map((s) => s.id).filter((s) => s != null) || [];
|
|
12581
12625
|
return [...n, ...i];
|
|
12582
12626
|
}
|
|
12583
|
-
function
|
|
12627
|
+
function If(e, t, n) {
|
|
12584
12628
|
const r = {};
|
|
12585
12629
|
return e.forEach((i) => {
|
|
12586
|
-
const s =
|
|
12630
|
+
const s = Lf(i, t, n);
|
|
12587
12631
|
r[s] || (r[s] = {
|
|
12588
12632
|
rows: []
|
|
12589
12633
|
}), r[s].rows.push(i);
|
|
12590
12634
|
}), Object.keys(r).map((i) => r[i]);
|
|
12591
12635
|
}
|
|
12592
|
-
function
|
|
12636
|
+
function Lf(e, t, n) {
|
|
12593
12637
|
const r = n.dataStructures?.[0]?.dataStructureComponents?.dimensionList?.dimensions || [];
|
|
12594
12638
|
return t.map((s) => r?.find((u) => u.id === s) == null ? e[s] || "" : so(r, s, e)).join(" - ");
|
|
12595
12639
|
}
|
|
12596
|
-
function
|
|
12640
|
+
function Of(e, t) {
|
|
12597
12641
|
const n = {};
|
|
12598
12642
|
return e.forEach(
|
|
12599
|
-
(r) => n[r] =
|
|
12643
|
+
(r) => n[r] = _f(
|
|
12600
12644
|
r,
|
|
12601
12645
|
t
|
|
12602
12646
|
)
|
|
@@ -12606,29 +12650,29 @@ function xf(e, t) {
|
|
|
12606
12650
|
)
|
|
12607
12651
|
};
|
|
12608
12652
|
}
|
|
12609
|
-
function
|
|
12610
|
-
const n = t.map((i) =>
|
|
12653
|
+
function _f(e, t) {
|
|
12654
|
+
const n = t.map((i) => Rf(e, i));
|
|
12611
12655
|
return new Set(n).size === 1;
|
|
12612
12656
|
}
|
|
12613
|
-
function
|
|
12657
|
+
function Rf(e, t) {
|
|
12614
12658
|
return t[e];
|
|
12615
12659
|
}
|
|
12616
|
-
const
|
|
12660
|
+
const Pf = "line", Kt = 10;
|
|
12617
12661
|
function uo(e, t, n, r, i) {
|
|
12618
|
-
const s = Nr(t, e, n, r, i), u =
|
|
12662
|
+
const s = Nr(t, e, n, r, i), u = yn(t).sort((h, f) => Dn(h, f)), a = xf(
|
|
12619
12663
|
e,
|
|
12620
12664
|
n
|
|
12621
|
-
), { nonUniqDimensions: d } =
|
|
12665
|
+
), { nonUniqDimensions: d } = Of(
|
|
12622
12666
|
a,
|
|
12623
12667
|
s
|
|
12624
12668
|
);
|
|
12625
12669
|
return {
|
|
12626
|
-
units:
|
|
12670
|
+
units: If(s, d, e).map(
|
|
12627
12671
|
(h) => ho(h, e, n, u, r, i)
|
|
12628
12672
|
)
|
|
12629
12673
|
};
|
|
12630
12674
|
}
|
|
12631
|
-
function
|
|
12675
|
+
function Ff(e, t, n, r, i, s) {
|
|
12632
12676
|
return ho(
|
|
12633
12677
|
{ rows: [e] },
|
|
12634
12678
|
n,
|
|
@@ -12639,10 +12683,10 @@ function _f(e, t, n, r, i, s) {
|
|
|
12639
12683
|
);
|
|
12640
12684
|
}
|
|
12641
12685
|
function ho(e, t, n, r, i, s) {
|
|
12642
|
-
const o =
|
|
12686
|
+
const o = Hf(e.rows, t, i), u = o?.find(
|
|
12643
12687
|
(d) => gl.includes(d?.id)
|
|
12644
|
-
)?.id, a =
|
|
12645
|
-
e.rows.length >
|
|
12688
|
+
)?.id, a = Vf(
|
|
12689
|
+
e.rows.length > Kt ? e.rows.slice(0, Kt) : e.rows,
|
|
12646
12690
|
t,
|
|
12647
12691
|
n,
|
|
12648
12692
|
i,
|
|
@@ -12654,9 +12698,9 @@ function ho(e, t, n, r, i, s) {
|
|
|
12654
12698
|
);
|
|
12655
12699
|
return {
|
|
12656
12700
|
rows: e.rows,
|
|
12657
|
-
limitedByRowsAmountTo: e.rows.length >
|
|
12701
|
+
limitedByRowsAmountTo: e.rows.length > Kt ? Kt : void 0,
|
|
12658
12702
|
dimensions: o,
|
|
12659
|
-
config:
|
|
12703
|
+
config: Ef(
|
|
12660
12704
|
is(
|
|
12661
12705
|
r,
|
|
12662
12706
|
e?.rows?.[0],
|
|
@@ -12670,16 +12714,16 @@ function ho(e, t, n, r, i, s) {
|
|
|
12670
12714
|
function is(e, t, n) {
|
|
12671
12715
|
if (n) {
|
|
12672
12716
|
const r = t?.[n];
|
|
12673
|
-
if (r ===
|
|
12717
|
+
if (r === Pn.MONTHLY)
|
|
12718
|
+
return e?.filter((i) => ln(i));
|
|
12719
|
+
if (r === Pn.QUARTERLY)
|
|
12674
12720
|
return e?.filter((i) => on(i));
|
|
12675
|
-
if (r ===
|
|
12676
|
-
return e?.filter((i) =>
|
|
12677
|
-
if (r === On.ANNUAL)
|
|
12678
|
-
return e?.filter((i) => jn(i));
|
|
12721
|
+
if (r === Pn.ANNUAL)
|
|
12722
|
+
return e?.filter((i) => Jn(i));
|
|
12679
12723
|
}
|
|
12680
12724
|
return e;
|
|
12681
12725
|
}
|
|
12682
|
-
function
|
|
12726
|
+
function Vf(e, t, n, r, i) {
|
|
12683
12727
|
return e.map((s) => ({
|
|
12684
12728
|
name: n?.metadata?.countryDimension == null ? "" : co(
|
|
12685
12729
|
s,
|
|
@@ -12687,30 +12731,30 @@ function Rf(e, t, n, r, i) {
|
|
|
12687
12731
|
t,
|
|
12688
12732
|
r
|
|
12689
12733
|
),
|
|
12690
|
-
type:
|
|
12691
|
-
data: i.map((o) =>
|
|
12734
|
+
type: Pf,
|
|
12735
|
+
data: i.map((o) => Gf(o, s))
|
|
12692
12736
|
}));
|
|
12693
12737
|
}
|
|
12694
|
-
function
|
|
12738
|
+
function Gf(e, t) {
|
|
12695
12739
|
return t[e]?.value?.[0]?.value || null;
|
|
12696
12740
|
}
|
|
12697
|
-
function
|
|
12698
|
-
return (
|
|
12741
|
+
function Hf(e, t, n) {
|
|
12742
|
+
return (Ve(t)?.dimensions || []).map((r) => {
|
|
12699
12743
|
if (r.id != null)
|
|
12700
12744
|
return {
|
|
12701
12745
|
id: r.id,
|
|
12702
|
-
title:
|
|
12746
|
+
title: zf(r, t, n),
|
|
12703
12747
|
value: co(e[0], [r.id], t, n)
|
|
12704
12748
|
};
|
|
12705
12749
|
}).filter((r) => r != null);
|
|
12706
12750
|
}
|
|
12707
|
-
function
|
|
12708
|
-
const r = t.conceptSchemes || [], i = t.codelists || [], { concept: s } =
|
|
12751
|
+
function zf(e, t, n) {
|
|
12752
|
+
const r = t.conceptSchemes || [], i = t.codelists || [], { concept: s } = En(e, r, i);
|
|
12709
12753
|
return Se(s, n) || e.id;
|
|
12710
12754
|
}
|
|
12711
12755
|
function Nr(e, t, n, r, i) {
|
|
12712
|
-
const s = e == null ? [] : pl(e), o =
|
|
12713
|
-
return
|
|
12756
|
+
const s = e == null ? [] : pl(e), o = Ve(t)?.dimensions || [], u = Ve(t)?.timeDimensions || [], a = Df(s, o, u);
|
|
12757
|
+
return Bf(
|
|
12714
12758
|
a,
|
|
12715
12759
|
e,
|
|
12716
12760
|
t,
|
|
@@ -12719,11 +12763,11 @@ function Nr(e, t, n, r, i) {
|
|
|
12719
12763
|
i
|
|
12720
12764
|
);
|
|
12721
12765
|
}
|
|
12722
|
-
function
|
|
12723
|
-
const u =
|
|
12766
|
+
function Bf(e, t, n, r, i, s) {
|
|
12767
|
+
const u = yn(t).sort((a, d) => Dn(a, d));
|
|
12724
12768
|
return e.map((a) => ({
|
|
12725
12769
|
...a,
|
|
12726
|
-
[kt]:
|
|
12770
|
+
[kt]: Ff(
|
|
12727
12771
|
a,
|
|
12728
12772
|
u,
|
|
12729
12773
|
n,
|
|
@@ -12733,9 +12777,9 @@ function Gf(e, t, n, r, i, s) {
|
|
|
12733
12777
|
)
|
|
12734
12778
|
}));
|
|
12735
12779
|
}
|
|
12736
|
-
function
|
|
12780
|
+
function Uf(e, t, n, r, i, s, o, u, a, d, l) {
|
|
12737
12781
|
return {
|
|
12738
|
-
columns:
|
|
12782
|
+
columns: pf(
|
|
12739
12783
|
e,
|
|
12740
12784
|
t,
|
|
12741
12785
|
r,
|
|
@@ -12749,8 +12793,8 @@ function Hf(e, t, n, r, i, s, o, u, a, d, l) {
|
|
|
12749
12793
|
data: Nr(t, e, n, r, o)
|
|
12750
12794
|
};
|
|
12751
12795
|
}
|
|
12752
|
-
function
|
|
12753
|
-
const h = e.dataflows?.[0]?.names?.[r], f =
|
|
12796
|
+
function jf(e, t, n, r, i, s, o, u, a, d, l) {
|
|
12797
|
+
const h = e.dataflows?.[0]?.names?.[r], f = Uf(
|
|
12754
12798
|
e,
|
|
12755
12799
|
t,
|
|
12756
12800
|
n,
|
|
@@ -12768,7 +12812,7 @@ function zf(e, t, n, r, i, s, o, u, a, d, l) {
|
|
|
12768
12812
|
grid_data: f
|
|
12769
12813
|
};
|
|
12770
12814
|
}
|
|
12771
|
-
function
|
|
12815
|
+
function Wf(e) {
|
|
12772
12816
|
const t = e.replace(/\r\n/g, `
|
|
12773
12817
|
`);
|
|
12774
12818
|
if (!t.startsWith("```"))
|
|
@@ -12791,31 +12835,31 @@ function Bf(e) {
|
|
|
12791
12835
|
language: i
|
|
12792
12836
|
};
|
|
12793
12837
|
}
|
|
12794
|
-
const
|
|
12838
|
+
const $f = ["python"];
|
|
12795
12839
|
function fo(e, t, n) {
|
|
12796
12840
|
return e.filter((r) => r.type === Ie.MARKDOWN).filter((r) => !t || r.title?.includes(t)).map((r) => {
|
|
12797
|
-
const i =
|
|
12841
|
+
const i = Wf(r.data ?? "");
|
|
12798
12842
|
return {
|
|
12799
12843
|
title: n ?? "Code samples",
|
|
12800
12844
|
type: Ie.CUSTOM_CODE_SAMPLE,
|
|
12801
12845
|
language: i.language,
|
|
12802
12846
|
data: i.code
|
|
12803
12847
|
};
|
|
12804
|
-
}).filter((r) =>
|
|
12848
|
+
}).filter((r) => $f.includes(r.language ?? ""));
|
|
12805
12849
|
}
|
|
12806
|
-
const
|
|
12807
|
-
title: e ||
|
|
12850
|
+
const Jf = "Data Grid", Yf = "Data", Kf = "Chart", qf = (e) => ({
|
|
12851
|
+
title: e || Jf,
|
|
12808
12852
|
type: Ie.CUSTOM_DATA_GRID
|
|
12809
12853
|
}), mo = (e) => ({
|
|
12810
|
-
title: e ||
|
|
12854
|
+
title: e || Kf,
|
|
12811
12855
|
type: Ie.CUSTOM_CHART
|
|
12812
|
-
}),
|
|
12813
|
-
title: e ||
|
|
12856
|
+
}), Zf = (e) => ({
|
|
12857
|
+
title: e || Yf,
|
|
12814
12858
|
type: Ie.CROSS_DATASET_GRID
|
|
12815
12859
|
});
|
|
12816
12860
|
function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
12817
12861
|
const [l, h] = b(), [f, m] = b(), [g, y] = b(), [p, D] = b(), [S, w] = b(
|
|
12818
|
-
|
|
12862
|
+
qf(o?.dataGrid)
|
|
12819
12863
|
), [v, M] = b(
|
|
12820
12864
|
mo(o?.chart)
|
|
12821
12865
|
), [T, x] = b([]), [k, F] = b([]), [N, A] = b([]), [E, L] = b(!1), [P, O] = b({
|
|
@@ -12825,7 +12869,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12825
12869
|
($) => {
|
|
12826
12870
|
if (!$)
|
|
12827
12871
|
return;
|
|
12828
|
-
const X =
|
|
12872
|
+
const X = Ve($);
|
|
12829
12873
|
m($.dataflows?.[0] || void 0), D($ || void 0), F([
|
|
12830
12874
|
...X?.dimensions || [],
|
|
12831
12875
|
...X?.timeDimensions || []
|
|
@@ -12857,7 +12901,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12857
12901
|
() => z($.urn)
|
|
12858
12902
|
);
|
|
12859
12903
|
if (X?.data) {
|
|
12860
|
-
const ee =
|
|
12904
|
+
const ee = Ve(X.data);
|
|
12861
12905
|
ne(X.data);
|
|
12862
12906
|
const se = ee?.dimensions == null ? null : It(ee?.dimensions, $.filters), de = da(
|
|
12863
12907
|
$,
|
|
@@ -12868,7 +12912,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12868
12912
|
Ue($.urn, { filterKey: se, timeFilter: de }),
|
|
12869
12913
|
() => B($.urn, { filterKey: se, timeFilter: de })
|
|
12870
12914
|
).then((ye) => {
|
|
12871
|
-
h(ye || void 0), A(
|
|
12915
|
+
h(ye || void 0), A(Yn(ye));
|
|
12872
12916
|
}).finally(() => L(!1));
|
|
12873
12917
|
}
|
|
12874
12918
|
},
|
|
@@ -12908,7 +12952,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12908
12952
|
Ue(n?.urn || "", $),
|
|
12909
12953
|
() => B(n?.urn || "", $)
|
|
12910
12954
|
).then((de) => {
|
|
12911
|
-
h(de || void 0), A(
|
|
12955
|
+
h(de || void 0), A(Yn(de));
|
|
12912
12956
|
}).finally(() => L(!1));
|
|
12913
12957
|
} catch (se) {
|
|
12914
12958
|
console.error("Error loading dataset data", se);
|
|
@@ -12919,7 +12963,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12919
12963
|
R(() => {
|
|
12920
12964
|
p != null && l != null && g?.length && w(($) => ({
|
|
12921
12965
|
...$,
|
|
12922
|
-
...
|
|
12966
|
+
...jf(
|
|
12923
12967
|
p,
|
|
12924
12968
|
l,
|
|
12925
12969
|
n,
|
|
@@ -12981,7 +13025,7 @@ function go(e, t, n, r, i, s, o, u, a, d = !1) {
|
|
|
12981
13025
|
dataSetAttachments: fe
|
|
12982
13026
|
};
|
|
12983
13027
|
}
|
|
12984
|
-
const
|
|
13028
|
+
const Xf = async (e, t) => {
|
|
12985
13029
|
const n = /* @__PURE__ */ new Map(), r = vl(e);
|
|
12986
13030
|
return (await Promise.allSettled(
|
|
12987
13031
|
e.map(async (s) => {
|
|
@@ -13003,14 +13047,14 @@ const Kf = async (e, t) => {
|
|
|
13003
13047
|
s.value.response?.data?.dataConstraints || []
|
|
13004
13048
|
);
|
|
13005
13049
|
}), n;
|
|
13006
|
-
},
|
|
13050
|
+
}, Qf = () => ({
|
|
13007
13051
|
datasetsMap: /* @__PURE__ */ new Map(),
|
|
13008
13052
|
dataMessagesMap: /* @__PURE__ */ new Map(),
|
|
13009
13053
|
structuresMap: /* @__PURE__ */ new Map(),
|
|
13010
13054
|
dimensionsMap: /* @__PURE__ */ new Map(),
|
|
13011
13055
|
structureDimensionsMap: /* @__PURE__ */ new Map()
|
|
13012
|
-
}),
|
|
13013
|
-
const i =
|
|
13056
|
+
}), em = async (e, t, n, r) => {
|
|
13057
|
+
const i = Qf();
|
|
13014
13058
|
return await Promise.allSettled(
|
|
13015
13059
|
e.map(async (s) => {
|
|
13016
13060
|
const o = await je(
|
|
@@ -13019,7 +13063,7 @@ const Kf = async (e, t) => {
|
|
|
13019
13063
|
() => t(s.urn)
|
|
13020
13064
|
);
|
|
13021
13065
|
if (o?.data) {
|
|
13022
|
-
const u =
|
|
13066
|
+
const u = Ve(o.data);
|
|
13023
13067
|
i.datasetsMap?.set(
|
|
13024
13068
|
s?.urn,
|
|
13025
13069
|
o?.data?.dataflows?.[0]
|
|
@@ -13054,16 +13098,16 @@ const Kf = async (e, t) => {
|
|
|
13054
13098
|
);
|
|
13055
13099
|
return {
|
|
13056
13100
|
dataMessage: r,
|
|
13057
|
-
structureDimensions:
|
|
13101
|
+
structureDimensions: Yn(r)
|
|
13058
13102
|
};
|
|
13059
13103
|
};
|
|
13060
|
-
function
|
|
13104
|
+
function tm(e, t, n) {
|
|
13061
13105
|
return [
|
|
13062
|
-
|
|
13063
|
-
|
|
13106
|
+
rm(e, n),
|
|
13107
|
+
nm(e, t, n)
|
|
13064
13108
|
];
|
|
13065
13109
|
}
|
|
13066
|
-
function
|
|
13110
|
+
function nm(e, t, n) {
|
|
13067
13111
|
const r = (i) => {
|
|
13068
13112
|
const s = i.data?.dataset?.urn;
|
|
13069
13113
|
if (s == null)
|
|
@@ -13087,7 +13131,7 @@ function Qf(e, t, n) {
|
|
|
13087
13131
|
}
|
|
13088
13132
|
};
|
|
13089
13133
|
}
|
|
13090
|
-
function
|
|
13134
|
+
function rm(e, t) {
|
|
13091
13135
|
const n = (r) => {
|
|
13092
13136
|
const i = r.data?.dataset?.urn;
|
|
13093
13137
|
return i == null ? "" : e.get(i)?.dataflows?.[0]?.agencyID || "";
|
|
@@ -13101,12 +13145,12 @@ function em(e, t) {
|
|
|
13101
13145
|
tooltipValueGetter: (r) => r.value
|
|
13102
13146
|
};
|
|
13103
13147
|
}
|
|
13104
|
-
function
|
|
13105
|
-
return
|
|
13106
|
-
...
|
|
13148
|
+
function im(e, t, n, r, i) {
|
|
13149
|
+
return sm(e).sort((u, a) => Dn(u, a)).map((u) => ({
|
|
13150
|
+
...am(u, r, i),
|
|
13107
13151
|
valueGetter: (d) => d.data[d.column.getColId()]?.value?.[0]?.value || null,
|
|
13108
13152
|
cellClass: ct,
|
|
13109
|
-
cellRenderer:
|
|
13153
|
+
cellRenderer: Tn,
|
|
13110
13154
|
width: Ct,
|
|
13111
13155
|
cellRendererParams: {
|
|
13112
13156
|
structuresMap: t,
|
|
@@ -13115,15 +13159,15 @@ function tm(e, t, n, r, i) {
|
|
|
13115
13159
|
}
|
|
13116
13160
|
}));
|
|
13117
13161
|
}
|
|
13118
|
-
function
|
|
13162
|
+
function sm(e) {
|
|
13119
13163
|
const t = /* @__PURE__ */ new Set();
|
|
13120
13164
|
return e.forEach((n) => {
|
|
13121
13165
|
if (n == null)
|
|
13122
13166
|
return;
|
|
13123
|
-
|
|
13167
|
+
yn(n).forEach((i) => t.add(i));
|
|
13124
13168
|
}), Array.from(t);
|
|
13125
13169
|
}
|
|
13126
|
-
function
|
|
13170
|
+
function am(e, t = Ds, n) {
|
|
13127
13171
|
return {
|
|
13128
13172
|
headerName: ea(e, n),
|
|
13129
13173
|
colId: e,
|
|
@@ -13136,8 +13180,8 @@ function rm(e, t = Ds, n) {
|
|
|
13136
13180
|
valueFormatter: (r) => Ss(r.value, t)
|
|
13137
13181
|
};
|
|
13138
13182
|
}
|
|
13139
|
-
function
|
|
13140
|
-
const o =
|
|
13183
|
+
function om(e, t, n, r, i, s) {
|
|
13184
|
+
const o = tm(
|
|
13141
13185
|
e,
|
|
13142
13186
|
r,
|
|
13143
13187
|
i
|
|
@@ -13146,7 +13190,7 @@ function im(e, t, n, r, i, s) {
|
|
|
13146
13190
|
t,
|
|
13147
13191
|
r,
|
|
13148
13192
|
i
|
|
13149
|
-
), a =
|
|
13193
|
+
), a = im(
|
|
13150
13194
|
n,
|
|
13151
13195
|
e,
|
|
13152
13196
|
r,
|
|
@@ -13161,7 +13205,7 @@ function im(e, t, n, r, i, s) {
|
|
|
13161
13205
|
Va(void 0, void 0, r, void 0, i)
|
|
13162
13206
|
];
|
|
13163
13207
|
}
|
|
13164
|
-
function
|
|
13208
|
+
function lm(e, t, n, r, i) {
|
|
13165
13209
|
const s = [];
|
|
13166
13210
|
return n.forEach((o) => {
|
|
13167
13211
|
const u = o.urn, a = t.get(u), d = e.get(u);
|
|
@@ -13185,8 +13229,8 @@ function sm(e, t, n, r, i) {
|
|
|
13185
13229
|
);
|
|
13186
13230
|
}), s;
|
|
13187
13231
|
}
|
|
13188
|
-
function
|
|
13189
|
-
const h =
|
|
13232
|
+
function cm(e, t, n, r, i, s, o, u, a, d, l) {
|
|
13233
|
+
const h = dm(
|
|
13190
13234
|
e,
|
|
13191
13235
|
t,
|
|
13192
13236
|
n,
|
|
@@ -13202,9 +13246,9 @@ function am(e, t, n, r, i, s, o, u, a, d, l) {
|
|
|
13202
13246
|
gridContent: h
|
|
13203
13247
|
};
|
|
13204
13248
|
}
|
|
13205
|
-
function
|
|
13249
|
+
function dm(e, t, n, r, i, s, o, u, a, d, l) {
|
|
13206
13250
|
return {
|
|
13207
|
-
columns:
|
|
13251
|
+
columns: om(
|
|
13208
13252
|
e,
|
|
13209
13253
|
n,
|
|
13210
13254
|
t,
|
|
@@ -13212,7 +13256,7 @@ function om(e, t, n, r, i, s, o, u, a, d, l) {
|
|
|
13212
13256
|
a,
|
|
13213
13257
|
s
|
|
13214
13258
|
),
|
|
13215
|
-
data:
|
|
13259
|
+
data: lm(
|
|
13216
13260
|
e,
|
|
13217
13261
|
t,
|
|
13218
13262
|
r,
|
|
@@ -13223,7 +13267,7 @@ function om(e, t, n, r, i, s, o, u, a, d, l) {
|
|
|
13223
13267
|
}
|
|
13224
13268
|
function wo(e, t, n, r, i, s, o) {
|
|
13225
13269
|
const [u, a] = b(), d = no(), [l, h] = b(), [f, m] = b(!1), [g, y] = b(
|
|
13226
|
-
|
|
13270
|
+
Zf(d?.dataGrid)
|
|
13227
13271
|
), [p, D] = b(mo(d?.chart)), [S, w] = b([]), {
|
|
13228
13272
|
getConstraints: v,
|
|
13229
13273
|
getDataSet: M,
|
|
@@ -13231,7 +13275,7 @@ function wo(e, t, n, r, i, s, o) {
|
|
|
13231
13275
|
} = e, x = I(
|
|
13232
13276
|
async (L) => {
|
|
13233
13277
|
try {
|
|
13234
|
-
const P = await
|
|
13278
|
+
const P = await Xf(
|
|
13235
13279
|
L,
|
|
13236
13280
|
v
|
|
13237
13281
|
);
|
|
@@ -13249,7 +13293,7 @@ function wo(e, t, n, r, i, s, o) {
|
|
|
13249
13293
|
[v]
|
|
13250
13294
|
), k = I(
|
|
13251
13295
|
async (L) => {
|
|
13252
|
-
const P = await
|
|
13296
|
+
const P = await em(
|
|
13253
13297
|
L,
|
|
13254
13298
|
M,
|
|
13255
13299
|
T,
|
|
@@ -13261,7 +13305,7 @@ function wo(e, t, n, r, i, s, o) {
|
|
|
13261
13305
|
}));
|
|
13262
13306
|
},
|
|
13263
13307
|
[M, T]
|
|
13264
|
-
), { getDimensionsScheme: F } =
|
|
13308
|
+
), { getDimensionsScheme: F } = of(), N = I(
|
|
13265
13309
|
(L) => {
|
|
13266
13310
|
const P = /* @__PURE__ */ new Map();
|
|
13267
13311
|
for (const O of L)
|
|
@@ -13305,7 +13349,7 @@ function wo(e, t, n, r, i, s, o) {
|
|
|
13305
13349
|
const { structuresMap: L, dataMessagesMap: P, constraintsMap: O } = u ?? {};
|
|
13306
13350
|
L != null && L.size > 0 && P != null && O != null && l != null && !f && y((_) => ({
|
|
13307
13351
|
..._,
|
|
13308
|
-
...
|
|
13352
|
+
...cm(
|
|
13309
13353
|
L,
|
|
13310
13354
|
P,
|
|
13311
13355
|
l,
|
|
@@ -13404,7 +13448,7 @@ function wo(e, t, n, r, i, s, o) {
|
|
|
13404
13448
|
onMultipleDataFiltersChange: E
|
|
13405
13449
|
};
|
|
13406
13450
|
}
|
|
13407
|
-
const
|
|
13451
|
+
const wg = ({
|
|
13408
13452
|
attachmentsProps: e,
|
|
13409
13453
|
actions: t,
|
|
13410
13454
|
titles: n,
|
|
@@ -13493,7 +13537,7 @@ const mg = ({
|
|
|
13493
13537
|
dataQueries: e?.dataQueries,
|
|
13494
13538
|
children: /* @__PURE__ */ C("div", { className: "advanced-view flex h-full min-w-0 flex-1 flex-col", children: [
|
|
13495
13539
|
/* @__PURE__ */ c(
|
|
13496
|
-
|
|
13540
|
+
gf,
|
|
13497
13541
|
{
|
|
13498
13542
|
titles: n,
|
|
13499
13543
|
locale: o,
|
|
@@ -13512,9 +13556,9 @@ const mg = ({
|
|
|
13512
13556
|
selectDataset: X
|
|
13513
13557
|
}
|
|
13514
13558
|
),
|
|
13515
|
-
oe && !z ? /* @__PURE__ */ c(
|
|
13559
|
+
oe && !z ? /* @__PURE__ */ c(He, {}) : /* @__PURE__ */ C(me, { children: [
|
|
13516
13560
|
p && /* @__PURE__ */ c(
|
|
13517
|
-
|
|
13561
|
+
mf,
|
|
13518
13562
|
{
|
|
13519
13563
|
...l,
|
|
13520
13564
|
titles: n,
|
|
@@ -13543,7 +13587,7 @@ const mg = ({
|
|
|
13543
13587
|
"advanced-view-filters"
|
|
13544
13588
|
),
|
|
13545
13589
|
children: /* @__PURE__ */ c(
|
|
13546
|
-
|
|
13590
|
+
ff,
|
|
13547
13591
|
{
|
|
13548
13592
|
...h,
|
|
13549
13593
|
titles: n,
|
|
@@ -13578,12 +13622,12 @@ const mg = ({
|
|
|
13578
13622
|
}
|
|
13579
13623
|
)
|
|
13580
13624
|
] })
|
|
13581
|
-
] }) : /* @__PURE__ */ c(
|
|
13625
|
+
] }) : /* @__PURE__ */ c(He, {})
|
|
13582
13626
|
] })
|
|
13583
13627
|
}
|
|
13584
13628
|
) });
|
|
13585
13629
|
};
|
|
13586
|
-
function
|
|
13630
|
+
function um(e, t, n, r, i) {
|
|
13587
13631
|
const [s, o] = b([]), [u, a] = b(), [d, l] = b(!1);
|
|
13588
13632
|
return R(() => {
|
|
13589
13633
|
let h = !0;
|
|
@@ -13646,10 +13690,10 @@ function ss(e) {
|
|
|
13646
13690
|
if (t?.every((n) => !!n?.data))
|
|
13647
13691
|
return t?.map((n) => ({
|
|
13648
13692
|
title: n?.title,
|
|
13649
|
-
...
|
|
13693
|
+
...fm(hm(n?.data))
|
|
13650
13694
|
}));
|
|
13651
13695
|
}
|
|
13652
|
-
function
|
|
13696
|
+
function hm(e) {
|
|
13653
13697
|
if (e)
|
|
13654
13698
|
try {
|
|
13655
13699
|
return JSON.parse(e);
|
|
@@ -13658,7 +13702,7 @@ function cm(e) {
|
|
|
13658
13702
|
}
|
|
13659
13703
|
return null;
|
|
13660
13704
|
}
|
|
13661
|
-
function
|
|
13705
|
+
function fm(e) {
|
|
13662
13706
|
return {
|
|
13663
13707
|
...e,
|
|
13664
13708
|
filters: e?.filters?.map((t) => ({
|
|
@@ -13673,7 +13717,7 @@ function dm(e) {
|
|
|
13673
13717
|
};
|
|
13674
13718
|
}
|
|
13675
13719
|
var vo = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(vo || {});
|
|
13676
|
-
const
|
|
13720
|
+
const mm = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
13677
13721
|
"div",
|
|
13678
13722
|
{
|
|
13679
13723
|
ref: t,
|
|
@@ -13690,7 +13734,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13690
13734
|
e?.content && "mb-4"
|
|
13691
13735
|
),
|
|
13692
13736
|
children: [
|
|
13693
|
-
n && /* @__PURE__ */ c(
|
|
13737
|
+
n && /* @__PURE__ */ c(He, {}),
|
|
13694
13738
|
/* @__PURE__ */ c("h3", { className: "message-stage-name", children: e?.name })
|
|
13695
13739
|
]
|
|
13696
13740
|
}
|
|
@@ -13722,7 +13766,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13722
13766
|
] })
|
|
13723
13767
|
]
|
|
13724
13768
|
}
|
|
13725
|
-
),
|
|
13769
|
+
), gm = ({ stages: e, expandIcon: t, processingTitle: n }) => {
|
|
13726
13770
|
const [r, i] = b(), [s, o] = b(), u = be(null), a = be(null);
|
|
13727
13771
|
R(() => {
|
|
13728
13772
|
o(
|
|
@@ -13774,7 +13818,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13774
13818
|
}
|
|
13775
13819
|
),
|
|
13776
13820
|
r && e && /* @__PURE__ */ c("div", { className: "flex flex-col", children: e?.map((l) => /* @__PURE__ */ c(
|
|
13777
|
-
|
|
13821
|
+
mm,
|
|
13778
13822
|
{
|
|
13779
13823
|
stage: l,
|
|
13780
13824
|
stageRef: s ? a : null,
|
|
@@ -13783,7 +13827,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13783
13827
|
l.index
|
|
13784
13828
|
)) })
|
|
13785
13829
|
] });
|
|
13786
|
-
},
|
|
13830
|
+
}, pm = ({
|
|
13787
13831
|
message: e,
|
|
13788
13832
|
regenerateMessage: t,
|
|
13789
13833
|
messageActionsIcons: n,
|
|
@@ -13794,7 +13838,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13794
13838
|
}) => {
|
|
13795
13839
|
const u = n?.copy, a = n?.regenerate, d = n?.thumbUp, l = n?.thumbDown, h = n?.thumbPressed, [f, m] = b(
|
|
13796
13840
|
e.like ?? rt.NoState
|
|
13797
|
-
), { isAgentAvailable: g } =
|
|
13841
|
+
), { isAgentAvailable: g } = pn(), y = (p) => {
|
|
13798
13842
|
e.responseId && (m(p), r(e.responseId || "", p));
|
|
13799
13843
|
};
|
|
13800
13844
|
return /* @__PURE__ */ C("div", { className: H("message-actions", "flex gap-x-2 pt-2"), children: [
|
|
@@ -13813,14 +13857,14 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13813
13857
|
d && !s && f !== rt.Disliked && (f === rt.NoState ? /* @__PURE__ */ c("p", { onClick: () => y(rt.Liked), children: d }) : /* @__PURE__ */ c("p", { children: h })),
|
|
13814
13858
|
l && !s && f !== rt.Liked && (f === rt.NoState ? /* @__PURE__ */ c("p", { onClick: () => y(rt.Disliked), children: l }) : /* @__PURE__ */ c("p", { className: "rotate-180", children: h }))
|
|
13815
13859
|
] });
|
|
13816
|
-
},
|
|
13860
|
+
}, wm = ({
|
|
13817
13861
|
message: e,
|
|
13818
13862
|
onEditClick: t,
|
|
13819
13863
|
messageActionsIcons: n,
|
|
13820
13864
|
isStreaming: r = !1,
|
|
13821
13865
|
isReadOnly: i = !1
|
|
13822
13866
|
}) => {
|
|
13823
|
-
const s = n?.copy, o = n?.edit, { isAgentAvailable: u } =
|
|
13867
|
+
const s = n?.copy, o = n?.edit, { isAgentAvailable: u } = pn();
|
|
13824
13868
|
return /* @__PURE__ */ C("div", { className: H("message-actions", "flex gap-x-2 pt-2 ml-12"), children: [
|
|
13825
13869
|
s && /* @__PURE__ */ c("p", { onClick: () => navigator.clipboard.writeText(e.content), children: s }),
|
|
13826
13870
|
o && !r && !i && /* @__PURE__ */ c(
|
|
@@ -13835,7 +13879,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13835
13879
|
}
|
|
13836
13880
|
)
|
|
13837
13881
|
] });
|
|
13838
|
-
},
|
|
13882
|
+
}, vm = ({
|
|
13839
13883
|
content: e,
|
|
13840
13884
|
textColorClass: t,
|
|
13841
13885
|
onCancel: n,
|
|
@@ -13901,7 +13945,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13901
13945
|
]
|
|
13902
13946
|
}
|
|
13903
13947
|
);
|
|
13904
|
-
},
|
|
13948
|
+
}, Cm = ({
|
|
13905
13949
|
message: e,
|
|
13906
13950
|
previousMessage: t,
|
|
13907
13951
|
titles: n,
|
|
@@ -13934,7 +13978,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13934
13978
|
datasets: fe,
|
|
13935
13979
|
datasetStructuresMap: $,
|
|
13936
13980
|
isLoading: X
|
|
13937
|
-
} =
|
|
13981
|
+
} = um(
|
|
13938
13982
|
r.getDataSet,
|
|
13939
13983
|
r.updateDatasets,
|
|
13940
13984
|
r.updateDataQueries,
|
|
@@ -13990,7 +14034,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
13990
14034
|
ye(Te || []);
|
|
13991
14035
|
}, [e, T]), R(() => {
|
|
13992
14036
|
const pe = Ui(e), Te = ss(pe), Qe = pe.filter(
|
|
13993
|
-
(ut) =>
|
|
14037
|
+
(ut) => mr(ut)
|
|
13994
14038
|
);
|
|
13995
14039
|
N(Te), _(Qe);
|
|
13996
14040
|
}, [e]), R(() => {
|
|
@@ -14104,7 +14148,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14104
14148
|
children: [
|
|
14105
14149
|
/* @__PURE__ */ C("div", { className: "relative mr-2", children: [
|
|
14106
14150
|
ge(),
|
|
14107
|
-
o && /* @__PURE__ */ c(
|
|
14151
|
+
o && /* @__PURE__ */ c(He, {})
|
|
14108
14152
|
] }),
|
|
14109
14153
|
/* @__PURE__ */ C("div", { className: "min-w-0 flex-1", children: [
|
|
14110
14154
|
/* @__PURE__ */ C(
|
|
@@ -14117,7 +14161,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14117
14161
|
),
|
|
14118
14162
|
children: [
|
|
14119
14163
|
!J && !Q && e?.custom_content?.stages ? /* @__PURE__ */ c(
|
|
14120
|
-
|
|
14164
|
+
gm,
|
|
14121
14165
|
{
|
|
14122
14166
|
stages: e?.custom_content?.stages,
|
|
14123
14167
|
expandIcon: m,
|
|
@@ -14125,7 +14169,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14125
14169
|
}
|
|
14126
14170
|
) : o && /* @__PURE__ */ c("p", { className: "body-1 loading-message text-neutrals-700", children: n?.loading }),
|
|
14127
14171
|
ee ? /* @__PURE__ */ c(
|
|
14128
|
-
|
|
14172
|
+
vm,
|
|
14129
14173
|
{
|
|
14130
14174
|
content: e.content,
|
|
14131
14175
|
onCancel: U,
|
|
@@ -14138,7 +14182,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14138
14182
|
),
|
|
14139
14183
|
Me,
|
|
14140
14184
|
!o && (J ? !ee && /* @__PURE__ */ c(
|
|
14141
|
-
|
|
14185
|
+
wm,
|
|
14142
14186
|
{
|
|
14143
14187
|
messageActionsIcons: D,
|
|
14144
14188
|
message: e,
|
|
@@ -14147,7 +14191,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14147
14191
|
isReadOnly: M
|
|
14148
14192
|
}
|
|
14149
14193
|
) : /* @__PURE__ */ c(
|
|
14150
|
-
|
|
14194
|
+
pm,
|
|
14151
14195
|
{
|
|
14152
14196
|
messageActionsIcons: D,
|
|
14153
14197
|
message: e,
|
|
@@ -14171,7 +14215,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14171
14215
|
)
|
|
14172
14216
|
}
|
|
14173
14217
|
) });
|
|
14174
|
-
},
|
|
14218
|
+
}, bm = ({
|
|
14175
14219
|
messages: e,
|
|
14176
14220
|
isStreaming: t = !1,
|
|
14177
14221
|
isReadOnly: n,
|
|
@@ -14226,7 +14270,7 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14226
14270
|
target: "_blank",
|
|
14227
14271
|
rel: "noopener noreferrer",
|
|
14228
14272
|
className: "inline-flex items-center align-middle",
|
|
14229
|
-
children: /* @__PURE__ */ c(
|
|
14273
|
+
children: /* @__PURE__ */ c(rr, { className: "size-4 shrink-0 cursor-pointer text-primary" })
|
|
14230
14274
|
},
|
|
14231
14275
|
x
|
|
14232
14276
|
)) });
|
|
@@ -14236,15 +14280,15 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14236
14280
|
e.map((v, M) => {
|
|
14237
14281
|
const T = v.id ?? M;
|
|
14238
14282
|
if (v.errorMessage) {
|
|
14239
|
-
const N = i?.errorContext?.kind ===
|
|
14240
|
-
return /* @__PURE__ */ c(
|
|
14283
|
+
const N = i?.errorContext?.kind === ir.RATE_LIMIT ? Nt.Warning : Nt.Error;
|
|
14284
|
+
return /* @__PURE__ */ c(nn, { type: N, children: /* @__PURE__ */ c("div", { className: "flex flex-col", children: w(v.errorMessage) }) }, T);
|
|
14241
14285
|
}
|
|
14242
14286
|
const x = M === e.length - 1, k = md(
|
|
14243
14287
|
e,
|
|
14244
14288
|
M
|
|
14245
14289
|
), F = gd(e);
|
|
14246
14290
|
return /* @__PURE__ */ c(
|
|
14247
|
-
|
|
14291
|
+
Cm,
|
|
14248
14292
|
{
|
|
14249
14293
|
message: v,
|
|
14250
14294
|
previousMessage: k,
|
|
@@ -14274,29 +14318,29 @@ const um = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ C(
|
|
|
14274
14318
|
}
|
|
14275
14319
|
)
|
|
14276
14320
|
] });
|
|
14277
|
-
},
|
|
14321
|
+
}, ym = (e) => {
|
|
14278
14322
|
const t = {};
|
|
14279
14323
|
return e.choices?.[0]?.delta?.content && (t.content = e.choices[0].delta.content), e.choices?.[0]?.delta?.custom_content && (t.custom_content = e.choices[0].delta.custom_content), e.choices?.[0]?.delta?.role && (t.role = e.choices[0].delta.role), e.id && (t.responseId = e.id), t;
|
|
14280
|
-
},
|
|
14324
|
+
}, Dm = "local", Sm = (e) => !e.permissions?.includes(No.WRITE) && !Nm(e), Mm = (e, t) => Co(e) !== t, Nm = (e) => Co(e) === Dm, Co = (e) => e.id.split("/")[0], Tm = (e, t) => Tr([...t?.messages || [], e]), Tr = (e) => [...e].map((t) => {
|
|
14281
14325
|
const n = {
|
|
14282
14326
|
role: t.role,
|
|
14283
14327
|
content: t.content
|
|
14284
14328
|
};
|
|
14285
|
-
return (t.role === _e.Assistant || t.role === _e.System) && t.custom_content != null && (t.custom_content.state != null || t.custom_content.attachments != null || t.custom_content.form_schema != null) && (n.custom_content = {}, t.custom_content.state != null && (n.custom_content.state = t.custom_content.state), t.custom_content.attachments != null && (n.custom_content.attachments =
|
|
14329
|
+
return (t.role === _e.Assistant || t.role === _e.System) && t.custom_content != null && (t.custom_content.state != null || t.custom_content.attachments != null || t.custom_content.form_schema != null) && (n.custom_content = {}, t.custom_content.state != null && (n.custom_content.state = t.custom_content.state), t.custom_content.attachments != null && (n.custom_content.attachments = Em(
|
|
14286
14330
|
t.custom_content.attachments
|
|
14287
14331
|
)), t.custom_content.form_schema != null && (n.custom_content.form_schema = t.custom_content.form_schema)), t.role === _e.User && t.custom_content && (n.custom_content = t.custom_content), n;
|
|
14288
|
-
}),
|
|
14332
|
+
}), Am = (e, t) => {
|
|
14289
14333
|
const n = t?.messages, r = n?.findIndex(
|
|
14290
14334
|
(i) => e.id === i.id
|
|
14291
14335
|
);
|
|
14292
14336
|
return Tr(n?.slice(0, r) || []);
|
|
14293
|
-
},
|
|
14337
|
+
}, km = (e, t) => {
|
|
14294
14338
|
const n = t?.messages, r = n?.findIndex(
|
|
14295
14339
|
(i) => e.id === i.id
|
|
14296
14340
|
);
|
|
14297
14341
|
return Tr([...n?.slice(0, r) || [], e]);
|
|
14298
14342
|
};
|
|
14299
|
-
function
|
|
14343
|
+
function Em(e) {
|
|
14300
14344
|
return e.map((t) => ({
|
|
14301
14345
|
type: t.type,
|
|
14302
14346
|
title: t.title,
|
|
@@ -14306,7 +14350,7 @@ function Tm(e) {
|
|
|
14306
14350
|
reference_url: t.reference_url
|
|
14307
14351
|
}));
|
|
14308
14352
|
}
|
|
14309
|
-
const
|
|
14353
|
+
const xm = (e, t, n, r) => {
|
|
14310
14354
|
if (!n || t)
|
|
14311
14355
|
return null;
|
|
14312
14356
|
const i = {
|
|
@@ -14316,13 +14360,13 @@ const Am = (e, t, n, r) => {
|
|
|
14316
14360
|
timestamp: Date.now()
|
|
14317
14361
|
};
|
|
14318
14362
|
if (r) {
|
|
14319
|
-
const s = r ===
|
|
14363
|
+
const s = r === or.COMPLETE ? Kn.COMPLETION : Kn.CHOICE;
|
|
14320
14364
|
i.custom_content = {
|
|
14321
14365
|
form_value: { [s]: r }
|
|
14322
14366
|
};
|
|
14323
14367
|
}
|
|
14324
14368
|
return i;
|
|
14325
|
-
},
|
|
14369
|
+
}, Im = (e, t, n) => `/${t}${n}/${Xo(e?.folderId, e?.id)}`, Lm = (e, t, n) => {
|
|
14326
14370
|
const r = `${t}/${n}`, i = ws({
|
|
14327
14371
|
folderId: r,
|
|
14328
14372
|
name: e?.name
|
|
@@ -14332,18 +14376,18 @@ const Am = (e, t, n, r) => {
|
|
|
14332
14376
|
folderId: r,
|
|
14333
14377
|
id: i
|
|
14334
14378
|
};
|
|
14335
|
-
},
|
|
14379
|
+
}, Om = (e, t) => {
|
|
14336
14380
|
const n = e.lastIndexOf(".");
|
|
14337
14381
|
return n <= 0 ? `${e}-${t}` : `${e.slice(0, n)}-${t}${e.slice(n)}`;
|
|
14338
|
-
},
|
|
14382
|
+
}, _m = (e, t, n) => {
|
|
14339
14383
|
const r = e.split("/");
|
|
14340
14384
|
if (r[0] !== "files" || r.length < 3)
|
|
14341
14385
|
return e;
|
|
14342
|
-
const i = r.at(-1) ?? "file", s =
|
|
14386
|
+
const i = r.at(-1) ?? "file", s = Om(i, n);
|
|
14343
14387
|
return ["files", t, ...r.slice(2, -1), s].join(
|
|
14344
14388
|
"/"
|
|
14345
14389
|
);
|
|
14346
|
-
},
|
|
14390
|
+
}, Rm = async ({
|
|
14347
14391
|
conversation: e,
|
|
14348
14392
|
bucket: t,
|
|
14349
14393
|
getFileBlob: n,
|
|
@@ -14354,7 +14398,7 @@ const Am = (e, t, n, r) => {
|
|
|
14354
14398
|
return e;
|
|
14355
14399
|
const o = await Promise.all(
|
|
14356
14400
|
i.map(async (u) => {
|
|
14357
|
-
const a =
|
|
14401
|
+
const a = _m(
|
|
14358
14402
|
u,
|
|
14359
14403
|
t,
|
|
14360
14404
|
`${s}`
|
|
@@ -14369,32 +14413,32 @@ const Am = (e, t, n, r) => {
|
|
|
14369
14413
|
e,
|
|
14370
14414
|
Object.fromEntries(o)
|
|
14371
14415
|
);
|
|
14372
|
-
},
|
|
14416
|
+
}, Pm = "AbortError", Fm = ({
|
|
14373
14417
|
error: e,
|
|
14374
14418
|
statusMessages: t
|
|
14375
14419
|
}) => {
|
|
14376
14420
|
if (e) {
|
|
14377
14421
|
if (e.type === bs.RATE_LIMIT_EXCEEDED) {
|
|
14378
14422
|
const n = e.exceeded_limit?.length ? t.getExceededLimitsMessage(e.exceeded_limit) : e.display_message ?? "";
|
|
14379
|
-
throw new
|
|
14423
|
+
throw new Wn({
|
|
14380
14424
|
message: e.message,
|
|
14381
14425
|
displayMessage: n,
|
|
14382
14426
|
code: e.type,
|
|
14383
|
-
status: e.status ??
|
|
14427
|
+
status: e.status ?? an.TOO_MANY_REQUESTS,
|
|
14384
14428
|
details: {
|
|
14385
|
-
kind:
|
|
14429
|
+
kind: ir.RATE_LIMIT,
|
|
14386
14430
|
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14387
14431
|
retryAfterSeconds: Number(e.retry_after ?? "")
|
|
14388
14432
|
}
|
|
14389
14433
|
});
|
|
14390
14434
|
}
|
|
14391
|
-
throw new
|
|
14435
|
+
throw new Wn({
|
|
14392
14436
|
message: e.message,
|
|
14393
|
-
status: e.status ??
|
|
14437
|
+
status: e.status ?? an.BAD_REQUEST,
|
|
14394
14438
|
code: e.code
|
|
14395
14439
|
});
|
|
14396
14440
|
}
|
|
14397
|
-
},
|
|
14441
|
+
}, Vm = ({
|
|
14398
14442
|
error: e,
|
|
14399
14443
|
statusMessages: t
|
|
14400
14444
|
}) => {
|
|
@@ -14408,21 +14452,21 @@ const Am = (e, t, n, r) => {
|
|
|
14408
14452
|
return e.code === Wo.CONTENT_FILTER ? {
|
|
14409
14453
|
errorMessage: t.contentFilterError ?? e.message
|
|
14410
14454
|
} : {
|
|
14411
|
-
errorMessage: e.status ===
|
|
14455
|
+
errorMessage: e.status === an.SERVICE_UNAVAILABLE ? t.serverOverloaded : t.serverError
|
|
14412
14456
|
};
|
|
14413
14457
|
}, as = (e, t) => {
|
|
14414
|
-
const n = e.customViewState ?? {}, r = n[
|
|
14458
|
+
const n = e.customViewState ?? {}, r = n[Un] ?? {};
|
|
14415
14459
|
return {
|
|
14416
14460
|
...e,
|
|
14417
14461
|
customViewState: {
|
|
14418
14462
|
...n,
|
|
14419
|
-
[
|
|
14463
|
+
[Un]: {
|
|
14420
14464
|
...r,
|
|
14421
14465
|
errorContext: t
|
|
14422
14466
|
}
|
|
14423
14467
|
}
|
|
14424
14468
|
};
|
|
14425
|
-
},
|
|
14469
|
+
}, vg = ({
|
|
14426
14470
|
conversationKey: e,
|
|
14427
14471
|
conversation: t,
|
|
14428
14472
|
actions: n,
|
|
@@ -14451,13 +14495,13 @@ const Am = (e, t, n, r) => {
|
|
|
14451
14495
|
attachmentsConfig: F,
|
|
14452
14496
|
children: N
|
|
14453
14497
|
}) => {
|
|
14454
|
-
const [A, E] = b(null), [L, P] = b(!1), [O, _] = b(!0), { isStreaming: z, setIsStreaming: B } = Gl(), { isOpenedAdvancedView: Y } = Re(), { isCrossDatasetModeOn: ne } = Le(), { isAgentAvailable: Z } =
|
|
14498
|
+
const [A, E] = b(null), [L, P] = b(!1), [O, _] = b(!0), { isStreaming: z, setIsStreaming: B } = Gl(), { isOpenedAdvancedView: Y } = Re(), { isCrossDatasetModeOn: ne } = Le(), { isAgentAvailable: Z } = pn(), { statusMessages: J } = _s(), {
|
|
14455
14499
|
onboardingFileSchema: oe,
|
|
14456
14500
|
onboardingFilePath: fe,
|
|
14457
14501
|
onboardingFileName: $,
|
|
14458
14502
|
isShowOnboarding: X,
|
|
14459
14503
|
setOnboardingFileSchema: ee
|
|
14460
|
-
} =
|
|
14504
|
+
} = Ge();
|
|
14461
14505
|
R(() => {
|
|
14462
14506
|
oe && n.putOnboardingFile?.(
|
|
14463
14507
|
$,
|
|
@@ -14478,20 +14522,20 @@ const Am = (e, t, n, r) => {
|
|
|
14478
14522
|
w(`/${h}${f}`);
|
|
14479
14523
|
}, [h, f, w]), de = I(async () => {
|
|
14480
14524
|
try {
|
|
14481
|
-
const { bucket: V } = await n.getBucket(), G = n.getFileBlob && n.putFile ? await
|
|
14525
|
+
const { bucket: V } = await n.getBucket(), G = n.getFileBlob && n.putFile ? await Rm({
|
|
14482
14526
|
conversation: t,
|
|
14483
14527
|
bucket: V,
|
|
14484
14528
|
getFileBlob: n.getFileBlob,
|
|
14485
14529
|
putFile: n.putFile
|
|
14486
|
-
}) : t, W =
|
|
14530
|
+
}) : t, W = Lm(
|
|
14487
14531
|
G,
|
|
14488
14532
|
V,
|
|
14489
14533
|
h
|
|
14490
14534
|
);
|
|
14491
14535
|
await n.createConversation(W, h);
|
|
14492
14536
|
const ie = await n.getConversations(h);
|
|
14493
|
-
S(
|
|
14494
|
-
|
|
14537
|
+
S(jn(ie)), w(
|
|
14538
|
+
Im(
|
|
14495
14539
|
W,
|
|
14496
14540
|
h,
|
|
14497
14541
|
f
|
|
@@ -14575,14 +14619,14 @@ const Am = (e, t, n, r) => {
|
|
|
14575
14619
|
let W = J.serverError, ie, te;
|
|
14576
14620
|
if (tl(V)) {
|
|
14577
14621
|
te = V;
|
|
14578
|
-
const Ae =
|
|
14622
|
+
const Ae = Vm({
|
|
14579
14623
|
error: V,
|
|
14580
14624
|
statusMessages: J
|
|
14581
14625
|
});
|
|
14582
14626
|
W = Ae.errorMessage, ie = Ae.errorContext;
|
|
14583
14627
|
} else
|
|
14584
|
-
te = new
|
|
14585
|
-
status:
|
|
14628
|
+
te = new Wn({
|
|
14629
|
+
status: an.INTERNAL_SERVER_ERROR,
|
|
14586
14630
|
message: W
|
|
14587
14631
|
});
|
|
14588
14632
|
return G && (G = xe(G, {
|
|
@@ -14614,8 +14658,8 @@ const Am = (e, t, n, r) => {
|
|
|
14614
14658
|
model: W.model,
|
|
14615
14659
|
signal: ie?.signal,
|
|
14616
14660
|
onMessage: (Pe) => {
|
|
14617
|
-
|
|
14618
|
-
const et =
|
|
14661
|
+
Fm({ error: Pe.error, statusMessages: J });
|
|
14662
|
+
const et = ym(Pe);
|
|
14619
14663
|
(et.content || et.role || et.responseId) && (te = xe(
|
|
14620
14664
|
te,
|
|
14621
14665
|
et
|
|
@@ -14629,11 +14673,11 @@ const Am = (e, t, n, r) => {
|
|
|
14629
14673
|
m,
|
|
14630
14674
|
ht
|
|
14631
14675
|
).catch((Pe) => {
|
|
14632
|
-
const { assistantMessage: et, errorContext:
|
|
14676
|
+
const { assistantMessage: et, errorContext: jt } = K(
|
|
14633
14677
|
Pe,
|
|
14634
14678
|
te
|
|
14635
14679
|
);
|
|
14636
|
-
te = et, Ae =
|
|
14680
|
+
te = et, Ae = jt;
|
|
14637
14681
|
}), {
|
|
14638
14682
|
assistantMessage: te,
|
|
14639
14683
|
errorContext: Ae
|
|
@@ -14679,7 +14723,7 @@ const Am = (e, t, n, r) => {
|
|
|
14679
14723
|
[D]
|
|
14680
14724
|
), ue = I(() => {
|
|
14681
14725
|
A && !A.signal.aborted && A.abort();
|
|
14682
|
-
}, [A]), le = (V) => V?.name ===
|
|
14726
|
+
}, [A]), le = (V) => V?.name === Pm, ge = I(
|
|
14683
14727
|
async (V, G, W, ie, te, Ae = !0) => {
|
|
14684
14728
|
le(te) ? await q(
|
|
14685
14729
|
ie ?? W,
|
|
@@ -14692,7 +14736,7 @@ const Am = (e, t, n, r) => {
|
|
|
14692
14736
|
async (V, G, W) => {
|
|
14693
14737
|
if (!G || !V)
|
|
14694
14738
|
return;
|
|
14695
|
-
const ie =
|
|
14739
|
+
const ie = xm(
|
|
14696
14740
|
V,
|
|
14697
14741
|
z,
|
|
14698
14742
|
G,
|
|
@@ -14703,7 +14747,7 @@ const Am = (e, t, n, r) => {
|
|
|
14703
14747
|
Ee(ie);
|
|
14704
14748
|
try {
|
|
14705
14749
|
B(!0), te = we();
|
|
14706
|
-
const Be =
|
|
14750
|
+
const Be = Tm(ie, G), { assistantMessage: ht, errorContext: Pe } = await Q(
|
|
14707
14751
|
te,
|
|
14708
14752
|
Be,
|
|
14709
14753
|
G
|
|
@@ -14778,7 +14822,7 @@ const Am = (e, t, n, r) => {
|
|
|
14778
14822
|
async (V, G) => {
|
|
14779
14823
|
if (!G || !V)
|
|
14780
14824
|
return;
|
|
14781
|
-
const W =
|
|
14825
|
+
const W = Am(V, G), ie = {
|
|
14782
14826
|
...G,
|
|
14783
14827
|
messages: G.messages.slice(0, W.length)
|
|
14784
14828
|
};
|
|
@@ -14793,11 +14837,11 @@ const Am = (e, t, n, r) => {
|
|
|
14793
14837
|
), { isLastMessageFailed: Qe, regenerateLastMessage: ut } = j(() => {
|
|
14794
14838
|
const V = t?.messages?.at(-1);
|
|
14795
14839
|
return { isLastMessageFailed: !!V?.errorMessage, regenerateLastMessage: V && (() => Te(V, t)) };
|
|
14796
|
-
}, [t, Te]),
|
|
14840
|
+
}, [t, Te]), zt = I(
|
|
14797
14841
|
async (V, G) => {
|
|
14798
14842
|
if (!G || !V)
|
|
14799
14843
|
return;
|
|
14800
|
-
const W =
|
|
14844
|
+
const W = km(V, G), ie = {
|
|
14801
14845
|
...G,
|
|
14802
14846
|
messages: [...G.messages.slice(0, W.length - 1), V]
|
|
14803
14847
|
};
|
|
@@ -14817,7 +14861,7 @@ const Am = (e, t, n, r) => {
|
|
|
14817
14861
|
_(!0);
|
|
14818
14862
|
const { bucket: G } = await n.getBucket(), W = await n.getConversation(decodeURI(e));
|
|
14819
14863
|
D(W), P(
|
|
14820
|
-
|
|
14864
|
+
Sm(W) && Mm(W, G)
|
|
14821
14865
|
), (W.messages.length === 0 || W?.messages?.[0]?.role === _e.Assistant && W?.messages?.length === 1) && Me(W.prompt, W);
|
|
14822
14866
|
} catch {
|
|
14823
14867
|
P(!0);
|
|
@@ -14829,7 +14873,7 @@ const Am = (e, t, n, r) => {
|
|
|
14829
14873
|
_i();
|
|
14830
14874
|
};
|
|
14831
14875
|
}, [e]);
|
|
14832
|
-
const
|
|
14876
|
+
const Bt = j(
|
|
14833
14877
|
() => ({
|
|
14834
14878
|
getFile: n.getFile,
|
|
14835
14879
|
putOnboardingFile: n.putOnboardingFile,
|
|
@@ -14844,15 +14888,15 @@ const Am = (e, t, n, r) => {
|
|
|
14844
14888
|
[n]
|
|
14845
14889
|
);
|
|
14846
14890
|
if (O)
|
|
14847
|
-
return /* @__PURE__ */ c(
|
|
14848
|
-
const st = t?.customViewState?.[
|
|
14849
|
-
if (st?.errorContext?.kind ===
|
|
14891
|
+
return /* @__PURE__ */ c(He, {});
|
|
14892
|
+
const st = t?.customViewState?.[Un], Ut = () => {
|
|
14893
|
+
if (st?.errorContext?.kind === ir.RATE_LIMIT && Yo(st.errorContext)) {
|
|
14850
14894
|
const V = Ko(
|
|
14851
14895
|
st.errorContext
|
|
14852
14896
|
);
|
|
14853
14897
|
if (V) {
|
|
14854
14898
|
const G = qo(V);
|
|
14855
|
-
return /* @__PURE__ */ c(
|
|
14899
|
+
return /* @__PURE__ */ c(nn, { type: Nt.Info, children: J.getAssistantRestoreMessage(
|
|
14856
14900
|
G.date,
|
|
14857
14901
|
G.time
|
|
14858
14902
|
) });
|
|
@@ -14872,7 +14916,7 @@ const Am = (e, t, n, r) => {
|
|
|
14872
14916
|
isLastFailed: Qe,
|
|
14873
14917
|
onRetryFailed: ut
|
|
14874
14918
|
}
|
|
14875
|
-
) : /* @__PURE__ */ c(
|
|
14919
|
+
) : /* @__PURE__ */ c(nn, { type: Nt.Error, children: J.assistantUnavailable });
|
|
14876
14920
|
};
|
|
14877
14921
|
return /* @__PURE__ */ c(to, { titles: g, children: /* @__PURE__ */ C(
|
|
14878
14922
|
"div",
|
|
@@ -14902,10 +14946,10 @@ const Am = (e, t, n, r) => {
|
|
|
14902
14946
|
r?.messagesWrapperClass
|
|
14903
14947
|
),
|
|
14904
14948
|
children: /* @__PURE__ */ c(
|
|
14905
|
-
|
|
14949
|
+
bm,
|
|
14906
14950
|
{
|
|
14907
14951
|
messages: t?.messages || [],
|
|
14908
|
-
actions:
|
|
14952
|
+
actions: Bt,
|
|
14909
14953
|
isStreaming: z,
|
|
14910
14954
|
isReadOnly: L,
|
|
14911
14955
|
messageStyles: r,
|
|
@@ -14924,7 +14968,7 @@ const Am = (e, t, n, r) => {
|
|
|
14924
14968
|
),
|
|
14925
14969
|
messageActionsIcons: v,
|
|
14926
14970
|
rateResponse: ze,
|
|
14927
|
-
editMessage: (V) =>
|
|
14971
|
+
editMessage: (V) => zt(V, t),
|
|
14928
14972
|
editMessageTitles: M,
|
|
14929
14973
|
scrollBottomIcon: T,
|
|
14930
14974
|
isReadOnlyConversation: L || X,
|
|
@@ -14948,7 +14992,7 @@ const Am = (e, t, n, r) => {
|
|
|
14948
14992
|
"div",
|
|
14949
14993
|
{
|
|
14950
14994
|
className: H(s.inputContainerClass),
|
|
14951
|
-
children:
|
|
14995
|
+
children: Ut()
|
|
14952
14996
|
}
|
|
14953
14997
|
),
|
|
14954
14998
|
X && x && /* @__PURE__ */ c(
|
|
@@ -14970,22 +15014,22 @@ const Am = (e, t, n, r) => {
|
|
|
14970
15014
|
) });
|
|
14971
15015
|
};
|
|
14972
15016
|
export {
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
15017
|
+
wg as AdvancedView,
|
|
15018
|
+
og as AdvancedViewProvider,
|
|
15019
|
+
or as CUSTOM_CHOICE_ID,
|
|
15020
|
+
qn as ChartingIcon,
|
|
14977
15021
|
lc as ChatFooter,
|
|
14978
|
-
|
|
15022
|
+
lg as ChatMessagesProvider,
|
|
14979
15023
|
oc as ChatOnboardingFooter,
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
15024
|
+
vg as ConversationView,
|
|
15025
|
+
mg as ConversationViewFeatureTogglesProvider,
|
|
15026
|
+
cg as ConversationViewMessagesProvider,
|
|
15027
|
+
gg as ConversationViewSidePanelProvider,
|
|
14984
15028
|
to as ConversationViewTitlesProvider,
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
15029
|
+
fg as ConversationWelcome,
|
|
15030
|
+
Kn as CustomContentProperties,
|
|
15031
|
+
pg as DatasetDimensionsMetadataMapProvider,
|
|
15032
|
+
dg as OnboardingProvider,
|
|
14989
15033
|
Hl as STAGE_STATUS,
|
|
14990
15034
|
Re as useAdvancedView,
|
|
14991
15035
|
Gl as useChatMessages,
|
|
@@ -14993,7 +15037,7 @@ export {
|
|
|
14993
15037
|
_s as useConversationViewMessages,
|
|
14994
15038
|
dt as useConversationViewSidePanelOptional,
|
|
14995
15039
|
no as useConversationViewTitles,
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
15040
|
+
of as useDatasetDimensionsMetadataMap,
|
|
15041
|
+
lf as useDatasetDimensionsMetadataMapOptional,
|
|
15042
|
+
Ge as useOnboarding
|
|
14999
15043
|
};
|