@epam/statgpt-conversation-view 0.1.0-rc.3 → 0.1.0

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 (4) hide show
  1. package/index.d.ts +3 -1
  2. package/index.js +9 -9
  3. package/index.mjs +612 -610
  4. package/package.json +6 -6
package/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { Role as ke, DialSchemaProperties as yn, SharePermission as mi } from "@
5
5
  import { transformSharedConversations as pi } from "@epam/statgpt-conversation-list";
6
6
  import { generateConversationId as Pr, InvitationType as vi, getSharedConversationsRequest as Hr, ShareTarget as Gr, AttachmentType as ye, mergeMessages as bi, streamChatResponse as ki } from "@epam/statgpt-dial-toolkit";
7
7
  import { cleanConversationNames as Sn, Locale as Ge, CalendarResolution as rn, getTimePeriod as an, QueryFilterType as cn, CUSTOM_PERIOD as en, formatNumberBySign as Ci, defaultFormatNumbers as Ni, getConversationNavPath as Di } from "@epam/statgpt-shared-toolkit";
8
- import { InputWithIcon as Gn, IconButton as Re, KeyboardKey as Mi, Dropdown as Bn, Button as ve, Popup as Xe, PopUpSize as qe, Loader as Te, PopUpState as le, Tag as Ai, CollapsibleBlock as Br, Radio as Wr, CloseButton as Fr, Link as xi, Alert as Ti, TREE_NODE_PADDING as sr, TREE_NODE_ARROW_SIZE as Ei, Checkbox as zr, useIsMobile as pn, Calendar as dr, useDebounce as yi } from "@epam/statgpt-ui-components";
8
+ import { InputWithIcon as Gn, IconButton as Re, KeyboardKey as Mi, Dropdown as Bn, Button as ve, Popup as Xe, PopUpSize as qe, Loader as Ee, PopUpState as le, Tag as Ai, CollapsibleBlock as Br, Radio as Wr, CloseButton as Fr, Link as xi, Alert as Ei, TREE_NODE_PADDING as sr, TREE_NODE_ARROW_SIZE as Ti, Checkbox as zr, useIsMobile as pn, Calendar as dr, useDebounce as yi } from "@epam/statgpt-ui-components";
9
9
  import H from "classnames";
10
10
  import { IconPlayerStopFilled as Si, IconPlus as $r, IconCheck as Oi, IconCopy as Jr, IconCircleFilled as Li, IconSearch as _i, IconClock as Ri, IconArrowUpRight as Ii, IconExternalLink as Vi, IconPointFilled as Pi } from "@tabler/icons-react";
11
11
  import Ur from "react-markdown";
@@ -21,7 +21,7 @@ import { format as ul, isValid as hl } from "date-fns";
21
21
  import { isEqual as fl } from "lodash";
