@epam/statgpt-conversation-view 0.4.0 → 0.5.0-rc.1

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 +5 -5
  2. package/index.mjs +692 -690
  3. package/package.json +6 -6
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as u, jsxs as D, Fragment as ue } from "react/jsx-runtime";
2
- import * as ce from "react";
1
+ import { jsx as u, jsxs as D, Fragment as ce } from "react/jsx-runtime";
2
+ import * as de from "react";
3
3
  import xe, { createContext as dt, useState as S, useContext as tt, useMemo as K, useCallback as A, useRef as pe, useEffect as R, startTransition as Mi, Fragment as Ko } from "react";
4
4
  import { Role as ze, DialSchemaProperties as Kn, LikeState as ht, SharePermission as qo } from "@epam/ai-dial-shared";
5
5
  import { InputWithIcon as yn, KeyboardKey as Zo, IconButton as Qe, Button as Ne, Popup as Nt, PopUpSize as Tt, Loader as $e, PopUpState as ae, useAgentAvailability as Dn, InlineAlert as Ot, InlineAlertType as yt, Tag as Xo, TREE_NODE_PADDING as Ps, TREE_NODE_ARROW_SIZE as Qo, Radio as Ni, Calendar as Rs, Checkbox as hr, useIsMobile as Sn, Dropdown as el, SERIES_LIMIT as Dt, CloseButton as Ti, CollapsibleBlock as fr, RequestLimitMessage as Ai, DownloadFormatMessage as tl, CopyButton as nl, Link as rl, Alert as sl, filterDraggableListNodes as il, DraggableList as al, useDebounce as ol } from "@epam/statgpt-ui-components";
