@epam/statgpt-conversation-view 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +391 -390
  3. package/package.json +6 -6
package/index.mjs CHANGED
@@ -1,26 +1,26 @@
1
1
  import { jsx as d, jsxs as v, Fragment as me } from "react/jsx-runtime";
2
2
  import * as ue from "react";
3
- import De, { createContext as et, useState as p, useContext as Ke, useMemo as oe, useCallback as A, useEffect as I, useRef as pe, startTransition as Ii, Fragment as Ba } from "react";
4
- import { Role as Fe, DialSchemaProperties as hn, LikeState as Qe, SharePermission as Wa } from "@epam/ai-dial-shared";
5
- import { InputWithIcon as Jt, KeyboardKey as ja, IconButton as Ue, Button as Me, Popup as ht, PopUpSize as ft, Loader as Pe, PopUpState as ne, useAgentAvailability as Yt, InlineAlert as Ft, InlineAlertType as Ct, Tag as za, TREE_NODE_PADDING as Zr, TREE_NODE_ARROW_SIZE as Ua, Radio as Li, Calendar as Xr, Checkbox as Oi, useIsMobile as Kt, Dropdown as $a, SERIES_LIMIT as ot, CloseButton as Fi, CollapsibleBlock as Ri, RequestLimitMessage as _i, DownloadFormatMessage as Ja, CopyButton as Ya, Link as Ka, Alert as qa, filterDraggableListNodes as Za, DraggableList as Xa, useDebounce as Qa } from "@epam/statgpt-ui-components";
6
- import { IconRefresh as eo, IconPlayerStopFilled as to, IconCheck as no, IconCopy as Pi, IconPlus as Vi, IconSearch as Gi, IconCircleFilled as ro, IconExternalLink as Hi, IconX as Bi, IconRotate as io, IconPointFilled as so } from "@tabler/icons-react";
3
+ import De, { createContext as et, useState as p, useContext as Ke, useMemo as oe, useCallback as A, useEffect as I, useRef as pe, startTransition as Ii, Fragment as Wa } from "react";
4
+ import { Role as Fe, DialSchemaProperties as hn, LikeState as Qe, SharePermission as ja } from "@epam/ai-dial-shared";
5
+ import { InputWithIcon as Jt, KeyboardKey as za, IconButton as Ue, Button as Me, Popup as ht, PopUpSize as ft, Loader as Pe, PopUpState as ne, useAgentAvailability as Yt, InlineAlert as Ft, InlineAlertType as Ct, Tag as Ua, TREE_NODE_PADDING as Zr, TREE_NODE_ARROW_SIZE as $a, Radio as Li, Calendar as Xr, Checkbox as Oi, useIsMobile as Kt, Dropdown as Ja, SERIES_LIMIT as ot, CloseButton as Fi, CollapsibleBlock as Ri, RequestLimitMessage as _i, DownloadFormatMessage as Ya, CopyButton as Ka, Link as qa, Alert as Za, filterDraggableListNodes as Xa, DraggableList as Qa, useDebounce as eo } from "@epam/statgpt-ui-components";
6
+ import { IconRefresh as to, IconPlayerStopFilled as no, IconCheck as ro, IconCopy as Pi, IconPlus as Vi, IconSearch as Gi, IconCircleFilled as io, IconExternalLink as Hi, IconX as Bi, IconRotate as so, IconPointFilled as ao } from "@tabler/icons-react";
7
7
  import V from "classnames";
8
- import { generateConversationId as Wi, InvitationType as ao, getSharedConversationsRequest as ji, ShareTarget as zi, AttachmentType as Ie, ERROR_CONTEXT_KIND as Tn, DIAL_ERROR_TYPES as Ui, DIAL_ERROR_CODES as oo, CUSTOM_VIEW_STATE_KEY as fn, mergeMessages as lo, streamChatResponse as co, isRateLimitStillActive as uo, getRateLimitRestoreDate as ho, formatDateTime as fo } from "@epam/statgpt-dial-toolkit";
9
- import { SHARE_CONVERSATION_ROUTE as $i, cleanConversationNames as mn, CalendarResolution as xt, getTimePeriod as Rt, CUSTOM_PERIOD as At, Locale as qe, QueryFilterType as _t, defaultFormatNumbers as Ji, formatNumberBySign as Yi, linkifyText as mo, getConversationNavPath as go, getConversationAttachmentUrls as po, replaceConversationAttachmentUrls as wo, HTTP_ERROR_CODES as Pt, HttpError as gn, isHttpError as vo } from "@epam/statgpt-shared-toolkit";
10
- import { transformSharedConversations as bo } from "@epam/statgpt-conversation-list";
8
+ import { generateConversationId as Wi, InvitationType as oo, getSharedConversationsRequest as ji, ShareTarget as zi, AttachmentType as Ie, ERROR_CONTEXT_KIND as Tn, DIAL_ERROR_TYPES as Ui, DIAL_ERROR_CODES as lo, CUSTOM_VIEW_STATE_KEY as fn, mergeMessages as co, streamChatResponse as uo, isRateLimitStillActive as ho, getRateLimitRestoreDate as fo, formatDateTime as mo } from "@epam/statgpt-dial-toolkit";
9
+ import { SHARE_CONVERSATION_ROUTE as $i, cleanConversationNames as mn, CalendarResolution as xt, getTimePeriod as Rt, CUSTOM_PERIOD as At, Locale as qe, QueryFilterType as _t, defaultFormatNumbers as Ji, formatNumberBySign as Yi, linkifyText as go, getConversationNavPath as po, getConversationAttachmentUrls as wo, replaceConversationAttachmentUrls as vo, HTTP_ERROR_CODES as Pt, HttpError as gn, isHttpError as bo } from "@epam/statgpt-shared-toolkit";
10
+ import { transformSharedConversations as Co } from "@epam/statgpt-conversation-list";
11
11
  import Ki from "react-markdown";
12
12
  import qi from "remark-gfm";
13
- import { isQuarterly as Vt, isMonthly as Gt, findCodelistByDimension as St, getAvailableCodes as Co, DimensionType as yo, getDimensionTitle as Zi, getAnnotationPeriod as Xi, getFilteredItemsWithParents as So, getAvailableCodesFromConstrains as En, generateShortUrn as lt, SeriesFilterOperator as pn, GET_v3_FILTER_AND as Do, getTimeRangeFromAttachment as Mo, getQueryTimePeriodFilters as Qi, getTimeSeriesFilterKey as Dt, TIME_PERIOD as ct, getTimeSeriesCount as es, SdmxDataFormat as on, FileColumnsAttribute as ln, DownloadType as Ht, getTimeQueryFilter as ko, getTimeDimension as No, getLocalizedName as Ne, getDimensions as He, getConcept as ts, getStructureComponentsMap as xn, getLastUpdatedTime as Ao, getArtifactByUrnWithWildCard as To, getAdditionalColumns as Eo, getTimePeriods as qt, isYearly as wn, isSemiAnnually as Qr, isWeekly as ei, isDaily as ti, sortPeriods as Zt, FREQUENCY_DIMENSION_ID as xo, Periods as cn, getParsedResponse as Io, getFiltersDtoFromDataQuery as Lo, getStructureDimensions as vn, getFiltersDtoMapFromDataQuery as Oo } from "@epam/statgpt-sdmx-toolkit";
14
- import { FixedSizeList as Fo } from "react-window";
15
- import Ro from "react-virtualized-auto-sizer";
16
- import { useFloating as ns, autoUpdate as _o, offset as Po, flip as Vo, shift as Go, arrow as Ho, useClick as Bo, useInteractions as rs, FloatingPortal as Wo, useHover as jo, safePolygon as zo } from "@floating-ui/react";
17
- import { ModuleRegistry as Uo, AllCommunityModule as $o } from "ag-grid-community";
18
- import { isEqual as Jo, cloneDeep as Yo, merge as Ko } from "lodash";
13
+ import { isQuarterly as Vt, isMonthly as Gt, findCodelistByDimension as St, getAvailableCodes as yo, DimensionType as So, getDimensionTitle as Zi, getAnnotationPeriod as Xi, getFilteredItemsWithParents as Do, getAvailableCodesFromConstrains as En, generateShortUrn as lt, SeriesFilterOperator as pn, GET_v3_FILTER_AND as Mo, getTimeRangeFromAttachment as ko, getQueryTimePeriodFilters as Qi, getTimeSeriesFilterKey as Dt, TIME_PERIOD as ct, getTimeSeriesCount as es, SdmxDataFormat as on, FileColumnsAttribute as ln, DownloadType as Ht, getTimeQueryFilter as No, getTimeDimension as Ao, getLocalizedName as Ne, getDimensions as He, getConcept as ts, getStructureComponentsMap as xn, getLastUpdatedTime as To, getArtifactByUrnWithWildCard as Eo, getAdditionalColumns as xo, getTimePeriods as qt, isYearly as wn, isSemiAnnually as Qr, isWeekly as ei, isDaily as ti, sortPeriods as Zt, FREQUENCY_DIMENSION_ID as Io, Periods as cn, getParsedResponse as Lo, getFiltersDtoFromDataQuery as Oo, getStructureDimensions as vn, getFiltersDtoMapFromDataQuery as Fo } from "@epam/statgpt-sdmx-toolkit";
14
+ import { FixedSizeList as Ro } from "react-window";
15
+ import _o from "react-virtualized-auto-sizer";
16
+ import { useFloating as ns, autoUpdate as Po, offset as Vo, flip as Go, shift as Ho, arrow as Bo, useClick as Wo, useInteractions as rs, FloatingPortal as jo, useHover as zo, safePolygon as Uo } from "@floating-ui/react";
17
+ import { ModuleRegistry as $o, AllCommunityModule as Jo } from "ag-grid-community";
18
+ import { isEqual as Yo, cloneDeep as Ko, merge as qo } from "lodash";
19
19
  import is from "echarts-for-react";
20
20
  import { AgGridReact as In } from "ag-grid-react";
