@devtable/dashboard 13.23.0 → 13.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4787,7 +4787,6 @@ const fa = re(({
4787
4787
  autoSubmit: s,
4788
4788
  onSubmit: a
4789
4789
  }, o) => {
4790
- console.log("value:", e);
4791
4790
  const [l, c] = U(e), d = ph({
4792
4791
  extensions: [mh, hh, eh, sh, ih, nh, lh.configure({
4793
4792
  resizable: !1,
@@ -4902,7 +4901,7 @@ function Mt({
4902
4901
  }
4903
4902
  }
4904
4903
  function Aj(e, t) {
4905
- return e.replaceAll(/(\$\{([^{\}]+(?=}))\})/g, (...i) => {
4904
+ return e.replaceAll(/(\$\{([^{\}]+(?=}))\}\})/g, (...i) => {
4906
4905
  const s = i[2], a = t.variableStyleMap[s];
4907
4906
  if (!a)
4908
4907
  return `{{${s}}}`;
@@ -5223,19 +5222,17 @@ function Jj(e, t, n) {
5223
5222
  }
5224
5223
  }
5225
5224
  function ip(e, t, n, i) {
5226
- const s = Yj(t, i), a = /^(.+)\}\}(.*)$/;
5227
- return e.split("{{").map((o) => {
5228
- const l = a.exec(o);
5225
+ const s = Yj(t, i);
5226
+ return e.replaceAll(/(\{\{([^{\}]+(?=}))\}\})/g, (...o) => {
5227
+ const l = o[2];
5229
5228
  if (!l)
5230
- return o;
5231
- const c = s[l[1]];
5232
- if (c) {
5233
- const u = l[2] ?? "";
5234
- return `${c}${u}`;
5235
- }
5236
- const d = Xj(l[1]);
5237
- return `${Jj(d, s, n)}${l[2]}`;
5238
- }).join("");
5229
+ return l;
5230
+ const c = s[l];
5231
+ if (c)
5232
+ return c;
5233
+ const d = Xj(l);
5234
+ return Jj(d, s, n);
5235
+ });
5239
5236
  }
5240
5237
  function Zj(e, t) {
5241
5238
  const n = cy(t);
@@ -5558,7 +5555,7 @@ class xl {
5558
5555
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
5559
5556
  }
5560
5557
  }
5561
- const cp = "13.23.0", pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5558
+ const cp = "13.23.1", pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5562
5559
  __proto__: null,
5563
5560
  version: cp
5564
5561
  }, Symbol.toStringTag, { value: "Module" }));
@@ -25834,7 +25831,7 @@ function ZA(e) {
25834
25831
  y_axis: n
25835
25832
  };
25836
25833
  }
25837
- function e2(e) {
25834
+ function eR(e) {
25838
25835
  return {
25839
25836
  heat_block: function(i) {
25840
25837
  if (!e.heat_block.value_formatter)
@@ -25847,7 +25844,7 @@ function e2(e) {
25847
25844
  }
25848
25845
  };
25849
25846
  }
25850
- function t2(e) {
25847
+ function tR(e) {
25851
25848
  let t = 0;
25852
25849
  return e.x_axis.name && (t += 20), {
25853
25850
  top: 45,
@@ -25860,7 +25857,7 @@ function t2(e) {
25860
25857
  z: 1
25861
25858
  };
25862
25859
  }
25863
- function n2(e, t) {
25860
+ function nR(e, t) {
25864
25861
  const {
25865
25862
  heat_block: n
25866
25863
  } = e;
@@ -25881,13 +25878,13 @@ function n2(e, t) {
25881
25878
  z: 2
25882
25879
  };
25883
25880
  }
25884
- const r2 = (e) => oe(e, {
25881
+ const rR = (e) => oe(e, {
25885
25882
  output: "number",
25886
25883
  trimMantissa: !0,
25887
25884
  mantissa: 2,
25888
25885
  absolute: !1
25889
25886
  });
25890
- function i2({
25887
+ function iR({
25891
25888
  conf: e,
25892
25889
  labelFormatters: t,
25893
25890
  valueFormatters: n,
@@ -25923,7 +25920,7 @@ function i2({
25923
25920
  const T = q(y.data_key);
25924
25921
  m.push({
25925
25922
  label: y.name,
25926
- value: r2(C.get(f, T.columnKey, "")),
25923
+ value: rR(C.get(f, T.columnKey, "")),
25927
25924
  style: {
25928
25925
  label: "",
25929
25926
  value: ""
@@ -25931,7 +25928,7 @@ function i2({
25931
25928
  });
25932
25929
  }), m;
25933
25930
  }
25934
- function s2(e, t, n, i) {
25931
+ function sR(e, t, n, i) {
25935
25932
  const {
25936
25933
  x_axis: s,
25937
25934
  y_axis: a,
@@ -25941,7 +25938,7 @@ function s2(e, t, n, i) {
25941
25938
  const d = C.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
25942
25939
  return fe.getTooltip({
25943
25940
  formatter: function(u) {
25944
- const p = i2({
25941
+ const p = iR({
25945
25942
  conf: e,
25946
25943
  labelFormatters: n,
25947
25944
  valueFormatters: i,
@@ -25973,7 +25970,7 @@ function s2(e, t, n, i) {
25973
25970
  }
25974
25971
  });
25975
25972
  }
25976
- function a2(e, t, n) {
25973
+ function aR(e, t, n) {
25977
25974
  const {
25978
25975
  overflow: i,
25979
25976
  rotate: s
@@ -26011,7 +26008,7 @@ function a2(e, t, n) {
26011
26008
  z: 3
26012
26009
  });
26013
26010
  }
26014
- function o2(e, t, n) {
26011
+ function oR(e, t, n) {
26015
26012
  const {
26016
26013
  nameAlignment: i,
26017
26014
  data_key: s,
@@ -26057,13 +26054,13 @@ function o2(e, t, n) {
26057
26054
  z: 3
26058
26055
  });
26059
26056
  }
26060
- function l2(e, t, n) {
26057
+ function lR(e, t, n) {
26061
26058
  if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
26062
26059
  return {};
26063
26060
  const i = n.reduce((T, k) => {
26064
26061
  const z = wn(k, t);
26065
26062
  return T[k.name] = Mt(k, z), T;
26066
- }, {}), s = ZA(e), a = e2(e), o = za(e.visualMap, i), {
26063
+ }, {}), s = ZA(e), a = eR(e), o = za(e.visualMap, i), {
26067
26064
  min: l,
26068
26065
  max: c
26069
26066
  } = o, d = q(e.x_axis.data_key), u = q(e.y_axis.data_key), h = q(e.heat_block.data_key), p = C.uniq(t[d.queryID].map((T) => T[d.columnKey])), m = C.uniq(t[d.queryID].map((T) => T[u.columnKey])), f = t[d.queryID].map((T) => {
@@ -26078,15 +26075,15 @@ function l2(e, t, n) {
26078
26075
  }), $;
26079
26076
  });
26080
26077
  return {
26081
- xAxis: a2(e, p, s.x_axis),
26082
- yAxis: o2(e, m, s.y_axis),
26083
- series: n2(e, f),
26084
- tooltip: s2(e, t, s, a),
26085
- grid: t2(e),
26078
+ xAxis: aR(e, p, s.x_axis),
26079
+ yAxis: oR(e, m, s.y_axis),
26080
+ series: nR(e, f),
26081
+ tooltip: sR(e, t, s, a),
26082
+ grid: tR(e),
26086
26083
  visualMap: o
26087
26084
  };
26088
26085
  }
26089
- function c2({
26086
+ function cR({
26090
26087
  conf: e,
26091
26088
  data: t,
26092
26089
  width: n,
@@ -26109,13 +26106,13 @@ function c2({
26109
26106
  });
26110
26107
  }, [o, l, s]), d = I(() => ({
26111
26108
  click: c
26112
- }), [c]), u = R.useMemo(() => l2(e, t, a), [e, t]);
26109
+ }), [c]), u = R.useMemo(() => lR(e, t, a), [e, t]);
26113
26110
  return /* @__PURE__ */ r.jsx(ht, { echarts: nt, option: u, style: {
26114
26111
  width: n,
26115
26112
  height: i
26116
26113
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
26117
26114
  }
26118
- function d2({
26115
+ function dR({
26119
26116
  context: e,
26120
26117
  instance: t
26121
26118
  }) {
@@ -26130,9 +26127,9 @@ function d2({
26130
26127
  width: l,
26131
26128
  height: c
26132
26129
  } = e.viewport;
26133
- return !l || !c ? null : /* @__PURE__ */ r.jsx(jt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(c2, { variables: s, width: rn(l), height: sn(c), data: o, conf: a, interactionManager: n }) });
26130
+ return !l || !c ? null : /* @__PURE__ */ r.jsx(jt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(cR, { variables: s, width: rn(l), height: sn(c), data: o, conf: a, interactionManager: n }) });
26134
26131
  }
26135
- const u2 = {
26132
+ const uR = {
26136
26133
  merico_heatmap: {
26137
26134
  viz_name: "Merico Heatmap",
26138
26135
  click_heatmap: {
@@ -26141,7 +26138,7 @@ const u2 = {
26141
26138
  }
26142
26139
  }
26143
26140
  }
26144
- }, h2 = {
26141
+ }, hR = {
26145
26142
  merico_heatmap: {
26146
26143
  viz_name: "思码逸热力图",
26147
26144
  click_heatmap: {
@@ -26150,14 +26147,14 @@ const u2 = {
26150
26147
  }
26151
26148
  }
26152
26149
  }
26153
- }, p2 = [{
26150
+ }, pR = [{
26154
26151
  lang: "en",
26155
- resources: u2
26152
+ resources: uR
26156
26153
  }, {
26157
26154
  lang: "zh",
26158
- resources: h2
26155
+ resources: hR
26159
26156
  }];
26160
- function m2(e) {
26157
+ function mR(e) {
26161
26158
  const {
26162
26159
  visualMap: t = Rn(),
26163
26160
  heat_block: {
@@ -26177,7 +26174,7 @@ function m2(e) {
26177
26174
  }
26178
26175
  };
26179
26176
  }
26180
- class f2 extends $e {
26177
+ class fR extends $e {
26181
26178
  constructor() {
26182
26179
  super(...arguments);
26183
26180
  G(this, "VERSION", 2);
@@ -26189,24 +26186,24 @@ class f2 extends $e {
26189
26186
  })), this.version(2, (n) => ({
26190
26187
  ...n,
26191
26188
  version: 2,
26192
- config: m2(n.config)
26189
+ config: mR(n.config)
26193
26190
  }));
26194
26191
  }
26195
26192
  }
26196
- const x2 = {
26193
+ const xR = {
26197
26194
  displayName: "viz.merico_heatmap.viz_name",
26198
26195
  displayGroup: "chart.groups.merico_suite",
26199
- migrator: new f2(),
26196
+ migrator: new fR(),
26200
26197
  name: "merico-heatmap",
26201
- viewRender: d2,
26198
+ viewRender: dR,
26202
26199
  configRender: YA,
26203
26200
  createConfig: () => ({
26204
26201
  version: 2,
26205
26202
  config: Ic
26206
26203
  }),
26207
26204
  triggers: [$f],
26208
- translation: p2
26209
- }, g2 = [{
26205
+ translation: pR
26206
+ }, gR = [{
26210
26207
  value: "#25262B",
26211
26208
  name: "Dark"
26212
26209
  }, {
@@ -26253,12 +26250,12 @@ const x2 = {
26253
26250
  value: e.value,
26254
26251
  type: "single",
26255
26252
  category: "basic"
26256
- })), b2 = [aw, ow, dw, cw, lw, uw], Af = [Wo, eE, jL, PD, wE, Cz, U$, Dw, Dk, $I, TT, d$, hz, pI, PM, eD, DD, LL, zA, x2, BA, Bk], Rf = () => ({
26253
+ })), bR = [aw, ow, dw, cw, lw, uw], Af = [Wo, eE, jL, PD, wE, Cz, U$, Dw, Dk, $I, TT, d$, hz, pI, PM, eD, DD, LL, zA, xR, BA, Bk], Rf = () => ({
26257
26254
  id: "dashboard",
26258
26255
  version: cp,
26259
26256
  manifest: {
26260
26257
  viz: Af,
26261
- color: [...g2, ...b2]
26258
+ color: [...gR, ...bR]
26262
26259
  }
26263
26260
  }), Ii = new fw(), Fe = {
26264
26261
  pluginManager: In("pluginManager"),
@@ -26296,7 +26293,7 @@ function $a(e) {
26296
26293
  function Pf() {
26297
26294
  return R.useContext(Qo);
26298
26295
  }
26299
- const y2 = ({
26296
+ const yR = ({
26300
26297
  description: e,
26301
26298
  isDescriptionEmpty: t
26302
26299
  }) => t ? null : /* @__PURE__ */ r.jsx(he, { color: "white", label: /* @__PURE__ */ r.jsx(Xi, { value: e, styles: {
@@ -26314,7 +26311,7 @@ const y2 = ({
26314
26311
  }, withArrow: !0, children: /* @__PURE__ */ r.jsx(A, { sx: {
26315
26312
  height: "16px",
26316
26313
  alignSelf: "center"
26317
- }, children: /* @__PURE__ */ r.jsx(Tr, { size: 16, color: "gray" }) }) }), v2 = D(({
26314
+ }, children: /* @__PURE__ */ r.jsx(Tr, { size: 16, color: "gray" }) }) }), vR = D(({
26318
26315
  label: e,
26319
26316
  config: {
26320
26317
  default_value: t,
@@ -26330,13 +26327,13 @@ const y2 = ({
26330
26327
  /* @__PURE__ */ r.jsx(A, { sx: {
26331
26328
  flexGrow: 1
26332
26329
  }, children: e }),
26333
- /* @__PURE__ */ r.jsx(y2, { description: n, isDescriptionEmpty: i })
26330
+ /* @__PURE__ */ r.jsx(yR, { description: n, isDescriptionEmpty: i })
26334
26331
  ] }), checked: a || !1, onChange: (l) => o(l.currentTarget.checked), ...s, pt: ".4em", styles: {
26335
26332
  input: {
26336
26333
  borderColor: "#e9ecef"
26337
26334
  }
26338
26335
  } })
26339
- ] })), _2 = ({
26336
+ ] })), _R = ({
26340
26337
  value: e,
26341
26338
  onChange: t,
26342
26339
  close: n,
@@ -26356,7 +26353,7 @@ const y2 = ({
26356
26353
  t(p), m && f && n();
26357
26354
  };
26358
26355
  return /* @__PURE__ */ r.jsx(hy, { defaultDate: c, numberOfColumns: 2, type: "range", value: e, onChange: h, onNextMonth: console.log, minDate: d, maxDate: u, allowSingleDateInRange: s, locale: a.language });
26359
- }, j2 = ({
26356
+ }, jR = ({
26360
26357
  begin: e,
26361
26358
  end: t
26362
26359
  }) => {
@@ -26373,7 +26370,7 @@ const y2 = ({
26373
26370
  count: i
26374
26371
  });
26375
26372
  return /* @__PURE__ */ r.jsx(he, { label: s, children: /* @__PURE__ */ r.jsx(Yn, { size: "sm", children: i }) });
26376
- }, w2 = ({
26373
+ }, wR = ({
26377
26374
  max_days: e
26378
26375
  }) => {
26379
26376
  const {
@@ -26542,7 +26539,7 @@ function Of(e) {
26542
26539
  const n = zc().find((i) => i.value === e);
26543
26540
  return n ? n.getRange() : null;
26544
26541
  }
26545
- const S2 = ({
26542
+ const SR = ({
26546
26543
  onChange: e
26547
26544
  }) => {
26548
26545
  const {
@@ -26583,7 +26580,7 @@ const S2 = ({
26583
26580
  input: {
26584
26581
  borderColor: e ? "#228be6" : "#e9ecef"
26585
26582
  }
26586
- }), k2 = ({
26583
+ }), kR = ({
26587
26584
  label: e,
26588
26585
  required: t,
26589
26586
  value: n,
@@ -26619,7 +26616,7 @@ const S2 = ({
26619
26616
  borderBottomRightRadius: 0
26620
26617
  }
26621
26618
  } }) }),
26622
- /* @__PURE__ */ r.jsx(E, { label: /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(j2, { begin: h, end: p }) }), icon: /* @__PURE__ */ r.jsx(Yg, { size: 16 }), placeholder: l("filter.widget.date_range.end_date"), readOnly: !0, disabled: !h, value: f, onFocus: d, styles: fu(c), sx: {
26619
+ /* @__PURE__ */ r.jsx(E, { label: /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(jR, { begin: h, end: p }) }), icon: /* @__PURE__ */ r.jsx(Yg, { size: 16 }), placeholder: l("filter.widget.date_range.end_date"), readOnly: !0, disabled: !h, value: f, onFocus: d, styles: fu(c), sx: {
26623
26620
  ".mantine-Input-icon": {
26624
26621
  transform: "translateX(-22px)"
26625
26622
  },
@@ -26639,9 +26636,9 @@ const S2 = ({
26639
26636
  } })
26640
26637
  ] }),
26641
26638
  /* @__PURE__ */ r.jsxs(En.Dropdown, { p: "sm", children: [
26642
- /* @__PURE__ */ r.jsx(w2, { max_days: s }),
26643
- /* @__PURE__ */ r.jsx(_2, { value: n, onChange: i, close: u, allowSingleDateInRange: a, max_days: s }),
26644
- /* @__PURE__ */ r.jsx(S2, { onChange: i })
26639
+ /* @__PURE__ */ r.jsx(wR, { max_days: s }),
26640
+ /* @__PURE__ */ r.jsx(_R, { value: n, onChange: i, close: u, allowSingleDateInRange: a, max_days: s }),
26641
+ /* @__PURE__ */ r.jsx(SR, { onChange: i })
26645
26642
  ] })
26646
26643
  ] });
26647
26644
  }, Ff = D(({
@@ -26658,8 +26655,8 @@ const S2 = ({
26658
26655
  } = t, c = Array.isArray(n) ? n.map((u) => u ? V(u).toDate() : null) : [null, null], d = (u) => {
26659
26656
  i(u.map((h) => h && V(h).format(s)));
26660
26657
  };
26661
- return /* @__PURE__ */ r.jsx(k2, { label: e, value: c, onChange: d, inputFormat: s, allowSingleDateInRange: l, max_days: o, required: a });
26662
- }), C2 = Ni((e, {
26658
+ return /* @__PURE__ */ r.jsx(kR, { label: e, value: c, onChange: d, inputFormat: s, allowSingleDateInRange: l, max_days: o, required: a });
26659
+ }), CR = Ni((e, {
26663
26660
  radius: t = 4
26664
26661
  }) => ({
26665
26662
  root: {
@@ -26842,7 +26839,7 @@ const S2 = ({
26842
26839
  t
26843
26840
  } = v();
26844
26841
  return e ? /* @__PURE__ */ r.jsx(w, { color: "red", size: 12, children: e }) : /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: t("filter.widget.common.selector_option_empty") });
26845
- }, I2 = ({
26842
+ }, IR = ({
26846
26843
  disabled: e,
26847
26844
  // styling props
26848
26845
  classNames: t,
@@ -26863,7 +26860,7 @@ const S2 = ({
26863
26860
  } = v(), {
26864
26861
  classes: m,
26865
26862
  cx: f
26866
- } = C2({
26863
+ } = CR({
26867
26864
  radius: s
26868
26865
  }, {
26869
26866
  name: "MultiSelectWidget",
@@ -26898,7 +26895,7 @@ const S2 = ({
26898
26895
  Q.description && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: Q.description })
26899
26896
  ] }, Q.value)) })
26900
26897
  ] });
26901
- }, T2 = D(({
26898
+ }, TR = D(({
26902
26899
  label: e,
26903
26900
  config: t,
26904
26901
  value: n,
@@ -26908,20 +26905,20 @@ const S2 = ({
26908
26905
  state: o,
26909
26906
  error: l
26910
26907
  } = s.getDataStuffByID(t.options_query_id), c = o === "loading", d = t.min_width ? t.min_width : "200px", u = a ? c : !1, h = (p) => i(p, !1);
26911
- return /* @__PURE__ */ r.jsx(I2, { label: e, options: t.options, style: {
26908
+ return /* @__PURE__ */ r.jsx(IR, { label: e, options: t.options, style: {
26912
26909
  minWidth: "160px",
26913
26910
  width: d,
26914
26911
  maxWidth: u ? d : "unset",
26915
26912
  borderColor: "#e9ecef"
26916
26913
  }, disabled: u, value: n, onChange: h, errorMessage: l, required: t.required });
26917
- }), z2 = re(({
26914
+ }), zR = re(({
26918
26915
  label: e,
26919
26916
  description: t,
26920
26917
  ...n
26921
26918
  }, i) => /* @__PURE__ */ r.jsx("div", { ref: i, ...n, children: /* @__PURE__ */ r.jsx(b, { noWrap: !0, children: /* @__PURE__ */ r.jsxs("div", { children: [
26922
26919
  /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: e }),
26923
26920
  /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: t })
26924
- ] }) }) })), D2 = D(({
26921
+ ] }) }) })), DR = D(({
26925
26922
  label: e,
26926
26923
  config: t,
26927
26924
  value: n,
@@ -26958,14 +26955,14 @@ const S2 = ({
26958
26955
  padding: "4px 10px"
26959
26956
  }
26960
26957
  },
26961
- itemComponent: z2,
26958
+ itemComponent: zR,
26962
26959
  searchable: !l,
26963
26960
  nothingFound: /* @__PURE__ */ r.jsx(Dc, { errorMessage: l }),
26964
26961
  clearable: t.clearable
26965
26962
  }
26966
26963
  );
26967
26964
  });
26968
- function M2({
26965
+ function MR({
26969
26966
  label: e,
26970
26967
  config: t,
26971
26968
  value: n,
@@ -26977,10 +26974,10 @@ function M2({
26977
26974
  }
26978
26975
  } });
26979
26976
  }
26980
- const E2 = ({
26977
+ const ER = ({
26981
26978
  rotate: e,
26982
26979
  onClick: t
26983
- }) => /* @__PURE__ */ r.jsx("svg", { onClick: t, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${e})`, children: /* @__PURE__ */ r.jsx("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), L2 = ({
26980
+ }) => /* @__PURE__ */ r.jsx("svg", { onClick: t, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${e})`, children: /* @__PURE__ */ r.jsx("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), LR = ({
26984
26981
  expanded: e,
26985
26982
  isLeaf: t,
26986
26983
  value: n,
@@ -26989,17 +26986,17 @@ const E2 = ({
26989
26986
  }) => (n === "0-0-value" && console.log(s), t ? /* @__PURE__ */ r.jsx("span", { style: {
26990
26987
  width: "14px",
26991
26988
  display: "inline-block"
26992
- } }) : /* @__PURE__ */ r.jsx(E2, { rotate: e ? "0" : "-90", onClick: i, ...s })), $2 = ({
26989
+ } }) : /* @__PURE__ */ r.jsx(ER, { rotate: e ? "0" : "-90", onClick: i, ...s })), $R = ({
26993
26990
  onClick: e
26994
26991
  }) => /* @__PURE__ */ r.jsxs("svg", { onClick: e, className: "checkbox-icon", width: "16", height: "16", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [
26995
26992
  /* @__PURE__ */ r.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
26996
26993
  /* @__PURE__ */ r.jsx("rect", { className: "border", x: "4", y: "4", width: "16", height: "16", rx: "2" }),
26997
26994
  /* @__PURE__ */ r.jsx("rect", { className: "checkmark-indeterminate", x: "8", y: "8", width: "8", height: "8", rx: "2", stroke: "none" }),
26998
26995
  /* @__PURE__ */ r.jsx("path", { className: "checkmark-checked", d: "M9 12l2 2l4 -4" })
26999
- ] }), A2 = ({
26996
+ ] }), AR = ({
27000
26997
  onClick: e,
27001
26998
  ...t
27002
- }) => /* @__PURE__ */ r.jsx($2, { onClick: e, ...t }), R2 = Ni((e, {
26999
+ }) => /* @__PURE__ */ r.jsx($R, { onClick: e, ...t }), RR = Ni((e, {
27003
27000
  radius: t = 4
27004
27001
  }) => ({
27005
27002
  root: {
@@ -27243,7 +27240,7 @@ const E2 = ({
27243
27240
  }
27244
27241
  }
27245
27242
  }
27246
- })), P2 = ({
27243
+ })), PR = ({
27247
27244
  disabled: e,
27248
27245
  // styling props
27249
27246
  classNames: t,
@@ -27265,7 +27262,7 @@ const E2 = ({
27265
27262
  } = v(), {
27266
27263
  classes: f,
27267
27264
  cx: y
27268
- } = R2({
27265
+ } = RR({
27269
27266
  radius: s
27270
27267
  }, {
27271
27268
  name: "FilterTreeSelectWidget",
@@ -27301,8 +27298,8 @@ const E2 = ({
27301
27298
  listHeight: 510,
27302
27299
  treeLine: !0,
27303
27300
  clearIcon: () => /* @__PURE__ */ r.jsx(yr, {}),
27304
- switcherIcon: L2,
27305
- treeIcon: A2,
27301
+ switcherIcon: LR,
27302
+ treeIcon: AR,
27306
27303
  maxTagTextLength: 10,
27307
27304
  value: l,
27308
27305
  treeData: d,
@@ -27319,7 +27316,7 @@ const E2 = ({
27319
27316
  }
27320
27317
  )
27321
27318
  ] });
27322
- }, O2 = D(({
27319
+ }, OR = D(({
27323
27320
  label: e,
27324
27321
  config: t,
27325
27322
  value: n,
@@ -27333,13 +27330,13 @@ const E2 = ({
27333
27330
  const m = p.map((f) => f.value);
27334
27331
  i(m, !1);
27335
27332
  }, c = I(() => t.initialSelection(n), [n, t.initialSelection]), d = t.min_width ? t.min_width : "200px", h = !!t.options_query_id ? a : !1;
27336
- return /* @__PURE__ */ r.jsx(P2, { disabled: h, style: {
27333
+ return /* @__PURE__ */ r.jsx(PR, { disabled: h, style: {
27337
27334
  minWidth: "160px",
27338
27335
  width: d,
27339
27336
  maxWidth: h ? d : "unset",
27340
27337
  borderColor: "#e9ecef"
27341
27338
  }, value: [...c], onChange: l, treeData: s, errorMessage: o, label: e, required: t.required, treeCheckStrictly: t.treeCheckStrictly });
27342
- }), F2 = D(({
27339
+ }), FR = D(({
27343
27340
  filter: {
27344
27341
  type: e,
27345
27342
  config: t,
@@ -27350,24 +27347,24 @@ const E2 = ({
27350
27347
  }) => {
27351
27348
  switch (e) {
27352
27349
  case "select":
27353
- return /* @__PURE__ */ r.jsx(D2, { ...i, ...s, config: t });
27350
+ return /* @__PURE__ */ r.jsx(DR, { ...i, ...s, config: t });
27354
27351
  case "multi-select":
27355
- return /* @__PURE__ */ r.jsx(T2, { ...i, ...s, config: t });
27352
+ return /* @__PURE__ */ r.jsx(TR, { ...i, ...s, config: t });
27356
27353
  case "tree-select":
27357
- return /* @__PURE__ */ r.jsx(O2, { ...i, ...s, config: t });
27354
+ return /* @__PURE__ */ r.jsx(OR, { ...i, ...s, config: t });
27358
27355
  case "text-input":
27359
- return /* @__PURE__ */ r.jsx(M2, { ...i, ...s, config: t });
27356
+ return /* @__PURE__ */ r.jsx(MR, { ...i, ...s, config: t });
27360
27357
  case "date-range":
27361
27358
  return /* @__PURE__ */ r.jsx(Ff, { ...i, ...s, config: t });
27362
27359
  case "checkbox":
27363
- return /* @__PURE__ */ r.jsx(v2, { ...i, ...s, config: t });
27360
+ return /* @__PURE__ */ r.jsx(vR, { ...i, ...s, config: t });
27364
27361
  default:
27365
27362
  return null;
27366
27363
  }
27367
- }), V2 = D(R.forwardRef(({
27364
+ }), VR = D(R.forwardRef(({
27368
27365
  filter: e,
27369
27366
  ...t
27370
- }, n) => /* @__PURE__ */ r.jsx("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(F2, { filter: e, formFieldProps: t }) }) }))), N2 = ({
27367
+ }, n) => /* @__PURE__ */ r.jsx("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(FR, { filter: e, formFieldProps: t }) }) }))), NR = ({
27371
27368
  disabled: e
27372
27369
  }) => {
27373
27370
  const {
@@ -27379,14 +27376,14 @@ const E2 = ({
27379
27376
  } = t;
27380
27377
  return /* @__PURE__ */ r.jsx(M, { color: "blue", size: "sm", type: "submit", ...s, disabled: e || s.disabled, children: n });
27381
27378
  };
27382
- function q2(e) {
27379
+ function qR(e) {
27383
27380
  const t = le();
27384
27381
  W(() => {
27385
27382
  var n, i;
27386
27383
  (i = (n = t.filters).updatePreviewValues) == null || i.call(n, e);
27387
27384
  }, [e]);
27388
27385
  }
27389
- const B2 = ({
27386
+ const BR = ({
27390
27387
  opened: e,
27391
27388
  toggle: t
27392
27389
  }) => {
@@ -27412,7 +27409,7 @@ const B2 = ({
27412
27409
  });
27413
27410
  W(() => {
27414
27411
  l(s.filters.values);
27415
- }, [s.filters.values, l]), q2(c);
27412
+ }, [s.filters.values, l]), qR(c);
27416
27413
  const d = s.filters.visibleInView(t.id), u = I(() => d.every((f) => f.should_auto_submit), [d]), h = I(() => d.filter((f) => C.get(f, "config.required", !1)), [d]), p = I(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
27417
27414
  if (d.length === 0)
27418
27415
  return null;
@@ -27420,7 +27417,7 @@ const B2 = ({
27420
27417
  y(T), (f.should_auto_submit || k) && s.filters.setValueByKey(f.key, T);
27421
27418
  };
27422
27419
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(s.filters.setValues), children: [
27423
- /* @__PURE__ */ r.jsx(B2, { opened: n, toggle: i }),
27420
+ /* @__PURE__ */ r.jsx(BR, { opened: n, toggle: i }),
27424
27421
  /* @__PURE__ */ r.jsx(qi, { in: n, children: /* @__PURE__ */ r.jsxs(b, { className: "dashboard-filters", position: "apart", noWrap: !0, sx: u ? {} : {
27425
27422
  border: "1px solid #e9ecef",
27426
27423
  borderRadius: "4px",
@@ -27428,16 +27425,16 @@ const B2 = ({
27428
27425
  }, children: [
27429
27426
  /* @__PURE__ */ r.jsx(b, { align: "flex-start", children: d.map((f) => /* @__PURE__ */ r.jsx(g, { name: f.key, control: a, render: ({
27430
27427
  field: y
27431
- }) => /* @__PURE__ */ r.jsx(V2, { filter: f, value: y.value, onChange: m(f, y.onChange) }) }, f.id)) }),
27428
+ }) => /* @__PURE__ */ r.jsx(VR, { filter: f, value: y.value, onChange: m(f, y.onChange) }) }, f.id)) }),
27432
27429
  !u && /* @__PURE__ */ r.jsx(b, { sx: {
27433
27430
  alignSelf: "flex-end"
27434
- }, children: /* @__PURE__ */ r.jsx(N2, { disabled: p }) })
27431
+ }, children: /* @__PURE__ */ r.jsx(NR, { disabled: p }) })
27435
27432
  ] }) })
27436
27433
  ] });
27437
- }), W2 = {
27434
+ }), WR = {
27438
27435
  viewPanelInFullScreen: C.noop,
27439
27436
  inFullScreen: !1
27440
- }, Aa = R.createContext(W2), Nf = x.model("MockContextMeta", {
27437
+ }, Aa = R.createContext(WR), Nf = x.model("MockContextMeta", {
27441
27438
  current: x.optional(x.frozen(), {})
27442
27439
  }).views((e) => ({
27443
27440
  get keys() {
@@ -27471,7 +27468,7 @@ function qf(e) {
27471
27468
  current: e
27472
27469
  };
27473
27470
  }
27474
- const G2 = x.model("PanelStyleBorderMeta", {
27471
+ const GR = x.model("PanelStyleBorderMeta", {
27475
27472
  enabled: x.boolean
27476
27473
  }).views((e) => ({
27477
27474
  get json() {
@@ -27486,8 +27483,8 @@ const G2 = x.model("PanelStyleBorderMeta", {
27486
27483
  setEnabled(t) {
27487
27484
  e.enabled = t;
27488
27485
  }
27489
- })), H2 = x.model("PanelStyleMeta", {
27490
- border: G2
27486
+ })), HR = x.model("PanelStyleMeta", {
27487
+ border: GR
27491
27488
  }).views((e) => ({
27492
27489
  get json() {
27493
27490
  const {
@@ -27497,7 +27494,7 @@ const G2 = x.model("PanelStyleBorderMeta", {
27497
27494
  border: t.json
27498
27495
  };
27499
27496
  }
27500
- })).actions((e) => ({})), Q2 = x.model("PanelTitleMeta", {
27497
+ })).actions((e) => ({})), QR = x.model("PanelTitleMeta", {
27501
27498
  show: x.optional(x.boolean, !0)
27502
27499
  }).views((e) => ({
27503
27500
  get json() {
@@ -27512,7 +27509,7 @@ const G2 = x.model("PanelStyleBorderMeta", {
27512
27509
  setShow(t) {
27513
27510
  e.show = t;
27514
27511
  }
27515
- })), U2 = x.model("VariableMeta", {
27512
+ })), UR = x.model("VariableMeta", {
27516
27513
  name: x.string,
27517
27514
  size: x.string,
27518
27515
  weight: x.string,
@@ -27579,7 +27576,7 @@ const G2 = x.model("PanelStyleBorderMeta", {
27579
27576
  aggregation: l
27580
27577
  });
27581
27578
  }
27582
- })), K2 = x.model("PanelVizMeta", {
27579
+ })), KR = x.model("PanelVizMeta", {
27583
27580
  type: x.string,
27584
27581
  conf: x.frozen()
27585
27582
  }).views((e) => ({
@@ -27596,15 +27593,15 @@ const G2 = x.model("PanelStyleBorderMeta", {
27596
27593
  setConf(t) {
27597
27594
  e.conf = t;
27598
27595
  }
27599
- })), Y2 = x.model({
27596
+ })), YR = x.model({
27600
27597
  id: x.string,
27601
27598
  name: x.optional(x.string, ""),
27602
- title: Q2,
27599
+ title: QR,
27603
27600
  description: x.string,
27604
27601
  queryIDs: x.array(x.string),
27605
- viz: K2,
27606
- style: H2,
27607
- variables: x.optional(x.array(U2), [])
27602
+ viz: KR,
27603
+ style: HR,
27604
+ variables: x.optional(x.array(UR), [])
27608
27605
  }).views((e) => ({
27609
27606
  get json() {
27610
27607
  const {
@@ -27658,7 +27655,7 @@ const G2 = x.model("PanelStyleBorderMeta", {
27658
27655
  }
27659
27656
  }));
27660
27657
  var Ve = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e.Transform = "transform", e))(Ve || {});
27661
- const X2 = x.model("QueryMeta", {
27658
+ const XR = x.model("QueryMeta", {
27662
27659
  id: x.string,
27663
27660
  name: x.string,
27664
27661
  type: x.enumeration("DataSourceType", [Ve.Postgresql, Ve.MySQL, Ve.HTTP, Ve.Transform]),
@@ -27727,7 +27724,7 @@ const X2 = x.model("QueryMeta", {
27727
27724
  setDependantQueryIDs(t) {
27728
27725
  e.dep_query_ids.length = 0, e.dep_query_ids.push(...t);
27729
27726
  }
27730
- })), J2 = x.model("LayoutItemMeta", {
27727
+ })), JR = x.model("LayoutItemMeta", {
27731
27728
  id: x.identifier,
27732
27729
  panelID: x.string,
27733
27730
  x: x.number,
@@ -27806,11 +27803,11 @@ const X2 = x.model("QueryMeta", {
27806
27803
  setHeight(t) {
27807
27804
  e.h = t;
27808
27805
  }
27809
- })), Z2 = x.model("LayoutSetMeta", {
27806
+ })), ZR = x.model("LayoutSetMeta", {
27810
27807
  id: x.identifier,
27811
27808
  name: x.string,
27812
27809
  breakpoint: x.number,
27813
- list: x.optional(x.array(J2), [])
27810
+ list: x.optional(x.array(JR), [])
27814
27811
  }).views((e) => ({
27815
27812
  get json() {
27816
27813
  const {
@@ -27883,7 +27880,7 @@ const X2 = x.model("QueryMeta", {
27883
27880
  }
27884
27881
  n.set(t);
27885
27882
  }
27886
- })), eR = x.model("SQLSnippetMeta", {
27883
+ })), e2 = x.model("SQLSnippetMeta", {
27887
27884
  key: x.string,
27888
27885
  value: x.string
27889
27886
  }).views((e) => ({
@@ -27936,7 +27933,7 @@ const Bf = x.model("FilterCheckboxConfigMeta", {
27936
27933
  setDescription(t) {
27937
27934
  e.description = t;
27938
27935
  }
27939
- })), tR = () => Bf.create({
27936
+ })), t2 = () => Bf.create({
27940
27937
  _name: "checkbox",
27941
27938
  description: "",
27942
27939
  default_value: !1
@@ -27950,7 +27947,7 @@ function Wf(e, t) {
27950
27947
  }
27951
27948
  });
27952
27949
  }
27953
- const nR = x.model("FilterDateRangeConfigMeta", {
27950
+ const n2 = x.model("FilterDateRangeConfigMeta", {
27954
27951
  _name: x.literal("date-range"),
27955
27952
  required: x.boolean,
27956
27953
  inputFormat: x.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
@@ -28023,7 +28020,7 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28023
28020
  setAllowSingleDateInRange(t) {
28024
28021
  e.allowSingleDateInRange = t;
28025
28022
  }
28026
- })), Gf = x.snapshotProcessor(nR, {
28023
+ })), Gf = x.snapshotProcessor(n2, {
28027
28024
  preProcessor({
28028
28025
  default_value: e,
28029
28026
  ...t
@@ -28043,13 +28040,13 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28043
28040
  default_value: Wf(t, n.inputFormat)
28044
28041
  };
28045
28042
  }
28046
- }), rR = () => Gf.create({
28043
+ }), r2 = () => Gf.create({
28047
28044
  _name: "date-range",
28048
28045
  required: !1,
28049
28046
  inputFormat: "YYYY-MM-DD",
28050
28047
  clearable: !1,
28051
28048
  default_value: [null, null]
28052
- }), iR = x.model({
28049
+ }), i2 = x.model({
28053
28050
  label: x.string,
28054
28051
  value: x.string
28055
28052
  }).actions((e) => ({
@@ -28060,7 +28057,7 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28060
28057
  e.value = t;
28061
28058
  }
28062
28059
  })), Mc = x.model("FilterConfigModel_BaseSelect", {
28063
- static_options: x.optional(x.array(iR), []),
28060
+ static_options: x.optional(x.array(i2), []),
28064
28061
  options_query_id: x.optional(x.string, ""),
28065
28062
  default_selection_count: x.optional(x.number, 0),
28066
28063
  required: x.optional(x.boolean, !1)
@@ -28149,7 +28146,7 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28149
28146
  delay: 0
28150
28147
  }));
28151
28148
  }
28152
- })), sR = () => Hf.create({
28149
+ })), s2 = () => Hf.create({
28153
28150
  _name: "multi-select",
28154
28151
  default_value: [],
28155
28152
  static_options: [],
@@ -28214,7 +28211,7 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28214
28211
  delay: 0
28215
28212
  }));
28216
28213
  }
28217
- })), aR = () => Qf.create({
28214
+ })), a2 = () => Qf.create({
28218
28215
  _name: "select",
28219
28216
  required: !1,
28220
28217
  default_value: "",
@@ -28253,7 +28250,7 @@ const nR = x.model("FilterDateRangeConfigMeta", {
28253
28250
  required: !1,
28254
28251
  default_value: ""
28255
28252
  });
28256
- function oR(e) {
28253
+ function o2(e) {
28257
28254
  return Ly(e, {
28258
28255
  id: "value",
28259
28256
  parentId: "parent_value",
@@ -28261,7 +28258,7 @@ function oR(e) {
28261
28258
  dataField: null
28262
28259
  });
28263
28260
  }
28264
- function lR(e) {
28261
+ function l2(e) {
28265
28262
  return e.map((t) => {
28266
28263
  const {
28267
28264
  label: n,
@@ -28319,8 +28316,8 @@ const Yf = x.compose("FilterTreeSelectConfigMeta", x.model({
28319
28316
  return t;
28320
28317
  },
28321
28318
  get treeData() {
28322
- const t = this.plainData, n = lR(t);
28323
- return oR(n);
28319
+ const t = this.plainData, n = l2(t);
28320
+ return o2(n);
28324
28321
  },
28325
28322
  get errorMessage() {
28326
28323
  const {
@@ -28373,7 +28370,7 @@ const Yf = x.compose("FilterTreeSelectConfigMeta", x.model({
28373
28370
  delay: 0
28374
28371
  }));
28375
28372
  }
28376
- })), cR = () => Yf.create({
28373
+ })), c2 = () => Yf.create({
28377
28374
  _name: "tree-select",
28378
28375
  default_value: [],
28379
28376
  static_options: [],
@@ -28460,22 +28457,22 @@ const Yf = x.compose("FilterTreeSelectConfigMeta", x.model({
28460
28457
  setType(t) {
28461
28458
  switch (t) {
28462
28459
  case Ce.Select:
28463
- e.config = aR();
28460
+ e.config = a2();
28464
28461
  break;
28465
28462
  case Ce.MultiSelect:
28466
- e.config = sR();
28463
+ e.config = s2();
28467
28464
  break;
28468
28465
  case Ce.TreeSelect:
28469
- e.config = cR();
28466
+ e.config = c2();
28470
28467
  break;
28471
28468
  case Ce.TextInput:
28472
28469
  e.config = Kf();
28473
28470
  break;
28474
28471
  case Ce.Checkbox:
28475
- e.config = tR();
28472
+ e.config = t2();
28476
28473
  break;
28477
28474
  case Ce.DateRange:
28478
- e.config = rR();
28475
+ e.config = r2();
28479
28476
  break;
28480
28477
  }
28481
28478
  e.type = t;
@@ -28502,9 +28499,9 @@ const Jf = x.model("ViewDivisionConfig", {
28502
28499
  _name: t
28503
28500
  };
28504
28501
  }
28505
- })), dR = () => Jf.create({
28502
+ })), d2 = () => Jf.create({
28506
28503
  _name: H.Division
28507
- }), uR = x.model("CustomModalTitleModel", {
28504
+ }), u2 = x.model("CustomModalTitleModel", {
28508
28505
  enabled: x.optional(x.boolean, !1),
28509
28506
  func_content: x.optional(x.string, "")
28510
28507
  }).views((e) => ({
@@ -28556,7 +28553,7 @@ const Jf = x.model("ViewDivisionConfig", {
28556
28553
  _name: x.literal(H.Modal),
28557
28554
  width: x.string,
28558
28555
  height: x.string,
28559
- custom_modal_title: x.optional(uR, Uo)
28556
+ custom_modal_title: x.optional(u2, Uo)
28560
28557
  }).views((e) => ({
28561
28558
  get json() {
28562
28559
  const {
@@ -28579,11 +28576,11 @@ const Jf = x.model("ViewDivisionConfig", {
28579
28576
  setHeight(t) {
28580
28577
  e.height = t;
28581
28578
  }
28582
- })), hR = () => Zf.create({
28579
+ })), h2 = () => Zf.create({
28583
28580
  _name: H.Modal,
28584
28581
  width: "90vw",
28585
28582
  height: "90vh"
28586
- }), pR = x.model("ViewTabsTabModel", {
28583
+ }), p2 = x.model("ViewTabsTabModel", {
28587
28584
  id: x.identifier,
28588
28585
  name: x.string,
28589
28586
  view_id: x.string,
@@ -28621,7 +28618,7 @@ const Jf = x.model("ViewDivisionConfig", {
28621
28618
  }
28622
28619
  })), ex = x.model("ViewTabsConfig", {
28623
28620
  _name: x.literal(H.Modal),
28624
- tabs: x.optional(x.array(pR), []),
28621
+ tabs: x.optional(x.array(p2), []),
28625
28622
  variant: x.optional(x.enumeration("variant", ["default", "outline", "pills"]), "default"),
28626
28623
  orientation: x.optional(x.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
28627
28624
  grow: x.optional(x.boolean, !1)
@@ -28669,10 +28666,10 @@ const Jf = x.model("ViewDivisionConfig", {
28669
28666
  removeTab(t) {
28670
28667
  e.tabs.splice(t, 1);
28671
28668
  }
28672
- })), mR = () => ex.create({
28669
+ })), m2 = () => ex.create({
28673
28670
  _name: H.Modal,
28674
28671
  tabs: []
28675
- }), fR = x.model({
28672
+ }), f2 = x.model({
28676
28673
  id: x.identifier,
28677
28674
  name: x.string,
28678
28675
  type: x.enumeration("EViewComponentType", [H.Division, H.Modal, H.Tabs]),
@@ -28702,13 +28699,13 @@ const Jf = x.model("ViewDivisionConfig", {
28702
28699
  if (e.type !== t) {
28703
28700
  switch (t) {
28704
28701
  case H.Division:
28705
- e.config = dR();
28702
+ e.config = d2();
28706
28703
  break;
28707
28704
  case H.Modal:
28708
- e.config = hR();
28705
+ e.config = h2();
28709
28706
  break;
28710
28707
  case H.Tabs:
28711
- e.config = mR();
28708
+ e.config = m2();
28712
28709
  break;
28713
28710
  }
28714
28711
  e.type = t;
@@ -28751,7 +28748,7 @@ const Jf = x.model("ViewDivisionConfig", {
28751
28748
  type: x.enumeration("DataSourceType", [Ve.HTTP, Ve.MySQL, Ve.Postgresql]),
28752
28749
  key: x.string,
28753
28750
  config: x.frozen()
28754
- }), xR = x.model("DataSourcesMetaModel", {
28751
+ }), x2 = x.model("DataSourcesMetaModel", {
28755
28752
  list: x.optional(x.array(tx), [])
28756
28753
  }).views((e) => ({
28757
28754
  find({
@@ -28770,14 +28767,14 @@ const Jf = x.model("ViewDivisionConfig", {
28770
28767
  replace(t) {
28771
28768
  e.list.length = 0, e.list.push(...t);
28772
28769
  }
28773
- })), gR = x.model({
28770
+ })), g2 = x.model({
28774
28771
  id: x.string,
28775
28772
  content: x.string,
28776
28773
  create_time: x.string,
28777
28774
  update_time: x.string,
28778
28775
  is_preset: x.boolean
28779
28776
  }), nx = x.model("GlobalSQLSnippetsMeta", {
28780
- list: x.optional(x.array(gR), [])
28777
+ list: x.optional(x.array(g2), [])
28781
28778
  }).views((e) => ({
28782
28779
  find(t) {
28783
28780
  return e.list.find((n) => n.id === t);
@@ -28817,7 +28814,7 @@ function rx(e) {
28817
28814
  current: e
28818
28815
  });
28819
28816
  }
28820
- const ix = x.compose("ViewRenderModel", fR, x.model({
28817
+ const ix = x.compose("ViewRenderModel", f2, x.model({
28821
28818
  tab: x.optional(x.string, "")
28822
28819
  // FIXME: manage this state in a better way
28823
28820
  })).views((e) => ({
@@ -28929,7 +28926,7 @@ const ix = x.compose("ViewRenderModel", fR, x.model({
28929
28926
  n == null || n.setTabByTabInfo(t);
28930
28927
  }
28931
28928
  }));
28932
- function bR(e, t) {
28929
+ function b2(e, t) {
28933
28930
  const n = e.length > 0 ? [e[0].id] : [], i = e.map((s) => {
28934
28931
  const {
28935
28932
  _name: a = s.type
@@ -28953,13 +28950,13 @@ function bR(e, t) {
28953
28950
  visibleViewIDs: n
28954
28951
  };
28955
28952
  }
28956
- const yR = new $y({
28953
+ const y2 = new $y({
28957
28954
  withBOM: !0
28958
28955
  });
28959
28956
  async function ax(e) {
28960
- return !Array.isArray(e) || e.length === 0 ? "" : await yR.parse(e).promise();
28957
+ return !Array.isArray(e) || e.length === 0 ? "" : await y2.parse(e).promise();
28961
28958
  }
28962
- async function vR(e, t) {
28959
+ async function v2(e, t) {
28963
28960
  const n = await ax(t), i = new Blob([n], {
28964
28961
  type: "text/csv"
28965
28962
  });
@@ -28993,7 +28990,7 @@ function di(e, t) {
28993
28990
  });
28994
28991
  ua(n, `${e}.json`);
28995
28992
  }
28996
- const ox = Y2.views((e) => ({
28993
+ const ox = YR.views((e) => ({
28997
28994
  get contentModel() {
28998
28995
  return tt(e).content;
28999
28996
  }
@@ -29092,7 +29089,7 @@ const ox = Y2.views((e) => ({
29092
29089
  di(o, a);
29093
29090
  }
29094
29091
  }));
29095
- function _R(e) {
29092
+ function _2(e) {
29096
29093
  return {
29097
29094
  id: e,
29098
29095
  name: "Panel",
@@ -29154,7 +29151,7 @@ function cx(e) {
29154
29151
  }
29155
29152
  return n;
29156
29153
  }
29157
- function jR(e, t) {
29154
+ function j2(e, t) {
29158
29155
  const n = e.default_value_func;
29159
29156
  try {
29160
29157
  return new Function(`return ${n}`)()(e, nn, t);
@@ -29164,7 +29161,7 @@ function jR(e, t) {
29164
29161
  }
29165
29162
  function dx(e, t) {
29166
29163
  var n;
29167
- return (n = e.default_value_func) != null && n.trim() ? jR(e, t) : cx(e);
29164
+ return (n = e.default_value_func) != null && n.trim() ? j2(e, t) : cx(e);
29168
29165
  }
29169
29166
  function ux(e, t) {
29170
29167
  return e.reduce((n, i) => (n[i.key] = dx(i, t), n), {});
@@ -29281,7 +29278,7 @@ function px(e, t, n, i) {
29281
29278
  values: s
29282
29279
  };
29283
29280
  }
29284
- const wR = X2.views((e) => ({
29281
+ const w2 = XR.views((e) => ({
29285
29282
  get rootModel() {
29286
29283
  return tt(e);
29287
29284
  },
@@ -29410,7 +29407,7 @@ const wR = X2.views((e) => ({
29410
29407
  });
29411
29408
  }), s;
29412
29409
  }
29413
- })), mx = x.compose("QueryRenderModel", wR, x.model({
29410
+ })), mx = x.compose("QueryRenderModel", w2, x.model({
29414
29411
  state: x.optional(x.enumeration(["idle", "loading", "error"]), "idle"),
29415
29412
  data: x.optional(x.frozen([]), []),
29416
29413
  error: x.frozen()
@@ -29620,7 +29617,7 @@ const wR = X2.views((e) => ({
29620
29617
  name: i,
29621
29618
  data: s
29622
29619
  } = n;
29623
- vR(i, s);
29620
+ v2(i, s);
29624
29621
  },
29625
29622
  refetchDataByQueryID(t) {
29626
29623
  const n = e.findByID(t);
@@ -29643,7 +29640,7 @@ const wR = X2.views((e) => ({
29643
29640
  di("Queries", n);
29644
29641
  }
29645
29642
  }));
29646
- function SR(e) {
29643
+ function S2(e) {
29647
29644
  return {
29648
29645
  current: e
29649
29646
  };
@@ -29656,7 +29653,7 @@ function gu({
29656
29653
  return `[${n}, ${i})`;
29657
29654
  }
29658
29655
  const xx = x.model("LayoutsRenderModel", {
29659
- list: x.array(Z2),
29656
+ list: x.array(ZR),
29660
29657
  currentBreakpoint: x.string
29661
29658
  }).views((e) => ({
29662
29659
  get json() {
@@ -29758,12 +29755,12 @@ const xx = x.model("LayoutsRenderModel", {
29758
29755
  delay: 0
29759
29756
  }));
29760
29757
  }
29761
- })), kR = eR.views((e) => ({
29758
+ })), k2 = e2.views((e) => ({
29762
29759
  isADuplicatedKey(t) {
29763
29760
  return !t || t === e.key ? !1 : !!Ne(e, 2).findByKey(t);
29764
29761
  }
29765
29762
  })), gx = x.model("SQLSnippetsRenderModel", {
29766
- current: x.optional(x.array(kR), [])
29763
+ current: x.optional(x.array(k2), [])
29767
29764
  }).views((e) => ({
29768
29765
  get json() {
29769
29766
  return e.current.map((t) => t.json);
@@ -29798,7 +29795,7 @@ const xx = x.model("LayoutsRenderModel", {
29798
29795
  di("SQL Snippets", n);
29799
29796
  }
29800
29797
  }));
29801
- function CR(e) {
29798
+ function C2(e) {
29802
29799
  return {
29803
29800
  current: e
29804
29801
  };
@@ -29813,7 +29810,7 @@ function ra(e, t, n, i) {
29813
29810
  return s;
29814
29811
  }, {});
29815
29812
  }
29816
- class IR {
29813
+ class I2 {
29817
29814
  constructor(t) {
29818
29815
  G(this, "origin");
29819
29816
  G(this, "copy");
@@ -29835,7 +29832,7 @@ class IR {
29835
29832
  st(this.copy, t);
29836
29833
  }
29837
29834
  }
29838
- const TR = (e) => new IR(e), zR = D(() => {
29835
+ const T2 = (e) => new I2(e), z2 = D(() => {
29839
29836
  const {
29840
29837
  t: e
29841
29838
  } = v(), t = pe(), {
@@ -29847,7 +29844,7 @@ const TR = (e) => new IR(e), zR = D(() => {
29847
29844
  /* @__PURE__ */ r.jsx(P, { label: e(i.length > 1 ? "query.labels" : "query.label"), labelPosition: "center" }),
29848
29845
  i.map((a) => /* @__PURE__ */ r.jsx(ee.Item, { onClick: () => s(a.value), icon: /* @__PURE__ */ r.jsx(Hi, { size: 14 }), children: a.label }, a.value))
29849
29846
  ] });
29850
- }), DR = D(({
29847
+ }), D2 = D(({
29851
29848
  view: e,
29852
29849
  title: t
29853
29850
  }) => {
@@ -29896,7 +29893,7 @@ const TR = (e) => new IR(e), zR = D(() => {
29896
29893
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: o.downloadSchema, icon: /* @__PURE__ */ r.jsx(wr, { size: 14 }), children: n("common.actions.download_schema") }),
29897
29894
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(oa, { size: 14 }), children: n("common.actions.download_screenshot") }),
29898
29895
  y && /* @__PURE__ */ r.jsx(ee.Item, { onClick: f, icon: /* @__PURE__ */ r.jsx(xh, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
29899
- /* @__PURE__ */ r.jsx(zR, {}),
29896
+ /* @__PURE__ */ r.jsx(z2, {}),
29900
29897
  /* @__PURE__ */ r.jsx(P, { label: n("common.actions.edit"), labelPosition: "center" }),
29901
29898
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: p, icon: /* @__PURE__ */ r.jsx(gh, { size: 14 }), children: n("common.titles.settings") }),
29902
29899
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: h, icon: /* @__PURE__ */ r.jsx(my, { size: 14 }), children: n("common.actions.duplicate") }),
@@ -29904,7 +29901,7 @@ const TR = (e) => new IR(e), zR = D(() => {
29904
29901
  ] })
29905
29902
  ] }) }) });
29906
29903
  });
29907
- function MR(e) {
29904
+ function M2(e) {
29908
29905
  return e ? ["<p><br></p>", "<p></p>"].includes(e) : !0;
29909
29906
  }
29910
29907
  const bx = D(() => {
@@ -29913,7 +29910,7 @@ const bx = D(() => {
29913
29910
  } = v(), [t, n] = R.useState(!1), {
29914
29911
  panel: i
29915
29912
  } = Sn();
29916
- return MR(i.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29913
+ return M2(i.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29917
29914
  /* @__PURE__ */ r.jsx(Le, { opened: t, onClose: () => n(!1), title: i.title.show ? i.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(Xi, { value: i.description, styles: {
29918
29915
  root: {
29919
29916
  border: "none"
@@ -29932,7 +29929,7 @@ const bx = D(() => {
29932
29929
  }, children: /* @__PURE__ */ r.jsx(Vn, { size: 20 }) }) })
29933
29930
  ] });
29934
29931
  });
29935
- const ER = D(function() {
29932
+ const E2 = D(function() {
29936
29933
  const {
29937
29934
  panel: t
29938
29935
  } = Sn(), {
@@ -29943,7 +29940,7 @@ const ER = D(function() {
29943
29940
  flexGrow: 1
29944
29941
  }, children: /* @__PURE__ */ r.jsx(w, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
29945
29942
  });
29946
- function LR(e) {
29943
+ function L2(e) {
29947
29944
  const t = ti(null);
29948
29945
  return {
29949
29946
  ref: t,
@@ -29969,7 +29966,7 @@ function LR(e) {
29969
29966
  };
29970
29967
  }
29971
29968
  var yx = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(yx || {}), Ls = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(Ls || {});
29972
- class $R {
29969
+ class $2 {
29973
29970
  constructor(t) {
29974
29971
  G(this, "vizInstance");
29975
29972
  G(this, "operationManager");
@@ -30027,7 +30024,7 @@ function vx(e) {
30027
30024
  return n.createScoped().provideFactory(Fe.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Fe.instanceScope.interactionManager, (a) => {
30028
30025
  const o = a.getRequired(Fe.instanceScope.vizInstance);
30029
30026
  return new _l(o, s, ga);
30030
- }).provideFactory(Fe.instanceScope.operationManager, (a) => a.getRequired(Fe.instanceScope.interactionManager).operationManager).provideFactory(Fe.instanceScope.triggerManager, (a) => a.getRequired(Fe.instanceScope.interactionManager).triggerManager).provideValue(Fe.instanceScope.panelModel, t).provideFactory(Fe.instanceScope.migrator, (a) => new $R(a));
30027
+ }).provideFactory(Fe.instanceScope.operationManager, (a) => a.getRequired(Fe.instanceScope.interactionManager).operationManager).provideFactory(Fe.instanceScope.triggerManager, (a) => a.getRequired(Fe.instanceScope.interactionManager).triggerManager).provideValue(Fe.instanceScope.panelModel, t).provideFactory(Fe.instanceScope.migrator, (a) => new $2(a));
30031
30028
  }, [e.viz.type, e.viz.conf]);
30032
30029
  }
30033
30030
  function _x(e) {
@@ -30047,7 +30044,7 @@ function jx(e, t) {
30047
30044
  e(i);
30048
30045
  })), [e, t.viz.type]), n;
30049
30046
  }
30050
- function AR({
30047
+ function A2({
30051
30048
  setVizConf: e,
30052
30049
  ...t
30053
30050
  }) {
@@ -30063,7 +30060,7 @@ function AR({
30063
30060
  await i.instanceData.setItem(null, n.viz.conf);
30064
30061
  }, [i, n.viz.type]), s ? /* @__PURE__ */ r.jsx(sw, { ...t }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update..." });
30065
30062
  }
30066
- function RR(e) {
30063
+ function R2(e) {
30067
30064
  const {
30068
30065
  panel: t,
30069
30066
  setVizConf: n
@@ -30079,7 +30076,7 @@ function RR(e) {
30079
30076
  });
30080
30077
  }) ? /* @__PURE__ */ r.jsx(iw, { ...e }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update" });
30081
30078
  }
30082
- function PR(e, t) {
30079
+ function P2(e, t) {
30083
30080
  const {
30084
30081
  vizManager: n
30085
30082
  } = Pn(kn), {
@@ -30101,19 +30098,19 @@ function PR(e, t) {
30101
30098
  viz: i
30102
30099
  }, h = vx(u);
30103
30100
  try {
30104
- return n.resolveComponent(i.type), /* @__PURE__ */ r.jsx($a, { configure: h, children: /* @__PURE__ */ r.jsx(RR, { setVizConf: i.setConf, panel: u, measure: t, data: e, variables: d, vizManager: n }) });
30101
+ return n.resolveComponent(i.type), /* @__PURE__ */ r.jsx($a, { configure: h, children: /* @__PURE__ */ r.jsx(R2, { setVizConf: i.setConf, panel: u, measure: t, data: e, variables: d, vizManager: n }) });
30105
30102
  } catch (p) {
30106
30103
  return console.info(ae(p, "message")), null;
30107
30104
  }
30108
30105
  }
30109
- const OR = D(function({
30106
+ const O2 = D(function({
30110
30107
  data: t
30111
30108
  }) {
30112
30109
  const {
30113
30110
  ref: n,
30114
30111
  width: i,
30115
30112
  height: s
30116
- } = Li(), a = PR(t, {
30113
+ } = Li(), a = P2(t, {
30117
30114
  w: i,
30118
30115
  h: s
30119
30116
  }), o = i > 0 && s > 0;
@@ -30122,7 +30119,7 @@ const OR = D(function({
30122
30119
  height: s,
30123
30120
  overflow: "hidden"
30124
30121
  }, children: o && /* @__PURE__ */ r.jsx(Je, { children: a }) }) });
30125
- }), FR = D(({
30122
+ }), F2 = D(({
30126
30123
  panel: e
30127
30124
  }) => /* @__PURE__ */ r.jsxs(S, { children: [
30128
30125
  e.queryErrors.map((t, n) => /* @__PURE__ */ r.jsx(w, { color: "red", size: "sm", align: "center", sx: {
@@ -30136,9 +30133,9 @@ const OR = D(function({
30136
30133
  width: "100%"
30137
30134
  }, children: [
30138
30135
  /* @__PURE__ */ r.jsx(kr, { visible: e.dataLoading, exitTransitionDuration: 0 }),
30139
- !e.canRenderViz && /* @__PURE__ */ r.jsx(FR, { panel: e }),
30140
- e.canRenderViz && /* @__PURE__ */ r.jsx(OR, { data: e.data })
30141
- ] })), VR = {
30136
+ !e.canRenderViz && /* @__PURE__ */ r.jsx(F2, { panel: e }),
30137
+ e.canRenderViz && /* @__PURE__ */ r.jsx(O2, { data: e.data })
30138
+ ] })), V2 = {
30142
30139
  border: "1px solid #e9ecef"
30143
30140
  }, Sx = D(({
30144
30141
  panel: e,
@@ -30148,7 +30145,7 @@ const OR = D(function({
30148
30145
  const {
30149
30146
  ref: i,
30150
30147
  downloadPanelScreenshot: s
30151
- } = LR(e);
30148
+ } = L2(e);
30152
30149
  return e.title.show, /* @__PURE__ */ r.jsx(yp, { value: {
30153
30150
  panel: e,
30154
30151
  data: e.data,
@@ -30156,35 +30153,35 @@ const OR = D(function({
30156
30153
  errors: e.queryErrors,
30157
30154
  downloadPanelScreenshot: s
30158
30155
  }, children: /* @__PURE__ */ r.jsxs(A, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: i, p: 0, sx: {
30159
- ...VR,
30156
+ ...V2,
30160
30157
  ...t
30161
30158
  }, children: [
30162
30159
  /* @__PURE__ */ r.jsx(A, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r.jsx(bx, {}) }),
30163
30160
  n,
30164
- /* @__PURE__ */ r.jsx(ER, {}),
30161
+ /* @__PURE__ */ r.jsx(E2, {}),
30165
30162
  /* @__PURE__ */ r.jsx(wx, { panel: e })
30166
30163
  ] }) });
30167
- }), NR = {
30164
+ }), N2 = {
30168
30165
  border: "1px dashed transparent",
30169
30166
  transition: "border-color 300ms ease",
30170
30167
  "&:hover": {
30171
30168
  borderColor: "#e9ecef"
30172
30169
  }
30173
30170
  };
30174
- function qR(e) {
30175
- return e.style.border.enabled ? {} : NR;
30171
+ function q2(e) {
30172
+ return e.style.border.enabled ? {} : N2;
30176
30173
  }
30177
- const BR = D(function({
30174
+ const B2 = D(function({
30178
30175
  panel: t,
30179
30176
  view: n
30180
30177
  }) {
30181
- const i = qR(t);
30182
- return /* @__PURE__ */ r.jsx(Sx, { panel: t, panelStyle: i, dropdownContent: /* @__PURE__ */ r.jsx(DR, { view: n, title: t.name }) });
30178
+ const i = q2(t);
30179
+ return /* @__PURE__ */ r.jsx(Sx, { panel: t, panelStyle: i, dropdownContent: /* @__PURE__ */ r.jsx(D2, { view: n, title: t.name }) });
30183
30180
  });
30184
- function WR(e) {
30181
+ function W2(e) {
30185
30182
  return !["richText", "button"].includes(e);
30186
30183
  }
30187
- const GR = D(({
30184
+ const G2 = D(({
30188
30185
  view: e,
30189
30186
  title: t
30190
30187
  }) => {
@@ -30201,7 +30198,7 @@ const GR = D(({
30201
30198
  } = R.useContext(Aa), c = R.useCallback(() => {
30202
30199
  o(a);
30203
30200
  }, [a, o]), d = !l && e.type !== H.Modal;
30204
- return WR(i.viz.type) ? /* @__PURE__ */ r.jsx(A, { sx: {
30201
+ return W2(i.viz.type) ? /* @__PURE__ */ r.jsx(A, { sx: {
30205
30202
  position: "absolute",
30206
30203
  top: 0,
30207
30204
  left: 0,
@@ -30217,7 +30214,7 @@ const GR = D(({
30217
30214
  ] })
30218
30215
  ] }) }) : null;
30219
30216
  });
30220
- function HR(e) {
30217
+ function H2(e) {
30221
30218
  return e.style.border.enabled ? {} : {
30222
30219
  border: "1px dashed transparent"
30223
30220
  };
@@ -30226,9 +30223,9 @@ const kx = D(({
30226
30223
  panel: e,
30227
30224
  view: t
30228
30225
  }) => {
30229
- const n = HR(e);
30230
- return /* @__PURE__ */ r.jsx(Sx, { panel: e, panelStyle: n, dropdownContent: /* @__PURE__ */ r.jsx(GR, { title: e.name, view: t }) });
30231
- }), QR = {
30226
+ const n = H2(e);
30227
+ return /* @__PURE__ */ r.jsx(Sx, { panel: e, panelStyle: n, dropdownContent: /* @__PURE__ */ r.jsx(G2, { title: e.name, view: t }) });
30228
+ }), Q2 = {
30232
30229
  modal: {
30233
30230
  display: "flex",
30234
30231
  flexDirection: "column",
@@ -30238,17 +30235,17 @@ const kx = D(({
30238
30235
  display: "flex",
30239
30236
  height: "calc(100vh - 88px)"
30240
30237
  }
30241
- }, UR = D(function({
30238
+ }, U2 = D(function({
30242
30239
  view: t,
30243
30240
  panel: n,
30244
30241
  exitFullScreen: i
30245
30242
  }) {
30246
- return /* @__PURE__ */ r.jsx(Le, { opened: !0, fullScreen: !0, onClose: i, title: /* @__PURE__ */ r.jsx(M, { color: "blue", size: "xs", onClick: i, leftIcon: /* @__PURE__ */ r.jsx(fy, { size: 20 }), children: "Exit fullscreen" }), styles: QR, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
30243
+ return /* @__PURE__ */ r.jsx(Le, { opened: !0, fullScreen: !0, onClose: i, title: /* @__PURE__ */ r.jsx(M, { color: "blue", size: "xs", onClick: i, leftIcon: /* @__PURE__ */ r.jsx(fy, { size: 20 }), children: "Exit fullscreen" }), styles: Q2, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
30247
30244
  flexGrow: 1,
30248
30245
  flexShrink: 0
30249
30246
  }, children: /* @__PURE__ */ r.jsx(kx, { view: t, panel: n }) }) });
30250
30247
  });
30251
- function KR(e, t, n) {
30248
+ function K2(e, t, n) {
30252
30249
  const {
30253
30250
  panels: i
30254
30251
  } = Ue(), s = e.id === "Main", [a, o] = R.useState(() => s && i.findByID(t) ? t : null), l = R.useCallback((h) => {
@@ -30263,7 +30260,7 @@ function KR(e, t, n) {
30263
30260
  fullScreenPanel: d
30264
30261
  };
30265
30262
  }
30266
- const YR = R.forwardRef(({
30263
+ const Y2 = R.forwardRef(({
30267
30264
  h: e
30268
30265
  }, t) => /* @__PURE__ */ r.jsx(Z, { ref: t, className: "react-grid-customDragHandle", sx: {
30269
30266
  userSelect: "none",
@@ -30275,7 +30272,7 @@ const YR = R.forwardRef(({
30275
30272
  "&:hover": {
30276
30273
  color: "#228be6"
30277
30274
  }
30278
- }, variant: "transparent", children: /* @__PURE__ */ r.jsx(xy, { size: 16 }) })), XR = R.forwardRef(({
30275
+ }, variant: "transparent", children: /* @__PURE__ */ r.jsx(xy, { size: 16 }) })), X2 = R.forwardRef(({
30279
30276
  handleAxis: e,
30280
30277
  ...t
30281
30278
  }, n) => /* @__PURE__ */ r.jsx(Z, { ref: n, className: "react-grid-customResizeHandle", sx: {
@@ -30288,7 +30285,7 @@ const YR = R.forwardRef(({
30288
30285
  "&:hover": {
30289
30286
  color: "#228be6"
30290
30287
  }
30291
- }, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(gy, { size: 16 }) })), JR = wh(Sh), ZR = D(({
30288
+ }, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(gy, { size: 16 }) })), J2 = wh(Sh), Z2 = D(({
30292
30289
  view: e,
30293
30290
  className: t = "layout"
30294
30291
  }) => {
@@ -30307,9 +30304,9 @@ const YR = R.forwardRef(({
30307
30304
  newItem: h
30308
30305
  }), i.updateCurrentLayoutItems(d);
30309
30306
  };
30310
- return /* @__PURE__ */ r.jsx(JR, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, cols: i.cols, layouts: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ r.jsx(XR, {}), onResize: o, breakpoints: i.breakpoints, onBreakpointChange: i.setCurrentBreakpoint, onResizeStop: l, onDragStop: c, width: i.currentLayoutPreviewWidth, children: s.map((d) => /* @__PURE__ */ r.jsxs("div", { "data-grid": d.layoutProperies, className: "panel-grid-item", children: [
30311
- /* @__PURE__ */ r.jsx(YR, { h: d.h }),
30312
- /* @__PURE__ */ r.jsx(BR, { view: e, panel: d.panel })
30307
+ return /* @__PURE__ */ r.jsx(J2, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, cols: i.cols, layouts: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ r.jsx(X2, {}), onResize: o, breakpoints: i.breakpoints, onBreakpointChange: i.setCurrentBreakpoint, onResizeStop: l, onDragStop: c, width: i.currentLayoutPreviewWidth, children: s.map((d) => /* @__PURE__ */ r.jsxs("div", { "data-grid": d.layoutProperies, className: "panel-grid-item", children: [
30308
+ /* @__PURE__ */ r.jsx(Y2, { h: d.h }),
30309
+ /* @__PURE__ */ r.jsx(B2, { view: e, panel: d.panel })
30313
30310
  ] }, d.id)) });
30314
30311
  }), eP = wh(Sh), tP = D(({
30315
30312
  view: e,
@@ -30670,7 +30667,7 @@ const lP = D(({
30670
30667
  position: "sticky",
30671
30668
  top: "0px"
30672
30669
  }, children: /* @__PURE__ */ r.jsx(Vf, { view: t }) }),
30673
- /* @__PURE__ */ r.jsx(ZR, { view: t })
30670
+ /* @__PURE__ */ r.jsx(Z2, { view: t })
30674
30671
  ] }) }) }) });
30675
30672
  }), $c = D(function({
30676
30673
  view: t
@@ -30683,14 +30680,14 @@ const lP = D(({
30683
30680
  exitFullScreen: a,
30684
30681
  inFullScreen: o,
30685
30682
  fullScreenPanel: l
30686
- } = KR(t, n, i);
30683
+ } = K2(t, n, i);
30687
30684
  return /* @__PURE__ */ r.jsx(Aa.Provider, { value: {
30688
30685
  viewPanelInFullScreen: s,
30689
30686
  inFullScreen: o
30690
30687
  }, children: /* @__PURE__ */ r.jsxs(A, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
30691
30688
  height: t.type === H.Modal ? "0 !important" : "100%"
30692
30689
  }, children: [
30693
- o && /* @__PURE__ */ r.jsx(UR, { view: t, panel: l, exitFullScreen: a }),
30690
+ o && /* @__PURE__ */ r.jsx(U2, { view: t, panel: l, exitFullScreen: a }),
30694
30691
  /* @__PURE__ */ r.jsx(aP, { view: t, children: /* @__PURE__ */ r.jsxs(A, { sx: {
30695
30692
  position: "relative"
30696
30693
  }, children: [
@@ -31883,7 +31880,7 @@ const $P = x.model({
31883
31880
  addANewPanel(t) {
31884
31881
  var i;
31885
31882
  const n = Mn();
31886
- e.panels.append(_R(n)), (i = e.views.findByID(t)) == null || i.appendPanelID(n), e.layouts.addALayoutItem(n);
31883
+ e.panels.append(_2(n)), (i = e.views.findByID(t)) == null || i.appendPanelID(n), e.layouts.addALayoutItem(n);
31887
31884
  },
31888
31885
  applyJSONSchema(t) {
31889
31886
  var h;
@@ -36295,7 +36292,7 @@ const fF = R.forwardRef(mF), xF = R.forwardRef(function({
36295
36292
  }), bF = D((e) => {
36296
36293
  const {
36297
36294
  t
36298
- } = v(), n = Jt(() => TR(e.variable), [e.variable]), i = () => e.uiModel.remove(e.variable);
36295
+ } = v(), n = Jt(() => T2(e.variable), [e.variable]), i = () => e.uiModel.remove(e.variable);
36299
36296
  return /* @__PURE__ */ r.jsxs(S, { "data-testid": "variable-editor", align: "stretch", children: [
36300
36297
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
36301
36298
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(Gi, { size: 18 }), children: t("common.actions.revert_changes") }),
@@ -36413,7 +36410,7 @@ function kF() {
36413
36410
  id: l
36414
36411
  }, u = vx(d);
36415
36412
  try {
36416
- return c.resolveComponent(d.viz.type), /* @__PURE__ */ r.jsx($a, { configure: u, children: /* @__PURE__ */ r.jsx(AR, { variables: t, setVizConf: n.setConf, panel: d, vizManager: c, data: e }) });
36413
+ return c.resolveComponent(d.viz.type), /* @__PURE__ */ r.jsx($a, { configure: u, children: /* @__PURE__ */ r.jsx(A2, { variables: t, setVizConf: n.setConf, panel: d, vizManager: c, data: e }) });
36417
36414
  } catch (h) {
36418
36415
  return console.info(ae(h, "message")), null;
36419
36416
  }
@@ -38452,10 +38449,10 @@ function rN({
38452
38449
  update_time: s,
38453
38450
  version: d,
38454
38451
  filters: px(u, o, T, l),
38455
- queries: SR(f),
38456
- sqlSnippets: CR(y),
38452
+ queries: S2(f),
38453
+ sqlSnippets: C2(y),
38457
38454
  mock_context: qf(T),
38458
- views: bR(h, c),
38455
+ views: b2(h, c),
38459
38456
  panels: {
38460
38457
  list: p
38461
38458
  },
@@ -38471,7 +38468,7 @@ const iN = x.model({
38471
38468
  group: x.string,
38472
38469
  content: Bx,
38473
38470
  content_id: x.string,
38474
- datasources: xR,
38471
+ datasources: x2,
38475
38472
  globalSQLSnippets: nx,
38476
38473
  context: Ec
38477
38474
  });
@@ -38617,11 +38614,11 @@ export {
38617
38614
  $c as DashboardViewRender,
38618
38615
  tx as DataSourceMetaModel,
38619
38616
  Ve as DataSourceType,
38620
- xR as DataSourcesMetaModel,
38617
+ x2 as DataSourcesMetaModel,
38621
38618
  jp as DatesProvider,
38622
38619
  zv as DefaultApiClient,
38623
38620
  bx as DescriptionPopover,
38624
- IR as DraftModel,
38621
+ I2 as DraftModel,
38625
38622
  H as EViewComponentType,
38626
38623
  r3 as FacadeApiClient,
38627
38624
  Bf as FilterCheckboxConfigMeta,
@@ -38633,51 +38630,51 @@ export {
38633
38630
  Yf as FilterTreeSelectConfigMeta,
38634
38631
  gP as FiltersModel,
38635
38632
  hx as FiltersRenderModel,
38636
- UR as FullScreenPanel,
38633
+ U2 as FullScreenPanel,
38637
38634
  _p as FullScreenPanelContext,
38638
- gR as GlobalSQLSnippetMeta,
38635
+ g2 as GlobalSQLSnippetMeta,
38639
38636
  nx as GlobalSQLSnippetsMeta,
38640
- J2 as LayoutItemMeta,
38641
- Z2 as LayoutSetMeta,
38637
+ JR as LayoutItemMeta,
38638
+ ZR as LayoutSetMeta,
38642
38639
  bl as LayoutStateContext,
38643
38640
  xx as LayoutsRenderModel,
38644
38641
  Nf as MockContextMeta,
38645
- wR as MuteQueryModel,
38646
- BR as Panel,
38642
+ w2 as MuteQueryModel,
38643
+ B2 as Panel,
38647
38644
  yp as PanelContextProvider,
38648
- FR as PanelErrorOrStateMessage,
38649
- Y2 as PanelMeta,
38645
+ F2 as PanelErrorOrStateMessage,
38646
+ YR as PanelMeta,
38650
38647
  DP as PanelModel,
38651
38648
  kx as PanelRender,
38652
38649
  ox as PanelRenderModel,
38653
- H2 as PanelStyleMeta,
38654
- Q2 as PanelTitleMeta,
38655
- K2 as PanelVizMeta,
38650
+ HR as PanelStyleMeta,
38651
+ QR as PanelTitleMeta,
38652
+ KR as PanelVizMeta,
38656
38653
  wx as PanelVizSection,
38657
38654
  MP as PanelsModel,
38658
38655
  lx as PanelsRenderModel,
38659
38656
  yP as QueriesModel,
38660
38657
  fx as QueriesRenderModel,
38661
- X2 as QueryMeta,
38658
+ XR as QueryMeta,
38662
38659
  bP as QueryModel,
38663
38660
  mx as QueryRenderModel,
38664
38661
  p3 as ReadOnlyDashboard,
38665
- eR as SQLSnippetMeta,
38666
- kR as SQLSnippetRenderModel,
38662
+ e2 as SQLSnippetMeta,
38663
+ k2 as SQLSnippetRenderModel,
38667
38664
  vP as SQLSnippetsModel,
38668
38665
  gx as SQLSnippetsRenderModel,
38669
- U2 as VariableMeta,
38666
+ UR as VariableMeta,
38670
38667
  fP as ViewComponentTypeBackground,
38671
38668
  d3 as ViewComponentTypeColor,
38672
38669
  c3 as ViewComponentTypeName,
38673
38670
  Jf as ViewDivisionConfig,
38674
- fR as ViewMeta,
38671
+ f2 as ViewMeta,
38675
38672
  Zf as ViewModalConfig,
38676
38673
  ix as ViewRenderModel,
38677
38674
  ex as ViewTabsConfig,
38678
38675
  LP as ViewsModel,
38679
38676
  sx as ViewsRenderModel,
38680
- OR as Viz,
38677
+ O2 as Viz,
38681
38678
  u3 as applyPartialDashboard,
38682
38679
  Th as configureAPIClient,
38683
38680
  AP as createContentModel,
@@ -38685,25 +38682,25 @@ export {
38685
38682
  rx as createContextMeta,
38686
38683
  PP as createDashboardModel,
38687
38684
  sN as createDashboardRenderModel,
38688
- TR as createDraft,
38689
- tR as createFilterCheckboxConfig,
38690
- rR as createFilterDateRangeConfig,
38691
- sR as createFilterMultiSelectConfig,
38692
- aR as createFilterSelectConfig,
38685
+ T2 as createDraft,
38686
+ t2 as createFilterCheckboxConfig,
38687
+ r2 as createFilterDateRangeConfig,
38688
+ s2 as createFilterMultiSelectConfig,
38689
+ a2 as createFilterSelectConfig,
38693
38690
  Kf as createFilterTextInputConfig,
38694
- cR as createFilterTreeSelectConfig,
38695
- dR as createViewDivisionConfig,
38696
- hR as createViewModalConfig,
38697
- mR as createViewTabsConfig,
38691
+ c2 as createFilterTreeSelectConfig,
38692
+ d2 as createViewDivisionConfig,
38693
+ h2 as createViewModalConfig,
38694
+ m2 as createViewTabsConfig,
38698
38695
  Ev as facadeApiClient,
38699
38696
  ra as formatSQLSnippet,
38700
38697
  Tx as getInitialDashboardViewsModel,
38701
38698
  px as getInitialFiltersConfig,
38702
38699
  qf as getInitialMockContextMeta,
38703
- SR as getInitialQueriesRenderModel,
38704
- CR as getInitialSQLSnippetsRenderModel,
38705
- bR as getInitialViewsRenderModel,
38706
- _R as getNewPanel,
38700
+ S2 as getInitialQueriesRenderModel,
38701
+ C2 as getInitialSQLSnippetsRenderModel,
38702
+ b2 as getInitialViewsRenderModel,
38703
+ _2 as getNewPanel,
38707
38704
  m3 as getVersion,
38708
38705
  l3 as initialDashboardContent,
38709
38706
  hp as useDashboardContext,
@@ -38712,7 +38709,7 @@ export {
38712
38709
  pe as useEditDashboardContext,
38713
38710
  wt as useEditPanelContext,
38714
38711
  jw as useFullScreenPanelContext,
38715
- KR as usePanelFullScreen,
38712
+ K2 as usePanelFullScreen,
38716
38713
  Ue as useRenderContentModelContext,
38717
38714
  bw as useRenderDashboardContext,
38718
38715
  Sn as useRenderPanelContext