@@ -126,14 +126,14 @@ const Xi = ({
126
126
  onRetryFailed: l
127
127
  }) => {
128
128
  const [h, f] = S(""), m = A(
129
- (C) => {
130
- f(C);
129
+ (b) => {
130
+ f(b);
131
131
  },
132
132
  [f]
133
- ), g = (C) => {
134
- e || t || (f(""), o(C));
135
- }, v = (C) => {
136
- t || C.key === Zo.Enter && !C.shiftKey && (a ? l?.() : g(h.trim()));
133
+ ), g = (b) => {
134
+ e || t || (f(""), o(b));
135
+ }, C = (b) => {
136
+ t || b.key === Zo.Enter && !b.shiftKey && (a ? l?.() : g(h.trim()));
137
137
  }, p = () => t ? null : a ? /* @__PURE__ */ u(
138
138
  Qe,
139
139
  {
@@ -163,7 +163,7 @@ const Xi = ({
163
163
  containerClasses: n,
164
164
  placeholder: s,
165
165
  onChange: m,
166
- onKeyDown: v,
166
+ onKeyDown: C,
167
167
  disabled: t,
168
168
  cssClass: W(r, "input-for-ask"),
169
169
  value: h,
@@ -245,10 +245,10 @@ var gt;
245
245
  const m = this.addEccAndInterleave(l);
246
246
  if (this.drawCodewords(m), h == -1) {
247
247
  let g = 1e9;
248
- for (let v = 0; v < 8; v++) {
249
- this.applyMask(v), this.drawFormatBits(v);
248
+ for (let C = 0; C < 8; C++) {
249
+ this.applyMask(C), this.drawFormatBits(C);
250
250
  const p = this.getPenaltyScore();
251
- p < g && (h = v, g = p), this.applyMask(v);
251
+ p < g && (h = C, g = p), this.applyMask(C);
252
252
  }
253
253
  }
254
254
  s(0 <= h && h <= 7), this.mask = h, this.applyMask(h), this.drawFormatBits(h), this.isFunction = [];
@@ -284,33 +284,33 @@ var gt;
284
284
  static encodeSegments(o, c, l = 1, h = 40, f = -1, m = !0) {
285
285
  if (!(se.MIN_VERSION <= l && l <= h && h <= se.MAX_VERSION) || f < -1 || f > 7)
286
286
  throw new RangeError("Invalid value");
287
- let g, v;
287
+ let g, C;
288
288
  for (g = l; ; g++) {
289
- const w = se.getNumDataCodewords(g, c) * 8, b = a.getTotalBits(o, g);
290
- if (b <= w) {
291
- v = b;
289
+ const w = se.getNumDataCodewords(g, c) * 8, v = a.getTotalBits(o, g);
290
+ if (v <= w) {
291
+ C = v;
292
292
  break;
293
293
  }
294
294
  if (g >= h)
295
295
  throw new RangeError("Data too long");
296
296
  }
297
297
  for (const w of [se.Ecc.MEDIUM, se.Ecc.QUARTILE, se.Ecc.HIGH])
298
- m && v <= se.getNumDataCodewords(g, w) * 8 && (c = w);
298
+ m && C <= se.getNumDataCodewords(g, w) * 8 && (c = w);
299
299
  let p = [];
300
300
  for (const w of o) {
301
301
  n(w.mode.modeBits, 4, p), n(w.numChars, w.mode.numCharCountBits(g), p);
302
- for (const b of w.getData())
303
- p.push(b);
302
+ for (const v of w.getData())
303
+ p.push(v);
304
304
  }
305
- s(p.length == v);
306
- const C = se.getNumDataCodewords(g, c) * 8;
307
- s(p.length <= C), n(0, Math.min(4, C - p.length), p), n(0, (8 - p.length % 8) % 8, p), s(p.length % 8 == 0);
308
- for (let w = 236; p.length < C; w ^= 253)
305
+ s(p.length == C);
306
+ const b = se.getNumDataCodewords(g, c) * 8;
307
+ s(p.length <= b), n(0, Math.min(4, b - p.length), p), n(0, (8 - p.length % 8) % 8, p), s(p.length % 8 == 0);
308
+ for (let w = 236; p.length < b; w ^= 253)
309
309
  n(w, 8, p);
310
310
  let y = [];
311
311
  for (; y.length * 8 < p.length; )
312
312
  y.push(0);
313
- return p.forEach((w, b) => y[b >>> 3] |= w << 7 - (b & 7)), new se(g, c, y, f);
313
+ return p.forEach((w, v) => y[v >>> 3] |= w << 7 - (v & 7)), new se(g, c, y, f);
314
314
  }
315
315
  /*-- Accessor methods --*/
316
316
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -398,19 +398,19 @@ var gt;
398
398
  const c = this.version, l = this.errorCorrectionLevel;
399
399
  if (o.length != se.getNumDataCodewords(c, l))
400
400
  throw new RangeError("Invalid argument");
401
- const h = se.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][c], f = se.ECC_CODEWORDS_PER_BLOCK[l.ordinal][c], m = Math.floor(se.getNumRawDataModules(c) / 8), g = h - m % h, v = Math.floor(m / h);
401
+ const h = se.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][c], f = se.ECC_CODEWORDS_PER_BLOCK[l.ordinal][c], m = Math.floor(se.getNumRawDataModules(c) / 8), g = h - m % h, C = Math.floor(m / h);
402
402
  let p = [];
403
- const C = se.reedSolomonComputeDivisor(f);
404
- for (let w = 0, b = 0; w < h; w++) {
405
- let N = o.slice(b, b + v - f + (w < g ? 0 : 1));
406
- b += N.length;
407
- const M = se.reedSolomonComputeRemainder(N, C);
403
+ const b = se.reedSolomonComputeDivisor(f);
404
+ for (let w = 0, v = 0; w < h; w++) {
405
+ let N = o.slice(v, v + C - f + (w < g ? 0 : 1));
406
+ v += N.length;
407
+ const M = se.reedSolomonComputeRemainder(N, b);
408
408
  w < g && N.push(0), p.push(N.concat(M));
409
409
  }
410
410
  let y = [];
411
411
  for (let w = 0; w < p[0].length; w++)
412
- p.forEach((b, N) => {
413
- (w != v - f || N >= g) && y.push(b[w]);
412
+ p.forEach((v, N) => {
413
+ (w != C - f || N >= g) && y.push(v[w]);
414
414
  });
415
415
  return s(y.length == m), y;
416
416
  }
@@ -424,8 +424,8 @@ var gt;
424
424
  l == 6 && (l = 5);
425
425
  for (let h = 0; h < this.size; h++)
426
426
  for (let f = 0; f < 2; f++) {
427
- const m = l - f, v = (l + 1 & 2) == 0 ? this.size - 1 - h : h;
428
- !this.isFunction[v][m] && c < o.length * 8 && (this.modules[v][m] = r(o[c >>> 3], 7 - (c & 7)), c++);
427
+ const m = l - f, C = (l + 1 & 2) == 0 ? this.size - 1 - h : h;
428
+ !this.isFunction[C][m] && c < o.length * 8 && (this.modules[C][m] = r(o[c >>> 3], 7 - (c & 7)), c++);
429
429
  }
430
430
  }
431
431
  s(c == o.length * 8);
@@ -477,16 +477,16 @@ var gt;
477
477
  getPenaltyScore() {
478
478
  let o = 0;
479
479
  for (let f = 0; f < this.size; f++) {
480
- let m = !1, g = 0, v = [0, 0, 0, 0, 0, 0, 0];
480
+ let m = !1, g = 0, C = [0, 0, 0, 0, 0, 0, 0];
481
481
  for (let p = 0; p < this.size; p++)
482
- this.modules[f][p] == m ? (g++, g == 5 ? o += se.PENALTY_N1 : g > 5 && o++) : (this.finderPenaltyAddHistory(g, v), m || (o += this.finderPenaltyCountPatterns(v) * se.PENALTY_N3), m = this.modules[f][p], g = 1);
483
- o += this.finderPenaltyTerminateAndCount(m, g, v) * se.PENALTY_N3;
482
+ this.modules[f][p] == m ? (g++, g == 5 ? o += se.PENALTY_N1 : g > 5 && o++) : (this.finderPenaltyAddHistory(g, C), m || (o += this.finderPenaltyCountPatterns(C) * se.PENALTY_N3), m = this.modules[f][p], g = 1);
483
+ o += this.finderPenaltyTerminateAndCount(m, g, C) * se.PENALTY_N3;
484
484
  }
485
485
  for (let f = 0; f < this.size; f++) {
486
- let m = !1, g = 0, v = [0, 0, 0, 0, 0, 0, 0];
486
+ let m = !1, g = 0, C = [0, 0, 0, 0, 0, 0, 0];
487
487
  for (let p = 0; p < this.size; p++)
488
- this.modules[p][f] == m ? (g++, g == 5 ? o += se.PENALTY_N1 : g > 5 && o++) : (this.finderPenaltyAddHistory(g, v), m || (o += this.finderPenaltyCountPatterns(v) * se.PENALTY_N3), m = this.modules[p][f], g = 1);
489
- o += this.finderPenaltyTerminateAndCount(m, g, v) * se.PENALTY_N3;
488
+ this.modules[p][f] == m ? (g++, g == 5 ? o += se.PENALTY_N1 : g > 5 && o++) : (this.finderPenaltyAddHistory(g, C), m || (o += this.finderPenaltyCountPatterns(C) * se.PENALTY_N3), m = this.modules[p][f], g = 1);
489
+ o += this.finderPenaltyTerminateAndCount(m, g, C) * se.PENALTY_N3;
490
490
  }
491
491
  for (let f = 0; f < this.size - 1; f++)
492
492
  for (let m = 0; m < this.size - 1; m++) {
@@ -796,8 +796,8 @@ function Tc(e, t, n, r) {
796
796
  const s = e.length + n * 2, i = Math.floor(t * Nc), a = s / t, d = (r.width || i) * a, o = (r.height || i) * a, c = r.x == null ? e.length / 2 - d / 2 : r.x * a, l = r.y == null ? e.length / 2 - o / 2 : r.y * a, h = r.opacity == null ? 1 : r.opacity;
797
797
  let f = null;
798
798
  if (r.excavate) {
799
- let g = Math.floor(c), v = Math.floor(l), p = Math.ceil(d + c - g), C = Math.ceil(o + l - v);
800
- f = { x: g, y: v, w: p, h: C };
799
+ let g = Math.floor(c), C = Math.floor(l), p = Math.ceil(d + c - g), b = Math.ceil(o + l - C);
800
+ f = { x: g, y: C, w: p, h: b };
801
801
  }
802
802
  const m = r.crossOrigin;
803
803
  return { x: c, y: l, h: o, w: d, excavation: f, opacity: h, crossOrigin: m };
@@ -816,7 +816,7 @@ function ca({
816
816
  boostLevel: d
817
817
  }) {
818
818
  let o = xe.useMemo(() => {
819
- const g = (Array.isArray(e) ? e : [e]).reduce((v, p) => (v.push(...bt.QrSegment.makeSegments(p)), v), []);
819
+ const g = (Array.isArray(e) ? e : [e]).reduce((C, p) => (C.push(...bt.QrSegment.makeSegments(p)), C), []);
820
820
  return bt.QrCode.encodeSegments(
821
821
  g,
822
822
  Dc[t],
@@ -828,7 +828,7 @@ function ca({
828
828
  }, [e, t, n, d]);
829
829
  const { cells: c, margin: l, numCells: h, calculatedImageSettings: f } = xe.useMemo(() => {
830
830
  let m = o.getModules();
831
- const g = Ac(r, s), v = m.length + g * 2, p = Tc(
831
+ const g = Ac(r, s), C = m.length + g * 2, p = Tc(
832
832
  m,
833
833
  a,
834
834
  g,
@@ -837,7 +837,7 @@ function ca({
837
837
  return {
838
838
  cells: m,
839
839
  margin: g,
840
- numCells: v,
840
+ numCells: C,
841
841
  calculatedImageSettings: p
842
842
  };
843
843
  }, [o, a, i, r, s]);
@@ -869,7 +869,7 @@ var kc = (function() {
869
869
  boostLevel: h,
870
870
  marginSize: f,
871
871
  imageSettings: m
872
- } = r, v = ir(r, [
872
+ } = r, C = ir(r, [
873
873
  "value",
874
874
  "size",
875
875
  "level",
@@ -880,12 +880,12 @@ var kc = (function() {
880
880
  "boostLevel",
881
881
  "marginSize",
882
882
  "imageSettings"
883
- ]), { style: p } = v, C = ir(v, ["style"]), y = m?.src, w = xe.useRef(null), b = xe.useRef(null), N = xe.useCallback(
883
+ ]), { style: p } = C, b = ir(C, ["style"]), y = m?.src, w = xe.useRef(null), v = xe.useRef(null), N = xe.useCallback(
884
884
  (L) => {
885
885
  w.current = L, typeof n == "function" ? n(L) : n && (n.current = L);
886
886
  },
887
887
  [n]
888
- ), [M, E] = xe.useState(!1), { margin: T, cells: G, numCells: I, calculatedImageSettings: k } = ca({
888
+ ), [M, k] = xe.useState(!1), { margin: T, cells: G, numCells: I, calculatedImageSettings: E } = ca({
889
889
  value: s,
890
890
  level: a,
891
891
  minVersion: l,
@@ -901,10 +901,10 @@ var kc = (function() {
901
901
  if (!P)
902
902
  return;
903
903
  let _ = G;
904
- const H = b.current, F = k != null && H !== null && H.complete && H.naturalHeight !== 0 && H.naturalWidth !== 0;
905
- F && k.excavation != null && (_ = la(
904
+ const H = v.current, F = E != null && H !== null && H.complete && H.naturalHeight !== 0 && H.naturalWidth !== 0;
905
+ F && E.excavation != null && (_ = la(
906
906
  G,
907
- k.excavation
907
+ E.excavation
908
908
  ));
909
909
  const U = window.devicePixelRatio || 1;
910
910
  L.height = L.width = i * U;
@@ -913,16 +913,16 @@ var kc = (function() {
913
913
  q.forEach(function(oe, he) {
914
914
  oe && P.fillRect(he + T, Z + T, 1, 1);
915
915
  });
916
- }), k && (P.globalAlpha = k.opacity), F && P.drawImage(
916
+ }), E && (P.globalAlpha = E.opacity), F && P.drawImage(
917
917
  H,
918
- k.x + T,
919
- k.y + T,
920
- k.w,
921
- k.h
918
+ E.x + T,
919
+ E.y + T,
920
+ E.w,
921
+ E.h
922
922
  );
923
923
  }
924
924
  }), xe.useEffect(() => {
925
- E(!1);
925
+ k(!1);
926
926
  }, [y]);
927
927
  const O = sr({ height: i, width: i }, p);
928
928
  let V = null;
@@ -933,10 +933,10 @@ var kc = (function() {
933
933
  key: y,
934
934
  style: { display: "none" },
935
935
  onLoad: () => {
936
- E(!0);
936
+ k(!0);
937
937
  },
938
- ref: b,
939
- crossOrigin: k?.crossOrigin
938
+ ref: v,
939
+ crossOrigin: E?.crossOrigin
940
940
  }
941
941
  )), /* @__PURE__ */ xe.createElement(xe.Fragment, null, /* @__PURE__ */ xe.createElement(
942
942
  "canvas",
@@ -946,7 +946,7 @@ var kc = (function() {
946
946
  width: i,
947
947
  ref: N,
948
948
  role: "img"
949
- }, C)
949
+ }, b)
950
950
  ), V);
951
951
  }
952
952
  );
@@ -965,7 +965,7 @@ var da = xe.forwardRef(
965
965
  title: f,
966
966
  marginSize: m,
967
967
  imageSettings: g
968
- } = r, v = ir(r, [
968
+ } = r, C = ir(r, [
969
969
  "value",
970
970
  "size",
971
971
  "level",
@@ -977,7 +977,7 @@ var da = xe.forwardRef(
977
977
  "title",
978
978
  "marginSize",
979
979
  "imageSettings"
980
- ]), { margin: p, cells: C, numCells: y, calculatedImageSettings: w } = ca({
980
+ ]), { margin: p, cells: b, numCells: y, calculatedImageSettings: w } = ca({
981
981
  value: s,
982
982
  level: a,
983
983
  minVersion: l,
@@ -987,9 +987,9 @@ var da = xe.forwardRef(
987
987
  imageSettings: g,
988
988
  size: i
989
989
  });
990
- let b = C, N = null;
991
- g != null && w != null && (w.excavation != null && (b = la(
992
- C,
990
+ let v = b, N = null;
991
+ g != null && w != null && (w.excavation != null && (v = la(
992
+ b,
993
993
  w.excavation
994
994
  )), N = /* @__PURE__ */ xe.createElement(
995
995
  "image",
@@ -1004,7 +1004,7 @@ var da = xe.forwardRef(
1004
1004
  crossOrigin: w.crossOrigin
1005
1005
  }
1006
1006
  ));
1007
- const M = oa(b, p);
1007
+ const M = oa(v, p);
1008
1008
  return /* @__PURE__ */ xe.createElement(
1009
1009
  "svg",
1010
1010
  sr({
@@ -1013,7 +1013,7 @@ var da = xe.forwardRef(
1013
1013
  viewBox: `0 0 ${y} ${y}`,
1014
1014
  ref: n,
1015
1015
  role: "img"
1016
- }, v),
1016
+ }, C),
1017
1017
  !!f && /* @__PURE__ */ xe.createElement("title", null, f),
1018
1018
  /* @__PURE__ */ xe.createElement(
1019
1019
  "path",
@@ -1063,26 +1063,26 @@ const xc = (e, t) => ({
1063
1063
  shareCopiedLink: f,
1064
1064
  shareDescription: m,
1065
1065
  shareRemoveAccessToUsers: g,
1066
- chatName: v,
1066
+ chatName: C,
1067
1067
  getSharedConversations: p,
1068
- revokeSharedConversations: C,
1068
+ revokeSharedConversations: b,
1069
1069
  baseUrl: y,
1070
1070
  id: w,
1071
- clientSharedPage: b,
1071
+ clientSharedPage: v,
1072
1072
  clientSharedProp: N
1073
1073
  }) => {
1074
- const [M, E] = S(null), [T, G] = S(), [I, k] = S(!1), [O, V] = S(!1), [L, P] = S(), _ = pe(null), H = pe(null), F = K(() => e?.id ? decodeURI(e.id) : w?.[0] && w?.[1] && t ? decodeURI(`${w[0]}/${t}/${w[1]}`) : null, [e?.id, w, t]), U = K(() => {
1074
+ const [M, k] = S(null), [T, G] = S(), [I, E] = S(!1), [O, V] = S(!1), [L, P] = S(), _ = pe(null), H = pe(null), F = K(() => e?.id ? decodeURI(e.id) : w?.[0] && w?.[1] && t ? decodeURI(`${w[0]}/${t}/${w[1]}`) : null, [e?.id, w, t]), U = K(() => {
1075
1075
  if (!M)
1076
1076
  return "";
1077
1077
  const $ = y || window.location.origin;
1078
- if (y && y !== window.location.origin && b && N) {
1078
+ if (y && y !== window.location.origin && v && N) {
1079
1079
  const Q = M.split(
1080
1080
  `/${_i}/`
1081
1081
  )?.[1];
1082
- return `${$}/${b}?${N}=${Q}`;
1082
+ return `${$}/${v}?${N}=${Q}`;
1083
1083
  }
1084
1084
  return `${$}/${t}${M}`;
1085
- }, [y, M, t, b, N]), J = A(
1085
+ }, [y, M, t, v, N]), J = A(
1086
1086
  async ($) => {
1087
1087
  const Q = await p?.(
1088
1088
  Oi(Pi.OTHERS)
@@ -1098,7 +1098,7 @@ const xc = (e, t) => ({
1098
1098
  R(() => {
1099
1099
  if (!F || _.current === F)
1100
1100
  return;
1101
- _.current = F, k(!1), H.current?.abort();
1101
+ _.current = F, E(!1), H.current?.abort();
1102
1102
  const $ = new AbortController();
1103
1103
  return H.current = $, (async () => {
1104
1104
  try {
@@ -1108,11 +1108,11 @@ const xc = (e, t) => ({
1108
1108
  ), le = await i?.(te), fe = await J(F);
1109
1109
  if ($.signal.aborted || !le)
1110
1110
  return;
1111
- E(Ic(le)), G(fe), k(!0);
1111
+ k(Ic(le)), G(fe), E(!0);
1112
1112
  } catch (ee) {
1113
1113
  if ($.signal.aborted)
1114
1114
  return;
1115
- k(!1), console.error("Error sharing conversation", ee);
1115
+ E(!1), console.error("Error sharing conversation", ee);
1116
1116
  }
1117
1117
  })(), () => {
1118
1118
  $.abort(), _.current = null;
@@ -1124,12 +1124,12 @@ const xc = (e, t) => ({
1124
1124
  J
1125
1125
  ]);
1126
1126
  const q = A(() => {
1127
- H.current?.abort(), _.current = null, n(), E(null), k(!1), V(!1);
1127
+ H.current?.abort(), _.current = null, n(), k(null), E(!1), V(!1);
1128
1128
  }, [n]), Z = A(() => {
1129
1129
  V(!0), navigator.clipboard.writeText(U || "");
1130
1130
  }, [U]), oe = async () => {
1131
1131
  try {
1132
- if (P(!0), T && await C?.({
1132
+ if (P(!0), T && await b?.({
1133
1133
  resources: [T]
1134
1134
  }), F) {
1135
1135
  const $ = await J(F);
@@ -1162,7 +1162,7 @@ const xc = (e, t) => ({
1162
1162
  children: [
1163
1163
  I ? /* @__PURE__ */ D("div", { className: "share flex flex-col gap-y-4 overflow-auto px-6 pb-6 sm:p-0", children: [
1164
1164
  e?.name ? /* @__PURE__ */ D("div", { className: "share-info flex w-full", children: [
1165
- /* @__PURE__ */ u("p", { className: "share-info-title body-1 mr-1 text-neutrals-800", children: v ?? "Chat name:" }),
1165
+ /* @__PURE__ */ u("p", { className: "share-info-title body-1 mr-1 text-neutrals-800", children: C ?? "Chat name:" }),
1166
1166
  /* @__PURE__ */ u(
1167
1167
  "h3",
1168
1168
  {
@@ -1224,7 +1224,7 @@ const xc = (e, t) => ({
1224
1224
  }, a = A(() => {
1225
1225
  s(ae.Closed);
1226
1226
  }, []);
1227
- return /* @__PURE__ */ D(ue, { children: [
1227
+ return /* @__PURE__ */ D(ce, { children: [
1228
1228
  /* @__PURE__ */ u(
1229
1229
  Ne,
1230
1230
  {
@@ -1242,7 +1242,7 @@ const xc = (e, t) => ({
1242
1242
  isOpenedAdvancedView: n,
1243
1243
  isShowShareButton: r,
1244
1244
  shareConversationProps: s
1245
- }) => /* @__PURE__ */ u(ue, { children: /* @__PURE__ */ D(
1245
+ }) => /* @__PURE__ */ u(ce, { children: /* @__PURE__ */ D(
1246
1246
  "header",
1247
1247
  {
1248
1248
  className: W(
@@ -1416,12 +1416,12 @@ const xc = (e, t) => ({
1416
1416
  locale: h,
1417
1417
  setSharedConversations: f
1418
1418
  }) => {
1419
- const [m, g] = S(null), [v, p] = S(!0), [C, y] = S(!1), {
1419
+ const [m, g] = S(null), [C, p] = S(!0), [b, y] = S(!1), {
1420
1420
  onboardingFileSchema: w,
1421
- onboardingFileName: b,
1421
+ onboardingFileName: v,
1422
1422
  onboardingFilePath: N,
1423
1423
  isShowOnboarding: M,
1424
- setIsShowOnboarding: E,
1424
+ setIsShowOnboarding: k,
1425
1425
  setOnboardingFileSchema: T
1426
1426
  } = We(), { isAgentAvailable: G } = Dn(), { statusMessages: I } = qi();
1427
1427
  R(() => {
@@ -1436,7 +1436,7 @@ const xc = (e, t) => ({
1436
1436
  }
1437
1437
  })();
1438
1438
  }, [r]);
1439
- const k = A(
1439
+ const E = A(
1440
1440
  async (L, P) => {
1441
1441
  if (!m) {
1442
1442
  console.error("No bucket");
@@ -1469,7 +1469,7 @@ const xc = (e, t) => ({
1469
1469
  isStarted: !0
1470
1470
  };
1471
1471
  await r.putOnboardingFile?.(
1472
- b,
1472
+ v,
1473
1473
  N,
1474
1474
  J
1475
1475
  ), T?.(J);
@@ -1491,7 +1491,7 @@ const xc = (e, t) => ({
1491
1491
  c,
1492
1492
  M,
1493
1493
  h,
1494
- b,
1494
+ v,
1495
1495
  N,
1496
1496
  w,
1497
1497
  o,
@@ -1503,13 +1503,13 @@ const xc = (e, t) => ({
1503
1503
  ]
1504
1504
  ), O = A(
1505
1505
  async (L) => {
1506
- if (E(!1), L && w) {
1506
+ if (k(!1), L && w) {
1507
1507
  const P = {
1508
1508
  ...w,
1509
1509
  isSkipped: !0
1510
1510
  };
1511
1511
  await r.putOnboardingFile?.(
1512
- b,
1512
+ v,
1513
1513
  N,
1514
1514
  P
1515
1515
  ), T?.(P);
@@ -1517,19 +1517,19 @@ const xc = (e, t) => ({
1517
1517
  },
1518
1518
  [
1519
1519
  r,
1520
- b,
1520
+ v,
1521
1521
  N,
1522
1522
  w,
1523
- E,
1523
+ k,
1524
1524
  T
1525
1525
  ]
1526
1526
  );
1527
1527
  R(() => {
1528
- d && m && k(d);
1528
+ d && m && E(d);
1529
1529
  }, [m, d]);
1530
1530
  const V = () => {
1531
1531
  const L = !m;
1532
- return G ? /* @__PURE__ */ D(ue, { children: [
1532
+ return G ? /* @__PURE__ */ D(ce, { children: [
1533
1533
  /* @__PURE__ */ u(
1534
1534
  Xi,
1535
1535
  {
@@ -1541,7 +1541,7 @@ const xc = (e, t) => ({
1541
1541
  disabled: L,
1542
1542
  placeholder: s?.askAnything ?? "Ask anything...",
1543
1543
  sendMessageIcon: i.sendMessageIcon,
1544
- onSendMessage: k
1544
+ onSendMessage: E
1545
1545
  }
1546
1546
  ),
1547
1547
  /* @__PURE__ */ u("div", { className: "no-scrollbar max-w-full overflow-x-auto", children: /* @__PURE__ */ u(
@@ -1557,7 +1557,7 @@ const xc = (e, t) => ({
1557
1557
  title: P.title,
1558
1558
  text: P[Kn.DialWidgetOptions]?.populateText,
1559
1559
  disabled: L,
1560
- onClick: k
1560
+ onClick: E
1561
1561
  },
1562
1562
  P.title
1563
1563
  ))
@@ -1566,7 +1566,7 @@ const xc = (e, t) => ({
1566
1566
  ] }) : /* @__PURE__ */ u(Ot, { type: yt.Error, children: I.assistantUnavailable });
1567
1567
  };
1568
1568
  return /* @__PURE__ */ D("div", { className: "flex size-full flex-col", children: [
1569
- C || d && v ? /* @__PURE__ */ u($e, {}) : M ? /* @__PURE__ */ u(
1569
+ b || d && C ? /* @__PURE__ */ u($e, {}) : M ? /* @__PURE__ */ u(
1570
1570
  Rc,
1571
1571
  {
1572
1572
  titles: s,
@@ -1574,7 +1574,7 @@ const xc = (e, t) => ({
1574
1574
  choiceButtons: o?.properties?.choice?.oneOf || [],
1575
1575
  disabled: !m,
1576
1576
  handleOnboardingSkip: O,
1577
- onClick: k
1577
+ onClick: E
1578
1578
  }
1579
1579
  ) : /* @__PURE__ */ D("div", { className: "flex h-full flex-col items-center justify-center sm:px-4", children: [
1580
1580
  /* @__PURE__ */ D(
@@ -1596,7 +1596,7 @@ const xc = (e, t) => ({
1596
1596
  _c,
1597
1597
  {
1598
1598
  titles: s,
1599
- openNewConversation: () => E(!1)
1599
+ openNewConversation: () => k(!1)
1600
1600
  }
1601
1601
  ),
1602
1602
  !M && /* @__PURE__ */ u(
@@ -1607,7 +1607,7 @@ const xc = (e, t) => ({
1607
1607
  }
1608
1608
  )
1609
1609
  ] });
1610
- }, Cr = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Vc = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M8.00016 1.33325C4.3135 1.33325 1.3335 4.31325 1.3335 7.99992C1.3335 11.6866 4.3135 14.6666 8.00016 14.6666C11.6868 14.6666 14.6668 11.6866 14.6668 7.99992C14.6668 4.31325 11.6868 1.33325 8.00016 1.33325ZM8.00016 13.3333C5.06016 13.3333 2.66683 10.9399 2.66683 7.99992C2.66683 5.05992 5.06016 2.66659 8.00016 2.66659C10.9402 2.66659 13.3335 5.05992 13.3335 7.99992C13.3335 10.9399 10.9402 13.3333 8.00016 13.3333ZM10.3935 4.66659L8.00016 7.05992L5.60683 4.66659L4.66683 5.60659L7.06016 7.99992L4.66683 10.3933L5.60683 11.3333L8.00016 8.93992L10.3935 11.3333L11.3335 10.3933L8.94016 7.99992L11.3335 5.60659L10.3935 4.66659Z", fill: "currentColor" })), Hc = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M12.8232 7C12.926 7 13.012 7.07201 13.0244 7.16797L13.1807 8.22754C13.4315 8.32754 13.6621 8.46012 13.876 8.62012L14.9004 8.21973C14.9208 8.21186 14.9453 8.20803 14.9697 8.20801C15.0436 8.20801 15.1133 8.24392 15.1504 8.30762L15.9736 9.69238C16.0227 9.7803 16.0018 9.88834 15.9238 9.94824L15.0566 10.6084C15.0731 10.7363 15.085 10.8642 15.085 11C15.085 11.1358 15.0731 11.2637 15.0566 11.3916L15.9238 12.0518C16.0018 12.1117 16.0227 12.2197 15.9736 12.3076L15.1504 13.6924C15.1133 13.7561 15.0434 13.792 14.9736 13.792C14.9492 13.7919 14.9248 13.7881 14.9004 13.7803L13.876 13.3799C13.6621 13.5359 13.4315 13.6725 13.1807 13.7725L13.0244 14.832C13.012 14.928 12.926 15 12.8232 15H11.1787C11.0759 15 10.9889 14.928 10.9766 14.832L10.8203 13.7725C10.5696 13.6725 10.3397 13.5398 10.126 13.3799L9.10156 13.7803C9.08115 13.7882 9.05667 13.792 9.03223 13.792C8.95826 13.792 8.88761 13.7563 8.85059 13.6924L8.02832 12.3076C7.97924 12.2197 8.0001 12.1117 8.07812 12.0518L8.94531 11.3916C8.92889 11.2637 8.91699 11.1319 8.91699 11C8.91699 10.8681 8.92889 10.7363 8.94531 10.6084L8.07812 9.94824C8.0001 9.88832 7.97515 9.78032 8.02832 9.69238L8.85059 8.30762C8.88754 8.24383 8.95763 8.20816 9.02734 8.20801C9.05192 8.20801 9.07699 8.21179 9.10156 8.21973L10.126 8.62012C10.3397 8.46418 10.5696 8.32752 10.8203 8.22754L10.9766 7.16797C10.9889 7.07197 11.0759 7 11.1787 7H12.8232ZM11.7129 7.7998L11.6309 8.33984L11.5654 8.79199L11.1289 8.96387C10.9604 9.03184 10.792 9.12795 10.6152 9.25586L10.2451 9.52832L9.81738 9.36035L9.29492 9.15625L9.00684 9.63965L9.45117 9.97559L9.81738 10.2559L9.75977 10.708C9.74743 10.828 9.73926 10.92 9.73926 11C9.73926 11.08 9.74743 11.1719 9.75977 11.2959L9.81738 11.748L9.45117 12.0283L9.00684 12.3643L9.29492 12.8477L9.81738 12.6436L10.2529 12.4717L10.627 12.752C10.7913 12.8719 10.9561 12.9642 11.1328 13.0361L11.5693 13.208L11.6348 13.6602L11.7129 14.2002H12.2891L12.3711 13.6602L12.4365 13.208L12.873 13.0361C13.0415 12.9681 13.21 12.8721 13.3867 12.7441L13.7568 12.4717L14.1846 12.6396L14.707 12.8438L14.9941 12.3604L14.5508 12.0244L14.1846 11.7441L14.2422 11.292C14.2545 11.172 14.2627 11.084 14.2627 11C14.2627 10.916 14.2586 10.832 14.2422 10.708L14.1846 10.2559L14.5508 9.97559L14.9902 9.63574L14.7021 9.15234L14.1807 9.35645L13.7441 9.52832L13.3701 9.24805C13.2057 9.12808 13.0411 9.03586 12.8643 8.96387L12.4287 8.79199L12.3623 8.33984L12.2842 7.7998H11.7129ZM3.33301 12.6338H2V11.3008H3.33301V12.6338ZM7.00977 11.3008C7.03732 11.7651 7.12864 12.2121 7.27441 12.6338H4.66699V11.3008H7.00977ZM12.001 9.40039C12.9097 9.40043 13.6455 10.116 13.6455 11C13.6455 11.884 12.9097 12.5996 12.001 12.5996C11.0922 12.5996 10.3564 11.884 10.3564 11C10.3564 10.116 11.0922 9.40039 12.001 9.40039ZM12.001 10.2002C11.5486 10.2002 11.1787 10.56 11.1787 11C11.1787 11.44 11.5486 11.7998 12.001 11.7998C12.4533 11.7998 12.8232 11.44 12.8232 11C12.8232 10.56 12.4533 10.2002 12.001 10.2002ZM3.33301 8.63379H2V7.30078H3.33301V8.63379ZM8.63574 7.30078C8.21765 7.68124 7.86483 8.13197 7.59473 8.63379H4.66699V7.30078H8.63574ZM3.33301 4.7334H2V3.40039H3.33301V4.7334ZM14 4.7334H4.66699V3.40039H14V4.7334Z", fill: "currentColor" }));
1610
+ }, Cr = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Vc = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), Hc = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" }));
1611
1611
  function ga(e) {
1612
1612
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1613
1613
  }
@@ -1889,7 +1889,7 @@ function Uc() {
1889
1889
  f.l10ns.bs = m, f.l10ns;
1890
1890
  var g = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
1891
1891
  l10ns: {}
1892
- }, v = {
1892
+ }, C = {
1893
1893
  weekdays: {
1894
1894
  shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
1895
1895
  longhand: [
@@ -1935,10 +1935,10 @@ function Uc() {
1935
1935
  time_24hr: !0,
1936
1936
  firstDayOfWeek: 1
1937
1937
  };
1938
- g.l10ns.bg = v, g.l10ns;
1938
+ g.l10ns.bg = C, g.l10ns;
1939
1939
  var p = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
1940
1940
  l10ns: {}
1941
- }, C = {
1941
+ }, b = {
1942
1942
  weekdays: {
1943
1943
  shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
1944
1944
  longhand: [
@@ -1982,7 +1982,7 @@ function Uc() {
1982
1982
  ]
1983
1983
  }
1984
1984
  };
1985
- p.l10ns.bn = C, p.l10ns;
1985
+ p.l10ns.bn = b, p.l10ns;
1986
1986
  var y = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
1987
1987
  l10ns: {}
1988
1988
  }, w = {
@@ -2028,8 +2028,8 @@ function Uc() {
2028
2028
  "Desembre"
2029
2029
  ]
2030
2030
  },
2031
- ordinal: function(de) {
2032
- var nt = de % 100;
2031
+ ordinal: function(ue) {
2032
+ var nt = ue % 100;
2033
2033
  if (nt > 3 && nt < 21)
2034
2034
  return "è";
2035
2035
  switch (nt % 10) {
@@ -2050,7 +2050,7 @@ function Uc() {
2050
2050
  time_24hr: !0
2051
2051
  };
2052
2052
  y.l10ns.cat = y.l10ns.ca = w, y.l10ns;
2053
- var b = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2053
+ var v = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2054
2054
  l10ns: {}
2055
2055
  }, N = {
2056
2056
  weekdays: {
@@ -2108,10 +2108,10 @@ function Uc() {
2108
2108
  return "";
2109
2109
  }
2110
2110
  };
2111
- b.l10ns.ckb = N, b.l10ns;
2111
+ v.l10ns.ckb = N, v.l10ns;
2112
2112
  var M = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2113
2113
  l10ns: {}
2114
- }, E = {
2114
+ }, k = {
2115
2115
  weekdays: {
2116
2116
  shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
2117
2117
  longhand: [
@@ -2166,7 +2166,7 @@ function Uc() {
2166
2166
  yearAriaLabel: "Rok",
2167
2167
  time_24hr: !0
2168
2168
  };
2169
- M.l10ns.cs = E, M.l10ns;
2169
+ M.l10ns.cs = k, M.l10ns;
2170
2170
  var T = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2171
2171
  l10ns: {}
2172
2172
  }, G = {
@@ -2213,15 +2213,15 @@ function Uc() {
2213
2213
  ]
2214
2214
  },
2215
2215
  firstDayOfWeek: 1,
2216
- ordinal: function(de) {
2217
- return de === 1 ? "af" : de === 2 ? "ail" : de === 3 || de === 4 ? "ydd" : de === 5 || de === 6 ? "ed" : de >= 7 && de <= 10 || de == 12 || de == 15 || de == 18 || de == 20 ? "fed" : de == 11 || de == 13 || de == 14 || de == 16 || de == 17 || de == 19 ? "eg" : de >= 21 && de <= 39 ? "ain" : "";
2216
+ ordinal: function(ue) {
2217
+ return ue === 1 ? "af" : ue === 2 ? "ail" : ue === 3 || ue === 4 ? "ydd" : ue === 5 || ue === 6 ? "ed" : ue >= 7 && ue <= 10 || ue == 12 || ue == 15 || ue == 18 || ue == 20 ? "fed" : ue == 11 || ue == 13 || ue == 14 || ue == 16 || ue == 17 || ue == 19 ? "eg" : ue >= 21 && ue <= 39 ? "ain" : "";
2218
2218
  },
2219
2219
  time_24hr: !0
2220
2220
  };
2221
2221
  T.l10ns.cy = G, T.l10ns;
2222
2222
  var I = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2223
2223
  l10ns: {}
2224
- }, k = {
2224
+ }, E = {
2225
2225
  weekdays: {
2226
2226
  shorthand: ["søn", "man", "tir", "ons", "tors", "fre", "lør"],
2227
2227
  longhand: [
@@ -2272,7 +2272,7 @@ function Uc() {
2272
2272
  weekAbbreviation: "uge",
2273
2273
  time_24hr: !0
2274
2274
  };
2275
- I.l10ns.da = k, I.l10ns;
2275
+ I.l10ns.da = E, I.l10ns;
2276
2276
  var O = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
2277
2277
  l10ns: {}
2278
2278
  }, V = {
@@ -2371,8 +2371,8 @@ function Uc() {
2371
2371
  },
2372
2372
  daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
2373
2373
  firstDayOfWeek: 0,
2374
- ordinal: function(de) {
2375
- var nt = de % 100;
2374
+ ordinal: function(ue) {
2375
+ var nt = ue % 100;
2376
2376
  if (nt > 3 && nt < 21)
2377
2377
  return "th";
2378
2378
  switch (nt % 10) {
@@ -2767,8 +2767,8 @@ function Uc() {
2767
2767
  "décembre"
2768
2768
  ]
2769
2769
  },
2770
- ordinal: function(de) {
2771
- return de > 1 ? "" : "er";
2770
+ ordinal: function(ue) {
2771
+ return ue > 1 ? "" : "er";
2772
2772
  },
2773
2773
  rangeSeparator: " au ",
2774
2774
  weekAbbreviation: "Sem",
@@ -3870,8 +3870,8 @@ function Uc() {
3870
3870
  scrollTitle: "Scroll voor volgende / vorige",
3871
3871
  toggleTitle: "Klik om te wisselen",
3872
3872
  time_24hr: !0,
3873
- ordinal: function(de) {
3874
- return de === 1 || de === 8 || de >= 20 ? "ste" : "de";
3873
+ ordinal: function(ue) {
3874
+ return ue === 1 || ue === 8 || ue >= 20 ? "ste" : "de";
3875
3875
  }
3876
3876
  };
3877
3877
  jr.l10ns.nl = Wr, jr.l10ns;
@@ -4997,15 +4997,15 @@ function Uc() {
4997
4997
  at: d,
4998
4998
  az: c,
4999
4999
  be: h,
5000
- bg: v,
5001
- bn: C,
5000
+ bg: C,
5001
+ bn: b,
5002
5002
  bs: m,
5003
5003
  ca: w,
5004
5004
  ckb: N,
5005
5005
  cat: w,
5006
- cs: E,
5006
+ cs: k,
5007
5007
  cy: G,
5008
- da: k,
5008
+ da: E,
5009
5009
  de: V,
5010
5010
  default: r({}, L),
5011
5011
  en: L,
@@ -5112,8 +5112,8 @@ function Wc() {
5112
5112
  if (l.rContainer) {
5113
5113
  s(l.rContainer);
5114
5114
  for (var I = 0; I < l.monthElements.length; I++) {
5115
- var k = l.monthElements[I];
5116
- k.parentNode && k.parentNode.removeChild(k);
5115
+ var E = l.monthElements[I];
5116
+ E.parentNode && E.parentNode.removeChild(E);
5117
5117
  }
5118
5118
  }
5119
5119
  }
@@ -5123,35 +5123,35 @@ function Wc() {
5123
5123
  function g() {
5124
5124
  if (h.monthsContainer) {
5125
5125
  s(h.monthsContainer);
5126
- for (var I = document.createDocumentFragment(), k = 0; k < 12; k++) {
5127
- var O = l.createDay("flatpickr-monthSelect-month", new Date(l.currentYear, k), 0, k);
5128
- O.dateObj.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && O.dateObj.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() && O.classList.add("today"), O.textContent = r(k, c.shorthand, l.l10n), O.addEventListener("click", y), I.appendChild(O);
5126
+ for (var I = document.createDocumentFragment(), E = 0; E < 12; E++) {
5127
+ var O = l.createDay("flatpickr-monthSelect-month", new Date(l.currentYear, E), 0, E);
5128
+ O.dateObj.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && O.dateObj.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() && O.classList.add("today"), O.textContent = r(E, c.shorthand, l.l10n), O.addEventListener("click", y), I.appendChild(O);
5129
5129
  }
5130
5130
  h.monthsContainer.appendChild(I), l.config.minDate && l.currentYear === l.config.minDate.getFullYear() ? l.prevMonthNav.classList.add("flatpickr-disabled") : l.prevMonthNav.classList.remove("flatpickr-disabled"), l.config.maxDate && l.currentYear === l.config.maxDate.getFullYear() ? l.nextMonthNav.classList.add("flatpickr-disabled") : l.nextMonthNav.classList.remove("flatpickr-disabled");
5131
5131
  }
5132
5132
  }
5133
- function v() {
5133
+ function C() {
5134
5134
  l._bind(l.prevMonthNav, "click", function(I) {
5135
- I.preventDefault(), I.stopPropagation(), l.changeYear(l.currentYear - 1), C(), g();
5135
+ I.preventDefault(), I.stopPropagation(), l.changeYear(l.currentYear - 1), b(), g();
5136
5136
  }), l._bind(l.nextMonthNav, "click", function(I) {
5137
- I.preventDefault(), I.stopPropagation(), l.changeYear(l.currentYear + 1), C(), g();
5137
+ I.preventDefault(), I.stopPropagation(), l.changeYear(l.currentYear + 1), b(), g();
5138
5138
  }), l._bind(h.monthsContainer, "mouseover", function(I) {
5139
5139
  l.config.mode === "range" && l.onMouseOver(i(I), "flatpickr-monthSelect-month");
5140
5140
  });
5141
5141
  }
5142
5142
  function p() {
5143
5143
  if (l.rContainer && l.selectedDates.length) {
5144
- for (var I = l.rContainer.querySelectorAll(".flatpickr-monthSelect-month.selected"), k = 0; k < I.length; k++)
5145
- I[k].classList.remove("selected");
5144
+ for (var I = l.rContainer.querySelectorAll(".flatpickr-monthSelect-month.selected"), E = 0; E < I.length; E++)
5145
+ I[E].classList.remove("selected");
5146
5146
  var O = l.selectedDates[0].getMonth(), V = l.rContainer.querySelector(".flatpickr-monthSelect-month:nth-child(" + (O + 1) + ")");
5147
5147
  V && V.classList.add("selected");
5148
5148
  }
5149
5149
  }
5150
- function C() {
5150
+ function b() {
5151
5151
  var I = l.selectedDates[0];
5152
5152
  if (I && (I = new Date(I), I.setFullYear(l.currentYear), l.config.minDate && I < l.config.minDate && (I = l.config.minDate), l.config.maxDate && I > l.config.maxDate && (I = l.config.maxDate), l.currentYear = I.getFullYear()), l.currentYearElement.value = String(l.currentYear), l.rContainer) {
5153
- var k = l.rContainer.querySelectorAll(".flatpickr-monthSelect-month");
5154
- k.forEach(function(O) {
5153
+ var E = l.rContainer.querySelectorAll(".flatpickr-monthSelect-month");
5154
+ E.forEach(function(O) {
5155
5155
  O.dateObj.setFullYear(l.currentYear), l.config.minDate && O.dateObj < l.config.minDate || l.config.maxDate && O.dateObj > l.config.maxDate ? O.classList.add("flatpickr-disabled") : O.classList.remove("flatpickr-disabled");
5156
5156
  });
5157
5157
  }
@@ -5159,51 +5159,51 @@ function Wc() {
5159
5159
  }
5160
5160
  function y(I) {
5161
5161
  I.preventDefault(), I.stopPropagation();
5162
- var k = i(I);
5163
- if (k instanceof Element && !k.classList.contains("flatpickr-disabled") && !k.classList.contains("notAllowed") && (w(k.dateObj), l.config.closeOnSelect)) {
5162
+ var E = i(I);
5163
+ if (E instanceof Element && !E.classList.contains("flatpickr-disabled") && !E.classList.contains("notAllowed") && (w(E.dateObj), l.config.closeOnSelect)) {
5164
5164
  var O = l.config.mode === "single", V = l.config.mode === "range" && l.selectedDates.length === 2;
5165
5165
  (O || V) && l.close();
5166
5166
  }
5167
5167
  }
5168
5168
  function w(I) {
5169
- var k = new Date(l.currentYear, I.getMonth(), I.getDate()), O = [];
5169
+ var E = new Date(l.currentYear, I.getMonth(), I.getDate()), O = [];
5170
5170
  switch (l.config.mode) {
5171
5171
  case "single":
5172
- O = [k];
5172
+ O = [E];
5173
5173
  break;
5174
5174
  case "multiple":
5175
- O.push(k);
5175
+ O.push(E);
5176
5176
  break;
5177
5177
  case "range":
5178
- l.selectedDates.length === 2 ? O = [k] : (O = l.selectedDates.concat([k]), O.sort(function(V, L) {
5178
+ l.selectedDates.length === 2 ? O = [E] : (O = l.selectedDates.concat([E]), O.sort(function(V, L) {
5179
5179
  return V.getTime() - L.getTime();
5180
5180
  }));
5181
5181
  break;
5182
5182
  }
5183
5183
  l.setDate(O, !0), p();
5184
5184
  }
5185
- var b = {
5185
+ var v = {
5186
5186
  37: -1,
5187
5187
  39: 1,
5188
5188
  40: 3,
5189
5189
  38: -3
5190
5190
  };
5191
- function N(I, k, O, V) {
5192
- var L = b[V.keyCode] !== void 0;
5191
+ function N(I, E, O, V) {
5192
+ var L = v[V.keyCode] !== void 0;
5193
5193
  if (!(!L && V.keyCode !== 13) && !(!l.rContainer || !h.monthsContainer)) {
5194
5194
  var P = l.rContainer.querySelector(".flatpickr-monthSelect-month.selected"), _ = Array.prototype.indexOf.call(h.monthsContainer.children, document.activeElement);
5195
5195
  if (_ === -1) {
5196
5196
  var H = P || h.monthsContainer.firstElementChild;
5197
5197
  H.focus(), _ = H.$i;
5198
5198
  }
5199
- L ? h.monthsContainer.children[(12 + _ + b[V.keyCode]) % 12].focus() : V.keyCode === 13 && h.monthsContainer.contains(document.activeElement) && w(document.activeElement.dateObj);
5199
+ L ? h.monthsContainer.children[(12 + _ + v[V.keyCode]) % 12].focus() : V.keyCode === 13 && h.monthsContainer.contains(document.activeElement) && w(document.activeElement.dateObj);
5200
5200
  }
5201
5201
  }
5202
5202
  function M() {
5203
5203
  var I;
5204
5204
  ((I = l.config) === null || I === void 0 ? void 0 : I.mode) === "range" && l.selectedDates.length === 1 && l.clear(!1), l.selectedDates.length || g();
5205
5205
  }
5206
- function E() {
5206
+ function k() {
5207
5207
  c._stubbedCurrentMonth = l._initialDate.getMonth(), l._initialDate.setMonth(c._stubbedCurrentMonth), l.currentMonth = c._stubbedCurrentMonth;
5208
5208
  }
5209
5209
  function T() {
@@ -5211,8 +5211,8 @@ function Wc() {
5211
5211
  }
5212
5212
  function G() {
5213
5213
  if (h.monthsContainer !== null)
5214
- for (var I = h.monthsContainer.querySelectorAll(".flatpickr-monthSelect-month"), k = 0; k < I.length; k++)
5215
- I[k].removeEventListener("click", y);
5214
+ for (var I = h.monthsContainer.querySelectorAll(".flatpickr-monthSelect-month"), E = 0; E < I.length; E++)
5215
+ I[E].removeEventListener("click", y);
5216
5216
  }
5217
5217
  return {
5218
5218
  onParseConfig: function() {
@@ -5221,10 +5221,10 @@ function Wc() {
5221
5221
  onValueUpdate: p,
5222
5222
  onKeyDown: N,
5223
5223
  onReady: [
5224
- E,
5224
+ k,
5225
5225
  f,
5226
5226
  m,
5227
- v,
5227
+ C,
5228
5228
  p,
5229
5229
  function() {
5230
5230
  l.config.onClose.push(M), l.loadedPlugins.push("monthSelect");
@@ -5492,35 +5492,35 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5492
5492
  t
5493
5493
  ), [m, g] = S(
5494
5494
  t
5495
- ), v = !t || t?.startPeriod?.getTime() === f?.startPeriod?.getTime() && t?.endPeriod?.getTime() === f?.endPeriod?.getTime() ? 0 : Kt, [p, C] = S(
5496
- h ?? v
5495
+ ), C = !t || t?.startPeriod?.getTime() === f?.startPeriod?.getTime() && t?.endPeriod?.getTime() === f?.endPeriod?.getTime() ? 0 : Kt, [p, b] = S(
5496
+ h ?? C
5497
5497
  ), y = K(() => {
5498
- const { startPeriod: E, endPeriod: T } = f, G = E?.getFullYear(), I = T?.getFullYear(), k = (/* @__PURE__ */ new Date()).getFullYear();
5498
+ const { startPeriod: k, endPeriod: T } = f, G = k?.getFullYear(), I = T?.getFullYear(), E = (/* @__PURE__ */ new Date()).getFullYear();
5499
5499
  return n.filter(
5500
- (O) => O.value === Kt || O.value === 0 || +O.value >= 0 && I - k >= +O.value || +O.value < 0 && G - k < +O.value
5500
+ (O) => O.value === Kt || O.value === 0 || +O.value >= 0 && I - E >= +O.value || +O.value < 0 && G - E < +O.value
5501
5501
  );
5502
5502
  }, [f, n]);
5503
5503
  R(() => {
5504
5504
  d(m, p);
5505
5505
  }, [m]);
5506
- const w = (E) => {
5507
- E && (Ws(E), g(
5506
+ const w = (k) => {
5507
+ k && (Ws(k), g(
5508
5508
  (T) => T ? {
5509
5509
  ...T,
5510
- startPeriod: E || null
5510
+ startPeriod: k || null
5511
5511
  } : {
5512
5512
  endPeriod: null,
5513
- startPeriod: E || null
5513
+ startPeriod: k || null
5514
5514
  }
5515
5515
  ));
5516
- }, b = (E) => {
5517
- E && (Ws(E), g(
5516
+ }, v = (k) => {
5517
+ k && (Ws(k), g(
5518
5518
  (T) => T ? {
5519
5519
  ...T,
5520
- endPeriod: E || null
5520
+ endPeriod: k || null
5521
5521
  } : {
5522
5522
  startPeriod: null,
5523
- endPeriod: E || null
5523
+ endPeriod: k || null
5524
5524
  }
5525
5525
  ));
5526
5526
  };
@@ -5542,21 +5542,21 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5542
5542
  c
5543
5543
  );
5544
5544
  return /* @__PURE__ */ D("div", { className: "mt-3 flex h-full min-w-0 flex-1 flex-col overflow-auto py-2 pr-3", children: [
5545
- /* @__PURE__ */ u("div", { className: "w-full", children: y.map((E) => /* @__PURE__ */ u(
5545
+ /* @__PURE__ */ u("div", { className: "w-full", children: y.map((k) => /* @__PURE__ */ u(
5546
5546
  Ni,
5547
5547
  {
5548
- id: E.value.toString(),
5549
- checked: p === E.value,
5550
- label: E.title,
5548
+ id: k.value.toString(),
5549
+ checked: p === k.value,
5550
+ label: k.title,
5551
5551
  onChange: () => {
5552
- const { value: T } = E;
5553
- C(T), T !== Kt && g(
5552
+ const { value: T } = k;
5553
+ b(T), T !== Kt && g(
5554
5554
  T === 0 ? f : qc(f, T)
5555
5555
  );
5556
5556
  },
5557
5557
  radioIcon: i
5558
5558
  },
5559
- E.value.toString()
5559
+ k.value.toString()
5560
5560
  )) }),
5561
5561
  /* @__PURE__ */ u("div", { className: "w-full", children: p === Kt && /* @__PURE__ */ D("div", { className: "filters-time-period caption mt-3 flex gap-4 text-neutral-700", children: [
5562
5562
  /* @__PURE__ */ u(
@@ -5573,7 +5573,7 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5573
5573
  /* @__PURE__ */ u(
5574
5574
  Rs,
5575
5575
  {
5576
- onChange: b,
5576
+ onChange: v,
5577
5577
  options: M,
5578
5578
  value: m?.endPeriod || f?.endPeriod,
5579
5579
  label: l?.to || "To",
@@ -5584,7 +5584,7 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5584
5584
  )
5585
5585
  ] }) })
5586
5586
  ] });
5587
- }, ad = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Ma = ({
5587
+ }, ad = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Ma = ({
5588
5588
  node: e,
5589
5589
  level: t = 1,
5590
5590
  checkboxIcon: n,
@@ -5635,7 +5635,7 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5635
5635
  ]
5636
5636
  }
5637
5637
  ),
5638
- a && e?.isExpanded && /* @__PURE__ */ u(ue, { children: e?.children?.map((c) => /* @__PURE__ */ u(
5638
+ a && e?.isExpanded && /* @__PURE__ */ u(ce, { children: e?.children?.map((c) => /* @__PURE__ */ u(
5639
5639
  Ma,
5640
5640
  {
5641
5641
  node: c,
@@ -5654,7 +5654,7 @@ const wa = (e, t, n, r, s) => e?.map((i) => {
5654
5654
  selectFilterValue: n,
5655
5655
  selectHierarchicalNodes: r,
5656
5656
  expandHierarchicalValue: s
5657
- }) => /* @__PURE__ */ u(ue, { children: e?.map((i) => /* @__PURE__ */ u(
5657
+ }) => /* @__PURE__ */ u(ce, { children: e?.map((i) => /* @__PURE__ */ u(
5658
5658
  Ma,
5659
5659
  {
5660
5660
  node: i,
@@ -6254,7 +6254,7 @@ const hd = (e) => e.map(
6254
6254
  ka(t?.get(r) || [])
6255
6255
  ];
6256
6256
  })
6257
- ), Mr = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M8 14C6.32222 14 4.90278 13.7417 3.74167 13.225C2.58056 12.7083 2 12.0778 2 11.3333V4.66667C2 3.93333 2.58611 3.30556 3.75833 2.78333C4.93056 2.26111 6.34444 2 8 2C9.65556 2 11.0694 2.26111 12.2417 2.78333C13.4139 3.30556 14 3.93333 14 4.66667V11.3333C14 12.0778 13.4194 12.7083 12.2583 13.225C11.0972 13.7417 9.67778 14 8 14ZM8 6.01667C8.98889 6.01667 9.98333 5.875 10.9833 5.59167C11.9833 5.30833 12.5444 5.00556 12.6667 4.68333C12.5444 4.36111 11.9861 4.05556 10.9917 3.76667C9.99722 3.47778 9 3.33333 8 3.33333C6.98889 3.33333 5.99722 3.475 5.025 3.75833C4.05278 4.04167 3.48889 4.35 3.33333 4.68333C3.48889 5.01667 4.05278 5.32222 5.025 5.6C5.99722 5.87778 6.98889 6.01667 8 6.01667ZM8 9.33333C8.46667 9.33333 8.91667 9.31111 9.35 9.26667C9.78333 9.22222 10.1972 9.15833 10.5917 9.075C10.9861 8.99167 11.3583 8.88889 11.7083 8.76667C12.0583 8.64444 12.3778 8.50556 12.6667 8.35V6.35C12.3778 6.50556 12.0583 6.64444 11.7083 6.76667C11.3583 6.88889 10.9861 6.99167 10.5917 7.075C10.1972 7.15833 9.78333 7.22222 9.35 7.26667C8.91667 7.31111 8.46667 7.33333 8 7.33333C7.53333 7.33333 7.07778 7.31111 6.63333 7.26667C6.18889 7.22222 5.76944 7.15833 5.375 7.075C4.98056 6.99167 4.61111 6.88889 4.26667 6.76667C3.92222 6.64444 3.61111 6.50556 3.33333 6.35V8.35C3.61111 8.50556 3.92222 8.64444 4.26667 8.76667C4.61111 8.88889 4.98056 8.99167 5.375 9.075C5.76944 9.15833 6.18889 9.22222 6.63333 9.26667C7.07778 9.31111 7.53333 9.33333 8 9.33333ZM8 12.6667C8.51111 12.6667 9.03056 12.6278 9.55833 12.55C10.0861 12.4722 10.5722 12.3694 11.0167 12.2417C11.4611 12.1139 11.8333 11.9694 12.1333 11.8083C12.4333 11.6472 12.6111 11.4833 12.6667 11.3167V9.68333C12.3778 9.83889 12.0583 9.97778 11.7083 10.1C11.3583 10.2222 10.9861 10.325 10.5917 10.4083C10.1972 10.4917 9.78333 10.5556 9.35 10.6C8.91667 10.6444 8.46667 10.6667 8 10.6667C7.53333 10.6667 7.07778 10.6444 6.63333 10.6C6.18889 10.5556 5.76944 10.4917 5.375 10.4083C4.98056 10.325 4.61111 10.2222 4.26667 10.1C3.92222 9.97778 3.61111 9.83889 3.33333 9.68333V11.3333C3.38889 11.5 3.56389 11.6611 3.85833 11.8167C4.15278 11.9722 4.52222 12.1139 4.96667 12.2417C5.41111 12.3694 5.9 12.4722 6.43333 12.55C6.96667 12.6278 7.48889 12.6667 8 12.6667Z", fill: "currentColor" })), Gd = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M6.66663 6.175L10.4833 10L6.66663 13.825L7.84163 15L12.8416 10L7.84163 5L6.66663 6.175Z", fill: "currentColor" })), Ud = Yl, ei = 24, ti = 232, jn = ({
6257
+ ), Mr = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("path", { d: "M8 14C6.32222 14 4.90278 13.7417 3.74167 13.225C2.58056 12.7083 2 12.0778 2 11.3333V4.66667C2 3.93333 2.58611 3.30556 3.75833 2.78333C4.93056 2.26111 6.34444 2 8 2C9.65556 2 11.0694 2.26111 12.2417 2.78333C13.4139 3.30556 14 3.93333 14 4.66667V11.3333C14 12.0778 13.4194 12.7083 12.2583 13.225C11.0972 13.7417 9.67778 14 8 14ZM8 6.01667C8.98889 6.01667 9.98333 5.875 10.9833 5.59167C11.9833 5.30833 12.5444 5.00556 12.6667 4.68333C12.5444 4.36111 11.9861 4.05556 10.9917 3.76667C9.99722 3.47778 9 3.33333 8 3.33333C6.98889 3.33333 5.99722 3.475 5.025 3.75833C4.05278 4.04167 3.48889 4.35 3.33333 4.68333C3.48889 5.01667 4.05278 5.32222 5.025 5.6C5.99722 5.87778 6.98889 6.01667 8 6.01667ZM8 9.33333C8.46667 9.33333 8.91667 9.31111 9.35 9.26667C9.78333 9.22222 10.1972 9.15833 10.5917 9.075C10.9861 8.99167 11.3583 8.88889 11.7083 8.76667C12.0583 8.64444 12.3778 8.50556 12.6667 8.35V6.35C12.3778 6.50556 12.0583 6.64444 11.7083 6.76667C11.3583 6.88889 10.9861 6.99167 10.5917 7.075C10.1972 7.15833 9.78333 7.22222 9.35 7.26667C8.91667 7.31111 8.46667 7.33333 8 7.33333C7.53333 7.33333 7.07778 7.31111 6.63333 7.26667C6.18889 7.22222 5.76944 7.15833 5.375 7.075C4.98056 6.99167 4.61111 6.88889 4.26667 6.76667C3.92222 6.64444 3.61111 6.50556 3.33333 6.35V8.35C3.61111 8.50556 3.92222 8.64444 4.26667 8.76667C4.61111 8.88889 4.98056 8.99167 5.375 9.075C5.76944 9.15833 6.18889 9.22222 6.63333 9.26667C7.07778 9.31111 7.53333 9.33333 8 9.33333ZM8 12.6667C8.51111 12.6667 9.03056 12.6278 9.55833 12.55C10.0861 12.4722 10.5722 12.3694 11.0167 12.2417C11.4611 12.1139 11.8333 11.9694 12.1333 11.8083C12.4333 11.6472 12.6111 11.4833 12.6667 11.3167V9.68333C12.3778 9.83889 12.0583 9.97778 11.7083 10.1C11.3583 10.2222 10.9861 10.325 10.5917 10.4083C10.1972 10.4917 9.78333 10.5556 9.35 10.6C8.91667 10.6444 8.46667 10.6667 8 10.6667C7.53333 10.6667 7.07778 10.6444 6.63333 10.6C6.18889 10.5556 5.76944 10.4917 5.375 10.4083C4.98056 10.325 4.61111 10.2222 4.26667 10.1C3.92222 9.97778 3.61111 9.83889 3.33333 9.68333V11.3333C3.38889 11.5 3.56389 11.6611 3.85833 11.8167C4.15278 11.9722 4.52222 12.1139 4.96667 12.2417C5.41111 12.3694 5.9 12.4722 6.43333 12.55C6.96667 12.6278 7.48889 12.6667 8 12.6667Z", fill: "currentColor" })), Gd = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("path", { d: "M6.66663 6.175L10.4833 10L6.66663 13.825L7.84163 15L12.8416 10L7.84163 5L6.66663 6.175Z", fill: "currentColor" })), Ud = Yl, ei = 24, ti = 232, jn = ({
6258
6258
  selectedFilter: e,
6259
6259
  filterValues: t,
6260
6260
  checkboxIcon: n,
@@ -6271,7 +6271,7 @@ const hd = (e) => e.map(
6271
6271
  }) => {
6272
6272
  const m = Sn(), { isCrossDatasetModeOn: g } = Pe();
6273
6273
  if (!t) return null;
6274
- const v = e ? Ra(e, d) : void 0, p = g && e?.filterType !== "shared" && !!v && !!e?.title, C = t.length * ei, y = C > ti ? ti : C;
6274
+ const C = e ? Ra(e, d) : void 0, p = d?.size === 1, b = g && e?.filterType !== "shared" && !!e?.title && (p || !!C), y = t.length * ei, w = y > ti ? ti : y;
6275
6275
  return /* @__PURE__ */ D(
6276
6276
  "div",
6277
6277
  {
@@ -6280,10 +6280,12 @@ const hd = (e) => e.map(
6280
6280
  i ? "flex h-full min-h-0 flex-col" : "flex flex-col"
6281
6281
  ),
6282
6282
  children: [
6283
- p && /* @__PURE__ */ D("div", { className: "mb-2 flex items-center gap-x-1", children: [
6284
- /* @__PURE__ */ u(Mr, { className: "size-4 shrink-0 text-neutrals-700" }),
6285
- /* @__PURE__ */ u("span", { className: "h4 text-neutrals-800", children: v }),
6286
- /* @__PURE__ */ u(Gd, { className: "size-4 shrink-0 text-neutrals-1000" }),
6283
+ b && /* @__PURE__ */ D("div", { className: "mb-2 flex items-center gap-x-1", children: [
6284
+ !p && /* @__PURE__ */ D(ce, { children: [
6285
+ /* @__PURE__ */ u(Mr, { className: "size-4 shrink-0 text-neutrals-700" }),
6286
+ /* @__PURE__ */ u("span", { className: "h4 text-neutrals-800", children: C }),
6287
+ /* @__PURE__ */ u(Gd, { className: "size-4 shrink-0 text-neutrals-1000" })
6288
+ ] }),
6287
6289
  /* @__PURE__ */ u("span", { className: "h4 text-neutrals-1000", children: e?.title })
6288
6290
  ] }),
6289
6291
  /* @__PURE__ */ u(
@@ -6292,7 +6294,7 @@ const hd = (e) => e.map(
6292
6294
  className: W(
6293
6295
  i ? "min-h-0 flex-1 overflow-auto" : "overflow-visible"
6294
6296
  ),
6295
- style: i && m ? { height: `${y}px` } : void 0,
6297
+ style: i && m ? { height: `${w}px` } : void 0,
6296
6298
  children: o?.length || r ? /* @__PURE__ */ u(
6297
6299
  od,
6298
6300
  {
@@ -6302,31 +6304,31 @@ const hd = (e) => e.map(
6302
6304
  selectHierarchicalNodes: h,
6303
6305
  expandHierarchicalValue: f
6304
6306
  }
6305
- ) : c ? null : s ? /* @__PURE__ */ u(Kl, { children: ({ width: w, height: b }) => /* @__PURE__ */ u(
6307
+ ) : c ? null : s ? /* @__PURE__ */ u(Kl, { children: ({ width: v, height: N }) => /* @__PURE__ */ u(
6306
6308
  Ud,
6307
6309
  {
6308
6310
  itemCount: t.length,
6309
6311
  itemSize: ei,
6310
- width: w,
6311
- height: b,
6312
- children: ({ index: N, style: M }) => /* @__PURE__ */ u(
6312
+ width: v,
6313
+ height: N,
6314
+ children: ({ index: M, style: k }) => /* @__PURE__ */ u(
6313
6315
  $s,
6314
6316
  {
6315
- style: M,
6316
- filterValue: t[N],
6317
+ style: k,
6318
+ filterValue: t[M],
6317
6319
  checkboxIcon: n,
6318
6320
  selectFilterValue: l
6319
6321
  }
6320
6322
  )
6321
6323
  }
6322
- ) }) : /* @__PURE__ */ u("div", { className: "flex flex-col gap-y-1", children: t.map((w) => /* @__PURE__ */ u(
6324
+ ) }) : /* @__PURE__ */ u("div", { className: "flex flex-col gap-y-1", children: t.map((v) => /* @__PURE__ */ u(
6323
6325
  $s,
6324
6326
  {
6325
- filterValue: w,
6327
+ filterValue: v,
6326
6328
  checkboxIcon: n,
6327
6329
  selectFilterValue: l
6328
6330
  },
6329
- w.id
6331
+ v.id
6330
6332
  )) })
6331
6333
  }
6332
6334
  )
@@ -6374,19 +6376,19 @@ function Fa(e, t, n, r, s) {
6374
6376
  return r?.map((i) => {
6375
6377
  const { childId: a, agency: d, id: o, version: c } = zi(i.code), l = et(o, c, d), h = Object.keys(e ?? {}).find(
6376
6378
  (w) => _s(w, l)
6377
- ) ?? l, m = e?.[h]?.find((w) => w.id === a), g = m?.name || m?.description || a, v = n ? _s(l, n) : !0, p = !v && (i.hierarchicalCodes?.length ?? 0) > 0, C = Fa(
6379
+ ) ?? l, m = e?.[h]?.find((w) => w.id === a), g = m?.name || m?.description || a, C = n ? _s(l, n) : !0, p = !C && (i.hierarchicalCodes?.length ?? 0) > 0, b = Fa(
6378
6380
  e,
6379
6381
  t,
6380
6382
  n,
6381
6383
  i.hierarchicalCodes,
6382
6384
  i.code
6383
- ), y = C.length === 0;
6384
- return p && y || v && y && t && !t.includes(a ?? "") ? null : {
6385
+ ), y = b.length === 0;
6386
+ return p && y || C && y && t && !t.includes(a ?? "") ? null : {
6385
6387
  id: i.code,
6386
6388
  name: g,
6387
- children: C,
6389
+ children: b,
6388
6390
  isExpanded: !0,
6389
- disabled: !v && C.every((w) => w.disabled),
6391
+ disabled: !C && b.every((w) => w.disabled),
6390
6392
  parent: s,
6391
6393
  metadata: { ...i, hierarchicalCodes: void 0 }
6392
6394
  };
@@ -6458,26 +6460,26 @@ const si = 2, za = ({
6458
6460
  selectedTimeOption: m,
6459
6461
  hierarchyState: g
6460
6462
  }) => {
6461
- const [v, p] = S(""), [C, y] = S(!1), { isCrossDatasetModeOn: w } = Pe(), b = t?.displayMode === Ke.HIERARCHY, N = _e(t), M = t?.filterType === "shared", E = v?.trim().toLowerCase(), T = w ? E.length >= si : !!E, G = T && w && !M, I = w && C && E.length < si, k = A(
6463
+ const [C, p] = S(""), [b, y] = S(!1), { isCrossDatasetModeOn: w } = Pe(), v = t?.displayMode === Ke.HIERARCHY, N = _e(t), M = t?.filterType === "shared", k = C?.trim().toLowerCase(), T = w ? k.length >= si : !!k, G = T && w && !M, I = w && b && k.length < si, E = A(
6462
6464
  (F) => {
6463
6465
  if (!F?.dimensionValues)
6464
6466
  return { filterValues: [], matchedCount: 0 };
6465
6467
  const U = F.dimensionValues.filter(
6466
- (J) => J?.name?.toLowerCase()?.includes(E)
6468
+ (J) => J?.name?.toLowerCase()?.includes(k)
6467
6469
  );
6468
6470
  return {
6469
6471
  filterValues: F.displayMode === Ke.HIERARCHY ? Fl(F.dimensionValues, U) : U,
6470
6472
  matchedCount: U.length
6471
6473
  };
6472
6474
  },
6473
- [E]
6475
+ [k]
6474
6476
  ), O = K(
6475
- () => T ? k(t).filterValues : t?.dimensionValues,
6476
- [T, k, t]
6477
+ () => T ? E(t).filterValues : t?.dimensionValues,
6478
+ [T, E, t]
6477
6479
  ), V = K(() => G ? (e || []).reduce((F, U) => {
6478
6480
  if (Be(U, t) || U.filterType === "shared")
6479
6481
  return F;
6480
- const { filterValues: J, matchedCount: q } = k(U);
6482
+ const { filterValues: J, matchedCount: q } = E(U);
6481
6483
  return q ? [
6482
6484
  ...F,
6483
6485
  {
@@ -6487,18 +6489,18 @@ const si = 2, za = ({
6487
6489
  isHierarchicalView: U.displayMode === Ke.HIERARCHY
6488
6490
  }
6489
6491
  ] : F;
6490
- }, []) : [], [G, e, t, k]), L = K(() => {
6492
+ }, []) : [], [G, e, t, E]), L = K(() => {
6491
6493
  const F = g?.treeNodes;
6492
6494
  if (!F?.length) return F;
6493
6495
  const U = new Set(
6494
6496
  t?.dimensionValues?.filter((q) => q.isSelectedValue).map((q) => q.id) ?? []
6495
6497
  ), J = U.size ? Ha(F, U) : F;
6496
- return T ? Ua(J, E) : J;
6498
+ return T ? Ua(J, k) : J;
6497
6499
  }, [
6498
6500
  g?.treeNodes,
6499
6501
  t?.dimensionValues,
6500
6502
  T,
6501
- E
6503
+ k
6502
6504
  ]), P = L ? !L.length : !O?.length, _ = K(
6503
6505
  () => V.reduce(
6504
6506
  (F, U) => F + U.matchedCount,
@@ -6515,7 +6517,7 @@ const si = 2, za = ({
6515
6517
  },
6516
6518
  [p]
6517
6519
  );
6518
- return /* @__PURE__ */ u(ue, { children: t?.isTimeDimension && c ? /* @__PURE__ */ u(
6520
+ return /* @__PURE__ */ u(ce, { children: t?.isTimeDimension && c ? /* @__PURE__ */ u(
6519
6521
  id,
6520
6522
  {
6521
6523
  titles: o,
@@ -6546,7 +6548,7 @@ const si = 2, za = ({
6546
6548
  containerClasses: "gap-2 items-center filters-search-input",
6547
6549
  cssClass: "filters-search-input-text",
6548
6550
  placeholder: o?.searchPlaceholder ?? "Search",
6549
- value: v,
6551
+ value: C,
6550
6552
  onChange: H,
6551
6553
  onFocus: () => y(!0),
6552
6554
  onBlur: () => y(!1),
@@ -6569,7 +6571,7 @@ const si = 2, za = ({
6569
6571
  children: o?.searchMinCharsCaption ?? "Enter at least 2 characters to start searching"
6570
6572
  }
6571
6573
  ),
6572
- /* @__PURE__ */ u("div", { className: "body-2 mt-3 flex min-h-0 flex-1 flex-col overflow-auto", children: G ? /* @__PURE__ */ D(ue, { children: [
6574
+ /* @__PURE__ */ u("div", { className: "body-2 mt-3 flex min-h-0 flex-1 flex-col overflow-auto", children: G ? /* @__PURE__ */ D(ce, { children: [
6573
6575
  t && /* @__PURE__ */ D("div", { className: "shrink-0 pb-4", children: [
6574
6576
  /* @__PURE__ */ u(
6575
6577
  jn,
@@ -6577,7 +6579,7 @@ const si = 2, za = ({
6577
6579
  selectedFilter: t,
6578
6580
  filterValues: O,
6579
6581
  checkboxIcon: n?.checkboxIcon,
6580
- isHierarchicalView: b,
6582
+ isHierarchicalView: v,
6581
6583
  isVirtualized: !1,
6582
6584
  isScrollable: !1,
6583
6585
  isDisableValues: s,
@@ -6637,7 +6639,7 @@ const si = 2, za = ({
6637
6639
  selectedFilter: t,
6638
6640
  filterValues: O,
6639
6641
  checkboxIcon: n?.checkboxIcon,
6640
- isHierarchicalView: b,
6642
+ isHierarchicalView: v,
6641
6643
  isDisableValues: s,
6642
6644
  structuresMap: l,
6643
6645
  hierarchyTreeNodes: L,
@@ -6666,14 +6668,14 @@ const si = 2, za = ({
6666
6668
  onTimePeriodChange: f,
6667
6669
  selectFilterValue: m,
6668
6670
  selectHierarchicalNodes: g,
6669
- expandHierarchicalValue: v,
6671
+ expandHierarchicalValue: C,
6670
6672
  hierarchyState: p,
6671
- onSelectHierarchy: C
6673
+ onSelectHierarchy: b
6672
6674
  }) => {
6673
- const y = Sn(), [w, b] = S(0), [N, M] = S(!1), E = t?.isTimeDimension && t?.timeRange, T = K(() => t?.timeRange?.startPeriod && t?.timeRange?.endPeriod ? `${wn(t?.timeRange?.startPeriod, i)} -
6675
+ const y = Sn(), [w, v] = S(0), [N, M] = S(!1), k = t?.isTimeDimension && t?.timeRange, T = K(() => t?.timeRange?.startPeriod && t?.timeRange?.endPeriod ? `${wn(t?.timeRange?.startPeriod, i)} -
6674
6676
  ${wn(t?.timeRange?.endPeriod, i)}` : "", [i, t?.timeRange]);
6675
6677
  R(() => {
6676
- b(
6678
+ v(
6677
6679
  Ca(t?.dimensionValues)?.length
6678
6680
  );
6679
6681
  }, [t?.dimensionValues]);
@@ -6684,7 +6686,7 @@ const si = 2, za = ({
6684
6686
  titles: a
6685
6687
  }),
6686
6688
  [t?.isHierarchical, p?.availableHierarchies, a]
6687
- ), k = p?.isLoading || !t?.isHierarchical && !p?.availableHierarchies?.length;
6689
+ ), E = p?.isLoading || !t?.isHierarchical && !p?.availableHierarchies?.length;
6688
6690
  R(() => {
6689
6691
  t.isSelectedFilter || M(!1);
6690
6692
  }, [t.isSelectedFilter]);
@@ -6692,12 +6694,12 @@ const si = 2, za = ({
6692
6694
  y && M((L) => !L), n(t);
6693
6695
  }, V = (L) => {
6694
6696
  if (L === "")
6695
- C?.(t, null), r?.(t, Ke.FLAT_LIST);
6697
+ b?.(t, null), r?.(t, Ke.FLAT_LIST);
6696
6698
  else if (L === Ke.HIERARCHY)
6697
- C?.(t, null), r?.(t, Ke.HIERARCHY);
6699
+ b?.(t, null), r?.(t, Ke.HIERARCHY);
6698
6700
  else {
6699
6701
  const P = p?.availableHierarchies?.find((_) => _.id === L) ?? null;
6700
- C?.(t, P);
6702
+ b?.(t, P);
6701
6703
  }
6702
6704
  };
6703
6705
  return /* @__PURE__ */ D("div", { className: "flex flex-col", children: [
@@ -6732,8 +6734,8 @@ const si = 2, za = ({
6732
6734
  }
6733
6735
  ),
6734
6736
  /* @__PURE__ */ D("div", { className: "ml-2 flex items-center gap-2 text-neutrals-800", children: [
6735
- E && /* @__PURE__ */ u("span", { className: "filters-facet-item-counter border-none", children: T }),
6736
- !E && G && /* @__PURE__ */ u(
6737
+ k && /* @__PURE__ */ u("span", { className: "filters-facet-item-counter border-none", children: T }),
6738
+ !k && G && /* @__PURE__ */ u(
6737
6739
  "span",
6738
6740
  {
6739
6741
  className: W(
@@ -6743,7 +6745,7 @@ const si = 2, za = ({
6743
6745
  children: w ? `${w}/${t?.dimensionValues?.length || 0}` : a?.all || "All"
6744
6746
  }
6745
6747
  ),
6746
- E ? null : /* @__PURE__ */ D("div", { className: "filters-facet-item-settings flex items-center gap-2", children: [
6748
+ k ? null : /* @__PURE__ */ D("div", { className: "filters-facet-item-settings flex items-center gap-2", children: [
6747
6749
  /* @__PURE__ */ u(
6748
6750
  el,
6749
6751
  {
@@ -6756,10 +6758,10 @@ const si = 2, za = ({
6756
6758
  ),
6757
6759
  icon: /* @__PURE__ */ u(Hc, { width: 16, height: 16 }),
6758
6760
  title: a?.displayOrder || "Display Order",
6759
- disabled: k
6761
+ disabled: E
6760
6762
  }
6761
6763
  ),
6762
- disabled: k,
6764
+ disabled: E,
6763
6765
  options: I,
6764
6766
  selectedOption: p?.selectedHierarchy?.id ?? (t?.displayMode === Ke.HIERARCHY ? Ke.HIERARCHY : ""),
6765
6767
  onOptionSelect: V
@@ -6795,7 +6797,7 @@ const si = 2, za = ({
6795
6797
  timeRangeOptions: h,
6796
6798
  selectFilterValue: m,
6797
6799
  selectHierarchicalNodes: g,
6798
- expandHierarchicalValue: v,
6800
+ expandHierarchicalValue: C,
6799
6801
  onTimePeriodChange: f,
6800
6802
  filterValuesProps: c,
6801
6803
  initialConstraints: d,
@@ -6819,13 +6821,13 @@ const si = 2, za = ({
6819
6821
  structuresMap: f,
6820
6822
  onTimePeriodChange: m,
6821
6823
  selectFilterValue: g,
6822
- selectHierarchicalNodes: v,
6824
+ selectHierarchicalNodes: C,
6823
6825
  titles: p,
6824
- expandHierarchicalValue: C,
6826
+ expandHierarchicalValue: b,
6825
6827
  hierarchyStateMap: y,
6826
6828
  onSelectHierarchy: w
6827
6829
  }) => {
6828
- const { isCrossDatasetModeOn: b } = Pe(), N = new Set(
6830
+ const { isCrossDatasetModeOn: v } = Pe(), N = new Set(
6829
6831
  e.filter((M) => M.filterType === "dataset").map((M) => M.datasetUrn || "")
6830
6832
  ).size;
6831
6833
  return /* @__PURE__ */ u(
@@ -6834,8 +6836,8 @@ const si = 2, za = ({
6834
6836
  className: W(
6835
6837
  "overflow-y-auto advanced-view-filters-list min-w-[320px] pr-3 h-full sm:w-full"
6836
6838
  ),
6837
- children: e.map((M, E) => {
6838
- const T = e[E - 1], I = M.filterType === "dataset" && N > 1 && M.datasetUrn !== T?.datasetUrn ? Ra(M, f) : void 0;
6839
+ children: e.map((M, k) => {
6840
+ const T = e[k - 1], I = M.filterType === "dataset" && N > 1 && M.datasetUrn !== T?.datasetUrn ? Ra(M, f) : void 0;
6839
6841
  return /* @__PURE__ */ D("div", { children: [
6840
6842
  I && /* @__PURE__ */ D("h4", { className: "filters-facet-dataset-name", children: [
6841
6843
  /* @__PURE__ */ u("span", { className: "filters-facet-dataset-icon", children: h }),
@@ -6855,12 +6857,12 @@ const si = 2, za = ({
6855
6857
  isDisableValues: d,
6856
6858
  timeRangeOptions: o,
6857
6859
  selectFilterValue: g,
6858
- selectHierarchicalNodes: v,
6859
- expandHierarchicalValue: C,
6860
+ selectHierarchicalNodes: C,
6861
+ expandHierarchicalValue: b,
6860
6862
  onTimePeriodChange: m,
6861
6863
  filterValuesProps: a,
6862
6864
  initialConstraints: _a(
6863
- b,
6865
+ v,
6864
6866
  M,
6865
6867
  c,
6866
6868
  l
@@ -6891,17 +6893,17 @@ const si = 2, za = ({
6891
6893
  setSelectedFilter: f,
6892
6894
  onSelectDisplayMode: m,
6893
6895
  onDeleteFilter: g,
6894
- onClearAllFilters: v,
6896
+ onClearAllFilters: C,
6895
6897
  updateSelectedFilterValues: p,
6896
- onTimePeriodChange: C,
6898
+ onTimePeriodChange: b,
6897
6899
  selectedTimeOption: y,
6898
6900
  hierarchyStateMap: w,
6899
- onSelectHierarchy: b,
6901
+ onSelectHierarchy: v,
6900
6902
  onExpandHierarchyNode: N
6901
6903
  }) => {
6902
6904
  const M = w?.get(
6903
6905
  _e(n)
6904
- ), E = Sn(), { isCrossDatasetModeOn: T } = Pe(), G = br(
6906
+ ), k = Sn(), { isCrossDatasetModeOn: T } = Pe(), G = br(
6905
6907
  En(e)
6906
6908
  ), I = A(
6907
6909
  (P) => {
@@ -6918,7 +6920,7 @@ const si = 2, za = ({
6918
6920
  });
6919
6921
  },
6920
6922
  [e, f]
6921
- ), k = (P, _, H) => {
6923
+ ), E = (P, _, H) => {
6922
6924
  const F = H || n, U = !H || Be(H, n);
6923
6925
  if (!F)
6924
6926
  return;
@@ -6974,7 +6976,7 @@ const si = 2, za = ({
6974
6976
  ...n,
6975
6977
  timeRange: P || void 0
6976
6978
  };
6977
- C?.(_), f(H), p && p(H);
6979
+ b?.(_), f(H), p && p(H);
6978
6980
  };
6979
6981
  return /* @__PURE__ */ D(
6980
6982
  "div",
@@ -7003,8 +7005,8 @@ const si = 2, za = ({
7003
7005
  {
7004
7006
  buttonClassName: "text-button-tertiary p-0",
7005
7007
  title: t?.clearAll ?? "Clear All",
7006
- onClick: v,
7007
- isSmallButton: E
7008
+ onClick: C,
7009
+ isSmallButton: k
7008
7010
  }
7009
7011
  )
7010
7012
  ] }),
@@ -7024,13 +7026,13 @@ const si = 2, za = ({
7024
7026
  datasetIcon: l,
7025
7027
  structuresMap: h,
7026
7028
  timeRangeOptions: d,
7027
- selectFilterValue: k,
7029
+ selectFilterValue: E,
7028
7030
  selectHierarchicalNodes: O,
7029
7031
  expandHierarchicalValue: V,
7030
7032
  onTimePeriodChange: L,
7031
7033
  filterValuesProps: r?.filterValuesProps,
7032
7034
  hierarchyStateMap: w,
7033
- onSelectHierarchy: b
7035
+ onSelectHierarchy: v
7034
7036
  }
7035
7037
  ),
7036
7038
  r?.isShowTimeSeriesCount && a ? /* @__PURE__ */ D("h4", { className: "my-4 text-neutrals-800", children: [
@@ -7041,7 +7043,7 @@ const si = 2, za = ({
7041
7043
  ]
7042
7044
  }
7043
7045
  ),
7044
- !E && /* @__PURE__ */ u(
7046
+ !k && /* @__PURE__ */ u(
7045
7047
  za,
7046
7048
  {
7047
7049
  filtersList: e,
@@ -7050,7 +7052,7 @@ const si = 2, za = ({
7050
7052
  titles: t,
7051
7053
  isDisableValues: i,
7052
7054
  timeRangeOptions: d,
7053
- selectFilterValue: k,
7055
+ selectFilterValue: E,
7054
7056
  selectHierarchicalNodes: O,
7055
7057
  expandHierarchicalValue: V,
7056
7058
  onTimePeriodChange: L,
@@ -7146,7 +7148,7 @@ const si = 2, za = ({
7146
7148
  };
7147
7149
  }, Qd = ({ timeseriesLength: e = 0, limitMessages: t }) => {
7148
7150
  const n = !e || Dt > e;
7149
- return /* @__PURE__ */ u("div", { className: "body-3 flex items-center gap-x-[4px] text-neutrals-800 sm:justify-center sm:text-center", children: n ? /* @__PURE__ */ u("span", { children: t?.seriesCount?.(e) }) : /* @__PURE__ */ D(ue, { children: [
7151
+ return /* @__PURE__ */ u("div", { className: "body-3 flex items-center gap-x-[4px] text-neutrals-800 sm:justify-center sm:text-center", children: n ? /* @__PURE__ */ u("span", { children: t?.seriesCount?.(e) }) : /* @__PURE__ */ D(ce, { children: [
7150
7152
  /* @__PURE__ */ u("span", { children: t?.warningIcon }),
7151
7153
  /* @__PURE__ */ u("span", { children: t?.counterLimit?.(e, Dt) })
7152
7154
  ] }) });
@@ -7212,7 +7214,7 @@ const si = 2, za = ({
7212
7214
  ]
7213
7215
  }
7214
7216
  );
7215
- }, eu = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "M3.33333 13.3327V8.66602H2V7.33268H6V8.66602H4.66667V13.3327H3.33333ZM3.33333 5.99935V2.66602H4.66667V5.99935H3.33333ZM6 5.99935V4.66602H7.33333V2.66602H8.66667V4.66602H10V5.99935H6ZM7.33333 13.3327V7.33268H8.66667V13.3327H7.33333ZM11.3333 13.3327V11.3327H10V9.99935H14V11.3327H12.6667V13.3327H11.3333ZM11.3333 8.66602V2.66602H12.6667V8.66602H11.3333Z", fill: "currentColor" }));
7217
+ }, eu = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" }));
7216
7218
  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 || {});
7217
7219
  const Nr = [
7218
7220
  "charts",
@@ -7269,7 +7271,7 @@ const Nr = [
7269
7271
  targetPosition: e,
7270
7272
  overlayClasses: t,
7271
7273
  onClose: n
7272
- }) => /* @__PURE__ */ D(ue, { children: [
7274
+ }) => /* @__PURE__ */ D(ce, { children: [
7273
7275
  /* @__PURE__ */ u(
7274
7276
  "div",
7275
7277
  {
@@ -7338,7 +7340,7 @@ const Nr = [
7338
7340
  shouldMoveToNextStep: i,
7339
7341
  supressReferenceClick: a
7340
7342
  }) => {
7341
- const [d, o] = S(!0), [c, l] = S(!1), h = pe(null), { isShowOnboarding: f, onboardingFileSchema: m, setOnboardingFileSchema: g } = We(), { refs: v, floatingStyles: p, context: C, placement: y } = ji({
7343
+ const [d, o] = S(!0), [c, l] = S(!1), h = pe(null), { isShowOnboarding: f, onboardingFileSchema: m, setOnboardingFileSchema: g } = We(), { refs: C, floatingStyles: p, context: b, placement: y } = ji({
7342
7344
  open: d,
7343
7345
  onOpenChange: o,
7344
7346
  placement: "right-start",
@@ -7352,7 +7354,7 @@ const Nr = [
7352
7354
  ec({ element: h })
7353
7355
  ],
7354
7356
  whileElementsMounted: ql
7355
- }), w = tc(C), { getFloatingProps: b } = Wi([w]), N = A(() => {
7357
+ }), w = tc(b), { getFloatingProps: v } = Wi([w]), N = A(() => {
7356
7358
  if (f) {
7357
7359
  const G = tu(
7358
7360
  m,
@@ -7370,17 +7372,17 @@ const Nr = [
7370
7372
  o?.(!1);
7371
7373
  }, [f, m, g]);
7372
7374
  R(() => {
7373
- v.setReference(e?.current ?? null);
7374
- }, [e, v]);
7375
- const M = () => N(), E = e?.current?.getBoundingClientRect();
7375
+ C.setReference(e?.current ?? null);
7376
+ }, [e, C]);
7377
+ const M = () => N(), k = e?.current?.getBoundingClientRect();
7376
7378
  return R(() => {
7377
7379
  s && !c && (N(), l(!0));
7378
- }, [s, N, c]), /* @__PURE__ */ u(ue, { children: d && /* @__PURE__ */ D(nc, { children: [
7379
- E && /* @__PURE__ */ u(
7380
+ }, [s, N, c]), /* @__PURE__ */ u(ce, { children: d && /* @__PURE__ */ D(nc, { children: [
7381
+ k && /* @__PURE__ */ u(
7380
7382
  su,
7381
7383
  {
7382
7384
  overlayClasses: a ? "cursor-default" : "cursor-pointer",
7383
- targetPosition: E,
7385
+ targetPosition: k,
7384
7386
  onClose: () => {
7385
7387
  r ? (r?.(), i ? N() : o(!1)) : a || (N(), e?.current?.click());
7386
7388
  }
@@ -7389,9 +7391,9 @@ const Nr = [
7389
7391
  /* @__PURE__ */ D(
7390
7392
  "div",
7391
7393
  {
7392
- ref: v.setFloating,
7394
+ ref: C.setFloating,
7393
7395
  style: p,
7394
- ...b(),
7396
+ ...v(),
7395
7397
  className: "tooltip z-tooltip max-w-[350px]",
7396
7398
  children: [
7397
7399
  /* @__PURE__ */ D("div", { className: "tooltip-header", children: [
@@ -7425,23 +7427,23 @@ const Nr = [
7425
7427
  filterIconClassName: d,
7426
7428
  timeSeriesCount: o
7427
7429
  }) => {
7428
- const c = pe(null), [l, h] = S(""), [f, m] = S(""), [g, v] = S(!1), { onboardingFileSchema: p, isShowOnboarding: C } = We(), y = Dt < (o ?? 0), w = K(
7430
+ const c = pe(null), [l, h] = S(""), [f, m] = S(""), [g, C] = S(!1), { onboardingFileSchema: p, isShowOnboarding: b } = We(), y = Dt < (o ?? 0), w = K(
7429
7431
  () => e?.isShowBadge ? e?.title : `${e?.title}: ${t}`,
7430
7432
  [e?.isShowBadge, e?.title, t]
7431
7433
  );
7432
7434
  return R(() => {
7433
- if (C) {
7434
- const { title: b, description: N } = at(
7435
+ if (b) {
7436
+ const { title: v, description: N } = at(
7435
7437
  ve.FILTERS,
7436
7438
  s
7437
7439
  );
7438
- h(b), m(N);
7440
+ h(v), m(N);
7439
7441
  }
7440
- }, [s, C]), R(() => {
7441
- C && v(
7442
+ }, [s, b]), R(() => {
7443
+ b && C(
7442
7444
  p?.lastDisplayedElement === ve.FILTERS
7443
7445
  );
7444
- }, [p?.lastDisplayedElement, C]), /* @__PURE__ */ u("div", { className: "filter-button-container relative", ref: c, children: n ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ue, { children: [
7446
+ }, [p?.lastDisplayedElement, b]), /* @__PURE__ */ u("div", { className: "filter-button-container relative", ref: c, children: n ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ce, { children: [
7445
7447
  /* @__PURE__ */ u(
7446
7448
  Ne,
7447
7449
  {
@@ -7570,18 +7572,18 @@ const lu = (e, t) => e?.filter(
7570
7572
  (f, m) => {
7571
7573
  const g = _e(f);
7572
7574
  if (!g) return;
7573
- const v = e(f), p = m ?? t(f);
7574
- a((C) => {
7575
- const y = C.get(g);
7576
- if (!y?.mainHierarchy) return C;
7575
+ const C = e(f), p = m ?? t(f);
7576
+ a((b) => {
7577
+ const y = b.get(g);
7578
+ if (!y?.mainHierarchy) return b;
7577
7579
  const w = ri(
7578
7580
  y.mainHierarchy,
7579
7581
  y.codelists,
7580
7582
  f.id ?? "",
7581
7583
  p,
7582
- v
7583
- ), b = new Map(C);
7584
- return b.set(g, { ...y, treeNodes: w }), b;
7584
+ C
7585
+ ), v = new Map(b);
7586
+ return v.set(g, { ...y, treeNodes: w }), v;
7585
7587
  });
7586
7588
  },
7587
7589
  [e, t]
@@ -7592,19 +7594,19 @@ const lu = (e, t) => e?.filter(
7592
7594
  if (!m) return;
7593
7595
  const g = _e(f);
7594
7596
  if (g) {
7595
- a((v) => {
7596
- const p = new Map(v), C = v.get(g) ?? ut;
7597
- return p.set(g, { ...C, isLoading: !0 }), p;
7597
+ a((C) => {
7598
+ const p = new Map(C), b = C.get(g) ?? ut;
7599
+ return p.set(g, { ...b, isLoading: !0 }), p;
7598
7600
  });
7599
7601
  try {
7600
- const v = await r(
7602
+ const C = await r(
7601
7603
  m,
7602
7604
  n?.(f)
7603
7605
  ), p = Bd(
7604
- v?.data?.hierarchies ?? []
7606
+ C?.data?.hierarchies ?? []
7605
7607
  );
7606
- a((C) => {
7607
- const y = new Map(C), w = C.get(g) ?? ut;
7608
+ a((b) => {
7609
+ const y = new Map(b), w = b.get(g) ?? ut;
7608
7610
  return y.set(g, {
7609
7611
  ...w,
7610
7612
  availableHierarchies: p,
@@ -7612,9 +7614,9 @@ const lu = (e, t) => e?.filter(
7612
7614
  }), y;
7613
7615
  });
7614
7616
  } catch {
7615
- a((v) => {
7616
- const p = new Map(v), C = v.get(g) ?? ut;
7617
- return p.set(g, { ...C, isLoading: !1 }), p;
7617
+ a((C) => {
7618
+ const p = new Map(C), b = C.get(g) ?? ut;
7619
+ return p.set(g, { ...b, isLoading: !1 }), p;
7618
7620
  });
7619
7621
  }
7620
7622
  }
@@ -7625,20 +7627,20 @@ const lu = (e, t) => e?.filter(
7625
7627
  if (!s) return;
7626
7628
  const g = _e(f);
7627
7629
  if (!g) return;
7628
- const v = e(f);
7630
+ const C = e(f);
7629
7631
  a((p) => {
7630
- const C = new Map(p), y = p.get(g) ?? ut;
7631
- return C.set(g, { ...y, isLoading: !0 }), C;
7632
+ const b = new Map(p), y = p.get(g) ?? ut;
7633
+ return b.set(g, { ...y, isLoading: !0 }), b;
7632
7634
  });
7633
7635
  try {
7634
- const p = ni(m), C = await s(p, v), y = C?.data?.hierarchies?.find(
7636
+ const p = ni(m), b = await s(p, C), y = b?.data?.hierarchies?.find(
7635
7637
  (N) => ni(N) === p
7636
7638
  );
7637
7639
  if (!y) {
7638
7640
  a((N) => {
7639
- const M = new Map(N), E = N.get(g) ?? ut;
7641
+ const M = new Map(N), k = N.get(g) ?? ut;
7640
7642
  return M.set(g, {
7641
- ...E,
7643
+ ...k,
7642
7644
  selectedHierarchy: m,
7643
7645
  mainHierarchy: null,
7644
7646
  treeNodes: [],
@@ -7648,32 +7650,32 @@ const lu = (e, t) => e?.filter(
7648
7650
  return;
7649
7651
  }
7650
7652
  const w = Vl(
7651
- C?.data
7652
- ), b = ri(
7653
+ b?.data
7654
+ ), v = ri(
7653
7655
  y,
7654
7656
  w,
7655
7657
  f.id ?? "",
7656
7658
  t(f),
7657
- v
7659
+ C
7658
7660
  );
7659
7661
  a((N) => {
7660
- const M = new Map(N), E = N.get(g) ?? ut;
7662
+ const M = new Map(N), k = N.get(g) ?? ut;
7661
7663
  return M.set(g, {
7662
- ...E,
7664
+ ...k,
7663
7665
  selectedHierarchy: m,
7664
7666
  mainHierarchy: y,
7665
7667
  codelists: w,
7666
- treeNodes: b,
7668
+ treeNodes: v,
7667
7669
  isLoading: !1
7668
7670
  }), M;
7669
7671
  });
7670
7672
  } catch {
7671
7673
  a((p) => {
7672
- const C = new Map(p), y = p.get(g) ?? ut;
7673
- return C.set(g, {
7674
+ const b = new Map(p), y = p.get(g) ?? ut;
7675
+ return b.set(g, {
7674
7676
  ...y,
7675
7677
  isLoading: !1
7676
- }), C;
7678
+ }), b;
7677
7679
  });
7678
7680
  }
7679
7681
  },
@@ -7684,10 +7686,10 @@ const lu = (e, t) => e?.filter(
7684
7686
  const g = _e(f);
7685
7687
  if (g) {
7686
7688
  if (!m) {
7687
- a((v) => {
7688
- const p = new Map(v), C = v.get(g) ?? ut;
7689
+ a((C) => {
7690
+ const p = new Map(C), b = C.get(g) ?? ut;
7689
7691
  return p.set(g, {
7690
- ...C,
7692
+ ...b,
7691
7693
  selectedHierarchy: null,
7692
7694
  mainHierarchy: null,
7693
7695
  treeNodes: []
@@ -7702,12 +7704,12 @@ const lu = (e, t) => e?.filter(
7702
7704
  ), h = A(
7703
7705
  (f, m) => {
7704
7706
  a((g) => {
7705
- const v = g.get(f);
7706
- if (!v?.treeNodes) return g;
7707
+ const C = g.get(f);
7708
+ if (!C?.treeNodes) return g;
7707
7709
  const p = new Map(g);
7708
7710
  return p.set(f, {
7709
- ...v,
7710
- treeNodes: Ga(v.treeNodes, m)
7711
+ ...C,
7712
+ treeNodes: Ga(C.treeNodes, m)
7711
7713
  }), p;
7712
7714
  });
7713
7715
  },
@@ -7736,13 +7738,13 @@ const lu = (e, t) => e?.filter(
7736
7738
  titles: f,
7737
7739
  conversationKey: m,
7738
7740
  conversation: g,
7739
- setConversation: v,
7741
+ setConversation: C,
7740
7742
  updateConversation: p,
7741
- updateDataQueries: C,
7743
+ updateDataQueries: b,
7742
7744
  limitMessages: y,
7743
7745
  filterIconClassName: w
7744
7746
  }) => {
7745
- const [b, N] = S(ae.Closed), [M, E] = S([]), [T, G] = S([]), [I, k] = S(), [O, V] = S(
7747
+ const [v, N] = S(ae.Closed), [M, k] = S([]), [T, G] = S([]), [I, E] = S(), [O, V] = S(
7746
7748
  []
7747
7749
  ), [L, P] = S(void 0), _ = pe(o || []), [H, F] = S([]), [U, J] = S(), [q, Z] = S(), oe = pe(!1), [he, $] = S(!1), Q = A(
7748
7750
  (x) => {
@@ -7777,16 +7779,16 @@ const lu = (e, t) => e?.filter(
7777
7779
  const j = x ? M.map(
7778
7780
  (Y) => Be(Y, x) ? x : Y
7779
7781
  ) : M;
7780
- Z(!0), E(Cn(j)), J?.(!0), Ie(
7782
+ Z(!0), k(Cn(j)), J?.(!0), Ie(
7781
7783
  x?.isTimeDimension ? vn(j, x) : j,
7782
- E,
7784
+ k,
7783
7785
  J,
7784
7786
  x
7785
7787
  );
7786
7788
  };
7787
7789
  R(() => {
7788
- b === ae.Closed && F(_.current);
7789
- }, [b]);
7790
+ v === ae.Closed && F(_.current);
7791
+ }, [v]);
7790
7792
  const Ie = A(
7791
7793
  (x, j, Y, re) => {
7792
7794
  const me = a?.urn ?? "", Me = Pt(
@@ -7884,24 +7886,24 @@ const lu = (e, t) => e?.filter(
7884
7886
  ]), R(() => {
7885
7887
  T?.length && V(En(T));
7886
7888
  }, [T]), R(() => {
7887
- E(
7889
+ k(
7888
7890
  (x) => vn(x, I)
7889
7891
  );
7890
7892
  }, [I]), R(() => {
7891
- b === ae.Opened && (k({ ...T?.[0], isSelectedFilter: !0 }), E(T)), b === ae.Closed && k(void 0);
7892
- }, [T, b]), R(() => {
7893
+ v === ae.Opened && (E({ ...T?.[0], isSelectedFilter: !0 }), k(T)), v === ae.Closed && E(void 0);
7894
+ }, [T, v]), R(() => {
7893
7895
  if (!I || I.isTimeDimension)
7894
7896
  return;
7895
7897
  const x = _e(I);
7896
7898
  if (!x) return;
7897
7899
  ee.get(x) || le(I);
7898
7900
  }, [I, ee, le]), R(() => {
7899
- b === ae.Opened && T.forEach((x) => {
7901
+ v === ae.Opened && T.forEach((x) => {
7900
7902
  if (x.isTimeDimension) return;
7901
7903
  const j = _e(x);
7902
7904
  j && !ee.has(j) && le(x);
7903
7905
  });
7904
- }, [b, T, ee, le]);
7906
+ }, [v, T, ee, le]);
7905
7907
  const Re = A(
7906
7908
  async (x) => {
7907
7909
  const j = ka(x), Y = g ? {
@@ -7914,7 +7916,7 @@ const lu = (e, t) => e?.filter(
7914
7916
  a
7915
7917
  )
7916
7918
  } : null;
7917
- v?.(Y), C?.(
7919
+ C?.(Y), b?.(
7918
7920
  Qa(
7919
7921
  d,
7920
7922
  void 0,
@@ -7931,15 +7933,15 @@ const lu = (e, t) => e?.filter(
7931
7933
  g,
7932
7934
  m,
7933
7935
  d,
7934
- v,
7936
+ C,
7935
7937
  p,
7936
- C
7938
+ b
7937
7939
  ]
7938
7940
  ), Oe = A(
7939
7941
  (x, j) => {
7940
- E(
7942
+ k(
7941
7943
  (Y) => va(Y, x, j)
7942
- ), Be(I, x) && k(
7944
+ ), Be(I, x) && E(
7943
7945
  (Y) => Y && {
7944
7946
  ...Y,
7945
7947
  displayMode: j
@@ -7959,16 +7961,16 @@ const lu = (e, t) => e?.filter(
7959
7961
  x,
7960
7962
  l
7961
7963
  );
7962
- _.current = x, k(
7964
+ _.current = x, E(
7963
7965
  (re) => Y?.find(
7964
7966
  (me) => Be(me, re)
7965
7967
  ) || re
7966
- ), E(Y), Z(!1);
7968
+ ), k(Y), Z(!1);
7967
7969
  },
7968
7970
  [t, l, r]
7969
7971
  ), ye = A(
7970
7972
  (x) => {
7971
- Z(!0), E(Cn(x));
7973
+ Z(!0), k(Cn(x));
7972
7974
  const j = a?.urn ?? "", Y = Pt(
7973
7975
  ar(x).filter(
7974
7976
  (me) => me.componentCode !== St
@@ -8032,7 +8034,7 @@ const lu = (e, t) => e?.filter(
8032
8034
  timeSeriesCount: ge
8033
8035
  }
8034
8036
  ),
8035
- /* @__PURE__ */ u(ue, { children: b === ae.Opened && /* @__PURE__ */ D(
8037
+ /* @__PURE__ */ u(ce, { children: v === ae.Opened && /* @__PURE__ */ D(
8036
8038
  Nt,
8037
8039
  {
8038
8040
  heading: f?.settings || "Settings",
@@ -8055,7 +8057,7 @@ const lu = (e, t) => e?.filter(
8055
8057
  modalProps: i,
8056
8058
  initialConstraints: o,
8057
8059
  timeSeriesCount: `${ge}`,
8058
- setSelectedFilter: k,
8060
+ setSelectedFilter: E,
8059
8061
  onSelectDisplayMode: Oe,
8060
8062
  onDeleteFilter: De,
8061
8063
  onClearAllFilters: Ae,
@@ -8148,7 +8150,7 @@ const lu = (e, t) => e?.filter(
8148
8150
  children: e?.queryUpdatedManuallyTitle ?? "Query has been updated manually."
8149
8151
  }
8150
8152
  ),
8151
- r ? /* @__PURE__ */ D(ue, { children: [
8153
+ r ? /* @__PURE__ */ D(ce, { children: [
8152
8154
  s.length > 0 && /* @__PURE__ */ u(
8153
8155
  Wn,
8154
8156
  {
@@ -8196,7 +8198,7 @@ const lu = (e, t) => e?.filter(
8196
8198
  ] })
8197
8199
  ] })
8198
8200
  }
8199
- ), gu = (e) => /* @__PURE__ */ ce.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ce.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), pu = (e) => /* @__PURE__ */ ce.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ ce.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), oi = [
8201
+ ), gu = (e) => /* @__PURE__ */ de.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ de.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), pu = (e) => /* @__PURE__ */ de.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ de.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), oi = [
8200
8202
  { value: tn.JSON, title: "SDMX-JSON" },
8201
8203
  { value: tn.XML, title: "SDMX-ML (XML)" },
8202
8204
  { value: tn.CSV, title: "SDMX-CSV" }
@@ -8224,7 +8226,7 @@ const lu = (e, t) => e?.filter(
8224
8226
  infoMessage: s,
8225
8227
  collapsible: i = !0
8226
8228
  }) => {
8227
- const a = /* @__PURE__ */ D(ue, { children: [
8229
+ const a = /* @__PURE__ */ D(ce, { children: [
8228
8230
  /* @__PURE__ */ u("div", { className: "flex flex-col gap-y-1", children: t.map((d) => /* @__PURE__ */ u("div", { className: "flex flex-col", children: /* @__PURE__ */ u(
8229
8231
  Ni,
8230
8232
  {
@@ -8297,10 +8299,10 @@ const lu = (e, t) => e?.filter(
8297
8299
  collapsible: f = !0,
8298
8300
  downloadDatasets: m,
8299
8301
  limitMessages: g,
8300
- showLimitMessage: v,
8302
+ showLimitMessage: C,
8301
8303
  externalLink: p
8302
8304
  }) => {
8303
- const C = wu(h), [y, w] = S(oi[0]), [b, N] = S(C[0]), [M, E] = S(!0), [T, G] = S(
8305
+ const b = wu(h), [y, w] = S(oi[0]), [v, N] = S(b[0]), [M, k] = S(!0), [T, G] = S(
8304
8306
  () => new Set(m?.map((P) => P.urn) ?? [])
8305
8307
  );
8306
8308
  R(() => {
@@ -8311,7 +8313,7 @@ const lu = (e, t) => e?.filter(
8311
8313
  const H = new Set(_);
8312
8314
  return H.has(P) ? H.delete(P) : H.add(P), H;
8313
8315
  });
8314
- }, []), k = m !== void 0 && (m.length === 0 || T.size === 0), O = A(
8316
+ }, []), E = m !== void 0 && (m.length === 0 || T.size === 0), O = A(
8315
8317
  async (P, _, H) => {
8316
8318
  const F = Cu(
8317
8319
  a,
@@ -8323,7 +8325,7 @@ const lu = (e, t) => e?.filter(
8323
8325
  _,
8324
8326
  y.value,
8325
8327
  d,
8326
- b.value,
8328
+ v.value,
8327
8329
  F,
8328
8330
  H,
8329
8331
  M
@@ -8337,7 +8339,7 @@ const lu = (e, t) => e?.filter(
8337
8339
  d,
8338
8340
  M,
8339
8341
  y.value,
8340
- b.value
8342
+ v.value
8341
8343
  ]
8342
8344
  ), V = A(() => {
8343
8345
  const P = y.value;
@@ -8385,7 +8387,7 @@ const lu = (e, t) => e?.filter(
8385
8387
  width: 44,
8386
8388
  height: 24,
8387
8389
  className: "text-primary",
8388
- onClick: () => E(!M)
8390
+ onClick: () => k(!M)
8389
8391
  }
8390
8392
  ) : /* @__PURE__ */ u(
8391
8393
  pu,
@@ -8393,7 +8395,7 @@ const lu = (e, t) => e?.filter(
8393
8395
  width: 44,
8394
8396
  height: 24,
8395
8397
  className: "text-neutrals-500",
8396
- onClick: () => E(!M)
8398
+ onClick: () => k(!M)
8397
8399
  }
8398
8400
  ),
8399
8401
  /* @__PURE__ */ u("div", { children: h?.includeMetadata || "Include Metadata" })
@@ -8422,7 +8424,7 @@ const lu = (e, t) => e?.filter(
8422
8424
  /* @__PURE__ */ u("p", { className: "min-w-0 flex-1 truncate", children: s })
8423
8425
  ] })
8424
8426
  ] }),
8425
- v && /* @__PURE__ */ u(
8427
+ C && /* @__PURE__ */ u(
8426
8428
  Ai,
8427
8429
  {
8428
8430
  limitMessages: g,
@@ -8453,13 +8455,13 @@ const lu = (e, t) => e?.filter(
8453
8455
  li,
8454
8456
  {
8455
8457
  title: h?.attributes || "Attributes",
8456
- selectedValue: b,
8458
+ selectedValue: v,
8457
8459
  setSelectedValue: N,
8458
- items: C,
8460
+ items: b,
8459
8461
  collapsible: f
8460
8462
  }
8461
8463
  ),
8462
- m && /* @__PURE__ */ D(ue, { children: [
8464
+ m && /* @__PURE__ */ D(ce, { children: [
8463
8465
  /* @__PURE__ */ u(
8464
8466
  vu,
8465
8467
  {
@@ -8503,7 +8505,7 @@ const lu = (e, t) => e?.filter(
8503
8505
  {
8504
8506
  buttonClassName: "text-button-primary",
8505
8507
  title: h?.download || "Download",
8506
- disabled: k,
8508
+ disabled: E,
8507
8509
  onClick: V
8508
8510
  }
8509
8511
  )
@@ -8543,19 +8545,19 @@ const lu = (e, t) => e?.filter(
8543
8545
  onOpenAdvancedView: a,
8544
8546
  titles: d
8545
8547
  }) => {
8546
- const { isOpenedAdvancedView: o } = Ve(), [c, l] = S(), h = pe(null), [f, m] = S(""), [g, v] = S(""), [p, C] = S(!1), { onboardingFileSchema: y, isShowOnboarding: w } = We();
8548
+ const { isOpenedAdvancedView: o } = Ve(), [c, l] = S(), h = pe(null), [f, m] = S(""), [g, C] = S(""), [p, b] = S(!1), { onboardingFileSchema: y, isShowOnboarding: w } = We();
8547
8549
  R(() => {
8548
8550
  if (w) {
8549
8551
  const { title: N, description: M } = at(
8550
8552
  ve.OPEN_ADVANCED_VIEW,
8551
8553
  d
8552
8554
  );
8553
- m(N), v(M);
8555
+ m(N), C(M);
8554
8556
  }
8555
8557
  }, [d, w]), R(() => {
8556
8558
  if (w) {
8557
8559
  const N = y?.lastDisplayedElement === ve.OPEN_ADVANCED_VIEW;
8558
- C(N), N && h?.current?.scrollIntoView({
8560
+ b(N), N && h?.current?.scrollIntoView({
8559
8561
  block: "center",
8560
8562
  behavior: "smooth"
8561
8563
  });
@@ -8570,7 +8572,7 @@ const lu = (e, t) => e?.filter(
8570
8572
  l(N), i?.(N);
8571
8573
  } else s && s !== c && (l(s), i?.(s));
8572
8574
  }, [e, i, s, c]);
8573
- const b = A(
8575
+ const v = A(
8574
8576
  (N) => {
8575
8577
  l(N), i?.(N);
8576
8578
  },
@@ -8597,7 +8599,7 @@ const lu = (e, t) => e?.filter(
8597
8599
  N?.agencyID
8598
8600
  ),
8599
8601
  isSingleTab: e?.length === 1,
8600
- onSelectDataset: b
8602
+ onSelectDataset: v
8601
8603
  },
8602
8604
  N?.id
8603
8605
  )) }),
@@ -8630,41 +8632,41 @@ const lu = (e, t) => e?.filter(
8630
8632
  onOpenAdvancedView: s,
8631
8633
  titles: i
8632
8634
  }) => {
8633
- const { isOpenedAdvancedView: a } = Ve(), d = pe(null), [o, c] = S(""), [l, h] = S(""), [f, m] = S(!1), { onboardingFileSchema: g, isShowOnboarding: v } = We();
8635
+ const { isOpenedAdvancedView: a } = Ve(), d = pe(null), [o, c] = S(""), [l, h] = S(""), [f, m] = S(!1), { onboardingFileSchema: g, isShowOnboarding: C } = We();
8634
8636
  R(() => {
8635
- if (v) {
8636
- const { title: b, description: N } = at(
8637
+ if (C) {
8638
+ const { title: v, description: N } = at(
8637
8639
  ve.OPEN_ADVANCED_VIEW,
8638
8640
  i
8639
8641
  );
8640
- c(b), h(N);
8642
+ c(v), h(N);
8641
8643
  }
8642
- }, [i, v]), R(() => {
8643
- if (v) {
8644
- const b = g?.lastDisplayedElement === ve.OPEN_ADVANCED_VIEW;
8645
- m(b), b && d?.current?.scrollIntoView({
8644
+ }, [i, C]), R(() => {
8645
+ if (C) {
8646
+ const v = g?.lastDisplayedElement === ve.OPEN_ADVANCED_VIEW;
8647
+ m(v), v && d?.current?.scrollIntoView({
8646
8648
  block: "center",
8647
8649
  behavior: "smooth"
8648
8650
  });
8649
8651
  }
8650
- }, [g?.lastDisplayedElement, v]);
8652
+ }, [g?.lastDisplayedElement, C]);
8651
8653
  const p = K(
8652
- () => (e || []).map((b) => ({
8653
- urn: et(b?.id, b?.version, b?.agencyID),
8654
- title: be(b, t || it.EN)
8654
+ () => (e || []).map((v) => ({
8655
+ urn: et(v?.id, v?.version, v?.agencyID),
8656
+ title: be(v, t || it.EN)
8655
8657
  })),
8656
8658
  [e, t]
8657
- ), C = K(
8659
+ ), b = K(
8658
8660
  () => p.slice(0, Mu),
8659
8661
  [p]
8660
8662
  ), y = Math.max(
8661
- p.length - C.length,
8663
+ p.length - b.length,
8662
8664
  0
8663
8665
  ), w = p.filter(
8664
- (b) => !C.some(
8665
- (N) => N.urn === b.urn
8666
+ (v) => !b.some(
8667
+ (N) => N.urn === v.urn
8666
8668
  )
8667
- ).map((b) => b.title).join(`
8669
+ ).map((v) => v.title).join(`
8668
8670
  `);
8669
8671
  return /* @__PURE__ */ D(
8670
8672
  "div",
@@ -8675,16 +8677,16 @@ const lu = (e, t) => e?.filter(
8675
8677
  ),
8676
8678
  children: [
8677
8679
  /* @__PURE__ */ D("div", { className: "cross-dataset-tabs-list sm:w-[calc(100%-30px)]", children: [
8678
- C.map((b, N) => /* @__PURE__ */ D("span", { className: "cross-dataset-tabs-item-wrapper", children: [
8679
- /* @__PURE__ */ u("span", { className: "cross-dataset-tabs-item", title: b.title, children: b.title }),
8680
- N < C.length - 1 && /* @__PURE__ */ u(
8680
+ b.map((v, N) => /* @__PURE__ */ D("span", { className: "cross-dataset-tabs-item-wrapper", children: [
8681
+ /* @__PURE__ */ u("span", { className: "cross-dataset-tabs-item", title: v.title, children: v.title }),
8682
+ N < b.length - 1 && /* @__PURE__ */ u(
8681
8683
  "span",
8682
8684
  {
8683
8685
  className: "cross-dataset-tabs-separator",
8684
8686
  "aria-hidden": "true"
8685
8687
  }
8686
8688
  )
8687
- ] }, b.urn)),
8689
+ ] }, v.urn)),
8688
8690
  y > 0 && /* @__PURE__ */ D(
8689
8691
  "span",
8690
8692
  {
@@ -8829,7 +8831,7 @@ const lu = (e, t) => e?.filter(
8829
8831
  return "";
8830
8832
  const i = e ? ku(t, n, r) : "";
8831
8833
  return s + i;
8832
- }, no = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), Eu = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), ro = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), xu = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), Iu = ({
8834
+ }, no = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), Eu = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), ro = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), xu = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), Iu = ({
8833
8835
  attachment: e,
8834
8836
  index: t,
8835
8837
  selectedAttachmentIndex: n,
@@ -8838,23 +8840,23 @@ const lu = (e, t) => e?.filter(
8838
8840
  dataGridTitle: i,
8839
8841
  titles: a
8840
8842
  }) => {
8841
- const d = pe(null), [o, c] = S(""), [l, h] = S(""), [f, m] = S(!1), { onboardingFileSchema: g, isShowOnboarding: v } = We(), p = A(
8843
+ const d = pe(null), [o, c] = S(""), [l, h] = S(""), [f, m] = S(!1), { onboardingFileSchema: g, isShowOnboarding: C } = We(), p = A(
8842
8844
  (y, w = "") => s ? au(y) || ln(y) ? /* @__PURE__ */ u(no, { className: w }) : ft(y) || pt(y) ? /* @__PURE__ */ u(ro, { className: w }) : Tr(y) ? /* @__PURE__ */ u(xu, { className: w }) : Za(y) || kr(y) ? /* @__PURE__ */ u(Eu, { className: w }) : null : null,
8843
8845
  [s]
8844
- ), C = A(
8846
+ ), b = A(
8845
8847
  (y) => ft(y) ? i || "Data Grid" : y.title,
8846
8848
  [i]
8847
8849
  );
8848
8850
  return R(() => {
8849
- if (v && ln(e)) {
8851
+ if (C && ln(e)) {
8850
8852
  const { title: y, description: w } = at(
8851
8853
  ve.CHARTS,
8852
8854
  a
8853
8855
  );
8854
8856
  c(y), h(w);
8855
8857
  }
8856
- }, [e, a, v]), R(() => {
8857
- if (ln(e) && v) {
8858
+ }, [e, a, C]), R(() => {
8859
+ if (ln(e) && C) {
8858
8860
  const y = g?.lastDisplayedElement === ve.CHARTS;
8859
8861
  m(y), y && d?.current?.scrollIntoView({
8860
8862
  block: "end",
@@ -8864,7 +8866,7 @@ const lu = (e, t) => e?.filter(
8864
8866
  }, [
8865
8867
  g?.lastDisplayedElement,
8866
8868
  e,
8867
- v
8869
+ C
8868
8870
  ]), /* @__PURE__ */ D(
8869
8871
  "div",
8870
8872
  {
@@ -8878,7 +8880,7 @@ const lu = (e, t) => e?.filter(
8878
8880
  onClick: () => r(t),
8879
8881
  children: [
8880
8882
  p(e, "w-4 h-4"),
8881
- /* @__PURE__ */ u("h4", { className: "max-w-[130px] truncate", title: C(e), children: C(e) }),
8883
+ /* @__PURE__ */ u("h4", { className: "max-w-[130px] truncate", title: b(e), children: b(e) }),
8882
8884
  f && /* @__PURE__ */ u(
8883
8885
  ot,
8884
8886
  {
@@ -8914,7 +8916,7 @@ const lu = (e, t) => e?.filter(
8914
8916
  isTableSettingsOpen: h,
8915
8917
  onTableSettingsOpen: f
8916
8918
  }) => {
8917
- const { isTableSettingsFeatureEnabled: m } = Pe(), { isOpenedAdvancedView: g } = Ve(), v = m && !l && !!f && !!(n && (ft(n) || pt(n))), p = !!n && (ft(n) || pt(n)), C = g && r?.hideDownloadIconInAdvancedView ? void 0 : r?.downloadIcon, y = !g && r?.hideDownloadTextInConversationView ? "" : r?.downloadTitle ?? "";
8919
+ const { isTableSettingsFeatureEnabled: m } = Pe(), { isOpenedAdvancedView: g } = Ve(), C = m && !l && !!f && !!(n && (ft(n) || pt(n))), p = !!n && (ft(n) || pt(n)), b = g && r?.hideDownloadIconInAdvancedView ? void 0 : r?.downloadIcon, y = !g && r?.hideDownloadTextInConversationView ? "" : r?.downloadTitle ?? "";
8918
8920
  return /* @__PURE__ */ D("div", { className: "items-center flex w-full min-w-0 justify-between", children: [
8919
8921
  /* @__PURE__ */ u(
8920
8922
  Lu,
@@ -8946,10 +8948,10 @@ const lu = (e, t) => e?.filter(
8946
8948
  r?.downloadButtonTextClassName
8947
8949
  ),
8948
8950
  onClick: c,
8949
- iconBefore: C
8951
+ iconBefore: b
8950
8952
  }
8951
8953
  ),
8952
- v && /* @__PURE__ */ u(
8954
+ C && /* @__PURE__ */ u(
8953
8955
  Ne,
8954
8956
  {
8955
8957
  disabled: h,
@@ -9043,7 +9045,7 @@ const Vu = ({ attachment: e, className: t = "" }) => {
9043
9045
  } catch {
9044
9046
  return !1;
9045
9047
  }
9046
- }, Gu = (e) => Hu(e) ? e : "", Uu = (e) => /* @__PURE__ */ ce.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.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" })), zu = ({
9048
+ }, Gu = (e) => Hu(e) ? e : "", Uu = (e) => /* @__PURE__ */ de.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), zu = ({
9047
9049
  attachment: e,
9048
9050
  openLinkTitle: t,
9049
9051
  className: n = ""
@@ -9099,7 +9101,7 @@ const Vu = ({ attachment: e, className: t = "" }) => {
9099
9101
  const d = A(() => {
9100
9102
  a(ae.Closed), r?.();
9101
9103
  }, [r]);
9102
- return /* @__PURE__ */ u(ue, { children: i === ae.Opened && /* @__PURE__ */ D(
9104
+ return /* @__PURE__ */ u(ce, { children: i === ae.Opened && /* @__PURE__ */ D(
9103
9105
  Nt,
9104
9106
  {
9105
9107
  heading: /* @__PURE__ */ u("h1", { className: "single-chart-popup-heading", children: e?.chart ?? "Chart" }),
@@ -9132,18 +9134,18 @@ const Vu = ({ attachment: e, className: t = "" }) => {
9132
9134
  }
9133
9135
  ) });
9134
9136
  }, Er = (e) => {
9135
- const [t, n] = S(!1), r = pe(null), [s, i] = S(""), [a, d] = S(""), [o, c] = S(!1), { onboardingFileSchema: l, isShowOnboarding: h } = We(), { isCrossDatasetModeOn: f } = Pe(), [m, g] = S(!1), v = A(() => {
9137
+ const [t, n] = S(!1), r = pe(null), [s, i] = S(""), [a, d] = S(""), [o, c] = S(!1), { onboardingFileSchema: l, isShowOnboarding: h } = We(), { isCrossDatasetModeOn: f } = Pe(), [m, g] = S(!1), C = A(() => {
9136
9138
  n(!0);
9137
9139
  }, []), p = A(() => {
9138
9140
  n(!1), g(!0);
9139
9141
  }, []);
9140
9142
  return R(() => {
9141
9143
  if (h) {
9142
- const { title: C, description: y } = at(
9144
+ const { title: b, description: y } = at(
9143
9145
  ve.CHART_PER_SERIES,
9144
9146
  e.titles
9145
9147
  );
9146
- i(C), d(y);
9148
+ i(b), d(y);
9147
9149
  }
9148
9150
  }, [e.titles, h]), R(() => {
9149
9151
  h && c(
@@ -9153,14 +9155,14 @@ const Vu = ({ attachment: e, className: t = "" }) => {
9153
9155
  l?.lastDisplayedElement,
9154
9156
  e.node.rowIndex,
9155
9157
  h
9156
- ]), /* @__PURE__ */ D(ue, { children: [
9158
+ ]), /* @__PURE__ */ D(ce, { children: [
9157
9159
  /* @__PURE__ */ u("div", { ref: r, children: /* @__PURE__ */ u(
9158
9160
  Qe,
9159
9161
  {
9160
9162
  title: e.titles?.chart ?? "Chart",
9161
9163
  buttonClassName: "!text-neutrals-1000 !border-none !p-1",
9162
9164
  icon: /* @__PURE__ */ u(no, { className: "size-5" }),
9163
- onClick: v
9165
+ onClick: C
9164
9166
  }
9165
9167
  ) }),
9166
9168
  o && /* @__PURE__ */ u(
@@ -9169,7 +9171,7 @@ const Vu = ({ attachment: e, className: t = "" }) => {
9169
9171
  reference: r,
9170
9172
  title: s,
9171
9173
  description: a,
9172
- onReferenceClick: v,
9174
+ onReferenceClick: C,
9173
9175
  shouldCloseTooltip: m
9174
9176
  }
9175
9177
  ),
@@ -9301,8 +9303,8 @@ const dr = ["index", "value"], Yu = (e) => ({
9301
9303
  d([]), c([]), i(!1);
9302
9304
  return;
9303
9305
  }
9304
- const { columns: g, data: v } = Yu(m);
9305
- d(v), c(g), i(!1);
9306
+ const { columns: g, data: C } = Yu(m);
9307
+ d(C), c(g), i(!1);
9306
9308
  }));
9307
9309
  }, [e.url, t]), R(() => {
9308
9310
  a ? (h(xr(a.length)), r?.(a.length >= Dt)) : r?.(!1);
@@ -9334,7 +9336,7 @@ const dr = ["index", "value"], Yu = (e) => ({
9334
9336
  children: f
9335
9337
  }
9336
9338
  ) });
9337
- }, uo = (e) => /* @__PURE__ */ ce.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ce.createElement("path", { d: "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" })), Qu = ({
9339
+ }, uo = (e) => /* @__PURE__ */ de.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ de.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" })), Qu = ({
9338
9340
  title: e,
9339
9341
  value: t
9340
9342
  }) => {
@@ -9460,7 +9462,7 @@ const dr = ["index", "value"], Yu = (e) => ({
9460
9462
  const o = A(() => {
9461
9463
  d(ae.Closed), r?.();
9462
9464
  }, [r]);
9463
- return /* @__PURE__ */ u(ue, { children: a === ae.Opened && /* @__PURE__ */ D(
9465
+ return /* @__PURE__ */ u(ce, { children: a === ae.Opened && /* @__PURE__ */ D(
9464
9466
  Nt,
9465
9467
  {
9466
9468
  heading: /* @__PURE__ */ u("h1", { className: "metadata-heading", children: s?.metadata || "Metadata" }),
@@ -9534,12 +9536,12 @@ const dr = ["index", "value"], Yu = (e) => ({
9534
9536
  (w) => w?.id === st.dataset
9535
9537
  ), g = t.find(
9536
9538
  (w) => w?.id === st.agency
9537
- ), v = t.find(
9539
+ ), C = t.find(
9538
9540
  (w) => w?.id === st.lastUpdated
9539
- ), p = n?.dataset || m, C = n?.agency || g, y = n?.lastUpdated || v;
9541
+ ), p = n?.dataset || m, b = n?.agency || g, y = n?.lastUpdated || C;
9540
9542
  return {
9541
9543
  dataset: p,
9542
- agency: C,
9544
+ agency: b,
9543
9545
  lastUpdated: y,
9544
9546
  hasStructuredDatasetInfo: !!p
9545
9547
  };
@@ -9549,7 +9551,7 @@ const dr = ["index", "value"], Yu = (e) => ({
9549
9551
  ) : t,
9550
9552
  [l, t]
9551
9553
  ), f = l || h.length > 0 || !!e?.length;
9552
- return /* @__PURE__ */ u("div", { className: "flex h-full flex-col overflow-hidden px-5 pb-4", children: f ? /* @__PURE__ */ D(ue, { children: [
9554
+ return /* @__PURE__ */ u("div", { className: "flex h-full flex-col overflow-hidden px-5 pb-4", children: f ? /* @__PURE__ */ D(ce, { children: [
9553
9555
  l && d && /* @__PURE__ */ u(
9554
9556
  nh,
9555
9557
  {
@@ -9580,14 +9582,14 @@ const dr = ["index", "value"], Yu = (e) => ({
9580
9582
  className: "flex flex-col gap-1",
9581
9583
  children: [
9582
9584
  m?.attachedKeysTitles?.map(
9583
- (g, v) => /* @__PURE__ */ u(
9585
+ (g, C) => /* @__PURE__ */ u(
9584
9586
  "div",
9585
9587
  {
9586
9588
  title: g,
9587
9589
  className: "body-3 text-neutrals-800",
9588
9590
  children: g
9589
9591
  },
9590
- `${g}-${v}`
9592
+ `${g}-${C}`
9591
9593
  )
9592
9594
  ),
9593
9595
  /* @__PURE__ */ u(
@@ -10565,19 +10567,19 @@ const Oh = (e, t, n) => {
10565
10567
  t === it.UK ? { locale: af } : void 0
10566
10568
  ) : "";
10567
10569
  }, So = (e) => {
10568
- const t = "grid-metadata-side-panel", [n, r] = S(!1), s = pe(null), [i, a] = S(""), [d, o] = S(""), [c, l] = S(!1), { onboardingFileSchema: h, isShowOnboarding: f } = We(), { isOpenedAdvancedView: m } = Ve(), g = vt(), { isMetadataInSidePanel: v } = Pe(), [p, C] = S(!1), y = e?.data?.dataset?.urn, w = Pn(e?.context, y), b = K(() => {
10570
+ const t = "grid-metadata-side-panel", [n, r] = S(!1), s = pe(null), [i, a] = S(""), [d, o] = S(""), [c, l] = S(!1), { onboardingFileSchema: h, isShowOnboarding: f } = We(), { isOpenedAdvancedView: m } = Ve(), g = vt(), { isMetadataInSidePanel: C } = Pe(), [p, b] = S(!1), y = e?.data?.dataset?.urn, w = Pn(e?.context, y), v = K(() => {
10569
10571
  if (e.structuresMap) {
10570
- const k = e?.data?.dataset?.urn;
10571
- return k != null ? e.structuresMap.get(k) : void 0;
10572
+ const E = e?.data?.dataset?.urn;
10573
+ return E != null ? e.structuresMap.get(E) : void 0;
10572
10574
  }
10573
10575
  return e.dataSetData;
10574
10576
  }, [e.structuresMap, e.data, e.dataSetData]), N = K(
10575
- () => Tn(b),
10576
- [b]
10577
+ () => Tn(v),
10578
+ [v]
10577
10579
  ), M = K(
10578
10580
  () => [
10579
10581
  Ut(
10580
- b?.dataflows?.[0],
10582
+ v?.dataflows?.[0],
10581
10583
  e?.locale,
10582
10584
  e.titles
10583
10585
  ),
@@ -10593,36 +10595,36 @@ const Oh = (e, t, n) => {
10593
10595
  ),
10594
10596
  ...gh(
10595
10597
  e?.attributesData,
10596
- b?.dataStructures?.[0],
10598
+ v?.dataStructures?.[0],
10597
10599
  N,
10598
10600
  e?.data?.originalData?.parsedTimeSeriesValue,
10599
10601
  e?.locale
10600
10602
  )
10601
10603
  ],
10602
- [e, b, N]
10603
- ), E = K(
10604
+ [e, v, N]
10605
+ ), k = K(
10604
10606
  () => go(
10605
- b,
10607
+ v,
10606
10608
  e?.locale,
10607
10609
  e?.valueFormatted || e?.value,
10608
10610
  e.titles,
10609
10611
  e?.colDef,
10610
10612
  e?.data
10611
10613
  ),
10612
- [e, b]
10614
+ [e, v]
10613
10615
  ), T = K(() => {
10614
- const k = b?.dataflows?.[0], O = Bt(
10615
- Vt(k),
10616
+ const E = v?.dataflows?.[0], O = Bt(
10617
+ Vt(E),
10616
10618
  e?.locale
10617
10619
  );
10618
10620
  return zt(
10619
- k,
10621
+ E,
10620
10622
  O,
10621
10623
  e?.locale,
10622
10624
  e.titles
10623
10625
  );
10624
- }, [b, e?.locale, e.titles]), G = A(() => {
10625
- if (v && g) {
10626
+ }, [v, e?.locale, e.titles]), G = A(() => {
10627
+ if (C && g) {
10626
10628
  g.openPanel({
10627
10629
  id: t,
10628
10630
  scope: m ? "advanced" : "conversation",
@@ -10636,18 +10638,18 @@ const Oh = (e, t, n) => {
10636
10638
  metadata: M,
10637
10639
  datasetInfo: T,
10638
10640
  externalLink: w,
10639
- metadataDescription: e?.metadataSettings?.isMetadataDescription ? E : []
10641
+ metadataDescription: e?.metadataSettings?.isMetadataDescription ? k : []
10640
10642
  }
10641
10643
  )
10642
- }), C(!0);
10644
+ }), b(!0);
10643
10645
  return;
10644
10646
  }
10645
10647
  r(!0);
10646
10648
  }, [
10647
- v,
10649
+ C,
10648
10650
  m,
10649
10651
  M,
10650
- E,
10652
+ k,
10651
10653
  T,
10652
10654
  w,
10653
10655
  e?.locale,
@@ -10655,20 +10657,20 @@ const Oh = (e, t, n) => {
10655
10657
  e.titles,
10656
10658
  g
10657
10659
  ]), I = A(() => {
10658
- r(!1), C(!0);
10660
+ r(!1), b(!0);
10659
10661
  }, []);
10660
10662
  return R(() => {
10661
10663
  if (f) {
10662
- const { title: k, description: O } = at(
10664
+ const { title: E, description: O } = at(
10663
10665
  ve.METADATA_PER_SERIES,
10664
10666
  e.titles
10665
10667
  );
10666
- a(k), o(O);
10668
+ a(E), o(O);
10667
10669
  }
10668
10670
  }, [e.titles, f]), R(() => {
10669
10671
  if (f) {
10670
- const k = h?.lastDisplayedElement === ve.METADATA_PER_SERIES && e.node.rowIndex === 0;
10671
- l(k), k && setTimeout(() => {
10672
+ const E = h?.lastDisplayedElement === ve.METADATA_PER_SERIES && e.node.rowIndex === 0;
10673
+ l(E), E && setTimeout(() => {
10672
10674
  s?.current?.scrollIntoView({
10673
10675
  block: "end",
10674
10676
  behavior: "smooth"
@@ -10679,7 +10681,7 @@ const Oh = (e, t, n) => {
10679
10681
  h?.lastDisplayedElement,
10680
10682
  e.node.rowIndex,
10681
10683
  f
10682
- ]), /* @__PURE__ */ D(ue, { children: [
10684
+ ]), /* @__PURE__ */ D(ce, { children: [
10683
10685
  /* @__PURE__ */ u("div", { ref: s, children: /* @__PURE__ */ u(
10684
10686
  Qe,
10685
10687
  {
@@ -10705,7 +10707,7 @@ const Oh = (e, t, n) => {
10705
10707
  titles: e.titles,
10706
10708
  locale: e?.locale,
10707
10709
  metadata: M,
10708
- metadataDescription: e?.metadataSettings?.isMetadataDescription ? E : [],
10710
+ metadataDescription: e?.metadataSettings?.isMetadataDescription ? k : [],
10709
10711
  isOpenMetadata: n,
10710
10712
  onCloseMetadata: I
10711
10713
  }
@@ -10714,8 +10716,8 @@ const Oh = (e, t, n) => {
10714
10716
  }, Mo = (e) => {
10715
10717
  const t = "observation-metadata-side-panel", [n, r] = S(!1), { isOpenedAdvancedView: s } = Ve(), i = vt(), { isMetadataInSidePanel: a } = Pe(), d = e?.data?.dataset?.urn, o = Pn(e?.context, d), c = K(() => {
10716
10718
  if (e.structuresMap) {
10717
- const C = e?.data?.dataset?.urn;
10718
- return C != null ? e.structuresMap.get(C) : void 0;
10719
+ const b = e?.data?.dataset?.urn;
10720
+ return b != null ? e.structuresMap.get(b) : void 0;
10719
10721
  }
10720
10722
  return e.dataSetData;
10721
10723
  }, [e.structuresMap, e.data, e.dataSetData]), l = K(
@@ -10761,17 +10763,17 @@ const Oh = (e, t, n) => {
10761
10763
  ),
10762
10764
  [e, c]
10763
10765
  ), g = K(() => {
10764
- const C = c?.dataflows?.[0], y = Bt(
10765
- Vt(C),
10766
+ const b = c?.dataflows?.[0], y = Bt(
10767
+ Vt(b),
10766
10768
  e?.locale
10767
10769
  );
10768
10770
  return zt(
10769
- C,
10771
+ b,
10770
10772
  y,
10771
10773
  e?.locale,
10772
10774
  e?.titles
10773
10775
  );
10774
- }, [c, e?.locale, e?.titles]), v = A(() => {
10776
+ }, [c, e?.locale, e?.titles]), C = A(() => {
10775
10777
  if (a && i) {
10776
10778
  i.openPanel({
10777
10779
  id: t,
@@ -10807,7 +10809,7 @@ const Oh = (e, t, n) => {
10807
10809
  ]), p = A(() => {
10808
10810
  r(!1);
10809
10811
  }, []);
10810
- return /* @__PURE__ */ D(ue, { children: [
10812
+ return /* @__PURE__ */ D(ce, { children: [
10811
10813
  /* @__PURE__ */ D("div", { className: "relative size-full p-2 text-end", children: [
10812
10814
  e?.valueFormatted || e?.value,
10813
10815
  h?.length > 0 && /* @__PURE__ */ u(
@@ -10815,7 +10817,7 @@ const Oh = (e, t, n) => {
10815
10817
  {
10816
10818
  className: "metadata-indicator",
10817
10819
  title: e.titles?.metadata || "View details",
10818
- onClick: v
10820
+ onClick: C
10819
10821
  }
10820
10822
  )
10821
10823
  ] }),
@@ -10852,7 +10854,7 @@ const Oh = (e, t, n) => {
10852
10854
  showLimitMessage: a,
10853
10855
  onApiReady: d
10854
10856
  }) => {
10855
- const [o, c] = S(!1), [l, h] = S([]), [f, m] = S(), [g, v] = S(400), p = pe(null), [C, y] = S(""), [w, b] = S(""), [N, M] = S(!1), { isShowOnboarding: E, onboardingFileSchema: T, setOnboardingFileSchema: G } = We();
10857
+ const [o, c] = S(!1), [l, h] = S([]), [f, m] = S(), [g, C] = S(400), p = pe(null), [b, y] = S(""), [w, v] = S(""), [N, M] = S(!1), { isShowOnboarding: k, onboardingFileSchema: T, setOnboardingFileSchema: G } = We();
10856
10858
  R(() => {
10857
10859
  if (e.grid_data == null)
10858
10860
  c(!0);
@@ -10861,16 +10863,16 @@ const Oh = (e, t, n) => {
10861
10863
  h(e.grid_data.data), m(O), c(!1);
10862
10864
  }
10863
10865
  }, [e.grid_data, n]), R(() => {
10864
- l ? (v(xr(l.length)), a?.(l.length >= Dt)) : a?.(!1);
10866
+ l ? (C(xr(l.length)), a?.(l.length >= Dt)) : a?.(!1);
10865
10867
  }, [l, a]), R(() => {
10866
- if (E) {
10868
+ if (k) {
10867
10869
  const { title: O, description: V } = at(
10868
10870
  ve.DATA_GRID,
10869
10871
  s
10870
10872
  );
10871
- y(O), b(V);
10873
+ y(O), v(V);
10872
10874
  }
10873
- }, [s, E]), R(() => {
10875
+ }, [s, k]), R(() => {
10874
10876
  T && !T?.infoElements?.dataGrid && G?.({
10875
10877
  ...T,
10876
10878
  infoElements: {
@@ -10880,7 +10882,7 @@ const Oh = (e, t, n) => {
10880
10882
  lastDisplayedElement: ve.DATA_GRID
10881
10883
  });
10882
10884
  }, [T, G]), R(() => {
10883
- if (E) {
10885
+ if (k) {
10884
10886
  const O = T?.lastDisplayedElement === ve.DATA_GRID;
10885
10887
  M(O), !o && !t && O && setTimeout(() => {
10886
10888
  p?.current?.scrollIntoView({
@@ -10891,7 +10893,7 @@ const Oh = (e, t, n) => {
10891
10893
  }
10892
10894
  }, [
10893
10895
  T?.lastDisplayedElement,
10894
- E,
10896
+ k,
10895
10897
  t,
10896
10898
  o
10897
10899
  ]);
@@ -10900,7 +10902,7 @@ const Oh = (e, t, n) => {
10900
10902
  d?.(O.api);
10901
10903
  },
10902
10904
  [d]
10903
- ), k = K(
10905
+ ), E = K(
10904
10906
  () => /* @__PURE__ */ u(
10905
10907
  wr,
10906
10908
  {
@@ -10930,14 +10932,14 @@ const Oh = (e, t, n) => {
10930
10932
  ref: p,
10931
10933
  fixHeight: r,
10932
10934
  gridHeight: g,
10933
- children: k
10935
+ children: E
10934
10936
  }
10935
10937
  ),
10936
10938
  N && /* @__PURE__ */ u(
10937
10939
  ot,
10938
10940
  {
10939
10941
  reference: p,
10940
- title: C,
10942
+ title: b,
10941
10943
  description: w,
10942
10944
  supressReferenceClick: !0
10943
10945
  }
@@ -10969,7 +10971,7 @@ const Oh = (e, t, n) => {
10969
10971
  });
10970
10972
  }
10971
10973
  }, [m?.lastDisplayedElement, g]);
10972
- const v = t > 0 ? e / t * 100 : 0, p = t > 0 ? Math.min(df * t, cf) : 0, C = t > 0 ? Math.max(p / t, uf) : 0;
10974
+ const C = t > 0 ? e / t * 100 : 0, p = t > 0 ? Math.min(df * t, cf) : 0, b = t > 0 ? Math.max(p / t, uf) : 0;
10973
10975
  return /* @__PURE__ */ D("div", { className: "flex w-full flex-row items-center justify-center gap-2", children: [
10974
10976
  /* @__PURE__ */ u(
10975
10977
  "div",
@@ -10995,8 +10997,8 @@ const Oh = (e, t, n) => {
10995
10997
  {
10996
10998
  className: "absolute h-full rounded-full bg-primary",
10997
10999
  style: {
10998
- left: `${v}%`,
10999
- width: `${C}px`
11000
+ left: `${C}%`,
11001
+ width: `${b}px`
11000
11002
  }
11001
11003
  }
11002
11004
  )
@@ -11043,7 +11045,7 @@ const Oh = (e, t, n) => {
11043
11045
  blockPointerEvents: !0
11044
11046
  })
11045
11047
  }), { getReferenceProps: c, getFloatingProps: l } = Wi([o]);
11046
- return /* @__PURE__ */ D(ue, { children: [
11048
+ return /* @__PURE__ */ D(ce, { children: [
11047
11049
  /* @__PURE__ */ u(
11048
11050
  "div",
11049
11051
  {
@@ -11120,16 +11122,16 @@ const gf = ({ option: e, style: t }) => {
11120
11122
  a.getModel()?.getComponent("legend")?.getData() || []
11121
11123
  );
11122
11124
  let m = 0;
11123
- f.forEach((C) => {
11124
- const y = C.option.name || "";
11125
+ f.forEach((b) => {
11126
+ const y = b.option.name || "";
11125
11127
  m += mf(a, y, c);
11126
11128
  });
11127
- const v = Math.max(1, Math.ceil(m / o)) * (+l + +h + 6), p = 20;
11128
- s((C) => ({
11129
- ...C,
11129
+ const C = Math.max(1, Math.ceil(m / o)) * (+l + +h + 6), p = 20;
11130
+ s((b) => ({
11131
+ ...b,
11130
11132
  grid: {
11131
- ...C.grid || {},
11132
- bottom: v + p
11133
+ ...b.grid || {},
11134
+ bottom: C + p
11133
11135
  }
11134
11136
  }));
11135
11137
  }, [e.legend]);
@@ -11161,22 +11163,22 @@ const gf = ({ option: e, style: t }) => {
11161
11163
  }) => {
11162
11164
  const [a, d] = S(!0), [o, c] = S([]), [l, h] = S(0), [f, m] = S(
11163
11165
  void 0
11164
- ), [g, v] = S(), { onboardingFileSchema: p, isShowOnboarding: C, setOnboardingFileSchema: y } = We(), w = pe(null);
11166
+ ), [g, C] = S(), { onboardingFileSchema: p, isShowOnboarding: b, setOnboardingFileSchema: y } = We(), w = pe(null);
11165
11167
  R(() => {
11166
11168
  d(e.charting_data == null);
11167
- const M = e.charting_data?.groups ?? [], E = e.charting_data?.units ?? [];
11169
+ const M = e.charting_data?.groups ?? [], k = e.charting_data?.units ?? [];
11168
11170
  c(
11169
11171
  M.length > 0 ? M.flatMap(
11170
11172
  (T) => T.units.map((G) => ({ unit: G, groupTitle: T.title }))
11171
- ) : E.map((T) => ({ unit: T }))
11173
+ ) : k.map((T) => ({ unit: T }))
11172
11174
  );
11173
11175
  }, [e.charting_data]), R(() => {
11174
- const M = o.length > l, E = M ? o[l] : o[0];
11176
+ const M = o.length > l, k = M ? o[l] : o[0];
11175
11177
  m(
11176
- !a && E != null ? E.unit : void 0
11177
- ), v(E?.groupTitle), M || h(0);
11178
+ !a && k != null ? k.unit : void 0
11179
+ ), C(k?.groupTitle), M || h(0);
11178
11180
  }, [a, o, l]), R(() => {
11179
- p && C && !a && (ru(p) && (y?.(
11181
+ p && b && !a && (ru(p) && (y?.(
11180
11182
  nu(p)
11181
11183
  ), w?.current?.scrollIntoView({
11182
11184
  block: "center",
@@ -11188,14 +11190,14 @@ const gf = ({ option: e, style: t }) => {
11188
11190
  a,
11189
11191
  y,
11190
11192
  p,
11191
- C
11193
+ b
11192
11194
  ]);
11193
- const b = A(() => {
11195
+ const v = A(() => {
11194
11196
  h((M) => Math.min(M + 1, o.length - 1));
11195
11197
  }, [o.length]), N = A(() => {
11196
11198
  h((M) => Math.max(M - 1, 0));
11197
11199
  }, []);
11198
- return a || n ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ u("div", { className: "chart-attachment size-full", ref: w, children: e.charting_data && /* @__PURE__ */ u("div", { className: "flex size-full flex-col gap-4", children: o.length == 0 || f == null ? /* @__PURE__ */ u("h4", { className: "ml-1", children: i?.chartInfo || "No data" }) : /* @__PURE__ */ D(ue, { children: [
11200
+ return a || n ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ u("div", { className: "chart-attachment size-full", ref: w, children: e.charting_data && /* @__PURE__ */ u("div", { className: "flex size-full flex-col gap-4", children: o.length == 0 || f == null ? /* @__PURE__ */ u("h4", { className: "ml-1", children: i?.chartInfo || "No data" }) : /* @__PURE__ */ D(ce, { children: [
11199
11201
  /* @__PURE__ */ D("div", { className: "flex flex-col gap-1", children: [
11200
11202
  /* @__PURE__ */ D("h3", { className: "chart-attachment-title", children: [
11201
11203
  i?.chart || "Chart",
@@ -11247,7 +11249,7 @@ const gf = ({ option: e, style: t }) => {
11247
11249
  currentIndex: l,
11248
11250
  totalCount: o.length,
11249
11251
  titles: i,
11250
- onNext: b,
11252
+ onNext: v,
11251
11253
  onPrev: N
11252
11254
  }
11253
11255
  )
@@ -11395,31 +11397,31 @@ function Nf({
11395
11397
  children: s
11396
11398
  }) {
11397
11399
  const { gridApi: i, onGridApiReady: a, initialColumnsState: d } = Mf({ currentUrn: e }), [o, c] = S(/* @__PURE__ */ new Map()), l = A(
11398
- (v, p, C) => {
11400
+ (C, p, b) => {
11399
11401
  c((y) => {
11400
- const w = new Map(y), b = new Map(w.get(v) ?? []), N = b.get(p) ?? {
11402
+ const w = new Map(y), v = new Map(w.get(C) ?? []), N = v.get(p) ?? {
11401
11403
  order: [],
11402
11404
  hidden: /* @__PURE__ */ new Set()
11403
11405
  };
11404
- return b.set(p, C(N)), w.set(v, b), w;
11406
+ return v.set(p, b(N)), w.set(C, v), w;
11405
11407
  }), i?.refreshCells({ columns: [p] });
11406
11408
  },
11407
11409
  [i]
11408
11410
  ), h = A(
11409
- (v, p, C) => {
11410
- l(v, p, (y) => ({
11411
+ (C, p, b) => {
11412
+ l(C, p, (y) => ({
11411
11413
  ...y,
11412
- order: C
11414
+ order: b
11413
11415
  }));
11414
11416
  },
11415
11417
  [l]
11416
11418
  ), f = A(() => {
11417
11419
  c(/* @__PURE__ */ new Map());
11418
11420
  }, []), m = A(
11419
- (v, p, C, y) => {
11420
- l(v, p, (w) => {
11421
- const b = new Set(w.hidden);
11422
- return y ? b.add(C) : b.delete(C), { ...w, hidden: b };
11421
+ (C, p, b, y) => {
11422
+ l(C, p, (w) => {
11423
+ const v = new Set(w.hidden);
11424
+ return y ? v.add(b) : v.delete(b), { ...w, hidden: v };
11423
11425
  });
11424
11426
  },
11425
11427
  [l]
@@ -11724,10 +11726,10 @@ const Gf = "merged-dimension-metadata-side-panel", Uf = (e) => {
11724
11726
  const { isOpenedAdvancedView: t } = Ve(), n = vt(), { isMetadataInSidePanel: r } = Pe(), s = Tf(), i = e?.data?.dataset?.urn, a = Pn(e?.context, i), d = i != null ? e.structuresMap.get(i) : void 0, o = i != null ? e.datasetDimensionsSchemesMap.get(i) : void 0, c = s?.dimensionCustomization, l = K(() => {
11725
11727
  if (!d || !o || i == null)
11726
11728
  return e.valueFormatted ?? e.value;
11727
- const v = c?.get(i)?.get(e.colId);
11729
+ const C = c?.get(i)?.get(e.colId);
11728
11730
  return Lo(
11729
11731
  vi(e.colId, o),
11730
- v
11732
+ C
11731
11733
  ).map((y) => $t(d, y, e.data, e.locale)).filter(Boolean).join(Eo);
11732
11734
  }, [
11733
11735
  c,
@@ -11741,21 +11743,21 @@ const Gf = "merged-dimension-metadata-side-panel", Uf = (e) => {
11741
11743
  e.locale
11742
11744
  ]), h = K(() => {
11743
11745
  if (!d || !o) return [];
11744
- const v = vi(e.colId, o), p = Tn(d), C = v.filter((y) => e.data[y] != null).map((y) => ({ name: y, value: String(e.data[y]) }));
11746
+ const C = vi(e.colId, o), p = Tn(d), b = C.filter((y) => e.data[y] != null).map((y) => ({ name: y, value: String(e.data[y]) }));
11745
11747
  return _t(
11746
- C,
11748
+ b,
11747
11749
  p,
11748
11750
  e.locale
11749
11751
  );
11750
11752
  }, [d, o, e.colId, e.data, e.locale]), f = K(() => {
11751
- const v = d?.dataflows?.[0];
11752
- if (!v) return;
11753
+ const C = d?.dataflows?.[0];
11754
+ if (!C) return;
11753
11755
  const p = Bt(
11754
- Vt(v),
11756
+ Vt(C),
11755
11757
  e.locale
11756
11758
  );
11757
11759
  return zt(
11758
- v,
11760
+ C,
11759
11761
  p,
11760
11762
  e.locale,
11761
11763
  e.titles
@@ -11858,7 +11860,7 @@ const Gf = "merged-dimension-metadata-side-panel", Uf = (e) => {
11858
11860
  showLimitMessage: a,
11859
11861
  onApiReady: d
11860
11862
  }) => {
11861
- const [o, c] = S(!1), [l, h] = S([]), [f, m] = S(), [g, v] = S(400);
11863
+ const [o, c] = S(!1), [l, h] = S([]), [f, m] = S(), [g, C] = S(400);
11862
11864
  R(() => {
11863
11865
  if (e.gridContent == null)
11864
11866
  c(!0);
@@ -11867,14 +11869,14 @@ const Gf = "merged-dimension-metadata-side-panel", Uf = (e) => {
11867
11869
  h(e.gridContent.data), m(y), c(!1);
11868
11870
  }
11869
11871
  }, [e.gridContent, n]), R(() => {
11870
- l ? (v(xr(l.length)), a?.(l.length >= Dt)) : a?.(!1);
11872
+ l ? (C(xr(l.length)), a?.(l.length >= Dt)) : a?.(!1);
11871
11873
  }, [l, a]);
11872
11874
  const p = A(
11873
11875
  (y) => {
11874
11876
  d?.(y.api);
11875
11877
  },
11876
11878
  [d]
11877
- ), C = K(
11879
+ ), b = K(
11878
11880
  () => /* @__PURE__ */ u(
11879
11881
  wr,
11880
11882
  {
@@ -11899,7 +11901,7 @@ const Gf = "merged-dimension-metadata-side-panel", Uf = (e) => {
11899
11901
  ),
11900
11902
  [l, f, p, s, i]
11901
11903
  );
11902
- return o || t ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ u("div", { className: "size-full", children: /* @__PURE__ */ u(No, { fixHeight: r, gridHeight: g, children: C }) });
11904
+ return o || t ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ u("div", { className: "size-full", children: /* @__PURE__ */ u(No, { fixHeight: r, gridHeight: g, children: b }) });
11903
11905
  }, Wf = ({
11904
11906
  selectedAttachment: e,
11905
11907
  actions: t,
@@ -12001,23 +12003,23 @@ const Oo = ({
12001
12003
  initialSelectedDatasetUrn: f,
12002
12004
  isDataLoading: m,
12003
12005
  isDataSetAttachments: g,
12004
- locale: v,
12006
+ locale: C,
12005
12007
  dimensions: p,
12006
- filters: C,
12008
+ filters: b,
12007
12009
  selectDataset: y,
12008
12010
  onAdvancedViewOpen: w,
12009
- limitMessages: b,
12011
+ limitMessages: v,
12010
12012
  attachmentsConfig: N,
12011
12013
  isTableSettingsOpen: M,
12012
- onTableSettingsOpen: E,
12014
+ onTableSettingsOpen: k,
12013
12015
  onTableSettingsClose: T,
12014
12016
  onGridApiReady: G
12015
12017
  }) => {
12016
- const [I, k] = S(0), [O, V] = S(null), { isOpenedAdvancedView: L, setIsOpenedAdvancedView: P } = Ve(), [_, H] = S(ae.Closed), [F, U] = S(!1), [J, q] = S(), [Z, oe] = S(), [he, $] = S(!1), Q = {
12018
+ const [I, E] = S(0), [O, V] = S(null), { isOpenedAdvancedView: L, setIsOpenedAdvancedView: P } = Ve(), [_, H] = S(ae.Closed), [F, U] = S(!1), [J, q] = S(), [Z, oe] = S(), [he, $] = S(!1), Q = {
12017
12019
  downloadDataSet: t.downloadDataSet,
12018
12020
  getConstraints: t.getConstraints
12019
12021
  }, ee = gn.DATA_IN_TABLE, te = (Oe) => {
12020
- k(Oe);
12022
+ E(Oe);
12021
12023
  }, le = A(() => {
12022
12024
  w?.(), P(!0), t.updateCurrentDataQuery(o || c?.[0]), t.updateDataQueries(c), t.updateDatasets(h);
12023
12025
  }, [
@@ -12041,7 +12043,7 @@ const Oo = ({
12041
12043
  H(ae.Closed);
12042
12044
  }, [H]), Le = N?.isExternaLinkIncludeFilters, Te = cr(
12043
12045
  Le,
12044
- C,
12046
+ b,
12045
12047
  o || c?.[0],
12046
12048
  p
12047
12049
  ), Ie = K(() => c?.length ? new Map(
@@ -12064,7 +12066,7 @@ const Oo = ({
12064
12066
  dataQuery: c?.find((Ae) => Ae.urn === De)
12065
12067
  }));
12066
12068
  }, [O, c]);
12067
- return !e || e.length === 0 ? null : /* @__PURE__ */ u(ue, { children: L && !a ? /* @__PURE__ */ u(
12069
+ return !e || e.length === 0 ? null : /* @__PURE__ */ u(ce, { children: L && !a ? /* @__PURE__ */ u(
12068
12070
  mu,
12069
12071
  {
12070
12072
  icon: r?.advanceViewIcon,
@@ -12079,7 +12081,7 @@ const Oo = ({
12079
12081
  "flex flex-col pb-1"
12080
12082
  ),
12081
12083
  children: [
12082
- !L && F ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ue, { children: [
12084
+ !L && F ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ce, { children: [
12083
12085
  i && !L && /* @__PURE__ */ u(
12084
12086
  fu,
12085
12087
  {
@@ -12096,7 +12098,7 @@ const Oo = ({
12096
12098
  {
12097
12099
  datasets: h,
12098
12100
  initialSelectedDatasetUrn: f,
12099
- locale: v,
12101
+ locale: C,
12100
12102
  titles: n,
12101
12103
  isHideAdvancedViewButton: !d,
12102
12104
  openAdvancedViewIcon: s?.openAdvancedViewIcon,
@@ -12107,7 +12109,7 @@ const Oo = ({
12107
12109
  he && /* @__PURE__ */ u(
12108
12110
  Ai,
12109
12111
  {
12110
- limitMessages: b,
12112
+ limitMessages: v,
12111
12113
  showAdvancedViewButton: !!O && ou(O) && d,
12112
12114
  onAdvancedViewClick: le,
12113
12115
  query: Te
@@ -12131,12 +12133,12 @@ const Oo = ({
12131
12133
  titles: n,
12132
12134
  externalLink: Te,
12133
12135
  isExternalLinkIncludeFilters: Le,
12134
- limitMessages: b,
12136
+ limitMessages: v,
12135
12137
  onSelectedAttachmentChange: te,
12136
12138
  onDownloadClick: () => H(ae.Opened),
12137
12139
  showAdvancedView: d,
12138
12140
  isTableSettingsOpen: M,
12139
- onTableSettingsOpen: E
12141
+ onTableSettingsOpen: k
12140
12142
  }
12141
12143
  ),
12142
12144
  O != null && /* @__PURE__ */ u(
@@ -12158,7 +12160,7 @@ const Oo = ({
12158
12160
  }
12159
12161
  )
12160
12162
  ] }),
12161
- /* @__PURE__ */ D(ue, { children: [
12163
+ /* @__PURE__ */ D(ce, { children: [
12162
12164
  _ === ae.Opened && /* @__PURE__ */ u(
12163
12165
  yu,
12164
12166
  {
@@ -12166,10 +12168,10 @@ const Oo = ({
12166
12168
  onCloseModal: fe,
12167
12169
  dataQuery: o,
12168
12170
  datasetName: O?.title || "",
12169
- locale: v,
12171
+ locale: C,
12170
12172
  type: ee,
12171
12173
  dimensions: p,
12172
- filters: C,
12174
+ filters: b,
12173
12175
  urn: o?.urn,
12174
12176
  datasetIcon: s?.datasetIcon,
12175
12177
  isDisplayDatasetIcon: s?.isDisplayDatasetIcon,
@@ -12178,7 +12180,7 @@ const Oo = ({
12178
12180
  setDownloadAlertDetails: oe,
12179
12181
  collapsible: s?.downloadCollapsible,
12180
12182
  downloadDatasets: Re,
12181
- limitMessages: b,
12183
+ limitMessages: v,
12182
12184
  showLimitMessage: he,
12183
12185
  externalLink: Te
12184
12186
  }
@@ -12294,23 +12296,23 @@ function Qf({
12294
12296
  d((w) => w + 1);
12295
12297
  }, []);
12296
12298
  xo(e, l);
12297
- const h = K(() => !e || !e.getColumnState() ? [] : qf(e, n), [e, n, a]), f = K(() => (r ? h.map((b) => b.type === "item" ? r(b) : b) : h).map(
12298
- (b) => b.type === "item" && b.items?.length ? { ...b, isExpanded: o.has(b.id) } : b
12299
+ const h = K(() => !e || !e.getColumnState() ? [] : qf(e, n), [e, n, a]), f = K(() => (r ? h.map((v) => v.type === "item" ? r(v) : v) : h).map(
12300
+ (v) => v.type === "item" && v.items?.length ? { ...v, isExpanded: o.has(v.id) } : v
12299
12301
  ), [h, r, o]), m = K(
12300
12302
  () => new Set(h.map((w) => w.id)),
12301
12303
  [h]
12302
- ), g = K(() => il(f, t), [f, t]), v = A(
12304
+ ), g = K(() => il(f, t), [f, t]), C = A(
12303
12305
  (w) => {
12304
12306
  if (!e)
12305
12307
  return;
12306
12308
  if (wi(w.itemId) && i) {
12307
- const { urn: N, dimensionKey: M } = Jn(w.itemId), E = w.path[0];
12308
- i(N, E, M, !w.nextChecked);
12309
+ const { urn: N, dimensionKey: M } = Jn(w.itemId), k = w.path[0];
12310
+ i(N, k, M, !w.nextChecked);
12309
12311
  return;
12310
12312
  }
12311
- const b = Yn(f, w.path);
12312
- !b || !m.has(b.id) || (e.applyColumnState({
12313
- state: [{ colId: b.id, hide: !w.nextChecked }]
12313
+ const v = Yn(f, w.path);
12314
+ !v || !m.has(v.id) || (e.applyColumnState({
12315
+ state: [{ colId: v.id, hide: !w.nextChecked }]
12314
12316
  }), l());
12315
12317
  },
12316
12318
  [e, f, m, l, i]
@@ -12319,44 +12321,44 @@ function Qf({
12319
12321
  if (!e)
12320
12322
  return;
12321
12323
  if (wi(w.itemId) && i) {
12322
- const { urn: E, dimensionKey: T } = Jn(w.itemId), G = w.path[0], I = Yn(f, w.path);
12324
+ const { urn: k, dimensionKey: T } = Jn(w.itemId), G = w.path[0], I = Yn(f, w.path);
12323
12325
  I?.type === "item" && i(
12324
- E,
12326
+ k,
12325
12327
  G,
12326
12328
  T,
12327
12329
  I.isChecked ?? !0
12328
12330
  );
12329
12331
  return;
12330
12332
  }
12331
- const b = Yn(f, w.path);
12332
- if (!b || !m.has(b.id))
12333
+ const v = Yn(f, w.path);
12334
+ if (!v || !m.has(v.id))
12333
12335
  return;
12334
- const M = !(e.getColumnState().find((E) => E.colId === b.id)?.hide ?? !1);
12336
+ const M = !(e.getColumnState().find((k) => k.colId === v.id)?.hide ?? !1);
12335
12337
  e.applyColumnState({
12336
- state: [{ colId: b.id, hide: M }]
12338
+ state: [{ colId: v.id, hide: M }]
12337
12339
  }), l();
12338
12340
  },
12339
12341
  [e, f, m, l, i]
12340
- ), C = A((w) => {
12341
- const b = w.path[w.path.length - 1];
12342
+ ), b = A((w) => {
12343
+ const v = w.path[w.path.length - 1];
12342
12344
  c((N) => {
12343
12345
  const M = new Set(N);
12344
- return w.nextExpanded ? M.add(b) : M.delete(b), M;
12346
+ return w.nextExpanded ? M.add(v) : M.delete(v), M;
12345
12347
  });
12346
12348
  }, []), y = A(
12347
12349
  (w) => {
12348
12350
  if (!e)
12349
12351
  return;
12350
- const b = e.getColumnState().map((T) => T.colId), N = new Set(h.map((T) => T.id)), M = ur(
12352
+ const v = e.getColumnState().map((T) => T.colId), N = new Set(h.map((T) => T.id)), M = ur(
12351
12353
  w,
12352
12354
  (T) => m.has(T.id)
12353
- ), E = Zf(
12354
- b,
12355
+ ), k = Zf(
12356
+ v,
12355
12357
  M,
12356
12358
  N
12357
12359
  );
12358
12360
  if (e.applyColumnState({
12359
- state: E.map((T) => ({ colId: T })),
12361
+ state: k.map((T) => ({ colId: T })),
12360
12362
  applyOrder: !0
12361
12363
  }), l(), s) {
12362
12364
  for (const T of w)
@@ -12367,10 +12369,10 @@ function Qf({
12367
12369
  (V) => V.type === "item"
12368
12370
  );
12369
12371
  if (I.length <= 1) continue;
12370
- const k = G.id, O = I.map(
12372
+ const E = G.id, O = I.map(
12371
12373
  (V) => Jn(V.id).dimensionKey
12372
12374
  );
12373
- s(k, T.id, O);
12375
+ s(E, T.id, O);
12374
12376
  }
12375
12377
  }
12376
12378
  },
@@ -12379,8 +12381,8 @@ function Qf({
12379
12381
  return {
12380
12382
  items: f,
12381
12383
  visibleItems: g,
12382
- handleToggleChecked: v,
12383
- handleToggleExpanded: C,
12384
+ handleToggleChecked: C,
12385
+ handleToggleExpanded: b,
12384
12386
  handleItemClick: p,
12385
12387
  handleItemsChange: y
12386
12388
  };
@@ -12394,8 +12396,8 @@ function em({
12394
12396
  onSubItemVisibilityChange: i
12395
12397
  }) {
12396
12398
  const [a, d] = S(""), o = A(
12397
- (C) => {
12398
- d(C);
12399
+ (b) => {
12400
+ d(b);
12399
12401
  },
12400
12402
  [d]
12401
12403
  ), c = A(
@@ -12405,8 +12407,8 @@ function em({
12405
12407
  () => /* @__PURE__ */ u("button", { type: "button", onClick: c, children: /* @__PURE__ */ u(Ii, { className: "size-4 text-neutrals-1000" }) }),
12406
12408
  [c]
12407
12409
  ), h = A(
12408
- (C) => {
12409
- const y = n ? n(C) : C;
12410
+ (b) => {
12411
+ const y = n ? n(b) : b;
12410
12412
  return Xf(y);
12411
12413
  },
12412
12414
  [n]
@@ -12414,7 +12416,7 @@ function em({
12414
12416
  visibleItems: f,
12415
12417
  handleItemsChange: m,
12416
12418
  handleToggleChecked: g,
12417
- handleToggleExpanded: v,
12419
+ handleToggleExpanded: C,
12418
12420
  handleItemClick: p
12419
12421
  } = Qf({
12420
12422
  api: e,
@@ -12444,7 +12446,7 @@ function em({
12444
12446
  items: f,
12445
12447
  onItemsChange: m,
12446
12448
  onToggleChecked: g,
12447
- onToggleExpanded: v,
12449
+ onToggleExpanded: C,
12448
12450
  onItemClick: p,
12449
12451
  renderLabel: r
12450
12452
  }
@@ -12649,10 +12651,10 @@ const Ci = "table-settings-side-panel", im = ({
12649
12651
  setConversation: f,
12650
12652
  updateConversation: m,
12651
12653
  updateDataQueries: g,
12652
- limitMessages: v,
12654
+ limitMessages: C,
12653
12655
  filterIconClassName: p
12654
12656
  }) => {
12655
- const C = Fr(), [y, w] = S(ae.Closed), [b, N] = S([]), [M, E] = S([]), [T, G] = S(), [I, k] = S(
12657
+ const b = Fr(), [y, w] = S(ae.Closed), [v, N] = S([]), [M, k] = S([]), [T, G] = S(), [I, E] = S(
12656
12658
  []
12657
12659
  ), [O, V] = S(void 0), L = pe(
12658
12660
  t?.constraintsMap
@@ -12688,9 +12690,9 @@ const Ci = "table-settings-side-panel", im = ({
12688
12690
  getAvailableHierarchies: e?.getAvailableHierarchies,
12689
12691
  getHierarchy: e?.getHierarchy
12690
12692
  }), Ie = (x) => {
12691
- const j = x ? b.map(
12693
+ const j = x ? v.map(
12692
12694
  (Y) => Be(Y, x) ? x : Y
12693
- ) : b;
12695
+ ) : v;
12694
12696
  J(!0), N(Cn(j)), F?.(!0), Re(
12695
12697
  x?.isTimeDimension ? vn(j, x) : j,
12696
12698
  N,
@@ -12707,7 +12709,7 @@ const Ci = "table-settings-side-panel", im = ({
12707
12709
  x,
12708
12710
  L.current,
12709
12711
  !0,
12710
- C.map
12712
+ b.map
12711
12713
  );
12712
12714
  Promise.all(Xs(s, me, e)).then((Me) => {
12713
12715
  const qe = Qs(Me);
@@ -12716,7 +12718,7 @@ const Ci = "table-settings-side-panel", im = ({
12716
12718
  me,
12717
12719
  { ...t, constraintsMap: qe },
12718
12720
  a,
12719
- C.map
12721
+ b.map
12720
12722
  )
12721
12723
  ), re && le(
12722
12724
  re,
@@ -12729,7 +12731,7 @@ const Ci = "table-settings-side-panel", im = ({
12729
12731
  me,
12730
12732
  { ...t, constraintsMap: Me },
12731
12733
  a,
12732
- C.map
12734
+ b.map
12733
12735
  )
12734
12736
  );
12735
12737
  }).finally(() => {
@@ -12739,7 +12741,7 @@ const Ci = "table-settings-side-panel", im = ({
12739
12741
  [
12740
12742
  e,
12741
12743
  s,
12742
- C.map,
12744
+ b.map,
12743
12745
  Q,
12744
12746
  a,
12745
12747
  le,
@@ -12758,22 +12760,22 @@ const Ci = "table-settings-side-panel", im = ({
12758
12760
  x,
12759
12761
  s,
12760
12762
  t?.constraintsMap,
12761
- C.map
12763
+ b.map
12762
12764
  );
12763
12765
  F?.(!0), Re(
12764
12766
  j,
12765
- E,
12767
+ k,
12766
12768
  F
12767
12769
  );
12768
12770
  }, [
12769
12771
  s,
12770
- C.map,
12772
+ b.map,
12771
12773
  Re,
12772
12774
  oe,
12773
12775
  a,
12774
12776
  t
12775
12777
  ]), R(() => {
12776
- M?.length && k(En(M));
12778
+ M?.length && E(En(M));
12777
12779
  }, [M]), R(() => {
12778
12780
  N(
12779
12781
  (x) => vn(x, T)
@@ -12846,7 +12848,7 @@ const Ci = "table-settings-side-panel", im = ({
12846
12848
  x,
12847
12849
  j,
12848
12850
  a,
12849
- C.map
12851
+ b.map
12850
12852
  );
12851
12853
  L.current = j?.constraintsMap, G(
12852
12854
  (re) => Y?.find(
@@ -12854,7 +12856,7 @@ const Ci = "table-settings-side-panel", im = ({
12854
12856
  ) || re
12855
12857
  ), N(Y), J(!1);
12856
12858
  },
12857
- [C.map, a]
12859
+ [b.map, a]
12858
12860
  ), De = A(
12859
12861
  (x, j) => {
12860
12862
  J(!0), N(Cn(x));
@@ -12862,7 +12864,7 @@ const Ci = "table-settings-side-panel", im = ({
12862
12864
  x,
12863
12865
  L.current,
12864
12866
  !0,
12865
- C.map
12867
+ b.map
12866
12868
  ), re = L.current || t?.constraintsMap || /* @__PURE__ */ new Map();
12867
12869
  Promise.all(Xs(j, Y, e)).then((me) => {
12868
12870
  const Me = Qs(me), qe = new Map(re);
@@ -12881,7 +12883,7 @@ const Ci = "table-settings-side-panel", im = ({
12881
12883
  },
12882
12884
  [
12883
12885
  e,
12884
- C.map,
12886
+ b.map,
12885
12887
  t,
12886
12888
  ye
12887
12889
  ]
@@ -12889,24 +12891,24 @@ const Ci = "table-settings-side-panel", im = ({
12889
12891
  (x) => {
12890
12892
  const j = s?.find(
12891
12893
  (re) => re?.urn === x?.datasetUrn
12892
- ), Y = ya(b, x);
12894
+ ), Y = ya(v, x);
12893
12895
  De(
12894
12896
  Y,
12895
12897
  x?.datasetUrn ? j ? [j] : [] : s
12896
12898
  );
12897
12899
  },
12898
- [De, b, s]
12900
+ [De, v, s]
12899
12901
  ), Ae = A(() => {
12900
12902
  L.current = P, w(ae.Closed), Z(!0);
12901
12903
  }, [P]), ke = A(() => {
12902
- const x = Da(b);
12904
+ const x = Da(v);
12903
12905
  De(x, s);
12904
- }, [De, b, s]), Je = A(() => {
12906
+ }, [De, v, s]), Je = A(() => {
12905
12907
  const x = Zt(
12906
- b,
12908
+ v,
12907
12909
  L.current,
12908
12910
  !0,
12909
- C.map
12911
+ b.map
12910
12912
  ), j = Xt(
12911
12913
  x,
12912
12914
  {
@@ -12914,28 +12916,28 @@ const Ci = "table-settings-side-panel", im = ({
12914
12916
  constraintsMap: L.current
12915
12917
  },
12916
12918
  a,
12917
- C.map
12919
+ b.map
12918
12920
  ), Y = we(x);
12919
12921
  i?.(
12920
12922
  Y,
12921
12923
  L.current,
12922
12924
  s
12923
- ), E(j), w(ae.Closed), Z(!0), Mi(() => {
12925
+ ), k(j), w(ae.Closed), Z(!0), Mi(() => {
12924
12926
  Oe(
12925
12927
  Zt(
12926
- b,
12928
+ v,
12927
12929
  L.current,
12928
12930
  !0,
12929
- C.map
12931
+ b.map
12930
12932
  )
12931
12933
  );
12932
12934
  });
12933
12935
  }, [
12934
12936
  we,
12935
- b,
12937
+ v,
12936
12938
  t,
12937
12939
  a,
12938
- C.map,
12940
+ b.map,
12939
12941
  i,
12940
12942
  s,
12941
12943
  Oe
@@ -12954,11 +12956,11 @@ const Ci = "table-settings-side-panel", im = ({
12954
12956
  setModalState: w,
12955
12957
  titles: o,
12956
12958
  isModalClosed: q,
12957
- warningIcon: v?.warningIcon,
12959
+ warningIcon: C?.warningIcon,
12958
12960
  filterIconClassName: p
12959
12961
  }
12960
12962
  ),
12961
- /* @__PURE__ */ u(ue, { children: y === ae.Opened && /* @__PURE__ */ D(
12963
+ /* @__PURE__ */ u(ce, { children: y === ae.Opened && /* @__PURE__ */ D(
12962
12964
  Nt,
12963
12965
  {
12964
12966
  heading: o?.settings || "Settings",
@@ -12975,7 +12977,7 @@ const Ci = "table-settings-side-panel", im = ({
12975
12977
  locale: a,
12976
12978
  titles: o,
12977
12979
  timeRangeOptions: d,
12978
- filtersList: b,
12980
+ filtersList: v,
12979
12981
  selectedFilter: T,
12980
12982
  isDisableValues: U,
12981
12983
  modalProps: r,
@@ -13003,7 +13005,7 @@ const Ci = "table-settings-side-panel", im = ({
13003
13005
  onClearAllFilters: ke,
13004
13006
  modalProps: r,
13005
13007
  applyDisabled: H || U,
13006
- limitMessages: v
13008
+ limitMessages: C
13007
13009
  }
13008
13010
  )
13009
13011
  ]
@@ -13027,7 +13029,7 @@ const Ci = "table-settings-side-panel", im = ({
13027
13029
  filters: m,
13028
13030
  onFiltersChange: g
13029
13031
  }) => {
13030
- const v = {
13032
+ const C = {
13031
13033
  getConstraints: t.getConstraints,
13032
13034
  getAvailableHierarchies: e.actions?.getAvailableHierarchies,
13033
13035
  getHierarchy: e.actions?.getHierarchy
@@ -13044,7 +13046,7 @@ const Ci = "table-settings-side-panel", im = ({
13044
13046
  dataQueries: s,
13045
13047
  updateDataQueries: t?.updateDataQueries,
13046
13048
  locale: a,
13047
- actions: v,
13049
+ actions: C,
13048
13050
  dimensions: i,
13049
13051
  titles: l,
13050
13052
  ...e,
@@ -13058,7 +13060,7 @@ const Ci = "table-settings-side-panel", im = ({
13058
13060
  dataQueries: s,
13059
13061
  updateDataQueries: t?.updateDataQueries,
13060
13062
  locale: a,
13061
- actions: v,
13063
+ actions: C,
13062
13064
  dimensions: i,
13063
13065
  titles: l,
13064
13066
  ...e,
@@ -13103,10 +13105,10 @@ const Ci = "table-settings-side-panel", im = ({
13103
13105
  metadataButtonClassName: f,
13104
13106
  metadataIconClassName: m,
13105
13107
  infoSegmentContainerClassName: g,
13106
- infoSegmentHeaderClassName: v,
13108
+ infoSegmentHeaderClassName: C,
13107
13109
  nameAndMetadataContainerClassName: p
13108
13110
  }) => {
13109
- const C = "dataset-metadata-side-panel", [y, w] = S(""), [b, N] = S(!1), M = pe(null), [E, T] = S(""), [G, I] = S(""), [k, O] = S(!1), { onboardingFileSchema: V, isShowOnboarding: L } = We(), { isOpenedAdvancedView: P } = Ve(), _ = vt(), { isMetadataInSidePanel: H } = Pe(), [F, U] = S(!1), J = K(
13111
+ const b = "dataset-metadata-side-panel", [y, w] = S(""), [v, N] = S(!1), M = pe(null), [k, T] = S(""), [G, I] = S(""), [E, O] = S(!1), { onboardingFileSchema: V, isShowOnboarding: L } = We(), { isOpenedAdvancedView: P } = Ve(), _ = vt(), { isMetadataInSidePanel: H } = Pe(), [F, U] = S(!1), J = K(
13110
13112
  () => i?.isMetadataDescription ? oh(n, y, a, d) : [],
13111
13113
  [
13112
13114
  n,
@@ -13138,7 +13140,7 @@ const Ci = "table-settings-side-panel", im = ({
13138
13140
  ), oe = A(() => {
13139
13141
  if (H && _) {
13140
13142
  _.openPanel({
13141
- id: C,
13143
+ id: b,
13142
13144
  scope: P ? "advanced" : "conversation",
13143
13145
  title: "Dataset Metadata",
13144
13146
  bodyClassName: "overflow-hidden",
@@ -13197,7 +13199,7 @@ const Ci = "table-settings-side-panel", im = ({
13197
13199
  /* @__PURE__ */ D(
13198
13200
  "span",
13199
13201
  {
13200
- className: ct("text-neutral-800", v),
13202
+ className: ct("text-neutral-800", C),
13201
13203
  children: [
13202
13204
  Q,
13203
13205
  ":"
@@ -13249,7 +13251,7 @@ const Ci = "table-settings-side-panel", im = ({
13249
13251
  c && /* @__PURE__ */ u("a", { href: c, target: "_blank", rel: "noopener noreferrer", children: h || /* @__PURE__ */ u(mr, { className: "size-4 shrink-0 cursor-pointer text-primary" }) })
13250
13252
  ] }),
13251
13253
  /* @__PURE__ */ D("div", { className: "body-3 flex items-center gap-2", children: [
13252
- e && /* @__PURE__ */ D(ue, { children: [
13254
+ e && /* @__PURE__ */ D(ce, { children: [
13253
13255
  $(
13254
13256
  d?.agency ?? "Agency",
13255
13257
  n?.agencyID ?? ""
@@ -13268,24 +13270,24 @@ const Ci = "table-settings-side-panel", im = ({
13268
13270
  )
13269
13271
  ] })
13270
13272
  ] }),
13271
- k && /* @__PURE__ */ u(
13273
+ E && /* @__PURE__ */ u(
13272
13274
  ot,
13273
13275
  {
13274
13276
  reference: M,
13275
- title: E,
13277
+ title: k,
13276
13278
  description: G,
13277
13279
  onReferenceClick: oe,
13278
13280
  shouldCloseTooltip: F
13279
13281
  }
13280
13282
  ),
13281
- b && /* @__PURE__ */ u(
13283
+ v && /* @__PURE__ */ u(
13282
13284
  Ir,
13283
13285
  {
13284
13286
  titles: d,
13285
13287
  locale: a,
13286
13288
  metadata: q,
13287
13289
  metadataDescription: J,
13288
- isOpenMetadata: b,
13290
+ isOpenMetadata: v,
13289
13291
  onCloseMetadata: he
13290
13292
  }
13291
13293
  )
@@ -13299,11 +13301,11 @@ const Ci = "table-settings-side-panel", im = ({
13299
13301
  const { setIsOpenedAdvancedView: s } = Ve(), i = pe(null), [a, d] = S(""), [o, c] = S(""), [l, h] = S(!1), { onboardingFileSchema: f, isShowOnboarding: m } = We();
13300
13302
  return R(() => {
13301
13303
  if (m) {
13302
- const { title: g, description: v } = at(
13304
+ const { title: g, description: C } = at(
13303
13305
  ve.EXIT_ADVANCED_VIEW,
13304
13306
  e
13305
13307
  );
13306
- d(g), c(v);
13308
+ d(g), c(C);
13307
13309
  }
13308
13310
  }, [e, m]), R(() => {
13309
13311
  m && h(
@@ -13855,11 +13857,11 @@ const Bm = "Data Grid", jm = "Data", Wm = "Chart", $m = (e) => ({
13855
13857
  type: Fe.CROSS_DATASET_GRID
13856
13858
  });
13857
13859
  function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13858
- const [l, h] = S(), [f, m] = S(), [g, v] = S(), [p, C] = S(), [y, w] = S(
13860
+ const [l, h] = S(), [f, m] = S(), [g, C] = S(), [p, b] = S(), [y, w] = S(
13859
13861
  $m(a?.dataGrid)
13860
- ), [b, N] = S(
13862
+ ), [v, N] = S(
13861
13863
  Ho(a?.chart)
13862
- ), [M, E] = S([]), [T, G] = S([]), [I, k] = S([]), [O, V] = S(!1), [L, P] = S({
13864
+ ), [M, k] = S([]), [T, G] = S([]), [I, E] = S([]), [O, V] = S(!1), [L, P] = S({
13863
13865
  startPeriod: null,
13864
13866
  endPeriod: null
13865
13867
  }), { getConstraints: _, getDataSet: H, getDataSetData: F, putOnboardingFile: U } = e, J = A(
@@ -13867,7 +13869,7 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13867
13869
  if (!$)
13868
13870
  return;
13869
13871
  const Q = je($);
13870
- m($.dataflows?.[0] || void 0), C($ || void 0), G([
13872
+ m($.dataflows?.[0] || void 0), b($ || void 0), G([
13871
13873
  ...Q?.dimensions || [],
13872
13874
  ...Q?.timeDimensions || []
13873
13875
  ]);
@@ -13884,9 +13886,9 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13884
13886
  Ze($.urn, Q),
13885
13887
  () => _($.urn, Q)
13886
13888
  ))?.data?.dataConstraints || [];
13887
- v(te);
13889
+ C(te);
13888
13890
  } catch {
13889
- v([]);
13891
+ C([]);
13890
13892
  }
13891
13893
  },
13892
13894
  [_]
@@ -13909,7 +13911,7 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13909
13911
  Ze($.urn, { filterKey: te, timeFilter: le }),
13910
13912
  () => F($.urn, { filterKey: te, timeFilter: le })
13911
13913
  ).then((fe) => {
13912
- h(fe || void 0), k(tr(fe));
13914
+ h(fe || void 0), E(tr(fe));
13913
13915
  }).finally(() => V(!1));
13914
13916
  }
13915
13917
  },
@@ -13940,7 +13942,7 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13940
13942
  const oe = A(
13941
13943
  ($, Q, ee) => {
13942
13944
  try {
13943
- V(!0), v(Q);
13945
+ V(!0), C(Q);
13944
13946
  const te = ee?.find(
13945
13947
  (le) => le.id === St
13946
13948
  )?.timeRange;
@@ -13949,7 +13951,7 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13949
13951
  Ze(n?.urn || "", $),
13950
13952
  () => F(n?.urn || "", $)
13951
13953
  ).then((le) => {
13952
- h(le || void 0), k(tr(le));
13954
+ h(le || void 0), E(tr(le));
13953
13955
  }).finally(() => V(!1));
13954
13956
  } catch (te) {
13955
13957
  console.error("Error loading dataset data", te);
@@ -13998,7 +14000,7 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
13998
14000
  )
13999
14001
  }));
14000
14002
  }, [p, l, n, t, s]), R(() => {
14001
- d?.length && E(
14003
+ d?.length && k(
14002
14004
  Vo(
14003
14005
  d,
14004
14006
  n?.urn,
@@ -14007,8 +14009,8 @@ function Go(e, t, n, r, s, i, a, d, o, c = !1) {
14007
14009
  );
14008
14010
  }, [d, a, n]);
14009
14011
  const he = K(
14010
- () => [y, b, ...M],
14011
- [y, b, M]
14012
+ () => [y, v, ...M],
14013
+ [y, v, M]
14012
14014
  );
14013
14015
  return {
14014
14016
  dataMessage: l,
@@ -14263,18 +14265,18 @@ function ag(e, t, n, r, s, i, a, d, o, c, l) {
14263
14265
  };
14264
14266
  }
14265
14267
  function zo(e, t, n, r, s, i, a) {
14266
- const [d, o] = S(), c = ko(), [l, h] = S(), [f, m] = S(!1), [g, v] = S(
14268
+ const [d, o] = S(), c = ko(), [l, h] = S(), [f, m] = S(!1), [g, C] = S(
14267
14269
  Jm(c?.dataGrid)
14268
- ), [p, C] = S(Ho(c?.chart)), [y, w] = S([]), {
14269
- getConstraints: b,
14270
+ ), [p, b] = S(Ho(c?.chart)), [y, w] = S([]), {
14271
+ getConstraints: v,
14270
14272
  getDataSet: N,
14271
14273
  getDataSetData: M
14272
- } = e, E = A(
14274
+ } = e, k = A(
14273
14275
  async (V) => {
14274
14276
  try {
14275
14277
  const L = await Ym(
14276
14278
  V,
14277
- b
14279
+ v
14278
14280
  );
14279
14281
  o((P) => ({
14280
14282
  ...P,
@@ -14287,7 +14289,7 @@ function zo(e, t, n, r, s, i, a) {
14287
14289
  }));
14288
14290
  }
14289
14291
  },
14290
- [b]
14292
+ [v]
14291
14293
  ), T = A(
14292
14294
  async (V) => {
14293
14295
  const L = await qm(
@@ -14319,7 +14321,7 @@ function zo(e, t, n, r, s, i, a) {
14319
14321
  m(!0);
14320
14322
  try {
14321
14323
  I(L), await Promise.all([
14322
- E(L),
14324
+ k(L),
14323
14325
  T(L)
14324
14326
  ]);
14325
14327
  } catch (P) {
@@ -14331,7 +14333,7 @@ function zo(e, t, n, r, s, i, a) {
14331
14333
  n?.length && V(n);
14332
14334
  }, [
14333
14335
  n,
14334
- E,
14336
+ k,
14335
14337
  I,
14336
14338
  T
14337
14339
  ]), R(() => {
@@ -14344,7 +14346,7 @@ function zo(e, t, n, r, s, i, a) {
14344
14346
  );
14345
14347
  }, [a, c]), R(() => {
14346
14348
  const { structuresMap: V, dataMessagesMap: L, constraintsMap: P } = d ?? {};
14347
- V != null && V.size > 0 && L != null && P != null && l != null && !f && v((_) => ({
14349
+ V != null && V.size > 0 && L != null && P != null && l != null && !f && C((_) => ({
14348
14350
  ..._,
14349
14351
  ...ig(
14350
14352
  V,
@@ -14386,7 +14388,7 @@ function zo(e, t, n, r, s, i, a) {
14386
14388
  }
14387
14389
  ];
14388
14390
  });
14389
- C((_) => ({
14391
+ b((_) => ({
14390
14392
  ..._,
14391
14393
  charting_data: {
14392
14394
  units: P.flatMap((H) => H.units),
@@ -14395,7 +14397,7 @@ function zo(e, t, n, r, s, i, a) {
14395
14397
  }));
14396
14398
  }
14397
14399
  }, [d, n, t, r, f]);
14398
- const k = K(
14400
+ const E = K(
14399
14401
  () => [
14400
14402
  g,
14401
14403
  p,
@@ -14441,7 +14443,7 @@ function zo(e, t, n, r, s, i, a) {
14441
14443
  structureDataMaps: d,
14442
14444
  datasetDimensionsSchemesMap: l,
14443
14445
  isLoadingGridData: f,
14444
- crossDatasetAttachments: k,
14446
+ crossDatasetAttachments: E,
14445
14447
  onMultipleDataFiltersChange: O
14446
14448
  };
14447
14449
  }
@@ -14462,15 +14464,15 @@ const fp = ({
14462
14464
  const f = K(
14463
14465
  () => e.currentDataQuery?.urn ?? e.dataQueries?.[0]?.urn ?? "default",
14464
14466
  [e.currentDataQuery?.urn, e.dataQueries]
14465
- ), { isOpenedAdvancedView: m } = Ve(), { isCrossDatasetModeOn: g, isMetadataInSidePanel: v } = Pe(), p = !v, C = e.datasets ?? [], y = C.length > 1 && !g, w = h.filtersProps.conversation?.messages?.at(-1)?.custom_content?.attachments, {
14466
- dataMessage: b,
14467
+ ), { isOpenedAdvancedView: m } = Ve(), { isCrossDatasetModeOn: g, isMetadataInSidePanel: C } = Pe(), p = !C, b = e.datasets ?? [], y = b.length > 1 && !g, w = h.filtersProps.conversation?.messages?.at(-1)?.custom_content?.attachments, {
14468
+ dataMessage: v,
14467
14469
  dataset: N,
14468
14470
  dimensions: M,
14469
- structureDimensions: E,
14471
+ structureDimensions: k,
14470
14472
  structures: T,
14471
14473
  dataSetAttachments: G,
14472
14474
  onFiltersChange: I,
14473
- isLoadingGridData: k,
14475
+ isLoadingGridData: E,
14474
14476
  constraints: O
14475
14477
  } = Go(
14476
14478
  t,
@@ -14498,8 +14500,8 @@ const fp = ({
14498
14500
  filterKey: null,
14499
14501
  timeFilter: null
14500
14502
  }), [q, Z] = S(), oe = K(
14501
- () => g ? P : k,
14502
- [g, P, k]
14503
+ () => g ? P : E,
14504
+ [g, P, E]
14503
14505
  ), he = A(
14504
14506
  (te, le, fe) => {
14505
14507
  J(te), F(!0), I(te, le, fe);
@@ -14542,18 +14544,18 @@ const fp = ({
14542
14544
  isShowShare: d?.isShowShare
14543
14545
  }
14544
14546
  ),
14545
- C.length ? /* @__PURE__ */ D(ue, { children: [
14547
+ b.length ? /* @__PURE__ */ D(ce, { children: [
14546
14548
  y && /* @__PURE__ */ u(
14547
14549
  to,
14548
14550
  {
14549
- datasets: C,
14551
+ datasets: b,
14550
14552
  initialSelectedDatasetUrn: e?.currentDataQuery?.urn,
14551
14553
  locale: a,
14552
14554
  isHideAdvancedViewButton: !0,
14553
14555
  selectDataset: Q
14554
14556
  }
14555
14557
  ),
14556
- oe && !H ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ue, { children: [
14558
+ oe && !H ? /* @__PURE__ */ u($e, {}) : /* @__PURE__ */ D(ce, { children: [
14557
14559
  p && /* @__PURE__ */ u(
14558
14560
  dm,
14559
14561
  {
@@ -14561,7 +14563,7 @@ const fp = ({
14561
14563
  titles: n,
14562
14564
  locale: a,
14563
14565
  dataset: N,
14564
- data: b?.data,
14566
+ data: v?.data,
14565
14567
  structures: T,
14566
14568
  metadataSettings: s,
14567
14569
  getDatasetUpdatedTime: o,
@@ -14598,7 +14600,7 @@ const fp = ({
14598
14600
  locale: a,
14599
14601
  filtersProps: {
14600
14602
  ...h?.filtersProps,
14601
- structureDimensions: E,
14603
+ structureDimensions: k,
14602
14604
  structures: T,
14603
14605
  structureDataMaps: V,
14604
14606
  onFiltersChange: I,
@@ -14642,8 +14644,8 @@ function og(e, t, n, r, s) {
14642
14644
  );
14643
14645
  if (!h)
14644
14646
  return;
14645
- const v = g?.map((p) => p?.data?.dataflows?.[0])?.filter((p) => !!p) || [];
14646
- a(v), t(v), n(m), r(m[0]), o(
14647
+ const C = g?.map((p) => p?.data?.dataflows?.[0])?.filter((p) => !!p) || [];
14648
+ a(C), t(C), n(m), r(m[0]), o(
14647
14649
  new Map(
14648
14650
  g?.map((p) => [
14649
14651
  et(
@@ -14835,7 +14837,7 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
14835
14837
  }) => {
14836
14838
  const d = n?.copy, o = n?.regenerate, c = n?.thumbUp, l = n?.thumbDown, h = n?.thumbPressed, [f, m] = S(
14837
14839
  e.like ?? ht.NoState
14838
- ), { isAgentAvailable: g } = Dn(), v = (p) => {
14840
+ ), { isAgentAvailable: g } = Dn(), C = (p) => {
14839
14841
  e.responseId && (m(p), r(e.responseId || "", p));
14840
14842
  };
14841
14843
  return /* @__PURE__ */ D("div", { className: W("message-actions", "flex gap-x-2 pt-2"), children: [
@@ -14851,8 +14853,8 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
14851
14853
  children: o
14852
14854
  }
14853
14855
  ),
14854
- c && !i && f !== ht.Disliked && (f === ht.NoState ? /* @__PURE__ */ u("p", { onClick: () => v(ht.Liked), children: c }) : /* @__PURE__ */ u("p", { children: h })),
14855
- l && !i && f !== ht.Liked && (f === ht.NoState ? /* @__PURE__ */ u("p", { onClick: () => v(ht.Disliked), children: l }) : /* @__PURE__ */ u("p", { className: "rotate-180", children: h }))
14856
+ c && !i && f !== ht.Disliked && (f === ht.NoState ? /* @__PURE__ */ u("p", { onClick: () => C(ht.Liked), children: c }) : /* @__PURE__ */ u("p", { children: h })),
14857
+ l && !i && f !== ht.Liked && (f === ht.NoState ? /* @__PURE__ */ u("p", { onClick: () => C(ht.Disliked), children: l }) : /* @__PURE__ */ u("p", { className: "rotate-180", children: h }))
14856
14858
  ] });
14857
14859
  }, fg = ({
14858
14860
  message: e,
@@ -14958,18 +14960,18 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
14958
14960
  metadataSettings: f,
14959
14961
  expandStagesIcon: m,
14960
14962
  onAdvancedViewOpen: g,
14961
- regenerateMessage: v,
14963
+ regenerateMessage: C,
14962
14964
  selectMessageToSend: p,
14963
- messageActionsIcons: C,
14965
+ messageActionsIcons: b,
14964
14966
  rateResponse: y,
14965
14967
  editMessage: w,
14966
- editMessageTitles: b,
14968
+ editMessageTitles: v,
14967
14969
  isReadOnlyConversation: N,
14968
14970
  isLastNotUserMessage: M,
14969
- limitMessages: E,
14971
+ limitMessages: k,
14970
14972
  attachmentsConfig: T
14971
14973
  }) => {
14972
- const [G, I] = S(), [k, O] = S(), [V, L] = S([]), [P, _] = S(
14974
+ const [G, I] = S(), [E, O] = S(), [V, L] = S([]), [P, _] = S(
14973
14975
  []
14974
14976
  ), [H, F] = S(), [U, J] = S(!1), { isCrossDatasetModeOn: q } = Pe(), Z = e.role === ze.User, oe = e.role === ze.System, {
14975
14977
  datasets: he,
@@ -14990,13 +14992,13 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
14990
14992
  const { dataSetAttachments: Le, dimensions: Te, isLoadingGridData: Ie } = Go(
14991
14993
  r,
14992
14994
  h,
14993
- k,
14995
+ E,
14994
14996
  l,
14995
14997
  o?.chartingStyles,
14996
14998
  f,
14997
14999
  n,
14998
15000
  e.custom_content?.attachments,
14999
- k ? $?.get(k.urn) : void 0,
15001
+ E ? $?.get(E.urn) : void 0,
15000
15002
  Q
15001
15003
  ), {
15002
15004
  crossDatasetAttachments: Re,
@@ -15054,7 +15056,7 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15054
15056
  }
15055
15057
  }, [
15056
15058
  G,
15057
- k,
15059
+ E,
15058
15060
  $,
15059
15061
  Te,
15060
15062
  h,
@@ -15091,13 +15093,13 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15091
15093
  showAdvancedView: c,
15092
15094
  isSystemAttachments: oe,
15093
15095
  isDataLoading: we,
15094
- currentDataQuery: k,
15096
+ currentDataQuery: E,
15095
15097
  dataQueries: G,
15096
15098
  attachmentInfoList: V,
15097
15099
  locale: h,
15098
15100
  dimensions: Te,
15099
15101
  selectDataset: Ae,
15100
- limitMessages: E,
15102
+ limitMessages: k,
15101
15103
  attachmentsConfig: T
15102
15104
  }
15103
15105
  ),
@@ -15115,19 +15117,19 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15115
15117
  c,
15116
15118
  oe,
15117
15119
  we,
15118
- k,
15120
+ E,
15119
15121
  G,
15120
15122
  V,
15121
15123
  h,
15122
15124
  Te,
15123
15125
  Ae,
15124
15126
  g,
15125
- E,
15127
+ k,
15126
15128
  T,
15127
15129
  q
15128
15130
  ]
15129
15131
  );
15130
- return /* @__PURE__ */ u(ue, { children: !(oe && Ce) && /* @__PURE__ */ u(
15132
+ return /* @__PURE__ */ u(ce, { children: !(oe && Ce) && /* @__PURE__ */ u(
15131
15133
  "div",
15132
15134
  {
15133
15135
  className: W(
@@ -15171,7 +15173,7 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15171
15173
  content: e.content,
15172
15174
  onCancel: De,
15173
15175
  onEditApply: He,
15174
- editMessageTitles: b
15176
+ editMessageTitles: v
15175
15177
  }
15176
15178
  ) : /* @__PURE__ */ u(fa, { content: e.content })
15177
15179
  ]
@@ -15181,7 +15183,7 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15181
15183
  !a && (Z ? !ee && /* @__PURE__ */ u(
15182
15184
  fg,
15183
15185
  {
15184
- messageActionsIcons: C,
15186
+ messageActionsIcons: b,
15185
15187
  message: e,
15186
15188
  isStreaming: i,
15187
15189
  onEditClick: ye,
@@ -15190,10 +15192,10 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15190
15192
  ) : /* @__PURE__ */ u(
15191
15193
  hg,
15192
15194
  {
15193
- messageActionsIcons: C,
15195
+ messageActionsIcons: b,
15194
15196
  message: e,
15195
15197
  isStreaming: i,
15196
- regenerateMessage: v,
15198
+ regenerateMessage: C,
15197
15199
  rateResponse: y,
15198
15200
  isReadOnly: N,
15199
15201
  isRegenerateAvailable: M
@@ -15220,18 +15222,18 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15220
15222
  conversationViewState: s,
15221
15223
  ...i
15222
15224
  }) => {
15223
- const a = pe(null), d = pe(null), { isOpenedAdvancedView: o } = Ve(), c = vt(), [l, h] = S(null), [f, m] = S(!1), g = c?.isPanelOpen() ?? !1, v = () => {
15224
- const b = d.current?.parentElement, N = a.current;
15225
- if (b && N) {
15226
- const M = N.offsetTop - b.offsetTop;
15227
- b.scrollTo({
15225
+ const a = pe(null), d = pe(null), { isOpenedAdvancedView: o } = Ve(), c = vt(), [l, h] = S(null), [f, m] = S(!1), g = c?.isPanelOpen() ?? !1, C = () => {
15226
+ const v = d.current?.parentElement, N = a.current;
15227
+ if (v && N) {
15228
+ const M = N.offsetTop - v.offsetTop;
15229
+ v.scrollTo({
15228
15230
  top: M,
15229
15231
  behavior: "smooth"
15230
15232
  });
15231
15233
  }
15232
15234
  };
15233
15235
  R(() => {
15234
- v();
15236
+ C();
15235
15237
  }, [e, t]), R(() => {
15236
15238
  !o && l !== null && setTimeout(() => {
15237
15239
  d?.current?.parentElement?.scrollTo({
@@ -15241,26 +15243,26 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15241
15243
  });
15242
15244
  }, [o, l]);
15243
15245
  const p = () => {
15244
- const b = d.current?.parentElement?.scrollTop || null;
15245
- h(b);
15246
- }, C = () => {
15247
- const b = d.current?.parentElement;
15248
- if (b) {
15249
- const { scrollTop: N, scrollHeight: M, clientHeight: E } = b;
15250
- N + E >= M ? m(!1) : !f && !o && m(!0);
15246
+ const v = d.current?.parentElement?.scrollTop || null;
15247
+ h(v);
15248
+ }, b = () => {
15249
+ const v = d.current?.parentElement;
15250
+ if (v) {
15251
+ const { scrollTop: N, scrollHeight: M, clientHeight: k } = v;
15252
+ N + k >= M ? m(!1) : !f && !o && m(!0);
15251
15253
  }
15252
15254
  };
15253
15255
  R(() => {
15254
15256
  o && m(!1);
15255
15257
  }, [o]);
15256
- const y = ol(C, 300);
15258
+ const y = ol(b, 300);
15257
15259
  R(() => {
15258
- const b = d.current?.parentElement;
15259
- return b?.addEventListener("scroll", y), () => b?.removeEventListener("scroll", y);
15260
+ const v = d.current?.parentElement;
15261
+ return v?.addEventListener("scroll", y), () => v?.removeEventListener("scroll", y);
15260
15262
  }, [y]);
15261
- const w = A((b) => {
15262
- const N = Dl(b);
15263
- return /* @__PURE__ */ u("div", { className: "whitespace-pre-wrap break-words", children: N.map((M, E) => M.type === "text" ? /* @__PURE__ */ u(Ko, { children: M.value }, E) : /* @__PURE__ */ u(
15263
+ const w = A((v) => {
15264
+ const N = Dl(v);
15265
+ return /* @__PURE__ */ u("div", { className: "whitespace-pre-wrap break-words", children: N.map((M, k) => M.type === "text" ? /* @__PURE__ */ u(Ko, { children: M.value }, k) : /* @__PURE__ */ u(
15264
15266
  "a",
15265
15267
  {
15266
15268
  href: M.value,
@@ -15269,31 +15271,31 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15269
15271
  className: "inline-flex items-center align-middle",
15270
15272
  children: /* @__PURE__ */ u(mr, { className: "size-4 shrink-0 cursor-pointer text-primary" })
15271
15273
  },
15272
- E
15274
+ k
15273
15275
  )) });
15274
15276
  }, []);
15275
15277
  return /* @__PURE__ */ D("div", { ref: d, className: "flex size-full justify-center", children: [
15276
15278
  /* @__PURE__ */ D("div", { className: "chat-messages-wrapper flex w-full flex-col gap-y-6", children: [
15277
- e.map((b, N) => {
15278
- const M = b.id ?? N;
15279
- if (b.errorMessage) {
15279
+ e.map((v, N) => {
15280
+ const M = v.id ?? N;
15281
+ if (v.errorMessage) {
15280
15282
  const I = s?.errorContext?.kind === gr.RATE_LIMIT ? yt.Warning : yt.Error;
15281
- return /* @__PURE__ */ u(Ot, { type: I, children: /* @__PURE__ */ u("div", { className: "flex flex-col", children: w(b.errorMessage) }) }, M);
15283
+ return /* @__PURE__ */ u(Ot, { type: I, children: /* @__PURE__ */ u("div", { className: "flex flex-col", children: w(v.errorMessage) }) }, M);
15282
15284
  }
15283
- const E = N === e.length - 1, T = lu(
15285
+ const k = N === e.length - 1, T = lu(
15284
15286
  e,
15285
15287
  N
15286
15288
  ), G = cu(e);
15287
15289
  return /* @__PURE__ */ u(
15288
15290
  gg,
15289
15291
  {
15290
- message: b,
15292
+ message: v,
15291
15293
  previousMessage: T,
15292
15294
  onAdvancedViewOpen: p,
15293
15295
  isStreaming: t,
15294
- isCurrentMessageStreaming: t && E && b.role === ze.Assistant,
15296
+ isCurrentMessageStreaming: t && k && v.role === ze.Assistant,
15295
15297
  showAdvancedView: N === G && !n,
15296
- isLastNotUserMessage: E && b.role !== ze.User,
15298
+ isLastNotUserMessage: k && v.role !== ze.User,
15297
15299
  ...i
15298
15300
  },
15299
15301
  M
@@ -15304,7 +15306,7 @@ const dg = ({ stage: e, stageRef: t, isCurrentStage: n }) => /* @__PURE__ */ D(
15304
15306
  /* @__PURE__ */ u(
15305
15307
  "div",
15306
15308
  {
15307
- onClick: v,
15309
+ onClick: C,
15308
15310
  className: W(
15309
15311
  "fixed sm:hidden bottom-[88px] rounded-[50%] border-[2px] w-[40px] h-[40px] border-primary cursor-pointer text-primary bg-white z-10",
15310
15312
  g ? "right-[402px] lg:right-[386px]" : "right-10 lg:right-6",
@@ -15479,20 +15481,20 @@ const Tg = (e, t, n, r) => {
15479
15481
  conversationsRoute: f,
15480
15482
  token: m,
15481
15483
  titles: g,
15482
- dataQuery: v,
15484
+ dataQuery: C,
15483
15485
  handleInvalidStreaming: p,
15484
- setConversation: C,
15486
+ setConversation: b,
15485
15487
  setConversations: y,
15486
15488
  openUrl: w,
15487
- messageActionsIcons: b,
15489
+ messageActionsIcons: v,
15488
15490
  editMessageTitles: N,
15489
15491
  scrollBottomIcon: M,
15490
- isFinalMessage: E,
15492
+ isFinalMessage: k,
15491
15493
  limitMessages: T,
15492
15494
  attachmentsConfig: G,
15493
15495
  children: I
15494
15496
  }) => {
15495
- const [k, O] = S(null), [V, L] = S(!1), [P, _] = S(!0), { isStreaming: H, setIsStreaming: F } = mc(), { isOpenedAdvancedView: U } = Ve(), { isCrossDatasetModeOn: J } = Pe(), { isAgentAvailable: q } = Dn(), { statusMessages: Z } = qi(), {
15497
+ const [E, O] = S(null), [V, L] = S(!1), [P, _] = S(!0), { isStreaming: H, setIsStreaming: F } = mc(), { isOpenedAdvancedView: U } = Ve(), { isCrossDatasetModeOn: J } = Pe(), { isAgentAvailable: q } = Dn(), { statusMessages: Z } = qi(), {
15496
15498
  onboardingFileSchema: oe,
15497
15499
  onboardingFilePath: he,
15498
15500
  onboardingFileName: $,
@@ -15563,14 +15565,14 @@ const Tg = (e, t, n, r) => {
15563
15565
  [n, e]
15564
15566
  ), Le = A(
15565
15567
  (z) => {
15566
- C(
15568
+ b(
15567
15569
  (B) => B ? {
15568
15570
  ...B,
15569
15571
  messages: [...B?.messages || [], z]
15570
15572
  } : null
15571
15573
  );
15572
15574
  },
15573
- [C]
15575
+ [b]
15574
15576
  ), Te = A(() => {
15575
15577
  const z = {
15576
15578
  id: `msg-${Date.now() + 1}`,
@@ -15578,19 +15580,19 @@ const Tg = (e, t, n, r) => {
15578
15580
  content: "",
15579
15581
  timestamp: Date.now()
15580
15582
  };
15581
- return C(
15583
+ return b(
15582
15584
  (B) => B ? {
15583
15585
  ...B,
15584
15586
  messages: [...B.messages, z]
15585
15587
  } : null
15586
15588
  ), z;
15587
- }, [C]), Ie = A(
15589
+ }, [b]), Ie = A(
15588
15590
  (z, B) => {
15589
15591
  const X = wl?.(z, [
15590
15592
  B
15591
15593
  ]);
15592
15594
  if (X)
15593
- return C(
15595
+ return b(
15594
15596
  (ie) => ie ? {
15595
15597
  ...ie,
15596
15598
  messages: ie.messages.map(
@@ -15599,7 +15601,7 @@ const Tg = (e, t, n, r) => {
15599
15601
  } : null
15600
15602
  ), X;
15601
15603
  },
15602
- [C]
15604
+ [b]
15603
15605
  ), Re = A(
15604
15606
  (z, B) => {
15605
15607
  t?.model?.id && (n.rateResponse(
@@ -15705,12 +15707,12 @@ const Tg = (e, t, n, r) => {
15705
15707
  [fe]
15706
15708
  ), ye = A(
15707
15709
  (z) => {
15708
- C((B) => B && Si(B, z));
15710
+ b((B) => B && Si(B, z));
15709
15711
  },
15710
- [C]
15712
+ [b]
15711
15713
  ), De = A(
15712
15714
  (z, B) => {
15713
- C(
15715
+ b(
15714
15716
  (X) => X ? {
15715
15717
  ...X,
15716
15718
  messages: X.messages.filter(
@@ -15719,10 +15721,10 @@ const Tg = (e, t, n, r) => {
15719
15721
  } : null
15720
15722
  );
15721
15723
  },
15722
- [C]
15724
+ [b]
15723
15725
  ), He = A(() => {
15724
- k && !k.signal.aborted && k.abort();
15725
- }, [k]), Ae = (z) => z?.name === Lg, ke = A(
15726
+ E && !E.signal.aborted && E.abort();
15727
+ }, [E]), Ae = (z) => z?.name === Lg, ke = A(
15726
15728
  async (z, B, X, ie, ne, Ee = !0) => {
15727
15729
  Ae(ne) ? await we(
15728
15730
  ie ?? X,
@@ -15825,14 +15827,14 @@ const Tg = (e, t, n, r) => {
15825
15827
  ...B,
15826
15828
  messages: B.messages.slice(0, X.length)
15827
15829
  };
15828
- C(
15830
+ b(
15829
15831
  (ne) => ne ? {
15830
15832
  ...ne,
15831
15833
  ...ie
15832
15834
  } : null
15833
15835
  ), ge(X, ie, z);
15834
15836
  },
15835
- [C, ge]
15837
+ [b, ge]
15836
15838
  ), { isLastMessageFailed: j, regenerateLastMessage: Y } = K(() => {
15837
15839
  const z = t?.messages?.at(-1);
15838
15840
  return { isLastMessageFailed: !!z?.errorMessage, regenerateLastMessage: z && (() => x(z, t)) };
@@ -15844,14 +15846,14 @@ const Tg = (e, t, n, r) => {
15844
15846
  ...B,
15845
15847
  messages: [...B.messages.slice(0, X.length - 1), z]
15846
15848
  };
15847
- C(
15849
+ b(
15848
15850
  (ne) => ne ? {
15849
15851
  ...ne,
15850
15852
  ...ie
15851
15853
  } : null
15852
15854
  ), ge(X, ie, z);
15853
15855
  },
15854
- [C, ge]
15856
+ [b, ge]
15855
15857
  );
15856
15858
  R(() => {
15857
15859
  Ys();
@@ -15859,7 +15861,7 @@ const Tg = (e, t, n, r) => {
15859
15861
  try {
15860
15862
  _(!0);
15861
15863
  const { bucket: B } = await n.getBucket(), X = await n.getConversation(decodeURI(e));
15862
- C(X), L(
15864
+ b(X), L(
15863
15865
  Cg(X) && bg(X, B)
15864
15866
  ), (X.messages.length === 0 || X?.messages?.[0]?.role === ze.Assistant && X?.messages?.length === 1) && Je(X.prompt, X);
15865
15867
  } catch {
@@ -15956,7 +15958,7 @@ const Tg = (e, t, n, r) => {
15956
15958
  formattingSettings: o,
15957
15959
  metadataSettings: c,
15958
15960
  expandStagesIcon: l,
15959
- dataQuery: v,
15961
+ dataQuery: C,
15960
15962
  locale: h,
15961
15963
  titles: g,
15962
15964
  regenerateMessage: (z) => x(z, t),
@@ -15965,7 +15967,7 @@ const Tg = (e, t, n, r) => {
15965
15967
  t,
15966
15968
  B
15967
15969
  ),
15968
- messageActionsIcons: b,
15970
+ messageActionsIcons: v,
15969
15971
  rateResponse: Re,
15970
15972
  editMessage: (z) => re(z, t),
15971
15973
  editMessageTitles: N,
@@ -15994,7 +15996,7 @@ const Tg = (e, t, n, r) => {
15994
15996
  children: qe()
15995
15997
  }
15996
15998
  ),
15997
- Q && E && /* @__PURE__ */ u(
15999
+ Q && k && /* @__PURE__ */ u(
15998
16000
  Ne,
15999
16001
  {
16000
16002
  iconBefore: /* @__PURE__ */ u(Ei, { width: 24, height: 24 }),