21
- import { extendTailwindMerge as qo } from "tailwind-merge";
22
- import Zo from "@monaco-editor/react";
23
- import { isValid as Xo, format as Qo } from "date-fns";
21
+ import { extendTailwindMerge as Zo } from "tailwind-merge";
22
+ import Xo from "@monaco-editor/react";
23
+ import { isValid as Qo, format as el } from "date-fns";
24
24
  const ss = et(
25
25
  void 0
26
26
  ), dm = ({
@@ -60,7 +60,7 @@ const ss = et(
60
60
  children: e
61
61
  }
62
62
  );
63
- }, el = () => {
63
+ }, tl = () => {
64
64
  const e = Ke(as);
65
65
  if (e === void 0)
66
66
  throw new Error(
@@ -111,7 +111,7 @@ const cs = et(
111
111
  throw new Error("useOnboarding must be used within a OnboardingProvider");
112
112
  return e;
113
113
  };
114
- var bn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(bn || {}), Ln = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Ln || {}), tl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(tl || {}), Cn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(Cn || {});
114
+ var bn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(bn || {}), Ln = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Ln || {}), nl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(nl || {}), Cn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(Cn || {});
115
115
  const ds = ({
116
116
  inProcess: e,
117
117
  disabled: t,
@@ -133,20 +133,20 @@ const ds = ({
133
133
  ), m = (S) => {
134
134
  e || t || (f(""), a(S));
135
135
  }, b = (S) => {
136
- t || S.key === ja.Enter && !S.shiftKey && (c ? o?.() : m(h.trim()));
136
+ t || S.key === za.Enter && !S.shiftKey && (c ? o?.() : m(h.trim()));
137
137
  }, w = () => t ? null : c ? /* @__PURE__ */ d(
138
138
  Ue,
139
139
  {
140
140
  buttonClassName: "input-for-ask-button",
141
141
  onClick: () => o?.(),
142
- icon: u || /* @__PURE__ */ d(eo, {})
142
+ icon: u || /* @__PURE__ */ d(to, {})
143
143
  }
144
144
  ) : h ? e ? /* @__PURE__ */ d(
145
145
  Ue,
146
146
  {
147
147
  buttonClassName: "input-for-ask-button",
148
148
  onClick: () => l?.(),
149
- icon: /* @__PURE__ */ d(to, {})
149
+ icon: /* @__PURE__ */ d(no, {})
150
150
  }
151
151
  ) : /* @__PURE__ */ d(
152
152
  Ue,
@@ -170,23 +170,23 @@ const ds = ({
170
170
  iconAfterInput: w()
171
171
  }
172
172
  );
173
- }, ni = 160, nl = ':;,=/{}%&\\"', rl = new RegExp(
174
- `[${nl}]|(\r
173
+ }, ni = 160, rl = ':;,=/{}%&\\"', il = new RegExp(
174
+ `[${rl}]|(\r
175
175
  |
176
176
  |\r| )|[\0-]`,
177
177
  "gm"
178
- ), il = (e, t, n, r) => ({
179
- name: sl(
178
+ ), sl = (e, t, n, r) => ({
179
+ name: al(
180
180
  r || `${n} ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`
181
181
  ),
182
182
  folderId: `${e}/${t}`,
183
183
  prompt: r
184
- }), sl = (e) => {
184
+ }), al = (e) => {
185
185
  const t = e?.replace(/\r\n|\r/gm, `
186
186
  `).split(`
187
- `).map((r) => r.replace(rl, " ").trim()).filter(Boolean)[0] ?? "";
187
+ `).map((r) => r.replace(il, " ").trim()).filter(Boolean)[0] ?? "";
188
188
  return (t.length > ni ? t.substring(0, ni) : t).trim();
189
- }, al = (e, t, n, r, i, s) => {
189
+ }, ol = (e, t, n, r, i, s) => {
190
190
  const c = `${e}/${t}`;
191
191
  return {
192
192
  name: n,
@@ -206,7 +206,7 @@ const ds = ({
206
206
  }
207
207
  };
208
208
  };
209
- var ol = Object.defineProperty, Bt = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, hs = Object.prototype.propertyIsEnumerable, ri = (e, t, n) => t in e ? ol(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yn = (e, t) => {
209
+ var ll = Object.defineProperty, Bt = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, hs = Object.prototype.propertyIsEnumerable, ri = (e, t, n) => t in e ? ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yn = (e, t) => {
210
210
  for (var n in t || (t = {}))
211
211
  us.call(t, n) && ri(e, n, t[n]);
212
212
  if (Bt)
@@ -758,12 +758,12 @@ var it;
758
758
  })(e.QrSegment || (e.QrSegment = {}));
759
759
  })(it || (it = {}));
760
760
  var at = it;
761
- var ll = {
761
+ var cl = {
762
762
  L: at.QrCode.Ecc.LOW,
763
763
  M: at.QrCode.Ecc.MEDIUM,
764
764
  Q: at.QrCode.Ecc.QUARTILE,
765
765
  H: at.QrCode.Ecc.HIGH
766
- }, fs = 128, ms = "L", gs = "#FFFFFF", ps = "#000000", ws = !1, vs = 1, cl = 4, dl = 0, ul = 0.1;
766
+ }, fs = 128, ms = "L", gs = "#FFFFFF", ps = "#000000", ws = !1, vs = 1, dl = 4, ul = 0, hl = 0.1;
767
767
  function bs(e, t = 0) {
768
768
  const n = [];
769
769
  return e.forEach(function(r, i) {
@@ -790,10 +790,10 @@ function bs(e, t = 0) {
790
790
  function Cs(e, t) {
791
791
  return e.slice().map((n, r) => r < t.y || r >= t.y + t.h ? n : n.map((i, s) => s < t.x || s >= t.x + t.w ? i : !1));
792
792
  }
793
- function hl(e, t, n, r) {
793
+ function fl(e, t, n, r) {
794
794
  if (r == null)
795
795
  return null;
796
- const i = e.length + n * 2, s = Math.floor(t * ul), c = i / t, u = (r.width || s) * c, a = (r.height || s) * c, l = r.x == null ? e.length / 2 - u / 2 : r.x * c, o = r.y == null ? e.length / 2 - a / 2 : r.y * c, h = r.opacity == null ? 1 : r.opacity;
796
+ const i = e.length + n * 2, s = Math.floor(t * hl), c = i / t, u = (r.width || s) * c, a = (r.height || s) * c, l = r.x == null ? e.length / 2 - u / 2 : r.x * c, o = r.y == null ? e.length / 2 - a / 2 : r.y * c, h = r.opacity == null ? 1 : r.opacity;
797
797
  let f = null;
798
798
  if (r.excavate) {
799
799
  let m = Math.floor(l), b = Math.floor(o), w = Math.ceil(u + l - m), S = Math.ceil(a + o - b);
@@ -802,8 +802,8 @@ function hl(e, t, n, r) {
802
802
  const g = r.crossOrigin;
803
803
  return { x: l, y: o, h: a, w: u, excavation: f, opacity: h, crossOrigin: g };
804
804
  }
805
- function fl(e, t) {
806
- return t != null ? Math.max(Math.floor(t), 0) : e ? cl : dl;
805
+ function ml(e, t) {
806
+ return t != null ? Math.max(Math.floor(t), 0) : e ? dl : ul;
807
807
  }
808
808
  function ys({
809
809
  value: e,
@@ -819,7 +819,7 @@ function ys({
819
819
  const m = (Array.isArray(e) ? e : [e]).reduce((b, w) => (b.push(...at.QrSegment.makeSegments(w)), b), []);
820
820
  return at.QrCode.encodeSegments(
821
821
  m,
822
- ll[t],
822
+ cl[t],
823
823
  n,
824
824
  void 0,
825
825
  void 0,
@@ -828,7 +828,7 @@ function ys({
828
828
  }, [e, t, n, u]);
829
829
  const { cells: l, margin: o, numCells: h, calculatedImageSettings: f } = De.useMemo(() => {
830
830
  let g = a.getModules();
831
- const m = fl(r, i), b = g.length + m * 2, w = hl(
831
+ const m = ml(r, i), b = g.length + m * 2, w = fl(
832
832
  g,
833
833
  c,
834
834
  m,
@@ -849,14 +849,14 @@ function ys({
849
849
  calculatedImageSettings: f
850
850
  };
851
851
  }
852
- var ml = (function() {
852
+ var gl = (function() {
853
853
  try {
854
854
  new Path2D().addPath(new Path2D());
855
855
  } catch {
856
856
  return !1;
857
857
  }
858
858
  return !0;
859
- })(), gl = De.forwardRef(
859
+ })(), pl = De.forwardRef(
860
860
  function(t, n) {
861
861
  const r = t, {
862
862
  value: i,
@@ -909,7 +909,7 @@ var ml = (function() {
909
909
  const ae = window.devicePixelRatio || 1;
910
910
  P.height = P.width = s * ae;
911
911
  const q = s / k * ae;
912
- W.scale(q, q), W.fillStyle = u, W.fillRect(0, 0, k, k), W.fillStyle = a, ml ? W.fill(new Path2D(bs(H, x))) : O.forEach(function(K, Y) {
912
+ W.scale(q, q), W.fillStyle = u, W.fillRect(0, 0, k, k), W.fillStyle = a, gl ? W.fill(new Path2D(bs(H, x))) : O.forEach(function(K, Y) {
913
913
  K.forEach(function(de, fe) {
914
914
  de && W.fillRect(fe + x, Y + x, 1, 1);
915
915
  });
@@ -950,7 +950,7 @@ var ml = (function() {
950
950
  ), G);
951
951
  }
952
952
  );
953
- gl.displayName = "QRCodeCanvas";
953
+ pl.displayName = "QRCodeCanvas";
954
954
  var Ss = De.forwardRef(
955
955
  function(t, n) {
956
956
  const r = t, {
@@ -1029,25 +1029,25 @@ var Ss = De.forwardRef(
1029
1029
  }
1030
1030
  );
1031
1031
  Ss.displayName = "QRCodeSVG";
1032
- const pl = (e, t) => ({
1033
- invitationType: ao.LINK,
1032
+ const wl = (e, t) => ({
1033
+ invitationType: oo.LINK,
1034
1034
  resources: [
1035
1035
  {
1036
1036
  url: `conversations/${encodeURI(e)}`
1037
1037
  },
1038
1038
  ...t
1039
1039
  ]
1040
- }), wl = (e) => {
1040
+ }), vl = (e) => {
1041
1041
  const t = e?.invitationLink?.split("/").at(-1) || "";
1042
1042
  return `/${$i}/${t}`;
1043
- }, vl = (e, t) => t?.find((n) => {
1043
+ }, bl = (e, t) => t?.find((n) => {
1044
1044
  const r = e?.id?.split("/")?.pop(), i = n?.url?.split("/")?.pop() || "";
1045
1045
  return i === r || decodeURI(i) === r;
1046
- }), bl = (e) => e?.messages?.filter(
1046
+ }), Cl = (e) => e?.messages?.filter(
1047
1047
  (n) => !!n?.custom_content?.attachments
1048
1048
  )?.flatMap((n) => n?.custom_content?.attachments?.map((r) => ({
1049
1049
  url: r?.url || ""
1050
- })) || [])?.filter((n) => !!n?.url) || [], Cl = ({
1050
+ })) || [])?.filter((n) => !!n?.url) || [], yl = ({
1051
1051
  conversation: e,
1052
1052
  locale: t,
1053
1053
  onCloseModal: n,
@@ -1082,14 +1082,14 @@ const pl = (e, t) => ({
1082
1082
  I(() => {
1083
1083
  (async () => {
1084
1084
  try {
1085
- const Y = decodeURI(e ? e?.id : `${C?.[0]}/${t}/${C?.[1]}`), de = `${decodeURI(Y)}`, fe = await i?.(de), j = pl(
1085
+ const Y = decodeURI(e ? e?.id : `${C?.[0]}/${t}/${C?.[1]}`), de = `${decodeURI(Y)}`, fe = await i?.(de), j = wl(
1086
1086
  Y,
1087
- bl(fe)
1087
+ Cl(fe)
1088
1088
  ), te = await s?.(j), re = await w?.(
1089
1089
  ji(zi.OTHERS)
1090
1090
  );
1091
- te && re && (M(!0), E(wl(te)), O(
1092
- vl(
1091
+ te && re && (M(!0), E(vl(te)), O(
1092
+ bl(
1093
1093
  e,
1094
1094
  re?.resources
1095
1095
  )
@@ -1120,7 +1120,7 @@ const pl = (e, t) => ({
1120
1120
  Me,
1121
1121
  {
1122
1122
  buttonClassName: L ? "text-button-secondary" : "text-button-primary",
1123
- iconBefore: L ? /* @__PURE__ */ d(no, { width: 20, height: 20 }) : /* @__PURE__ */ d(Pi, { width: 20, height: 20 }),
1123
+ iconBefore: L ? /* @__PURE__ */ d(ro, { width: 20, height: 20 }) : /* @__PURE__ */ d(Pi, { width: 20, height: 20 }),
1124
1124
  title: L ? f ?? "Copied" : h ?? "Copy link",
1125
1125
  disabled: L,
1126
1126
  onClick: Z
@@ -1210,7 +1210,7 @@ const pl = (e, t) => ({
1210
1210
  onClick: s
1211
1211
  }
1212
1212
  ),
1213
- r === ne.Opened && /* @__PURE__ */ d(Cl, { onCloseModal: c, ...n })
1213
+ r === ne.Opened && /* @__PURE__ */ d(yl, { onCloseModal: c, ...n })
1214
1214
  ] });
1215
1215
  }, Ms = ({
1216
1216
  conversation: e,
@@ -1297,7 +1297,7 @@ const pl = (e, t) => ({
1297
1297
  ]
1298
1298
  }
1299
1299
  ) }, i.title));
1300
- }, yl = ({
1300
+ }, Sl = ({
1301
1301
  titles: e,
1302
1302
  messageContent: t,
1303
1303
  choiceButtons: n,
@@ -1346,7 +1346,7 @@ const pl = (e, t) => ({
1346
1346
  )
1347
1347
  ] })
1348
1348
  ] })
1349
- ] }), Sl = ({
1349
+ ] }), Dl = ({
1350
1350
  titles: e,
1351
1351
  openNewConversation: t
1352
1352
  }) => /* @__PURE__ */ v("div", { className: "text-center bg-accent-300 body-3 p-2", children: [
@@ -1362,7 +1362,7 @@ const pl = (e, t) => ({
1362
1362
  ]
1363
1363
  }
1364
1364
  )
1365
- ] }), Dl = ({ firstLine: e, secondLine: t }) => {
1365
+ ] }), Ml = ({ firstLine: e, secondLine: t }) => {
1366
1366
  const n = e != null && e.trim() !== "", r = t != null && t.trim() !== "";
1367
1367
  return /* @__PURE__ */ v(
1368
1368
  "div",
@@ -1420,14 +1420,14 @@ const pl = (e, t) => ({
1420
1420
  }
1421
1421
  y(!0);
1422
1422
  try {
1423
- const H = T ? al(
1423
+ const H = T ? ol(
1424
1424
  g,
1425
1425
  h,
1426
1426
  i?.onboardingTitle ?? "Introducing the AI assistant",
1427
1427
  a?.properties?.choice?.description ?? "",
1428
1428
  P,
1429
1429
  W
1430
- ) : il(
1430
+ ) : sl(
1431
1431
  g,
1432
1432
  h,
1433
1433
  i.newChat ?? "New chat",
@@ -1452,7 +1452,7 @@ const pl = (e, t) => ({
1452
1452
  }
1453
1453
  o(mn(Z)), f(
1454
1454
  mn(
1455
- bo(ae, h)
1455
+ Co(ae, h)
1456
1456
  )
1457
1457
  ), l($.folderId, $.id);
1458
1458
  } catch (H) {
@@ -1528,7 +1528,7 @@ const pl = (e, t) => ({
1528
1528
  "tags-container"
1529
1529
  ),
1530
1530
  children: e.map((W) => /* @__PURE__ */ d(
1531
- za,
1531
+ Ua,
1532
1532
  {
1533
1533
  title: W.title,
1534
1534
  text: W[hn.DialWidgetOptions]?.populateText,
@@ -1543,7 +1543,7 @@ const pl = (e, t) => ({
1543
1543
  };
1544
1544
  return /* @__PURE__ */ v("div", { className: "flex flex-col h-full w-full", children: [
1545
1545
  S || u && b ? /* @__PURE__ */ d(Pe, {}) : T ? /* @__PURE__ */ d(
1546
- yl,
1546
+ Sl,
1547
1547
  {
1548
1548
  titles: i,
1549
1549
  messageContent: a?.properties?.choice?.description || "",
@@ -1569,33 +1569,33 @@ const pl = (e, t) => ({
1569
1569
  G()
1570
1570
  ] }),
1571
1571
  T && /* @__PURE__ */ d(
1572
- Sl,
1572
+ Dl,
1573
1573
  {
1574
1574
  titles: i,
1575
1575
  openNewConversation: () => E(!1)
1576
1576
  }
1577
1577
  ),
1578
1578
  !T && /* @__PURE__ */ d(
1579
- Dl,
1579
+ Ml,
1580
1580
  {
1581
1581
  firstLine: i.footerFirstLine,
1582
1582
  secondLine: i.footerSecondLine
1583
1583
  }
1584
1584
  )
1585
1585
  ] });
1586
- }, On = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Ml = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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" })), kl = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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" }));
1586
+ }, On = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), kl = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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" })), Nl = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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 As(e) {
1588
1588
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1589
1589
  }
1590
- var vt = { exports: {} }, Nl = vt.exports, ii;
1591
- function Al() {
1590
+ var vt = { exports: {} }, Al = vt.exports, ii;
1591
+ function Tl() {
1592
1592
  return ii || (ii = 1, (function(e, t) {
1593
1593
  (function(n, r) {
1594
1594
  r(t);
1595
- })(Nl, (function(n) {
1595
+ })(Al, (function(n) {
1596
1596
  var r = function() {
1597
1597
  return r = Object.assign || function(je) {
1598
- for (var Nt, sn = 1, Ha = arguments.length; sn < Ha; sn++) {
1598
+ for (var Nt, sn = 1, Ba = arguments.length; sn < Ba; sn++) {
1599
1599
  Nt = arguments[sn];
1600
1600
  for (var an in Nt) Object.prototype.hasOwnProperty.call(Nt, an) && (je[an] = Nt[an]);
1601
1601
  }
@@ -3700,9 +3700,9 @@ function Al() {
3700
3700
  time_24hr: !0
3701
3701
  };
3702
3702
  rr.l10ns.mn = ir, rr.l10ns;
3703
- var Pa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
3703
+ var Va = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
3704
3704
  l10ns: {}
3705
- }, Va = {
3705
+ }, Ga = {
3706
3706
  weekdays: {
3707
3707
  shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
3708
3708
  longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"]
@@ -3742,7 +3742,7 @@ function Al() {
3742
3742
  return "";
3743
3743
  }
3744
3744
  };
3745
- Pa.l10ns;
3745
+ Va.l10ns;
3746
3746
  var sr = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
3747
3747
  l10ns: {}
3748
3748
  }, ar = {
@@ -4968,7 +4968,7 @@ function Al() {
4968
4968
  toggleTitle: "點擊切換 12/24 小時時制"
4969
4969
  };
4970
4970
  Kr.l10ns.zh_tw = qr, Kr.l10ns;
4971
- var Ga = {
4971
+ var Ha = {
4972
4972
  ar: s,
4973
4973
  at: u,
4974
4974
  az: l,
@@ -5010,7 +5010,7 @@ function Al() {
5010
5010
  lv: er,
5011
5011
  mk: nr,
5012
5012
  mn: ir,
5013
- ms: Va,
5013
+ ms: Ga,
5014
5014
  my: ar,
5015
5015
  nl: lr,
5016
5016
  nn: dr,
@@ -5035,18 +5035,18 @@ function Al() {
5035
5035
  uz: Wr,
5036
5036
  uz_latn: zr
5037
5037
  };
5038
- n.default = Ga, Object.defineProperty(n, "__esModule", { value: !0 });
5038
+ n.default = Ha, Object.defineProperty(n, "__esModule", { value: !0 });
5039
5039
  }));
5040
5040
  })(vt, vt.exports)), vt.exports;
5041
5041
  }
5042
- var Tl = Al();
5043
- const El = /* @__PURE__ */ As(Tl);
5044
- var It = { exports: {} }, xl = It.exports, si;
5045
- function Il() {
5042
+ var El = Tl();
5043
+ const xl = /* @__PURE__ */ As(El);
5044
+ var It = { exports: {} }, Il = It.exports, si;
5045
+ function Ll() {
5046
5046
  return si || (si = 1, (function(e, t) {
5047
5047
  (function(n, r) {
5048
5048
  e.exports = r();
5049
- })(xl, (function() {
5049
+ })(Il, (function() {
5050
5050
  var n = function() {
5051
5051
  return n = Object.assign || function(l) {
5052
5052
  for (var o, h = 1, f = arguments.length; h < f; h++) {
@@ -5222,11 +5222,11 @@ function Il() {
5222
5222
  }));
5223
5223
  })(It)), It.exports;
5224
5224
  }
5225
- var Ll = Il();
5226
- const Ol = /* @__PURE__ */ As(Ll), ai = (e, t, n, r, i = !1, s) => {
5225
+ var Ol = Ll();
5226
+ const Fl = /* @__PURE__ */ As(Ol), ai = (e, t, n, r, i = !1, s) => {
5227
5227
  const c = {
5228
- ...El[r]
5229
- }, u = Ol;
5228
+ ...xl[r]
5229
+ }, u = Fl;
5230
5230
  i && (c.firstDayOfWeek = 1);
5231
5231
  const a = {
5232
5232
  minDate: n === xt.MONTH ? new Date(e.getFullYear(), e.getMonth()) : e,
@@ -5249,11 +5249,11 @@ const Ol = /* @__PURE__ */ As(Ll), ai = (e, t, n, r, i = !1, s) => {
5249
5249
  };
5250
5250
  }, oi = (e) => {
5251
5251
  e?.setMinutes(e.getMinutes() - e.getTimezoneOffset());
5252
- }, Fl = {
5252
+ }, Rl = {
5253
5253
  year: "numeric",
5254
5254
  month: "short",
5255
5255
  day: "numeric"
5256
- }, Wt = (e, t) => e?.toLocaleDateString(t, Fl) || "", Rl = (e, t) => {
5256
+ }, Wt = (e, t) => e?.toLocaleDateString(t, Rl) || "", _l = (e, t) => {
5257
5257
  const { startPeriod: n, endPeriod: r } = e;
5258
5258
  if (!t.startPeriod && !t.endPeriod && n && r)
5259
5259
  return {
@@ -5272,7 +5272,7 @@ const Ol = /* @__PURE__ */ As(Ll), ai = (e, t, n, r, i = !1, s) => {
5272
5272
  )
5273
5273
  ) : t.endPeriod;
5274
5274
  return { startPeriod: i, endPeriod: s };
5275
- }, _l = (e, t) => {
5275
+ }, Pl = (e, t) => {
5276
5276
  const { endPeriod: n } = e, r = n?.getFullYear() || (/* @__PURE__ */ new Date()).getFullYear(), i = r + +t, s = new Date(
5277
5277
  +t < 0 ? r : i,
5278
5278
  n?.getMonth() || 0,
@@ -5287,11 +5287,11 @@ const Ol = /* @__PURE__ */ As(Ll), ai = (e, t, n, r, i = !1, s) => {
5287
5287
  ),
5288
5288
  endPeriod: s
5289
5289
  };
5290
- }, Pl = (e) => ({
5290
+ }, Vl = (e) => ({
5291
5291
  quarterly: e?.quarterly || "Q",
5292
5292
  monthly: e?.monthly || "M"
5293
5293
  }), Ts = (e, t) => {
5294
- const n = Pl(t);
5294
+ const n = Vl(t);
5295
5295
  return Vt(e) && n?.quarterly ? e?.replace(/Q/g, n?.quarterly) : Gt(e) && n?.monthly ? e?.replace(/M/g, n?.monthly) : e;
5296
5296
  };
5297
5297
  var dt = /* @__PURE__ */ ((e) => (e.FLAT_LIST = "FLAT_LIST", e.HIERARCHY = "HIERARCHY", e))(dt || {});
@@ -5300,7 +5300,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5300
5300
  t?.codelists,
5301
5301
  t?.conceptSchemes,
5302
5302
  s
5303
- )?.codes, u = Co(
5303
+ )?.codes, u = yo(
5304
5304
  s,
5305
5305
  n,
5306
5306
  c,
@@ -5310,15 +5310,15 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5310
5310
  id: s?.id,
5311
5311
  title: Zi(t?.conceptSchemes, s, r),
5312
5312
  dimensionValues: u,
5313
- isTimeDimension: s?.type === yo.TIME_DIMENSION,
5313
+ isTimeDimension: s?.type === So.TIME_DIMENSION,
5314
5314
  isHierarchical: a,
5315
5315
  displayMode: a ? dt.HIERARCHY : dt.FLAT_LIST,
5316
5316
  datasetUrn: i,
5317
5317
  filterType: "dataset"
5318
5318
  };
5319
- }) || [], Vl = (e) => e?.filterType === "shared", Dn = (e) => {
5319
+ }) || [], Gl = (e) => e?.filterType === "shared", Dn = (e) => {
5320
5320
  if (e?.id)
5321
- return Vl(e) ? `shared:${e.id}` : e?.datasetUrn ? `${e.datasetUrn}:${e.id}` : e.id;
5321
+ return Gl(e) ? `shared:${e.id}` : e?.datasetUrn ? `${e.datasetUrn}:${e.id}` : e.id;
5322
5322
  }, Ye = (e, t) => Dn(e) === Dn(t), jt = (e, t) => e?.map(
5323
5323
  (n) => t && Ye(n, t) ? { ...t, isSelectedFilter: !0 } : {
5324
5324
  ...n,
@@ -5355,7 +5355,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5355
5355
  n?.[0]?.annotations
5356
5356
  ), a = c[0] ? Rt(c[0]) : null, l = c[1] ? Rt(c[1]) : null;
5357
5357
  let o = u;
5358
- return a && l && (o = u ? Rl(
5358
+ return a && l && (o = u ? _l(
5359
5359
  { startPeriod: a, endPeriod: l },
5360
5360
  u
5361
5361
  ) : { startPeriod: a, endPeriod: l }), {
@@ -5370,15 +5370,15 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5370
5370
  }), zt = (e) => e?.map((t) => ({
5371
5371
  ...t,
5372
5372
  isDisabled: !0
5373
- })), Gl = (e) => new Map(
5373
+ })), Hl = (e) => new Map(
5374
5374
  e?.map((t) => [
5375
5375
  t.id,
5376
5376
  { ...t, children: [] }
5377
5377
  ])
5378
- ), Hl = (e) => {
5378
+ ), Bl = (e) => {
5379
5379
  if (!e)
5380
5380
  return [];
5381
- const t = Gl(e), n = [];
5381
+ const t = Hl(e), n = [];
5382
5382
  return e.forEach((r) => {
5383
5383
  if (r && r.parent) {
5384
5384
  const i = t.get(r.parent), s = t.get(r.id);
@@ -5388,7 +5388,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5388
5388
  i && n.push(i);
5389
5389
  }
5390
5390
  }), n;
5391
- }, Bl = (e, t = !1) => t ? `${e * Zr - Ua}px` : `${e * Zr}px`, bt = (e) => e?.children?.reduce(
5391
+ }, Wl = (e, t = !1) => t ? `${e * Zr - $a}px` : `${e * Zr}px`, bt = (e) => e?.children?.reduce(
5392
5392
  (t, n) => [
5393
5393
  ...t,
5394
5394
  n,
@@ -5398,7 +5398,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5398
5398
  ) || [], Tt = (e, t) => e ? e.map((n) => ({
5399
5399
  ...n,
5400
5400
  isSelectedValue: t
5401
- })) : [], Wl = (e) => {
5401
+ })) : [], jl = (e) => {
5402
5402
  const t = e.children?.every(
5403
5403
  (r) => r.isSelectedValue
5404
5404
  ), n = e.children?.every(
@@ -5426,7 +5426,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5426
5426
  { ...e, isSelectedValue: !1 },
5427
5427
  ...Tt(bt(e), !1)
5428
5428
  ];
5429
- }, jl = (e) => [
5429
+ }, zl = (e) => [
5430
5430
  {
5431
5431
  key: dt.HIERARCHY,
5432
5432
  title: e?.hierarchy || "Hierarchy"
@@ -5435,7 +5435,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5435
5435
  key: dt.FLAT_LIST,
5436
5436
  title: e?.flatList || "Flat list"
5437
5437
  }
5438
- ], zl = ({
5438
+ ], Ul = ({
5439
5439
  calendarResolution: e,
5440
5440
  timeRange: t,
5441
5441
  timeRangeOptions: n,
@@ -5512,7 +5512,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5512
5512
  onChange: () => {
5513
5513
  const { value: x } = E;
5514
5514
  S(x), x !== At && m(
5515
- x === 0 ? f : _l(f, x)
5515
+ x === 0 ? f : Pl(f, x)
5516
5516
  );
5517
5517
  },
5518
5518
  radioIcon: s
@@ -5545,7 +5545,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5545
5545
  )
5546
5546
  ] }) })
5547
5547
  ] });
5548
- }, Ul = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Ps = ({
5548
+ }, $l = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Ps = ({
5549
5549
  node: e,
5550
5550
  level: t = 1,
5551
5551
  checkboxIcon: n,
@@ -5558,7 +5558,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5558
5558
  u(!!e?.children?.length);
5559
5559
  }, [e]);
5560
5560
  const l = (o, h) => {
5561
- e?.children?.length ? i?.(Wl(e)) : r?.(o, h);
5561
+ e?.children?.length ? i?.(jl(e)) : r?.(o, h);
5562
5562
  };
5563
5563
  return /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
5564
5564
  /* @__PURE__ */ v(
@@ -5566,11 +5566,11 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5566
5566
  {
5567
5567
  className: "flex items-center",
5568
5568
  style: {
5569
- paddingLeft: Bl(t, c)
5569
+ paddingLeft: Wl(t, c)
5570
5570
  },
5571
5571
  children: [
5572
5572
  c && (e?.isExpanded ? /* @__PURE__ */ d(
5573
- Ul,
5573
+ $l,
5574
5574
  {
5575
5575
  className: a,
5576
5576
  onClick: () => s?.(e)
@@ -5608,7 +5608,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5608
5608
  o?.id
5609
5609
  )) })
5610
5610
  ] }, e?.id);
5611
- }, $l = ({
5611
+ }, Jl = ({
5612
5612
  filterValues: e,
5613
5613
  checkboxIcon: t,
5614
5614
  selectFilterValue: n,
@@ -5619,7 +5619,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5619
5619
  []
5620
5620
  );
5621
5621
  return I(() => {
5622
- c(Hl(e));
5622
+ c(Bl(e));
5623
5623
  }, [e]), s?.map((u) => /* @__PURE__ */ d(
5624
5624
  Ps,
5625
5625
  {
@@ -5631,7 +5631,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5631
5631
  },
5632
5632
  u?.id
5633
5633
  ));
5634
- }, Jl = ({
5634
+ }, Yl = ({
5635
5635
  style: e,
5636
5636
  filterValue: t,
5637
5637
  checkboxIcon: n,
@@ -5645,7 +5645,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5645
5645
  checkboxIcon: n,
5646
5646
  onChange: r
5647
5647
  }
5648
- ) }), Yl = Fo, li = 24, ci = 232, Kl = ({
5648
+ ) }), Kl = Ro, li = 24, ci = 232, ql = ({
5649
5649
  filterValues: e,
5650
5650
  checkboxIcon: t,
5651
5651
  isHierarchicalView: n,
@@ -5666,7 +5666,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5666
5666
  ),
5667
5667
  style: { height: u ? l + "px" : "100%" },
5668
5668
  children: n ? /* @__PURE__ */ d(
5669
- $l,
5669
+ Jl,
5670
5670
  {
5671
5671
  filterValues: e,
5672
5672
  checkboxIcon: t,
@@ -5674,15 +5674,15 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5674
5674
  selectHierarchicalNodes: s,
5675
5675
  expandHierarchicalValue: c
5676
5676
  }
5677
- ) : /* @__PURE__ */ d(Ro, { children: ({ width: o, height: h }) => /* @__PURE__ */ d(
5678
- Yl,
5677
+ ) : /* @__PURE__ */ d(_o, { children: ({ width: o, height: h }) => /* @__PURE__ */ d(
5678
+ Kl,
5679
5679
  {
5680
5680
  itemCount: e.length,
5681
5681
  itemSize: li,
5682
5682
  width: o,
5683
5683
  height: h,
5684
5684
  children: ({ index: f, style: g }) => /* @__PURE__ */ d(
5685
- Jl,
5685
+ Yl,
5686
5686
  {
5687
5687
  index: f,
5688
5688
  style: g,
@@ -5715,7 +5715,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5715
5715
  (C) => C?.name?.toLowerCase()?.includes(f?.toLowerCase())
5716
5716
  ) || [];
5717
5717
  b(
5718
- w ? So(
5718
+ w ? Do(
5719
5719
  e?.dimensionValues,
5720
5720
  y
5721
5721
  ) : y
@@ -5730,7 +5730,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5730
5730
  [g]
5731
5731
  );
5732
5732
  return /* @__PURE__ */ d(me, { children: e?.isTimeDimension && a ? /* @__PURE__ */ d(
5733
- zl,
5733
+ Ul,
5734
5734
  {
5735
5735
  titles: u,
5736
5736
  initialConstraints: a,
@@ -5773,7 +5773,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5773
5773
  }
5774
5774
  ),
5775
5775
  /* @__PURE__ */ d("div", { className: "flex flex-col mt-3 body-2 overflow-auto flex-1 min-h-0", children: /* @__PURE__ */ d(
5776
- Kl,
5776
+ ql,
5777
5777
  {
5778
5778
  filterValues: f ? m : e?.dimensionValues,
5779
5779
  checkboxIcon: t?.checkboxIcon,
@@ -5787,7 +5787,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5787
5787
  ]
5788
5788
  }
5789
5789
  ) });
5790
- }, ql = ({
5790
+ }, Zl = ({
5791
5791
  filter: e,
5792
5792
  onSelectFilter: t,
5793
5793
  onSelectDisplayMode: n,
@@ -5871,7 +5871,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5871
5871
  ),
5872
5872
  T ? null : /* @__PURE__ */ v("div", { className: "flex items-center gap-2 filters-facet-item-settings", children: [
5873
5873
  /* @__PURE__ */ d(
5874
- $a,
5874
+ Ja,
5875
5875
  {
5876
5876
  triggerButton: /* @__PURE__ */ d(
5877
5877
  Ue,
@@ -5880,12 +5880,12 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5880
5880
  "text-button-tertiary w-4 h-4 border-0 p-0",
5881
5881
  "filters-facet-item-icon"
5882
5882
  ),
5883
- icon: /* @__PURE__ */ d(kl, { width: 16, height: 16 }),
5883
+ icon: /* @__PURE__ */ d(Nl, { width: 16, height: 16 }),
5884
5884
  title: s?.displayOrder || "Display Order",
5885
5885
  disabled: !e?.isHierarchical
5886
5886
  }
5887
5887
  ),
5888
- options: jl(s),
5888
+ options: zl(s),
5889
5889
  selectedOption: e?.displayMode,
5890
5890
  disabled: !e?.isHierarchical,
5891
5891
  onOptionSelect: x
@@ -5898,7 +5898,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5898
5898
  "text-button-tertiary w-4 h-4 border-0 p-0",
5899
5899
  "filters-facet-item-icon"
5900
5900
  ),
5901
- icon: /* @__PURE__ */ d(Ml, { width: 16, height: 16 }),
5901
+ icon: /* @__PURE__ */ d(kl, { width: 16, height: 16 }),
5902
5902
  title: s?.reset || "Reset",
5903
5903
  onClick: (M) => {
5904
5904
  M.stopPropagation(), r?.(e);
@@ -5960,21 +5960,21 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
5960
5960
  dimensionValues: a
5961
5961
  };
5962
5962
  }) || [];
5963
- }, Zl = "COUNTRY", Xl = "FREQUENCY", di = () => (e, t) => {
5963
+ }, Xl = "COUNTRY", Ql = "FREQUENCY", di = () => (e, t) => {
5964
5964
  const n = e?.name?.trim()?.toLocaleLowerCase();
5965
- return n ? Ql(n) : ec(t || "", e.id);
5966
- }, Ql = (e) => `name:${e}`, ec = (e, t) => `dataset:${e}:id:${t}`, Gs = [
5965
+ return n ? ec(n) : tc(t || "", e.id);
5966
+ }, ec = (e) => `name:${e}`, tc = (e, t) => `dataset:${e}:id:${t}`, Gs = [
5967
5967
  {
5968
- id: Zl,
5968
+ id: Xl,
5969
5969
  getMergedValueKey: di()
5970
5970
  },
5971
5971
  {
5972
- id: Xl,
5972
+ id: Ql,
5973
5973
  getMergedValueKey: di()
5974
5974
  }
5975
- ], tc = new Map(
5975
+ ], nc = new Map(
5976
5976
  Gs.map((e) => [e.id, e])
5977
- ), nc = (e) => e ? tc.get(e) : void 0, Hs = (e) => !!nc(e), rc = (e) => e?.filterType === "shared" && Hs(e?.id), ic = (e, t) => {
5977
+ ), rc = (e) => e ? nc.get(e) : void 0, Hs = (e) => !!rc(e), ic = (e) => e?.filterType === "shared" && Hs(e?.id), sc = (e, t) => {
5978
5978
  const n = /* @__PURE__ */ new Map();
5979
5979
  return e.forEach((r) => {
5980
5980
  r.dimensionValues?.forEach((i) => {
@@ -6015,11 +6015,11 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6015
6015
  ...s[0],
6016
6016
  datasetUrn: void 0,
6017
6017
  filterType: "shared",
6018
- dimensionValues: ic(s, i)
6018
+ dimensionValues: sc(s, i)
6019
6019
  } : [];
6020
6020
  }), ...n];
6021
- }, sc = (e) => {
6022
- if (!rc(e))
6021
+ }, ac = (e) => {
6022
+ if (!ic(e))
6023
6023
  return [e];
6024
6024
  const t = /* @__PURE__ */ new Map();
6025
6025
  return e.dimensionValues?.forEach((n) => {
@@ -6045,7 +6045,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6045
6045
  });
6046
6046
  });
6047
6047
  }), Array.from(t.values());
6048
- }, ac = (e, t) => e?.dimensionsMap ? new Map(
6048
+ }, oc = (e, t) => e?.dimensionsMap ? new Map(
6049
6049
  Array.from(e.dimensionsMap.entries()).map(
6050
6050
  ([n, r]) => [
6051
6051
  n,
@@ -6058,7 +6058,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6058
6058
  )
6059
6059
  ]
6060
6060
  )
6061
- ) : /* @__PURE__ */ new Map(), oc = (e, t) => new Map(
6061
+ ) : /* @__PURE__ */ new Map(), lc = (e, t) => new Map(
6062
6062
  Array.from(e?.dimensionsMap?.entries() || []).map(
6063
6063
  ([n, r]) => {
6064
6064
  const i = r?.map((s) => {
@@ -6080,11 +6080,11 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6080
6080
  return [n, i];
6081
6081
  }
6082
6082
  )
6083
- ), lc = (e, t) => {
6084
- const n = ac(
6083
+ ), cc = (e, t) => {
6084
+ const n = oc(
6085
6085
  e,
6086
6086
  t
6087
- ), r = oc(
6087
+ ), r = lc(
6088
6088
  e,
6089
6089
  t
6090
6090
  );
@@ -6099,12 +6099,12 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6099
6099
  }
6100
6100
  )
6101
6101
  );
6102
- }, cc = (e, t, n) => Bs(
6102
+ }, dc = (e, t, n) => Bs(
6103
6103
  t?.flatMap((r) => {
6104
6104
  const i = r?.urn, s = e?.get(i) || [], c = n?.get(i) || [];
6105
6105
  return _s(s, r, c);
6106
6106
  }) || []
6107
- ), Mn = (e) => e?.flatMap((t) => sc(t))?.reduce((t, n) => {
6107
+ ), Mn = (e) => e?.flatMap((t) => ac(t))?.reduce((t, n) => {
6108
6108
  const r = n?.datasetUrn || "";
6109
6109
  return t.has(r) || t.set(r, []), t?.get(r)?.push(n), t;
6110
6110
  }, /* @__PURE__ */ new Map()), dn = (e, t, n = qe.EN) => {
@@ -6115,12 +6115,12 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6115
6115
  ...Lt(s, c, u, a, n)
6116
6116
  );
6117
6117
  }), Bs(r);
6118
- }, Rn = (e, t) => t ? Mn(e).get(t) || [] : e.filter((n) => n.filterType !== "shared"), dc = (e, t) => {
6118
+ }, Rn = (e, t) => t ? Mn(e).get(t) || [] : e.filter((n) => n.filterType !== "shared"), uc = (e, t) => {
6119
6119
  if (e?.filterType === "shared")
6120
6120
  return;
6121
6121
  const n = e?.datasetUrn ? t?.get(e.datasetUrn)?.dataflows?.[0] : void 0;
6122
6122
  return n ? lt(n?.name, "", n?.agencyID) : void 0;
6123
- }, uc = (e, t) => e?.length ? !!t?.dimensionsMap && !!t?.structuresMap && !!t?.structureDimensionsMap && !!t?.constraintsMap : !1, hc = ({
6123
+ }, hc = (e, t) => e?.length ? !!t?.dimensionsMap && !!t?.structuresMap && !!t?.structureDimensionsMap && !!t?.constraintsMap : !1, fc = ({
6124
6124
  filtersList: e,
6125
6125
  hideFacetCounterByDefault: t,
6126
6126
  locale: n,
@@ -6145,7 +6145,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6145
6145
  "overflow-y-auto advanced-view-filters-list min-w-[320px] pr-3 h-full sm:w-full"
6146
6146
  ),
6147
6147
  children: e?.map((S) => /* @__PURE__ */ d(
6148
- ql,
6148
+ Zl,
6149
6149
  {
6150
6150
  titles: b,
6151
6151
  locale: n,
@@ -6163,7 +6163,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6163
6163
  filterValuesProps: c,
6164
6164
  initialConstraints: l,
6165
6165
  datasetIcon: o,
6166
- datasetName: dc(S, h)
6166
+ datasetName: uc(S, h)
6167
6167
  },
6168
6168
  Dn(S)
6169
6169
  ))
@@ -6257,7 +6257,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6257
6257
  ),
6258
6258
  children: [
6259
6259
  /* @__PURE__ */ d(
6260
- hc,
6260
+ fc,
6261
6261
  {
6262
6262
  filtersList: e,
6263
6263
  hideFacetCounterByDefault: r?.isHideFacetCounterByDefault,
@@ -6314,14 +6314,14 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6314
6314
  const { id: i, dimensionValues: s } = r;
6315
6315
  r.isTimeDimension ? n = [
6316
6316
  ...n,
6317
- ...fc(r.timeRange, i)
6317
+ ...mc(r.timeRange, i)
6318
6318
  ] : n.push({
6319
6319
  componentCode: i,
6320
6320
  operator: pn.EQUALS,
6321
- value: s?.filter((c) => c.isSelectedValue)?.map((c) => c.id).join(Do) || ""
6321
+ value: s?.filter((c) => c.isSelectedValue)?.map((c) => c.id).join(Mo) || ""
6322
6322
  });
6323
6323
  }), n;
6324
- }, fc = (e, t) => e == null || e.startPeriod == null || e.endPeriod == null ? [] : [
6324
+ }, mc = (e, t) => e == null || e.startPeriod == null || e.endPeriod == null ? [] : [
6325
6325
  {
6326
6326
  componentCode: t,
6327
6327
  operator: pn.GREATER_OR_EQUAL,
@@ -6332,18 +6332,18 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6332
6332
  operator: pn.LESS_OR_EQUAL,
6333
6333
  value: ui(new Date(e.endPeriod), 1)
6334
6334
  }
6335
- ], mc = 1e3 * 60 * 60 * 24, ui = (e, t = 0) => {
6335
+ ], gc = 1e3 * 60 * 60 * 24, ui = (e, t = 0) => {
6336
6336
  e.setHours(0), e.setMinutes(0), e.setSeconds(0), e.setMinutes(e.getMinutes() - e.getTimezoneOffset());
6337
6337
  let n = e.getTime();
6338
- return n += t ? mc - 1 : 0, e = new Date(n), n.toString();
6339
- }, gc = (e) => e.map(
6338
+ return n += t ? gc - 1 : 0, e = new Date(n), n.toString();
6339
+ }, pc = (e) => e.map(
6340
6340
  (t) => ({
6341
6341
  componentCode: t.id || "",
6342
6342
  operator: _t.IN,
6343
6343
  values: t.dimensionValues?.map((n) => n.id) || []
6344
6344
  })
6345
6345
  ), js = (e, t) => {
6346
- const n = t?.timeDimensions?.[0], r = Mo(e, n) || null;
6346
+ const n = t?.timeDimensions?.[0], r = ko(e, n) || null;
6347
6347
  return r ? Qi(r, n?.id) : null;
6348
6348
  }, zs = (e, t, n) => {
6349
6349
  const r = Fn(
@@ -6354,7 +6354,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6354
6354
  return {
6355
6355
  filterKey: Dt(
6356
6356
  t || [],
6357
- gc(r)
6357
+ pc(r)
6358
6358
  ),
6359
6359
  timeFilter: Qi(
6360
6360
  i?.timeRange,
@@ -6378,7 +6378,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6378
6378
  if (!e) return "";
6379
6379
  const t = String(e.getDate()).padStart(2, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), r = e.getFullYear();
6380
6380
  return `${n}-${t}-${r}`;
6381
- }, pc = ({ timeseriesLength: e = 0, limitMessages: t }) => {
6381
+ }, wc = ({ timeseriesLength: e = 0, limitMessages: t }) => {
6382
6382
  const n = !e || ot > e;
6383
6383
  return /* @__PURE__ */ d("div", { className: "body-3 text-neutrals-800 sm:text-center flex gap-x-[4px] sm:justify-center items-center", children: n ? /* @__PURE__ */ d("span", { children: t?.seriesCount?.(e) }) : /* @__PURE__ */ v(me, { children: [
6384
6384
  /* @__PURE__ */ d("span", { children: t?.warningIcon }),
@@ -6405,7 +6405,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6405
6405
  ),
6406
6406
  children: [
6407
6407
  !e?.isShowCancelButton && /* @__PURE__ */ d(
6408
- pc,
6408
+ wc,
6409
6409
  {
6410
6410
  timeseriesLength: c,
6411
6411
  limitMessages: u
@@ -6456,7 +6456,7 @@ const Es = (e, t, n, r, i) => e?.map((s) => {
6456
6456
  ]
6457
6457
  }
6458
6458
  );
6459
- }, wc = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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" }));
6459
+ }, vc = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.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" }));
6460
6460
  var ve = /* @__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))(ve || {});
6461
6461
  const _n = [
6462
6462
  "charts",
@@ -6477,7 +6477,7 @@ const _n = [
6477
6477
  ], Ze = (e, t) => ({
6478
6478
  title: t?.[`${e}Title`] || "",
6479
6479
  description: t?.[`${e}Description`] || ""
6480
- }), kn = (e, t) => e.find((n) => !t.infoElements?.[n]) || "", vc = (e, t) => {
6480
+ }), kn = (e, t) => e.find((n) => !t.infoElements?.[n]) || "", bc = (e, t) => {
6481
6481
  if (!e || !t)
6482
6482
  return "";
6483
6483
  if (fi.includes(t)) {
@@ -6501,12 +6501,12 @@ const _n = [
6501
6501
  }, Ks = (e) => Ys(
6502
6502
  Js,
6503
6503
  e
6504
- ), bc = (e) => Ys(
6504
+ ), Cc = (e) => Ys(
6505
6505
  _n,
6506
6506
  e
6507
- ), Cc = (e) => (!e?.infoElements?.charts || !e?.infoElements?.chartsNavigation) && !_n.includes(
6507
+ ), yc = (e) => (!e?.infoElements?.charts || !e?.infoElements?.chartsNavigation) && !_n.includes(
6508
6508
  e.lastDisplayedElement
6509
- ), ze = 5, yc = ({
6509
+ ), ze = 5, Sc = ({
6510
6510
  targetPosition: e,
6511
6511
  overlayClasses: t,
6512
6512
  onClose: n
@@ -6587,15 +6587,15 @@ const _n = [
6587
6587
  reference: e?.current
6588
6588
  },
6589
6589
  middleware: [
6590
- Po({ mainAxis: 12, crossAxis: -4 }),
6591
- Vo(),
6590
+ Vo({ mainAxis: 12, crossAxis: -4 }),
6592
6591
  Go(),
6593
- Ho({ element: h })
6592
+ Ho(),
6593
+ Bo({ element: h })
6594
6594
  ],
6595
- whileElementsMounted: _o
6596
- }), C = Bo(S), { getFloatingProps: D } = rs([C]), N = A(() => {
6595
+ whileElementsMounted: Po
6596
+ }), C = Wo(S), { getFloatingProps: D } = rs([C]), N = A(() => {
6597
6597
  if (f) {
6598
- const O = vc(
6598
+ const O = bc(
6599
6599
  g,
6600
6600
  g?.lastDisplayedElement
6601
6601
  );
@@ -6616,9 +6616,9 @@ const _n = [
6616
6616
  const T = () => N(), E = e?.current?.getBoundingClientRect();
6617
6617
  return I(() => {
6618
6618
  i && !l && (N(), o(!0));
6619
- }, [i, N, l]), /* @__PURE__ */ d(me, { children: u && /* @__PURE__ */ v(Wo, { children: [
6619
+ }, [i, N, l]), /* @__PURE__ */ d(me, { children: u && /* @__PURE__ */ v(jo, { children: [
6620
6620
  E && /* @__PURE__ */ d(
6621
- yc,
6621
+ Sc,
6622
6622
  {
6623
6623
  overlayClasses: c ? "cursor-default" : "cursor-pointer",
6624
6624
  targetPosition: E,
@@ -6687,7 +6687,7 @@ const _n = [
6687
6687
  Me,
6688
6688
  {
6689
6689
  iconBefore: /* @__PURE__ */ d(
6690
- wc,
6690
+ vc,
6691
6691
  {
6692
6692
  className: V("size-4", u)
6693
6693
  }
@@ -6724,7 +6724,7 @@ function Zs(e) {
6724
6724
  function Xs(e) {
6725
6725
  return e.type === Ie.MARKDOWN && !Pn(e);
6726
6726
  }
6727
- function Sc(e) {
6727
+ function Dc(e) {
6728
6728
  return e.type === Ie.CSV;
6729
6729
  }
6730
6730
  function Vn(e) {
@@ -6736,7 +6736,7 @@ function rt(e) {
6736
6736
  function Ot(e) {
6737
6737
  return e.type === Ie.CUSTOM_CHART;
6738
6738
  }
6739
- function Dc(e) {
6739
+ function Mc(e) {
6740
6740
  return e.type === Ie.PLOTLY;
6741
6741
  }
6742
6742
  function Gn(e) {
@@ -6745,17 +6745,17 @@ function Gn(e) {
6745
6745
  function Qs(e) {
6746
6746
  return e.type === Ie.CROSS_DATASET_GRID;
6747
6747
  }
6748
- const Mc = (e, t) => e?.filter(
6748
+ const kc = (e, t) => e?.filter(
6749
6749
  (n, r) => n?.custom_content?.attachments && r < t
6750
- )?.at(-1), kc = (e) => e?.reduce(
6750
+ )?.at(-1), Nc = (e) => e?.reduce(
6751
6751
  (t, n, r) => n?.custom_content?.attachments?.some(
6752
6752
  (i) => Zs(i)
6753
6753
  ) ? r : t,
6754
6754
  -1
6755
- ), Nc = (e) => e?.reduce(
6755
+ ), Ac = (e) => e?.reduce(
6756
6756
  (t, n) => n?.role === Fe.Assistant ? n : t,
6757
6757
  {}
6758
- ), Ac = (e, t, n, r) => ({
6758
+ ), Tc = (e, t, n, r) => ({
6759
6759
  role: Fe.System,
6760
6760
  content: "",
6761
6761
  custom_content: {
@@ -6776,17 +6776,17 @@ const Mc = (e, t) => e?.filter(
6776
6776
  const i = e?.at(-1);
6777
6777
  return i && i.role === Fe.System && e?.pop(), [
6778
6778
  ...e,
6779
- Ac(
6779
+ Tc(
6780
6780
  t,
6781
6781
  n,
6782
6782
  r,
6783
- Nc(e)
6783
+ Ac(e)
6784
6784
  )
6785
6785
  ];
6786
6786
  }, ta = (e, t, n) => n?.map((r) => ({
6787
6787
  ...r,
6788
6788
  filters: t?.urn === r?.urn ? e : r?.filters
6789
- })) || [], Tc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new Set();
6789
+ })) || [], Ec = /* @__PURE__ */ new WeakMap(), xc = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new Set();
6790
6790
  function ra(e, t, n) {
6791
6791
  const r = e.get(t);
6792
6792
  if (r)
@@ -6794,20 +6794,20 @@ function ra(e, t, n) {
6794
6794
  const i = n();
6795
6795
  return e.set(t, i), na.add(i), i;
6796
6796
  }
6797
- function xc(e) {
6798
- return ra(Tc, e, () => /* @__PURE__ */ new Map());
6799
- }
6800
6797
  function Ic(e) {
6801
6798
  return ra(Ec, e, () => /* @__PURE__ */ new Map());
6802
6799
  }
6800
+ function Lc(e) {
6801
+ return ra(xc, e, () => /* @__PURE__ */ new Map());
6802
+ }
6803
6803
  function $e(...e) {
6804
6804
  return JSON.stringify(e);
6805
6805
  }
6806
6806
  async function Je(e, t, n) {
6807
- const r = xc(e);
6807
+ const r = Ic(e);
6808
6808
  if (r.has(t))
6809
6809
  return r.get(t);
6810
- const i = Ic(e), s = i.get(t);
6810
+ const i = Lc(e), s = i.get(t);
6811
6811
  if (s)
6812
6812
  return s;
6813
6813
  const c = n().then((u) => (r.set(t, u), u)).finally(() => {
@@ -6818,7 +6818,7 @@ async function Je(e, t, n) {
6818
6818
  function gi() {
6819
6819
  na.forEach((e) => e.clear());
6820
6820
  }
6821
- const Lc = ({
6821
+ const Oc = ({
6822
6822
  actions: e,
6823
6823
  dimensions: t,
6824
6824
  structureDimensions: n,
@@ -7122,7 +7122,7 @@ const Lc = ({
7122
7122
  }
7123
7123
  ) })
7124
7124
  ] });
7125
- }, Oc = ({
7125
+ }, Fc = ({
7126
7126
  setToTitle: e,
7127
7127
  datasetName: t,
7128
7128
  datasetIcon: n,
@@ -7138,7 +7138,7 @@ const Lc = ({
7138
7138
  /* @__PURE__ */ d("span", { children: e ?? " set to " }),
7139
7139
  /* @__PURE__ */ d("span", { className: "font-bold", children: s?.valuesTitles?.join(", ") })
7140
7140
  ] }, s?.title))
7141
- ] }), Fc = ({
7141
+ ] }), Rc = ({
7142
7142
  titles: e,
7143
7143
  attachmentInfoList: t,
7144
7144
  datasetIcon: n
@@ -7155,7 +7155,7 @@ const Lc = ({
7155
7155
  ),
7156
7156
  t?.map(
7157
7157
  (r) => !!r?.queryFiltersDetails?.length && /* @__PURE__ */ d(
7158
- Oc,
7158
+ Fc,
7159
7159
  {
7160
7160
  setToTitle: e?.setToTitle,
7161
7161
  datasetName: r?.datasetName,
@@ -7166,7 +7166,7 @@ const Lc = ({
7166
7166
  r?.datasetName
7167
7167
  )
7168
7168
  )
7169
- ] }), Rc = ({ icon: e, title: t }) => /* @__PURE__ */ d(
7169
+ ] }), _c = ({ icon: e, title: t }) => /* @__PURE__ */ d(
7170
7170
  "div",
7171
7171
  {
7172
7172
  className: V(
@@ -7181,11 +7181,11 @@ const Lc = ({
7181
7181
  ] })
7182
7182
  ] })
7183
7183
  }
7184
- ), _c = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ue.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), Pc = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ue.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), pi = [
7184
+ ), Pc = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ue.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), Vc = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ue.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), pi = [
7185
7185
  { value: on.JSON, title: "SDMX-JSON" },
7186
7186
  { value: on.XML, title: "SDMX-ML (XML)" },
7187
7187
  { value: on.CSV, title: "SDMX-CSV" }
7188
- ], Vc = (e) => [
7188
+ ], Gc = (e) => [
7189
7189
  {
7190
7190
  value: ln.ID,
7191
7191
  title: e?.idOptions || "ID",
@@ -7218,20 +7218,20 @@ const Lc = ({
7218
7218
  onChange: () => {
7219
7219
  r(s);
7220
7220
  },
7221
- radioIcon: /* @__PURE__ */ d(ro, { className: "w-3 h-3" })
7221
+ radioIcon: /* @__PURE__ */ d(io, { className: "w-3 h-3" })
7222
7222
  },
7223
7223
  s.value
7224
7224
  ) }, s.value)) }),
7225
7225
  i
7226
- ] }), Gc = (e, t, n, r) => {
7226
+ ] }), Hc = (e, t, n, r) => {
7227
7227
  if (r?.filterKey && e === Ht.DATA_IN_TABLE)
7228
7228
  return r;
7229
7229
  let i = null, s = null;
7230
- return t && n && e === Ht.DATA_IN_TABLE && (i = n == null ? null : Dt(n, t.filters), s = ko(t, No(n))), {
7230
+ return t && n && e === Ht.DATA_IN_TABLE && (i = n == null ? null : Dt(n, t.filters), s = No(t, Ao(n))), {
7231
7231
  filterKey: i,
7232
7232
  timeFilter: s
7233
7233
  };
7234
- }, Hc = ({
7234
+ }, Bc = ({
7235
7235
  actions: e,
7236
7236
  dataQuery: t,
7237
7237
  datasetIcon: n,
@@ -7248,8 +7248,8 @@ const Lc = ({
7248
7248
  showLimitMessage: g,
7249
7249
  externalLink: m
7250
7250
  }) => {
7251
- const b = Vc(h), [w, S] = p(pi[0]), [y, C] = p(b[0]), [D, N] = p(!0), T = A(() => {
7252
- const E = Gc(
7251
+ const b = Gc(h), [w, S] = p(pi[0]), [y, C] = p(b[0]), [D, N] = p(!0), T = A(() => {
7252
+ const E = Hc(
7253
7253
  c,
7254
7254
  t,
7255
7255
  a,
@@ -7318,7 +7318,7 @@ const Lc = ({
7318
7318
  setSelectedValue: S,
7319
7319
  items: pi,
7320
7320
  infoMessage: /* @__PURE__ */ d(
7321
- Ja,
7321
+ Ya,
7322
7322
  {
7323
7323
  limitMessages: f,
7324
7324
  query: m
@@ -7346,7 +7346,7 @@ const Lc = ({
7346
7346
  className: `flex gap-4 cursor-pointer download-metadata ${D ? "download-metadata-active" : ""}`,
7347
7347
  children: [
7348
7348
  D ? /* @__PURE__ */ d(
7349
- _c,
7349
+ Pc,
7350
7350
  {
7351
7351
  width: 44,
7352
7352
  height: 24,
@@ -7356,7 +7356,7 @@ const Lc = ({
7356
7356
  }
7357
7357
  }
7358
7358
  ) : /* @__PURE__ */ d(
7359
- Pc,
7359
+ Vc,
7360
7360
  {
7361
7361
  width: 44,
7362
7362
  height: 24,
@@ -7384,7 +7384,7 @@ const Lc = ({
7384
7384
  ]
7385
7385
  }
7386
7386
  );
7387
- }, Bc = ({
7387
+ }, Wc = ({
7388
7388
  id: e,
7389
7389
  title: t,
7390
7390
  version: n,
@@ -7458,7 +7458,7 @@ const Lc = ({
7458
7458
  ),
7459
7459
  children: [
7460
7460
  /* @__PURE__ */ d("div", { className: "flex items-center w-full overflow-y-auto gap-4 sm:w-[calc(100%-30px)]", children: e?.map((N) => /* @__PURE__ */ d(
7461
- Bc,
7461
+ Wc,
7462
7462
  {
7463
7463
  id: N?.id,
7464
7464
  title: Ne(N, t || qe.EN),
@@ -7495,7 +7495,7 @@ const Lc = ({
7495
7495
  ]
7496
7496
  }
7497
7497
  );
7498
- }, Wc = (e, t, n, r) => t?.map((i) => {
7498
+ }, jc = (e, t, n, r) => t?.map((i) => {
7499
7499
  const s = e?.find(
7500
7500
  (h) => h?.urn === i?.urn
7501
7501
  ), c = n?.get(i?.urn), u = c?.conceptSchemes || [], a = c?.codelists || [], l = He(c), o = [
@@ -7504,7 +7504,7 @@ const Lc = ({
7504
7504
  ];
7505
7505
  return {
7506
7506
  datasetName: Ne(c?.dataflows?.[0], r),
7507
- queryFiltersDetails: jc(
7507
+ queryFiltersDetails: zc(
7508
7508
  vi(
7509
7509
  s?.filters || [],
7510
7510
  o,
@@ -7521,12 +7521,12 @@ const Lc = ({
7521
7521
  )
7522
7522
  )
7523
7523
  };
7524
- }), jc = (e, t) => {
7524
+ }), zc = (e, t) => {
7525
7525
  const n = new Map(
7526
7526
  e?.map((r) => [r?.id, r])
7527
7527
  );
7528
7528
  return t?.filter(
7529
- (r) => !Jo(
7529
+ (r) => !Yo(
7530
7530
  n?.get(r?.id)?.valuesTitles?.sort(),
7531
7531
  r?.valuesTitles?.sort()
7532
7532
  )
@@ -7552,7 +7552,7 @@ const Lc = ({
7552
7552
  i
7553
7553
  ) || l)
7554
7554
  };
7555
- }), zc = (e, t, n) => {
7555
+ }), Uc = (e, t, n) => {
7556
7556
  let r = "", i = "";
7557
7557
  if (e?.timeFilter) {
7558
7558
  const c = decodeURIComponent(e.timeFilter || "")?.split(
@@ -7567,9 +7567,9 @@ const Lc = ({
7567
7567
  }
7568
7568
  return `&filter=${e?.filterKey || Dt(n || [], t?.filters || [])}&startPeriod=${r}&endPeriod=${i}`;
7569
7569
  }, sa = (e, t, n, r) => {
7570
- const i = e ? zc(t, n, r) : "";
7570
+ const i = e ? Uc(t, n, r) : "";
7571
7571
  return n?.metadata?.datasetUrl + i;
7572
- }, aa = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M2.33325 12.3267L6.33325 8.32001L8.99992 10.9867L14.6666 4.61334L13.7266 3.67334L8.99992 8.98667L6.33325 6.32001L1.33325 11.3267L2.33325 12.3267Z", fill: "currentColor" })), Uc = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.50644 4.00043L1.97857 7.52207L1.5 7.99979L1.97857 8.47751L5.50644 11.9991L6.46019 11.0437L3.41088 7.99979L6.46019 4.95587L5.50644 4.00043ZM10.4918 4.00043L14.0197 7.52207L14.4983 7.99979L14.0197 8.47751L10.4918 11.9991L9.53809 11.0437L12.5874 7.99979L9.53809 4.95587L10.4918 4.00043Z", fill: "currentColor" })), oa = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M2.3999 4V12H13.5999V4H2.3999ZM5.7359 10.8H3.5999V5.2H5.7359V10.8ZM9.0639 10.8H6.9359V5.2H9.0719V10.8H9.0639ZM12.3999 10.8H10.2639V5.2H12.3999V10.8Z", fill: "currentColor" })), $c = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.18519 10.4815H7.18116C7.31033 10.9089 7.50501 11.3078 7.7535 11.6667H2.18519C1.53333 11.6667 1 11.1333 1 10.4815V2.18519C1 1.53333 1.53333 1 2.18519 1H10.4815C11.1333 1 11.6667 1.53333 11.6667 2.18519V5.02017C11.5296 5.00683 11.3906 5 11.25 5C10.9876 5 10.7307 5.02378 10.4815 5.06931V2.18519H2.18519V10.4815ZM7.69316 6.92288C7.99945 6.45568 8.39531 6.05248 8.85633 5.73769H3.37044V6.92288H7.69316ZM7 9.25C7 8.8544 7.05405 8.47143 7.15517 8.10807H3.37044V9.29326H7.00022L7 9.25ZM3.37044 4.5525H9.29636V3.36731H3.37044V4.5525ZM11.6624 10.9695C12.5981 10.8087 13.2264 9.91979 13.0656 8.98403C12.9049 8.04827 12.016 7.42002 11.0802 7.58078C10.1444 7.74155 9.51618 8.63046 9.67695 9.56621C9.83771 10.502 10.7266 11.1302 11.6624 10.9695ZM11.8656 12.1521C11.9243 12.142 11.9824 12.1303 12.0396 12.1168L14.5611 15.5477L15.5281 14.8371L13.1449 11.5944C13.9785 10.9558 14.4384 9.88763 14.2483 8.78085C13.9753 7.19192 12.4659 6.12513 10.877 6.39811C9.28808 6.67109 8.22129 8.18047 8.49428 9.7694C8.76726 11.3583 10.2766 12.4251 11.8656 12.1521Z", fill: "currentColor" })), Jc = ({
7572
+ }, aa = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M2.33325 12.3267L6.33325 8.32001L8.99992 10.9867L14.6666 4.61334L13.7266 3.67334L8.99992 8.98667L6.33325 6.32001L1.33325 11.3267L2.33325 12.3267Z", fill: "currentColor" })), $c = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.50644 4.00043L1.97857 7.52207L1.5 7.99979L1.97857 8.47751L5.50644 11.9991L6.46019 11.0437L3.41088 7.99979L6.46019 4.95587L5.50644 4.00043ZM10.4918 4.00043L14.0197 7.52207L14.4983 7.99979L14.0197 8.47751L10.4918 11.9991L9.53809 11.0437L12.5874 7.99979L9.53809 4.95587L10.4918 4.00043Z", fill: "currentColor" })), oa = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M2.3999 4V12H13.5999V4H2.3999ZM5.7359 10.8H3.5999V5.2H5.7359V10.8ZM9.0639 10.8H6.9359V5.2H9.0719V10.8H9.0639ZM12.3999 10.8H10.2639V5.2H12.3999V10.8Z", fill: "currentColor" })), Jc = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.18519 10.4815H7.18116C7.31033 10.9089 7.50501 11.3078 7.7535 11.6667H2.18519C1.53333 11.6667 1 11.1333 1 10.4815V2.18519C1 1.53333 1.53333 1 2.18519 1H10.4815C11.1333 1 11.6667 1.53333 11.6667 2.18519V5.02017C11.5296 5.00683 11.3906 5 11.25 5C10.9876 5 10.7307 5.02378 10.4815 5.06931V2.18519H2.18519V10.4815ZM7.69316 6.92288C7.99945 6.45568 8.39531 6.05248 8.85633 5.73769H3.37044V6.92288H7.69316ZM7 9.25C7 8.8544 7.05405 8.47143 7.15517 8.10807H3.37044V9.29326H7.00022L7 9.25ZM3.37044 4.5525H9.29636V3.36731H3.37044V4.5525ZM11.6624 10.9695C12.5981 10.8087 13.2264 9.91979 13.0656 8.98403C12.9049 8.04827 12.016 7.42002 11.0802 7.58078C10.1444 7.74155 9.51618 8.63046 9.67695 9.56621C9.83771 10.502 10.7266 11.1302 11.6624 10.9695ZM11.8656 12.1521C11.9243 12.142 11.9824 12.1303 12.0396 12.1168L14.5611 15.5477L15.5281 14.8371L13.1449 11.5944C13.9785 10.9558 14.4384 9.88763 14.2483 8.78085C13.9753 7.19192 12.4659 6.12513 10.877 6.39811C9.28808 6.67109 8.22129 8.18047 8.49428 9.7694C8.76726 11.3583 10.2766 12.4251 11.8656 12.1521Z", fill: "currentColor" })), Yc = ({
7573
7573
  attachment: e,
7574
7574
  index: t,
7575
7575
  selectedAttachmentIndex: n,
@@ -7579,7 +7579,7 @@ const Lc = ({
7579
7579
  titles: c
7580
7580
  }) => {
7581
7581
  const u = pe(null), [a, l] = p(""), [o, h] = p(""), [f, g] = p(!1), { onboardingFileSchema: m, isShowOnboarding: b } = Ve(), w = A(
7582
- (y, C = "") => i ? Dc(y) || Ot(y) ? /* @__PURE__ */ d(aa, { className: C }) : rt(y) || Qs(y) ? /* @__PURE__ */ d(oa, { className: C }) : Pn(y) ? /* @__PURE__ */ d($c, { className: C }) : Xs(y) || Gn(y) ? /* @__PURE__ */ d(Uc, { className: C }) : null : null,
7582
+ (y, C = "") => i ? Mc(y) || Ot(y) ? /* @__PURE__ */ d(aa, { className: C }) : rt(y) || Qs(y) ? /* @__PURE__ */ d(oa, { className: C }) : Pn(y) ? /* @__PURE__ */ d(Jc, { className: C }) : Xs(y) || Gn(y) ? /* @__PURE__ */ d($c, { className: C }) : null : null,
7583
7583
  [i]
7584
7584
  ), S = A(
7585
7585
  (y) => rt(y) ? s || "Data Grid" : y.title,
@@ -7631,23 +7631,23 @@ const Lc = ({
7631
7631
  },
7632
7632
  e.index || t
7633
7633
  );
7634
- }, Yc = ({ attachments: e, ...t }) => /* @__PURE__ */ d("div", { className: "flex items-center w-fit flex-wrap attachments-tabs", children: e.map((n, r) => /* @__PURE__ */ d(
7635
- Jc,
7634
+ }, Kc = ({ attachments: e, ...t }) => /* @__PURE__ */ d("div", { className: "flex items-center w-fit flex-wrap attachments-tabs", children: e.map((n, r) => /* @__PURE__ */ d(
7635
+ Yc,
7636
7636
  {
7637
7637
  attachment: n,
7638
7638
  index: r,
7639
7639
  ...t
7640
7640
  },
7641
7641
  r
7642
- )) }), Kc = {
7642
+ )) }), qc = {
7643
7643
  isCrossDatasetModeOn: !1
7644
- }, qc = et(
7645
- Kc
7644
+ }, Zc = et(
7645
+ qc
7646
7646
  );
7647
7647
  function Xt() {
7648
- return Ke(qc);
7648
+ return Ke(Zc);
7649
7649
  }
7650
- const Zc = ({
7650
+ const Xc = ({
7651
7651
  attachments: e,
7652
7652
  selectedAttachmentIndex: t,
7653
7653
  selectedAttachment: n,
@@ -7665,7 +7665,7 @@ const Zc = ({
7665
7665
  const { isCrossDatasetModeOn: g } = Xt(), m = g && !o && !!f && !!(n && rt(n));
7666
7666
  return /* @__PURE__ */ v("div", { className: "flex min-w-0 w-full justify-between itms-center", children: [
7667
7667
  /* @__PURE__ */ d(
7668
- Yc,
7668
+ Kc,
7669
7669
  {
7670
7670
  dataGridTitle: r?.dataGridTitle,
7671
7671
  attachments: e,
@@ -7675,7 +7675,7 @@ const Zc = ({
7675
7675
  titles: i
7676
7676
  }
7677
7677
  ),
7678
- /* @__PURE__ */ v("div", { className: "flex gap-x-3 items-center flex-wrap w-fit justify-end", children: [
7678
+ /* @__PURE__ */ v("div", { className: "flex gap-x-3 items-center flex-wrap w-fit justify-end attachments-buttons", children: [
7679
7679
  n && rt(n) && c && /* @__PURE__ */ d("a", { href: s, target: "_blank", children: /* @__PURE__ */ d(
7680
7680
  Me,
7681
7681
  {
@@ -7706,7 +7706,7 @@ const Zc = ({
7706
7706
  }
7707
7707
  ),
7708
7708
  n && Gn(n) && /* @__PURE__ */ d(
7709
- Ya,
7709
+ Ka,
7710
7710
  {
7711
7711
  title: r?.copyTitle,
7712
7712
  copiedTitle: r?.copiedTitle,
@@ -7718,7 +7718,7 @@ const Zc = ({
7718
7718
  )
7719
7719
  ] })
7720
7720
  ] });
7721
- }, Xc = ({
7721
+ }, Qc = ({
7722
7722
  downloadTitles: e,
7723
7723
  attachment: t,
7724
7724
  actions: n,
@@ -7759,10 +7759,10 @@ const Zc = ({
7759
7759
  }
7760
7760
  );
7761
7761
  }, la = "json";
7762
- function Qc(e) {
7763
- return td(e) ? ed(e?.slice(la.length)) : e;
7764
- }
7765
7762
  function ed(e) {
7763
+ return nd(e) ? td(e?.slice(la.length)) : e;
7764
+ }
7765
+ function td(e) {
7766
7766
  let t = "";
7767
7767
  if (e)
7768
7768
  try {
@@ -7772,28 +7772,28 @@ function ed(e) {
7772
7772
  }
7773
7773
  return t;
7774
7774
  }
7775
- function td(e) {
7775
+ function nd(e) {
7776
7776
  return e?.startsWith(la) || !1;
7777
7777
  }
7778
- const nd = ({ attachment: e, className: t = "" }) => {
7779
- const n = Qc(e.data);
7778
+ const rd = ({ attachment: e, className: t = "" }) => {
7779
+ const n = ed(e.data);
7780
7780
  return n ? /* @__PURE__ */ v("div", { className: `attachment-json border rounded-lg bg-white ${t}`, children: [
7781
7781
  /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-3 py-2 border-b border-neutrals-200 bg-neutrals-100 rounded-t-lg", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ d("h3", { className: "text-neutrals-900", children: e.title }) }) }),
7782
7782
  /* @__PURE__ */ d("div", { className: "p-3", children: /* @__PURE__ */ d("pre", { className: "text-neutrals-800 overflow-x-auto whitespace-pre-wrap break-words max-h-96 overflow-y-auto", children: /* @__PURE__ */ d("code", { children: n }) }) })
7783
7783
  ] }) : null;
7784
- }, rd = (e) => {
7784
+ }, id = (e) => {
7785
7785
  try {
7786
7786
  const t = new URL(e);
7787
7787
  return ["http:", "https:", "data:"].includes(t.protocol);
7788
7788
  } catch {
7789
7789
  return !1;
7790
7790
  }
7791
- }, id = (e) => rd(e) ? e : "", sd = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M11.3333 4.66667H8.66659V6.00001H11.3333C12.4333 6.00001 13.3333 6.9 13.3333 8C13.3333 9.1 12.4333 10 11.3333 10H8.66659V11.3333H11.3333C13.1733 11.3333 14.6666 9.84 14.6666 8C14.6666 6.16 13.1733 4.66667 11.3333 4.66667ZM7.33325 10H4.66659C3.56659 10 2.66659 9.1 2.66659 8C2.66659 6.9 3.56659 6.00001 4.66659 6.00001H7.33325V4.66667H4.66659C2.82659 4.66667 1.33325 6.16 1.33325 8C1.33325 9.84 2.82659 11.3333 4.66659 11.3333H7.33325V10ZM5.33325 7.33334H10.6666V8.66667H5.33325V7.33334Z", fill: "currentColor" })), ad = ({
7791
+ }, sd = (e) => id(e) ? e : "", ad = (e) => /* @__PURE__ */ ue.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M11.3333 4.66667H8.66659V6.00001H11.3333C12.4333 6.00001 13.3333 6.9 13.3333 8C13.3333 9.1 12.4333 10 11.3333 10H8.66659V11.3333H11.3333C13.1733 11.3333 14.6666 9.84 14.6666 8C14.6666 6.16 13.1733 4.66667 11.3333 4.66667ZM7.33325 10H4.66659C3.56659 10 2.66659 9.1 2.66659 8C2.66659 6.9 3.56659 6.00001 4.66659 6.00001H7.33325V4.66667H4.66659C2.82659 4.66667 1.33325 6.16 1.33325 8C1.33325 9.84 2.82659 11.3333 4.66659 11.3333H7.33325V10ZM5.33325 7.33334H10.6666V8.66667H5.33325V7.33334Z", fill: "currentColor" })), od = ({
7792
7792
  attachment: e,
7793
7793
  openLinkTitle: t,
7794
7794
  className: n = ""
7795
7795
  }) => {
7796
- const r = id(e.data || "");
7796
+ const r = sd(e.data || "");
7797
7797
  if (!r) return null;
7798
7798
  const i = (s) => {
7799
7799
  window.open(s, "_blank")?.focus();
@@ -7809,11 +7809,11 @@ const nd = ({ attachment: e, className: t = "" }) => {
7809
7809
  className: "text-hues-800 flex-shrink-0 mt-1",
7810
7810
  role: "img",
7811
7811
  "aria-label": "Link",
7812
- children: /* @__PURE__ */ d(sd, { width: 16, height: 16 })
7812
+ children: /* @__PURE__ */ d(ad, { width: 16, height: 16 })
7813
7813
  }
7814
7814
  ),
7815
7815
  /* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
7816
- /* @__PURE__ */ d("div", { className: "mb-1", children: /* @__PURE__ */ d(Ka, { url: r, title: e.title }) }),
7816
+ /* @__PURE__ */ d("div", { className: "mb-1", children: /* @__PURE__ */ d(qa, { url: r, title: e.title }) }),
7817
7817
  /* @__PURE__ */ d("div", { className: "text-neutrals-600 break-all truncate", children: r })
7818
7818
  ] }),
7819
7819
  /* @__PURE__ */ d("div", { className: "flex-shrink-0", children: /* @__PURE__ */ d(
@@ -7830,7 +7830,7 @@ const nd = ({ attachment: e, className: t = "" }) => {
7830
7830
  }, ca = ({ dimensionsInfo: e }) => /* @__PURE__ */ d("div", { className: "sidebar flex flex-col w-[176px] gap-3 min-h-0 overflow-auto", children: e.map((t) => /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
7831
7831
  /* @__PURE__ */ d("h5", { className: "text-neutrals-800", children: t.title }),
7832
7832
  /* @__PURE__ */ d("h5", { className: "font-bold", children: t.value })
7833
- ] }, t.title)) }), od = ({ titles: e, chart: t, isOpen: n, onClose: r }) => {
7833
+ ] }, t.title)) }), ld = ({ titles: e, chart: t, isOpen: n, onClose: r }) => {
7834
7834
  const [i, s] = p(ne.Closed);
7835
7835
  I(() => {
7836
7836
  s(n ? ne.Opened : ne.Closed);
@@ -7907,7 +7907,7 @@ const nd = ({ attachment: e, className: t = "" }) => {
7907
7907
  }
7908
7908
  ),
7909
7909
  t && /* @__PURE__ */ d(
7910
- od,
7910
+ ld,
7911
7911
  {
7912
7912
  chart: e.value,
7913
7913
  isOpen: t,
@@ -7916,7 +7916,7 @@ const nd = ({ attachment: e, className: t = "" }) => {
7916
7916
  }
7917
7917
  )
7918
7918
  ] });
7919
- }, Mt = 32, Qt = 32, ld = 16, en = "padding-0", mt = 200, ut = { flex: 1, minWidth: mt }, cd = Mt, tn = "observationValueCell", Bn = "metadataCell", da = "chartCell", yt = "Chart_column", dd = (e, t, n, r, i, s) => ({
7919
+ }, Mt = 32, Qt = 32, cd = 16, en = "padding-0", mt = 200, ut = { flex: 1, minWidth: mt }, dd = Mt, tn = "observationValueCell", Bn = "metadataCell", da = "chartCell", yt = "Chart_column", ud = (e, t, n, r, i, s) => ({
7920
7920
  headerName: "",
7921
7921
  suppressHeaderMenuButton: !0,
7922
7922
  suppressNavigable: !0,
@@ -7936,7 +7936,7 @@ const nd = ({ attachment: e, className: t = "" }) => {
7936
7936
  action: s
7937
7937
  }
7938
7938
  });
7939
- function ud(e, t, n, r = cd, i, s) {
7939
+ function hd(e, t, n, r = dd, i, s) {
7940
7940
  return {
7941
7941
  headerName: "",
7942
7942
  field: yt,
@@ -7961,13 +7961,13 @@ function ud(e, t, n, r = cd, i, s) {
7961
7961
  }
7962
7962
  };
7963
7963
  }
7964
- const Nn = ["index", "value"], hd = (e) => ({
7965
- columns: gd(e),
7966
- data: fd(e)
7967
- }), fd = (e) => {
7964
+ const Nn = ["index", "value"], fd = (e) => ({
7965
+ columns: pd(e),
7966
+ data: md(e)
7967
+ }), md = (e) => {
7968
7968
  const t = e.metadata.time_column, n = {};
7969
7969
  for (const r of e.data.data) {
7970
- const { value: i, ...s } = r, c = md(r, t);
7970
+ const { value: i, ...s } = r, c = gd(r, t);
7971
7971
  n[c] = {
7972
7972
  ...n[c] || {},
7973
7973
  ...s,
@@ -7975,7 +7975,7 @@ const Nn = ["index", "value"], hd = (e) => ({
7975
7975
  };
7976
7976
  }
7977
7977
  return Object.values(n);
7978
- }, md = (e, t) => Object.keys(e).filter((n) => !Nn.includes(n) && n !== t).map((n) => e[n]).join("."), gd = (e) => {
7978
+ }, gd = (e, t) => Object.keys(e).filter((n) => !Nn.includes(n) && n !== t).map((n) => e[n]).join("."), pd = (e) => {
7979
7979
  const { metadata: t, data: n } = e, r = t.time_column, i = t.pinned_columns || [], s = n.schema.fields, c = [], u = n.data.map((f) => f[r]), l = Array.from(new Set(u)).filter((f) => f != null).map(
7980
7980
  (f) => ({
7981
7981
  field: f,
@@ -8005,7 +8005,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8005
8005
  tooltipValueGetter: (g) => g.value
8006
8006
  });
8007
8007
  return c.push(...l), c;
8008
- }, Wn = (e) => e * Qt + Mt + ld, pd = ({
8008
+ }, Wn = (e) => e * Qt + Mt + cd, wd = ({
8009
8009
  attachment: e,
8010
8010
  actions: t,
8011
8011
  className: n = "",
@@ -8018,7 +8018,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8018
8018
  u([]), l([]), s(!1);
8019
8019
  return;
8020
8020
  }
8021
- const { columns: m, data: b } = hd(g);
8021
+ const { columns: m, data: b } = fd(g);
8022
8022
  u(b), l(m), s(!1);
8023
8023
  }));
8024
8024
  }, [e.url, t]), I(() => {
@@ -8051,7 +8051,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8051
8051
  children: f
8052
8052
  }
8053
8053
  ) });
8054
- }, ua = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M7.4665 6.39967H8.53317V5.33301H7.4665V6.39967ZM7.4665 10.6663H8.53317V7.46634H7.4665V10.6663ZM7.9945 13.333C5.0505 13.333 2.6665 10.9437 2.6665 7.99967C2.6665 5.05567 5.0505 2.66634 7.9945 2.66634C10.9438 2.66634 13.3332 5.05567 13.3332 7.99967C13.3332 10.9437 10.9438 13.333 7.9945 13.333ZM7.99984 3.73301C5.6425 3.73301 3.73317 5.64234 3.73317 7.99967C3.73317 10.357 5.6425 12.2663 7.99984 12.2663C10.3572 12.2663 12.2665 10.357 12.2665 7.99967C12.2665 5.64234 10.3572 3.73301 7.99984 3.73301Z", fill: "currentColor" })), wd = ({
8054
+ }, ua = (e) => /* @__PURE__ */ ue.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ue.createElement("path", { d: "M7.4665 6.39967H8.53317V5.33301H7.4665V6.39967ZM7.4665 10.6663H8.53317V7.46634H7.4665V10.6663ZM7.9945 13.333C5.0505 13.333 2.6665 10.9437 2.6665 7.99967C2.6665 5.05567 5.0505 2.66634 7.9945 2.66634C10.9438 2.66634 13.3332 5.05567 13.3332 7.99967C13.3332 10.9437 10.9438 13.333 7.9945 13.333ZM7.99984 3.73301C5.6425 3.73301 3.73317 5.64234 3.73317 7.99967C3.73317 10.357 5.6425 12.2663 7.99984 12.2663C10.3572 12.2663 12.2665 10.357 12.2665 7.99967C12.2665 5.64234 10.3572 3.73301 7.99984 3.73301Z", fill: "currentColor" })), vd = ({
8055
8055
  title: e,
8056
8056
  value: t
8057
8057
  }) => {
@@ -8073,7 +8073,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8073
8073
  }
8074
8074
  )
8075
8075
  ] });
8076
- }, vd = ({
8076
+ }, bd = ({
8077
8077
  title: e,
8078
8078
  value: t,
8079
8079
  attachedKeysTitles: n,
@@ -8166,7 +8166,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8166
8166
  children: [
8167
8167
  /* @__PURE__ */ v("div", { className: "metadata-content overflow-hidden h-full", children: [
8168
8168
  t?.length > 0 && /* @__PURE__ */ d("div", { className: "metadata-description", children: t?.map((l) => /* @__PURE__ */ d(
8169
- wd,
8169
+ vd,
8170
8170
  {
8171
8171
  title: l?.title,
8172
8172
  value: l?.value
@@ -8174,7 +8174,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8174
8174
  l?.title
8175
8175
  )) }),
8176
8176
  /* @__PURE__ */ d("div", { className: "h-full overflow-y-auto metadata-list", children: e && e?.length > 0 ? e?.map((l) => /* @__PURE__ */ d(
8177
- vd,
8177
+ bd,
8178
8178
  {
8179
8179
  title: l?.title,
8180
8180
  value: l?.value,
@@ -8188,7 +8188,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8188
8188
  ]
8189
8189
  }
8190
8190
  ) });
8191
- }, bd = (e) => e?.data[e?.colDef?.field || 0]?.obsAttributes, Cd = (e) => e?.data?.attributes, ha = (e, t) => Object.entries(e?.data).filter(([n]) => t?.get(n)).map(([n, r]) => ({ name: n, value: String(r) })), bi = (e, t, n) => {
8191
+ }, Cd = (e) => e?.data[e?.colDef?.field || 0]?.obsAttributes, yd = (e) => e?.data?.attributes, ha = (e, t) => Object.entries(e?.data).filter(([n]) => t?.get(n)).map(([n, r]) => ({ name: n, value: String(r) })), bi = (e, t, n) => {
8192
8192
  const r = typeof e == "object" ? e?.[t] : e;
8193
8193
  return n ? Ne(
8194
8194
  n?.codes?.find((i) => i?.id === e),
@@ -8204,7 +8204,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8204
8204
  }) || [], nn = (e, t, n) => ({
8205
8205
  title: n?.dataset || "Dataset",
8206
8206
  value: Ne(e, t)
8207
- }), yd = (e, t, n, r) => [
8207
+ }), Sd = (e, t, n, r) => [
8208
8208
  nn(e, n, r),
8209
8209
  { title: r?.agency ?? "Agency", value: e?.agencyID },
8210
8210
  { title: r?.lastUpdated ?? "Last updated", value: t }
@@ -8228,10 +8228,10 @@ const Nn = ["index", "value"], hd = (e) => ({
8228
8228
  c,
8229
8229
  ma(n, r)
8230
8230
  ] : [c];
8231
- }, Sd = (e) => {
8231
+ }, Dd = (e) => {
8232
8232
  const t = e?.dataSets?.[0]?.attributes || [], n = e?.structures?.[0]?.attributes?.dataSet || [];
8233
8233
  return t?.length ? n.map((r, i) => r?.values?.length > 0 ? { ...r } : { ...r, values: [{ value: t?.[i] }] }) : n;
8234
- }, Dd = (e, t, n) => e?.map((r) => {
8234
+ }, Md = (e, t, n) => e?.map((r) => {
8235
8235
  const i = r?.id, s = r?.values?.[0]?.value || r?.values?.[0]?.id, c = r?.values?.[0]?.ids, u = t?.get(i), a = u?.codes?.length ? u : void 0, l = Ne(
8236
8236
  a?.codes?.find((h) => h?.id === s),
8237
8237
  n
@@ -8246,11 +8246,11 @@ const Nn = ["index", "value"], hd = (e) => ({
8246
8246
  title: Ne(u, n) || i,
8247
8247
  value: c ? o : l
8248
8248
  };
8249
- }).filter(({ value: r }) => !!r) || [], Md = (e, t) => {
8249
+ }).filter(({ value: r }) => !!r) || [], kd = (e, t) => {
8250
8250
  const n = e?.dataSets?.[0], i = e?.structures?.[0]?.attributes?.dimensionGroup || [], s = n?.dimensionGroupAttributes;
8251
8251
  return new Map(
8252
8252
  i.map((c) => {
8253
- const u = c?.relationship?.dimensions, { codedSeriesKey: a, decodedSeriesKey: l } = kd(e, t, u);
8253
+ const u = c?.relationship?.dimensions, { codedSeriesKey: a, decodedSeriesKey: l } = Nd(e, t, u);
8254
8254
  return [
8255
8255
  c.id,
8256
8256
  {
@@ -8261,7 +8261,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8261
8261
  ];
8262
8262
  })
8263
8263
  );
8264
- }, kd = (e, t, n) => {
8264
+ }, Nd = (e, t, n) => {
8265
8265
  const r = e?.structures?.[0], i = [
8266
8266
  ...r?.dimensions.series || [],
8267
8267
  ...r?.dimensions.observation || []
@@ -8277,15 +8277,15 @@ const Nn = ["index", "value"], hd = (e) => ({
8277
8277
  codedSeriesKey: s?.join(":"),
8278
8278
  decodedSeriesKey: c?.join(":")
8279
8279
  };
8280
- }, Nd = (e, t) => {
8280
+ }, Ad = (e, t) => {
8281
8281
  if (t == null)
8282
8282
  return;
8283
8283
  const n = e?.values?.[t], r = typeof t == "object" && !Array.isArray(t), i = Array.isArray(t);
8284
8284
  return n || (r || i ? { values: t } : { value: t?.toString() });
8285
- }, Ad = (e) => {
8285
+ }, Td = (e) => {
8286
8286
  const t = e?.value || e?.id, n = e?.values || e?.ids;
8287
8287
  return t != null ? [t] : n || [null];
8288
- }, pa = (e, t, n) => t == null ? t : n?.get(e || "")?.codes?.find((i) => i?.id === t)?.name || t, Td = (e, t, n, r = qe.EN) => {
8288
+ }, pa = (e, t, n) => t == null ? t : n?.get(e || "")?.codes?.find((i) => i?.id === t)?.name || t, Ed = (e, t, n, r = qe.EN) => {
8289
8289
  const i = n?.dataStructureComponents?.dimensionList, s = [
8290
8290
  ...i?.dimensions || [],
8291
8291
  ...i?.timeDimensions || []
@@ -8303,13 +8303,13 @@ const Nn = ["index", "value"], hd = (e) => ({
8303
8303
  c.push(`${h}: ${f}`);
8304
8304
  }
8305
8305
  }), c;
8306
- }, Ed = (e, t, n, r, i = qe.EN) => {
8306
+ }, xd = (e, t, n, r, i = qe.EN) => {
8307
8307
  if (!e || !t || !r)
8308
8308
  return [];
8309
- const s = e?.structures?.[0]?.attributes?.dimensionGroup || [], c = Md(e, r);
8309
+ const s = e?.structures?.[0]?.attributes?.dimensionGroup || [], c = kd(e, r);
8310
8310
  return s?.map((u, a) => {
8311
- const l = c?.get(u?.id), o = n?.get(u?.id), h = Ad(
8312
- Nd(u, l?.values?.[a])
8311
+ const l = c?.get(u?.id), o = n?.get(u?.id), h = Td(
8312
+ Ad(u, l?.values?.[a])
8313
8313
  );
8314
8314
  return {
8315
8315
  id: u?.id,
@@ -8321,7 +8321,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8321
8321
  n
8322
8322
  ) || ""
8323
8323
  ) : h,
8324
- attachedKeysTitles: Td(
8324
+ attachedKeysTitles: Ed(
8325
8325
  l?.decodedSeriesKey,
8326
8326
  n,
8327
8327
  t
@@ -8345,11 +8345,11 @@ const Nn = ["index", "value"], hd = (e) => ({
8345
8345
  e?.locale
8346
8346
  ),
8347
8347
  ...$t(
8348
- Cd(e),
8348
+ yd(e),
8349
8349
  m,
8350
8350
  e?.locale
8351
8351
  ),
8352
- ...Ed(
8352
+ ...xd(
8353
8353
  e?.attributesData,
8354
8354
  e?.dataSetData?.dataStructures?.[0],
8355
8355
  m,
@@ -8433,7 +8433,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8433
8433
  [e?.dataSetData]
8434
8434
  ), i = oe(
8435
8435
  () => $t(
8436
- bd(e),
8436
+ Cd(e),
8437
8437
  r,
8438
8438
  e?.locale
8439
8439
  ),
@@ -8514,7 +8514,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8514
8514
  style: { height: n },
8515
8515
  children: r
8516
8516
  }
8517
- ), xd = ({
8517
+ ), Id = ({
8518
8518
  attachment: e,
8519
8519
  isDataLoading: t,
8520
8520
  isChartColumnVisible: n,
@@ -8613,7 +8613,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8613
8613
  }
8614
8614
  )
8615
8615
  ] });
8616
- }, Id = 200, Ld = 8, Od = 2, Fd = ({
8616
+ }, Ld = 200, Od = 8, Fd = 2, Rd = ({
8617
8617
  currentIndex: e,
8618
8618
  totalCount: t,
8619
8619
  icons: n,
@@ -8639,7 +8639,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8639
8639
  });
8640
8640
  }
8641
8641
  }, [g?.lastDisplayedElement, m]);
8642
- const b = t > 0 ? e / t * 100 : 0, w = t > 0 ? Math.min(Ld * t, Id) : 0, S = t > 0 ? Math.max(w / t, Od) : 0;
8642
+ const b = t > 0 ? e / t * 100 : 0, w = t > 0 ? Math.min(Od * t, Ld) : 0, S = t > 0 ? Math.max(w / t, Fd) : 0;
8643
8643
  return /* @__PURE__ */ v("div", { className: "w-full flex flex-row items-center gap-2 justify-center", children: [
8644
8644
  /* @__PURE__ */ d(
8645
8645
  "div",
@@ -8699,7 +8699,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8699
8699
  }
8700
8700
  )
8701
8701
  ] });
8702
- }, Rd = ({
8702
+ }, _d = ({
8703
8703
  limitAmount: e,
8704
8704
  titles: t,
8705
8705
  openAdvancedView: n
@@ -8708,8 +8708,8 @@ const Nn = ["index", "value"], hd = (e) => ({
8708
8708
  open: r,
8709
8709
  onOpenChange: i,
8710
8710
  placement: "top-start"
8711
- }), a = jo(u, {
8712
- handleClose: zo({
8711
+ }), a = zo(u, {
8712
+ handleClose: Uo({
8713
8713
  blockPointerEvents: !0
8714
8714
  })
8715
8715
  }), { getReferenceProps: l, getFloatingProps: o } = rs([a]);
@@ -8769,7 +8769,7 @@ const Nn = ["index", "value"], hd = (e) => ({
8769
8769
  )
8770
8770
  ] });
8771
8771
  };
8772
- function _d(e, t, n) {
8772
+ function Pd(e, t, n) {
8773
8773
  const r = (e.getZr()?.painter).getRenderedCanvas()?.getContext("2d");
8774
8774
  if (!r) return 0;
8775
8775
  const i = n.textStyle?.fontSize ?? 12, s = n.textStyle?.fontFamily ?? "sans-serif";
@@ -8777,10 +8777,10 @@ function _d(e, t, n) {
8777
8777
  const c = r.measureText(t).width, u = n.itemWidth ?? 25, a = n.itemGap ?? 10;
8778
8778
  return c + u + a;
8779
8779
  }
8780
- const Pd = ({ option: e, style: t }) => {
8780
+ const Vd = ({ option: e, style: t }) => {
8781
8781
  const n = pe(null), [r, i] = p(e);
8782
8782
  I(() => {
8783
- i(Yo(e));
8783
+ i(Ko(e));
8784
8784
  }, [e]);
8785
8785
  const s = A(() => {
8786
8786
  const c = n.current?.getEchartsInstance?.();
@@ -8792,7 +8792,7 @@ const Pd = ({ option: e, style: t }) => {
8792
8792
  let g = 0;
8793
8793
  f.forEach((S) => {
8794
8794
  const y = S.option.name || "";
8795
- g += _d(c, y, l);
8795
+ g += Pd(c, y, l);
8796
8796
  });
8797
8797
  const b = Math.max(1, Math.ceil(g / a)) * (+o + +h + 6), w = 20;
8798
8798
  i((S) => ({
@@ -8821,7 +8821,7 @@ const Pd = ({ option: e, style: t }) => {
8821
8821
  style: t
8822
8822
  }
8823
8823
  );
8824
- }, Vd = ({
8824
+ }, Gd = ({
8825
8825
  attachment: e,
8826
8826
  icons: t,
8827
8827
  isDataLoading: n,
@@ -8840,8 +8840,8 @@ const Pd = ({ option: e, style: t }) => {
8840
8840
  !c && D ? a[o] : a[0]
8841
8841
  ), D || h(0);
8842
8842
  }, [c, a, o]), I(() => {
8843
- m && b && !c && (Cc(m) && (w?.(
8844
- bc(m)
8843
+ m && b && !c && (yc(m) && (w?.(
8844
+ Cc(m)
8845
8845
  ), S?.current?.scrollIntoView({
8846
8846
  block: "center",
8847
8847
  behavior: "smooth"
@@ -8881,7 +8881,7 @@ const Pd = ({ option: e, style: t }) => {
8881
8881
  children: [
8882
8882
  /* @__PURE__ */ v("div", { className: "flex flex-col flex-1 min-h-0 min-w-0 gap-4", children: [
8883
8883
  /* @__PURE__ */ d(
8884
- Pd,
8884
+ Vd,
8885
8885
  {
8886
8886
  option: f.config,
8887
8887
  style: {
@@ -8892,7 +8892,7 @@ const Pd = ({ option: e, style: t }) => {
8892
8892
  }
8893
8893
  ),
8894
8894
  f.limitedByRowsAmountTo && /* @__PURE__ */ d(
8895
- Rd,
8895
+ _d,
8896
8896
  {
8897
8897
  limitAmount: f.limitedByRowsAmountTo,
8898
8898
  openAdvancedView: r,
@@ -8900,7 +8900,7 @@ const Pd = ({ option: e, style: t }) => {
8900
8900
  }
8901
8901
  ),
8902
8902
  a.length > 1 && /* @__PURE__ */ d(
8903
- Fd,
8903
+ Rd,
8904
8904
  {
8905
8905
  icons: t,
8906
8906
  currentIndex: o,
@@ -8921,7 +8921,7 @@ const Pd = ({ option: e, style: t }) => {
8921
8921
  }
8922
8922
  )
8923
8923
  ] }) }) });
8924
- }, Gd = qo({
8924
+ }, Hd = Zo({
8925
8925
  extend: {
8926
8926
  classGroups: {
8927
8927
  typography: [
@@ -8939,9 +8939,9 @@ const Pd = ({ option: e, style: t }) => {
8939
8939
  }
8940
8940
  });
8941
8941
  function st(...e) {
8942
- return Gd(V(...e));
8942
+ return Hd(V(...e));
8943
8943
  }
8944
- const Hd = ({
8944
+ const Bd = ({
8945
8945
  attachment: e,
8946
8946
  className: t
8947
8947
  }) => {
@@ -8954,7 +8954,7 @@ const Hd = ({
8954
8954
  t
8955
8955
  ]),
8956
8956
  children: /* @__PURE__ */ d(
8957
- Zo,
8957
+ Xo,
8958
8958
  {
8959
8959
  value: n,
8960
8960
  language: r,
@@ -8972,13 +8972,13 @@ const Hd = ({
8972
8972
  }
8973
8973
  );
8974
8974
  }, Ca = et(void 0);
8975
- function Bd({
8975
+ function ya({
8976
8976
  children: e,
8977
8977
  titles: t
8978
8978
  }) {
8979
8979
  return /* @__PURE__ */ d(Ca.Provider, { value: t, children: e });
8980
8980
  }
8981
- function ya() {
8981
+ function Sa() {
8982
8982
  return Ke(Ca);
8983
8983
  }
8984
8984
  const Wd = ({
@@ -9031,10 +9031,10 @@ const Wd = ({
9031
9031
  showLimitMessage: c,
9032
9032
  onGridApiReady: u
9033
9033
  }) => {
9034
- const a = ya();
9034
+ const a = Sa();
9035
9035
  return /* @__PURE__ */ v("div", { className: "flex flex-1 w-full justify-center min-h-0", children: [
9036
- Sc(e) && /* @__PURE__ */ d(
9037
- Xc,
9036
+ Dc(e) && /* @__PURE__ */ d(
9037
+ Qc,
9038
9038
  {
9039
9039
  actions: t,
9040
9040
  downloadTitles: n?.downloadTitle,
@@ -9042,7 +9042,7 @@ const Wd = ({
9042
9042
  }
9043
9043
  ),
9044
9044
  Vn(e) && /* @__PURE__ */ d(
9045
- pd,
9045
+ wd,
9046
9046
  {
9047
9047
  actions: t,
9048
9048
  attachment: e,
@@ -9050,7 +9050,7 @@ const Wd = ({
9050
9050
  }
9051
9051
  ),
9052
9052
  rt(e) && /* @__PURE__ */ d(
9053
- xd,
9053
+ Id,
9054
9054
  {
9055
9055
  attachment: e,
9056
9056
  isDataLoading: r,
@@ -9072,7 +9072,7 @@ const Wd = ({
9072
9072
  }
9073
9073
  ),
9074
9074
  Ot(e) && /* @__PURE__ */ d(
9075
- Vd,
9075
+ Gd,
9076
9076
  {
9077
9077
  titles: a,
9078
9078
  isDataLoading: r,
@@ -9083,15 +9083,15 @@ const Wd = ({
9083
9083
  }
9084
9084
  ),
9085
9085
  Pn(e) && /* @__PURE__ */ d(
9086
- ad,
9086
+ od,
9087
9087
  {
9088
9088
  attachment: e,
9089
9089
  openLinkTitle: n?.openLinkTitle
9090
9090
  }
9091
9091
  ),
9092
- Xs(e) && /* @__PURE__ */ d(nd, { attachment: e }),
9092
+ Xs(e) && /* @__PURE__ */ d(rd, { attachment: e }),
9093
9093
  Gn(e) && /* @__PURE__ */ d(
9094
- Hd,
9094
+ Bd,
9095
9095
  {
9096
9096
  attachment: e,
9097
9097
  className: n?.codeAttachmentContainerClassName
@@ -9099,8 +9099,8 @@ const Wd = ({
9099
9099
  )
9100
9100
  ] });
9101
9101
  };
9102
- Uo.registerModules([$o]);
9103
- const Sa = ({
9102
+ $o.registerModules([Jo]);
9103
+ const Da = ({
9104
9104
  attachments: e,
9105
9105
  actions: t,
9106
9106
  titles: n,
@@ -9161,7 +9161,7 @@ const Sa = ({
9161
9161
  w
9162
9162
  );
9163
9163
  return !e || e.length === 0 ? null : /* @__PURE__ */ d(me, { children: P && !c ? /* @__PURE__ */ d(
9164
- Rc,
9164
+ _c,
9165
9165
  {
9166
9166
  icon: r?.advanceViewIcon,
9167
9167
  title: r?.openAdvanceViewTitle ?? "Opened in Advanced view"
@@ -9171,12 +9171,13 @@ const Sa = ({
9171
9171
  {
9172
9172
  className: V(
9173
9173
  "space-y-3 max-w-full max-h-full h-full",
9174
- !P && !s ? "pt-5" : "pt-0"
9174
+ !P && !s ? "pt-5" : "pt-0",
9175
+ "flex flex-col pb-1"
9175
9176
  ),
9176
9177
  children: [
9177
9178
  !P && Z ? /* @__PURE__ */ d(Pe, {}) : /* @__PURE__ */ v(me, { children: [
9178
9179
  s && !P && /* @__PURE__ */ d(
9179
- Fc,
9180
+ Rc,
9180
9181
  {
9181
9182
  titles: {
9182
9183
  queryUpdatedManuallyTitle: n?.queryUpdatedManually,
@@ -9217,7 +9218,7 @@ const Sa = ({
9217
9218
  ),
9218
9219
  children: /* @__PURE__ */ v("div", { className: "flex flex-col max-w-full items-center gap-4 h-full", children: [
9219
9220
  /* @__PURE__ */ d(
9220
- Zc,
9221
+ Xc,
9221
9222
  {
9222
9223
  attachments: e,
9223
9224
  selectedAttachmentIndex: k,
@@ -9253,7 +9254,7 @@ const Sa = ({
9253
9254
  ] }),
9254
9255
  /* @__PURE__ */ v(me, { children: [
9255
9256
  H === ne.Opened && /* @__PURE__ */ d(
9256
- Hc,
9257
+ Bc,
9257
9258
  {
9258
9259
  actions: te,
9259
9260
  onCloseModal: ye,
@@ -9275,7 +9276,7 @@ const Sa = ({
9275
9276
  }
9276
9277
  ),
9277
9278
  q && /* @__PURE__ */ d(
9278
- qa,
9279
+ Za,
9279
9280
  {
9280
9281
  alertDetails: Y,
9281
9282
  successIcon: i?.successDownloadIcon,
@@ -9371,7 +9372,7 @@ const Si = [
9371
9372
  "gridColumnsChanged",
9372
9373
  "columnPinned"
9373
9374
  ];
9374
- function Da(e, t) {
9375
+ function Ma(e, t) {
9375
9376
  I(() => {
9376
9377
  if (e) {
9377
9378
  for (const n of Si)
@@ -9419,13 +9420,13 @@ function Zd({
9419
9420
  yi(t)
9420
9421
  );
9421
9422
  }, [e, t]);
9422
- return Da(t, a), {
9423
+ return Ma(t, a), {
9423
9424
  gridApi: t,
9424
9425
  onGridApiReady: u,
9425
9426
  initialColumnsState: r
9426
9427
  };
9427
9428
  }
9428
- const Ma = et(
9429
+ const ka = et(
9429
9430
  null
9430
9431
  );
9431
9432
  function Xd({
@@ -9439,10 +9440,10 @@ function Xd({
9439
9440
  }),
9440
9441
  [c, a, n, u, i, s]
9441
9442
  );
9442
- return /* @__PURE__ */ d(Ma.Provider, { value: l, children: t });
9443
+ return /* @__PURE__ */ d(ka.Provider, { value: l, children: t });
9443
9444
  }
9444
- function ka() {
9445
- const e = Ke(Ma);
9445
+ function Na() {
9446
+ const e = Ke(ka);
9446
9447
  if (!e)
9447
9448
  throw new Error(
9448
9449
  "useTableSettingsContext must be used within TableSettingsProvider"
@@ -9453,9 +9454,9 @@ const Qd = (e) => {
9453
9454
  const {
9454
9455
  tableSettings: { isOpen: t, open: n, close: r },
9455
9456
  agGrid: { onGridApiReady: i }
9456
- } = ka();
9457
+ } = Na();
9457
9458
  return /* @__PURE__ */ d(
9458
- Sa,
9459
+ Da,
9459
9460
  {
9460
9461
  ...e,
9461
9462
  isTableSettingsOpen: t,
@@ -9491,7 +9492,7 @@ const Qd = (e) => {
9491
9492
  ), [P, W] = p(void 0), H = pe(u || []), $ = pe(
9492
9493
  t?.constraintsMap
9493
9494
  ), [Z, ae] = p([]), [q, K] = p(), [Y, de] = p(), [fe, j] = p(!1), te = oe(
9494
- () => uc(c, t),
9495
+ () => hc(c, t),
9495
9496
  [c, t]
9496
9497
  ), re = (_) => {
9497
9498
  const B = _ ? T.map(
@@ -9559,10 +9560,10 @@ const Qd = (e) => {
9559
9560
  K(!0);
9560
9561
  return;
9561
9562
  }
9562
- const _ = lc(
9563
+ const _ = cc(
9563
9564
  t,
9564
9565
  l
9565
- ), B = cc(
9566
+ ), B = dc(
9566
9567
  _,
9567
9568
  c,
9568
9569
  t?.constraintsMap
@@ -9810,7 +9811,7 @@ const Qd = (e) => {
9810
9811
  limitMessages: h
9811
9812
  }
9812
9813
  ) : /* @__PURE__ */ d(
9813
- Lc,
9814
+ Oc,
9814
9815
  {
9815
9816
  attachmentsDataQuery: r,
9816
9817
  dataQueries: i,
@@ -9907,11 +9908,11 @@ function iu(e) {
9907
9908
  };
9908
9909
  }
9909
9910
  const Di = /* @__PURE__ */ Symbol.for("constructDateFrom");
9910
- function Na(e, t) {
9911
+ function Aa(e, t) {
9911
9912
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Di in e ? e[Di](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
9912
9913
  }
9913
9914
  function su(e, ...t) {
9914
- const n = Na.bind(
9915
+ const n = Aa.bind(
9915
9916
  null,
9916
9917
  e || t.find((r) => typeof r == "object")
9917
9918
  );
@@ -9922,13 +9923,13 @@ function ou() {
9922
9923
  return au;
9923
9924
  }
9924
9925
  function zn(e, t) {
9925
- return Na(t || e, e);
9926
+ return Aa(t || e, e);
9926
9927
  }
9927
9928
  function Mi(e, t) {
9928
9929
  const n = ou(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = zn(e, t?.in), s = i.getDay(), c = (s < r ? 7 : 0) + s - r;
9929
9930
  return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
9930
9931
  }
9931
- function Aa(e, t, n) {
9932
+ function Ta(e, t, n) {
9932
9933
  const [r, i] = su(
9933
9934
  n?.in,
9934
9935
  e,
@@ -10167,7 +10168,7 @@ function gu(e) {
10167
10168
  return "'у минулий " + t + " о' p";
10168
10169
  }
10169
10170
  }
10170
- function Ta(e) {
10171
+ function Ea(e) {
10171
10172
  return "'у " + Un[e] + " о' p";
10172
10173
  }
10173
10174
  function pu(e) {
@@ -10186,10 +10187,10 @@ function pu(e) {
10186
10187
  }
10187
10188
  const wu = (e, t, n) => {
10188
10189
  const r = zn(e), i = r.getDay();
10189
- return Aa(r, t, n) ? Ta(i) : gu(i);
10190
+ return Ta(r, t, n) ? Ea(i) : gu(i);
10190
10191
  }, vu = (e, t, n) => {
10191
10192
  const r = zn(e), i = r.getDay();
10192
- return Aa(r, t, n) ? Ta(i) : pu(i);
10193
+ return Ta(r, t, n) ? Ea(i) : pu(i);
10193
10194
  }, bu = {
10194
10195
  lastWeek: wu,
10195
10196
  yesterday: "'вчора о' p",
@@ -10493,7 +10494,7 @@ const wu = (e, t, n) => {
10493
10494
  }
10494
10495
  }, zu = (e) => e === qe.UK ? "dd MMM, yyyy" : " MMM dd, yyyy hh:mm aa", Uu = (e, t) => {
10495
10496
  const n = zu(t);
10496
- return e != null && e !== "" && n && Xo(new Date(e)) ? Qo(
10497
+ return e != null && e !== "" && n && Qo(new Date(e)) ? el(
10497
10498
  new Date(e),
10498
10499
  n,
10499
10500
  t === qe.UK ? { locale: ju } : void 0
@@ -10518,7 +10519,7 @@ const wu = (e, t, n) => {
10518
10519
  nameAndMetadataContainerClassName: w
10519
10520
  }) => {
10520
10521
  const [S, y] = p(""), [C, D] = p(!1), N = pe(null), [T, E] = p(""), [x, O] = p(""), [k, M] = p(!1), { onboardingFileSchema: L, isShowOnboarding: G } = Ve(), [P, W] = p(!1), H = oe(
10521
- () => s?.isMetadataDescription ? yd(n, S, c, u) : [],
10522
+ () => s?.isMetadataDescription ? Sd(n, S, c, u) : [],
10522
10523
  [
10523
10524
  n,
10524
10525
  S,
@@ -10529,8 +10530,8 @@ const wu = (e, t, n) => {
10529
10530
  ), $ = oe(
10530
10531
  () => [
10531
10532
  ...s?.isMetadataDescription ? [] : [nn(n, c, u)],
10532
- ...Dd(
10533
- Sd(r),
10533
+ ...Md(
10534
+ Dd(r),
10534
10535
  xn(i),
10535
10536
  c
10536
10537
  )
@@ -10549,7 +10550,7 @@ const wu = (e, t, n) => {
10549
10550
  D(!1), W(!0);
10550
10551
  }, []);
10551
10552
  I(() => {
10552
- const Y = a && a($) || Uu(Ao(n), c);
10553
+ const Y = a && a($) || Uu(To(n), c);
10553
10554
  y(Y);
10554
10555
  }, [n, c, $, a]), I(() => {
10555
10556
  if (G) {
@@ -10729,7 +10730,7 @@ const wu = (e, t, n) => {
10729
10730
  shouldMoveToNextStep: !0
10730
10731
  }
10731
10732
  ),
10732
- /* @__PURE__ */ d("h2", { className: "sm:h-3", children: e?.advanceViewTitle ?? "Advanced view" })
10733
+ /* @__PURE__ */ d("h2", { children: e?.advanceViewTitle ?? "Advanced view" })
10733
10734
  ]
10734
10735
  }
10735
10736
  ),
@@ -10739,7 +10740,7 @@ const wu = (e, t, n) => {
10739
10740
  );
10740
10741
  };
10741
10742
  function rn(e, t, n) {
10742
- const r = ts(e.conceptIdentity, t), i = To(
10743
+ const r = ts(e.conceptIdentity, t), i = Eo(
10743
10744
  r?.coreRepresentation?.enumeration,
10744
10745
  n
10745
10746
  );
@@ -10748,18 +10749,18 @@ function rn(e, t, n) {
10748
10749
  codeList: i || void 0
10749
10750
  };
10750
10751
  }
10751
- function Ea(e, t, n) {
10752
+ function xa(e, t, n) {
10752
10753
  const r = e.findIndex(
10753
10754
  (i) => i.id === t
10754
10755
  );
10755
10756
  return n.originalData.parsedTimeSeriesValue[r];
10756
10757
  }
10757
10758
  function $n(e, t, n, r, i) {
10758
- const s = Ea(e, t, r), c = n?.codes?.find((u) => u.id === s);
10759
+ const s = xa(e, t, r), c = n?.codes?.find((u) => u.id === s);
10759
10760
  return Ne(c, i);
10760
10761
  }
10761
10762
  function Yu(e, t, n, r, i, s, c, u, a) {
10762
- const l = Ku(e, n), o = a?.startPeriod && a.endPeriod ? Eo(
10763
+ const l = Ku(e, n), o = a?.startPeriod && a.endPeriod ? xo(
10763
10764
  u,
10764
10765
  a
10765
10766
  ) : [], h = qu(
@@ -10772,7 +10773,7 @@ function Yu(e, t, n, r, i, s, c, u, a) {
10772
10773
  o
10773
10774
  );
10774
10775
  return [
10775
- dd(
10776
+ ud(
10776
10777
  e,
10777
10778
  t?.data,
10778
10779
  n,
@@ -10782,7 +10783,7 @@ function Yu(e, t, n, r, i, s, c, u, a) {
10782
10783
  ),
10783
10784
  ...l,
10784
10785
  ...h,
10785
- ud(e, t?.data, n, void 0, s, c)
10786
+ hd(e, t?.data, n, void 0, s, c)
10786
10787
  ];
10787
10788
  }
10788
10789
  function Ku(e, t) {
@@ -10877,7 +10878,7 @@ function eh(e, t, n) {
10877
10878
  const th = (e, t, n, r) => {
10878
10879
  const i = rh(e, t), s = {};
10879
10880
  for (const c of i) {
10880
- const u = c.rowTime, a = xa(u, r);
10881
+ const u = c.rowTime, a = Ia(u, r);
10881
10882
  if (s[a] == null) {
10882
10883
  s[a] = {};
10883
10884
  for (const l of r)
@@ -10894,8 +10895,8 @@ const th = (e, t, n, r) => {
10894
10895
  };
10895
10896
  }
10896
10897
  return Object.values(s);
10897
- }, xa = (e, t) => t.map((n) => e[n]).join("_"), nh = (e, t) => {
10898
- const n = xa(e, t), { OBS_VALUE: r, obsAttributes: i } = e, s = {};
10898
+ }, Ia = (e, t) => t.map((n) => e[n]).join("_"), nh = (e, t) => {
10899
+ const n = Ia(e, t), { OBS_VALUE: r, obsAttributes: i } = e, s = {};
10899
10900
  return s[n] = {
10900
10901
  value: r,
10901
10902
  obsAttributes: i
@@ -10992,7 +10993,7 @@ function ki(e = sh, t = ah) {
10992
10993
  }
10993
10994
  };
10994
10995
  }
10995
- function Ia(e, t, n, r) {
10996
+ function La(e, t, n, r) {
10996
10997
  return t.map((s) => {
10997
10998
  const c = He(n)?.dimensions || [], u = c?.find((l) => l.id === s);
10998
10999
  if (u == null)
@@ -11030,7 +11031,7 @@ function ch(e, t, n) {
11030
11031
  }
11031
11032
  function dh(e, t, n) {
11032
11033
  const r = n.dataStructures?.[0]?.dataStructureComponents?.dimensionList?.dimensions || [];
11033
- return t.map((s) => r?.find((u) => u.id === s) == null ? e[s] || "" : Ea(r, s, e)).join(" - ");
11034
+ return t.map((s) => r?.find((u) => u.id === s) == null ? e[s] || "" : xa(r, s, e)).join(" - ");
11034
11035
  }
11035
11036
  function uh(e, t) {
11036
11037
  const n = {};
@@ -11063,12 +11064,12 @@ function gh(e, t, n, r, i) {
11063
11064
  );
11064
11065
  return {
11065
11066
  units: ch(s, l, e).map(
11066
- (h) => La(h, e, n, u, r, i)
11067
+ (h) => Oa(h, e, n, u, r, i)
11067
11068
  )
11068
11069
  };
11069
11070
  }
11070
11071
  function ph(e, t, n, r, i, s) {
11071
- return La(
11072
+ return Oa(
11072
11073
  { rows: [e] },
11073
11074
  n,
11074
11075
  r,
@@ -11077,9 +11078,9 @@ function ph(e, t, n, r, i, s) {
11077
11078
  s
11078
11079
  );
11079
11080
  }
11080
- function La(e, t, n, r, i, s) {
11081
+ function Oa(e, t, n, r, i, s) {
11081
11082
  const c = bh(e.rows, t, i), u = c?.find(
11082
- (l) => xo.includes(l?.id)
11083
+ (l) => Io.includes(l?.id)
11083
11084
  )?.id, a = wh(
11084
11085
  e.rows.length > Et ? e.rows.slice(0, Et) : e.rows,
11085
11086
  t,
@@ -11120,7 +11121,7 @@ function Ni(e, t, n) {
11120
11121
  }
11121
11122
  function wh(e, t, n, r, i) {
11122
11123
  return e.map((s) => ({
11123
- name: n?.metadata?.countryDimension == null ? "" : Ia(
11124
+ name: n?.metadata?.countryDimension == null ? "" : La(
11124
11125
  s,
11125
11126
  [n?.metadata?.countryDimension],
11126
11127
  t,
@@ -11139,7 +11140,7 @@ function bh(e, t, n) {
11139
11140
  return {
11140
11141
  id: r.id,
11141
11142
  title: Ch(r, t, n),
11142
- value: Ia(e[0], [r.id], t, n)
11143
+ value: La(e[0], [r.id], t, n)
11143
11144
  };
11144
11145
  }).filter((r) => r != null);
11145
11146
  }
@@ -11148,7 +11149,7 @@ function Ch(e, t, n) {
11148
11149
  return Ne(s, n) || e.id;
11149
11150
  }
11150
11151
  function Jn(e, t, n, r, i) {
11151
- const s = e == null ? [] : Io(e), c = He(t)?.dimensions || [], u = He(t)?.timeDimensions || [], a = eh(s, c, u);
11152
+ const s = e == null ? [] : Lo(e), c = He(t)?.dimensions || [], u = He(t)?.timeDimensions || [], a = eh(s, c, u);
11152
11153
  return yh(
11153
11154
  a,
11154
11155
  e,
@@ -11252,7 +11253,7 @@ const Ah = "Data Grid", Th = "Data", Eh = "Chart", xh = (e) => ({
11252
11253
  title: e || Th,
11253
11254
  type: Ie.CROSS_DATASET_GRID
11254
11255
  });
11255
- function Oa(e, t, n, r, i, s, c, u, a, l = !1) {
11256
+ function Fa(e, t, n, r, i, s, c, u, a, l = !1) {
11256
11257
  const [o, h] = p(), [f, g] = p(), [m, b] = p(), [w, S] = p(), [y, C] = p(
11257
11258
  xh(c?.dataGrid)
11258
11259
  ), [D, N] = p(
@@ -11273,7 +11274,7 @@ function Oa(e, t, n, r, i, s, c, u, a, l = !1) {
11273
11274
  []
11274
11275
  ), K = A(
11275
11276
  async (j) => {
11276
- const te = Lo(j);
11277
+ const te = Oo(j);
11277
11278
  try {
11278
11279
  const le = (await Je(
11279
11280
  H,
@@ -11419,7 +11420,7 @@ function Oa(e, t, n, r, i, s, c, u, a, l = !1) {
11419
11420
  };
11420
11421
  }
11421
11422
  const Oh = async (e, t) => {
11422
- const n = /* @__PURE__ */ new Map(), r = Oo(e);
11423
+ const n = /* @__PURE__ */ new Map(), r = Fo(e);
11423
11424
  return (await Promise.allSettled(
11424
11425
  e.map(async (s) => ({
11425
11426
  urn: s.urn,
@@ -11715,8 +11716,8 @@ function af(e, t, n, r, i, s, c, u, a, l, o) {
11715
11716
  )
11716
11717
  };
11717
11718
  }
11718
- function Fa(e, t, n, r, i, s) {
11719
- const c = ya(), [u, a] = p(), [l, o] = p(), [h, f] = p(), [g, m] = p(), [b, w] = p(), [S, y] = p(), [C, D] = p(), [N, T] = p(!1), [E, x] = p(
11719
+ function Ra(e, t, n, r, i, s) {
11720
+ const c = Sa(), [u, a] = p(), [l, o] = p(), [h, f] = p(), [g, m] = p(), [b, w] = p(), [S, y] = p(), [C, D] = p(), [N, T] = p(!1), [E, x] = p(
11720
11721
  Lh(c?.dataGrid)
11721
11722
  ), O = A(
11722
11723
  async (G) => {
@@ -11821,8 +11822,8 @@ function of({
11821
11822
  const [r, i] = p(0), s = A(() => {
11822
11823
  i((f) => f + 1);
11823
11824
  }, []);
11824
- Da(e, s);
11825
- const c = oe(() => e ? Yd(e, n) : [], [e, n, r]), u = oe(() => Za(c, t), [c, t]), a = A(
11825
+ Ma(e, s);
11826
+ const c = oe(() => e ? Yd(e, n) : [], [e, n, r]), u = oe(() => Xa(c, t), [c, t]), a = A(
11826
11827
  (f) => {
11827
11828
  if (!e)
11828
11829
  return;
@@ -11912,7 +11913,7 @@ function lf({
11912
11913
  }
11913
11914
  ),
11914
11915
  /* @__PURE__ */ d("div", { className: "overflow-y-auto flex-1 min-h-0", children: /* @__PURE__ */ d(
11915
- Xa,
11916
+ Qa,
11916
11917
  {
11917
11918
  items: u,
11918
11919
  onItemsChange: a,
@@ -11946,7 +11947,7 @@ const cf = ({
11946
11947
  className: "text-neutrals-800 flex gap-1 items-center",
11947
11948
  onClick: s,
11948
11949
  children: [
11949
- /* @__PURE__ */ d(io, { className: "rotate-180 size-4" }),
11950
+ /* @__PURE__ */ d(so, { className: "rotate-180 size-4" }),
11950
11951
  " ",
11951
11952
  /* @__PURE__ */ d("span", { className: "h4", children: i || "Reset" })
11952
11953
  ]
@@ -11963,7 +11964,7 @@ const cf = ({
11963
11964
  () => e.currentDataQuery?.urn ?? e.dataQueries?.[0]?.urn ?? "default",
11964
11965
  [e.currentDataQuery?.urn, e.dataQueries]
11965
11966
  );
11966
- return /* @__PURE__ */ d(Xd, { currentUrn: n, children: /* @__PURE__ */ d(df, { attachmentsProps: e, ...t }) });
11967
+ return /* @__PURE__ */ d(ya, { titles: t.titles, children: /* @__PURE__ */ d(Xd, { currentUrn: n, children: /* @__PURE__ */ d(df, { attachmentsProps: e, ...t }) }) });
11967
11968
  }, df = ({
11968
11969
  attachmentsProps: e,
11969
11970
  actions: t,
@@ -11984,7 +11985,7 @@ const cf = ({
11984
11985
  close: b
11985
11986
  },
11986
11987
  agGrid: { gridApi: w, initialColumnsState: S }
11987
- } = ka(), {
11988
+ } = Na(), {
11988
11989
  dataMessage: y,
11989
11990
  dataset: C,
11990
11991
  dimensions: D,
@@ -11994,7 +11995,7 @@ const cf = ({
11994
11995
  onFiltersChange: x,
11995
11996
  isLoadingGridData: O,
11996
11997
  constraints: k
11997
- } = Oa(
11998
+ } = Fa(
11998
11999
  t,
11999
12000
  c,
12000
12001
  e.currentDataQuery,
@@ -12010,7 +12011,7 @@ const cf = ({
12010
12011
  constraintsMap: P,
12011
12012
  crossDatasetGridAttachment: W,
12012
12013
  isLoadingGridData: H
12013
- } = Fa(
12014
+ } = Ra(
12014
12015
  t,
12015
12016
  c,
12016
12017
  e.dataQueries,
@@ -12234,7 +12235,7 @@ function ff(e) {
12234
12235
  }
12235
12236
  };
12236
12237
  }
12237
- var Ra = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(Ra || {});
12238
+ var _a = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(_a || {});
12238
12239
  const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12239
12240
  "div",
12240
12241
  {
@@ -12242,7 +12243,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12242
12243
  className: "message-stage flex relative pb-8 last:pb-0 last:mb-8",
12243
12244
  children: [
12244
12245
  /* @__PURE__ */ d("span", { className: "message-stage-line absolute border-l h-full" }),
12245
- /* @__PURE__ */ d(so, { className: "message-stage-indicator flex shrink-0 z-10" }),
12246
+ /* @__PURE__ */ d(ao, { className: "message-stage-indicator flex shrink-0 z-10" }),
12246
12247
  /* @__PURE__ */ v("div", { className: "ml-2 w-full", children: [
12247
12248
  /* @__PURE__ */ v(
12248
12249
  "div",
@@ -12288,7 +12289,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12288
12289
  const [r, i] = p(), [s, c] = p(), u = pe(null), a = pe(null);
12289
12290
  I(() => {
12290
12291
  c(
12291
- e?.filter((o) => o?.status !== Ra.COMPLETED)?.at(-1)
12292
+ e?.filter((o) => o?.status !== _a.COMPLETED)?.at(-1)
12292
12293
  );
12293
12294
  }, [e]), I(() => {
12294
12295
  r && a?.current?.scrollIntoView({
@@ -12508,7 +12509,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12508
12509
  I(() => {
12509
12510
  L(O?.[0]);
12510
12511
  }, [O]);
12511
- const { dataSetAttachments: Ce, dimensions: be, isLoadingGridData: Ae } = Oa(
12512
+ const { dataSetAttachments: Ce, dimensions: be, isLoadingGridData: Ae } = Fa(
12512
12513
  r,
12513
12514
  h,
12514
12515
  M,
@@ -12522,7 +12523,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12522
12523
  ), {
12523
12524
  crossDatasetGridAttachment: Le,
12524
12525
  isLoadingGridData: Te
12525
- } = Fa(
12526
+ } = Ra(
12526
12527
  r,
12527
12528
  h,
12528
12529
  O,
@@ -12564,7 +12565,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12564
12565
  if (e?.role === Fe.System && t) {
12565
12566
  const ie = mi(t), he = Ei(ie) || [];
12566
12567
  O && he && j && P(
12567
- Wc(
12568
+ jc(
12568
12569
  he,
12569
12570
  O,
12570
12571
  j,
@@ -12597,7 +12598,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12597
12598
  c
12598
12599
  ]), ce = oe(
12599
12600
  () => /* @__PURE__ */ d(
12600
- Sa,
12601
+ Da,
12601
12602
  {
12602
12603
  actions: r,
12603
12604
  titles: n,
@@ -12772,14 +12773,14 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12772
12773
  I(() => {
12773
12774
  a && f(!1);
12774
12775
  }, [a]);
12775
- const w = Qa(b, 300);
12776
+ const w = eo(b, 300);
12776
12777
  I(() => {
12777
12778
  const y = u.current?.parentElement;
12778
12779
  return y?.addEventListener("scroll", w), () => y?.removeEventListener("scroll", w);
12779
12780
  }, [w]);
12780
12781
  const S = A((y) => {
12781
- const C = mo(y);
12782
- return /* @__PURE__ */ d("div", { className: "whitespace-pre-wrap break-words", children: C.map((D, N) => D.type === "text" ? /* @__PURE__ */ d(Ba, { children: D.value }, N) : /* @__PURE__ */ d(
12782
+ const C = go(y);
12783
+ return /* @__PURE__ */ d("div", { className: "whitespace-pre-wrap break-words", children: C.map((D, N) => D.type === "text" ? /* @__PURE__ */ d(Wa, { children: D.value }, N) : /* @__PURE__ */ d(
12783
12784
  "a",
12784
12785
  {
12785
12786
  href: D.value,
@@ -12799,10 +12800,10 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12799
12800
  const x = i?.errorContext?.kind === Tn.RATE_LIMIT ? Ct.Warning : Ct.Error;
12800
12801
  return /* @__PURE__ */ d(Ft, { type: x, children: /* @__PURE__ */ d("div", { className: "flex flex-col", children: S(y.errorMessage) }) }, D);
12801
12802
  }
12802
- const N = C === e.length - 1, T = Mc(
12803
+ const N = C === e.length - 1, T = kc(
12803
12804
  e,
12804
12805
  C
12805
- ), E = kc(e);
12806
+ ), E = Nc(e);
12806
12807
  return /* @__PURE__ */ d(
12807
12808
  bf,
12808
12809
  {
@@ -12836,7 +12837,7 @@ const mf = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ v(
12836
12837
  }, yf = (e) => {
12837
12838
  const t = {};
12838
12839
  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;
12839
- }, Sf = "local", Df = (e) => !e.permissions?.includes(Wa.WRITE) && !kf(e), Mf = (e, t) => _a(e) !== t, kf = (e) => _a(e) === Sf, _a = (e) => e.id.split("/")[0], Nf = (e, t) => Zn([...t?.messages || [], e]), Zn = (e) => [...e].map((t) => {
12840
+ }, Sf = "local", Df = (e) => !e.permissions?.includes(ja.WRITE) && !kf(e), Mf = (e, t) => Pa(e) !== t, kf = (e) => Pa(e) === Sf, Pa = (e) => e.id.split("/")[0], Nf = (e, t) => Zn([...t?.messages || [], e]), Zn = (e) => [...e].map((t) => {
12840
12841
  const n = {
12841
12842
  role: t.role,
12842
12843
  content: t.content
@@ -12881,7 +12882,7 @@ const xf = (e, t, n, r) => {
12881
12882
  };
12882
12883
  }
12883
12884
  return i;
12884
- }, If = (e, t, n) => `/${t}${n}/${go(e?.folderId, e?.id)}`, Lf = (e, t, n) => {
12885
+ }, If = (e, t, n) => `/${t}${n}/${po(e?.folderId, e?.id)}`, Lf = (e, t, n) => {
12885
12886
  const r = `${t}/${n}`, i = Wi({
12886
12887
  folderId: r,
12887
12888
  name: e?.name
@@ -12908,7 +12909,7 @@ const xf = (e, t, n, r) => {
12908
12909
  getFileBlob: n,
12909
12910
  putFile: r
12910
12911
  }) => {
12911
- const i = po(e), s = Date.now();
12912
+ const i = wo(e), s = Date.now();
12912
12913
  if (!i.length)
12913
12914
  return e;
12914
12915
  const c = await Promise.all(
@@ -12924,7 +12925,7 @@ const xf = (e, t, n, r) => {
12924
12925
  return await r(a, l), [u, a];
12925
12926
  })
12926
12927
  );
12927
- return wo(
12928
+ return vo(
12928
12929
  e,
12929
12930
  Object.fromEntries(c)
12930
12931
  );
@@ -12964,7 +12965,7 @@ const xf = (e, t, n, r) => {
12964
12965
  errorContext: n.details
12965
12966
  };
12966
12967
  }
12967
- return e.code === oo.CONTENT_FILTER ? {
12968
+ return e.code === lo.CONTENT_FILTER ? {
12968
12969
  errorMessage: t.contentFilterError ?? e.message
12969
12970
  } : {
12970
12971
  errorMessage: e.status === Pt.SERVICE_UNAVAILABLE ? t.serverOverloaded : t.serverError
@@ -13009,7 +13010,7 @@ const xf = (e, t, n, r) => {
13009
13010
  limitMessages: x,
13010
13011
  attachmentsConfig: O
13011
13012
  }) => {
13012
- const [k, M] = p(null), [L, G] = p(!1), [P, W] = p(!0), { isStreaming: H, setIsStreaming: $ } = el(), { isOpenedAdvancedView: Z } = tt(), { isAgentAvailable: ae } = Yt(), { statusMessages: q } = ls(), {
13013
+ const [k, M] = p(null), [L, G] = p(!1), [P, W] = p(!0), { isStreaming: H, setIsStreaming: $ } = tl(), { isOpenedAdvancedView: Z } = tt(), { isAgentAvailable: ae } = Yt(), { statusMessages: q } = ls(), {
13013
13014
  onboardingFileSchema: K,
13014
13015
  onboardingFilePath: Y,
13015
13016
  onboardingFileName: de,
@@ -13103,7 +13104,7 @@ const xf = (e, t, n, r) => {
13103
13104
  ), F;
13104
13105
  }, [S]), Ce = A(
13105
13106
  (F, R) => {
13106
- const z = lo?.(F, [
13107
+ const z = co?.(F, [
13107
13108
  R
13108
13109
  ]);
13109
13110
  if (z)
@@ -13124,14 +13125,14 @@ const xf = (e, t, n, r) => {
13124
13125
  R === Qe.Liked,
13125
13126
  t.model.id
13126
13127
  ), t.messages = t.messages.map(
13127
- (z) => z.responseId === F ? Ko(z, { like: R }) : z
13128
+ (z) => z.responseId === F ? qo(z, { like: R }) : z
13128
13129
  ), le(t));
13129
13130
  },
13130
13131
  [n, t, le]
13131
13132
  ), Ae = A(
13132
13133
  (F, R) => {
13133
13134
  let z = q.serverError, ee, X;
13134
- if (vo(F)) {
13135
+ if (bo(F)) {
13135
13136
  X = F;
13136
13137
  const Se = Vf({
13137
13138
  error: F,
@@ -13159,7 +13160,7 @@ const xf = (e, t, n, r) => {
13159
13160
  const ee = new AbortController();
13160
13161
  M(ee);
13161
13162
  let X = F, Se;
13162
- return z ? (await co?.(
13163
+ return z ? (await uo?.(
13163
13164
  encodeURI(z.id),
13164
13165
  R,
13165
13166
  {
@@ -13395,12 +13396,12 @@ const xf = (e, t, n, r) => {
13395
13396
  if (P)
13396
13397
  return /* @__PURE__ */ d(Pe, {});
13397
13398
  const Re = t?.customViewState?.[fn], kt = () => {
13398
- if (Re?.errorContext?.kind === Tn.RATE_LIMIT && uo(Re.errorContext)) {
13399
- const F = ho(
13399
+ if (Re?.errorContext?.kind === Tn.RATE_LIMIT && ho(Re.errorContext)) {
13400
+ const F = fo(
13400
13401
  Re.errorContext
13401
13402
  );
13402
13403
  if (F) {
13403
- const R = fo(F);
13404
+ const R = mo(F);
13404
13405
  return /* @__PURE__ */ d(Ft, { type: Ct.Info, children: q.getAssistantRestoreMessage(
13405
13406
  R.date,
13406
13407
  R.time
@@ -13423,7 +13424,7 @@ const xf = (e, t, n, r) => {
13423
13424
  }
13424
13425
  ) : /* @__PURE__ */ d(Ft, { type: Ct.Error, children: q.assistantUnavailable });
13425
13426
  };
13426
- return /* @__PURE__ */ d(Bd, { titles: m, children: /* @__PURE__ */ v(
13427
+ return /* @__PURE__ */ d(ya, { titles: m, children: /* @__PURE__ */ v(
13427
13428
  "div",
13428
13429
  {
13429
13430
  className: V(
@@ -13570,21 +13571,21 @@ export {
13570
13571
  dm as AdvancedViewProvider,
13571
13572
  Ln as CUSTOM_CHOICE_ID,
13572
13573
  Cn as ChartingIcon,
13573
- Dl as ChatFooter,
13574
+ Ml as ChatFooter,
13574
13575
  um as ChatMessagesProvider,
13575
- Sl as ChatOnboardingFooter,
13576
+ Dl as ChatOnboardingFooter,
13576
13577
  vm as ConversationView,
13577
13578
  hm as ConversationViewMessagesProvider,
13578
- Bd as ConversationViewTitlesProvider,
13579
+ ya as ConversationViewTitlesProvider,
13579
13580
  pm as ConversationWelcome,
13580
13581
  bn as CustomContentProperties,
13581
13582
  bm as DatasetDimensionsMetadataMapProvider,
13582
13583
  fm as OnboardingProvider,
13583
- tl as STAGE_STATUS,
13584
+ nl as STAGE_STATUS,
13584
13585
  tt as useAdvancedView,
13585
- el as useChatMessages,
13586
+ tl as useChatMessages,
13586
13587
  ls as useConversationViewMessages,
13587
- ya as useConversationViewTitles,
13588
+ Sa as useConversationViewTitles,
13588
13589
  Bf as useDatasetDimensionsMetadataMap,
13589
13590
  Cm as useDatasetDimensionsMetadataMapOptional,
13590
13591
  Ve as useOnboarding