22
22
  const io = Ir(
23
23
  void 0
24
- ), iu = ({
24
+ ), lu = ({
25
25
  children: e
26
26
  }) => {
27
27
  const [n, t] = N(!1);
@@ -44,7 +44,7 @@ const io = Ir(
44
44
  return e;
45
45
  }, lo = Ir(
46
46
  void 0
47
- ), lu = ({
47
+ ), au = ({
48
48
  children: e
49
49
  }) => {
50
50
  const [n, t] = N(""), [r, o] = N(""), [i, c] = N(), [h, l] = N();
@@ -70,24 +70,24 @@ const io = Ir(
70
70
  throw new Error("useOnboarding must be used within a OnboardingProvider");
71
71
  return e;
72
72
  };
73
- var On = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(On || {});
74
- const hr = 160, gl = ':;,=/{}%&\\"', wl = new RegExp(
75
- `[${gl}]|(\r
73
+ var On = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(On || {}), Jn = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Jn || {}), gl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(gl || {}), Ln = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(Ln || {});
74
+ const hr = 160, wl = ':;,=/{}%&\\"', ml = new RegExp(
75
+ `[${wl}]|(\r
76
76
  |
77
77
  |\r| )|[\0-]`,
78
78
  "gm"
79
- ), ml = (e, n, t, r) => ({
80
- name: pl(
79
+ ), pl = (e, n, t, r) => ({
80
+ name: vl(
81
81
  r || `${t} ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`
82
82
  ),
83
83
  folderId: `${e}/${n}`,
84
84
  prompt: r
85
- }), pl = (e) => {
85
+ }), vl = (e) => {
86
86
  const n = (e == null ? void 0 : e.replace(/\r\n|\r/gm, `
87
87
  `).split(`
88
- `).map((r) => r.replace(wl, " ").trim()).filter(Boolean)[0]) ?? "";
88
+ `).map((r) => r.replace(ml, " ").trim()).filter(Boolean)[0]) ?? "";
89
89
  return (n.length > hr ? n.substring(0, hr) : n).trim();
90
- }, vl = (e, n, t, r, o, i) => {
90
+ }, bl = (e, n, t, r, o, i) => {
91
91
  const c = `${e}/${n}`;
92
92
  return {
93
93
  name: t,
@@ -152,7 +152,7 @@ const hr = 160, gl = ':;,=/{}%&\\"', wl = new RegExp(
152
152
  )
153
153
  }
154
154
  );
155
- }, bl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), co = ({ userInfo: e, signOutAction: n, title: t }) => {
155
+ }, kl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), co = ({ userInfo: e, signOutAction: n, title: t }) => {
156
156
  const r = ce(
157
157
  () => (e == null ? void 0 : e.name.split(" ").map((c) => c[0].toUpperCase()).join("")) || "",
158
158
  [e]
@@ -174,7 +174,7 @@ const hr = 160, gl = ':;,=/{}%&\\"', wl = new RegExp(
174
174
  className: "p-3 items-center flex gap-1 text-primary fill-primary h3",
175
175
  onClick: n,
176
176
  children: [
177
- /* @__PURE__ */ u(bl, { width: 20, height: 20 }),
177
+ /* @__PURE__ */ u(kl, { width: 20, height: 20 }),
178
178
  t || "Sign out"
179
179
  ]
180
180
  }
@@ -190,7 +190,7 @@ const hr = 160, gl = ':;,=/{}%&\\"', wl = new RegExp(
190
190
  openedClassName: "action-menu-opened"
191
191
  }
192
192
  );
193
- }, kl = ({ titles: e, openNewConversation: n }) => /* @__PURE__ */ k("div", { className: "text-center bg-accent-300 body-3 p-2", children: [
193
+ }, Cl = ({ titles: e, openNewConversation: n }) => /* @__PURE__ */ k("div", { className: "text-center bg-accent-300 body-3 p-2", children: [
194
194
  /* @__PURE__ */ u("span", { className: "mr-2 text-neutrals-900", children: e == null ? void 0 : e.onboardingFooter }),
195
195
  /* @__PURE__ */ k(
196
196
  "span",
@@ -204,14 +204,14 @@ const hr = 160, gl = ':;,=/{}%&\\"', wl = new RegExp(
204
204
  }
205
205
  )
206
206
  ] });
207
- var Cl = Object.defineProperty, hn = Object.getOwnPropertySymbols, so = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, fr = (e, n, t) => n in e ? Cl(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Ln = (e, n) => {
207
+ var Nl = Object.defineProperty, hn = Object.getOwnPropertySymbols, so = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, fr = (e, n, t) => n in e ? Nl(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, _n = (e, n) => {
208
208
  for (var t in n || (n = {}))
209
209
  so.call(n, t) && fr(e, t, n[t]);
210
210
  if (hn)
211
211
  for (var t of hn(n))
212
212
  uo.call(n, t) && fr(e, t, n[t]);
213
213
  return e;
214
- }, _n = (e, n) => {
214
+ }, Rn = (e, n) => {
215
215
  var t = {};
216
216
  for (var r in e)
217
217
  so.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
@@ -766,12 +766,12 @@ var ze = Fe;
766
766
  * Copyright (c) Paul O'Shannessy
767
767
  * SPDX-License-Identifier: ISC
768
768
  */
769
- var Nl = {
769
+ var Dl = {
770
770
  L: ze.QrCode.Ecc.LOW,
771
771
  M: ze.QrCode.Ecc.MEDIUM,
772
772
  Q: ze.QrCode.Ecc.QUARTILE,
773
773
  H: ze.QrCode.Ecc.HIGH
774
- }, ho = 128, fo = "L", go = "#FFFFFF", wo = "#000000", mo = !1, po = 1, Dl = 4, Ml = 0, Al = 0.1;
774
+ }, ho = 128, fo = "L", go = "#FFFFFF", wo = "#000000", mo = !1, po = 1, Ml = 4, Al = 0, xl = 0.1;
775
775
  function vo(e, n = 0) {
776
776
  const t = [];
777
777
  return e.forEach(function(r, o) {
@@ -798,10 +798,10 @@ function vo(e, n = 0) {
798
798
  function bo(e, n) {
799
799
  return e.slice().map((t, r) => r < n.y || r >= n.y + n.h ? t : t.map((o, i) => i < n.x || i >= n.x + n.w ? o : !1));
800
800
  }
801
- function xl(e, n, t, r) {
801
+ function El(e, n, t, r) {
802
802
  if (r == null)
803
803
  return null;
804
- const o = e.length + t * 2, i = Math.floor(n * Al), c = o / n, h = (r.width || i) * c, l = (r.height || i) * c, s = r.x == null ? e.length / 2 - h / 2 : r.x * c, a = r.y == null ? e.length / 2 - l / 2 : r.y * c, d = r.opacity == null ? 1 : r.opacity;
804
+ const o = e.length + t * 2, i = Math.floor(n * xl), c = o / n, h = (r.width || i) * c, l = (r.height || i) * c, s = r.x == null ? e.length / 2 - h / 2 : r.x * c, a = r.y == null ? e.length / 2 - l / 2 : r.y * c, d = r.opacity == null ? 1 : r.opacity;
805
805
  let f = null;
806
806
  if (r.excavate) {
807
807
  let w = Math.floor(s), v = Math.floor(a), m = Math.ceil(h + s - w), D = Math.ceil(l + a - v);
@@ -811,7 +811,7 @@ function xl(e, n, t, r) {
811
811
  return { x: s, y: a, h: l, w: h, excavation: f, opacity: d, crossOrigin: g };
812
812
  }
813
813
  function Tl(e, n) {
814
- return n != null ? Math.max(Math.floor(n), 0) : e ? Dl : Ml;
814
+ return n != null ? Math.max(Math.floor(n), 0) : e ? Ml : Al;
815
815
  }
816
816
  function ko({
817
817
  value: e,
@@ -827,7 +827,7 @@ function ko({
827
827
  const w = (Array.isArray(e) ? e : [e]).reduce((v, m) => (v.push(...ze.QrSegment.makeSegments(m)), v), []);
828
828
  return ze.QrCode.encodeSegments(
829
829
  w,
830
- Nl[n],
830
+ Dl[n],
831
831
  t,
832
832
  void 0,
833
833
  void 0,
@@ -836,7 +836,7 @@ function ko({
836
836
  }, [e, n, t, h]);
837
837
  const { cells: s, margin: a, numCells: d, calculatedImageSettings: f } = fe.useMemo(() => {
838
838
  let g = l.getModules();
839
- const w = Tl(r, o), v = g.length + w * 2, m = xl(
839
+ const w = Tl(r, o), v = g.length + w * 2, m = El(
840
840
  g,
841
841
  c,
842
842
  w,
@@ -857,14 +857,14 @@ function ko({
857
857
  calculatedImageSettings: f
858
858
  };
859
859
  }
860
- var El = (function() {
860
+ var yl = (function() {
861
861
  try {
862
862
  new Path2D().addPath(new Path2D());
863
863
  } catch {
864
864
  return !1;
865
865
  }
866
866
  return !0;
867
- })(), yl = fe.forwardRef(
867
+ })(), Sl = fe.forwardRef(
868
868
  function(n, t) {
869
869
  const r = n, {
870
870
  value: o,
@@ -877,7 +877,7 @@ var El = (function() {
877
877
  boostLevel: d,
878
878
  marginSize: f,
879
879
  imageSettings: g
880
- } = r, v = _n(r, [
880
+ } = r, v = Rn(r, [
881
881
  "value",
882
882
  "size",
883
883
  "level",
@@ -888,12 +888,12 @@ var El = (function() {
888
888
  "boostLevel",
889
889
  "marginSize",
890
890
  "imageSettings"
891
- ]), { style: m } = v, D = _n(v, ["style"]), C = g == null ? void 0 : g.src, p = fe.useRef(null), M = fe.useRef(null), b = fe.useCallback(
891
+ ]), { style: m } = v, D = Rn(v, ["style"]), C = g == null ? void 0 : g.src, p = fe.useRef(null), M = fe.useRef(null), b = fe.useCallback(
892
892
  (F) => {
893
893
  p.current = F, typeof t == "function" ? t(F) : t && (t.current = F);
894
894
  },
895
895
  [t]
896
- ), [A, y] = fe.useState(!1), { margin: E, cells: I, numCells: T, calculatedImageSettings: x } = ko({
896
+ ), [A, y] = fe.useState(!1), { margin: T, cells: I, numCells: E, calculatedImageSettings: x } = ko({
897
897
  value: o,
898
898
  level: c,
899
899
  minVersion: a,
@@ -916,15 +916,15 @@ var El = (function() {
916
916
  ));
917
917
  const z = window.devicePixelRatio || 1;
918
918
  F.height = F.width = i * z;
919
- const Z = i / T * z;
920
- P.scale(Z, Z), P.fillStyle = h, P.fillRect(0, 0, T, T), P.fillStyle = l, El ? P.fill(new Path2D(vo(L, E))) : I.forEach(function(oe, te) {
919
+ const Z = i / E * z;
920
+ P.scale(Z, Z), P.fillStyle = h, P.fillRect(0, 0, E, E), P.fillStyle = l, yl ? P.fill(new Path2D(vo(L, T))) : I.forEach(function(oe, te) {
921
921
  oe.forEach(function(ie, he) {
922
- ie && P.fillRect(he + E, te + E, 1, 1);
922
+ ie && P.fillRect(he + T, te + T, 1, 1);
923
923
  });
924
924
  }), x && (P.globalAlpha = x.opacity), G && P.drawImage(
925
925
  B,
926
- x.x + E,
927
- x.y + E,
926
+ x.x + T,
927
+ x.y + T,
928
928
  x.w,
929
929
  x.h
930
930
  );
@@ -932,7 +932,7 @@ var El = (function() {
932
932
  }), fe.useEffect(() => {
933
933
  y(!1);
934
934
  }, [C]);
935
- const S = Ln({ height: i, width: i }, m);
935
+ const S = _n({ height: i, width: i }, m);
936
936
  let $ = null;
937
937
  return C != null && ($ = /* @__PURE__ */ fe.createElement(
938
938
  "img",
@@ -948,7 +948,7 @@ var El = (function() {
948
948
  }
949
949
  )), /* @__PURE__ */ fe.createElement(fe.Fragment, null, /* @__PURE__ */ fe.createElement(
950
950
  "canvas",
951
- Ln({
951
+ _n({
952
952
  style: S,
953
953
  height: i,
954
954
  width: i,
@@ -958,7 +958,7 @@ var El = (function() {
958
958
  ), $);
959
959
  }
960
960
  );
961
- yl.displayName = "QRCodeCanvas";
961
+ Sl.displayName = "QRCodeCanvas";
962
962
  var Co = fe.forwardRef(
963
963
  function(n, t) {
964
964
  const r = n, {
@@ -973,7 +973,7 @@ var Co = fe.forwardRef(
973
973
  title: f,
974
974
  marginSize: g,
975
975
  imageSettings: w
976
- } = r, v = _n(r, [
976
+ } = r, v = Rn(r, [
977
977
  "value",
978
978
  "size",
979
979
  "level",
@@ -1015,7 +1015,7 @@ var Co = fe.forwardRef(
1015
1015
  const A = vo(M, m);
1016
1016
  return /* @__PURE__ */ fe.createElement(
1017
1017
  "svg",
1018
- Ln({
1018
+ _n({
1019
1019
  height: i,
1020
1020
  width: i,
1021
1021
  viewBox: `0 0 ${C} ${C}`,
@@ -1037,7 +1037,7 @@ var Co = fe.forwardRef(
1037
1037
  }
1038
1038
  );
1039
1039
  Co.displayName = "QRCodeSVG";
1040
- const No = "share", Sl = (e, n) => ({
1040
+ const No = "share", Ol = (e, n) => ({
1041
1041
  invitationType: vi.LINK,
1042
1042
  resources: [
1043
1043
  {
@@ -1045,15 +1045,15 @@ const No = "share", Sl = (e, n) => ({
1045
1045
  },
1046
1046
  ...n
1047
1047
  ]
1048
- }), Ol = (e) => {
1048
+ }), Ll = (e) => {
1049
1049
  var t;
1050
1050
  const n = ((t = e == null ? void 0 : e.invitationLink) == null ? void 0 : t.split("/").at(-1)) || "";
1051
1051
  return `/${No}/${n}`;
1052
- }, Ll = (e, n) => n == null ? void 0 : n.find((t) => {
1052
+ }, _l = (e, n) => n == null ? void 0 : n.find((t) => {
1053
1053
  var i, c, h, l;
1054
1054
  const r = (c = (i = e == null ? void 0 : e.id) == null ? void 0 : i.split("/")) == null ? void 0 : c.pop(), o = ((l = (h = t == null ? void 0 : t.url) == null ? void 0 : h.split("/")) == null ? void 0 : l.pop()) || "";
1055
1055
  return o === r || decodeURI(o) === r;
1056
- }), _l = (e) => {
1056
+ }), Rl = (e) => {
1057
1057
  var t, r;
1058
1058
  const n = (t = e == null ? void 0 : e.messages) == null ? void 0 : t.filter(
1059
1059
  (o) => {
@@ -1067,7 +1067,7 @@ const No = "share", Sl = (e, n) => ({
1067
1067
  url: (h == null ? void 0 : h.url) || ""
1068
1068
  }))) || [];
1069
1069
  })) == null ? void 0 : r.filter((o) => !!(o != null && o.url))) || [];
1070
- }, Rl = ({
1070
+ }, Il = ({
1071
1071
  conversation: e,
1072
1072
  locale: n,
1073
1073
  onCloseModal: t,
@@ -1091,7 +1091,7 @@ const No = "share", Sl = (e, n) => ({
1091
1091
  clientSharedPage: M,
1092
1092
  clientSharedProp: b
1093
1093
  }) => {
1094
- const [A, y] = N(null), [E, I] = N(), [T, x] = N(!1), [S, $] = N(!1), [F, P] = N(), L = ce(() => {
1094
+ const [A, y] = N(null), [T, I] = N(), [E, x] = N(!1), [S, $] = N(!1), [F, P] = N(), L = ce(() => {
1095
1095
  var te;
1096
1096
  const oe = C || window.location.origin;
1097
1097
  if (C && C !== window.location.origin && M && b) {
@@ -1103,14 +1103,14 @@ const No = "share", Sl = (e, n) => ({
1103
1103
  O(() => {
1104
1104
  (async () => {
1105
1105
  try {
1106
- const te = decodeURI(e ? e == null ? void 0 : e.id : `${p == null ? void 0 : p[0]}/${n}/${p == null ? void 0 : p[1]}`), ie = `${decodeURI(te)}`, he = await (o == null ? void 0 : o(ie)), Ce = Sl(
1106
+ const te = decodeURI(e ? e == null ? void 0 : e.id : `${p == null ? void 0 : p[0]}/${n}/${p == null ? void 0 : p[1]}`), ie = `${decodeURI(te)}`, he = await (o == null ? void 0 : o(ie)), Ce = Ol(
1107
1107
  te,
1108
- _l(he)
1108
+ Rl(he)
1109
1109
  ), De = await (i == null ? void 0 : i(Ce)), ge = await (m == null ? void 0 : m(
1110
1110
  Hr(Gr.OTHERS)
1111
1111
  ));
1112
- De && ge && (x(!0), y(Ol(De)), I(
1113
- Ll(
1112
+ De && ge && (x(!0), y(Ll(De)), I(
1113
+ _l(
1114
1114
  e,
1115
1115
  ge == null ? void 0 : ge.resources
1116
1116
  )
@@ -1133,7 +1133,7 @@ const No = "share", Sl = (e, n) => ({
1133
1133
  $(!0), navigator.clipboard.writeText(L || "");
1134
1134
  }, [L]), z = async () => {
1135
1135
  try {
1136
- P(!0), E && await (D == null ? void 0 : D({ resources: [E] }));
1136
+ P(!0), T && await (D == null ? void 0 : D({ resources: [T] }));
1137
1137
  } catch (oe) {
1138
1138
  P(!1), console.error("Error revoking shared conversation", oe);
1139
1139
  }
@@ -1157,7 +1157,7 @@ const No = "share", Sl = (e, n) => ({
1157
1157
  onClose: B,
1158
1158
  closeButtonTitle: l ?? "Close",
1159
1159
  children: [
1160
- T ? /* @__PURE__ */ k("div", { className: "share flex flex-col gap-y-4 px-6 pb-6 overflow-auto sm:p-0", children: [
1160
+ E ? /* @__PURE__ */ k("div", { className: "share flex flex-col gap-y-4 px-6 pb-6 overflow-auto sm:p-0", children: [
1161
1161
  e != null && e.name ? /* @__PURE__ */ k("div", { className: "flex share-info w-full", children: [
1162
1162
  /* @__PURE__ */ u("p", { className: "share-info-title text-neutrals-800 mr-1 body-1", children: v ?? "Chat name:" }),
1163
1163
  /* @__PURE__ */ u(
@@ -1197,8 +1197,8 @@ const No = "share", Sl = (e, n) => ({
1197
1197
  iconAfterInput: Z()
1198
1198
  }
1199
1199
  )
1200
- ] }) : /* @__PURE__ */ u("div", { className: "flex justify-center items-center py-6 px-6", children: /* @__PURE__ */ u(Te, {}) }),
1201
- T ? e && E ? /* @__PURE__ */ u("div", { className: "remove-access", children: /* @__PURE__ */ u(
1200
+ ] }) : /* @__PURE__ */ u("div", { className: "flex justify-center items-center py-6 px-6", children: /* @__PURE__ */ u(Ee, {}) }),
1201
+ E ? e && T ? /* @__PURE__ */ u("div", { className: "remove-access", children: /* @__PURE__ */ u(
1202
1202
  ve,
1203
1203
  {
1204
1204
  title: w ?? "Remove access to all users",
@@ -1231,7 +1231,7 @@ const No = "share", Sl = (e, n) => ({
1231
1231
  onClick: i
1232
1232
  }
1233
1233
  ),
1234
- r === le.Opened && /* @__PURE__ */ u(Rl, { onCloseModal: c, ...t })
1234
+ r === le.Opened && /* @__PURE__ */ u(Il, { onCloseModal: c, ...t })
1235
1235
  ] });
1236
1236
  }, Mo = ({
1237
1237
  conversation: e,
@@ -1305,9 +1305,7 @@ const No = "share", Sl = (e, n) => ({
1305
1305
  )
1306
1306
  }
1307
1307
  );
1308
- };
1309
- var Rn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(Rn || {}), Jn = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Jn || {});
1310
- const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1308
+ }, xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1311
1309
  var r;
1312
1310
  return /* @__PURE__ */ u("div", { className: "mt-4", children: /* @__PURE__ */ k(
1313
1311
  "button",
@@ -1328,7 +1326,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1328
1326
  ]
1329
1327
  }
1330
1328
  ) }, t.title);
1331
- }), Il = ({
1329
+ }), Vl = ({
1332
1330
  titles: e,
1333
1331
  messageContent: n,
1334
1332
  choiceButtons: t,
@@ -1367,7 +1365,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1367
1365
  )
1368
1366
  ] })
1369
1367
  ] })
1370
- ] }), su = ({
1368
+ ] }), du = ({
1371
1369
  suggestionsList: e,
1372
1370
  welcomeText: n,
1373
1371
  titleIcon: t,
@@ -1391,7 +1389,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1391
1389
  onboardingFilePath: b,
1392
1390
  isShowOnboarding: A,
1393
1391
  setIsShowOnboarding: y,
1394
- setOnboardingFileSchema: E
1392
+ setOnboardingFileSchema: T
1395
1393
  } = Ae();
1396
1394
  O(() => {
1397
1395
  (async () => {
@@ -1408,14 +1406,14 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1408
1406
  var B, G, z;
1409
1407
  C(!0), v || console.error("No bucket");
1410
1408
  try {
1411
- const Z = A ? vl(
1409
+ const Z = A ? bl(
1412
1410
  v || "",
1413
1411
  d,
1414
1412
  (o == null ? void 0 : o.onboardingTitle) ?? "Introducing the AI assistant",
1415
1413
  ((G = (B = l == null ? void 0 : l.properties) == null ? void 0 : B.choice) == null ? void 0 : G.description) ?? "",
1416
1414
  P,
1417
1415
  L
1418
- ) : ml(
1416
+ ) : pl(
1419
1417
  v || "",
1420
1418
  d,
1421
1419
  o.newChat ?? "New chat",
@@ -1437,7 +1435,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1437
1435
  M,
1438
1436
  b,
1439
1437
  he
1440
- )), E == null || E(he);
1438
+ )), T == null || T(he);
1441
1439
  }
1442
1440
  a(Sn(te)), f(
1443
1441
  Sn(
@@ -1461,12 +1459,12 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1461
1459
  p,
1462
1460
  l,
1463
1461
  a,
1464
- E,
1462
+ T,
1465
1463
  f,
1466
1464
  o.newChat,
1467
1465
  o == null ? void 0 : o.onboardingTitle
1468
1466
  ]
1469
- ), T = _(
1467
+ ), E = _(
1470
1468
  async (P) => {
1471
1469
  var L;
1472
1470
  if (y(!1), P && p) {
@@ -1479,7 +1477,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1479
1477
  M,
1480
1478
  b,
1481
1479
  B
1482
- )), E == null || E(B);
1480
+ )), T == null || T(B);
1483
1481
  }
1484
1482
  },
1485
1483
  [
@@ -1488,19 +1486,19 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1488
1486
  b,
1489
1487
  p,
1490
1488
  y,
1491
- E
1489
+ T
1492
1490
  ]
1493
1491
  );
1494
1492
  return O(() => {
1495
1493
  h && v && I(h);
1496
1494
  }, [v, h]), /* @__PURE__ */ k("div", { className: "flex flex-col h-full w-full", children: [
1497
- h || D ? /* @__PURE__ */ u(Te, {}) : A ? /* @__PURE__ */ u(
1498
- Il,
1495
+ h || D ? /* @__PURE__ */ u(Ee, {}) : A ? /* @__PURE__ */ u(
1496
+ Vl,
1499
1497
  {
1500
1498
  titles: o,
1501
1499
  messageContent: ((S = (x = l == null ? void 0 : l.properties) == null ? void 0 : x.choice) == null ? void 0 : S.description) || "",
1502
1500
  choiceButtons: ((F = ($ = l == null ? void 0 : l.properties) == null ? void 0 : $.choice) == null ? void 0 : F.oneOf) || [],
1503
- handleOnboardingSkip: T,
1501
+ handleOnboardingSkip: E,
1504
1502
  onClick: I
1505
1503
  }
1506
1504
  ) : /* @__PURE__ */ k("div", { className: "flex flex-col h-full items-center justify-center sm:px-4", children: [
@@ -1562,18 +1560,18 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1562
1560
  ) })
1563
1561
  ] }),
1564
1562
  A && /* @__PURE__ */ u(
1565
- kl,
1563
+ Cl,
1566
1564
  {
1567
1565
  titles: o,
1568
1566
  openNewConversation: () => y(!1)
1569
1567
  }
1570
1568
  )
1571
1569
  ] });
1572
- }, Vl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ q.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), Pl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ q.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), gr = [
1570
+ }, Pl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ q.createElement("circle", { cx: 32, cy: 12, r: 10, fill: "white" })), Hl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 44, height: 24, viewBox: "0 0 44 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("rect", { width: 44, height: 24, rx: 12, fill: "currentColor" }), /* @__PURE__ */ q.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "white" })), gr = [
1573
1571
  { value: Mn.JSON, title: "SDMX-JSON" },
1574
1572
  { value: Mn.XML, title: "SDMX-ML (XML)" },
1575
1573
  { value: Mn.CSV, title: "SDMX-CSV" }
1576
- ], Hl = (e) => [
1574
+ ], Gl = (e) => [
1577
1575
  {
1578
1576
  value: An.ID,
1579
1577
  title: (e == null ? void 0 : e.idOptions) || "ID",
@@ -1589,7 +1587,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1589
1587
  title: (e == null ? void 0 : e.idAndNameOptions) || "Combined ID and Name",
1590
1588
  description: e == null ? void 0 : e.idAndNameOptionsDescription
1591
1589
  }
1592
- ], Gl = (e, n, t, r) => {
1590
+ ], Bl = (e, n, t, r) => {
1593
1591
  if (r != null && r.filterKey && e === $e.DATA_IN_TABLE)
1594
1592
  return r;
1595
1593
  let o = null, i = null;
@@ -1615,7 +1613,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1615
1613
  radioIcon: /* @__PURE__ */ u(Li, { className: "w-3 h-3" })
1616
1614
  },
1617
1615
  o.value
1618
- ) }, o.value)) }) }), Bl = ({
1616
+ ) }, o.value)) }) }), Wl = ({
1619
1617
  actions: e,
1620
1618
  dataQuery: n,
1621
1619
  datasetIcon: t,
@@ -1629,20 +1627,20 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1629
1627
  urn: a,
1630
1628
  titles: d
1631
1629
  }) => {
1632
- const f = Hl(d), [g, w] = N(gr[0]), [v, m] = N(f[0]), [D, C] = N(!0), p = _(() => {
1633
- const M = Gl(
1630
+ const f = Gl(d), [g, w] = N(gr[0]), [v, m] = N(f[0]), [D, C] = N(!0), p = _(() => {
1631
+ const M = Bl(
1634
1632
  c,
1635
1633
  n,
1636
1634
  l,
1637
1635
  s
1638
- ), b = (n == null ? void 0 : n.urn) || a || "", A = v.value, y = g.value, E = `${o}.${y}`;
1636
+ ), b = (n == null ? void 0 : n.urn) || a || "", A = v.value, y = g.value, T = `${o}.${y}`;
1639
1637
  e.downloadDataSet(
1640
1638
  b,
1641
1639
  y,
1642
1640
  h,
1643
1641
  A,
1644
1642
  M,
1645
- E,
1643
+ T,
1646
1644
  D
1647
1645
  ), i();
1648
1646
  }, [
@@ -1719,7 +1717,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1719
1717
  className: `flex gap-4 cursor-pointer download-metadata ${D ? "download-metadata-active" : ""}`,
1720
1718
  children: [
1721
1719
  D ? /* @__PURE__ */ u(
1722
- Vl,
1720
+ Pl,
1723
1721
  {
1724
1722
  width: 44,
1725
1723
  height: 24,
@@ -1729,7 +1727,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1729
1727
  }
1730
1728
  }
1731
1729
  ) : /* @__PURE__ */ u(
1732
- Pl,
1730
+ Hl,
1733
1731
  {
1734
1732
  width: 44,
1735
1733
  height: 24,
@@ -1757,7 +1755,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1757
1755
  ]
1758
1756
  }
1759
1757
  );
1760
- }, Wl = ({
1758
+ }, Fl = ({
1761
1759
  icon: e,
1762
1760
  chevronIcon: n,
1763
1761
  title: t,
@@ -1766,7 +1764,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1766
1764
  e,
1767
1765
  /* @__PURE__ */ u("span", { children: t }),
1768
1766
  r && /* @__PURE__ */ u("i", { className: "chevron-icon", children: n })
1769
- ] }), Fl = ({
1767
+ ] }), zl = ({
1770
1768
  icon: e,
1771
1769
  chevronIcon: n,
1772
1770
  title: t,
@@ -1789,7 +1787,7 @@ const xo = ({ choiceButtons: e, onClick: n }) => e.map((t) => {
1789
1787
  {
1790
1788
  containerClassName: "download-type",
1791
1789
  triggerButton: /* @__PURE__ */ u(
1792
- Wl,
1790
+ Fl,
1793
1791
  {
1794
1792
  icon: e,
1795
1793
  chevronIcon: n,
@@ -1813,14 +1811,14 @@ function Un(e) {
1813
1811
  var n;
1814
1812
  return e.type === ye.MARKDOWN && e.title != null && ((n = e.title) == null ? void 0 : n.startsWith("URL Query"));
1815
1813
  }
1816
- function To(e) {
1814
+ function Eo(e) {
1817
1815
  var n;
1818
1816
  return e.type === ye.JSON && e.title != null && ((n = e.title) == null ? void 0 : n.startsWith("Query (JSON)"));
1819
1817
  }
1820
- function Eo(e) {
1818
+ function To(e) {
1821
1819
  return e.type === ye.MARKDOWN && !Un(e);
1822
1820
  }
1823
- function zl(e) {
1821
+ function $l(e) {
1824
1822
  return e.type === ye.CSV;
1825
1823
  }
1826
1824
  function yo(e) {
@@ -1832,10 +1830,10 @@ function fn(e) {
1832
1830
  function on(e) {
1833
1831
  return e.type === ye.CUSTOM_CHART;
1834
1832
  }
1835
- function $l(e) {
1833
+ function Jl(e) {
1836
1834
  return e.type === ye.PLOTLY;
1837
1835
  }
1838
- const Jl = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1836
+ const Ul = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1839
1837
  "div",
1840
1838
  {
1841
1839
  className: H(
@@ -1850,7 +1848,7 @@ const Jl = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1850
1848
  ] })
1851
1849
  ] })
1852
1850
  }
1853
- ), Ul = ({
1851
+ ), jl = ({
1854
1852
  setToTitle: e,
1855
1853
  datasetName: n,
1856
1854
  datasetIcon: t,
@@ -1869,7 +1867,7 @@ const Jl = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1869
1867
  /* @__PURE__ */ u("span", { className: "font-bold", children: (c = i == null ? void 0 : i.valuesTitles) == null ? void 0 : c.join(", ") })
1870
1868
  ] }, i == null ? void 0 : i.title);
1871
1869
  })
1872
- ] }), jl = ({
1870
+ ] }), Yl = ({
1873
1871
  titles: e,
1874
1872
  attachmentInfoList: n,
1875
1873
  datasetIcon: t
@@ -1888,7 +1886,7 @@ const Jl = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1888
1886
  (r) => {
1889
1887
  var o;
1890
1888
  return !!((o = r == null ? void 0 : r.queryFiltersDetails) != null && o.length) && /* @__PURE__ */ u(
1891
- Ul,
1889
+ jl,
1892
1890
  {
1893
1891
  setToTitle: e == null ? void 0 : e.setToTitle,
1894
1892
  datasetName: r == null ? void 0 : r.datasetName,
@@ -1900,7 +1898,7 @@ const Jl = ({ icon: e, title: n }) => /* @__PURE__ */ u(
1900
1898
  );
1901
1899
  }
1902
1900
  )
1903
- ] }), Yl = ({
1901
+ ] }), Kl = ({
1904
1902
  downloadTitles: e,
1905
1903
  attachment: n,
1906
1904
  actions: t,
@@ -1964,7 +1962,7 @@ const jn = [
1964
1962
  }), In = (e, n) => e.find((t) => {
1965
1963
  var r;
1966
1964
  return !((r = n.infoElements) != null && r[t]);
1967
- }) || "", Kl = (e, n) => {
1965
+ }) || "", Zl = (e, n) => {
1968
1966
  if (!e || !n)
1969
1967
  return "";
1970
1968
  if (pr.includes(n)) {
@@ -1988,10 +1986,10 @@ const jn = [
1988
1986
  }, _o = (e) => Lo(
1989
1987
  Oo,
1990
1988
  e
1991
- ), Zl = (e) => Lo(
1989
+ ), Xl = (e) => Lo(
1992
1990
  jn,
1993
1991
  e
1994
- ), Xl = (e) => {
1992
+ ), ql = (e) => {
1995
1993
  var n, t;
1996
1994
  return (!((n = e == null ? void 0 : e.infoElements) != null && n.charts) || !((t = e == null ? void 0 : e.infoElements) != null && t.chartsNavigation)) && !jn.includes(
1997
1995
  e.lastDisplayedElement
@@ -2013,7 +2011,7 @@ const jn = [
2013
2011
  whileElementsMounted: el
2014
2012
  }), g = il(d), { getFloatingProps: w } = to([g]), v = _(() => {
2015
2013
  if (c) {
2016
- const m = Kl(
2014
+ const m = Zl(
2017
2015
  h,
2018
2016
  h == null ? void 0 : h.lastDisplayedElement
2019
2017
  );
@@ -2062,7 +2060,7 @@ const jn = [
2062
2060
  }, Ro = ({ dimensionsInfo: e }) => /* @__PURE__ */ u("div", { className: "sidebar flex flex-col w-[176px] gap-3 min-h-0 overflow-auto", children: e.map((n) => /* @__PURE__ */ k("div", { className: "flex flex-col", children: [
2063
2061
  /* @__PURE__ */ u("h5", { className: "text-neutrals-800", children: n.title }),
2064
2062
  /* @__PURE__ */ u("h5", { className: "font-bold", children: n.value })
2065
- ] }, n.title)) }), ql = ({ titles: e, chart: n, isOpen: t, onClose: r }) => {
2063
+ ] }, n.title)) }), Ql = ({ titles: e, chart: n, isOpen: t, onClose: r }) => {
2066
2064
  const [o, i] = N(le.Closed);
2067
2065
  O(() => {
2068
2066
  i(t ? le.Opened : le.Closed);
@@ -2138,7 +2136,7 @@ const jn = [
2138
2136
  }
2139
2137
  ),
2140
2138
  n && /* @__PURE__ */ u(
2141
- ql,
2139
+ Ql,
2142
2140
  {
2143
2141
  chart: e.value,
2144
2142
  isOpen: n,
@@ -2147,7 +2145,7 @@ const jn = [
2147
2145
  }
2148
2146
  )
2149
2147
  ] });
2150
- }, bn = 32, Yn = 32, Ql = 16, Kn = "padding-0", kn = 200, Vn = { flex: 1, minWidth: kn }, ea = bn, Vo = "observationValueCell", Po = "metadataCell", na = "chartCell", gn = "Chart_column", ta = (e, n, t, r, o, i) => ({
2148
+ }, bn = 32, Yn = 32, ea = 16, Kn = "padding-0", kn = 200, Vn = { flex: 1, minWidth: kn }, na = bn, Vo = "observationValueCell", Po = "metadataCell", ta = "chartCell", gn = "Chart_column", ra = (e, n, t, r, o, i) => ({
2151
2149
  headerName: "",
2152
2150
  suppressHeaderMenuButton: !0,
2153
2151
  suppressNavigable: !0,
@@ -2167,7 +2165,7 @@ const jn = [
2167
2165
  action: i
2168
2166
  }
2169
2167
  });
2170
- function ra(e, n, t, r = ea, o, i) {
2168
+ function oa(e, n, t, r = na, o, i) {
2171
2169
  return {
2172
2170
  headerName: "",
2173
2171
  field: gn,
@@ -2192,13 +2190,13 @@ function ra(e, n, t, r = ea, o, i) {
2192
2190
  }
2193
2191
  };
2194
2192
  }
2195
- const Pn = ["index", "value"], oa = (e) => ({
2196
- columns: aa(e),
2197
- data: ia(e)
2198
- }), ia = (e) => {
2193
+ const Pn = ["index", "value"], ia = (e) => ({
2194
+ columns: ca(e),
2195
+ data: la(e)
2196
+ }), la = (e) => {
2199
2197
  const n = e.metadata.time_column, t = {};
2200
2198
  for (const r of e.data.data) {
2201
- const { value: o, ...i } = r, c = la(r, n);
2199
+ const { value: o, ...i } = r, c = aa(r, n);
2202
2200
  t[c] = {
2203
2201
  ...t[c] || {},
2204
2202
  ...i,
@@ -2206,7 +2204,7 @@ const Pn = ["index", "value"], oa = (e) => ({
2206
2204
  };
2207
2205
  }
2208
2206
  return Object.values(t);
2209
- }, la = (e, n) => Object.keys(e).filter((t) => !Pn.includes(t) && t !== n).map((t) => e[t]).join("."), aa = (e) => {
2207
+ }, aa = (e, n) => Object.keys(e).filter((t) => !Pn.includes(t) && t !== n).map((t) => e[t]).join("."), ca = (e) => {
2210
2208
  const { metadata: n, data: t } = e, r = n.time_column, o = n.pinned_columns || [], i = t.schema.fields, c = [], h = t.data.map((f) => f[r]), s = Array.from(new Set(h)).filter((f) => f != null).map(
2211
2209
  (f) => ({
2212
2210
  field: f,
@@ -2236,7 +2234,7 @@ const Pn = ["index", "value"], oa = (e) => ({
2236
2234
  tooltipValueGetter: (g) => g.value
2237
2235
  });
2238
2236
  return c.push(...s), c;
2239
- }, Ho = (e) => e * Yn + bn + Ql, ca = ({ attachment: e, actions: n, className: t = "" }) => {
2237
+ }, Ho = (e) => e * Yn + bn + ea, sa = ({ attachment: e, actions: n, className: t = "" }) => {
2240
2238
  const [r, o] = N(!1), [i, c] = N([]), [h, l] = N(), [s, a] = N(400);
2241
2239
  O(() => {
2242
2240
  e.url != null && (o(!0), n.getFile(e.url).then((f) => {
@@ -2244,7 +2242,7 @@ const Pn = ["index", "value"], oa = (e) => ({
2244
2242
  c([]), l([]), o(!1);
2245
2243
  return;
2246
2244
  }
2247
- const { columns: g, data: w } = oa(f);
2245
+ const { columns: g, data: w } = ia(f);
2248
2246
  c(w), l(g), o(!1);
2249
2247
  }));
2250
2248
  }, [e.url, n]), O(() => {
@@ -2269,7 +2267,7 @@ const Pn = ["index", "value"], oa = (e) => ({
2269
2267
  ),
2270
2268
  [i, h]
2271
2269
  );
2272
- return r ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ u("div", { className: `w-full ${t}`, children: /* @__PURE__ */ u(
2270
+ return r ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ u("div", { className: `w-full ${t}`, children: /* @__PURE__ */ u(
2273
2271
  "div",
2274
2272
  {
2275
2273
  className: "ag-theme-quartz w-full min-h-[80px] max-h-[400px]",
@@ -2278,10 +2276,10 @@ const Pn = ["index", "value"], oa = (e) => ({
2278
2276
  }
2279
2277
  ) });
2280
2278
  }, Go = "json";
2281
- function sa(e) {
2282
- return ua(e) ? da(e == null ? void 0 : e.slice(Go.length)) : e;
2283
- }
2284
2279
  function da(e) {
2280
+ return ha(e) ? ua(e == null ? void 0 : e.slice(Go.length)) : e;
2281
+ }
2282
+ function ua(e) {
2285
2283
  let n = "";
2286
2284
  if (e)
2287
2285
  try {
@@ -2291,28 +2289,28 @@ function da(e) {
2291
2289
  }
2292
2290
  return n;
2293
2291
  }
2294
- function ua(e) {
2292
+ function ha(e) {
2295
2293
  return (e == null ? void 0 : e.startsWith(Go)) || !1;
2296
2294
  }
2297
- const ha = ({ attachment: e, className: n = "" }) => {
2298
- const t = sa(e.data);
2295
+ const fa = ({ attachment: e, className: n = "" }) => {
2296
+ const t = da(e.data);
2299
2297
  return t ? /* @__PURE__ */ k("div", { className: `attachment-json border rounded-lg bg-white ${n}`, children: [
2300
2298
  /* @__PURE__ */ u("div", { className: "flex items-center justify-between px-3 py-2 border-b border-neutrals-200 bg-neutrals-100 rounded-t-lg", children: /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ u("h3", { className: "text-neutrals-900", children: e.title }) }) }),
2301
2299
  /* @__PURE__ */ u("div", { className: "p-3", children: /* @__PURE__ */ u("pre", { className: "text-neutrals-800 overflow-x-auto whitespace-pre-wrap break-words max-h-96 overflow-y-auto", children: /* @__PURE__ */ u("code", { children: t }) }) })
2302
2300
  ] }) : null;
2303
- }, fa = (e) => {
2301
+ }, ga = (e) => {
2304
2302
  try {
2305
2303
  const n = new URL(e);
2306
2304
  return ["http:", "https:", "data:"].includes(n.protocol);
2307
2305
  } catch {
2308
2306
  return !1;
2309
2307
  }
2310
- }, ga = (e) => fa(e) ? e : "", wa = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), ma = ({
2308
+ }, wa = (e) => ga(e) ? e : "", ma = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), pa = ({
2311
2309
  attachment: e,
2312
2310
  openLinkTitle: n,
2313
2311
  className: t = ""
2314
2312
  }) => {
2315
- const r = ga(e.data || "");
2313
+ const r = wa(e.data || "");
2316
2314
  if (!r) return null;
2317
2315
  const o = (i) => {
2318
2316
  const c = window.open(i, "_blank");
@@ -2329,7 +2327,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2329
2327
  className: "text-hues-800 flex-shrink-0 mt-1",
2330
2328
  role: "img",
2331
2329
  "aria-label": "Link",
2332
- children: /* @__PURE__ */ u(wa, { width: 16, height: 16 })
2330
+ children: /* @__PURE__ */ u(ma, { width: 16, height: 16 })
2333
2331
  }
2334
2332
  ),
2335
2333
  /* @__PURE__ */ k("div", { className: "flex-1 min-w-0", children: [
@@ -2347,7 +2345,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2347
2345
  ] })
2348
2346
  }
2349
2347
  );
2350
- }, pa = 200, va = 8, ba = 2, ka = ({
2348
+ }, va = 200, ba = 8, ka = 2, Ca = ({
2351
2349
  currentIndex: e,
2352
2350
  totalCount: n,
2353
2351
  icons: t,
@@ -2374,7 +2372,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2374
2372
  }));
2375
2373
  }
2376
2374
  }, [g == null ? void 0 : g.lastDisplayedElement, w]);
2377
- const v = n > 0 ? e / n * 100 : 0, m = n > 0 ? Math.min(va * n, pa) : 0, D = n > 0 ? Math.max(m / n, ba) : 0;
2375
+ const v = n > 0 ? e / n * 100 : 0, m = n > 0 ? Math.min(ba * n, va) : 0, D = n > 0 ? Math.max(m / n, ka) : 0;
2378
2376
  return /* @__PURE__ */ k("div", { className: "w-full flex flex-row items-center gap-2 justify-center", children: [
2379
2377
  /* @__PURE__ */ u(
2380
2378
  "div",
@@ -2384,7 +2382,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2384
2382
  e === 0 ? "text-neutrals-700" : "text-primary"
2385
2383
  ),
2386
2384
  onClick: o,
2387
- children: t == null ? void 0 : t[On.PREVIOUS]
2385
+ children: t == null ? void 0 : t[Ln.PREVIOUS]
2388
2386
  }
2389
2387
  ),
2390
2388
  /* @__PURE__ */ k("div", { className: "flex flex-col items-center gap-1 pt-[20px]", children: [
@@ -2422,7 +2420,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2422
2420
  ),
2423
2421
  onClick: i,
2424
2422
  ref: c,
2425
- children: t == null ? void 0 : t[On.NEXT]
2423
+ children: t == null ? void 0 : t[Ln.NEXT]
2426
2424
  }
2427
2425
  ),
2428
2426
  d && /* @__PURE__ */ u(
@@ -2434,7 +2432,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2434
2432
  }
2435
2433
  )
2436
2434
  ] });
2437
- }, Ca = ({
2435
+ }, Na = ({
2438
2436
  limitAmount: e,
2439
2437
  titles: n,
2440
2438
  openAdvancedView: t
@@ -2504,7 +2502,7 @@ const ha = ({ attachment: e, className: n = "" }) => {
2504
2502
  )
2505
2503
  ] });
2506
2504
  };
2507
- function Na(e, n, t) {
2505
+ function Da(e, n, t) {
2508
2506
  var s, a, d, f;
2509
2507
  const r = (a = ((s = e.getZr()) == null ? void 0 : s.painter).getRenderedCanvas()) == null ? void 0 : a.getContext("2d");
2510
2508
  if (!r) return 0;
@@ -2513,7 +2511,7 @@ function Na(e, n, t) {
2513
2511
  const c = r.measureText(n).width, h = t.itemWidth ?? 25, l = t.itemGap ?? 10;
2514
2512
  return c + h + l;
2515
2513
  }
2516
- const Da = ({ option: e, style: n }) => {
2514
+ const Ma = ({ option: e, style: n }) => {
2517
2515
  const t = ue(null), [r, o] = N(e), i = _(() => {
2518
2516
  var D, C, p;
2519
2517
  const c = (C = (D = t.current) == null ? void 0 : D.getEchartsInstance) == null ? void 0 : C.call(D);
@@ -2525,7 +2523,7 @@ const Da = ({ option: e, style: n }) => {
2525
2523
  let g = 0;
2526
2524
  f.forEach((M) => {
2527
2525
  const b = M.option.name || "";
2528
- g += Na(c, b, s);
2526
+ g += Da(c, b, s);
2529
2527
  });
2530
2528
  const v = Math.max(1, Math.ceil(g / l)) * (+a + +d + 6), m = 20;
2531
2529
  o((M) => ({
@@ -2545,7 +2543,7 @@ const Da = ({ option: e, style: n }) => {
2545
2543
  window.removeEventListener("resize", c);
2546
2544
  };
2547
2545
  }, [e, i]), /* @__PURE__ */ u(ro, { ref: t, option: r, style: n });
2548
- }, Ma = ({
2546
+ }, Aa = ({
2549
2547
  attachment: e,
2550
2548
  icons: n,
2551
2549
  openAdvancedView: t,
@@ -2564,8 +2562,8 @@ const Da = ({ option: e, style: n }) => {
2564
2562
  );
2565
2563
  }, [i, h, s]), O(() => {
2566
2564
  var p;
2567
- g && w && !i && (Xl(g) && (v == null || v(
2568
- Zl(g)
2565
+ g && w && !i && (ql(g) && (v == null || v(
2566
+ Xl(g)
2569
2567
  ), (p = m == null ? void 0 : m.current) == null || p.scrollIntoView({
2570
2568
  block: "center",
2571
2569
  behavior: "smooth"
@@ -2583,7 +2581,7 @@ const Da = ({ option: e, style: n }) => {
2583
2581
  }, [h]), C = _(() => {
2584
2582
  a((p) => Math.max(p - 1, 0));
2585
2583
  }, []);
2586
- return i ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ u("div", { className: "chart-attachment w-full h-full", ref: m, children: e.charting_data && /* @__PURE__ */ u("div", { className: "flex flex-col w-full h-full gap-4", children: h.length == 0 || d == null ? /* @__PURE__ */ u("h4", { className: "ml-1", children: (o == null ? void 0 : o.chartInfo) || "No data" }) : /* @__PURE__ */ k(se, { children: [
2584
+ return i ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ u("div", { className: "chart-attachment w-full h-full", ref: m, children: e.charting_data && /* @__PURE__ */ u("div", { className: "flex flex-col w-full h-full gap-4", children: h.length == 0 || d == null ? /* @__PURE__ */ u("h4", { className: "ml-1", children: (o == null ? void 0 : o.chartInfo) || "No data" }) : /* @__PURE__ */ k(se, { children: [
2587
2585
  /* @__PURE__ */ k("div", { className: "flex flex-col gap-1", children: [
2588
2586
  /* @__PURE__ */ k("h3", { className: "chart-attachment-title", children: [
2589
2587
  (o == null ? void 0 : o.chart) || "Chart",
@@ -2605,7 +2603,7 @@ const Da = ({ option: e, style: n }) => {
2605
2603
  children: [
2606
2604
  /* @__PURE__ */ k("div", { className: "flex flex-col flex-1 min-h-0 min-w-0 gap-4", children: [
2607
2605
  /* @__PURE__ */ u(
2608
- Da,
2606
+ Ma,
2609
2607
  {
2610
2608
  option: d.config,
2611
2609
  style: {
@@ -2616,7 +2614,7 @@ const Da = ({ option: e, style: n }) => {
2616
2614
  }
2617
2615
  ),
2618
2616
  d.limitedByRowsAmountTo && /* @__PURE__ */ u(
2619
- Ca,
2617
+ Na,
2620
2618
  {
2621
2619
  limitAmount: d.limitedByRowsAmountTo,
2622
2620
  openAdvancedView: t,
@@ -2624,7 +2622,7 @@ const Da = ({ option: e, style: n }) => {
2624
2622
  }
2625
2623
  ),
2626
2624
  h.length > 1 && /* @__PURE__ */ u(
2627
- ka,
2625
+ Ca,
2628
2626
  {
2629
2627
  icons: n,
2630
2628
  currentIndex: s,
@@ -2645,13 +2643,13 @@ const Da = ({ option: e, style: n }) => {
2645
2643
  }
2646
2644
  )
2647
2645
  ] }) }) });
2648
- }, Hn = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Aa = (e, n) => {
2646
+ }, Hn = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), xa = (e, n) => {
2649
2647
  var c, h, l;
2650
2648
  const t = (c = e == null ? void 0 : e.dataSets) == null ? void 0 : c[0], r = (h = e == null ? void 0 : e.structures) == null ? void 0 : h[0], o = ((l = r == null ? void 0 : r.attributes) == null ? void 0 : l.dimensionGroup) || [], i = t == null ? void 0 : t.dimensionGroupAttributes;
2651
2649
  return new Map(
2652
2650
  o.map((s) => {
2653
2651
  var g;
2654
- const a = (g = s == null ? void 0 : s.relationship) == null ? void 0 : g.dimensions, { codedSeriesKey: d, decodedSeriesKey: f } = xa(e, n, a);
2652
+ const a = (g = s == null ? void 0 : s.relationship) == null ? void 0 : g.dimensions, { codedSeriesKey: d, decodedSeriesKey: f } = Ea(e, n, a);
2655
2653
  return [
2656
2654
  s.id,
2657
2655
  {
@@ -2662,7 +2660,7 @@ const Da = ({ option: e, style: n }) => {
2662
2660
  ];
2663
2661
  })
2664
2662
  );
2665
- }, xa = (e, n, t) => {
2663
+ }, Ea = (e, n, t) => {
2666
2664
  var h, l, s;
2667
2665
  const r = (h = e == null ? void 0 : e.structures) == null ? void 0 : h[0], o = [
2668
2666
  ...(r == null ? void 0 : r.dimensions.series) || [],
@@ -2686,7 +2684,7 @@ const Da = ({ option: e, style: n }) => {
2686
2684
  return;
2687
2685
  const t = (i = e == null ? void 0 : e.values) == null ? void 0 : i[n], r = typeof n == "object" && !Array.isArray(n), o = Array.isArray(n);
2688
2686
  return t || (r || o ? { values: n } : { value: n == null ? void 0 : n.toString() });
2689
- }, Ea = (e) => {
2687
+ }, ya = (e) => {
2690
2688
  const n = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.id), t = (e == null ? void 0 : e.values) || (e == null ? void 0 : e.ids);
2691
2689
  return n != null ? [n] : t || [null];
2692
2690
  }, Bo = (e, n, t) => {
@@ -2695,7 +2693,7 @@ const Da = ({ option: e, style: n }) => {
2695
2693
  return n;
2696
2694
  const r = (i = (o = t == null ? void 0 : t.get(e || "")) == null ? void 0 : o.codes) == null ? void 0 : i.find((c) => (c == null ? void 0 : c.id) === n);
2697
2695
  return (r == null ? void 0 : r.name) || n;
2698
- }, ya = (e, n, t, r = Ge.EN) => {
2696
+ }, Sa = (e, n, t, r = Ge.EN) => {
2699
2697
  var l;
2700
2698
  const o = (l = t == null ? void 0 : t.dataStructureComponents) == null ? void 0 : l.dimensionList, i = [
2701
2699
  ...(o == null ? void 0 : o.dimensions) || [],
@@ -2715,14 +2713,14 @@ const Da = ({ option: e, style: n }) => {
2715
2713
  c.push(`${g}: ${w}`);
2716
2714
  }
2717
2715
  }), c;
2718
- }, Sa = (e, n, t, r, o = Ge.EN) => {
2716
+ }, Oa = (e, n, t, r, o = Ge.EN) => {
2719
2717
  var h, l, s, a;
2720
2718
  if (!e || !n || !r)
2721
2719
  return [];
2722
- const i = ((s = (l = (h = e == null ? void 0 : e.structures) == null ? void 0 : h[0]) == null ? void 0 : l.attributes) == null ? void 0 : s.dimensionGroup) || [], c = Aa(e, r);
2720
+ const i = ((s = (l = (h = e == null ? void 0 : e.structures) == null ? void 0 : h[0]) == null ? void 0 : l.attributes) == null ? void 0 : s.dimensionGroup) || [], c = xa(e, r);
2723
2721
  return ((a = i == null ? void 0 : i.map((d, f) => {
2724
2722
  var m;
2725
- const g = c == null ? void 0 : c.get(d == null ? void 0 : d.id), w = t == null ? void 0 : t.get(d == null ? void 0 : d.id), v = Ea(
2723
+ const g = c == null ? void 0 : c.get(d == null ? void 0 : d.id), w = t == null ? void 0 : t.get(d == null ? void 0 : d.id), v = ya(
2726
2724
  Ta(d, (m = g == null ? void 0 : g.values) == null ? void 0 : m[f])
2727
2725
  );
2728
2726
  return {
@@ -2735,17 +2733,17 @@ const Da = ({ option: e, style: n }) => {
2735
2733
  t
2736
2734
  ) || ""
2737
2735
  ) : v,
2738
- attachedKeysTitles: ya(
2736
+ attachedKeysTitles: Sa(
2739
2737
  g == null ? void 0 : g.decodedSeriesKey,
2740
2738
  t,
2741
2739
  n
2742
2740
  )
2743
2741
  };
2744
2742
  })) == null ? void 0 : a.filter(({ value: d }) => d == null ? void 0 : d.some((f) => !!f))) || [];
2745
- }, Oa = (e) => {
2743
+ }, La = (e) => {
2746
2744
  var n, t;
2747
2745
  return (t = e == null ? void 0 : e.data[((n = e == null ? void 0 : e.colDef) == null ? void 0 : n.field) || 0]) == null ? void 0 : t.obsAttributes;
2748
- }, La = (e) => {
2746
+ }, _a = (e) => {
2749
2747
  var n;
2750
2748
  return (n = e == null ? void 0 : e.data) == null ? void 0 : n.attributes;
2751
2749
  }, Wo = (e, n) => Object.entries(e == null ? void 0 : e.data).filter(([t]) => n == null ? void 0 : n.get(t)).map(([t, r]) => ({ name: t, value: String(r) })), vr = (e, n, t) => {
@@ -2766,7 +2764,7 @@ const Da = ({ option: e, style: n }) => {
2766
2764
  })) || [], Cn = (e, n, t) => ({
2767
2765
  title: (t == null ? void 0 : t.dataset) || "Dataset",
2768
2766
  value: me(e, n)
2769
- }), _a = (e, n, t, r) => [
2767
+ }), Ra = (e, n, t, r) => [
2770
2768
  Cn(e, t, r),
2771
2769
  { title: (r == null ? void 0 : r.agency) ?? "Agency", value: e == null ? void 0 : e.agencyID },
2772
2770
  { title: (r == null ? void 0 : r.lastUpdated) ?? "Last updated", value: n }
@@ -2794,14 +2792,14 @@ const Da = ({ option: e, style: n }) => {
2794
2792
  c,
2795
2793
  zo(t, r)
2796
2794
  ] : [c];
2797
- }, Ra = (e) => {
2795
+ }, Ia = (e) => {
2798
2796
  var r, o, i, c, h;
2799
2797
  const n = ((o = (r = e == null ? void 0 : e.dataSets) == null ? void 0 : r[0]) == null ? void 0 : o.attributes) || [], t = ((h = (c = (i = e == null ? void 0 : e.structures) == null ? void 0 : i[0]) == null ? void 0 : c.attributes) == null ? void 0 : h.dataSet) || [];
2800
2798
  return n != null && n.length ? t.map((l, s) => {
2801
2799
  var a;
2802
2800
  return ((a = l == null ? void 0 : l.values) == null ? void 0 : a.length) > 0 ? { ...l } : { ...l, values: [{ value: n == null ? void 0 : n[s] }] };
2803
2801
  }) : t;
2804
- }, Ia = (e, n, t) => (e == null ? void 0 : e.map((r) => {
2802
+ }, Va = (e, n, t) => (e == null ? void 0 : e.map((r) => {
2805
2803
  var d, f, g, w, v, m, D, C;
2806
2804
  const o = r == null ? void 0 : r.id, i = ((f = (d = r == null ? void 0 : r.values) == null ? void 0 : d[0]) == null ? void 0 : f.value) || ((w = (g = r == null ? void 0 : r.values) == null ? void 0 : g[0]) == null ? void 0 : w.id), c = (m = (v = r == null ? void 0 : r.values) == null ? void 0 : v[0]) == null ? void 0 : m.ids, h = n == null ? void 0 : n.get(o), l = (D = h == null ? void 0 : h.codes) != null && D.length ? h : void 0, s = me(
2807
2805
  (C = l == null ? void 0 : l.codes) == null ? void 0 : C.find((p) => (p == null ? void 0 : p.id) === i),
@@ -2820,7 +2818,7 @@ const Da = ({ option: e, style: n }) => {
2820
2818
  title: me(h, t) || o,
2821
2819
  value: c ? a : s
2822
2820
  };
2823
- }).filter(({ value: r }) => !!r)) || [], Va = ({
2821
+ }).filter(({ value: r }) => !!r)) || [], Pa = ({
2824
2822
  title: e,
2825
2823
  value: n
2826
2824
  }) => {
@@ -2842,7 +2840,7 @@ const Da = ({ option: e, style: n }) => {
2842
2840
  }
2843
2841
  )
2844
2842
  ] });
2845
- }, Zn = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Pa = ({
2843
+ }, Zn = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M11.3301 6.25L8.00008 9.75L4.67008 6.25L11.3301 6.25Z", fill: "currentColor" })), Ha = ({
2846
2844
  title: e,
2847
2845
  value: n,
2848
2846
  attachedKeysTitles: t,
@@ -2939,7 +2937,7 @@ const Da = ({ option: e, style: n }) => {
2939
2937
  children: [
2940
2938
  /* @__PURE__ */ k("div", { className: "metadata-content overflow-hidden h-full", children: [
2941
2939
  (n == null ? void 0 : n.length) > 0 && /* @__PURE__ */ u("div", { className: "metadata-description", children: n == null ? void 0 : n.map((s) => /* @__PURE__ */ u(
2942
- Va,
2940
+ Pa,
2943
2941
  {
2944
2942
  title: s == null ? void 0 : s.title,
2945
2943
  value: s == null ? void 0 : s.value
@@ -2947,7 +2945,7 @@ const Da = ({ option: e, style: n }) => {
2947
2945
  s == null ? void 0 : s.title
2948
2946
  )) }),
2949
2947
  /* @__PURE__ */ u("div", { className: "h-full overflow-y-auto metadata-list", children: e && (e == null ? void 0 : e.length) > 0 ? e == null ? void 0 : e.map((s) => /* @__PURE__ */ u(
2950
- Pa,
2948
+ Ha,
2951
2949
  {
2952
2950
  title: s == null ? void 0 : s.title,
2953
2951
  value: s == null ? void 0 : s.value,
@@ -2961,14 +2959,14 @@ const Da = ({ option: e, style: n }) => {
2961
2959
  ]
2962
2960
  }
2963
2961
  ) });
2964
- }, Ha = (e) => {
2962
+ }, Ga = (e) => {
2965
2963
  var D, C;
2966
2964
  const [n, t] = N(!1), r = ue(null), [o, i] = N(""), [c, h] = N(""), [l, s] = N(!1), { onboardingFileSchema: a, isShowOnboarding: d } = Ae(), f = ce(
2967
2965
  () => Fn(e == null ? void 0 : e.dataSetData),
2968
2966
  [e == null ? void 0 : e.dataSetData]
2969
2967
  ), g = ce(
2970
2968
  () => {
2971
- var p, M, b, A, y, E;
2969
+ var p, M, b, A, y, T;
2972
2970
  return [
2973
2971
  Cn(
2974
2972
  (M = (p = e == null ? void 0 : e.dataSetData) == null ? void 0 : p.dataflows) == null ? void 0 : M[0],
@@ -2981,15 +2979,15 @@ const Da = ({ option: e, style: n }) => {
2981
2979
  e == null ? void 0 : e.locale
2982
2980
  ),
2983
2981
  ...wn(
2984
- La(e),
2982
+ _a(e),
2985
2983
  f,
2986
2984
  e == null ? void 0 : e.locale
2987
2985
  ),
2988
- ...Sa(
2986
+ ...Oa(
2989
2987
  e == null ? void 0 : e.attributesData,
2990
2988
  (A = (b = e == null ? void 0 : e.dataSetData) == null ? void 0 : b.dataStructures) == null ? void 0 : A[0],
2991
2989
  f,
2992
- (E = (y = e == null ? void 0 : e.data) == null ? void 0 : y.originalData) == null ? void 0 : E.parsedTimeSeriesValue,
2990
+ (T = (y = e == null ? void 0 : e.data) == null ? void 0 : y.originalData) == null ? void 0 : T.parsedTimeSeriesValue,
2993
2991
  e == null ? void 0 : e.locale
2994
2992
  )
2995
2993
  ];
@@ -3056,14 +3054,14 @@ const Da = ({ option: e, style: n }) => {
3056
3054
  }
3057
3055
  )
3058
3056
  ] });
3059
- }, Ga = (e) => {
3057
+ }, Ba = (e) => {
3060
3058
  var s, a;
3061
3059
  const [n, t] = N(!1), r = ce(
3062
3060
  () => Fn(e == null ? void 0 : e.dataSetData),
3063
3061
  [e == null ? void 0 : e.dataSetData]
3064
3062
  ), o = ce(
3065
3063
  () => wn(
3066
- Oa(e),
3064
+ La(e),
3067
3065
  r,
3068
3066
  e == null ? void 0 : e.locale
3069
3067
  ),
@@ -3136,7 +3134,7 @@ const Da = ({ option: e, style: n }) => {
3136
3134
  }
3137
3135
  )
3138
3136
  ] });
3139
- }, Ba = ({
3137
+ }, Wa = ({
3140
3138
  attachment: e,
3141
3139
  isDataLoading: n,
3142
3140
  chartColumn: t,
@@ -3148,22 +3146,22 @@ const Da = ({ option: e, style: n }) => {
3148
3146
  if (e.grid_data == null)
3149
3147
  c(!0);
3150
3148
  else {
3151
- const E = e.grid_data.columns.map((I) => I.colId === gn ? { ...I, hide: !t } : I);
3152
- l(e.grid_data.data), a(E), c(!1);
3149
+ const T = e.grid_data.columns.map((I) => I.colId === gn ? { ...I, hide: !t } : I);
3150
+ l(e.grid_data.data), a(T), c(!1);
3153
3151
  }
3154
3152
  }, [e.grid_data, t]), O(() => {
3155
3153
  h && f(Ho(h.length));
3156
3154
  }, [h]), O(() => {
3157
3155
  if (M) {
3158
- const { title: E, description: I } = Pe(
3156
+ const { title: T, description: I } = Pe(
3159
3157
  de.DATA_GRID,
3160
3158
  o
3161
3159
  );
3162
- v(E), D(I);
3160
+ v(T), D(I);
3163
3161
  }
3164
3162
  }, [o, M]), O(() => {
3165
- var E;
3166
- b && !((E = b == null ? void 0 : b.infoElements) != null && E.dataGrid) && (A == null || A({
3163
+ var T;
3164
+ b && !((T = b == null ? void 0 : b.infoElements) != null && T.dataGrid) && (A == null || A({
3167
3165
  ...b,
3168
3166
  infoElements: {
3169
3167
  ...b == null ? void 0 : b.infoElements,
@@ -3173,8 +3171,8 @@ const Da = ({ option: e, style: n }) => {
3173
3171
  }));
3174
3172
  }, [b, A]), O(() => {
3175
3173
  if (M) {
3176
- const E = (b == null ? void 0 : b.lastDisplayedElement) === de.DATA_GRID;
3177
- p(E), !i && !n && E && setTimeout(() => {
3174
+ const T = (b == null ? void 0 : b.lastDisplayedElement) === de.DATA_GRID;
3175
+ p(T), !i && !n && T && setTimeout(() => {
3178
3176
  var I;
3179
3177
  (I = g == null ? void 0 : g.current) == null || I.scrollIntoView({
3180
3178
  block: "end",
@@ -3201,15 +3199,15 @@ const Da = ({ option: e, style: n }) => {
3201
3199
  tooltipShowDelay: 0,
3202
3200
  tooltipShowMode: "whenTruncated",
3203
3201
  components: {
3204
- [Po]: Ha,
3205
- [Vo]: Ga,
3206
- [na]: Io
3202
+ [Po]: Ga,
3203
+ [Vo]: Ba,
3204
+ [ta]: Io
3207
3205
  }
3208
3206
  }
3209
3207
  ),
3210
3208
  [h, s]
3211
3209
  );
3212
- return i || n ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ k("div", { className: "w-full h-full", children: [
3210
+ return i || n ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ k("div", { className: "w-full h-full", children: [
3213
3211
  /* @__PURE__ */ u(
3214
3212
  "div",
3215
3213
  {
@@ -3231,7 +3229,7 @@ const Da = ({ option: e, style: n }) => {
3231
3229
  }
3232
3230
  )
3233
3231
  ] });
3234
- }, Wa = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Fa = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), za = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), $a = ({
3232
+ }, Fa = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), za = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), $a = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Ja = ({
3235
3233
  attachment: e,
3236
3234
  index: n,
3237
3235
  selectedAttachmentIndex: t,
@@ -3241,7 +3239,7 @@ const Da = ({ option: e, style: n }) => {
3241
3239
  titles: c
3242
3240
  }) => {
3243
3241
  const h = ue(null), [l, s] = N(""), [a, d] = N(""), [f, g] = N(!1), { onboardingFileSchema: w, isShowOnboarding: v } = Ae(), m = _(
3244
- (C, p = "") => o ? $l(C) || on(C) ? /* @__PURE__ */ u(So, { className: p }) : fn(C) ? /* @__PURE__ */ u(Fa, { className: p }) : Un(C) ? /* @__PURE__ */ u(za, { className: p }) : Eo(C) ? /* @__PURE__ */ u(Wa, { className: p }) : null : null,
3242
+ (C, p = "") => o ? Jl(C) || on(C) ? /* @__PURE__ */ u(So, { className: p }) : fn(C) ? /* @__PURE__ */ u(za, { className: p }) : Un(C) ? /* @__PURE__ */ u($a, { className: p }) : To(C) ? /* @__PURE__ */ u(Fa, { className: p }) : null : null,
3245
3243
  [o]
3246
3244
  ), D = _(
3247
3245
  (C) => fn(C) ? i || "Data Grid" : C.title,
@@ -3289,15 +3287,15 @@ const Da = ({ option: e, style: n }) => {
3289
3287
  },
3290
3288
  e.index || n
3291
3289
  );
3292
- }, Ja = ({ attachments: e, ...n }) => /* @__PURE__ */ u("div", { className: "flex items-center w-full flex-wrap attachments-tabs", children: e.map((t, r) => /* @__PURE__ */ u(
3293
- $a,
3290
+ }, Ua = ({ attachments: e, ...n }) => /* @__PURE__ */ u("div", { className: "flex items-center w-full flex-wrap attachments-tabs", children: e.map((t, r) => /* @__PURE__ */ u(
3291
+ Ja,
3294
3292
  {
3295
3293
  attachment: t,
3296
3294
  index: r,
3297
3295
  ...n
3298
3296
  },
3299
3297
  r
3300
- )) }), Ua = ({
3298
+ )) }), ja = ({
3301
3299
  id: e,
3302
3300
  title: n,
3303
3301
  version: t,
@@ -3372,7 +3370,7 @@ const Da = ({ option: e, style: n }) => {
3372
3370
  ),
3373
3371
  children: [
3374
3372
  /* @__PURE__ */ u("div", { className: "flex items-center w-full overflow-y-auto gap-4 sm:w-[calc(100%-30px)]", children: e == null ? void 0 : e.map((b) => /* @__PURE__ */ u(
3375
- Ua,
3373
+ ja,
3376
3374
  {
3377
3375
  id: b == null ? void 0 : b.id,
3378
3376
  title: me(b, n || Ge.EN),
@@ -3431,7 +3429,7 @@ const Uo = ({
3431
3429
  selectDataset: C,
3432
3430
  onAdvancedViewOpen: p
3433
3431
  }) => {
3434
- const [M, b] = N(0), [A, y] = N(null), { isOpenedAdvancedView: E, setIsOpenedAdvancedView: I } = Be(), [T, x] = N(le.Closed), [S, $] = N(
3432
+ const [M, b] = N(0), [A, y] = N(null), { isOpenedAdvancedView: T, setIsOpenedAdvancedView: I } = Be(), [E, x] = N(le.Closed), [S, $] = N(
3435
3433
  null
3436
3434
  ), [F, P] = N(!1), [L, B] = N(), [G, z] = N(), Z = {
3437
3435
  downloadDataSet: n.downloadDataSet
@@ -3459,8 +3457,8 @@ const Uo = ({
3459
3457
  }, [x]), he = _((Ce) => {
3460
3458
  $(Ce), x(le.Opened);
3461
3459
  }, []);
3462
- return !e || e.length === 0 ? null : /* @__PURE__ */ u(se, { children: E && !c ? /* @__PURE__ */ u(
3463
- Jl,
3460
+ return !e || e.length === 0 ? null : /* @__PURE__ */ u(se, { children: T && !c ? /* @__PURE__ */ u(
3461
+ Ul,
3464
3462
  {
3465
3463
  icon: r == null ? void 0 : r.advanceViewIcon,
3466
3464
  title: (r == null ? void 0 : r.openAdvanceViewTitle) ?? "Opened in Advanced view"
@@ -3470,12 +3468,12 @@ const Uo = ({
3470
3468
  {
3471
3469
  className: H(
3472
3470
  "space-y-3 max-w-full max-h-full h-full",
3473
- !E && !i ? "pt-5" : "pt-0"
3471
+ !T && !i ? "pt-5" : "pt-0"
3474
3472
  ),
3475
3473
  children: [
3476
- !E && F ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ k(se, { children: [
3477
- i && !E && /* @__PURE__ */ u(
3478
- jl,
3474
+ !T && F ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ k(se, { children: [
3475
+ i && !T && /* @__PURE__ */ u(
3476
+ Yl,
3479
3477
  {
3480
3478
  titles: {
3481
3479
  queryUpdatedManuallyTitle: t == null ? void 0 : t.queryUpdatedManually,
@@ -3485,7 +3483,7 @@ const Uo = ({
3485
3483
  attachmentInfoList: a
3486
3484
  }
3487
3485
  ),
3488
- !E && (d == null ? void 0 : d.length) != null && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ u(
3486
+ !T && (d == null ? void 0 : d.length) != null && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ u(
3489
3487
  Jo,
3490
3488
  {
3491
3489
  datasets: d,
@@ -3502,13 +3500,13 @@ const Uo = ({
3502
3500
  "div",
3503
3501
  {
3504
3502
  className: H(
3505
- !E && (d == null ? void 0 : d.length) && "attachments-bordered",
3503
+ !T && (d == null ? void 0 : d.length) && "attachments-bordered",
3506
3504
  "attachments-wrapper h-full min-h-0"
3507
3505
  ),
3508
3506
  children: /* @__PURE__ */ k("div", { className: "flex flex-col max-w-full items-center gap-4 h-full", children: [
3509
3507
  /* @__PURE__ */ k("div", { className: "flex min-w-0 w-full justify-between items-center", children: [
3510
3508
  /* @__PURE__ */ u(
3511
- Ja,
3509
+ Ua,
3512
3510
  {
3513
3511
  dataGridTitle: o == null ? void 0 : o.dataGridTitle,
3514
3512
  attachments: e,
@@ -3519,7 +3517,7 @@ const Uo = ({
3519
3517
  }
3520
3518
  ),
3521
3519
  A && fn(A) && /* @__PURE__ */ u(
3522
- Fl,
3520
+ zl,
3523
3521
  {
3524
3522
  onDownloadTypeSelect: he,
3525
3523
  icon: o == null ? void 0 : o.downloadIcon,
@@ -3531,8 +3529,8 @@ const Uo = ({
3531
3529
  )
3532
3530
  ] }),
3533
3531
  A != null && /* @__PURE__ */ k("div", { className: "flex flex-1 w-full justify-center min-h-0", children: [
3534
- zl(A) && /* @__PURE__ */ u(
3535
- Yl,
3532
+ $l(A) && /* @__PURE__ */ u(
3533
+ Kl,
3536
3534
  {
3537
3535
  actions: n,
3538
3536
  downloadTitles: o == null ? void 0 : o.downloadTitle,
@@ -3540,48 +3538,48 @@ const Uo = ({
3540
3538
  }
3541
3539
  ),
3542
3540
  yo(A) && /* @__PURE__ */ u(
3543
- ca,
3541
+ sa,
3544
3542
  {
3545
3543
  actions: n,
3546
3544
  attachment: A
3547
3545
  }
3548
3546
  ),
3549
3547
  fn(A) && /* @__PURE__ */ u(
3550
- Ba,
3548
+ Wa,
3551
3549
  {
3552
3550
  attachment: A,
3553
3551
  isDataLoading: g,
3554
- chartColumn: E,
3555
- fixHeight: !E,
3552
+ chartColumn: T,
3553
+ fixHeight: !T,
3556
3554
  titles: t
3557
3555
  }
3558
3556
  ),
3559
3557
  on(A) && /* @__PURE__ */ u(
3560
- Ma,
3558
+ Aa,
3561
3559
  {
3562
3560
  titles: t,
3563
3561
  attachment: A,
3564
3562
  icons: o == null ? void 0 : o.chartingIcons,
3565
- openAdvancedView: E ? void 0 : te,
3566
- fixHeight: !E
3563
+ openAdvancedView: T ? void 0 : te,
3564
+ fixHeight: !T
3567
3565
  }
3568
3566
  ),
3569
3567
  Un(A) && /* @__PURE__ */ u(
3570
- ma,
3568
+ pa,
3571
3569
  {
3572
3570
  attachment: A,
3573
3571
  openLinkTitle: o == null ? void 0 : o.openLinkTitle
3574
3572
  }
3575
3573
  ),
3576
- Eo(A) && /* @__PURE__ */ u(ha, { attachment: A })
3574
+ To(A) && /* @__PURE__ */ u(fa, { attachment: A })
3577
3575
  ] })
3578
3576
  ] })
3579
3577
  }
3580
3578
  )
3581
3579
  ] }),
3582
3580
  /* @__PURE__ */ k(se, { children: [
3583
- T === le.Opened && /* @__PURE__ */ u(
3584
- Bl,
3581
+ E === le.Opened && /* @__PURE__ */ u(
3582
+ Wl,
3585
3583
  {
3586
3584
  actions: Z,
3587
3585
  onCloseModal: ie,
@@ -3600,7 +3598,7 @@ const Uo = ({
3600
3598
  }
3601
3599
  ),
3602
3600
  L && /* @__PURE__ */ u(
3603
- Ti,
3601
+ Ei,
3604
3602
  {
3605
3603
  alertDetails: G,
3606
3604
  successIcon: o == null ? void 0 : o.successDownloadIcon,
@@ -3618,12 +3616,12 @@ var Je = /* @__PURE__ */ ((e) => (e.FLAT_LIST = "FLAT_LIST", e.HIERARCHY = "HIER
3618
3616
  function jo(e) {
3619
3617
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3620
3618
  }
3621
- var Ke = { exports: {} }, ja = Ke.exports, br;
3622
- function Ya() {
3619
+ var Ke = { exports: {} }, Ya = Ke.exports, br;
3620
+ function Ka() {
3623
3621
  return br || (br = 1, (function(e, n) {
3624
3622
  (function(t, r) {
3625
3623
  r(n);
3626
- })(ja, (function(t) {
3624
+ })(Ya, (function(t) {
3627
3625
  /*! *****************************************************************************
3628
3626
  Copyright (c) Microsoft Corporation.
3629
3627
 
@@ -4188,7 +4186,7 @@ function Ya() {
4188
4186
  time_24hr: !0
4189
4187
  };
4190
4188
  A.l10ns.cs = y, A.l10ns;
4191
- var E = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4189
+ var T = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4192
4190
  l10ns: {}
4193
4191
  }, I = {
4194
4192
  weekdays: {
@@ -4239,8 +4237,8 @@ function Ya() {
4239
4237
  },
4240
4238
  time_24hr: !0
4241
4239
  };
4242
- E.l10ns.cy = I, E.l10ns;
4243
- var T = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4240
+ T.l10ns.cy = I, T.l10ns;
4241
+ var E = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4244
4242
  l10ns: {}
4245
4243
  }, x = {
4246
4244
  weekdays: {
@@ -4293,7 +4291,7 @@ function Ya() {
4293
4291
  weekAbbreviation: "uge",
4294
4292
  time_24hr: !0
4295
4293
  };
4296
- T.l10ns.da = x, T.l10ns;
4294
+ E.l10ns.da = x, E.l10ns;
4297
4295
  var S = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4298
4296
  l10ns: {}
4299
4297
  }, $ = {
@@ -4858,7 +4856,7 @@ function Ya() {
4858
4856
  minuteAriaLabel: "λεπτό"
4859
4857
  };
4860
4858
  Se.l10ns.gr = Me, Se.l10ns;
4861
- var Ee = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4859
+ var Te = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4862
4860
  l10ns: {}
4863
4861
  }, Ne = {
4864
4862
  weekdays: {
@@ -4898,7 +4896,7 @@ function Ya() {
4898
4896
  rangeSeparator: " אל ",
4899
4897
  time_24hr: !0
4900
4898
  };
4901
- Ee.l10ns.he = Ne, Ee.l10ns;
4899
+ Te.l10ns.he = Ne, Te.l10ns;
4902
4900
  var Ie = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
4903
4901
  l10ns: {}
4904
4902
  }, Oe = {
@@ -6056,9 +6054,9 @@ function Ya() {
6056
6054
  time_24hr: !0
6057
6055
  };
6058
6056
  At.l10ns.pa = xt, At.l10ns;
6059
- var Tt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
6057
+ var Et = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
6060
6058
  l10ns: {}
6061
- }, Et = {
6059
+ }, Tt = {
6062
6060
  weekdays: {
6063
6061
  shorthand: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
6064
6062
  longhand: [
@@ -6111,7 +6109,7 @@ function Ya() {
6111
6109
  return ".";
6112
6110
  }
6113
6111
  };
6114
- Tt.l10ns.pl = Et, Tt.l10ns;
6112
+ Et.l10ns.pl = Tt, Et.l10ns;
6115
6113
  var yt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
6116
6114
  l10ns: {}
6117
6115
  }, St = {
@@ -7061,7 +7059,7 @@ function Ya() {
7061
7059
  nn: Nt,
7062
7060
  no: Mt,
7063
7061
  pa: xt,
7064
- pl: Et,
7062
+ pl: Tt,
7065
7063
  pt: St,
7066
7064
  ro: Lt,
7067
7065
  ru: Rt,
@@ -7084,14 +7082,14 @@ function Ya() {
7084
7082
  }));
7085
7083
  })(Ke, Ke.exports)), Ke.exports;
7086
7084
  }
7087
- var Ka = Ya();
7088
- const Za = /* @__PURE__ */ jo(Ka);
7089
- var ln = { exports: {} }, Xa = ln.exports, kr;
7090
- function qa() {
7085
+ var Za = Ka();
7086
+ const Xa = /* @__PURE__ */ jo(Za);
7087
+ var ln = { exports: {} }, qa = ln.exports, kr;
7088
+ function Qa() {
7091
7089
  return kr || (kr = 1, (function(e, n) {
7092
7090
  (function(t, r) {
7093
7091
  e.exports = r();
7094
- })(Xa, (function() {
7092
+ })(qa, (function() {
7095
7093
  /*! *****************************************************************************
7096
7094
  Copyright (c) Microsoft Corporation.
7097
7095
 
@@ -7146,8 +7144,8 @@ function qa() {
7146
7144
  function f() {
7147
7145
  if (a.rContainer) {
7148
7146
  o(a.rContainer);
7149
- for (var T = 0; T < a.monthElements.length; T++) {
7150
- var x = a.monthElements[T];
7147
+ for (var E = 0; E < a.monthElements.length; E++) {
7148
+ var x = a.monthElements[E];
7151
7149
  x.parentNode && x.parentNode.removeChild(x);
7152
7150
  }
7153
7151
  }
@@ -7158,33 +7156,33 @@ function qa() {
7158
7156
  function w() {
7159
7157
  if (d.monthsContainer) {
7160
7158
  o(d.monthsContainer);
7161
- for (var T = document.createDocumentFragment(), x = 0; x < 12; x++) {
7159
+ for (var E = document.createDocumentFragment(), x = 0; x < 12; x++) {
7162
7160
  var S = a.createDay("flatpickr-monthSelect-month", new Date(a.currentYear, x), 0, x);
7163
- S.dateObj.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && S.dateObj.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() && S.classList.add("today"), S.textContent = r(x, s.shorthand, a.l10n), S.addEventListener("click", C), T.appendChild(S);
7161
+ S.dateObj.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && S.dateObj.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() && S.classList.add("today"), S.textContent = r(x, s.shorthand, a.l10n), S.addEventListener("click", C), E.appendChild(S);
7164
7162
  }
7165
- d.monthsContainer.appendChild(T), a.config.minDate && a.currentYear === a.config.minDate.getFullYear() ? a.prevMonthNav.classList.add("flatpickr-disabled") : a.prevMonthNav.classList.remove("flatpickr-disabled"), a.config.maxDate && a.currentYear === a.config.maxDate.getFullYear() ? a.nextMonthNav.classList.add("flatpickr-disabled") : a.nextMonthNav.classList.remove("flatpickr-disabled");
7163
+ d.monthsContainer.appendChild(E), a.config.minDate && a.currentYear === a.config.minDate.getFullYear() ? a.prevMonthNav.classList.add("flatpickr-disabled") : a.prevMonthNav.classList.remove("flatpickr-disabled"), a.config.maxDate && a.currentYear === a.config.maxDate.getFullYear() ? a.nextMonthNav.classList.add("flatpickr-disabled") : a.nextMonthNav.classList.remove("flatpickr-disabled");
7166
7164
  }
7167
7165
  }
7168
7166
  function v() {
7169
- a._bind(a.prevMonthNav, "click", function(T) {
7170
- T.preventDefault(), T.stopPropagation(), a.changeYear(a.currentYear - 1), D(), w();
7171
- }), a._bind(a.nextMonthNav, "click", function(T) {
7172
- T.preventDefault(), T.stopPropagation(), a.changeYear(a.currentYear + 1), D(), w();
7173
- }), a._bind(d.monthsContainer, "mouseover", function(T) {
7174
- a.config.mode === "range" && a.onMouseOver(i(T), "flatpickr-monthSelect-month");
7167
+ a._bind(a.prevMonthNav, "click", function(E) {
7168
+ E.preventDefault(), E.stopPropagation(), a.changeYear(a.currentYear - 1), D(), w();
7169
+ }), a._bind(a.nextMonthNav, "click", function(E) {
7170
+ E.preventDefault(), E.stopPropagation(), a.changeYear(a.currentYear + 1), D(), w();
7171
+ }), a._bind(d.monthsContainer, "mouseover", function(E) {
7172
+ a.config.mode === "range" && a.onMouseOver(i(E), "flatpickr-monthSelect-month");
7175
7173
  });
7176
7174
  }
7177
7175
  function m() {
7178
7176
  if (a.rContainer && a.selectedDates.length) {
7179
- for (var T = a.rContainer.querySelectorAll(".flatpickr-monthSelect-month.selected"), x = 0; x < T.length; x++)
7180
- T[x].classList.remove("selected");
7177
+ for (var E = a.rContainer.querySelectorAll(".flatpickr-monthSelect-month.selected"), x = 0; x < E.length; x++)
7178
+ E[x].classList.remove("selected");
7181
7179
  var S = a.selectedDates[0].getMonth(), $ = a.rContainer.querySelector(".flatpickr-monthSelect-month:nth-child(" + (S + 1) + ")");
7182
7180
  $ && $.classList.add("selected");
7183
7181
  }
7184
7182
  }
7185
7183
  function D() {
7186
- var T = a.selectedDates[0];
7187
- if (T && (T = new Date(T), T.setFullYear(a.currentYear), a.config.minDate && T < a.config.minDate && (T = a.config.minDate), a.config.maxDate && T > a.config.maxDate && (T = a.config.maxDate), a.currentYear = T.getFullYear()), a.currentYearElement.value = String(a.currentYear), a.rContainer) {
7184
+ var E = a.selectedDates[0];
7185
+ if (E && (E = new Date(E), E.setFullYear(a.currentYear), a.config.minDate && E < a.config.minDate && (E = a.config.minDate), a.config.maxDate && E > a.config.maxDate && (E = a.config.maxDate), a.currentYear = E.getFullYear()), a.currentYearElement.value = String(a.currentYear), a.rContainer) {
7188
7186
  var x = a.rContainer.querySelectorAll(".flatpickr-monthSelect-month");
7189
7187
  x.forEach(function(S) {
7190
7188
  S.dateObj.setFullYear(a.currentYear), a.config.minDate && S.dateObj < a.config.minDate || a.config.maxDate && S.dateObj > a.config.maxDate ? S.classList.add("flatpickr-disabled") : S.classList.remove("flatpickr-disabled");
@@ -7192,16 +7190,16 @@ function qa() {
7192
7190
  }
7193
7191
  m();
7194
7192
  }
7195
- function C(T) {
7196
- T.preventDefault(), T.stopPropagation();
7197
- var x = i(T);
7193
+ function C(E) {
7194
+ E.preventDefault(), E.stopPropagation();
7195
+ var x = i(E);
7198
7196
  if (x instanceof Element && !x.classList.contains("flatpickr-disabled") && !x.classList.contains("notAllowed") && (p(x.dateObj), a.config.closeOnSelect)) {
7199
7197
  var S = a.config.mode === "single", $ = a.config.mode === "range" && a.selectedDates.length === 2;
7200
7198
  (S || $) && a.close();
7201
7199
  }
7202
7200
  }
7203
- function p(T) {
7204
- var x = new Date(a.currentYear, T.getMonth(), T.getDate()), S = [];
7201
+ function p(E) {
7202
+ var x = new Date(a.currentYear, E.getMonth(), E.getDate()), S = [];
7205
7203
  switch (a.config.mode) {
7206
7204
  case "single":
7207
7205
  S = [x];
@@ -7223,7 +7221,7 @@ function qa() {
7223
7221
  40: 3,
7224
7222
  38: -3
7225
7223
  };
7226
- function b(T, x, S, $) {
7224
+ function b(E, x, S, $) {
7227
7225
  var F = M[$.keyCode] !== void 0;
7228
7226
  if (!(!F && $.keyCode !== 13) && !(!a.rContainer || !d.monthsContainer)) {
7229
7227
  var P = a.rContainer.querySelector(".flatpickr-monthSelect-month.selected"), L = Array.prototype.indexOf.call(d.monthsContainer.children, document.activeElement);
@@ -7235,19 +7233,19 @@ function qa() {
7235
7233
  }
7236
7234
  }
7237
7235
  function A() {
7238
- var T;
7239
- ((T = a.config) === null || T === void 0 ? void 0 : T.mode) === "range" && a.selectedDates.length === 1 && a.clear(!1), a.selectedDates.length || w();
7236
+ var E;
7237
+ ((E = a.config) === null || E === void 0 ? void 0 : E.mode) === "range" && a.selectedDates.length === 1 && a.clear(!1), a.selectedDates.length || w();
7240
7238
  }
7241
7239
  function y() {
7242
7240
  s._stubbedCurrentMonth = a._initialDate.getMonth(), a._initialDate.setMonth(s._stubbedCurrentMonth), a.currentMonth = s._stubbedCurrentMonth;
7243
7241
  }
7244
- function E() {
7242
+ function T() {
7245
7243
  s._stubbedCurrentMonth && (a._initialDate.setMonth(s._stubbedCurrentMonth), a.currentMonth = s._stubbedCurrentMonth, delete s._stubbedCurrentMonth);
7246
7244
  }
7247
7245
  function I() {
7248
7246
  if (d.monthsContainer !== null)
7249
- for (var T = d.monthsContainer.querySelectorAll(".flatpickr-monthSelect-month"), x = 0; x < T.length; x++)
7250
- T[x].removeEventListener("click", C);
7247
+ for (var E = d.monthsContainer.querySelectorAll(".flatpickr-monthSelect-month"), x = 0; x < E.length; x++)
7248
+ E[x].removeEventListener("click", C);
7251
7249
  }
7252
7250
  return {
7253
7251
  onParseConfig: function() {
@@ -7266,11 +7264,11 @@ function qa() {
7266
7264
  }
7267
7265
  ],
7268
7266
  onDestroy: [
7269
- E,
7267
+ T,
7270
7268
  I,
7271
7269
  function() {
7272
- a.config.onClose = a.config.onClose.filter(function(T) {
7273
- return T !== A;
7270
+ a.config.onClose = a.config.onClose.filter(function(E) {
7271
+ return E !== A;
7274
7272
  });
7275
7273
  }
7276
7274
  ]
@@ -7281,11 +7279,11 @@ function qa() {
7281
7279
  }));
7282
7280
  })(ln)), ln.exports;
7283
7281
  }
7284
- var Qa = qa();
7285
- const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7282
+ var ec = Qa();
7283
+ const nc = /* @__PURE__ */ jo(ec), Cr = (e, n, t, r, o = !1, i) => {
7286
7284
  const c = {
7287
- ...Za[r]
7288
- }, h = ec;
7285
+ ...Xa[r]
7286
+ }, h = nc;
7289
7287
  o && (c.firstDayOfWeek = 1);
7290
7288
  const l = {
7291
7289
  minDate: t === rn.MONTH ? new Date(e.getFullYear(), e.getMonth()) : e,
@@ -7308,11 +7306,11 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7308
7306
  };
7309
7307
  }, Nr = (e) => {
7310
7308
  e != null && e.setMinutes(e.getMinutes() - e.getTimezoneOffset());
7311
- }, nc = {
7309
+ }, tc = {
7312
7310
  year: "numeric",
7313
7311
  month: "short",
7314
7312
  day: "numeric"
7315
- }, mn = (e, n) => (e == null ? void 0 : e.toLocaleDateString(n, nc)) || "", tc = (e, n) => {
7313
+ }, mn = (e, n) => (e == null ? void 0 : e.toLocaleDateString(n, tc)) || "", rc = (e, n) => {
7316
7314
  const { startPeriod: t, endPeriod: r } = e;
7317
7315
  if (!n.startPeriod && !n.endPeriod && t && r)
7318
7316
  return {
@@ -7331,7 +7329,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7331
7329
  )
7332
7330
  ) : n.endPeriod;
7333
7331
  return { startPeriod: o, endPeriod: i };
7334
- }, rc = (e, n) => {
7332
+ }, oc = (e, n) => {
7335
7333
  var l;
7336
7334
  const { endPeriod: t } = e, r = (t == null ? void 0 : t.getFullYear()) || (/* @__PURE__ */ new Date()).getFullYear(), o = r + +n, i = new Date(
7337
7335
  +n < 0 ? r : o,
@@ -7347,13 +7345,13 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7347
7345
  ),
7348
7346
  endPeriod: i
7349
7347
  };
7350
- }, oc = (e) => ({
7348
+ }, ic = (e) => ({
7351
7349
  quarterly: (e == null ? void 0 : e.quarterly) || "Q",
7352
7350
  monthly: (e == null ? void 0 : e.monthly) || "M"
7353
- }), ic = (e, n) => {
7354
- const t = oc(n);
7351
+ }), lc = (e, n) => {
7352
+ const t = ic(n);
7355
7353
  return Kr(e) && (t != null && t.quarterly) ? e == null ? void 0 : e.replace(/Q/g, t == null ? void 0 : t.quarterly) : Zr(e) && (t != null && t.monthly) ? e == null ? void 0 : e.replace(/M/g, t == null ? void 0 : t.monthly) : e;
7356
- }, lc = (e) => {
7354
+ }, ac = (e) => {
7357
7355
  var t;
7358
7356
  const n = [];
7359
7357
  return (t = e == null ? void 0 : e.filters) == null || t.forEach((r) => {
@@ -7363,7 +7361,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7363
7361
  value: r.values.join(",")
7364
7362
  });
7365
7363
  }), n;
7366
- }, ac = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
7364
+ }, cc = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
7367
7365
  var l;
7368
7366
  const i = (l = vn(
7369
7367
  n == null ? void 0 : n.codelists,
@@ -7388,7 +7386,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7388
7386
  ...t,
7389
7387
  isSelectedFilter: !1
7390
7388
  }
7391
- ), cc = (e, n, t) => e ? e.map((r) => (r == null ? void 0 : r.id) === n ? {
7389
+ ), sc = (e, n, t) => e ? e.map((r) => (r == null ? void 0 : r.id) === n ? {
7392
7390
  ...r,
7393
7391
  displayMode: t
7394
7392
  } : r) : [], Yo = (e) => (e == null ? void 0 : e.filter((n) => !!(n != null && n.isSelectedValue))) || [], Ko = (e) => e == null ? void 0 : e.map((n) => ({
@@ -7399,7 +7397,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7399
7397
  var t, r, o;
7400
7398
  return ((t = n.dimensionValues) == null ? void 0 : t.length) || ((r = n.timeRange) == null ? void 0 : r.startPeriod) || ((o = n.timeRange) == null ? void 0 : o.endPeriod);
7401
7399
  }
7402
- ), sc = (e) => (e == null ? void 0 : e.reduce(
7400
+ ), dc = (e) => (e == null ? void 0 : e.reduce(
7403
7401
  (n, t) => {
7404
7402
  var r;
7405
7403
  return (((r = t == null ? void 0 : t.dimensionValues) == null ? void 0 : r.length) ?? 0) + n;
@@ -7415,7 +7413,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7415
7413
  })),
7416
7414
  timeRange: void 0
7417
7415
  };
7418
- }, dc = (e, n) => e == null ? void 0 : e.map((t) => (t == null ? void 0 : t.id) === n ? Zo(t) : t), uc = (e) => e == null ? void 0 : e.map((n) => Zo(n)), hc = (e, n, t) => e.map((r) => {
7416
+ }, uc = (e, n) => e == null ? void 0 : e.map((t) => (t == null ? void 0 : t.id) === n ? Zo(t) : t), hc = (e) => e == null ? void 0 : e.map((n) => Zo(n)), fc = (e, n, t) => e.map((r) => {
7419
7417
  var c, h;
7420
7418
  const o = n == null ? void 0 : n.filters.find(
7421
7419
  (l) => l.componentCode === r.id
@@ -7429,7 +7427,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7429
7427
  (c = t == null ? void 0 : t[0]) == null ? void 0 : c.annotations
7430
7428
  ), a = l[0] ? an(l[0]) : null, d = l[1] ? an(l[1]) : null;
7431
7429
  let f = s;
7432
- return a && d && (f = s ? tc(
7430
+ return a && d && (f = s ? rc(
7433
7431
  { startPeriod: a, endPeriod: d },
7434
7432
  s
7435
7433
  ) : { startPeriod: a, endPeriod: d }), {
@@ -7447,15 +7445,15 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7447
7445
  }), Mr = (e) => e == null ? void 0 : e.map((n) => ({
7448
7446
  ...n,
7449
7447
  isDisabled: !0
7450
- })), fc = (e) => new Map(
7448
+ })), gc = (e) => new Map(
7451
7449
  e == null ? void 0 : e.map((n) => [
7452
7450
  n.id,
7453
7451
  { ...n, children: [] }
7454
7452
  ])
7455
- ), gc = (e) => {
7453
+ ), wc = (e) => {
7456
7454
  if (!e)
7457
7455
  return [];
7458
- const n = fc(e), t = [];
7456
+ const n = gc(e), t = [];
7459
7457
  return e.forEach((r) => {
7460
7458
  if (r && r.parent) {
7461
7459
  const o = n.get(r.parent), i = n.get(r.id);
@@ -7465,7 +7463,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7465
7463
  o && t.push(o);
7466
7464
  }
7467
7465
  }), t;
7468
- }, wc = (e, n = !1) => n ? `${e * sr - Ei}px` : `${e * sr}px`, Ze = (e) => {
7466
+ }, mc = (e, n = !1) => n ? `${e * sr - Ti}px` : `${e * sr}px`, Ze = (e) => {
7469
7467
  var n;
7470
7468
  return ((n = e == null ? void 0 : e.children) == null ? void 0 : n.reduce(
7471
7469
  (t, r) => [
@@ -7478,7 +7476,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7478
7476
  }, nn = (e, n) => e ? e.map((t) => ({
7479
7477
  ...t,
7480
7478
  isSelectedValue: n
7481
- })) : [], mc = (e) => {
7479
+ })) : [], pc = (e) => {
7482
7480
  var r, o;
7483
7481
  const n = (r = e.children) == null ? void 0 : r.every(
7484
7482
  (i) => i.isSelectedValue
@@ -7507,7 +7505,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7507
7505
  { ...e, isSelectedValue: !1 },
7508
7506
  ...nn(Ze(e), !1)
7509
7507
  ];
7510
- }, pc = (e) => [
7508
+ }, vc = (e) => [
7511
7509
  {
7512
7510
  key: Je.HIERARCHY,
7513
7511
  title: (e == null ? void 0 : e.hierarchy) || "Hierarchy"
@@ -7516,7 +7514,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7516
7514
  key: Je.FLAT_LIST,
7517
7515
  title: (e == null ? void 0 : e.flatList) || "Flat list"
7518
7516
  }
7519
- ], Tn = (e, n, t, r, o = Ge.EN) => {
7517
+ ], En = (e, n, t, r, o = Ge.EN) => {
7520
7518
  const i = n == null ? void 0 : n.map((c) => {
7521
7519
  const h = vn(
7522
7520
  t == null ? void 0 : t.codelists,
@@ -7563,14 +7561,14 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7563
7561
  const { id: r, dimensionValues: o } = t;
7564
7562
  t.isTimeDimension ? n = [
7565
7563
  ...n,
7566
- ...vc(t.timeRange, r)
7564
+ ...bc(t.timeRange, r)
7567
7565
  ] : n.push({
7568
7566
  componentCode: r,
7569
7567
  operator: un.EQUALS,
7570
7568
  value: ((i = o == null ? void 0 : o.filter((c) => c.isSelectedValue)) == null ? void 0 : i.map((c) => c.id).join(Fi)) || ""
7571
7569
  });
7572
7570
  }), n;
7573
- }, vc = (e, n) => e == null || e.startPeriod == null || e.endPeriod == null ? [] : [
7571
+ }, bc = (e, n) => e == null || e.startPeriod == null || e.endPeriod == null ? [] : [
7574
7572
  {
7575
7573
  componentCode: n,
7576
7574
  operator: un.GREATER_OR_EQUAL,
@@ -7581,14 +7579,14 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7581
7579
  operator: un.LESS_OR_EQUAL,
7582
7580
  value: xr(new Date(e.endPeriod), 1)
7583
7581
  }
7584
- ], bc = 1e3 * 60 * 60 * 24, xr = (e, n = 0) => {
7582
+ ], kc = 1e3 * 60 * 60 * 24, xr = (e, n = 0) => {
7585
7583
  e.setHours(0), e.setMinutes(0), e.setSeconds(0), e.setMinutes(e.getMinutes() - e.getTimezoneOffset());
7586
7584
  let t = e.getTime();
7587
- return t += n ? bc - 1 : 0, e = new Date(t), t.toString();
7588
- }, kc = (e, n, t) => (t == null ? void 0 : t.map((r) => ({
7585
+ return t += n ? kc - 1 : 0, e = new Date(t), t.toString();
7586
+ }, Cc = (e, n, t) => (t == null ? void 0 : t.map((r) => ({
7589
7587
  ...r,
7590
7588
  filters: (n == null ? void 0 : n.urn) === (r == null ? void 0 : r.urn) ? e : r == null ? void 0 : r.filters
7591
- }))) || [], Cc = (e) => e.map(
7589
+ }))) || [], Nc = (e) => e.map(
7592
7590
  (n) => {
7593
7591
  var t;
7594
7592
  return {
@@ -7597,25 +7595,25 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7597
7595
  values: ((t = n.dimensionValues) == null ? void 0 : t.map((r) => r.id)) || []
7598
7596
  };
7599
7597
  }
7600
- ), Nc = (e, n) => {
7598
+ ), Dc = (e, n) => {
7601
7599
  var i;
7602
7600
  const t = (i = n == null ? void 0 : n.timeDimensions) == null ? void 0 : i[0], r = zi(e, t) || null;
7603
7601
  return r ? Qr(r, t == null ? void 0 : t.id) : null;
7604
- }, Dc = (e, n) => {
7602
+ }, Mc = (e, n) => {
7605
7603
  const t = Ko(e), r = t.find(
7606
7604
  (o) => (o == null ? void 0 : o.isTimeDimension) && (o == null ? void 0 : o.timeRange)
7607
7605
  );
7608
7606
  return {
7609
7607
  filterKey: Wn(
7610
7608
  n || [],
7611
- Cc(t)
7609
+ Nc(t)
7612
7610
  ),
7613
7611
  timeFilter: Qr(
7614
7612
  r == null ? void 0 : r.timeRange,
7615
7613
  r == null ? void 0 : r.id
7616
7614
  )
7617
7615
  };
7618
- }, Mc = (e) => e == null ? void 0 : e.filter(
7616
+ }, Ac = (e) => e == null ? void 0 : e.filter(
7619
7617
  (n) => {
7620
7618
  var t;
7621
7619
  return n.timeRange || ((t = n.dimensionValues) == null ? void 0 : t.some((r) => r.isSelectedValue));
@@ -7626,19 +7624,19 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7626
7624
  componentCode: n == null ? void 0 : n.id,
7627
7625
  operator: cn.BETWEEN,
7628
7626
  values: [
7629
- Tr(((t = n == null ? void 0 : n.timeRange) == null ? void 0 : t.startPeriod) || void 0) || "",
7630
- Tr(((r = n == null ? void 0 : n.timeRange) == null ? void 0 : r.endPeriod) || void 0) || ""
7627
+ Er(((t = n == null ? void 0 : n.timeRange) == null ? void 0 : t.startPeriod) || void 0) || "",
7628
+ Er(((r = n == null ? void 0 : n.timeRange) == null ? void 0 : r.endPeriod) || void 0) || ""
7631
7629
  ]
7632
7630
  } : {
7633
7631
  componentCode: n == null ? void 0 : n.id,
7634
7632
  operator: cn.IN,
7635
7633
  values: ((i = (o = n == null ? void 0 : n.dimensionValues) == null ? void 0 : o.filter((c) => c.isSelectedValue)) == null ? void 0 : i.map((c) => c.id)) || []
7636
7634
  };
7637
- }), Tr = (e) => {
7635
+ }), Er = (e) => {
7638
7636
  if (!e) return "";
7639
7637
  const n = String(e.getDate()).padStart(2, "0"), t = String(e.getMonth() + 1).padStart(2, "0"), r = e.getFullYear();
7640
7638
  return `${t}-${n}-${r}`;
7641
- }, Ac = (e, n) => {
7639
+ }, xc = (e, n) => {
7642
7640
  var t;
7643
7641
  return (t = e == null ? void 0 : e.filter(
7644
7642
  (r, o) => {
@@ -7646,18 +7644,18 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7646
7644
  return ((i = r == null ? void 0 : r.custom_content) == null ? void 0 : i.attachments) && o < n;
7647
7645
  }
7648
7646
  )) == null ? void 0 : t.at(-1);
7649
- }, xc = (e) => e == null ? void 0 : e.reduce(
7647
+ }, Ec = (e) => e == null ? void 0 : e.reduce(
7650
7648
  (n, t, r) => {
7651
7649
  var o, i;
7652
7650
  return (i = (o = t == null ? void 0 : t.custom_content) == null ? void 0 : o.attachments) != null && i.some(
7653
- (c) => To(c)
7651
+ (c) => Eo(c)
7654
7652
  ) ? r : n;
7655
7653
  },
7656
7654
  -1
7657
7655
  ), Tc = (e) => e == null ? void 0 : e.reduce(
7658
7656
  (n, t) => (t == null ? void 0 : t.role) === ke.Assistant ? t : n,
7659
7657
  {}
7660
- ), Ec = (e, n, t, r) => {
7658
+ ), yc = (e, n, t, r) => {
7661
7659
  var o;
7662
7660
  return {
7663
7661
  role: ke.System,
@@ -7675,20 +7673,20 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7675
7673
  form_schema: (o = r == null ? void 0 : r.custom_content) == null ? void 0 : o.form_schema
7676
7674
  }
7677
7675
  };
7678
- }, yc = (e, n, t, r) => {
7676
+ }, Sc = (e, n, t, r) => {
7679
7677
  if (!e)
7680
7678
  return [];
7681
7679
  const o = e == null ? void 0 : e.at(-1);
7682
7680
  return o && o.role === ke.System && (e == null || e.pop()), [
7683
7681
  ...e,
7684
- Ec(
7682
+ yc(
7685
7683
  n,
7686
7684
  t,
7687
7685
  r,
7688
7686
  Tc(e)
7689
7687
  )
7690
7688
  ];
7691
- }, Sc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Oc = ({
7689
+ }, Oc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Lc = ({
7692
7690
  buttonProps: e,
7693
7691
  selectedFiltersCount: n = 0,
7694
7692
  isLoading: t,
@@ -7711,11 +7709,11 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7711
7709
  g && d(
7712
7710
  (f == null ? void 0 : f.lastDisplayedElement) === de.FILTERS
7713
7711
  );
7714
- }, [f == null ? void 0 : f.lastDisplayedElement, g]), /* @__PURE__ */ u("div", { className: "relative filter-button-container", ref: i, children: t ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ k(se, { children: [
7712
+ }, [f == null ? void 0 : f.lastDisplayedElement, g]), /* @__PURE__ */ u("div", { className: "relative filter-button-container", ref: i, children: t ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ k(se, { children: [
7715
7713
  /* @__PURE__ */ u(
7716
7714
  ve,
7717
7715
  {
7718
- iconBefore: /* @__PURE__ */ u(Sc, { className: "w-4 h-4" }),
7716
+ iconBefore: /* @__PURE__ */ u(Oc, { className: "w-4 h-4" }),
7719
7717
  title: w,
7720
7718
  buttonClassName: "text-button-secondary filter-button",
7721
7719
  isSmallButton: !0,
@@ -7732,7 +7730,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7732
7730
  }
7733
7731
  )
7734
7732
  ] }) });
7735
- }, Lc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), _c = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Rc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Xo = ({
7733
+ }, _c = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Rc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.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" })), Ic = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M6.25 4.66668L9.75 8.00001L6.25 11.3333L6.25 4.66668Z", fill: "currentColor" })), Xo = ({
7736
7734
  node: e,
7737
7735
  level: n = 1,
7738
7736
  checkboxIcon: t,
@@ -7748,7 +7746,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7748
7746
  }, [e]);
7749
7747
  const s = (d, f) => {
7750
7748
  var g;
7751
- (g = e == null ? void 0 : e.children) != null && g.length ? o == null || o(mc(e)) : r == null || r(d, f);
7749
+ (g = e == null ? void 0 : e.children) != null && g.length ? o == null || o(pc(e)) : r == null || r(d, f);
7752
7750
  };
7753
7751
  return /* @__PURE__ */ k("div", { className: "flex flex-col", children: [
7754
7752
  /* @__PURE__ */ k(
@@ -7756,11 +7754,11 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7756
7754
  {
7757
7755
  className: "flex items-center",
7758
7756
  style: {
7759
- paddingLeft: wc(n, c)
7757
+ paddingLeft: mc(n, c)
7760
7758
  },
7761
7759
  children: [
7762
7760
  c && (e != null && e.isExpanded ? /* @__PURE__ */ u(
7763
- Rc,
7761
+ Ic,
7764
7762
  {
7765
7763
  className: l,
7766
7764
  onClick: () => i == null ? void 0 : i(e)
@@ -7798,7 +7796,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7798
7796
  d == null ? void 0 : d.id
7799
7797
  )) })
7800
7798
  ] }, e == null ? void 0 : e.id);
7801
- }, Ic = ({
7799
+ }, Vc = ({
7802
7800
  filterValues: e,
7803
7801
  checkboxIcon: n,
7804
7802
  selectFilterValue: t,
@@ -7809,7 +7807,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7809
7807
  []
7810
7808
  );
7811
7809
  return O(() => {
7812
- c(gc(e));
7810
+ c(wc(e));
7813
7811
  }, [e]), i == null ? void 0 : i.map((h) => /* @__PURE__ */ u(
7814
7812
  Xo,
7815
7813
  {
@@ -7821,7 +7819,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7821
7819
  },
7822
7820
  h == null ? void 0 : h.id
7823
7821
  ));
7824
- }, Vc = ({
7822
+ }, Pc = ({
7825
7823
  style: e,
7826
7824
  filterValue: n,
7827
7825
  checkboxIcon: t,
@@ -7835,7 +7833,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7835
7833
  checkboxIcon: t,
7836
7834
  onChange: r
7837
7835
  }
7838
- ) }), Pc = sl, Er = 24, yr = 232, Hc = ({
7836
+ ) }), Hc = sl, Tr = 24, yr = 232, Gc = ({
7839
7837
  filterValues: e,
7840
7838
  checkboxIcon: n,
7841
7839
  isHierarchicalView: t,
@@ -7846,7 +7844,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7846
7844
  }) => {
7847
7845
  const h = pn();
7848
7846
  if (!e) return null;
7849
- const l = e.length * Er, s = l > yr ? yr : l;
7847
+ const l = e.length * Tr, s = l > yr ? yr : l;
7850
7848
  return /* @__PURE__ */ u(
7851
7849
  "div",
7852
7850
  {
@@ -7856,7 +7854,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7856
7854
  ),
7857
7855
  style: { height: h ? s + "px" : "100%" },
7858
7856
  children: t ? /* @__PURE__ */ u(
7859
- Ic,
7857
+ Vc,
7860
7858
  {
7861
7859
  filterValues: e,
7862
7860
  checkboxIcon: n,
@@ -7865,14 +7863,14 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7865
7863
  expandHierarchicalValue: c
7866
7864
  }
7867
7865
  ) : /* @__PURE__ */ u(dl, { children: ({ width: a, height: d }) => /* @__PURE__ */ u(
7868
- Pc,
7866
+ Hc,
7869
7867
  {
7870
7868
  itemCount: e.length,
7871
- itemSize: Er,
7869
+ itemSize: Tr,
7872
7870
  width: a,
7873
7871
  height: d,
7874
7872
  children: ({ index: f, style: g }) => /* @__PURE__ */ u(
7875
- Vc,
7873
+ Pc,
7876
7874
  {
7877
7875
  index: f,
7878
7876
  style: g,
@@ -7885,7 +7883,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7885
7883
  ) })
7886
7884
  }
7887
7885
  );
7888
- }, Gc = ({
7886
+ }, Bc = ({
7889
7887
  calendarResolution: e,
7890
7888
  timeRange: n,
7891
7889
  timeRangeOptions: t,
@@ -7899,12 +7897,12 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7899
7897
  titles: a,
7900
7898
  defaultTimeOption: d
7901
7899
  }) => {
7902
- var y, E, I, T;
7900
+ var y, T, I, E;
7903
7901
  const f = Xr(
7904
7902
  c == null ? void 0 : c[0].annotations
7905
7903
  ), [g, w] = N(
7906
7904
  n
7907
- ), v = !n || ((y = n == null ? void 0 : n.startPeriod) == null ? void 0 : y.getTime()) === ((E = f == null ? void 0 : f.startPeriod) == null ? void 0 : E.getTime()) && ((I = n == null ? void 0 : n.endPeriod) == null ? void 0 : I.getTime()) === ((T = f == null ? void 0 : f.endPeriod) == null ? void 0 : T.getTime()) ? 0 : en, [m, D] = N(
7905
+ ), v = !n || ((y = n == null ? void 0 : n.startPeriod) == null ? void 0 : y.getTime()) === ((T = f == null ? void 0 : f.startPeriod) == null ? void 0 : T.getTime()) && ((I = n == null ? void 0 : n.endPeriod) == null ? void 0 : I.getTime()) === ((E = f == null ? void 0 : f.endPeriod) == null ? void 0 : E.getTime()) ? 0 : en, [m, D] = N(
7908
7906
  d ?? v
7909
7907
  ), C = ce(() => {
7910
7908
  const { startPeriod: x, endPeriod: S } = f, $ = x == null ? void 0 : x.getFullYear(), F = S == null ? void 0 : S.getFullYear(), P = (/* @__PURE__ */ new Date()).getFullYear();
@@ -7963,7 +7961,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
7963
7961
  onChange: () => {
7964
7962
  const { value: S } = x;
7965
7963
  D(S), S !== en && w(
7966
- S === 0 ? f : rc(f, S)
7964
+ S === 0 ? f : oc(f, S)
7967
7965
  );
7968
7966
  },
7969
7967
  radioIcon: i
@@ -8034,7 +8032,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8034
8032
  [g]
8035
8033
  );
8036
8034
  return /* @__PURE__ */ u(se, { children: e != null && e.isTimeDimension && l ? /* @__PURE__ */ u(
8037
- Gc,
8035
+ Bc,
8038
8036
  {
8039
8037
  titles: h,
8040
8038
  initialConstraints: l,
@@ -8077,7 +8075,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8077
8075
  }
8078
8076
  ),
8079
8077
  /* @__PURE__ */ u("div", { className: "flex flex-col mt-3 body-2 overflow-auto flex-1 min-h-0", children: /* @__PURE__ */ u(
8080
- Hc,
8078
+ Gc,
8081
8079
  {
8082
8080
  filterValues: f ? w : e == null ? void 0 : e.dimensionValues,
8083
8081
  checkboxIcon: n == null ? void 0 : n.checkboxIcon,
@@ -8091,7 +8089,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8091
8089
  ]
8092
8090
  }
8093
8091
  ) });
8094
- }, Bc = ({
8092
+ }, Wc = ({
8095
8093
  filter: e,
8096
8094
  onSelectFilter: n,
8097
8095
  onSelectDisplayMode: t,
@@ -8110,24 +8108,24 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8110
8108
  }) => {
8111
8109
  var I;
8112
8110
  const v = pn(), [m, D] = N(0), [C, p] = N(!1), M = (e == null ? void 0 : e.isTimeDimension) && (e == null ? void 0 : e.timeRange), b = ce(() => {
8113
- var T, x, S, $;
8114
- return (T = e == null ? void 0 : e.timeRange) != null && T.startPeriod && ((x = e == null ? void 0 : e.timeRange) != null && x.endPeriod) ? `${mn((S = e == null ? void 0 : e.timeRange) == null ? void 0 : S.startPeriod, o)} -
8111
+ var E, x, S, $;
8112
+ return (E = e == null ? void 0 : e.timeRange) != null && E.startPeriod && ((x = e == null ? void 0 : e.timeRange) != null && x.endPeriod) ? `${mn((S = e == null ? void 0 : e.timeRange) == null ? void 0 : S.startPeriod, o)} -
8115
8113
  ${mn(($ = e == null ? void 0 : e.timeRange) == null ? void 0 : $.endPeriod, o)}` : "";
8116
8114
  }, [o, e == null ? void 0 : e.timeRange]);
8117
8115
  O(() => {
8118
- var T;
8116
+ var E;
8119
8117
  D(
8120
- (T = Yo(e == null ? void 0 : e.dimensionValues)) == null ? void 0 : T.length
8118
+ (E = Yo(e == null ? void 0 : e.dimensionValues)) == null ? void 0 : E.length
8121
8119
  );
8122
8120
  }, [e == null ? void 0 : e.dimensionValues]);
8123
- const A = (T) => {
8124
- t == null || t(e == null ? void 0 : e.id, T);
8121
+ const A = (E) => {
8122
+ t == null || t(e == null ? void 0 : e.id, E);
8125
8123
  }, y = h ? m > 0 : !0;
8126
8124
  O(() => {
8127
8125
  e.isSelectedFilter || p(!1);
8128
8126
  }, [e.isSelectedFilter]);
8129
- const E = () => {
8130
- v && p((T) => !T), n(e == null ? void 0 : e.id);
8127
+ const T = () => {
8128
+ v && p((E) => !E), n(e == null ? void 0 : e.id);
8131
8129
  };
8132
8130
  return /* @__PURE__ */ k("div", { className: "flex flex-col", children: [
8133
8131
  /* @__PURE__ */ k(
@@ -8139,7 +8137,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8139
8137
  (e == null ? void 0 : e.isSelectedFilter) && !v && "bg-hues-100",
8140
8138
  (e == null ? void 0 : e.isDisabled) && "cursor-default pointer-events-none opacity-[0.7]"
8141
8139
  ),
8142
- onClick: E,
8140
+ onClick: T,
8143
8141
  children: [
8144
8142
  /* @__PURE__ */ k(
8145
8143
  "h3",
@@ -8183,12 +8181,12 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8183
8181
  "text-button-tertiary w-4 h-4 border-0 p-0",
8184
8182
  "filters-facet-item-icon"
8185
8183
  ),
8186
- icon: /* @__PURE__ */ u(_c, { width: 16, height: 16 }),
8184
+ icon: /* @__PURE__ */ u(Rc, { width: 16, height: 16 }),
8187
8185
  title: (i == null ? void 0 : i.displayOrder) || "Display Order",
8188
8186
  disabled: !(e != null && e.isHierarchical)
8189
8187
  }
8190
8188
  ),
8191
- options: pc(i),
8189
+ options: vc(i),
8192
8190
  selectedOption: e == null ? void 0 : e.displayMode,
8193
8191
  disabled: !(e != null && e.isHierarchical),
8194
8192
  onOptionSelect: A
@@ -8201,10 +8199,10 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8201
8199
  "text-button-tertiary w-4 h-4 border-0 p-0",
8202
8200
  "filters-facet-item-icon"
8203
8201
  ),
8204
- icon: /* @__PURE__ */ u(Lc, { width: 16, height: 16 }),
8202
+ icon: /* @__PURE__ */ u(_c, { width: 16, height: 16 }),
8205
8203
  title: (i == null ? void 0 : i.reset) || "Reset",
8206
- onClick: (T) => {
8207
- T.stopPropagation(), r == null || r(e == null ? void 0 : e.id);
8204
+ onClick: (E) => {
8205
+ E.stopPropagation(), r == null || r(e == null ? void 0 : e.id);
8208
8206
  }
8209
8207
  }
8210
8208
  )
@@ -8230,7 +8228,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8230
8228
  }
8231
8229
  )
8232
8230
  ] });
8233
- }, Wc = ({
8231
+ }, Fc = ({
8234
8232
  filtersList: e,
8235
8233
  hideFacetCounterByDefault: n,
8236
8234
  locale: t,
@@ -8253,7 +8251,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8253
8251
  "overflow-y-auto advanced-view-filters-list min-w-[320px] pr-3 h-full sm:w-full"
8254
8252
  ),
8255
8253
  children: e == null ? void 0 : e.map((v) => /* @__PURE__ */ u(
8256
- Bc,
8254
+ Wc,
8257
8255
  {
8258
8256
  titles: g,
8259
8257
  locale: t,
@@ -8274,7 +8272,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8274
8272
  v == null ? void 0 : v.id
8275
8273
  ))
8276
8274
  }
8277
- ), Fc = ({
8275
+ ), zc = ({
8278
8276
  filtersList: e,
8279
8277
  titles: n,
8280
8278
  selectedFilter: t,
@@ -8300,10 +8298,10 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8300
8298
  },
8301
8299
  [e, s]
8302
8300
  ), D = (b, A) => {
8303
- var E;
8301
+ var T;
8304
8302
  const y = {
8305
8303
  ...t,
8306
- dimensionValues: (E = t == null ? void 0 : t.dimensionValues) == null ? void 0 : E.map(
8304
+ dimensionValues: (T = t == null ? void 0 : t.dimensionValues) == null ? void 0 : T.map(
8307
8305
  (I) => (I == null ? void 0 : I.id) === b ? { ...I, isSelectedValue: A } : I
8308
8306
  )
8309
8307
  };
@@ -8313,9 +8311,9 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8313
8311
  const A = {
8314
8312
  ...t,
8315
8313
  dimensionValues: (y = t == null ? void 0 : t.dimensionValues) == null ? void 0 : y.map(
8316
- (E) => (b == null ? void 0 : b.find(
8317
- (T) => (T == null ? void 0 : T.id) === (E == null ? void 0 : E.id)
8318
- )) || E
8314
+ (T) => (b == null ? void 0 : b.find(
8315
+ (E) => (E == null ? void 0 : E.id) === (T == null ? void 0 : T.id)
8316
+ )) || T
8319
8317
  )
8320
8318
  };
8321
8319
  s(A), f && f(A);
@@ -8351,7 +8349,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8351
8349
  ),
8352
8350
  children: [
8353
8351
  /* @__PURE__ */ u(
8354
- Wc,
8352
+ Fc,
8355
8353
  {
8356
8354
  filtersList: e,
8357
8355
  hideFacetCounterByDefault: r == null ? void 0 : r.isHideFacetCounterByDefault,
@@ -8398,7 +8396,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8398
8396
  ]
8399
8397
  }
8400
8398
  );
8401
- }, zc = ({
8399
+ }, $c = ({
8402
8400
  modalProps: e,
8403
8401
  onApply: n,
8404
8402
  onClearAllFilters: t,
@@ -8450,7 +8448,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8450
8448
  ]
8451
8449
  }
8452
8450
  );
8453
- }, $c = ({
8451
+ }, Jc = ({
8454
8452
  actions: e,
8455
8453
  dimensions: n,
8456
8454
  structureDimensions: t,
@@ -8471,7 +8469,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8471
8469
  updateDataQueries: D
8472
8470
  }) => {
8473
8471
  var Oe, Le;
8474
- const [C, p] = N(le.Closed), [M, b] = N([]), [A, y] = N([]), [E, I] = N(), [T, x] = N(
8472
+ const [C, p] = N(le.Closed), [M, b] = N([]), [A, y] = N([]), [T, I] = N(), [E, x] = N(
8475
8473
  []
8476
8474
  ), [S, $] = N(void 0), F = ue(l || []), [P, L] = N([]), [B, G] = N(), [z, Z] = N(), oe = ue(!1), te = (W) => {
8477
8475
  const X = W ? M.map(
@@ -8497,7 +8495,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8497
8495
  var we;
8498
8496
  const re = ((we = U == null ? void 0 : U.data) == null ? void 0 : we.dataConstraints) || [];
8499
8497
  F.current = re, J == null || J(!1), X(
8500
- Tn(
8498
+ En(
8501
8499
  W,
8502
8500
  n,
8503
8501
  r,
@@ -8507,7 +8505,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8507
8505
  );
8508
8506
  }).catch(() => {
8509
8507
  F.current = [], J == null || J(!1), X(
8510
- Tn(
8508
+ En(
8511
8509
  W,
8512
8510
  n,
8513
8511
  r,
@@ -8522,7 +8520,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8522
8520
  [e, c == null ? void 0 : c.urn, n, a, r]
8523
8521
  );
8524
8522
  O(() => {
8525
- const W = ac(
8523
+ const W = cc(
8526
8524
  n,
8527
8525
  r,
8528
8526
  t,
@@ -8551,7 +8549,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8551
8549
  };
8552
8550
  });
8553
8551
  if (!oe.current) {
8554
- const U = hc(
8552
+ const U = fc(
8555
8553
  J,
8556
8554
  c,
8557
8555
  F.current
@@ -8574,16 +8572,16 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8574
8572
  A != null && A.length && x(Ko(A));
8575
8573
  }, [A]), O(() => {
8576
8574
  b(
8577
- (W) => Dr(W, E)
8575
+ (W) => Dr(W, T)
8578
8576
  );
8579
- }, [E]), O(() => {
8577
+ }, [T]), O(() => {
8580
8578
  C === le.Opened && (I({ ...A == null ? void 0 : A[0], isSelectedFilter: !0 }), b(A)), C === le.Closed && I(void 0);
8581
8579
  }, [A, C]);
8582
8580
  const he = _(
8583
8581
  async (W) => {
8584
- const X = Mc(W), J = w ? {
8582
+ const X = Ac(W), J = w ? {
8585
8583
  ...w,
8586
- messages: yc(
8584
+ messages: Sc(
8587
8585
  w == null ? void 0 : w.messages,
8588
8586
  X,
8589
8587
  c,
@@ -8591,7 +8589,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8591
8589
  )
8592
8590
  } : null;
8593
8591
  v == null || v(J), D == null || D(
8594
- kc(
8592
+ Cc(
8595
8593
  X,
8596
8594
  c,
8597
8595
  h
@@ -8613,19 +8611,19 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8613
8611
  ), Ce = _(
8614
8612
  (W, X) => {
8615
8613
  b(
8616
- (J) => cc(J, W, X)
8617
- ), (E == null ? void 0 : E.id) === W && I((J) => ({
8614
+ (J) => sc(J, W, X)
8615
+ ), (T == null ? void 0 : T.id) === W && I((J) => ({
8618
8616
  ...J,
8619
8617
  displayMode: X
8620
8618
  }));
8621
8619
  },
8622
- [E == null ? void 0 : E.id]
8620
+ [T == null ? void 0 : T.id]
8623
8621
  ), De = _(
8624
- (W) => Dc(W, n),
8622
+ (W) => Mc(W, n),
8625
8623
  [n]
8626
8624
  ), ge = _(
8627
8625
  (W, X) => {
8628
- const J = Tn(
8626
+ const J = En(
8629
8627
  X,
8630
8628
  n,
8631
8629
  r,
@@ -8659,14 +8657,14 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8659
8657
  [e, c == null ? void 0 : c.urn, ge]
8660
8658
  ), Se = _(
8661
8659
  (W) => {
8662
- const X = dc(M, W);
8660
+ const X = uc(M, W);
8663
8661
  pe(X);
8664
8662
  },
8665
8663
  [pe, M]
8666
8664
  ), Me = _(() => {
8667
8665
  F.current = P, p(le.Closed);
8668
- }, [P]), Ee = _(() => {
8669
- const W = uc(M);
8666
+ }, [P]), Te = _(() => {
8667
+ const W = hc(M);
8670
8668
  pe(W);
8671
8669
  }, [pe, M]), Ne = _(() => {
8672
8670
  const W = De(M);
@@ -8684,11 +8682,11 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8684
8682
  };
8685
8683
  return /* @__PURE__ */ k("div", { className: "filters-container", children: [
8686
8684
  /* @__PURE__ */ u(
8687
- Oc,
8685
+ Lc,
8688
8686
  {
8689
8687
  buttonProps: o,
8690
- selectedFiltersCount: sc(
8691
- T
8688
+ selectedFiltersCount: dc(
8689
+ E
8692
8690
  ),
8693
8691
  isLoading: B,
8694
8692
  setModalState: p,
@@ -8707,13 +8705,13 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8707
8705
  closeButtonTitle: (f == null ? void 0 : f.close) || "Close",
8708
8706
  children: [
8709
8707
  /* @__PURE__ */ u(
8710
- Fc,
8708
+ zc,
8711
8709
  {
8712
8710
  locale: a,
8713
8711
  titles: f,
8714
8712
  timeRangeOptions: d,
8715
8713
  filtersList: M,
8716
- selectedFilter: E,
8714
+ selectedFilter: T,
8717
8715
  isDisableValues: z,
8718
8716
  modalProps: i,
8719
8717
  initialConstraints: l,
@@ -8729,12 +8727,12 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8729
8727
  }
8730
8728
  ),
8731
8729
  /* @__PURE__ */ u(
8732
- zc,
8730
+ $c,
8733
8731
  {
8734
8732
  titles: f,
8735
8733
  onApply: Ne,
8736
8734
  onClose: Me,
8737
- onClearAllFilters: Ee,
8735
+ onClearAllFilters: Te,
8738
8736
  modalProps: i,
8739
8737
  applyDisabled: B || z
8740
8738
  }
@@ -8743,7 +8741,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8743
8741
  }
8744
8742
  ) })
8745
8743
  ] });
8746
- }, Jc = ({
8744
+ }, Uc = ({
8747
8745
  filtersProps: e,
8748
8746
  actions: n,
8749
8747
  attachments: t,
@@ -8770,7 +8768,7 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8770
8768
  /* @__PURE__ */ k("div", { className: "data-details-header flex justify-between items-center", children: [
8771
8769
  /* @__PURE__ */ u("h2", { children: (a == null ? void 0 : a.content) ?? "Content" }),
8772
8770
  /* @__PURE__ */ u(
8773
- $c,
8771
+ Jc,
8774
8772
  {
8775
8773
  attachmentsDataQuery: r,
8776
8774
  dataQueries: o,
@@ -8801,8 +8799,8 @@ const ec = /* @__PURE__ */ jo(Qa), Cr = (e, n, t, r, o = !1, i) => {
8801
8799
  }
8802
8800
  ) })
8803
8801
  ] }) });
8804
- }, Uc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M10.3333 11.3334V4.66666C10.3333 3.22134 8.19658 2 5.66666 2C3.13675 2 1 3.22134 1 4.66666V11.3334C1 12.7786 3.13675 14 5.66666 14C8.19658 14 10.3333 12.7786 10.3333 11.3334ZM5.66666 3.33333C7.81975 3.33333 9.12641 4.338 9.16666 4.66267C9.12641 4.99533 7.81975 6 5.66666 6C3.51358 6 2.20692 4.99533 2.16667 4.67067C2.20692 4.338 3.51358 3.33333 5.66666 3.33333ZM2.16667 6.40467C3.02942 6.96932 4.28825 7.33334 5.66666 7.33334C7.04508 7.33334 8.30391 6.96932 9.16666 6.40467V7.99598C9.12641 8.32868 7.81975 9.33332 5.66666 9.33332C3.51358 9.33332 2.20692 8.32868 2.16667 8V6.40467ZM2.16667 11.3334V9.73802C3.02942 10.3027 4.28825 10.6666 5.66666 10.6666C7.04508 10.6666 8.30391 10.3027 9.16666 9.73802V11.3293C9.12641 11.662 7.81975 12.6667 5.66666 12.6667C3.51358 12.6667 2.20692 11.662 2.16667 11.3334Z", fill: "currentColor" }), /* @__PURE__ */ q.createElement("path", { d: "M10.3333 7.30769V8.69231H12.2V10.7692L15 8L12.2 5.23077V7.30769H10.3333Z", fill: "currentColor" }));
8805
- function En(e) {
8802
+ }, jc = (e) => /* @__PURE__ */ q.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M10.3333 11.3334V4.66666C10.3333 3.22134 8.19658 2 5.66666 2C3.13675 2 1 3.22134 1 4.66666V11.3334C1 12.7786 3.13675 14 5.66666 14C8.19658 14 10.3333 12.7786 10.3333 11.3334ZM5.66666 3.33333C7.81975 3.33333 9.12641 4.338 9.16666 4.66267C9.12641 4.99533 7.81975 6 5.66666 6C3.51358 6 2.20692 4.99533 2.16667 4.67067C2.20692 4.338 3.51358 3.33333 5.66666 3.33333ZM2.16667 6.40467C3.02942 6.96932 4.28825 7.33334 5.66666 7.33334C7.04508 7.33334 8.30391 6.96932 9.16666 6.40467V7.99598C9.12641 8.32868 7.81975 9.33332 5.66666 9.33332C3.51358 9.33332 2.20692 8.32868 2.16667 8V6.40467ZM2.16667 11.3334V9.73802C3.02942 10.3027 4.28825 10.6666 5.66666 10.6666C7.04508 10.6666 8.30391 10.3027 9.16666 9.73802V11.3293C9.12641 11.662 7.81975 12.6667 5.66666 12.6667C3.51358 12.6667 2.20692 11.662 2.16667 11.3334Z", fill: "currentColor" }), /* @__PURE__ */ q.createElement("path", { d: "M10.3333 7.30769V8.69231H12.2V10.7692L15 8L12.2 5.23077V7.30769H10.3333Z", fill: "currentColor" }));
8803
+ function Tn(e) {
8806
8804
  return (n = {}) => {
8807
8805
  const t = n.width ? String(n.width) : e.defaultWidth;
8808
8806
  return e.formats[t] || e.formats[e.defaultWidth];
@@ -8828,9 +8826,9 @@ function je(e) {
8828
8826
  const r = t.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = n.match(o);
8829
8827
  if (!i)
8830
8828
  return null;
8831
- const c = i[0], h = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(h) ? Yc(h, (d) => d.test(c)) : (
8829
+ const c = i[0], h = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(h) ? Kc(h, (d) => d.test(c)) : (
8832
8830
  // [TODO] -- I challenge you to fix the type
8833
- jc(h, (d) => d.test(c))
8831
+ Yc(h, (d) => d.test(c))
8834
8832
  );
8835
8833
  let s;
8836
8834
  s = e.valueCallback ? e.valueCallback(l) : l, s = t.valueCallback ? (
@@ -8841,17 +8839,17 @@ function je(e) {
8841
8839
  return { value: s, rest: a };
8842
8840
  };
8843
8841
  }
8844
- function jc(e, n) {
8842
+ function Yc(e, n) {
8845
8843
  for (const t in e)
8846
8844
  if (Object.prototype.hasOwnProperty.call(e, t) && n(e[t]))
8847
8845
  return t;
8848
8846
  }
8849
- function Yc(e, n) {
8847
+ function Kc(e, n) {
8850
8848
  for (let t = 0; t < e.length; t++)
8851
8849
  if (n(e[t]))
8852
8850
  return t;
8853
8851
  }
8854
- function Kc(e) {
8852
+ function Zc(e) {
8855
8853
  return (n, t = {}) => {
8856
8854
  const r = n.match(e.matchPattern);
8857
8855
  if (!r) return null;
@@ -8867,27 +8865,27 @@ const Sr = Symbol.for("constructDateFrom");
8867
8865
  function Qo(e, n) {
8868
8866
  return typeof e == "function" ? e(n) : e && typeof e == "object" && Sr in e ? e[Sr](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
8869
8867
  }
8870
- function Zc(e, ...n) {
8868
+ function Xc(e, ...n) {
8871
8869
  const t = Qo.bind(
8872
8870
  null,
8873
8871
  e || n.find((r) => typeof r == "object")
8874
8872
  );
8875
8873
  return n.map(t);
8876
8874
  }
8877
- let Xc = {};
8878
- function qc() {
8879
- return Xc;
8875
+ let qc = {};
8876
+ function Qc() {
8877
+ return qc;
8880
8878
  }
8881
8879
  function qn(e, n) {
8882
8880
  return Qo(n || e, e);
8883
8881
  }
8884
8882
  function Or(e, n) {
8885
8883
  var h, l, s, a;
8886
- const t = qc(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((l = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((a = (s = t.locale) == null ? void 0 : s.options) == null ? void 0 : a.weekStartsOn) ?? 0, o = qn(e, n == null ? void 0 : n.in), i = o.getDay(), c = (i < r ? 7 : 0) + i - r;
8884
+ const t = Qc(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((l = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((a = (s = t.locale) == null ? void 0 : s.options) == null ? void 0 : a.weekStartsOn) ?? 0, o = qn(e, n == null ? void 0 : n.in), i = o.getDay(), c = (i < r ? 7 : 0) + i - r;
8887
8885
  return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
8888
8886
  }
8889
8887
  function ei(e, n, t) {
8890
- const [r, o] = Zc(
8888
+ const [r, o] = Xc(
8891
8889
  t == null ? void 0 : t.in,
8892
8890
  e,
8893
8891
  n
@@ -8903,7 +8901,7 @@ function Ye(e, n) {
8903
8901
  function be(e) {
8904
8902
  return (n, t) => t && t.addSuffix ? t.comparison && t.comparison > 0 ? e.future ? Ye(e.future, n) : "за " + Ye(e.regular, n) : e.past ? Ye(e.past, n) : Ye(e.regular, n) + " тому" : Ye(e.regular, n);
8905
8903
  }
8906
- const Qc = (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? "за півхвилини" : "півхвилини тому" : "півхвилини", es = {
8904
+ const es = (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? "за півхвилини" : "півхвилини тому" : "півхвилини", ns = {
8907
8905
  lessThanXSeconds: be({
8908
8906
  regular: {
8909
8907
  one: "менше секунди",
@@ -8935,7 +8933,7 @@ const Qc = (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? "за
8935
8933
  pluralGenitive: "за {{count}} секунд"
8936
8934
  }
8937
8935
  }),
8938
- halfAMinute: Qc,
8936
+ halfAMinute: es,
8939
8937
  lessThanXMinutes: be({
8940
8938
  regular: {
8941
8939
  one: "менше хвилини",
@@ -9074,33 +9072,33 @@ const Qc = (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? "за
9074
9072
  pluralGenitive: "майже за {{count}} років"
9075
9073
  }
9076
9074
  })
9077
- }, ns = (e, n, t) => (t = t || {}, es[e](n, t)), ts = {
9075
+ }, ts = (e, n, t) => (t = t || {}, ns[e](n, t)), rs = {
9078
9076
  full: "EEEE, do MMMM y 'р.'",
9079
9077
  long: "do MMMM y 'р.'",
9080
9078
  medium: "d MMM y 'р.'",
9081
9079
  short: "dd.MM.y"
9082
- }, rs = {
9080
+ }, os = {
9083
9081
  full: "H:mm:ss zzzz",
9084
9082
  long: "H:mm:ss z",
9085
9083
  medium: "H:mm:ss",
9086
9084
  short: "H:mm"
9087
- }, os = {
9085
+ }, is = {
9088
9086
  full: "{{date}} 'о' {{time}}",
9089
9087
  long: "{{date}} 'о' {{time}}",
9090
9088
  medium: "{{date}}, {{time}}",
9091
9089
  short: "{{date}}, {{time}}"
9092
- }, is = {
9093
- date: En({
9094
- formats: ts,
9095
- defaultWidth: "full"
9096
- }),
9097
- time: En({
9090
+ }, ls = {
9091
+ date: Tn({
9098
9092
  formats: rs,
9099
9093
  defaultWidth: "full"
9100
9094
  }),
9101
- dateTime: En({
9095
+ time: Tn({
9102
9096
  formats: os,
9103
9097
  defaultWidth: "full"
9098
+ }),
9099
+ dateTime: Tn({
9100
+ formats: is,
9101
+ defaultWidth: "full"
9104
9102
  })
9105
9103
  }, Qn = [
9106
9104
  "неділю",
@@ -9111,7 +9109,7 @@ const Qc = (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? "за
9111
9109
  "п’ятницю",
9112
9110
  "суботу"
9113
9111
  ];
9114
- function ls(e) {
9112
+ function as(e) {
9115
9113
  const n = Qn[e];
9116
9114
  switch (e) {
9117
9115
  case 0:
@@ -9128,7 +9126,7 @@ function ls(e) {
9128
9126
  function ni(e) {
9129
9127
  return "'у " + Qn[e] + " о' p";
9130
9128
  }
9131
- function as(e) {
9129
+ function cs(e) {
9132
9130
  const n = Qn[e];
9133
9131
  switch (e) {
9134
9132
  case 0:
@@ -9142,31 +9140,31 @@ function as(e) {
9142
9140
  return "'у наступний " + n + " о' p";
9143
9141
  }
9144
9142
  }
9145
- const cs = (e, n, t) => {
9146
- const r = qn(e), o = r.getDay();
9147
- return ei(r, n, t) ? ni(o) : ls(o);
9148
- }, ss = (e, n, t) => {
9143
+ const ss = (e, n, t) => {
9149
9144
  const r = qn(e), o = r.getDay();
9150
9145
  return ei(r, n, t) ? ni(o) : as(o);
9151
- }, ds = {
9152
- lastWeek: cs,
9146
+ }, ds = (e, n, t) => {
9147
+ const r = qn(e), o = r.getDay();
9148
+ return ei(r, n, t) ? ni(o) : cs(o);
9149
+ }, us = {
9150
+ lastWeek: ss,
9153
9151
  yesterday: "'вчора о' p",
9154
9152
  today: "'сьогодні о' p",
9155
9153
  tomorrow: "'завтра о' p",
9156
- nextWeek: ss,
9154
+ nextWeek: ds,
9157
9155
  other: "P"
9158
- }, us = (e, n, t, r) => {
9159
- const o = ds[e];
9156
+ }, hs = (e, n, t, r) => {
9157
+ const o = us[e];
9160
9158
  return typeof o == "function" ? o(n, t, r) : o;
9161
- }, hs = {
9159
+ }, fs = {
9162
9160
  narrow: ["до н.е.", "н.е."],
9163
9161
  abbreviated: ["до н. е.", "н. е."],
9164
9162
  wide: ["до нашої ери", "нашої ери"]
9165
- }, fs = {
9163
+ }, gs = {
9166
9164
  narrow: ["1", "2", "3", "4"],
9167
9165
  abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
9168
9166
  wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
9169
- }, gs = {
9167
+ }, ws = {
9170
9168
  // ДСТУ 3582:2013
9171
9169
  narrow: ["С", "Л", "Б", "К", "Т", "Ч", "Л", "С", "В", "Ж", "Л", "Г"],
9172
9170
  abbreviated: [
@@ -9197,7 +9195,7 @@ const cs = (e, n, t) => {
9197
9195
  "листопад",
9198
9196
  "грудень"
9199
9197
  ]
9200
- }, ws = {
9198
+ }, ms = {
9201
9199
  narrow: ["С", "Л", "Б", "К", "Т", "Ч", "Л", "С", "В", "Ж", "Л", "Г"],
9202
9200
  abbreviated: [
9203
9201
  "січ.",
@@ -9227,7 +9225,7 @@ const cs = (e, n, t) => {
9227
9225
  "листопада",
9228
9226
  "грудня"
9229
9227
  ]
9230
- }, ms = {
9228
+ }, ps = {
9231
9229
  narrow: ["Н", "П", "В", "С", "Ч", "П", "С"],
9232
9230
  short: ["нд", "пн", "вт", "ср", "чт", "пт", "сб"],
9233
9231
  abbreviated: ["нед", "пон", "вів", "сер", "чтв", "птн", "суб"],
@@ -9240,7 +9238,7 @@ const cs = (e, n, t) => {
9240
9238
  "п’ятниця",
9241
9239
  "субота"
9242
9240
  ]
9243
- }, ps = {
9241
+ }, vs = {
9244
9242
  narrow: {
9245
9243
  am: "ДП",
9246
9244
  pm: "ПП",
@@ -9271,7 +9269,7 @@ const cs = (e, n, t) => {
9271
9269
  evening: "вечір",
9272
9270
  night: "ніч"
9273
9271
  }
9274
- }, vs = {
9272
+ }, bs = {
9275
9273
  narrow: {
9276
9274
  am: "ДП",
9277
9275
  pm: "ПП",
@@ -9302,54 +9300,54 @@ const cs = (e, n, t) => {
9302
9300
  evening: "веч.",
9303
9301
  night: "ночі"
9304
9302
  }
9305
- }, bs = (e, n) => {
9303
+ }, ks = (e, n) => {
9306
9304
  const t = String(n == null ? void 0 : n.unit), r = Number(e);
9307
9305
  let o;
9308
9306
  return t === "date" ? r === 3 || r === 23 ? o = "-є" : o = "-е" : t === "minute" || t === "second" || t === "hour" ? o = "-а" : o = "-й", r + o;
9309
- }, ks = {
9310
- ordinalNumber: bs,
9307
+ }, Cs = {
9308
+ ordinalNumber: ks,
9311
9309
  era: Ue({
9312
- values: hs,
9310
+ values: fs,
9313
9311
  defaultWidth: "wide"
9314
9312
  }),
9315
9313
  quarter: Ue({
9316
- values: fs,
9314
+ values: gs,
9317
9315
  defaultWidth: "wide",
9318
9316
  argumentCallback: (e) => e - 1
9319
9317
  }),
9320
9318
  month: Ue({
9321
- values: gs,
9319
+ values: ws,
9322
9320
  defaultWidth: "wide",
9323
- formattingValues: ws,
9321
+ formattingValues: ms,
9324
9322
  defaultFormattingWidth: "wide"
9325
9323
  }),
9326
9324
  day: Ue({
9327
- values: ms,
9325
+ values: ps,
9328
9326
  defaultWidth: "wide"
9329
9327
  }),
9330
9328
  dayPeriod: Ue({
9331
- values: ps,
9329
+ values: vs,
9332
9330
  defaultWidth: "any",
9333
- formattingValues: vs,
9331
+ formattingValues: bs,
9334
9332
  defaultFormattingWidth: "wide"
9335
9333
  })
9336
- }, Cs = /^(\d+)(-?(е|й|є|а|я))?/i, Ns = /\d+/i, Ds = {
9334
+ }, Ns = /^(\d+)(-?(е|й|є|а|я))?/i, Ds = /\d+/i, Ms = {
9337
9335
  narrow: /^((до )?н\.?\s?е\.?)/i,
9338
9336
  abbreviated: /^((до )?н\.?\s?е\.?)/i,
9339
9337
  wide: /^(до нашої ери|нашої ери|наша ера)/i
9340
- }, Ms = {
9341
- any: [/^д/i, /^н/i]
9342
9338
  }, As = {
9339
+ any: [/^д/i, /^н/i]
9340
+ }, xs = {
9343
9341
  narrow: /^[1234]/i,
9344
9342
  abbreviated: /^[1234](-?[иі]?й?)? кв.?/i,
9345
9343
  wide: /^[1234](-?[иі]?й?)? квартал/i
9346
- }, xs = {
9344
+ }, Es = {
9347
9345
  any: [/1/i, /2/i, /3/i, /4/i]
9348
9346
  }, Ts = {
9349
9347
  narrow: /^[слбктчвжг]/i,
9350
9348
  abbreviated: /^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,
9351
9349
  wide: /^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i
9352
- }, Es = {
9350
+ }, ys = {
9353
9351
  narrow: [
9354
9352
  /^с/i,
9355
9353
  /^л/i,
@@ -9378,19 +9376,19 @@ const cs = (e, n, t) => {
9378
9376
  /^лис/i,
9379
9377
  /^г/i
9380
9378
  ]
9381
- }, ys = {
9379
+ }, Ss = {
9382
9380
  narrow: /^[нпвсч]/i,
9383
9381
  short: /^(нд|пн|вт|ср|чт|пт|сб)\.?/i,
9384
9382
  abbreviated: /^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,
9385
9383
  wide: /^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i
9386
- }, Ss = {
9384
+ }, Os = {
9387
9385
  narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
9388
9386
  any: [/^н/i, /^п[он]/i, /^в/i, /^с[ер]/i, /^ч/i, /^п\W*?[ят]/i, /^с[уб]/i]
9389
- }, Os = {
9387
+ }, Ls = {
9390
9388
  narrow: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,
9391
9389
  abbreviated: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,
9392
9390
  wide: /^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i
9393
- }, Ls = {
9391
+ }, _s = {
9394
9392
  any: {
9395
9393
  am: /^дп/i,
9396
9394
  pm: /^пп/i,
@@ -9401,62 +9399,62 @@ const cs = (e, n, t) => {
9401
9399
  evening: /^в/i,
9402
9400
  night: /^н/i
9403
9401
  }
9404
- }, _s = {
9405
- ordinalNumber: Kc({
9406
- matchPattern: Cs,
9407
- parsePattern: Ns,
9402
+ }, Rs = {
9403
+ ordinalNumber: Zc({
9404
+ matchPattern: Ns,
9405
+ parsePattern: Ds,
9408
9406
  valueCallback: (e) => parseInt(e, 10)
9409
9407
  }),
9410
9408
  era: je({
9411
- matchPatterns: Ds,
9409
+ matchPatterns: Ms,
9412
9410
  defaultMatchWidth: "wide",
9413
- parsePatterns: Ms,
9411
+ parsePatterns: As,
9414
9412
  defaultParseWidth: "any"
9415
9413
  }),
9416
9414
  quarter: je({
9417
- matchPatterns: As,
9415
+ matchPatterns: xs,
9418
9416
  defaultMatchWidth: "wide",
9419
- parsePatterns: xs,
9417
+ parsePatterns: Es,
9420
9418
  defaultParseWidth: "any",
9421
9419
  valueCallback: (e) => e + 1
9422
9420
  }),
9423
9421
  month: je({
9424
9422
  matchPatterns: Ts,
9425
9423
  defaultMatchWidth: "wide",
9426
- parsePatterns: Es,
9424
+ parsePatterns: ys,
9427
9425
  defaultParseWidth: "any"
9428
9426
  }),
9429
9427
  day: je({
9430
- matchPatterns: ys,
9428
+ matchPatterns: Ss,
9431
9429
  defaultMatchWidth: "wide",
9432
- parsePatterns: Ss,
9430
+ parsePatterns: Os,
9433
9431
  defaultParseWidth: "any"
9434
9432
  }),
9435
9433
  dayPeriod: je({
9436
- matchPatterns: Os,
9434
+ matchPatterns: Ls,
9437
9435
  defaultMatchWidth: "wide",
9438
- parsePatterns: Ls,
9436
+ parsePatterns: _s,
9439
9437
  defaultParseWidth: "any"
9440
9438
  })
9441
- }, Rs = {
9439
+ }, Is = {
9442
9440
  code: "uk",
9443
- formatDistance: ns,
9444
- formatLong: is,
9445
- formatRelative: us,
9446
- localize: ks,
9447
- match: _s,
9441
+ formatDistance: ts,
9442
+ formatLong: ls,
9443
+ formatRelative: hs,
9444
+ localize: Cs,
9445
+ match: Rs,
9448
9446
  options: {
9449
9447
  weekStartsOn: 1,
9450
9448
  firstWeekContainsDate: 1
9451
9449
  }
9452
- }, Is = (e) => e === Ge.UK ? "dd MMM, yyyy" : " MMM dd, yyyy hh:mm aa", Vs = (e, n) => {
9453
- const t = Is(n);
9450
+ }, Vs = (e) => e === Ge.UK ? "dd MMM, yyyy" : " MMM dd, yyyy hh:mm aa", Ps = (e, n) => {
9451
+ const t = Vs(n);
9454
9452
  return e != null && e !== "" && t && hl(new Date(e)) ? ul(
9455
9453
  new Date(e),
9456
9454
  t,
9457
- n === Ge.UK ? { locale: Rs } : void 0
9455
+ n === Ge.UK ? { locale: Is } : void 0
9458
9456
  ) : "";
9459
- }, Ps = ({
9457
+ }, Hs = ({
9460
9458
  isShowAgency: e,
9461
9459
  dataset: n,
9462
9460
  data: t,
@@ -9468,7 +9466,7 @@ const cs = (e, n, t) => {
9468
9466
  externalLink: l
9469
9467
  }) => {
9470
9468
  const [s, a] = N(""), [d, f] = N(!1), g = ue(null), [w, v] = N(""), [m, D] = N(""), [C, p] = N(!1), { onboardingFileSchema: M, isShowOnboarding: b } = Ae(), A = ce(
9471
- () => o != null && o.isMetadataDescription ? _a(n, s, i, c) : [],
9469
+ () => o != null && o.isMetadataDescription ? Ra(n, s, i, c) : [],
9472
9470
  [
9473
9471
  n,
9474
9472
  s,
@@ -9479,8 +9477,8 @@ const cs = (e, n, t) => {
9479
9477
  ), y = ce(
9480
9478
  () => [
9481
9479
  ...o != null && o.isMetadataDescription ? [] : [Cn(n, i, c)],
9482
- ...Ia(
9483
- Ra(t),
9480
+ ...Va(
9481
+ Ia(t),
9484
9482
  Fn(r),
9485
9483
  i
9486
9484
  )
@@ -9493,21 +9491,21 @@ const cs = (e, n, t) => {
9493
9491
  r,
9494
9492
  c
9495
9493
  ]
9496
- ), E = _(() => {
9494
+ ), T = _(() => {
9497
9495
  f(!0);
9498
9496
  }, []), I = _(() => {
9499
9497
  f(!1);
9500
9498
  }, []);
9501
9499
  return O(() => {
9502
- const x = h && h(y) || Vs(Ui(n), i);
9500
+ const x = h && h(y) || Ps(Ui(n), i);
9503
9501
  a(x);
9504
9502
  }, [n, i, y, h]), O(() => {
9505
9503
  if (b) {
9506
- const { title: T, description: x } = Pe(
9504
+ const { title: E, description: x } = Pe(
9507
9505
  de.METADATA_PER_DATASET,
9508
9506
  c
9509
9507
  );
9510
- v(T), D(x);
9508
+ v(E), D(x);
9511
9509
  }
9512
9510
  }, [c, b]), O(() => {
9513
9511
  b && p(
@@ -9522,7 +9520,7 @@ const cs = (e, n, t) => {
9522
9520
  title: (c == null ? void 0 : c.metadata) ?? "View details",
9523
9521
  buttonClassName: "!text-neutrals-1000 !border-none !w-5 !h-5 !p-0 shrink-0",
9524
9522
  icon: /* @__PURE__ */ u(Hn, { width: 20, height: 20 }),
9525
- onClick: E
9523
+ onClick: T
9526
9524
  }
9527
9525
  ) }),
9528
9526
  n == null ? void 0 : n.name,
@@ -9543,7 +9541,7 @@ const cs = (e, n, t) => {
9543
9541
  ] }) : /* @__PURE__ */ k(se, { children: [
9544
9542
  /* @__PURE__ */ k("div", { className: "flex gap-3 mb-3", children: [
9545
9543
  /* @__PURE__ */ k("p", { className: "flex gap-1 items-center py-1 px-2 rounded-[20px] bg-accent-500 body-3", children: [
9546
- /* @__PURE__ */ u(Uc, { className: "w-4 h-4" }),
9544
+ /* @__PURE__ */ u(jc, { className: "w-4 h-4" }),
9547
9545
  (c == null ? void 0 : c.dataset) ?? "Dataset"
9548
9546
  ] }),
9549
9547
  /* @__PURE__ */ k("h5", { className: "flex items-center text-neutrals-700", children: [
@@ -9561,7 +9559,7 @@ const cs = (e, n, t) => {
9561
9559
  title: (c == null ? void 0 : c.metadata) ?? "View details",
9562
9560
  buttonClassName: "!text-neutrals-1000 !border-none !w-5 !h-5 !p-0 shrink-0",
9563
9561
  icon: /* @__PURE__ */ u(Hn, { width: 20, height: 20 }),
9564
- onClick: E
9562
+ onClick: T
9565
9563
  }
9566
9564
  ) }),
9567
9565
  l && /* @__PURE__ */ u("a", { href: l, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ u(Ii, { className: "cursor-pointer w-6 h-6 shrink-0" }) })
@@ -9587,7 +9585,7 @@ const cs = (e, n, t) => {
9587
9585
  }
9588
9586
  )
9589
9587
  ] });
9590
- }, Hs = ({
9588
+ }, Gs = ({
9591
9589
  titles: e,
9592
9590
  locale: n,
9593
9591
  isShowShare: t,
@@ -9653,17 +9651,17 @@ const cs = (e, n, t) => {
9653
9651
  }
9654
9652
  );
9655
9653
  };
9656
- function Gs(e, n, t) {
9654
+ function Bs(e, n, t) {
9657
9655
  const r = n.map((i) => i.id).filter((i) => i != null), o = t.map((i) => i.id).filter((i) => i != null);
9658
- return Bs(
9656
+ return Ws(
9659
9657
  e,
9660
9658
  r,
9661
9659
  o,
9662
9660
  r
9663
9661
  );
9664
9662
  }
9665
- const Bs = (e, n, t, r) => {
9666
- const o = Fs(e, n), i = {};
9663
+ const Ws = (e, n, t, r) => {
9664
+ const o = zs(e, n), i = {};
9667
9665
  for (const c of o) {
9668
9666
  const h = c.rowTime, l = ti(h, r);
9669
9667
  if (i[l] == null) {
@@ -9678,17 +9676,17 @@ const Bs = (e, n, t, r) => {
9678
9676
  ...i[l],
9679
9677
  id: l,
9680
9678
  originalData: c.originalData,
9681
- ...Ws(h, t)
9679
+ ...Fs(h, t)
9682
9680
  };
9683
9681
  }
9684
9682
  return Object.values(i);
9685
- }, ti = (e, n) => n.map((t) => e[t]).join("_"), Ws = (e, n) => {
9683
+ }, ti = (e, n) => n.map((t) => e[t]).join("_"), Fs = (e, n) => {
9686
9684
  const t = ti(e, n), { OBS_VALUE: r, obsAttributes: o } = e, i = {};
9687
9685
  return i[t] = {
9688
9686
  value: r,
9689
9687
  obsAttributes: o
9690
9688
  }, i;
9691
- }, Fs = (e, n) => {
9689
+ }, zs = (e, n) => {
9692
9690
  const t = [];
9693
9691
  for (const r of e) {
9694
9692
  const o = {}, i = r.name.split(".");
@@ -9707,7 +9705,7 @@ const Bs = (e, n, t, r) => {
9707
9705
  var s;
9708
9706
  const h = { ...o };
9709
9707
  h.TIME_PERIOD = c.dimensionAtObservation;
9710
- const l = zs(r, c);
9708
+ const l = $s(r, c);
9711
9709
  h.OBS_VALUE = l, h.obsAttributes = ((s = c == null ? void 0 : c.obsAttributes) == null ? void 0 : s.filter(({ value: a }) => a)) || [], t.push({
9712
9710
  rowTime: h,
9713
9711
  attributes: r.attributes,
@@ -9717,7 +9715,7 @@ const Bs = (e, n, t, r) => {
9717
9715
  });
9718
9716
  }
9719
9717
  return t;
9720
- }, zs = (e, n) => {
9718
+ }, $s = (e, n) => {
9721
9719
  const r = [...e.attributes, ...n.obsAttributes].find(
9722
9720
  ({ name: o }) => o === "OBS_VALUE"
9723
9721
  );
@@ -9725,8 +9723,8 @@ const Bs = (e, n, t, r) => {
9725
9723
  };
9726
9724
  function ri(e, n, t, r, o) {
9727
9725
  var s, a;
9728
- const i = e == null ? [] : ji(e), c = ((s = Ve(n)) == null ? void 0 : s.dimensions) || [], h = ((a = Ve(n)) == null ? void 0 : a.timeDimensions) || [], l = Gs(i, c, h);
9729
- return $s(
9726
+ const i = e == null ? [] : ji(e), c = ((s = Ve(n)) == null ? void 0 : s.dimensions) || [], h = ((a = Ve(n)) == null ? void 0 : a.timeDimensions) || [], l = Bs(i, c, h);
9727
+ return Js(
9730
9728
  l,
9731
9729
  e,
9732
9730
  n,
@@ -9735,11 +9733,11 @@ function ri(e, n, t, r, o) {
9735
9733
  o
9736
9734
  );
9737
9735
  }
9738
- function $s(e, n, t, r, o, i) {
9736
+ function Js(e, n, t, r, o, i) {
9739
9737
  const h = zn(n).sort((l, s) => $n(l, s));
9740
9738
  return e.map((l) => ({
9741
9739
  ...l,
9742
- [gn]: td(
9740
+ [gn]: rd(
9743
9741
  l,
9744
9742
  h,
9745
9743
  t,
@@ -9771,8 +9769,8 @@ function ii(e, n, t, r, o) {
9771
9769
  const i = oi(e, n, r), c = (h = t == null ? void 0 : t.codes) == null ? void 0 : h.find((l) => l.id === i);
9772
9770
  return me(c, o);
9773
9771
  }
9774
- const Js = "#EEEEEE", Us = "#777777";
9775
- function js(e, n, t) {
9772
+ const Us = "#EEEEEE", js = "#777777";
9773
+ function Ys(e, n, t) {
9776
9774
  const r = {
9777
9775
  animation: !1,
9778
9776
  tooltip: {
@@ -9808,7 +9806,7 @@ function js(e, n, t) {
9808
9806
  };
9809
9807
  return (t == null ? void 0 : t.colors) != null && (r.color = t.colors), r;
9810
9808
  }
9811
- function Lr(e = Js, n = Us) {
9809
+ function Lr(e = Us, n = js) {
9812
9810
  return {
9813
9811
  splitLine: {
9814
9812
  show: !0,
@@ -9830,10 +9828,10 @@ function Lr(e = Js, n = Us) {
9830
9828
  }
9831
9829
  };
9832
9830
  }
9833
- function Ys(e, n) {
9831
+ function Ks(e, n) {
9834
9832
  const t = {};
9835
9833
  return e.forEach(
9836
- (r) => t[r] = Ks(
9834
+ (r) => t[r] = Zs(
9837
9835
  r,
9838
9836
  n
9839
9837
  )
@@ -9843,11 +9841,11 @@ function Ys(e, n) {
9843
9841
  )
9844
9842
  };
9845
9843
  }
9846
- function Ks(e, n) {
9847
- const t = n.map((o) => Zs(e, o));
9844
+ function Zs(e, n) {
9845
+ const t = n.map((o) => Xs(e, o));
9848
9846
  return new Set(t).size === 1;
9849
9847
  }
9850
- function Zs(e, n) {
9848
+ function Xs(e, n) {
9851
9849
  return n[e];
9852
9850
  }
9853
9851
  function li(e, n, t, r) {
@@ -9870,7 +9868,7 @@ function li(e, n, t, r) {
9870
9868
  );
9871
9869
  }).join(" - ");
9872
9870
  }
9873
- function Xs(e, n) {
9871
+ function qs(e, n) {
9874
9872
  var i, c;
9875
9873
  const t = [
9876
9874
  ...((i = n == null ? void 0 : n.metadata) == null ? void 0 : i.indicatorDimensions) || []
@@ -9882,36 +9880,36 @@ function Xs(e, n) {
9882
9880
  ).map((h) => h.id).filter((h) => h != null)) || [];
9883
9881
  return [...t, ...o];
9884
9882
  }
9885
- function qs(e, n, t) {
9883
+ function Qs(e, n, t) {
9886
9884
  const r = {};
9887
9885
  return e.forEach((o) => {
9888
- const i = Qs(o, n, t);
9886
+ const i = ed(o, n, t);
9889
9887
  r[i] || (r[i] = {
9890
9888
  rows: []
9891
9889
  }), r[i].rows.push(o);
9892
9890
  }), Object.keys(r).map((o) => r[o]);
9893
9891
  }
9894
- function Qs(e, n, t) {
9892
+ function ed(e, n, t) {
9895
9893
  var i, c, h, l;
9896
9894
  const r = ((l = (h = (c = (i = t.dataStructures) == null ? void 0 : i[0]) == null ? void 0 : c.dataStructureComponents) == null ? void 0 : h.dimensionList) == null ? void 0 : l.dimensions) || [];
9897
9895
  return n.map((s) => (r == null ? void 0 : r.find((d) => d.id === s)) == null ? e[s] || "" : oi(r, s, e)).join(" - ");
9898
9896
  }
9899
- const ed = "line", tn = 10;
9900
- function nd(e, n, t, r, o) {
9901
- const i = ri(n, e, t, r, o), h = zn(n).sort((d, f) => $n(d, f)), l = Xs(
9897
+ const nd = "line", tn = 10;
9898
+ function td(e, n, t, r, o) {
9899
+ const i = ri(n, e, t, r, o), h = zn(n).sort((d, f) => $n(d, f)), l = qs(
9902
9900
  e,
9903
9901
  t
9904
- ), { nonUniqDimensions: s } = Ys(
9902
+ ), { nonUniqDimensions: s } = Ks(
9905
9903
  l,
9906
9904
  i
9907
9905
  );
9908
9906
  return {
9909
- units: qs(i, s, e).map(
9907
+ units: Qs(i, s, e).map(
9910
9908
  (d) => ai(d, e, t, h, r, o)
9911
9909
  )
9912
9910
  };
9913
9911
  }
9914
- function td(e, n, t, r, o, i) {
9912
+ function rd(e, n, t, r, o, i) {
9915
9913
  return ai(
9916
9914
  { rows: [e] },
9917
9915
  t,
@@ -9923,21 +9921,21 @@ function td(e, n, t, r, o, i) {
9923
9921
  }
9924
9922
  function ai(e, n, t, r, o, i) {
9925
9923
  var s, a;
9926
- const c = od(
9924
+ const c = id(
9927
9925
  e.rows.length > tn ? e.rows.slice(0, tn) : e.rows,
9928
9926
  n,
9929
9927
  t,
9930
9928
  o,
9931
9929
  r
9932
- ), h = ld(e.rows, n, o), l = (s = h == null ? void 0 : h.find(
9930
+ ), h = ad(e.rows, n, o), l = (s = h == null ? void 0 : h.find(
9933
9931
  (d) => Ki.includes(d == null ? void 0 : d.id)
9934
9932
  )) == null ? void 0 : s.id;
9935
9933
  return {
9936
9934
  rows: e.rows,
9937
9935
  limitedByRowsAmountTo: e.rows.length > tn ? tn : void 0,
9938
9936
  dimensions: h,
9939
- config: js(
9940
- rd(
9937
+ config: Ys(
9938
+ od(
9941
9939
  r,
9942
9940
  (a = e == null ? void 0 : e.rows) == null ? void 0 : a[0],
9943
9941
  l
@@ -9947,7 +9945,7 @@ function ai(e, n, t, r, o, i) {
9947
9945
  )
9948
9946
  };
9949
9947
  }
9950
- function rd(e, n, t) {
9948
+ function od(e, n, t) {
9951
9949
  if (t) {
9952
9950
  const r = n == null ? void 0 : n[t];
9953
9951
  if (r === xn.MONTHLY)
@@ -9959,7 +9957,7 @@ function rd(e, n, t) {
9959
9957
  }
9960
9958
  return e;
9961
9959
  }
9962
- function od(e, n, t, r, o) {
9960
+ function id(e, n, t, r, o) {
9963
9961
  return e.map((i) => {
9964
9962
  var c, h;
9965
9963
  return {
@@ -9969,35 +9967,35 @@ function od(e, n, t, r, o) {
9969
9967
  n,
9970
9968
  r
9971
9969
  ),
9972
- type: ed,
9973
- data: o.map((l) => id(l, i))
9970
+ type: nd,
9971
+ data: o.map((l) => ld(l, i))
9974
9972
  };
9975
9973
  });
9976
9974
  }
9977
- function id(e, n) {
9975
+ function ld(e, n) {
9978
9976
  var t, r, o;
9979
9977
  return ((o = (r = (t = n[e]) == null ? void 0 : t.value) == null ? void 0 : r[0]) == null ? void 0 : o.value) || null;
9980
9978
  }
9981
- function ld(e, n, t) {
9979
+ function ad(e, n, t) {
9982
9980
  var r;
9983
9981
  return (((r = Ve(n)) == null ? void 0 : r.dimensions) || []).map((o) => {
9984
9982
  if (o.id != null)
9985
9983
  return {
9986
9984
  id: o.id,
9987
- title: ad(o, n, t),
9985
+ title: cd(o, n, t),
9988
9986
  value: li(e[0], [o.id], n, t)
9989
9987
  };
9990
9988
  }).filter((o) => o != null);
9991
9989
  }
9992
- function ad(e, n, t) {
9990
+ function cd(e, n, t) {
9993
9991
  const r = n.conceptSchemes || [], o = n.codelists || [], { concept: i } = et(e, r, o);
9994
9992
  return me(i, t) || e.id;
9995
9993
  }
9996
- function cd(e, n, t, r, o, i, c, h, l) {
9997
- const s = sd(e, t), a = l != null && l.startPeriod && l.endPeriod ? Xi(
9994
+ function sd(e, n, t, r, o, i, c, h, l) {
9995
+ const s = dd(e, t), a = l != null && l.startPeriod && l.endPeriod ? Xi(
9998
9996
  h,
9999
9997
  l
10000
- ) : [], d = dd(
9998
+ ) : [], d = ud(
10001
9999
  e,
10002
10000
  n,
10003
10001
  t,
@@ -10007,7 +10005,7 @@ function cd(e, n, t, r, o, i, c, h, l) {
10007
10005
  a
10008
10006
  );
10009
10007
  return [
10010
- ta(
10008
+ ra(
10011
10009
  e,
10012
10010
  n == null ? void 0 : n.data,
10013
10011
  t,
@@ -10017,10 +10015,10 @@ function cd(e, n, t, r, o, i, c, h, l) {
10017
10015
  ),
10018
10016
  ...s,
10019
10017
  ...d,
10020
- ra(e, n == null ? void 0 : n.data, t, void 0, i, c)
10018
+ oa(e, n == null ? void 0 : n.data, t, void 0, i, c)
10021
10019
  ];
10022
10020
  }
10023
- function sd(e, n) {
10021
+ function dd(e, n) {
10024
10022
  var i;
10025
10023
  const t = e.conceptSchemes || [], r = e.codelists || [], o = ((i = Ve(e)) == null ? void 0 : i.dimensions) || [];
10026
10024
  return o.map((c) => {
@@ -10048,11 +10046,11 @@ function sd(e, n) {
10048
10046
  };
10049
10047
  });
10050
10048
  }
10051
- function dd(e, n, t, r, o, i, c) {
10049
+ function ud(e, n, t, r, o, i, c) {
10052
10050
  const h = c != null && c.length ? c : zn(n);
10053
- return hd(
10051
+ return fd(
10054
10052
  h,
10055
- (s, a) => ud(
10053
+ (s, a) => hd(
10056
10054
  s,
10057
10055
  a || s,
10058
10056
  r,
@@ -10064,8 +10062,8 @@ function dd(e, n, t, r, o, i, c) {
10064
10062
  i
10065
10063
  );
10066
10064
  }
10067
- const ud = (e, n, t = Ni, r) => ({
10068
- headerName: ic(n, r),
10065
+ const hd = (e, n, t = Ni, r) => ({
10066
+ headerName: lc(n, r),
10069
10067
  colId: e,
10070
10068
  field: e,
10071
10069
  type: "numericColumn",
@@ -10074,7 +10072,7 @@ const ud = (e, n, t = Ni, r) => ({
10074
10072
  width: kn,
10075
10073
  cellClass: ["justify-end", "cell-with-meta"],
10076
10074
  valueFormatter: (o) => Ci(o.value, t)
10077
- }), hd = (e, n, t, r, o, i) => {
10075
+ }), fd = (e, n, t, r, o, i) => {
10078
10076
  const c = [];
10079
10077
  return e.sort((l, s) => $n(l, s)).forEach((l) => {
10080
10078
  c.push({
@@ -10097,9 +10095,9 @@ const ud = (e, n, t = Ni, r) => ({
10097
10095
  });
10098
10096
  }), c;
10099
10097
  };
10100
- function fd(e, n, t, r, o, i, c, h, l, s, a) {
10098
+ function gd(e, n, t, r, o, i, c, h, l, s, a) {
10101
10099
  return {
10102
- columns: cd(
10100
+ columns: sd(
10103
10101
  e,
10104
10102
  n,
10105
10103
  r,
@@ -10120,13 +10118,13 @@ function ci(e, n, t, r, o, i, c) {
10120
10118
  }), [D, C] = N({
10121
10119
  title: (c == null ? void 0 : c.chart) || "Chart",
10122
10120
  type: ye.CUSTOM_CHART
10123
- }), [p, M] = N([]), [b, A] = N([]), [y, E] = N(!1), [I, T] = N({
10121
+ }), [p, M] = N([]), [b, A] = N([]), [y, T] = N(!1), [I, E] = N({
10124
10122
  startPeriod: null,
10125
10123
  endPeriod: null
10126
10124
  }), x = _(
10127
10125
  async (P) => {
10128
10126
  var B;
10129
- const L = lc(P);
10127
+ const L = ac(P);
10130
10128
  try {
10131
10129
  const G = await e.getConstraints(
10132
10130
  P.urn,
@@ -10151,13 +10149,13 @@ function ci(e, n, t, r, o, i, c) {
10151
10149
  const z = (G == null ? void 0 : G.dimensions) == null ? null : Wn(
10152
10150
  G == null ? void 0 : G.dimensions,
10153
10151
  P.filters
10154
- ), Z = Nc(
10152
+ ), Z = Dc(
10155
10153
  P,
10156
10154
  G
10157
10155
  );
10158
10156
  e.getDataSetData(P.urn, { filterKey: z, timeFilter: Z }).then((oe) => {
10159
10157
  l(oe || void 0), A(ur(oe));
10160
- }).finally(() => E(!1));
10158
+ }).finally(() => T(!1));
10161
10159
  }
10162
10160
  });
10163
10161
  },
@@ -10165,7 +10163,7 @@ function ci(e, n, t, r, o, i, c) {
10165
10163
  );
10166
10164
  O(() => {
10167
10165
  async function P(L) {
10168
- E(!0);
10166
+ T(!0);
10169
10167
  try {
10170
10168
  await Promise.all([
10171
10169
  x(L),
@@ -10181,13 +10179,13 @@ function ci(e, n, t, r, o, i, c) {
10181
10179
  (P, L, B) => {
10182
10180
  var G;
10183
10181
  try {
10184
- E(!0), f(L);
10182
+ T(!0), f(L);
10185
10183
  const z = (G = B == null ? void 0 : B.find(
10186
10184
  (Z) => Z.id === dn
10187
10185
  )) == null ? void 0 : G.timeRange;
10188
- z && T(z), e.getDataSetData((t == null ? void 0 : t.urn) || "", P).then((Z) => {
10186
+ z && E(z), e.getDataSetData((t == null ? void 0 : t.urn) || "", P).then((Z) => {
10189
10187
  l(Z || void 0), A(ur(Z));
10190
- }).finally(() => E(!1));
10188
+ }).finally(() => T(!1));
10191
10189
  } catch (z) {
10192
10190
  console.error("Error loading dataset data", z);
10193
10191
  }
@@ -10197,7 +10195,7 @@ function ci(e, n, t, r, o, i, c) {
10197
10195
  O(() => {
10198
10196
  var P, L, B;
10199
10197
  if (g != null && h != null && (d != null && d.length)) {
10200
- const G = (B = (L = (P = g.dataflows) == null ? void 0 : P[0]) == null ? void 0 : L.names) == null ? void 0 : B[n], z = fd(
10198
+ const G = (B = (L = (P = g.dataflows) == null ? void 0 : P[0]) == null ? void 0 : L.names) == null ? void 0 : B[n], z = gd(
10201
10199
  g,
10202
10200
  h,
10203
10201
  t,
@@ -10230,7 +10228,7 @@ function ci(e, n, t, r, o, i, c) {
10230
10228
  e == null ? void 0 : e.putOnboardingFile
10231
10229
  ]), O(() => {
10232
10230
  g != null && h != null && C((P) => {
10233
- const L = nd(
10231
+ const L = td(
10234
10232
  g,
10235
10233
  h,
10236
10234
  t,
@@ -10259,7 +10257,7 @@ function ci(e, n, t, r, o, i, c) {
10259
10257
  dataSetAttachments: F
10260
10258
  };
10261
10259
  }
10262
- const du = ({
10260
+ const uu = ({
10263
10261
  attachmentsProps: e,
10264
10262
  actions: n,
10265
10263
  titles: t,
@@ -10271,7 +10269,7 @@ const du = ({
10271
10269
  getDatasetUpdatedTime: l,
10272
10270
  ...s
10273
10271
  }) => {
10274
- var A, y, E, I, T, x;
10272
+ var A, y, T, I, E, x;
10275
10273
  const {
10276
10274
  dataMessage: a,
10277
10275
  dataset: d,
@@ -10303,7 +10301,7 @@ const du = ({
10303
10301
  );
10304
10302
  return /* @__PURE__ */ k("div", { className: "advanced-view flex flex-col flex-1 h-full min-w-0", children: [
10305
10303
  /* @__PURE__ */ u(
10306
- Hs,
10304
+ Gs,
10307
10305
  {
10308
10306
  titles: t,
10309
10307
  locale: c,
@@ -10312,7 +10310,7 @@ const du = ({
10312
10310
  }
10313
10311
  ),
10314
10312
  (y = e == null ? void 0 : e.datasets) != null && y.length ? /* @__PURE__ */ k(se, { children: [
10315
- ((E = e == null ? void 0 : e.datasets) == null ? void 0 : E.length) > 1 && /* @__PURE__ */ u(
10313
+ ((T = e == null ? void 0 : e.datasets) == null ? void 0 : T.length) > 1 && /* @__PURE__ */ u(
10316
10314
  Jo,
10317
10315
  {
10318
10316
  datasets: e == null ? void 0 : e.datasets,
@@ -10322,9 +10320,9 @@ const du = ({
10322
10320
  selectDataset: b
10323
10321
  }
10324
10322
  ),
10325
- D && !p ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ k(se, { children: [
10323
+ D && !p ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ k(se, { children: [
10326
10324
  /* @__PURE__ */ u(
10327
- Ps,
10325
+ Hs,
10328
10326
  {
10329
10327
  titles: t,
10330
10328
  isShowAgency: h == null ? void 0 : h.isShowAgency,
@@ -10334,7 +10332,7 @@ const du = ({
10334
10332
  structures: w,
10335
10333
  metadataSettings: o,
10336
10334
  getDatasetUpdatedTime: l,
10337
- externalLink: (x = (T = e == null ? void 0 : e.currentDataQuery) == null ? void 0 : T.metadata) == null ? void 0 : x.datasetUrl
10335
+ externalLink: (x = (E = e == null ? void 0 : e.currentDataQuery) == null ? void 0 : E.metadata) == null ? void 0 : x.datasetUrl
10338
10336
  }
10339
10337
  ),
10340
10338
  /* @__PURE__ */ u(
@@ -10345,7 +10343,7 @@ const du = ({
10345
10343
  "advanced-view-filters"
10346
10344
  ),
10347
10345
  children: /* @__PURE__ */ u(
10348
- Jc,
10346
+ Uc,
10349
10347
  {
10350
10348
  ...s,
10351
10349
  titles: t,
@@ -10370,10 +10368,10 @@ const du = ({
10370
10368
  }
10371
10369
  )
10372
10370
  ] })
10373
- ] }) : /* @__PURE__ */ u(Te, {})
10371
+ ] }) : /* @__PURE__ */ u(Ee, {})
10374
10372
  ] });
10375
10373
  };
10376
- function gd(e, n) {
10374
+ function wd(e, n) {
10377
10375
  const [t, r] = N([]), [o, i] = N();
10378
10376
  return O(() => {
10379
10377
  function c(h) {
@@ -10415,15 +10413,15 @@ function gd(e, n) {
10415
10413
  }
10416
10414
  function _r(e) {
10417
10415
  const n = e == null ? void 0 : e.filter(
10418
- (t) => To(t)
10416
+ (t) => Eo(t)
10419
10417
  );
10420
10418
  if (n != null && n.every((t) => !!(t != null && t.data)))
10421
10419
  return n == null ? void 0 : n.map((t) => ({
10422
10420
  title: t == null ? void 0 : t.title,
10423
- ...md(wd(t == null ? void 0 : t.data))
10421
+ ...pd(md(t == null ? void 0 : t.data))
10424
10422
  }));
10425
10423
  }
10426
- function wd(e) {
10424
+ function md(e) {
10427
10425
  if (e)
10428
10426
  try {
10429
10427
  return JSON.parse(e);
@@ -10432,7 +10430,7 @@ function wd(e) {
10432
10430
  }
10433
10431
  return null;
10434
10432
  }
10435
- function md(e) {
10433
+ function pd(e) {
10436
10434
  var n, t, r, o, i, c;
10437
10435
  return {
10438
10436
  ...e,
@@ -10448,7 +10446,7 @@ function md(e) {
10448
10446
  };
10449
10447
  }
10450
10448
  var si = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(si || {});
10451
- const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10449
+ const vd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10452
10450
  "div",
10453
10451
  {
10454
10452
  ref: n,
@@ -10465,7 +10463,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10465
10463
  (e == null ? void 0 : e.content) && "mb-4"
10466
10464
  ),
10467
10465
  children: [
10468
- t && /* @__PURE__ */ u(Te, {}),
10466
+ t && /* @__PURE__ */ u(Ee, {}),
10469
10467
  /* @__PURE__ */ u("h3", { className: "message-stage-name", children: e == null ? void 0 : e.name })
10470
10468
  ]
10471
10469
  }
@@ -10497,7 +10495,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10497
10495
  ] })
10498
10496
  ]
10499
10497
  }
10500
- ), vd = ({ stages: e, expandIcon: n, processingTitle: t }) => {
10498
+ ), bd = ({ stages: e, expandIcon: n, processingTitle: t }) => {
10501
10499
  const [r, o] = N(), [i, c] = N(), h = ue(null), l = ue(null);
10502
10500
  O(() => {
10503
10501
  var a;
@@ -10552,7 +10550,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10552
10550
  }
10553
10551
  ),
10554
10552
  r && e && /* @__PURE__ */ u("div", { className: "flex flex-col", children: e == null ? void 0 : e.map((a) => /* @__PURE__ */ u(
10555
- pd,
10553
+ vd,
10556
10554
  {
10557
10555
  stage: a,
10558
10556
  stageRef: i ? l : null,
@@ -10561,7 +10559,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10561
10559
  a.index
10562
10560
  )) })
10563
10561
  ] });
10564
- }, bd = (e, n, t, r) => n == null ? void 0 : n.map((o) => {
10562
+ }, kd = (e, n, t, r) => n == null ? void 0 : n.map((o) => {
10565
10563
  var d;
10566
10564
  const i = e == null ? void 0 : e.find(
10567
10565
  (f) => (f == null ? void 0 : f.urn) === (o == null ? void 0 : o.urn)
@@ -10571,7 +10569,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10571
10569
  ];
10572
10570
  return {
10573
10571
  datasetName: me((d = c == null ? void 0 : c.dataflows) == null ? void 0 : d[0], r),
10574
- queryFiltersDetails: kd(
10572
+ queryFiltersDetails: Cd(
10575
10573
  Rr(
10576
10574
  (i == null ? void 0 : i.filters) || [],
10577
10575
  a,
@@ -10588,7 +10586,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10588
10586
  )
10589
10587
  )
10590
10588
  };
10591
- }), kd = (e, n) => {
10589
+ }), Cd = (e, n) => {
10592
10590
  const t = new Map(
10593
10591
  e == null ? void 0 : e.map((r) => [r == null ? void 0 : r.id, r])
10594
10592
  );
@@ -10626,7 +10624,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10626
10624
  ) || f;
10627
10625
  })
10628
10626
  };
10629
- }), Cd = ({
10627
+ }), Nd = ({
10630
10628
  message: e,
10631
10629
  regenerateMessage: n,
10632
10630
  messageActionsIcons: t,
@@ -10651,7 +10649,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10651
10649
  l && !i && d !== !1 && (d === null ? /* @__PURE__ */ u("p", { onClick: () => g(!0), children: l }) : /* @__PURE__ */ u("p", { children: a })),
10652
10650
  s && !i && d !== !0 && (d === null ? /* @__PURE__ */ u("p", { onClick: () => g(!1), children: s }) : /* @__PURE__ */ u("p", { className: "rotate-180", children: a }))
10653
10651
  ] });
10654
- }, Nd = ({
10652
+ }, Dd = ({
10655
10653
  message: e,
10656
10654
  onEditClick: n,
10657
10655
  messageActionsIcons: t,
@@ -10663,7 +10661,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10663
10661
  i && /* @__PURE__ */ u("p", { onClick: () => navigator.clipboard.writeText(e.content), children: i }),
10664
10662
  c && !r && !o && /* @__PURE__ */ u("p", { onClick: n, children: c })
10665
10663
  ] });
10666
- }, Dd = ({
10664
+ }, Md = ({
10667
10665
  content: e,
10668
10666
  textColorClass: n,
10669
10667
  onCancel: t,
@@ -10732,7 +10730,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10732
10730
  ]
10733
10731
  }
10734
10732
  );
10735
- }, Md = ({
10733
+ }, Ad = ({
10736
10734
  message: e,
10737
10735
  previousMessage: n,
10738
10736
  titles: t,
@@ -10758,16 +10756,16 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10758
10756
  isNotLastUserMessage: A
10759
10757
  }) => {
10760
10758
  var X, J;
10761
- const [y, E] = N(), [I, T] = N(), [x, S] = N([]), [$, F] = N(
10759
+ const [y, T] = N(), [I, E] = N(), [x, S] = N([]), [$, F] = N(
10762
10760
  []
10763
- ), [P, L] = N(), [B, G] = N(!1), z = e.role === ke.User, Z = e.role === ke.System, { datasets: oe, datasetStructuresMap: te } = gd(
10761
+ ), [P, L] = N(), [B, G] = N(!1), z = e.role === ke.User, Z = e.role === ke.System, { datasets: oe, datasetStructuresMap: te } = wd(
10764
10762
  r == null ? void 0 : r.getDataSet,
10765
10763
  y
10766
10764
  ), [ie, he] = N(!1), [Ce, De] = N(
10767
10765
  []
10768
10766
  );
10769
10767
  O(() => {
10770
- T(y == null ? void 0 : y[0]);
10768
+ E(y == null ? void 0 : y[0]);
10771
10769
  }, [y]);
10772
10770
  const { dataSetAttachments: ge, dimensions: pe, isLoadingGridData: Se } = ci(
10773
10771
  r,
@@ -10777,7 +10775,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10777
10775
  l == null ? void 0 : l.chartingStyles,
10778
10776
  f,
10779
10777
  t
10780
- ), { isOpenedAdvancedView: Me } = Be(), Ee = () => {
10778
+ ), { isOpenedAdvancedView: Me } = Be(), Te = () => {
10781
10779
  z && he(!0);
10782
10780
  }, Ne = () => {
10783
10781
  he(!1);
@@ -10785,7 +10783,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10785
10783
  Ne(), p == null || p({ ...e, content: U });
10786
10784
  }, Oe = _(
10787
10785
  (U) => {
10788
- U && (T(
10786
+ U && (E(
10789
10787
  y == null ? void 0 : y.find((re) => (re == null ? void 0 : re.urn) === U)
10790
10788
  ), L(void 0));
10791
10789
  },
@@ -10799,7 +10797,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10799
10797
  const U = mr(e), re = _r(U), we = U.filter(
10800
10798
  (R) => yo(R)
10801
10799
  );
10802
- E(re), F(we);
10800
+ T(re), F(we);
10803
10801
  }, [e]), O(() => {
10804
10802
  G(
10805
10803
  y != null && y.length > 0
@@ -10810,7 +10808,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10810
10808
  if ((e == null ? void 0 : e.role) === ke.System && n) {
10811
10809
  const U = mr(n), re = _r(U) || [];
10812
10810
  y && re && te && S(
10813
- bd(
10811
+ kd(
10814
10812
  re,
10815
10813
  y,
10816
10814
  te,
@@ -10905,7 +10903,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10905
10903
  children: [
10906
10904
  /* @__PURE__ */ k("div", { className: "mr-2 relative", children: [
10907
10905
  Le(),
10908
- c && /* @__PURE__ */ u(Te, {})
10906
+ c && /* @__PURE__ */ u(Ee, {})
10909
10907
  ] }),
10910
10908
  /* @__PURE__ */ k("div", { className: "flex-1 min-w-0", children: [
10911
10909
  /* @__PURE__ */ k(
@@ -10918,7 +10916,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10918
10916
  ),
10919
10917
  children: [
10920
10918
  !z && !Me && ((X = e == null ? void 0 : e.custom_content) != null && X.stages) ? /* @__PURE__ */ u(
10921
- vd,
10919
+ bd,
10922
10920
  {
10923
10921
  stages: (J = e == null ? void 0 : e.custom_content) == null ? void 0 : J.stages,
10924
10922
  expandIcon: g,
@@ -10926,7 +10924,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10926
10924
  }
10927
10925
  ) : c && /* @__PURE__ */ u("p", { className: "body-1 text-neutrals-700 loading-message", children: t == null ? void 0 : t.loading }),
10928
10926
  ie ? /* @__PURE__ */ u(
10929
- Dd,
10927
+ Md,
10930
10928
  {
10931
10929
  content: e.content,
10932
10930
  onCancel: Ne,
@@ -10939,16 +10937,16 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10939
10937
  ),
10940
10938
  W,
10941
10939
  !c && (z ? !ie && /* @__PURE__ */ u(
10942
- Nd,
10940
+ Dd,
10943
10941
  {
10944
10942
  messageActionsIcons: D,
10945
10943
  message: e,
10946
10944
  isStreaming: i,
10947
- onEditClick: Ee,
10945
+ onEditClick: Te,
10948
10946
  isReadOnly: b
10949
10947
  }
10950
10948
  ) : /* @__PURE__ */ u(
10951
- Cd,
10949
+ Nd,
10952
10950
  {
10953
10951
  messageActionsIcons: D,
10954
10952
  message: e,
@@ -10971,7 +10969,7 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
10971
10969
  )
10972
10970
  }
10973
10971
  ) });
10974
- }, Ad = ({
10972
+ }, xd = ({
10975
10973
  messages: e,
10976
10974
  isStreaming: n = !1,
10977
10975
  isReadOnly: t,
@@ -11023,14 +11021,14 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
11023
11021
  }, [v]), /* @__PURE__ */ k("div", { ref: c, className: "h-full w-full", children: [
11024
11022
  /* @__PURE__ */ k("div", { className: "flex flex-col gap-y-6 max-w-full", children: [
11025
11023
  e.map((m, D) => /* @__PURE__ */ u(
11026
- Md,
11024
+ Ad,
11027
11025
  {
11028
11026
  message: m,
11029
- previousMessage: Ac(e, D),
11027
+ previousMessage: xc(e, D),
11030
11028
  onAdvancedViewOpen: g,
11031
11029
  isStreaming: n,
11032
11030
  isCurrentMessageStreaming: n && D === e.length - 1 && m.role === ke.Assistant,
11033
- showAdvancedView: D === xc(e) && !t,
11031
+ showAdvancedView: D === Ec(e) && !t,
11034
11032
  isNotLastUserMessage: D === e.length - 1 && m.role !== ke.User,
11035
11033
  ...o
11036
11034
  },
@@ -11051,11 +11049,11 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
11051
11049
  }
11052
11050
  )
11053
11051
  ] });
11054
- }, xd = "AbortError", Td = (e) => {
11052
+ }, Ed = "AbortError", Td = (e) => {
11055
11053
  var t, r, o, i, c, h, l, s, a;
11056
11054
  const n = {};
11057
11055
  return (o = (r = (t = e.choices) == null ? void 0 : t[0]) == null ? void 0 : r.delta) != null && o.content && (n.content = e.choices[0].delta.content), (h = (c = (i = e.choices) == null ? void 0 : i[0]) == null ? void 0 : c.delta) != null && h.custom_content && (n.custom_content = e.choices[0].delta.custom_content), (a = (s = (l = e.choices) == null ? void 0 : l[0]) == null ? void 0 : s.delta) != null && a.role && (n.role = e.choices[0].delta.role), e.id && (n.responseId = e.id), n;
11058
- }, Ed = (e, n, t) => {
11056
+ }, yd = (e, n, t) => {
11059
11057
  const r = `${n}/${t}`, o = Pr({
11060
11058
  folderId: r,
11061
11059
  name: e == null ? void 0 : e.name
@@ -11065,29 +11063,29 @@ const pd = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ k(
11065
11063
  folderId: r,
11066
11064
  id: o
11067
11065
  };
11068
- }, yd = (e, n, t) => `/${n}${t}/${Di(e == null ? void 0 : e.folderId, e == null ? void 0 : e.id)}`, Sd = "local", Od = (e) => {
11066
+ }, Sd = (e, n, t) => `/${n}${t}/${Di(e == null ? void 0 : e.folderId, e == null ? void 0 : e.id)}`, Od = "local", Ld = (e) => {
11069
11067
  var n;
11070
- return !((n = e.permissions) != null && n.includes(mi.WRITE)) && !_d(e);
11071
- }, Ld = (e, n) => di(e) !== n, _d = (e) => di(e) === Sd, di = (e) => e.id.split("/")[0], Rd = (e, n) => nt([...(n == null ? void 0 : n.messages) || [], e]), nt = (e) => [...e].map((n) => {
11068
+ return !((n = e.permissions) != null && n.includes(mi.WRITE)) && !Rd(e);
11069
+ }, _d = (e, n) => di(e) !== n, Rd = (e) => di(e) === Od, di = (e) => e.id.split("/")[0], Id = (e, n) => nt([...(n == null ? void 0 : n.messages) || [], e]), nt = (e) => [...e].map((n) => {
11072
11070
  const t = {
11073
11071
  role: n.role,
11074
11072
  content: n.content
11075
11073
  };
11076
- return (n.role === ke.Assistant || n.role === ke.System) && n.custom_content != null && (n.custom_content.state != null || n.custom_content.attachments != null || n.custom_content.form_schema != null) && (t.custom_content = {}, n.custom_content.state != null && (t.custom_content.state = n.custom_content.state), n.custom_content.attachments != null && (t.custom_content.attachments = Pd(
11074
+ return (n.role === ke.Assistant || n.role === ke.System) && n.custom_content != null && (n.custom_content.state != null || n.custom_content.attachments != null || n.custom_content.form_schema != null) && (t.custom_content = {}, n.custom_content.state != null && (t.custom_content.state = n.custom_content.state), n.custom_content.attachments != null && (t.custom_content.attachments = Hd(
11077
11075
  n.custom_content.attachments
11078
11076
  )), n.custom_content.form_schema != null && (t.custom_content.form_schema = n.custom_content.form_schema)), n.role === ke.User && n.custom_content && (t.custom_content = n.custom_content), t;
11079
- }), Id = (e, n) => {
11077
+ }), Vd = (e, n) => {
11080
11078
  const t = n == null ? void 0 : n.messages, r = t == null ? void 0 : t.findIndex(
11081
11079
  (o) => e.id === o.id
11082
11080
  );
11083
11081
  return nt((t == null ? void 0 : t.slice(0, r)) || []);
11084
- }, Vd = (e, n) => {
11082
+ }, Pd = (e, n) => {
11085
11083
  const t = n == null ? void 0 : n.messages, r = t == null ? void 0 : t.findIndex(
11086
11084
  (o) => e.id === o.id
11087
11085
  );
11088
11086
  return nt([...(t == null ? void 0 : t.slice(0, r)) || [], e]);
11089
11087
  };
11090
- function Pd(e) {
11088
+ function Hd(e) {
11091
11089
  return e.map((n) => ({
11092
11090
  type: n.type,
11093
11091
  title: n.title,
@@ -11097,7 +11095,7 @@ function Pd(e) {
11097
11095
  reference_url: n.reference_url
11098
11096
  }));
11099
11097
  }
11100
- const Hd = (e, n, t, r) => {
11098
+ const Gd = (e, n, t, r) => {
11101
11099
  if (!t || n)
11102
11100
  return null;
11103
11101
  const o = {
@@ -11107,13 +11105,13 @@ const Hd = (e, n, t, r) => {
11107
11105
  timestamp: Date.now()
11108
11106
  };
11109
11107
  if (r) {
11110
- const i = r === Jn.COMPLETE ? Rn.COMPLETION : Rn.CHOICE;
11108
+ const i = r === Jn.COMPLETE ? On.COMPLETION : On.CHOICE;
11111
11109
  o.custom_content = {
11112
11110
  form_value: { [i]: r }
11113
11111
  };
11114
11112
  }
11115
11113
  return o;
11116
- }, uu = ({
11114
+ }, hu = ({
11117
11115
  conversationKey: e,
11118
11116
  conversation: n,
11119
11117
  actions: t,
@@ -11138,10 +11136,10 @@ const Hd = (e, n, t, r) => {
11138
11136
  signOutAction: b,
11139
11137
  messageActionsIcons: A,
11140
11138
  editMessageTitles: y,
11141
- scrollBottomIcon: E,
11139
+ scrollBottomIcon: T,
11142
11140
  isFinalMessage: I
11143
11141
  }) => {
11144
- const [T, x] = N(null), [S, $] = N(!1), [F, P] = N(!0), [L, B] = N(!1), { isOpenedAdvancedView: G } = Be(), {
11142
+ const [E, x] = N(null), [S, $] = N(!1), [F, P] = N(!0), [L, B] = N(!1), { isOpenedAdvancedView: G } = Be(), {
11145
11143
  onboardingFileSchema: z,
11146
11144
  onboardingFilePath: Z,
11147
11145
  onboardingFileName: oe,
@@ -11170,7 +11168,7 @@ const Hd = (e, n, t, r) => {
11170
11168
  M(`/${d}${f}`);
11171
11169
  }, [d, f, M]), Ce = _(async () => {
11172
11170
  try {
11173
- const { bucket: R } = await t.getBucket(), V = Ed(
11171
+ const { bucket: R } = await t.getBucket(), V = yd(
11174
11172
  n,
11175
11173
  R,
11176
11174
  d
@@ -11178,7 +11176,7 @@ const Hd = (e, n, t, r) => {
11178
11176
  await t.createConversation(V, d);
11179
11177
  const j = await t.getConversations(d);
11180
11178
  p(Sn(j)), M(
11181
- yd(
11179
+ Sd(
11182
11180
  V,
11183
11181
  d,
11184
11182
  f
@@ -11251,7 +11249,7 @@ const Hd = (e, n, t, r) => {
11251
11249
  t.rateResponse(R, V);
11252
11250
  },
11253
11251
  [t]
11254
- ), Ee = _(
11252
+ ), Te = _(
11255
11253
  async (R, V, j) => {
11256
11254
  var ne;
11257
11255
  const Y = new AbortController();
@@ -11306,8 +11304,8 @@ const Hd = (e, n, t, r) => {
11306
11304
  },
11307
11305
  [C]
11308
11306
  ), Oe = _(() => {
11309
- T && !T.signal.aborted && T.abort();
11310
- }, [T]), Le = (R) => (R == null ? void 0 : R.name) === xd, W = _(
11307
+ E && !E.signal.aborted && E.abort();
11308
+ }, [E]), Le = (R) => (R == null ? void 0 : R.name) === Ed, W = _(
11311
11309
  async (R, V, j, Y, ee, ne = !0) => {
11312
11310
  Le(ee) ? await Ne(
11313
11311
  Y ?? j,
@@ -11320,7 +11318,7 @@ const Hd = (e, n, t, r) => {
11320
11318
  async (R, V, j) => {
11321
11319
  if (!V || !R)
11322
11320
  return;
11323
- const Y = Hd(
11321
+ const Y = Gd(
11324
11322
  R,
11325
11323
  L,
11326
11324
  V,
@@ -11331,8 +11329,8 @@ const Hd = (e, n, t, r) => {
11331
11329
  ge(Y);
11332
11330
  try {
11333
11331
  B(!0), ee = pe();
11334
- const xe = Rd(Y, V);
11335
- ne = await Ee(
11332
+ const xe = Id(Y, V);
11333
+ ne = await Te(
11336
11334
  ee,
11337
11335
  xe,
11338
11336
  V
@@ -11358,7 +11356,7 @@ const Hd = (e, n, t, r) => {
11358
11356
  L,
11359
11357
  ge,
11360
11358
  pe,
11361
- Ee,
11359
+ Te,
11362
11360
  Ne,
11363
11361
  W
11364
11362
  ]
@@ -11366,7 +11364,7 @@ const Hd = (e, n, t, r) => {
11366
11364
  async (R, V, j) => {
11367
11365
  let Y, ee;
11368
11366
  try {
11369
- B(!0), Y = pe(), ee = await Ee(
11367
+ B(!0), Y = pe(), ee = await Te(
11370
11368
  Y,
11371
11369
  R,
11372
11370
  V
@@ -11390,14 +11388,14 @@ const Hd = (e, n, t, r) => {
11390
11388
  [
11391
11389
  Ne,
11392
11390
  W,
11393
- Ee,
11391
+ Te,
11394
11392
  pe
11395
11393
  ]
11396
11394
  ), U = _(
11397
11395
  async (R, V) => {
11398
11396
  if (!V || !R)
11399
11397
  return;
11400
- const j = Id(R, V), Y = {
11398
+ const j = Vd(R, V), Y = {
11401
11399
  ...V,
11402
11400
  messages: V.messages.slice(0, j.length)
11403
11401
  };
@@ -11413,7 +11411,7 @@ const Hd = (e, n, t, r) => {
11413
11411
  async (R, V) => {
11414
11412
  if (!V || !R)
11415
11413
  return;
11416
- const j = Vd(R, V), Y = {
11414
+ const j = Pd(R, V), Y = {
11417
11415
  ...V,
11418
11416
  messages: [...V.messages.slice(0, j.length - 1), R]
11419
11417
  };
@@ -11433,7 +11431,7 @@ const Hd = (e, n, t, r) => {
11433
11431
  P(!0);
11434
11432
  const { bucket: ee } = await t.getBucket(), ne = await t.getConversation(decodeURI(e));
11435
11433
  C(ne), $(
11436
- Od(ne) && Ld(ne, ee)
11434
+ Ld(ne) && _d(ne, ee)
11437
11435
  ), (ne.messages.length === 0 || ((j = (V = ne == null ? void 0 : ne.messages) == null ? void 0 : V[0]) == null ? void 0 : j.role) === ke.Assistant && ((Y = ne == null ? void 0 : ne.messages) == null ? void 0 : Y.length) === 1) && X(ne.prompt, ne);
11438
11436
  } catch {
11439
11437
  $(!0);
@@ -11457,7 +11455,7 @@ const Hd = (e, n, t, r) => {
11457
11455
  }),
11458
11456
  [t]
11459
11457
  );
11460
- return F ? /* @__PURE__ */ u(Te, {}) : /* @__PURE__ */ k(
11458
+ return F ? /* @__PURE__ */ u(Ee, {}) : /* @__PURE__ */ k(
11461
11459
  "div",
11462
11460
  {
11463
11461
  className: H(
@@ -11487,7 +11485,7 @@ const Hd = (e, n, t, r) => {
11487
11485
  r == null ? void 0 : r.messagesWrapperClass
11488
11486
  ),
11489
11487
  children: /* @__PURE__ */ u(
11490
- Ad,
11488
+ xd,
11491
11489
  {
11492
11490
  messages: (n == null ? void 0 : n.messages) || [],
11493
11491
  actions: we,
@@ -11511,7 +11509,7 @@ const Hd = (e, n, t, r) => {
11511
11509
  rateResponse: Me,
11512
11510
  editMessage: (R) => re(R, n),
11513
11511
  editMessageTitles: y,
11514
- scrollBottomIcon: E,
11512
+ scrollBottomIcon: T,
11515
11513
  isReadOnlyConversation: S || te
11516
11514
  }
11517
11515
  )
@@ -11553,11 +11551,15 @@ const Hd = (e, n, t, r) => {
11553
11551
  );
11554
11552
  };
11555
11553
  export {
11556
- du as AdvancedView,
11557
- iu as AdvancedViewProvider,
11558
- On as ChartingIcon,
11559
- uu as ConversationView,
11560
- su as ConversationWelcome,
11561
- lu as OnboardingProvider,
11562
- Be as useAdvancedView
11554
+ uu as AdvancedView,
11555
+ lu as AdvancedViewProvider,
11556
+ Jn as CUSTOM_CHOICE_ID,
11557
+ Ln as ChartingIcon,
11558
+ hu as ConversationView,
11559
+ du as ConversationWelcome,
11560
+ On as CustomContentProperties,
11561
+ au as OnboardingProvider,
11562
+ gl as STAGE_STATUS,
11563
+ Be as useAdvancedView,
11564
+ Ae as useOnboarding
11563
11565
  };