@devtable/dashboard 6.30.0 → 6.31.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.
@@ -13512,7 +13512,7 @@ const gT = (e) => {
13512
13512
  getColor: la(["#fff7f1", "darkorange", "#b60000"]),
13513
13513
  name: "orange",
13514
13514
  category: "sequential"
13515
- }, fg = "@devtable/dashboard", hs = "6.29.0", pg = "Apache-2.0", gg = {
13515
+ }, fg = "@devtable/dashboard", hs = "6.31.0", pg = "Apache-2.0", gg = {
13516
13516
  access: "public",
13517
13517
  registry: "https://registry.npmjs.org/"
13518
13518
  }, hg = [
@@ -16212,6 +16212,13 @@ function ok(e, t) {
16212
16212
  });
16213
16213
  }
16214
16214
  function ik(e) {
16215
+ return e !== "line" ? {} : {
16216
+ itemStyle: {
16217
+ opacity: 0
16218
+ }
16219
+ };
16220
+ }
16221
+ function ak(e) {
16215
16222
  switch (e) {
16216
16223
  case "line":
16217
16224
  return;
@@ -16221,7 +16228,7 @@ function ik(e) {
16221
16228
  return "circle";
16222
16229
  }
16223
16230
  }
16224
- function ak(e) {
16231
+ function lk(e) {
16225
16232
  const t = {
16226
16233
  show: !0,
16227
16234
  bottom: 0,
@@ -16230,10 +16237,11 @@ function ak(e) {
16230
16237
  };
16231
16238
  return t.data = e.series.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
16232
16239
  name: n,
16233
- icon: ik(r)
16240
+ icon: ak(r),
16241
+ ...ik(r)
16234
16242
  })), t;
16235
16243
  }
16236
- const lk = {
16244
+ const sk = {
16237
16245
  dataZoom: [
16238
16246
  {
16239
16247
  type: "inside",
@@ -16272,7 +16280,7 @@ const lk = {
16272
16280
  containLabel: !0
16273
16281
  }
16274
16282
  };
16275
- function sk(e, t, n) {
16283
+ function ck(e, t, n) {
16276
16284
  const r = n.reduce((p, g) => {
16277
16285
  const h = ws(g, t);
16278
16286
  return p[g.name] = li(g, h), p;
@@ -16297,15 +16305,15 @@ function sk(e, t, n) {
16297
16305
  series: [...s, ...u],
16298
16306
  tooltip: nk(e, o),
16299
16307
  grid: UM(e),
16300
- legend: ak(e)
16308
+ legend: lk(e)
16301
16309
  };
16302
- return nn({}, f, lk);
16310
+ return nn({}, f, sk);
16303
16311
  }
16304
16312
  const qg = {
16305
16313
  id: "builtin:echarts:click-echart:series",
16306
16314
  displayName: "Click Chart Series",
16307
- nameRender: uk,
16308
- configRender: ck,
16315
+ nameRender: dk,
16316
+ configRender: uk,
16309
16317
  payload: [{
16310
16318
  name: "seriesType",
16311
16319
  description: "'line' | 'scatter' | 'bar'",
@@ -16332,10 +16340,10 @@ const qg = {
16332
16340
  valueType: "object"
16333
16341
  }]
16334
16342
  };
16335
- function ck(e) {
16343
+ function uk(e) {
16336
16344
  return /* @__PURE__ */ l(Ne, {});
16337
16345
  }
16338
- function uk(e) {
16346
+ function dk(e) {
16339
16347
  return /* @__PURE__ */ l(z, {
16340
16348
  children: "Click chart's series"
16341
16349
  });
@@ -16372,7 +16380,7 @@ $t.registerTransform(Nl.regression);
16372
16380
  function ed(e) {
16373
16381
  return e.trim().length > 0;
16374
16382
  }
16375
- function dk({
16383
+ function fk({
16376
16384
  conf: e,
16377
16385
  data: t,
16378
16386
  width: n,
@@ -16390,7 +16398,7 @@ function dk({
16390
16398
  rowData: f
16391
16399
  });
16392
16400
  });
16393
- }, u = j.useMemo(() => sk(e, t, i), [e, t]);
16401
+ }, u = j.useMemo(() => ck(e, t, i), [e, t]);
16394
16402
  return !n || !r ? null : /* @__PURE__ */ l(Zn, {
16395
16403
  echarts: $t,
16396
16404
  option: u,
@@ -16403,7 +16411,7 @@ function dk({
16403
16411
  }
16404
16412
  });
16405
16413
  }
16406
- function fk({
16414
+ function pk({
16407
16415
  context: e,
16408
16416
  instance: t
16409
16417
  }) {
@@ -16441,7 +16449,7 @@ function fk({
16441
16449
  size: "xs",
16442
16450
  pl: "sm",
16443
16451
  children: Object.values(g.top).map((m) => m)
16444
- }), /* @__PURE__ */ l(dk, {
16452
+ }), /* @__PURE__ */ l(fk, {
16445
16453
  variables: o,
16446
16454
  width: s,
16447
16455
  height: h,
@@ -16457,14 +16465,14 @@ function fk({
16457
16465
  })]
16458
16466
  });
16459
16467
  }
16460
- const pk = [{
16468
+ const gk = [{
16461
16469
  label: "Rectangle",
16462
16470
  value: "rectangle"
16463
- }], gk = [{
16471
+ }], hk = [{
16464
16472
  label: "Horizontal",
16465
16473
  value: "horizontal"
16466
16474
  }];
16467
- function hk({
16475
+ function mk({
16468
16476
  control: e,
16469
16477
  index: t,
16470
16478
  remove: n,
@@ -16517,7 +16525,7 @@ function hk({
16517
16525
  }) => /* @__PURE__ */ l(Ee, {
16518
16526
  label: "Type",
16519
16527
  required: !0,
16520
- data: pk,
16528
+ data: gk,
16521
16529
  sx: {
16522
16530
  flex: 1
16523
16531
  },
@@ -16531,7 +16539,7 @@ function hk({
16531
16539
  }) => /* @__PURE__ */ l(Ee, {
16532
16540
  label: "Direction",
16533
16541
  required: !0,
16534
- data: gk,
16542
+ data: hk,
16535
16543
  sx: {
16536
16544
  flex: 1
16537
16545
  },
@@ -16589,7 +16597,7 @@ function hk({
16589
16597
  })]
16590
16598
  }, t);
16591
16599
  }
16592
- function mk({
16600
+ function vk({
16593
16601
  control: e,
16594
16602
  watch: t,
16595
16603
  variables: n
@@ -16643,7 +16651,7 @@ function mk({
16643
16651
  })]
16644
16652
  }), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
16645
16653
  value: f.toString(),
16646
- children: /* @__PURE__ */ l(hk, {
16654
+ children: /* @__PURE__ */ l(mk, {
16647
16655
  control: e,
16648
16656
  index: f,
16649
16657
  remove: i,
@@ -16652,14 +16660,14 @@ function mk({
16652
16660
  }, f))]
16653
16661
  });
16654
16662
  }
16655
- const vk = [{
16663
+ const yk = [{
16656
16664
  label: "Horizontal",
16657
16665
  value: "horizontal"
16658
16666
  }, {
16659
16667
  label: "Vertical",
16660
16668
  value: "vertical"
16661
16669
  }];
16662
- function yk({
16670
+ function bk({
16663
16671
  control: e,
16664
16672
  index: t,
16665
16673
  remove: n,
@@ -16726,7 +16734,7 @@ function yk({
16726
16734
  field: a
16727
16735
  }) => /* @__PURE__ */ l(Ee, {
16728
16736
  label: "Orientation",
16729
- data: vk,
16737
+ data: yk,
16730
16738
  required: !0,
16731
16739
  sx: {
16732
16740
  flex: 1
@@ -16753,7 +16761,7 @@ function yk({
16753
16761
  })]
16754
16762
  }, t);
16755
16763
  }
16756
- function bk({
16764
+ function Sk({
16757
16765
  control: e,
16758
16766
  watch: t,
16759
16767
  variables: n
@@ -16804,7 +16812,7 @@ function bk({
16804
16812
  })]
16805
16813
  }), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
16806
16814
  value: f.toString(),
16807
- children: /* @__PURE__ */ l(yk, {
16815
+ children: /* @__PURE__ */ l(bk, {
16808
16816
  control: e,
16809
16817
  index: f,
16810
16818
  remove: i,
@@ -16814,7 +16822,7 @@ function bk({
16814
16822
  }, f))]
16815
16823
  });
16816
16824
  }
16817
- const Sk = [{
16825
+ const wk = [{
16818
16826
  label: "Linear",
16819
16827
  value: "linear"
16820
16828
  }, {
@@ -16826,7 +16834,7 @@ const Sk = [{
16826
16834
  }, {
16827
16835
  label: "Polynomial",
16828
16836
  value: "polynomial"
16829
- }], wk = [{
16837
+ }], Ck = [{
16830
16838
  label: "solid",
16831
16839
  value: "solid"
16832
16840
  }, {
@@ -16836,7 +16844,7 @@ const Sk = [{
16836
16844
  label: "dotted",
16837
16845
  value: "dotted"
16838
16846
  }];
16839
- function Ck({
16847
+ function xk({
16840
16848
  control: e,
16841
16849
  regressionItem: t,
16842
16850
  index: n,
@@ -16921,7 +16929,7 @@ function Ck({
16921
16929
  field: s
16922
16930
  }) => /* @__PURE__ */ l(Ee, {
16923
16931
  label: "Method",
16924
- data: Sk,
16932
+ data: wk,
16925
16933
  sx: {
16926
16934
  flex: 1
16927
16935
  },
@@ -16954,7 +16962,7 @@ function Ck({
16954
16962
  field: s
16955
16963
  }) => /* @__PURE__ */ l(Ee, {
16956
16964
  label: "Line Type",
16957
- data: wk,
16965
+ data: Ck,
16958
16966
  sx: {
16959
16967
  flexGrow: 1
16960
16968
  },
@@ -17004,7 +17012,7 @@ function Ck({
17004
17012
  })]
17005
17013
  }, n);
17006
17014
  }
17007
- function xk({
17015
+ function _k({
17008
17016
  control: e,
17009
17017
  watch: t,
17010
17018
  data: n
@@ -17073,7 +17081,7 @@ function xk({
17073
17081
  })]
17074
17082
  }), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
17075
17083
  value: p.toString(),
17076
- children: /* @__PURE__ */ l(Ck, {
17084
+ children: /* @__PURE__ */ l(xk, {
17077
17085
  regressionItem: f,
17078
17086
  control: e,
17079
17087
  index: p,
@@ -17099,14 +17107,14 @@ const Wo = {
17099
17107
  ].join(`
17100
17108
  `)
17101
17109
  }
17102
- }, _k = [{
17110
+ }, Ek = [{
17103
17111
  label: "No gap between bars",
17104
17112
  value: "0%"
17105
17113
  }, {
17106
17114
  label: "Bars overlapping on each other",
17107
17115
  value: "-100%"
17108
17116
  }];
17109
- function Ek({
17117
+ function Ok({
17110
17118
  control: e,
17111
17119
  index: t
17112
17120
  }) {
@@ -17147,7 +17155,7 @@ function Ek({
17147
17155
  field: n
17148
17156
  }) => /* @__PURE__ */ l(Ee, {
17149
17157
  label: "Bar Gap",
17150
- data: _k,
17158
+ data: Ek,
17151
17159
  sx: {
17152
17160
  flexGrow: 1
17153
17161
  },
@@ -17156,7 +17164,7 @@ function Ek({
17156
17164
  })]
17157
17165
  });
17158
17166
  }
17159
- const Ok = ({
17167
+ const Rk = ({
17160
17168
  value: e,
17161
17169
  onChange: t
17162
17170
  }) => /* @__PURE__ */ l(Ie, {
@@ -17174,7 +17182,7 @@ const Ok = ({
17174
17182
  }
17175
17183
  }
17176
17184
  })
17177
- }), Rk = ({
17185
+ }), Tk = ({
17178
17186
  value: e,
17179
17187
  onChange: t,
17180
17188
  data: n
@@ -17230,7 +17238,7 @@ const Ok = ({
17230
17238
  label: "Dynamic by a custom function",
17231
17239
  labelPosition: "center",
17232
17240
  variant: "dashed"
17233
- }), /* @__PURE__ */ l(Ok, {
17241
+ }), /* @__PURE__ */ l(Rk, {
17234
17242
  value: a.func_content,
17235
17243
  onChange: d
17236
17244
  }), /* @__PURE__ */ v(k, {
@@ -17257,15 +17265,15 @@ const Ok = ({
17257
17265
  })
17258
17266
  })]
17259
17267
  });
17260
- }, Tk = ({
17268
+ }, Mk = ({
17261
17269
  value: e,
17262
17270
  onChange: t,
17263
17271
  data: n
17264
- }) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(Rk, {
17272
+ }) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(Tk, {
17265
17273
  value: e,
17266
17274
  onChange: t,
17267
17275
  data: n
17268
- }), Mk = ({
17276
+ }), kk = ({
17269
17277
  value: e,
17270
17278
  onChange: t
17271
17279
  }) => {
@@ -17287,7 +17295,7 @@ const Ok = ({
17287
17295
  onChange: n
17288
17296
  })
17289
17297
  });
17290
- }, kk = [{
17298
+ }, Dk = [{
17291
17299
  label: "Static",
17292
17300
  value: "static"
17293
17301
  }, {
@@ -17309,22 +17317,22 @@ const Ok = ({
17309
17317
  children: [/* @__PURE__ */ l(Ee, {
17310
17318
  ref: o,
17311
17319
  label: e,
17312
- data: kk,
17320
+ data: Dk,
17313
17321
  value: t.type,
17314
17322
  onChange: i,
17315
17323
  sx: {
17316
17324
  flexGrow: 1
17317
17325
  }
17318
- }), /* @__PURE__ */ l(Mk, {
17326
+ }), /* @__PURE__ */ l(kk, {
17319
17327
  value: t,
17320
17328
  onChange: n
17321
- }), /* @__PURE__ */ l(Tk, {
17329
+ }), /* @__PURE__ */ l(Mk, {
17322
17330
  value: t,
17323
17331
  onChange: n,
17324
17332
  data: r
17325
17333
  })]
17326
17334
  });
17327
- }), Dk = [{
17335
+ }), Pk = [{
17328
17336
  label: "off",
17329
17337
  value: "false"
17330
17338
  }, {
@@ -17336,7 +17344,7 @@ const Ok = ({
17336
17344
  }, {
17337
17345
  label: "end",
17338
17346
  value: "end"
17339
- }], Pk = [{
17347
+ }], Ik = [{
17340
17348
  label: "solid",
17341
17349
  value: "solid"
17342
17350
  }, {
@@ -17346,7 +17354,7 @@ const Ok = ({
17346
17354
  label: "dotted",
17347
17355
  value: "dotted"
17348
17356
  }];
17349
- function Ik({
17357
+ function $k({
17350
17358
  control: e,
17351
17359
  index: t,
17352
17360
  seriesItem: n,
@@ -17368,7 +17376,7 @@ function Ik({
17368
17376
  field: i
17369
17377
  }) => /* @__PURE__ */ l(Ee, {
17370
17378
  label: "Line Type",
17371
- data: Pk,
17379
+ data: Ik,
17372
17380
  sx: {
17373
17381
  flexGrow: 1
17374
17382
  },
@@ -17399,7 +17407,7 @@ function Ik({
17399
17407
  field: i
17400
17408
  }) => /* @__PURE__ */ l(Ee, {
17401
17409
  label: "Step",
17402
- data: Dk,
17410
+ data: Pk,
17403
17411
  sx: {
17404
17412
  flexGrow: 1,
17405
17413
  maxWidth: "48%"
@@ -17479,7 +17487,7 @@ function Ik({
17479
17487
  })]
17480
17488
  });
17481
17489
  }
17482
- function $k({
17490
+ function Ak({
17483
17491
  control: e,
17484
17492
  index: t,
17485
17493
  data: n
@@ -17496,7 +17504,7 @@ function $k({
17496
17504
  })
17497
17505
  });
17498
17506
  }
17499
- const Ak = [{
17507
+ const Nk = [{
17500
17508
  label: "off",
17501
17509
  value: ""
17502
17510
  }, {
@@ -17539,7 +17547,7 @@ const Ak = [{
17539
17547
  label: "insideBottomRight",
17540
17548
  value: "insideBottomRight"
17541
17549
  }];
17542
- function Nk({
17550
+ function Lk({
17543
17551
  control: e,
17544
17552
  index: t,
17545
17553
  remove: n,
@@ -17656,15 +17664,15 @@ function Nk({
17656
17664
  ...s
17657
17665
  })
17658
17666
  })]
17659
- }), a === "line" && /* @__PURE__ */ l(Ik, {
17667
+ }), a === "line" && /* @__PURE__ */ l($k, {
17660
17668
  index: t,
17661
17669
  control: e,
17662
17670
  seriesItem: r,
17663
17671
  data: i
17664
- }), a === "bar" && /* @__PURE__ */ l(Ek, {
17672
+ }), a === "bar" && /* @__PURE__ */ l(Ok, {
17665
17673
  index: t,
17666
17674
  control: e
17667
- }), a === "scatter" && /* @__PURE__ */ l($k, {
17675
+ }), a === "scatter" && /* @__PURE__ */ l(Ak, {
17668
17676
  index: t,
17669
17677
  control: e,
17670
17678
  data: i
@@ -17681,7 +17689,7 @@ function Nk({
17681
17689
  field: s
17682
17690
  }) => /* @__PURE__ */ l(Ee, {
17683
17691
  label: "Label Position",
17684
- data: Ak,
17692
+ data: Nk,
17685
17693
  ...s
17686
17694
  })
17687
17695
  }), /* @__PURE__ */ v(B, {
@@ -17733,7 +17741,7 @@ function Nk({
17733
17741
  })]
17734
17742
  }, t);
17735
17743
  }
17736
- function Lk({
17744
+ function Vk({
17737
17745
  control: e,
17738
17746
  watch: t,
17739
17747
  data: n
@@ -17802,7 +17810,7 @@ function Lk({
17802
17810
  })]
17803
17811
  }), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
17804
17812
  value: p.toString(),
17805
- children: /* @__PURE__ */ l(Nk, {
17813
+ children: /* @__PURE__ */ l(Lk, {
17806
17814
  control: e,
17807
17815
  index: p,
17808
17816
  remove: i,
@@ -17813,7 +17821,7 @@ function Lk({
17813
17821
  }, f.id))]
17814
17822
  });
17815
17823
  }
17816
- function Vk({
17824
+ function Fk({
17817
17825
  control: e,
17818
17826
  watch: t
17819
17827
  }) {
@@ -17850,7 +17858,7 @@ function Vk({
17850
17858
  })
17851
17859
  });
17852
17860
  }
17853
- const Fk = ({
17861
+ const zk = ({
17854
17862
  disabled: e,
17855
17863
  value: t,
17856
17864
  onChange: n
@@ -17878,7 +17886,7 @@ const Fk = ({
17878
17886
  }
17879
17887
  }
17880
17888
  })]
17881
- }), zk = ({
17889
+ }), jk = ({
17882
17890
  value: e,
17883
17891
  onChange: t,
17884
17892
  data: n
@@ -17933,7 +17941,7 @@ const Fk = ({
17933
17941
  label: "Enabled",
17934
17942
  checked: a.enabled,
17935
17943
  onChange: (g) => c(g.currentTarget.checked)
17936
- }), /* @__PURE__ */ l(Fk, {
17944
+ }), /* @__PURE__ */ l(zk, {
17937
17945
  value: a.func_content,
17938
17946
  onChange: f,
17939
17947
  disabled: !a.enabled
@@ -17962,7 +17970,7 @@ const Fk = ({
17962
17970
  })]
17963
17971
  });
17964
17972
  };
17965
- function jk({
17973
+ function Hk({
17966
17974
  data: e,
17967
17975
  control: t,
17968
17976
  watch: n
@@ -18036,7 +18044,7 @@ function jk({
18036
18044
  control: t,
18037
18045
  render: ({
18038
18046
  field: r
18039
- }) => /* @__PURE__ */ l(zk, {
18047
+ }) => /* @__PURE__ */ l(jk, {
18040
18048
  data: e,
18041
18049
  ...r
18042
18050
  })
@@ -18044,7 +18052,7 @@ function jk({
18044
18052
  })]
18045
18053
  });
18046
18054
  }
18047
- const Hk = [{
18055
+ const Kk = [{
18048
18056
  label: "left",
18049
18057
  value: "left"
18050
18058
  }, {
@@ -18053,14 +18061,14 @@ const Hk = [{
18053
18061
  }, {
18054
18062
  label: "right",
18055
18063
  value: "right"
18056
- }], Kk = [{
18064
+ }], Bk = [{
18057
18065
  label: "left",
18058
18066
  value: "left"
18059
18067
  }, {
18060
18068
  label: "right",
18061
18069
  value: "right"
18062
18070
  }];
18063
- function Bk({
18071
+ function Gk({
18064
18072
  control: e,
18065
18073
  index: t,
18066
18074
  remove: n
@@ -18101,7 +18109,7 @@ function Bk({
18101
18109
  }) => /* @__PURE__ */ l(Ee, {
18102
18110
  label: "Align",
18103
18111
  required: !0,
18104
- data: Hk,
18112
+ data: Kk,
18105
18113
  sx: {
18106
18114
  flex: 1
18107
18115
  },
@@ -18124,7 +18132,7 @@ function Bk({
18124
18132
  }) => /* @__PURE__ */ l(Ee, {
18125
18133
  label: "Position",
18126
18134
  required: !0,
18127
- data: Kk,
18135
+ data: Bk,
18128
18136
  sx: {
18129
18137
  flex: 1
18130
18138
  },
@@ -18159,7 +18167,7 @@ function Bk({
18159
18167
  })]
18160
18168
  });
18161
18169
  }
18162
- function Gk({
18170
+ function Wk({
18163
18171
  control: e,
18164
18172
  watch: t
18165
18173
  }) {
@@ -18204,7 +18212,7 @@ function Gk({
18204
18212
  })]
18205
18213
  }), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
18206
18214
  value: u.toString(),
18207
- children: /* @__PURE__ */ l(Bk, {
18215
+ children: /* @__PURE__ */ l(Gk, {
18208
18216
  control: e,
18209
18217
  index: u,
18210
18218
  remove: o
@@ -18212,7 +18220,7 @@ function Gk({
18212
18220
  }, u))]
18213
18221
  });
18214
18222
  }
18215
- function Wk(e) {
18223
+ function qk(e) {
18216
18224
  function t({
18217
18225
  name: n = "",
18218
18226
  template: r = "",
@@ -18228,7 +18236,7 @@ function Wk(e) {
18228
18236
  }
18229
18237
  return e.map(t);
18230
18238
  }
18231
- function qk(e) {
18239
+ function Uk(e) {
18232
18240
  function t({
18233
18241
  type: n,
18234
18242
  name: r,
@@ -18277,7 +18285,7 @@ function qk(e) {
18277
18285
  }
18278
18286
  return e.map(t);
18279
18287
  }
18280
- function Uk(e) {
18288
+ function Yk(e) {
18281
18289
  return e || {
18282
18290
  templates: {
18283
18291
  top: "",
@@ -18285,20 +18293,20 @@ function Uk(e) {
18285
18293
  }
18286
18294
  };
18287
18295
  }
18288
- function Yk({
18296
+ function Xk({
18289
18297
  series: e,
18290
18298
  stats: t,
18291
18299
  reference_lines: n,
18292
18300
  ...r
18293
18301
  }) {
18294
18302
  return {
18295
- series: qk(e != null ? e : []),
18296
- stats: Uk(t),
18297
- reference_lines: Wk(n != null ? n : []),
18303
+ series: Uk(e != null ? e : []),
18304
+ stats: Yk(t),
18305
+ reference_lines: qk(n != null ? n : []),
18298
18306
  ...r
18299
18307
  };
18300
18308
  }
18301
- function Xk({
18309
+ function Qk({
18302
18310
  context: e
18303
18311
  }) {
18304
18312
  const {
@@ -18306,7 +18314,7 @@ function Xk({
18306
18314
  set: n
18307
18315
  } = rt(e.instanceData, "config"), {
18308
18316
  variables: r
18309
- } = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() => Yk(i), [i]);
18317
+ } = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() => Xk(i), [i]);
18310
18318
  Me(() => {
18311
18319
  !Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
18312
18320
  }, [i, a]);
@@ -18386,48 +18394,48 @@ function Xk({
18386
18394
  })]
18387
18395
  }), /* @__PURE__ */ l(I.Panel, {
18388
18396
  value: "X Axis",
18389
- children: /* @__PURE__ */ l(jk, {
18397
+ children: /* @__PURE__ */ l(Hk, {
18390
18398
  control: s,
18391
18399
  watch: u,
18392
18400
  data: o
18393
18401
  })
18394
18402
  }), /* @__PURE__ */ l(I.Panel, {
18395
18403
  value: "Y Axes",
18396
- children: /* @__PURE__ */ l(Gk, {
18404
+ children: /* @__PURE__ */ l(Wk, {
18397
18405
  control: s,
18398
18406
  watch: u
18399
18407
  })
18400
18408
  }), /* @__PURE__ */ l(I.Panel, {
18401
18409
  value: "Series",
18402
- children: /* @__PURE__ */ l(Lk, {
18410
+ children: /* @__PURE__ */ l(Vk, {
18403
18411
  control: s,
18404
18412
  watch: u,
18405
18413
  data: o
18406
18414
  })
18407
18415
  }), /* @__PURE__ */ l(I.Panel, {
18408
18416
  value: "Regression Lines",
18409
- children: /* @__PURE__ */ l(xk, {
18417
+ children: /* @__PURE__ */ l(_k, {
18410
18418
  control: s,
18411
18419
  watch: u,
18412
18420
  data: o
18413
18421
  })
18414
18422
  }), /* @__PURE__ */ l(I.Panel, {
18415
18423
  value: "Stats",
18416
- children: /* @__PURE__ */ l(Vk, {
18424
+ children: /* @__PURE__ */ l(Fk, {
18417
18425
  control: s,
18418
18426
  watch: u,
18419
18427
  data: o
18420
18428
  })
18421
18429
  }), /* @__PURE__ */ l(I.Panel, {
18422
18430
  value: "Reference Lines",
18423
- children: /* @__PURE__ */ l(bk, {
18431
+ children: /* @__PURE__ */ l(Sk, {
18424
18432
  variables: r,
18425
18433
  control: s,
18426
18434
  watch: u
18427
18435
  })
18428
18436
  }), /* @__PURE__ */ l(I.Panel, {
18429
18437
  value: "Reference Areas",
18430
- children: /* @__PURE__ */ l(mk, {
18438
+ children: /* @__PURE__ */ l(vk, {
18431
18439
  variables: r,
18432
18440
  control: s,
18433
18441
  watch: u
@@ -18437,11 +18445,11 @@ function Xk({
18437
18445
  })
18438
18446
  });
18439
18447
  }
18440
- function Qk(e) {
18448
+ function Jk(e) {
18441
18449
  const t = Xo(Dr(e, "variables"));
18442
18450
  return t.stats = Dr(t.stats, "variables"), t;
18443
18451
  }
18444
- function Jk(e) {
18452
+ function Zk(e) {
18445
18453
  const {
18446
18454
  rotate: t,
18447
18455
  formatter: n = Es
@@ -18457,7 +18465,7 @@ function Jk(e) {
18457
18465
  }
18458
18466
  };
18459
18467
  }
18460
- class Zk extends tn {
18468
+ class eD extends tn {
18461
18469
  constructor() {
18462
18470
  super(...arguments);
18463
18471
  he(this, "VERSION", 3);
@@ -18477,27 +18485,27 @@ class Zk extends tn {
18477
18485
  }), (dt(o, "stats.variables") || []).forEach((s) => {
18478
18486
  r.variables.find((c) => c.name === s.name) || r.addVariable(s);
18479
18487
  }), {
18480
- config: Qk(o)
18488
+ config: Jk(o)
18481
18489
  };
18482
18490
  }), this.version(3, (n) => ({
18483
18491
  version: 3,
18484
- config: Jk(n.config)
18492
+ config: Zk(n.config)
18485
18493
  }));
18486
18494
  }
18487
18495
  }
18488
- const eD = {
18496
+ const tD = {
18489
18497
  displayName: "Cartesian Chart",
18490
- migrator: new Zk(),
18498
+ migrator: new eD(),
18491
18499
  name: "cartesian",
18492
- viewRender: fk,
18493
- configRender: Xk,
18500
+ viewRender: pk,
18501
+ configRender: Qk,
18494
18502
  createConfig: () => Os,
18495
18503
  triggers: [qg]
18496
18504
  }, Yg = {
18497
18505
  id: "builtin:echarts:click-echart:series",
18498
18506
  displayName: "Click Chart Series",
18499
- nameRender: nD,
18500
- configRender: tD,
18507
+ nameRender: rD,
18508
+ configRender: nD,
18501
18509
  payload: [{
18502
18510
  name: "type",
18503
18511
  description: "Always 'click'",
@@ -18520,10 +18528,10 @@ const eD = {
18520
18528
  valueType: "object"
18521
18529
  }]
18522
18530
  };
18523
- function tD(e) {
18531
+ function nD(e) {
18524
18532
  return /* @__PURE__ */ l(Ne, {});
18525
18533
  }
18526
- function nD(e) {
18534
+ function rD(e) {
18527
18535
  return /* @__PURE__ */ l(z, {
18528
18536
  children: "Click chart's series"
18529
18537
  });
@@ -18549,7 +18557,7 @@ function Ts(e) {
18549
18557
  mantissa: 0
18550
18558
  });
18551
18559
  }
18552
- function rD(e) {
18560
+ function oD(e) {
18553
18561
  const t = e.value[1];
18554
18562
  try {
18555
18563
  return Ts(t);
@@ -18557,7 +18565,7 @@ function rD(e) {
18557
18565
  return console.error(n), t;
18558
18566
  }
18559
18567
  }
18560
- function oD(e) {
18568
+ function iD(e) {
18561
18569
  const t = Array.isArray(e) ? e : [e];
18562
18570
  if (t.length === 0)
18563
18571
  return "";
@@ -18568,7 +18576,7 @@ function oD(e) {
18568
18576
  return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
18569
18577
  }
18570
18578
  $t.use([Il, $l, ei, Lr, Vr, Fr, Jn]);
18571
- function iD({
18579
+ function aD({
18572
18580
  context: e,
18573
18581
  instance: t
18574
18582
  }) {
@@ -18617,7 +18625,7 @@ function iD({
18617
18625
  }],
18618
18626
  tooltip: {
18619
18627
  trigger: "axis",
18620
- formatter: oD
18628
+ formatter: iD
18621
18629
  },
18622
18630
  xAxis: [{
18623
18631
  type: "category",
@@ -18685,7 +18693,7 @@ function iD({
18685
18693
  label: {
18686
18694
  show: !0,
18687
18695
  position: "top",
18688
- formatter: rD
18696
+ formatter: oD
18689
18697
  },
18690
18698
  yAxisIndex: 1,
18691
18699
  data: m
@@ -18703,7 +18711,7 @@ function iD({
18703
18711
  }
18704
18712
  });
18705
18713
  }
18706
- function aD({
18714
+ function lD({
18707
18715
  context: e
18708
18716
  }) {
18709
18717
  const {
@@ -18863,7 +18871,7 @@ function aD({
18863
18871
  })
18864
18872
  });
18865
18873
  }
18866
- class lD extends tn {
18874
+ class sD extends tn {
18867
18875
  constructor() {
18868
18876
  super(...arguments);
18869
18877
  he(this, "VERSION", 1);
@@ -18875,12 +18883,12 @@ class lD extends tn {
18875
18883
  }));
18876
18884
  }
18877
18885
  }
18878
- const sD = {
18886
+ const cD = {
18879
18887
  displayName: "Pareto Chart",
18880
- migrator: new lD(),
18888
+ migrator: new sD(),
18881
18889
  name: "paretoChart",
18882
- viewRender: iD,
18883
- configRender: aD,
18890
+ viewRender: aD,
18891
+ configRender: lD,
18884
18892
  createConfig: () => Rs,
18885
18893
  triggers: [Yg]
18886
18894
  }, Ms = {
@@ -18888,7 +18896,7 @@ const sD = {
18888
18896
  value_field: ""
18889
18897
  };
18890
18898
  $t.use([Bm, Jn]);
18891
- const cD = {
18899
+ const uD = {
18892
18900
  tooltip: {
18893
18901
  show: !0
18894
18902
  },
@@ -18922,7 +18930,7 @@ const cD = {
18922
18930
  right: 10
18923
18931
  }
18924
18932
  };
18925
- function uD({
18933
+ function dD({
18926
18934
  context: e
18927
18935
  }) {
18928
18936
  const {
@@ -18945,7 +18953,7 @@ function uD({
18945
18953
  };
18946
18954
  }
18947
18955
  }
18948
- }), [r]), u = Cd({}, cD, c, {
18956
+ }), [r]), u = Cd({}, uD, c, {
18949
18957
  series: {
18950
18958
  data: s
18951
18959
  }
@@ -18959,7 +18967,7 @@ function uD({
18959
18967
  }
18960
18968
  });
18961
18969
  }
18962
- function dD({
18970
+ function fD({
18963
18971
  context: e
18964
18972
  }) {
18965
18973
  const {
@@ -19025,7 +19033,7 @@ function dD({
19025
19033
  })
19026
19034
  });
19027
19035
  }
19028
- class fD extends tn {
19036
+ class pD extends tn {
19029
19037
  constructor() {
19030
19038
  super(...arguments);
19031
19039
  he(this, "VERSION", 1);
@@ -19037,12 +19045,12 @@ class fD extends tn {
19037
19045
  }));
19038
19046
  }
19039
19047
  }
19040
- const pD = {
19048
+ const gD = {
19041
19049
  displayName: "Pie Chart",
19042
- migrator: new fD(),
19050
+ migrator: new pD(),
19043
19051
  name: "pie",
19044
- viewRender: uD,
19045
- configRender: dD,
19052
+ viewRender: dD,
19053
+ configRender: fD,
19046
19054
  createConfig: () => Ms
19047
19055
  };
19048
19056
  function Xg(e) {
@@ -19054,13 +19062,13 @@ function Xg(e) {
19054
19062
  }
19055
19063
  } : (t) => t;
19056
19064
  }
19057
- function gD(e) {
19065
+ function hD(e) {
19058
19066
  return {
19059
19067
  show: !0,
19060
19068
  formatter: ({ dimensionIndex: t, value: n }) => Xg(e.dimensions[t].formatter)(n)
19061
19069
  };
19062
19070
  }
19063
- function hD(e) {
19071
+ function mD(e) {
19064
19072
  return ({ name: t, marker: n, value: r }) => {
19065
19073
  if (r.length === 0)
19066
19074
  return "";
@@ -19099,7 +19107,7 @@ function hD(e) {
19099
19107
  `;
19100
19108
  };
19101
19109
  }
19102
- const mD = {
19110
+ const vD = {
19103
19111
  legend: {
19104
19112
  show: !0,
19105
19113
  bottom: 0,
@@ -19109,7 +19117,7 @@ const mD = {
19109
19117
  trigger: "item"
19110
19118
  }
19111
19119
  };
19112
- function vD(e, t) {
19120
+ function yD(e, t) {
19113
19121
  const n = [
19114
19122
  "#66B4DB",
19115
19123
  "#39BFA2",
@@ -19146,7 +19154,7 @@ function vD(e, t) {
19146
19154
  },
19147
19155
  tooltip: {
19148
19156
  confine: !0,
19149
- formatter: hD(e)
19157
+ formatter: mD(e)
19150
19158
  },
19151
19159
  legend: {
19152
19160
  show: !0,
@@ -19162,18 +19170,18 @@ function vD(e, t) {
19162
19170
  areaStyle: {
19163
19171
  opacity: 0.4
19164
19172
  },
19165
- label: gD(e)
19173
+ label: hD(e)
19166
19174
  },
19167
19175
  color: n
19168
19176
  };
19169
- return Le.merge({}, mD, i);
19177
+ return Le.merge({}, vD, i);
19170
19178
  }
19171
19179
  const ks = {
19172
19180
  series_name_key: "name",
19173
19181
  dimensions: []
19174
19182
  };
19175
19183
  $t.use([Gm, Lr, Vr, Fr, Jn]);
19176
- function yD({
19184
+ function bD({
19177
19185
  context: e
19178
19186
  }) {
19179
19187
  const {
@@ -19181,7 +19189,7 @@ function yD({
19181
19189
  } = rt(e.instanceData, "config"), {
19182
19190
  width: n,
19183
19191
  height: r
19184
- } = e.viewport, o = e.data, i = de(() => vD(nn({}, t, ks), o), [t, o]);
19192
+ } = e.viewport, o = e.data, i = de(() => yD(nn({}, t, ks), o), [t, o]);
19185
19193
  return !n || !r || !t || Tl(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ l(Ie, {
19186
19194
  children: /* @__PURE__ */ l(Zn, {
19187
19195
  echarts: $t,
@@ -19193,7 +19201,7 @@ function yD({
19193
19201
  })
19194
19202
  });
19195
19203
  }
19196
- function bD({
19204
+ function SD({
19197
19205
  control: e,
19198
19206
  index: t,
19199
19207
  remove: n,
@@ -19283,7 +19291,7 @@ function bD({
19283
19291
  })]
19284
19292
  }, t);
19285
19293
  }
19286
- function SD({
19294
+ function wD({
19287
19295
  control: e,
19288
19296
  watch: t,
19289
19297
  data: n
@@ -19305,7 +19313,7 @@ function SD({
19305
19313
  formatter: Cr
19306
19314
  });
19307
19315
  return /* @__PURE__ */ v(B, {
19308
- children: [s.map((u, d) => /* @__PURE__ */ l(bD, {
19316
+ children: [s.map((u, d) => /* @__PURE__ */ l(SD, {
19309
19317
  data: n,
19310
19318
  control: e,
19311
19319
  index: d,
@@ -19320,7 +19328,7 @@ function SD({
19320
19328
  })]
19321
19329
  });
19322
19330
  }
19323
- function wD(e) {
19331
+ function CD(e) {
19324
19332
  function t({
19325
19333
  name: n = "",
19326
19334
  data_key: r = "",
@@ -19336,7 +19344,7 @@ function wD(e) {
19336
19344
  }
19337
19345
  return e.map(t);
19338
19346
  }
19339
- function CD({
19347
+ function xD({
19340
19348
  context: e
19341
19349
  }) {
19342
19350
  const t = e.data, {
@@ -19346,7 +19354,7 @@ function CD({
19346
19354
  dimensions: i,
19347
19355
  series_name_key: a
19348
19356
  } = o, s = de(() => ({
19349
- dimensions: wD(i != null ? i : []),
19357
+ dimensions: CD(i != null ? i : []),
19350
19358
  series_name_key: a
19351
19359
  }), [i, a]);
19352
19360
  Me(() => {
@@ -19407,7 +19415,7 @@ function CD({
19407
19415
  ...m
19408
19416
  })
19409
19417
  })
19410
- }), /* @__PURE__ */ l(SD, {
19418
+ }), /* @__PURE__ */ l(wD, {
19411
19419
  control: c,
19412
19420
  watch: d,
19413
19421
  data: t
@@ -19415,7 +19423,7 @@ function CD({
19415
19423
  })
19416
19424
  });
19417
19425
  }
19418
- class xD extends tn {
19426
+ class _D extends tn {
19419
19427
  constructor() {
19420
19428
  super(...arguments);
19421
19429
  he(this, "VERSION", 1);
@@ -19427,15 +19435,15 @@ class xD extends tn {
19427
19435
  }));
19428
19436
  }
19429
19437
  }
19430
- const _D = {
19438
+ const ED = {
19431
19439
  displayName: "Radar Chart",
19432
- migrator: new xD(),
19440
+ migrator: new _D(),
19433
19441
  name: "radar",
19434
- viewRender: yD,
19435
- configRender: CD,
19442
+ viewRender: bD,
19443
+ configRender: xD,
19436
19444
  createConfig: () => ks
19437
19445
  };
19438
- function ED(e, t) {
19446
+ function OD(e, t) {
19439
19447
  switch (e.config.method) {
19440
19448
  case "linear":
19441
19449
  return [...cr.regressionLinear()(t)];
@@ -19449,11 +19457,11 @@ function ED(e, t) {
19449
19457
  return [];
19450
19458
  }
19451
19459
  }
19452
- function OD({ regression: e }, t) {
19460
+ function RD({ regression: e }, t) {
19453
19461
  const n = [], r = [];
19454
19462
  if (t.length === 0)
19455
19463
  return { regressionSeries: n, regressionXAxes: r };
19456
- const { transform: o, plot: i, name: a } = e, s = ED(o, t);
19464
+ const { transform: o, plot: i, name: a } = e, s = OD(o, t);
19457
19465
  return n.push({
19458
19466
  ...i,
19459
19467
  name: a,
@@ -19465,7 +19473,7 @@ function OD({ regression: e }, t) {
19465
19473
  }
19466
19474
  }), { regressionSeries: n, regressionXAxes: r };
19467
19475
  }
19468
- const RD = {
19476
+ const TD = {
19469
19477
  tooltip: {
19470
19478
  trigger: "axis"
19471
19479
  },
@@ -19487,12 +19495,12 @@ const RD = {
19487
19495
  }
19488
19496
  ]
19489
19497
  };
19490
- function TD(e, t) {
19498
+ function MD(e, t) {
19491
19499
  var i, a;
19492
19500
  const n = Le.uniqBy(
19493
19501
  t.map((s) => [s[e.x_axis.data_key], s[e.regression.y_axis_data_key]]),
19494
19502
  0
19495
- ), { regressionSeries: r } = OD(e, n), o = {
19503
+ ), { regressionSeries: r } = RD(e, n), o = {
19496
19504
  xAxis: {
19497
19505
  type: "category",
19498
19506
  name: (i = e.x_axis.name) != null ? i : "",
@@ -19518,12 +19526,12 @@ function TD(e, t) {
19518
19526
  ...r
19519
19527
  ]
19520
19528
  };
19521
- return nn({}, o, RD);
19529
+ return nn({}, o, TD);
19522
19530
  }
19523
19531
  function yi(e, t, n) {
19524
19532
  return 1 - (1 - e) * (t - 1) / (t - n - 1);
19525
19533
  }
19526
- function MD(e, t) {
19534
+ function kD(e, t) {
19527
19535
  if (!t)
19528
19536
  return {
19529
19537
  expression: "",
@@ -19705,7 +19713,7 @@ const Ds = {
19705
19713
  };
19706
19714
  $t.use([ei, Al, Lr, Vr, Fr, Jn]);
19707
19715
  $t.registerTransform(Nl.regression);
19708
- function kD({
19716
+ function DD({
19709
19717
  context: e
19710
19718
  }) {
19711
19719
  const {
@@ -19720,11 +19728,11 @@ function kD({
19720
19728
  ...g,
19721
19729
  [f]: Number(g[f])
19722
19730
  }) : d;
19723
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() => TD(nn({}, t, Ds), o), [t, o]), {
19731
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() => MD(nn({}, t, Ds), o), [t, o]), {
19724
19732
  expression: a,
19725
19733
  rSquared: s,
19726
19734
  adjustedRSquared: c
19727
- } = de(() => MD(o, t), [t, o]);
19735
+ } = de(() => kD(o, t), [t, o]);
19728
19736
  if (!n || !r || !t)
19729
19737
  return null;
19730
19738
  let u = r;
@@ -19791,7 +19799,7 @@ function kD({
19791
19799
  })]
19792
19800
  });
19793
19801
  }
19794
- const DD = [{
19802
+ const PD = [{
19795
19803
  label: "Linear",
19796
19804
  value: "linear"
19797
19805
  }, {
@@ -19804,7 +19812,7 @@ const DD = [{
19804
19812
  label: "Polynomial",
19805
19813
  value: "polynomial"
19806
19814
  }];
19807
- function PD({
19815
+ function ID({
19808
19816
  control: e,
19809
19817
  watch: t,
19810
19818
  data: n
@@ -19852,7 +19860,7 @@ function PD({
19852
19860
  field: o
19853
19861
  }) => /* @__PURE__ */ l(Ee, {
19854
19862
  label: "Method",
19855
- data: DD,
19863
+ data: PD,
19856
19864
  sx: {
19857
19865
  flex: 1
19858
19866
  },
@@ -19888,7 +19896,7 @@ function PD({
19888
19896
  })]
19889
19897
  });
19890
19898
  }
19891
- function ID({
19899
+ function $D({
19892
19900
  context: e
19893
19901
  }) {
19894
19902
  const {
@@ -19993,7 +20001,7 @@ function ID({
19993
20001
  children: [/* @__PURE__ */ l(_r.Control, {
19994
20002
  children: "Regression Line"
19995
20003
  }), /* @__PURE__ */ l(_r.Panel, {
19996
- children: /* @__PURE__ */ l(PD, {
20004
+ children: /* @__PURE__ */ l(ID, {
19997
20005
  control: i,
19998
20006
  watch: s,
19999
20007
  data: r
@@ -20004,7 +20012,7 @@ function ID({
20004
20012
  })
20005
20013
  });
20006
20014
  }
20007
- class $D extends tn {
20015
+ class AD extends tn {
20008
20016
  constructor() {
20009
20017
  super(...arguments);
20010
20018
  he(this, "VERSION", 1);
@@ -20016,17 +20024,17 @@ class $D extends tn {
20016
20024
  }));
20017
20025
  }
20018
20026
  }
20019
- const AD = {
20027
+ const ND = {
20020
20028
  displayName: "Regression Chart",
20021
- migrator: new $D(),
20029
+ migrator: new AD(),
20022
20030
  name: "regressionChart",
20023
- viewRender: kD,
20024
- configRender: ID,
20031
+ viewRender: DD,
20032
+ configRender: $D,
20025
20033
  createConfig: () => Ds
20026
20034
  }, Ps = {
20027
20035
  content: ""
20028
20036
  };
20029
- function ND({
20037
+ function LD({
20030
20038
  context: e
20031
20039
  }) {
20032
20040
  const {
@@ -20088,7 +20096,7 @@ const Qg = Nn(({
20088
20096
  }), /* @__PURE__ */ l(it.Content, {})]
20089
20097
  });
20090
20098
  });
20091
- function LD({
20099
+ function VD({
20092
20100
  context: e
20093
20101
  }) {
20094
20102
  const {
@@ -20157,7 +20165,7 @@ function LD({
20157
20165
  })
20158
20166
  });
20159
20167
  }
20160
- class VD extends tn {
20168
+ class FD extends tn {
20161
20169
  constructor() {
20162
20170
  super(...arguments);
20163
20171
  he(this, "VERSION", 1);
@@ -20172,18 +20180,18 @@ class VD extends tn {
20172
20180
  }));
20173
20181
  }
20174
20182
  }
20175
- const FD = {
20183
+ const zD = {
20176
20184
  displayName: "RichText",
20177
- migrator: new VD(),
20185
+ migrator: new FD(),
20178
20186
  name: "richText",
20179
- viewRender: ND,
20180
- configRender: LD,
20187
+ viewRender: LD,
20188
+ configRender: VD,
20181
20189
  createConfig: () => Ps
20182
20190
  }, Is = {
20183
20191
  align: "center",
20184
20192
  template: "The variable ${value} is defined in Variables section"
20185
20193
  };
20186
- function zD(e) {
20194
+ function jD(e) {
20187
20195
  if ("variables" in e)
20188
20196
  return e;
20189
20197
  const {
@@ -20217,10 +20225,10 @@ function zD(e) {
20217
20225
  ]
20218
20226
  };
20219
20227
  }
20220
- function jD(e) {
20228
+ function HD(e) {
20221
20229
  return Dr(e, ["variables"]);
20222
20230
  }
20223
- function HD(e) {
20231
+ function KD(e) {
20224
20232
  const t = Xo(e), n = dt(t, "color.valueRange");
20225
20233
  return n !== void 0 && Rl(
20226
20234
  t,
@@ -20228,21 +20236,21 @@ function HD(e) {
20228
20236
  n.map((r) => Number(r))
20229
20237
  ), t;
20230
20238
  }
20231
- class KD extends tn {
20239
+ class BD extends tn {
20232
20240
  constructor() {
20233
20241
  super(...arguments);
20234
20242
  he(this, "VERSION", 2);
20235
20243
  }
20236
20244
  configVersions() {
20237
- this.version(1, (n) => ({ config: zD(n) })), this.version(2, (n, { panelModel: r }) => {
20245
+ this.version(1, (n) => ({ config: jD(n) })), this.version(2, (n, { panelModel: r }) => {
20238
20246
  const { config: o } = n;
20239
20247
  return (o.variables || []).forEach((a) => {
20240
- r.variables.find((s) => s.name === a.name) || r.addVariable(HD(a));
20241
- }), { config: jD(o) };
20248
+ r.variables.find((s) => s.name === a.name) || r.addVariable(KD(a));
20249
+ }), { config: HD(o) };
20242
20250
  });
20243
20251
  }
20244
20252
  }
20245
- const BD = Q(({
20253
+ const GD = Q(({
20246
20254
  context: e
20247
20255
  }) => {
20248
20256
  const t = lt(), {
@@ -20269,7 +20277,7 @@ const BD = Q(({
20269
20277
  children: c
20270
20278
  }, u))
20271
20279
  });
20272
- }), GD = [{
20280
+ }), WD = [{
20273
20281
  label: "Left",
20274
20282
  value: "left"
20275
20283
  }, {
@@ -20279,7 +20287,7 @@ const BD = Q(({
20279
20287
  label: "Right",
20280
20288
  value: "right"
20281
20289
  }];
20282
- function WD({
20290
+ function qD({
20283
20291
  context: e
20284
20292
  }) {
20285
20293
  const {
@@ -20353,14 +20361,14 @@ function WD({
20353
20361
  field: f
20354
20362
  }) => /* @__PURE__ */ l(Ee, {
20355
20363
  label: "Horizontal Alignment",
20356
- data: GD,
20364
+ data: WD,
20357
20365
  ...f
20358
20366
  })
20359
20367
  })]
20360
20368
  })
20361
20369
  });
20362
20370
  }
20363
- const qD = {
20371
+ const UD = {
20364
20372
  createConfig() {
20365
20373
  return {
20366
20374
  version: 1,
@@ -20368,16 +20376,16 @@ const qD = {
20368
20376
  };
20369
20377
  },
20370
20378
  displayName: "Stats",
20371
- migrator: new KD(),
20379
+ migrator: new BD(),
20372
20380
  name: "stats",
20373
- viewRender: BD,
20374
- configRender: WD
20381
+ viewRender: GD,
20382
+ configRender: qD
20375
20383
  }, $s = {
20376
20384
  label_field: "",
20377
20385
  value_field: ""
20378
20386
  };
20379
20387
  $t.use([Wm, Jn]);
20380
- const UD = {
20388
+ const YD = {
20381
20389
  tooltip: {
20382
20390
  show: !0
20383
20391
  },
@@ -20389,7 +20397,7 @@ const UD = {
20389
20397
  }
20390
20398
  }
20391
20399
  };
20392
- function YD({
20400
+ function XD({
20393
20401
  context: e
20394
20402
  }) {
20395
20403
  const {
@@ -20415,7 +20423,7 @@ function YD({
20415
20423
  }) => p / c < 0.2 ? " " : f
20416
20424
  }
20417
20425
  }
20418
- }), [c]), d = Cd({}, UD, u, {
20426
+ }), [c]), d = Cd({}, YD, u, {
20419
20427
  series: {
20420
20428
  data: s
20421
20429
  }
@@ -20429,7 +20437,7 @@ function YD({
20429
20437
  }
20430
20438
  });
20431
20439
  }
20432
- function XD({
20440
+ function QD({
20433
20441
  context: e
20434
20442
  }) {
20435
20443
  const {
@@ -20495,7 +20503,7 @@ function XD({
20495
20503
  })
20496
20504
  });
20497
20505
  }
20498
- class QD extends tn {
20506
+ class JD extends tn {
20499
20507
  constructor() {
20500
20508
  super(...arguments);
20501
20509
  he(this, "VERSION", 1);
@@ -20507,12 +20515,12 @@ class QD extends tn {
20507
20515
  }));
20508
20516
  }
20509
20517
  }
20510
- const JD = {
20518
+ const ZD = {
20511
20519
  displayName: "Sunburst",
20512
- migrator: new QD(),
20520
+ migrator: new JD(),
20513
20521
  name: "sunburst",
20514
- viewRender: YD,
20515
- configRender: XD,
20522
+ viewRender: XD,
20523
+ configRender: QD,
20516
20524
  createConfig: () => $s
20517
20525
  };
20518
20526
  var Pn = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(Pn || {});
@@ -20556,7 +20564,7 @@ function Sn(e, t) {
20556
20564
  function Hi(e) {
20557
20565
  return e instanceof Function;
20558
20566
  }
20559
- function ZD(e, t) {
20567
+ function eP(e, t) {
20560
20568
  const n = [], r = (o) => {
20561
20569
  o.forEach((i) => {
20562
20570
  n.push(i);
@@ -20590,7 +20598,7 @@ function Ge(e, t, n) {
20590
20598
  return o;
20591
20599
  };
20592
20600
  }
20593
- function eP(e, t, n, r) {
20601
+ function tP(e, t, n, r) {
20594
20602
  var o, i;
20595
20603
  const s = {
20596
20604
  ...e._getDefaultColumnDef(),
@@ -20667,7 +20675,7 @@ function td(e, t, n) {
20667
20675
  Object.assign(i, a.createHeader == null ? void 0 : a.createHeader(i, e));
20668
20676
  }), i;
20669
20677
  }
20670
- const tP = {
20678
+ const nP = {
20671
20679
  createTable: (e) => ({
20672
20680
  getHeaderGroups: Ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => {
20673
20681
  var i, a;
@@ -20874,7 +20882,7 @@ const Si = {
20874
20882
  deltaPercentage: null,
20875
20883
  isResizingColumn: !1,
20876
20884
  columnSizingStart: []
20877
- }), nP = {
20885
+ }), rP = {
20878
20886
  getDefaultColumnDef: () => Si,
20879
20887
  getInitialState: (e) => ({
20880
20888
  columnSizing: {},
@@ -20974,7 +20982,7 @@ const Si = {
20974
20982
  upHandler: (g) => {
20975
20983
  document.removeEventListener("mousemove", f.moveHandler), document.removeEventListener("mouseup", f.upHandler), d(g.clientX);
20976
20984
  }
20977
- }, p = rP() ? {
20985
+ }, p = oP() ? {
20978
20986
  passive: !1
20979
20987
  } : !1;
20980
20988
  Da(o) || (document.addEventListener("mousemove", f.moveHandler, p), document.addEventListener("mouseup", f.upHandler, p)), t.setColumnSizingInfo((g) => ({
@@ -21019,7 +21027,7 @@ const Si = {
21019
21027
  })
21020
21028
  };
21021
21029
  let wi = null;
21022
- function rP() {
21030
+ function oP() {
21023
21031
  if (typeof wi == "boolean")
21024
21032
  return wi;
21025
21033
  let e = !1;
@@ -21039,7 +21047,7 @@ function rP() {
21039
21047
  function Da(e) {
21040
21048
  return e.type === "touchstart";
21041
21049
  }
21042
- const oP = {
21050
+ const iP = {
21043
21051
  getInitialState: (e) => ({
21044
21052
  expanded: {},
21045
21053
  ...e
@@ -21200,7 +21208,7 @@ const Hn = {
21200
21208
  function En(e) {
21201
21209
  return e == null || e === "";
21202
21210
  }
21203
- const iP = {
21211
+ const aP = {
21204
21212
  getDefaultColumnDef: () => ({
21205
21213
  filterFn: "auto"
21206
21214
  }),
@@ -21328,35 +21336,35 @@ const iP = {
21328
21336
  function nd(e, t, n) {
21329
21337
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
21330
21338
  }
21331
- const aP = (e, t, n) => n.reduce((r, o) => {
21339
+ const lP = (e, t, n) => n.reduce((r, o) => {
21332
21340
  const i = o.getValue(e);
21333
21341
  return r + (typeof i == "number" ? i : 0);
21334
- }, 0), lP = (e, t, n) => {
21342
+ }, 0), sP = (e, t, n) => {
21335
21343
  let r;
21336
21344
  return n.forEach((o) => {
21337
21345
  const i = o.getValue(e);
21338
21346
  i != null && (r > i || r === void 0 && i >= i) && (r = i);
21339
21347
  }), r;
21340
- }, sP = (e, t, n) => {
21348
+ }, cP = (e, t, n) => {
21341
21349
  let r;
21342
21350
  return n.forEach((o) => {
21343
21351
  const i = o.getValue(e);
21344
21352
  i != null && (r < i || r === void 0 && i >= i) && (r = i);
21345
21353
  }), r;
21346
- }, cP = (e, t, n) => {
21354
+ }, uP = (e, t, n) => {
21347
21355
  let r, o;
21348
21356
  return n.forEach((i) => {
21349
21357
  const a = i.getValue(e);
21350
21358
  a != null && (r === void 0 ? a >= a && (r = o = a) : (r > a && (r = a), o < a && (o = a)));
21351
21359
  }), [r, o];
21352
- }, uP = (e, t) => {
21360
+ }, dP = (e, t) => {
21353
21361
  let n = 0, r = 0;
21354
21362
  if (t.forEach((o) => {
21355
21363
  let i = o.getValue(e);
21356
21364
  i != null && (i = +i) >= i && (++n, r += i);
21357
21365
  }), n)
21358
21366
  return r / n;
21359
- }, dP = (e, t) => {
21367
+ }, fP = (e, t) => {
21360
21368
  if (!t.length)
21361
21369
  return;
21362
21370
  let n = 0, r = 0;
@@ -21364,17 +21372,17 @@ const aP = (e, t, n) => n.reduce((r, o) => {
21364
21372
  let i = o.getValue(e);
21365
21373
  typeof i == "number" && (n = Math.min(n, i), r = Math.max(r, i));
21366
21374
  }), (n + r) / 2;
21367
- }, fP = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), pP = (e, t) => new Set(t.map((n) => n.getValue(e))).size, gP = (e, t) => t.length, Pa = {
21368
- sum: aP,
21369
- min: lP,
21370
- max: sP,
21371
- extent: cP,
21372
- mean: uP,
21373
- median: dP,
21374
- unique: fP,
21375
- uniqueCount: pP,
21376
- count: gP
21377
- }, hP = {
21375
+ }, pP = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), gP = (e, t) => new Set(t.map((n) => n.getValue(e))).size, hP = (e, t) => t.length, Pa = {
21376
+ sum: lP,
21377
+ min: sP,
21378
+ max: cP,
21379
+ extent: uP,
21380
+ mean: dP,
21381
+ median: fP,
21382
+ unique: pP,
21383
+ uniqueCount: gP,
21384
+ count: hP
21385
+ }, mP = {
21378
21386
  getDefaultColumnDef: () => ({
21379
21387
  aggregatedCell: (e) => {
21380
21388
  var t, n;
@@ -21448,13 +21456,13 @@ const aP = (e, t, n) => n.reduce((r, o) => {
21448
21456
  }
21449
21457
  })
21450
21458
  };
21451
- function mP(e, t, n) {
21459
+ function vP(e, t, n) {
21452
21460
  if (!(t != null && t.length) || !n)
21453
21461
  return e;
21454
21462
  const r = e.filter((i) => !t.includes(i.id));
21455
21463
  return n === "remove" ? r : [...t.map((i) => e.find((a) => a.id === i)).filter(Boolean), ...r];
21456
21464
  }
21457
- const vP = {
21465
+ const yP = {
21458
21466
  getInitialState: (e) => ({
21459
21467
  columnOrder: [],
21460
21468
  ...e
@@ -21480,7 +21488,7 @@ const vP = {
21480
21488
  }
21481
21489
  i = [...i, ...s];
21482
21490
  }
21483
- return mP(i, n, r);
21491
+ return vP(i, n, r);
21484
21492
  }, {
21485
21493
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
21486
21494
  })
@@ -21488,7 +21496,7 @@ const vP = {
21488
21496
  }, hl = 0, ml = 10, Ia = () => ({
21489
21497
  pageIndex: hl,
21490
21498
  pageSize: ml
21491
- }), yP = {
21499
+ }), bP = {
21492
21500
  getInitialState: (e) => ({
21493
21501
  ...e,
21494
21502
  pagination: {
@@ -21592,7 +21600,7 @@ const vP = {
21592
21600
  }, $a = () => ({
21593
21601
  left: [],
21594
21602
  right: []
21595
- }), bP = {
21603
+ }), SP = {
21596
21604
  getInitialState: (e) => ({
21597
21605
  columnPinning: $a(),
21598
21606
  ...e
@@ -21714,7 +21722,7 @@ const vP = {
21714
21722
  }
21715
21723
  })
21716
21724
  })
21717
- }, SP = {
21725
+ }, wP = {
21718
21726
  getInitialState: (e) => ({
21719
21727
  rowSelection: {},
21720
21728
  ...e
@@ -21902,10 +21910,10 @@ function rd(e, t, n) {
21902
21910
  }
21903
21911
  return !1;
21904
21912
  }
21905
- const yl = /([0-9]+)/gm, wP = (e, t, n) => lh(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), CP = (e, t, n) => lh(br(e.getValue(n)), br(t.getValue(n))), xP = (e, t, n) => Vs(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), _P = (e, t, n) => Vs(br(e.getValue(n)), br(t.getValue(n))), EP = (e, t, n) => {
21913
+ const yl = /([0-9]+)/gm, CP = (e, t, n) => lh(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), xP = (e, t, n) => lh(br(e.getValue(n)), br(t.getValue(n))), _P = (e, t, n) => Vs(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), EP = (e, t, n) => Vs(br(e.getValue(n)), br(t.getValue(n))), OP = (e, t, n) => {
21906
21914
  const r = e.getValue(n), o = t.getValue(n);
21907
21915
  return r > o ? 1 : r < o ? -1 : 0;
21908
- }, OP = (e, t, n) => Vs(e.getValue(n), t.getValue(n));
21916
+ }, RP = (e, t, n) => Vs(e.getValue(n), t.getValue(n));
21909
21917
  function Vs(e, t) {
21910
21918
  return e === t ? 0 : e > t ? 1 : -1;
21911
21919
  }
@@ -21933,13 +21941,13 @@ function lh(e, t) {
21933
21941
  return n.length - r.length;
21934
21942
  }
21935
21943
  const xo = {
21936
- alphanumeric: wP,
21937
- alphanumericCaseSensitive: CP,
21938
- text: xP,
21939
- textCaseSensitive: _P,
21940
- datetime: EP,
21941
- basic: OP
21942
- }, RP = {
21944
+ alphanumeric: CP,
21945
+ alphanumericCaseSensitive: xP,
21946
+ text: _P,
21947
+ textCaseSensitive: EP,
21948
+ datetime: OP,
21949
+ basic: RP
21950
+ }, TP = {
21943
21951
  getInitialState: (e) => ({
21944
21952
  sorting: [],
21945
21953
  ...e
@@ -22041,7 +22049,7 @@ const xo = {
22041
22049
  getPreSortedRowModel: () => e.getGroupedRowModel(),
22042
22050
  getSortedRowModel: () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel())
22043
22051
  })
22044
- }, TP = {
22052
+ }, MP = {
22045
22053
  getInitialState: (e) => ({
22046
22054
  columnVisibility: {},
22047
22055
  ...e
@@ -22118,8 +22126,8 @@ const xo = {
22118
22126
  }
22119
22127
  };
22120
22128
  }
22121
- }, od = [tP, TP, vP, bP, iP, RP, hP, oP, yP, SP, nP];
22122
- function MP(e) {
22129
+ }, od = [nP, MP, yP, SP, aP, TP, mP, iP, bP, wP, rP];
22130
+ function kP(e) {
22123
22131
  var t;
22124
22132
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
22125
22133
  let n = {
@@ -22203,7 +22211,7 @@ function MP(e) {
22203
22211
  getAllColumns: Ge(() => [n._getColumnDefs()], (d) => {
22204
22212
  const f = function(p, g, h) {
22205
22213
  return h === void 0 && (h = 0), p.map((m) => {
22206
- const b = eP(n, m, h, g), y = m;
22214
+ const b = tP(n, m, h, g), y = m;
22207
22215
  return b.columns = y.columns ? f(y.columns, b, h + 1) : [], b;
22208
22216
  });
22209
22217
  };
@@ -22248,7 +22256,7 @@ function MP(e) {
22248
22256
  };
22249
22257
  return Object.assign(n, u), n._features.forEach((d) => Object.assign(n, d.createTable == null ? void 0 : d.createTable(n))), n;
22250
22258
  }
22251
- function kP(e, t, n, r) {
22259
+ function DP(e, t, n, r) {
22252
22260
  const o = () => {
22253
22261
  var a;
22254
22262
  return (a = i.getValue()) != null ? a : e.options.renderFallbackValue;
@@ -22274,7 +22282,7 @@ function kP(e, t, n, r) {
22274
22282
  Object.assign(i, a.createCell == null ? void 0 : a.createCell(i, n, t, e));
22275
22283
  }, {}), i;
22276
22284
  }
22277
- const DP = (e, t, n, r, o, i) => {
22285
+ const PP = (e, t, n, r, o, i) => {
22278
22286
  let a = {
22279
22287
  id: t,
22280
22288
  index: r,
@@ -22293,8 +22301,8 @@ const DP = (e, t, n, r, o, i) => {
22293
22301
  return (c = a.getValue(s)) != null ? c : e.options.renderFallbackValue;
22294
22302
  },
22295
22303
  subRows: i != null ? i : [],
22296
- getLeafRows: () => ZD(a.subRows, (s) => s.subRows),
22297
- getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) => kP(e, a, c, c.id)), {
22304
+ getLeafRows: () => eP(a.subRows, (s) => s.subRows),
22305
+ getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) => DP(e, a, c, c.id)), {
22298
22306
  key: process.env.NODE_ENV === "development" && "row.getAllCells",
22299
22307
  debug: () => {
22300
22308
  var s;
@@ -22315,7 +22323,7 @@ const DP = (e, t, n, r, o, i) => {
22315
22323
  }
22316
22324
  return a;
22317
22325
  };
22318
- function PP() {
22326
+ function IP() {
22319
22327
  return {
22320
22328
  accessor: (e, t) => typeof e == "function" ? {
22321
22329
  ...t,
@@ -22328,7 +22336,7 @@ function PP() {
22328
22336
  group: (e) => e
22329
22337
  };
22330
22338
  }
22331
- function IP() {
22339
+ function $P() {
22332
22340
  return (e) => Ge(() => [e.options.data], (t) => {
22333
22341
  const n = {
22334
22342
  rows: [],
@@ -22338,7 +22346,7 @@ function IP() {
22338
22346
  i === void 0 && (i = 0);
22339
22347
  const s = [];
22340
22348
  for (let u = 0; u < o.length; u++) {
22341
- const d = DP(e, e._getRowId(o[u], u, a), o[u], u, i);
22349
+ const d = PP(e, e._getRowId(o[u], u, a), o[u], u, i);
22342
22350
  if (n.flatRows.push(d), n.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
22343
22351
  var c;
22344
22352
  d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, i + 1, d));
@@ -22358,7 +22366,7 @@ function IP() {
22358
22366
  }
22359
22367
  });
22360
22368
  }
22361
- function $P() {
22369
+ function AP() {
22362
22370
  return (e) => Ge(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
22363
22371
  if (!n.rows.length || !(t != null && t.length))
22364
22372
  return n;
@@ -22408,23 +22416,23 @@ function $P() {
22408
22416
  });
22409
22417
  }
22410
22418
  function sh(e, t) {
22411
- return e ? AP(e) ? /* @__PURE__ */ l(e, {
22419
+ return e ? NP(e) ? /* @__PURE__ */ l(e, {
22412
22420
  ...t
22413
22421
  }) : e : null;
22414
22422
  }
22415
- function AP(e) {
22416
- return NP(e) || typeof e == "function" || LP(e);
22417
- }
22418
22423
  function NP(e) {
22424
+ return LP(e) || typeof e == "function" || VP(e);
22425
+ }
22426
+ function LP(e) {
22419
22427
  return typeof e == "function" && (() => {
22420
22428
  const t = Object.getPrototypeOf(e);
22421
22429
  return t.prototype && t.prototype.isReactComponent;
22422
22430
  })();
22423
22431
  }
22424
- function LP(e) {
22432
+ function VP(e) {
22425
22433
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
22426
22434
  }
22427
- function VP(e) {
22435
+ function FP(e) {
22428
22436
  const t = {
22429
22437
  state: {},
22430
22438
  onStateChange: () => {
@@ -22432,7 +22440,7 @@ function VP(e) {
22432
22440
  renderFallbackValue: null,
22433
22441
  ...e
22434
22442
  }, [n] = x.useState(() => ({
22435
- current: MP(t)
22443
+ current: kP(t)
22436
22444
  })), [r, o] = x.useState(() => n.current.initialState);
22437
22445
  return n.current.setOptions((i) => ({
22438
22446
  ...i,
@@ -22449,7 +22457,7 @@ function VP(e) {
22449
22457
  function id(e, t, n) {
22450
22458
  return Math.min(Math.max(e, t), n);
22451
22459
  }
22452
- class FP {
22460
+ class zP {
22453
22461
  constructor(t) {
22454
22462
  this.steps = t;
22455
22463
  const n = [], r = /* @__PURE__ */ new Set();
@@ -22471,7 +22479,7 @@ class FP {
22471
22479
  return id(this.getStepFunctionForValue(t)(t), 0, 100);
22472
22480
  }
22473
22481
  }
22474
- const zP = ({
22482
+ const jP = ({
22475
22483
  header: e,
22476
22484
  cx: t
22477
22485
  }) => /* @__PURE__ */ v(z, {
@@ -22479,10 +22487,10 @@ const zP = ({
22479
22487
  "table-head-cell--sortable": e.column.getCanSort()
22480
22488
  }),
22481
22489
  onClick: e.column.getToggleSortingHandler(),
22482
- children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(jP, {
22490
+ children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(HP, {
22483
22491
  direction: e.column.getIsSorted()
22484
22492
  })]
22485
- }), jP = ({
22493
+ }), HP = ({
22486
22494
  direction: e
22487
22495
  }) => {
22488
22496
  switch (e) {
@@ -22500,8 +22508,8 @@ const zP = ({
22500
22508
  }, Fs = {
22501
22509
  id: "builtin:table:click-cell-content",
22502
22510
  displayName: "Click Cell Content",
22503
- nameRender: WP,
22504
- configRender: BP,
22511
+ nameRender: qP,
22512
+ configRender: GP,
22505
22513
  payload: [{
22506
22514
  name: "row_index",
22507
22515
  description: "Index of the row that the cell belongs to",
@@ -22515,7 +22523,7 @@ const zP = ({
22515
22523
  description: "Data of the row that the cell belongs to",
22516
22524
  valueType: "object"
22517
22525
  }]
22518
- }, HP = {
22526
+ }, KP = {
22519
22527
  column: ""
22520
22528
  };
22521
22529
  function ch(e) {
@@ -22527,19 +22535,19 @@ function ch(e) {
22527
22535
  value: r.toString()
22528
22536
  })) : [];
22529
22537
  }
22530
- function KP(e) {
22538
+ function BP(e) {
22531
22539
  return Tl(e) ? [] : Object.keys(e[0]).map((t) => ({
22532
22540
  label: t,
22533
22541
  value: t
22534
22542
  }));
22535
22543
  }
22536
- function BP(e) {
22537
- const t = ch(e.instance), n = KP(e.sampleData), r = t.length > 0 ? t : n, {
22544
+ function GP(e) {
22545
+ const t = ch(e.instance), n = BP(e.sampleData), r = t.length > 0 ? t : n, {
22538
22546
  value: o,
22539
22547
  set: i
22540
22548
  } = rt(e.trigger.triggerData, "config"), {
22541
22549
  column: a
22542
- } = jt({}, o, HP), s = (c) => {
22550
+ } = jt({}, o, KP), s = (c) => {
22543
22551
  isNaN(+c) ? i({
22544
22552
  column: c
22545
22553
  }) : i({
@@ -22554,18 +22562,18 @@ function BP(e) {
22554
22562
  onChange: s
22555
22563
  });
22556
22564
  }
22557
- function GP(e, t) {
22565
+ function WP(e, t) {
22558
22566
  return e ? cm(e.column) ? `Click cell of ${t[e.column].label}` : `Click cell of ${e.column}` : "Click cell content (click to config)";
22559
22567
  }
22560
- function WP(e) {
22568
+ function qP(e) {
22561
22569
  const t = ch(e.instance), {
22562
22570
  value: n
22563
22571
  } = rt(e.trigger.triggerData, "config");
22564
22572
  return /* @__PURE__ */ l(z, {
22565
- children: GP(n, t)
22573
+ children: WP(n, t)
22566
22574
  });
22567
22575
  }
22568
- const qP = qo((e) => ({
22576
+ const UP = qo((e) => ({
22569
22577
  root: {
22570
22578
  overflow: "auto",
22571
22579
  "& .table-head-cell": {
@@ -22590,7 +22598,7 @@ const qP = qo((e) => ({
22590
22598
  position: "sticky",
22591
22599
  top: 0
22592
22600
  }
22593
- })), UP = qo((e, t) => ({
22601
+ })), YP = qo((e, t) => ({
22594
22602
  content: {
22595
22603
  display: "flex",
22596
22604
  alignItems: "center",
@@ -22603,24 +22611,24 @@ const qP = qo((e) => ({
22603
22611
  }
22604
22612
  }
22605
22613
  }));
22606
- function YP(e) {
22614
+ function XP(e) {
22607
22615
  return e ? No(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
22608
22616
  }
22609
- function XP(e) {
22617
+ function QP(e) {
22610
22618
  const t = e.tableCellContext.bgColor;
22611
22619
  return {
22612
22620
  backgroundColor: t,
22613
- color: YP(t)
22621
+ color: XP(t)
22614
22622
  };
22615
22623
  }
22616
22624
  function ua(e) {
22617
- const t = e.tableCellContext.isClickable(), n = UP({
22625
+ const t = e.tableCellContext.isClickable(), n = YP({
22618
22626
  clickable: t
22619
22627
  });
22620
22628
  return /* @__PURE__ */ l("div", {
22621
22629
  className: n.classes.content,
22622
22630
  style: {
22623
- ...XP(e)
22631
+ ...QP(e)
22624
22632
  },
22625
22633
  children: /* @__PURE__ */ l(z, {
22626
22634
  className: "table-cell-text",
@@ -22631,19 +22639,19 @@ function ua(e) {
22631
22639
  })
22632
22640
  });
22633
22641
  }
22634
- function QP(e) {
22642
+ function JP(e) {
22635
22643
  return /* @__PURE__ */ l(ua, {
22636
22644
  ...e,
22637
22645
  children: e.value
22638
22646
  });
22639
22647
  }
22640
- function JP(e) {
22648
+ function ZP(e) {
22641
22649
  return /* @__PURE__ */ l(ua, {
22642
22650
  ...e,
22643
22651
  children: e.value
22644
22652
  });
22645
22653
  }
22646
- function ZP(e) {
22654
+ function eI(e) {
22647
22655
  const t = Zt(e.value).format({
22648
22656
  thousandSeparated: !0
22649
22657
  });
@@ -22652,7 +22660,7 @@ function ZP(e) {
22652
22660
  children: t
22653
22661
  });
22654
22662
  }
22655
- function eI(e) {
22663
+ function tI(e) {
22656
22664
  const t = Zt(e.value).format({
22657
22665
  output: "percent",
22658
22666
  mantissa: 3
@@ -22662,43 +22670,43 @@ function eI(e) {
22662
22670
  children: t
22663
22671
  });
22664
22672
  }
22665
- function tI(e) {
22673
+ function nI(e) {
22666
22674
  const t = e.value, n = e.func_content;
22667
22675
  return n ? new Function(`return ${n}`)()({
22668
22676
  value: t
22669
22677
  }) : t;
22670
22678
  }
22671
- function nI(e) {
22679
+ function rI(e) {
22672
22680
  switch (e.type) {
22673
22681
  case Pn.string:
22674
- return /* @__PURE__ */ l(QP, {
22682
+ return /* @__PURE__ */ l(JP, {
22675
22683
  ...e
22676
22684
  });
22677
22685
  case Pn.eloc:
22678
- return /* @__PURE__ */ l(JP, {
22686
+ return /* @__PURE__ */ l(ZP, {
22679
22687
  ...e
22680
22688
  });
22681
22689
  case Pn.number:
22682
- return /* @__PURE__ */ l(ZP, {
22690
+ return /* @__PURE__ */ l(eI, {
22683
22691
  ...e
22684
22692
  });
22685
22693
  case Pn.percentage:
22686
- return /* @__PURE__ */ l(eI, {
22694
+ return /* @__PURE__ */ l(tI, {
22687
22695
  ...e
22688
22696
  });
22689
22697
  case Pn.custom:
22690
- return /* @__PURE__ */ l(tI, {
22698
+ return /* @__PURE__ */ l(nI, {
22691
22699
  ...e
22692
22700
  });
22693
22701
  }
22694
22702
  }
22695
- const rI = (e) => {
22703
+ const oI = (e) => {
22696
22704
  const t = mo(e), n = ho(t.triggerManager, Fs.id), {
22697
22705
  colorManager: r
22698
22706
  } = Qn(Fn);
22699
- return gr((o) => new iI(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
22707
+ return gr((o) => new aI(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
22700
22708
  };
22701
- function oI({
22709
+ function iI({
22702
22710
  context: e,
22703
22711
  instance: t
22704
22712
  }) {
@@ -22715,18 +22723,18 @@ function oI({
22715
22723
  } = i, {
22716
22724
  classes: u,
22717
22725
  cx: d
22718
- } = qP(), f = j.useMemo(() => a ? Object.keys(n[0]).map((O) => ({
22726
+ } = UP(), f = j.useMemo(() => a ? Object.keys(n[0]).map((O) => ({
22719
22727
  id: O,
22720
22728
  label: O,
22721
22729
  value_field: O,
22722
22730
  value_type: Pn.string
22723
- })) : s, [a, s, n]), p = rI({
22731
+ })) : s, [a, s, n]), p = oI({
22724
22732
  getColIndex: gr((O) => f.indexOf(O.column.columnDef.meta), [f]),
22725
22733
  vizManager: e.vizManager,
22726
22734
  instance: t
22727
22735
  }), g = de(() => {
22728
- const O = PP(), P = f.map(($) => O.accessor($.value_field, {
22729
- cell: (F) => /* @__PURE__ */ l(nI, {
22736
+ const O = IP(), P = f.map(($) => O.accessor($.value_field, {
22737
+ cell: (F) => /* @__PURE__ */ l(rI, {
22730
22738
  tableCellContext: p(F.cell),
22731
22739
  value: F.getValue(),
22732
22740
  type: $.value_type,
@@ -22742,15 +22750,15 @@ function oI({
22742
22750
  header: "#",
22743
22751
  size: 10 * (n.length.toString().length + 1)
22744
22752
  }), ...P];
22745
- }, [f, p]), [h, m] = Xe([]), b = VP({
22753
+ }, [f, p]), [h, m] = Xe([]), b = FP({
22746
22754
  data: n,
22747
22755
  state: {
22748
22756
  sorting: h
22749
22757
  },
22750
22758
  onSortingChange: m,
22751
22759
  columns: g,
22752
- getCoreRowModel: IP(),
22753
- getSortedRowModel: $P()
22760
+ getCoreRowModel: $P(),
22761
+ getSortedRowModel: AP()
22754
22762
  }), {
22755
22763
  rows: y
22756
22764
  } = b.getRowModel(), w = j.useRef(null), S = qm({
@@ -22784,7 +22792,7 @@ function oI({
22784
22792
  style: {
22785
22793
  width: P.getSize()
22786
22794
  },
22787
- children: /* @__PURE__ */ l(zP, {
22795
+ children: /* @__PURE__ */ l(jP, {
22788
22796
  header: P,
22789
22797
  cx: d
22790
22798
  })
@@ -22815,7 +22823,7 @@ function oI({
22815
22823
  })
22816
22824
  });
22817
22825
  }
22818
- class iI {
22826
+ class aI {
22819
22827
  constructor(t, n, r, o, i) {
22820
22828
  this.getColIndex = t, this.cell = n, this.triggers = r, this.interactionManager = o, this.colorManager = i;
22821
22829
  }
@@ -22852,7 +22860,7 @@ class iI {
22852
22860
  return t;
22853
22861
  const n = +this.cell.getValue();
22854
22862
  if (isFinite(n)) {
22855
- const r = this.colorManager.decodeInterpolation(t.interpolation), i = new FP(t.steps).mapValue(n);
22863
+ const r = this.colorManager.decodeInterpolation(t.interpolation), i = new zP(t.steps).mapValue(n);
22856
22864
  return r == null ? void 0 : r.getColor(i);
22857
22865
  }
22858
22866
  }
@@ -22880,14 +22888,14 @@ const uh = qo(() => ({
22880
22888
  }
22881
22889
  }
22882
22890
  }
22883
- })), aI = [{
22891
+ })), lI = [{
22884
22892
  from: 0,
22885
22893
  to: 0
22886
22894
  }, {
22887
22895
  from: 100,
22888
22896
  to: 100
22889
22897
  }];
22890
- class lI {
22898
+ class sI {
22891
22899
  constructor() {
22892
22900
  he(this, "steps", /* @__PURE__ */ new Map());
22893
22901
  he(this, "interpolation");
@@ -22912,7 +22920,7 @@ class lI {
22912
22920
  })).sort((n, r) => n.to - r.to || n.from - r.from));
22913
22921
  }
22914
22922
  fromProps(t) {
22915
- t.steps.length < 2 ? this.setSteps(aI) : this.setSteps(t.steps), this.interpolation = t.interpolation, this.onChange = t.onChange;
22923
+ t.steps.length < 2 ? this.setSteps(lI) : this.setSteps(t.steps), this.interpolation = t.interpolation, this.onChange = t.onChange;
22916
22924
  }
22917
22925
  changeStep(t, n) {
22918
22926
  t == null ? this.steps.delete(n) : this.steps.set(n, t);
@@ -22921,7 +22929,7 @@ class lI {
22921
22929
  return this.steps.get(t);
22922
22930
  }
22923
22931
  }
22924
- function sI(e) {
22932
+ function cI(e) {
22925
22933
  const {
22926
22934
  onChange: t,
22927
22935
  color: n,
@@ -23001,7 +23009,7 @@ function sI(e) {
23001
23009
  })]
23002
23010
  });
23003
23011
  }
23004
- const cI = Q(({
23012
+ const uI = Q(({
23005
23013
  model: e
23006
23014
  }) => {
23007
23015
  const {
@@ -23009,21 +23017,21 @@ const cI = Q(({
23009
23017
  } = uh(), n = um(0, 13, 1).map((r) => 100 / 12 * r).map((r) => [e.interpolation.getColor(r), r]);
23010
23018
  return /* @__PURE__ */ l("div", {
23011
23019
  className: t.palette,
23012
- children: n.map(([r, o], i) => /* @__PURE__ */ l(sI, {
23020
+ children: n.map(([r, o], i) => /* @__PURE__ */ l(cI, {
23013
23021
  index: i,
23014
23022
  color: r,
23015
23023
  value: e.getStepFromValue(o),
23016
23024
  onChange: (a) => e.changeStep(a, o)
23017
23025
  }, r))
23018
23026
  });
23019
- }), uI = Q(function(t) {
23020
- const n = On(() => new lI(), []);
23027
+ }), dI = Q(function(t) {
23028
+ const n = On(() => new sI(), []);
23021
23029
  return Me(() => {
23022
23030
  n.fromProps(t);
23023
- }), n.interpolation == null ? null : /* @__PURE__ */ l(cI, {
23031
+ }), n.interpolation == null ? null : /* @__PURE__ */ l(uI, {
23024
23032
  model: n
23025
23033
  });
23026
- }), dI = (e) => {
23034
+ }), fI = (e) => {
23027
23035
  const {
23028
23036
  value: t,
23029
23037
  onChange: n,
@@ -23071,7 +23079,7 @@ const cI = Q(({
23071
23079
  value: i.interpolation,
23072
23080
  data: f,
23073
23081
  onChange: p
23074
- }), /* @__PURE__ */ l(uI, {
23082
+ }), /* @__PURE__ */ l(dI, {
23075
23083
  steps: i.steps,
23076
23084
  interpolation: s,
23077
23085
  onChange: h
@@ -23089,7 +23097,7 @@ const cI = Q(({
23089
23097
  })
23090
23098
  })]
23091
23099
  });
23092
- }, fI = ["static", "interpolation", "none"], pI = [{
23100
+ }, pI = ["static", "interpolation", "none"], gI = [{
23093
23101
  from: 0,
23094
23102
  to: 0
23095
23103
  }, {
@@ -23099,20 +23107,20 @@ const cI = Q(({
23099
23107
  function dh(e) {
23100
23108
  return e ? xd(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
23101
23109
  }
23102
- function gI(e, t) {
23110
+ function hI(e, t) {
23103
23111
  var n;
23104
23112
  return dh(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
23105
23113
  }
23106
- function hI(e, t) {
23114
+ function mI(e, t) {
23107
23115
  return yd(t) ? t : {
23108
- steps: pI,
23116
+ steps: gI,
23109
23117
  interpolation: e.encodeColor(e.getColorInterpolations()[0])
23110
23118
  };
23111
23119
  }
23112
- const mI = (e) => {
23120
+ const vI = (e) => {
23113
23121
  const {
23114
23122
  colorManager: t
23115
- } = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(gI(t, e.value)), a = Xs(o), [s, c] = Xe(hI(t, e.value)), u = Xs(s);
23123
+ } = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(hI(t, e.value)), a = Xs(o), [s, c] = Xe(mI(t, e.value)), u = Xs(s);
23116
23124
  return /* @__PURE__ */ v(B, {
23117
23125
  align: "stretch",
23118
23126
  children: [/* @__PURE__ */ l(Ee, {
@@ -23122,14 +23130,14 @@ const mI = (e) => {
23122
23130
  var h, m, b;
23123
23131
  r(g || "none"), g === "static" ? (h = e.onChange) == null || h.call(e, a.current) : g === "none" || !g ? (m = e.onChange) == null || m.call(e, "none") : (b = e.onChange) == null || b.call(e, u.current);
23124
23132
  },
23125
- data: fI
23133
+ data: pI
23126
23134
  }), n === "static" && /* @__PURE__ */ l(Xn, {
23127
23135
  value: o,
23128
23136
  onChange: (g) => {
23129
23137
  var h;
23130
23138
  i(g), (h = e.onChange) == null || h.call(e, g);
23131
23139
  }
23132
- }), n === "interpolation" && /* @__PURE__ */ l(dI, {
23140
+ }), n === "interpolation" && /* @__PURE__ */ l(fI, {
23133
23141
  colorManager: t,
23134
23142
  value: s,
23135
23143
  onChange: (g) => {
@@ -23138,11 +23146,11 @@ const mI = (e) => {
23138
23146
  }
23139
23147
  })]
23140
23148
  });
23141
- }, vI = Object.values(Pn).map((e) => ({
23149
+ }, yI = Object.values(Pn).map((e) => ({
23142
23150
  label: e,
23143
23151
  value: e
23144
23152
  }));
23145
- function yI({
23153
+ function bI({
23146
23154
  label: e,
23147
23155
  value: t,
23148
23156
  onChange: n,
@@ -23150,13 +23158,13 @@ function yI({
23150
23158
  }) {
23151
23159
  return /* @__PURE__ */ l(Ee, {
23152
23160
  label: e,
23153
- data: vI,
23161
+ data: yI,
23154
23162
  value: t,
23155
23163
  onChange: n,
23156
23164
  sx: r
23157
23165
  });
23158
23166
  }
23159
- const bI = Nn(({
23167
+ const SI = Nn(({
23160
23168
  value: e,
23161
23169
  onChange: t
23162
23170
  }, n) => {
@@ -23229,7 +23237,7 @@ const bI = Nn(({
23229
23237
  })
23230
23238
  })]
23231
23239
  });
23232
- }), SI = ({
23240
+ }), wI = ({
23233
23241
  control: e,
23234
23242
  index: t,
23235
23243
  watch: n,
@@ -23278,7 +23286,7 @@ const bI = Nn(({
23278
23286
  control: e,
23279
23287
  render: ({
23280
23288
  field: s
23281
- }) => /* @__PURE__ */ l(yI, {
23289
+ }) => /* @__PURE__ */ l(bI, {
23282
23290
  label: "Value Type",
23283
23291
  sx: {
23284
23292
  flex: 1
@@ -23292,7 +23300,7 @@ const bI = Nn(({
23292
23300
  field: s
23293
23301
  }) => {
23294
23302
  var c;
23295
- return /* @__PURE__ */ l(bI, {
23303
+ return /* @__PURE__ */ l(SI, {
23296
23304
  value: (c = s.value) != null ? c : Jg,
23297
23305
  onChange: (u) => s.onChange(u != null ? u : "")
23298
23306
  });
@@ -23303,7 +23311,7 @@ const bI = Nn(({
23303
23311
  control: e,
23304
23312
  render: ({
23305
23313
  field: s
23306
- }) => /* @__PURE__ */ l(mI, {
23314
+ }) => /* @__PURE__ */ l(vI, {
23307
23315
  ...s
23308
23316
  })
23309
23317
  }), /* @__PURE__ */ l(Ae, {
@@ -23320,7 +23328,7 @@ const bI = Nn(({
23320
23328
  children: "Delete this column"
23321
23329
  })]
23322
23330
  });
23323
- }, wI = ({
23331
+ }, CI = ({
23324
23332
  control: e,
23325
23333
  watch: t,
23326
23334
  data: n
@@ -23392,7 +23400,7 @@ const bI = Nn(({
23392
23400
  })]
23393
23401
  }), r.map((u, d) => /* @__PURE__ */ l(I.Panel, {
23394
23402
  value: d.toString(),
23395
- children: /* @__PURE__ */ l(SI, {
23403
+ children: /* @__PURE__ */ l(wI, {
23396
23404
  control: e,
23397
23405
  watch: t,
23398
23406
  index: d,
@@ -23405,7 +23413,7 @@ const bI = Nn(({
23405
23413
  })]
23406
23414
  });
23407
23415
  };
23408
- function CI({
23416
+ function xI({
23409
23417
  control: e,
23410
23418
  watch: t,
23411
23419
  data: n
@@ -23501,7 +23509,7 @@ function CI({
23501
23509
  })]
23502
23510
  });
23503
23511
  }
23504
- function xI({
23512
+ function _I({
23505
23513
  columns: e,
23506
23514
  ...t
23507
23515
  }) {
@@ -23516,13 +23524,13 @@ function xI({
23516
23524
  }))
23517
23525
  };
23518
23526
  }
23519
- function _I({
23527
+ function EI({
23520
23528
  context: e
23521
23529
  }) {
23522
23530
  const {
23523
23531
  value: t,
23524
23532
  set: n
23525
- } = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() => xI(o), [o]);
23533
+ } = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() => _I(o), [o]);
23526
23534
  Me(() => {
23527
23535
  !Dt(o, i) && (console.log("config malformed, resetting to defaults", o, i), n(i));
23528
23536
  }, [o, i]);
@@ -23605,14 +23613,14 @@ function _I({
23605
23613
  })
23606
23614
  }), /* @__PURE__ */ l(I.Panel, {
23607
23615
  value: "Style",
23608
- children: /* @__PURE__ */ l(CI, {
23616
+ children: /* @__PURE__ */ l(xI, {
23609
23617
  control: a,
23610
23618
  watch: c,
23611
23619
  data: r
23612
23620
  })
23613
23621
  }), /* @__PURE__ */ l(I.Panel, {
23614
23622
  value: "Columns",
23615
- children: /* @__PURE__ */ l(wI, {
23623
+ children: /* @__PURE__ */ l(CI, {
23616
23624
  control: a,
23617
23625
  watch: c,
23618
23626
  data: r
@@ -23633,7 +23641,7 @@ function _I({
23633
23641
  })]
23634
23642
  });
23635
23643
  }
23636
- class EI extends tn {
23644
+ class OI extends tn {
23637
23645
  constructor() {
23638
23646
  super(...arguments);
23639
23647
  he(this, "VERSION", 2);
@@ -23665,12 +23673,12 @@ const bl = {
23665
23673
  };
23666
23674
  },
23667
23675
  displayName: "Table",
23668
- migrator: new EI(),
23676
+ migrator: new OI(),
23669
23677
  name: "table",
23670
- viewRender: oI,
23671
- configRender: _I,
23678
+ viewRender: iI,
23679
+ configRender: EI,
23672
23680
  triggers: [Fs]
23673
- }, OI = () => /* @__PURE__ */ v("svg", {
23681
+ }, RI = () => /* @__PURE__ */ v("svg", {
23674
23682
  width: "64",
23675
23683
  height: "64",
23676
23684
  viewBox: "0 0 64 64",
@@ -23693,7 +23701,7 @@ function ad(e, t) {
23693
23701
  if (n)
23694
23702
  throw new Error(n);
23695
23703
  }
23696
- async function RI(e, t, n, r = {}) {
23704
+ async function TI(e, t, n, r = {}) {
23697
23705
  const o = {
23698
23706
  "X-Requested-With": "XMLHttpRequest",
23699
23707
  "Content-Type": r.string ? "application/x-www-form-urlencoded" : "application/json",
@@ -23707,7 +23715,7 @@ async function RI(e, t, n, r = {}) {
23707
23715
  };
23708
23716
  return i.data = r.string ? JSON.stringify(n) : n, Ml(i).then((a) => a.data).catch((a) => Promise.reject(a));
23709
23717
  }
23710
- const TI = ({ conf: e, data: t }) => async () => {
23718
+ const MI = ({ conf: e, data: t }) => async () => {
23711
23719
  const { expertSystemURL: n, path: r, goal: o, question: i } = e;
23712
23720
  if (!r || !o || !i)
23713
23721
  return;
@@ -23718,7 +23726,7 @@ const TI = ({ conf: e, data: t }) => async () => {
23718
23726
  };
23719
23727
  try {
23720
23728
  const s = n.startsWith("http") ? n : window.location.origin;
23721
- return await RI(s, `/expert/v3/devtable/${r}`, a, {});
23729
+ return await TI(s, `/expert/v3/devtable/${r}`, a, {});
23722
23730
  } catch (s) {
23723
23731
  throw ad(s, "response.data.detail"), ad(s, "response.data.error"), console.error(s), s;
23724
23732
  }
@@ -23749,7 +23757,7 @@ const TI = ({ conf: e, data: t }) => async () => {
23749
23757
  color: "#3D3E45"
23750
23758
  }
23751
23759
  })
23752
- }), MI = ({
23760
+ }), kI = ({
23753
23761
  error: e,
23754
23762
  width: t,
23755
23763
  height: n
@@ -23765,13 +23773,13 @@ const TI = ({ conf: e, data: t }) => async () => {
23765
23773
  children: /* @__PURE__ */ v(B, {
23766
23774
  align: "center",
23767
23775
  spacing: 20,
23768
- children: [/* @__PURE__ */ l(OI, {}), /* @__PURE__ */ l(ld, {
23776
+ children: [/* @__PURE__ */ l(RI, {}), /* @__PURE__ */ l(ld, {
23769
23777
  message: r
23770
23778
  })]
23771
23779
  })
23772
23780
  });
23773
23781
  };
23774
- function kI({
23782
+ function DI({
23775
23783
  context: e
23776
23784
  }) {
23777
23785
  var u;
@@ -23784,7 +23792,7 @@ function kI({
23784
23792
  data: a,
23785
23793
  error: s,
23786
23794
  loading: c
23787
- } = El(TI({
23795
+ } = El(MI({
23788
23796
  conf: n,
23789
23797
  data: i
23790
23798
  }), {
@@ -23798,7 +23806,7 @@ function kI({
23798
23806
  children: /* @__PURE__ */ l(Uo, {
23799
23807
  visible: !0
23800
23808
  })
23801
- }) : s ? /* @__PURE__ */ l(MI, {
23809
+ }) : s ? /* @__PURE__ */ l(kI, {
23802
23810
  error: s,
23803
23811
  width: r,
23804
23812
  height: o
@@ -23816,7 +23824,7 @@ function kI({
23816
23824
  }, f))
23817
23825
  });
23818
23826
  }
23819
- function DI({
23827
+ function PI({
23820
23828
  context: e
23821
23829
  }) {
23822
23830
  const {
@@ -23903,7 +23911,7 @@ function DI({
23903
23911
  })
23904
23912
  });
23905
23913
  }
23906
- class PI extends tn {
23914
+ class II extends tn {
23907
23915
  constructor() {
23908
23916
  super(...arguments);
23909
23917
  he(this, "VERSION", 1);
@@ -23915,22 +23923,22 @@ class PI extends tn {
23915
23923
  }));
23916
23924
  }
23917
23925
  }
23918
- const II = {
23926
+ const $I = {
23919
23927
  displayName: "Merico GQM",
23920
- migrator: new PI(),
23928
+ migrator: new II(),
23921
23929
  name: "mericoGQM",
23922
- viewRender: kI,
23923
- configRender: DI,
23930
+ viewRender: DI,
23931
+ configRender: PI,
23924
23932
  createConfig: () => zs
23925
23933
  };
23926
- function $I(e) {
23934
+ function AI(e) {
23927
23935
  const t = e.y_axes.some((n) => !!n.name);
23928
23936
  return {
23929
23937
  bottom: e.x_axis.name ? 40 : 25,
23930
23938
  top: t ? 30 : 10
23931
23939
  };
23932
23940
  }
23933
- function AI({ type: e, ...t }, n, r, o) {
23941
+ function NI({ type: e, ...t }, n, r, o) {
23934
23942
  if (!e)
23935
23943
  return 10;
23936
23944
  if (e === "static") {
@@ -23951,7 +23959,7 @@ function AI({ type: e, ...t }, n, r, o) {
23951
23959
  }
23952
23960
  };
23953
23961
  }
23954
- function NI(e, t, n, r) {
23962
+ function LI(e, t, n, r) {
23955
23963
  return e.map((o) => {
23956
23964
  const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
23957
23965
  return {
@@ -23977,7 +23985,7 @@ function NI(e, t, n, r) {
23977
23985
  };
23978
23986
  });
23979
23987
  }
23980
- function LI(e, t) {
23988
+ function VI(e, t) {
23981
23989
  return e.map((n) => ({
23982
23990
  name: "",
23983
23991
  type: "line",
@@ -24000,7 +24008,7 @@ function LI(e, t) {
24000
24008
  }
24001
24009
  }));
24002
24010
  }
24003
- function VI({ x_axis: e, scatter: t }, n, r, o) {
24011
+ function FI({ x_axis: e, scatter: t }, n, r, o) {
24004
24012
  return {
24005
24013
  label: {
24006
24014
  show: !!t.label_position,
@@ -24013,12 +24021,12 @@ function VI({ x_axis: e, scatter: t }, n, r, o) {
24013
24021
  yAxisIndex: 0,
24014
24022
  datasetIndex: 0,
24015
24023
  color: t.color,
24016
- symbolSize: AI(t.symbolSize, n, e.data_key, r),
24024
+ symbolSize: NI(t.symbolSize, n, e.data_key, r),
24017
24025
  encode: { x: e.data_key, y: t.y_data_key }
24018
24026
  };
24019
24027
  }
24020
- function FI(e, t, n, r, o, i, a) {
24021
- return [VI(e, r, a)].concat(NI(e.reference_lines, i, a, r)).concat(LI(e.reference_areas, a));
24028
+ function zI(e, t, n, r, o, i, a) {
24029
+ return [FI(e, r, a)].concat(LI(e.reference_lines, i, a, r)).concat(VI(e.reference_areas, a));
24022
24030
  }
24023
24031
  function ph({ enabled: e, func_content: t }) {
24024
24032
  return (n, r) => {
@@ -24031,14 +24039,14 @@ function ph({ enabled: e, func_content: t }) {
24031
24039
  }
24032
24040
  };
24033
24041
  }
24034
- function zI(e, t) {
24042
+ function jI(e, t) {
24035
24043
  const n = e.find((a) => a.axisDim === "x" && a.axisId === "main-x-axis");
24036
24044
  if (!n)
24037
24045
  return "";
24038
24046
  const { name: r, axisValue: o, axisIndex: i } = n;
24039
24047
  return t.x_axis.axisLabel.formatter.enabled ? ph(t.x_axis.axisLabel.formatter)(o, i) : o;
24040
24048
  }
24041
- const jI = (e) => {
24049
+ const HI = (e) => {
24042
24050
  try {
24043
24051
  return Zt(e).format({
24044
24052
  trimMantissa: !0,
@@ -24048,7 +24056,7 @@ const jI = (e) => {
24048
24056
  return e;
24049
24057
  }
24050
24058
  };
24051
- function HI(e, t) {
24059
+ function KI(e, t) {
24052
24060
  const { scatter: n } = e;
24053
24061
  return {
24054
24062
  confine: !0,
@@ -24057,7 +24065,7 @@ function HI(e, t) {
24057
24065
  const o = (f = t[0]) != null ? f : t.default, i = Array.isArray(r) ? r : [r];
24058
24066
  if (i.length === 0)
24059
24067
  return "";
24060
- const a = zI(i, e), s = i.map(
24068
+ const a = jI(i, e), s = i.map(
24061
24069
  ({ value: p }) => `<th style="text-align: right; padding-right: 1em">${p[n.name_data_key]}</th>`
24062
24070
  );
24063
24071
  s.unshift("<th></th>");
@@ -24074,7 +24082,7 @@ function HI(e, t) {
24074
24082
  </tr>`
24075
24083
  ], u = e.tooltip.metrics.map((p) => `<tr>
24076
24084
  <th style="text-align: right;">${p.name}</th>
24077
- ${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${jI(g[p.data_key])}</td>`).join("")}
24085
+ ${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${HI(g[p.data_key])}</td>`).join("")}
24078
24086
  </tr>`);
24079
24087
  return c.push(...u), `
24080
24088
  <table>
@@ -24085,7 +24093,7 @@ function HI(e, t) {
24085
24093
  }
24086
24094
  };
24087
24095
  }
24088
- function KI(e, t) {
24096
+ function BI(e, t) {
24089
24097
  var o;
24090
24098
  const n = t.every((i) => !Number.isNaN(Number(i))), { axisLabel: r } = e.x_axis;
24091
24099
  return [
@@ -24105,7 +24113,7 @@ function KI(e, t) {
24105
24113
  }
24106
24114
  ];
24107
24115
  }
24108
- function BI(e, t) {
24116
+ function GI(e, t) {
24109
24117
  return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
24110
24118
  var a;
24111
24119
  let i = r.position;
@@ -24131,7 +24139,7 @@ function BI(e, t) {
24131
24139
  };
24132
24140
  });
24133
24141
  }
24134
- function GI() {
24142
+ function WI() {
24135
24143
  return {
24136
24144
  show: !1,
24137
24145
  bottom: 0,
@@ -24139,7 +24147,7 @@ function GI() {
24139
24147
  type: "scroll"
24140
24148
  };
24141
24149
  }
24142
- const WI = {
24150
+ const qI = {
24143
24151
  dataZoom: [
24144
24152
  {
24145
24153
  type: "inside",
@@ -24178,7 +24186,7 @@ const WI = {
24178
24186
  containLabel: !0
24179
24187
  }
24180
24188
  };
24181
- function qI(e, t, n) {
24189
+ function UI(e, t, n) {
24182
24190
  const r = n.reduce((u, d) => {
24183
24191
  const f = ws(d, t);
24184
24192
  return u[d.name] = li(d, f), u;
@@ -24196,26 +24204,26 @@ function qI(e, t, n) {
24196
24204
  {
24197
24205
  default: ({ value: u }) => u
24198
24206
  }
24199
- ), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s = FI(e, i, a, t, o, n, r), c = {
24200
- xAxis: KI(e, i),
24201
- yAxis: BI(e, o),
24207
+ ), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s = zI(e, i, a, t, o, n, r), c = {
24208
+ xAxis: BI(e, i),
24209
+ yAxis: GI(e, o),
24202
24210
  series: s,
24203
24211
  dataset: [
24204
24212
  {
24205
24213
  source: t
24206
24214
  }
24207
24215
  ],
24208
- tooltip: HI(e, o),
24209
- grid: $I(e),
24210
- legend: GI()
24216
+ tooltip: KI(e, o),
24217
+ grid: AI(e),
24218
+ legend: WI()
24211
24219
  };
24212
- return nn({}, c, WI);
24220
+ return nn({}, c, qI);
24213
24221
  }
24214
24222
  const gh = {
24215
24223
  id: "builtin:echarts:click-scatter-chart:series",
24216
24224
  displayName: "Click Scatter",
24217
- nameRender: YI,
24218
- configRender: UI,
24225
+ nameRender: XI,
24226
+ configRender: YI,
24219
24227
  payload: [{
24220
24228
  name: "seriesType",
24221
24229
  description: "'scatter'",
@@ -24242,10 +24250,10 @@ const gh = {
24242
24250
  valueType: "object"
24243
24251
  }]
24244
24252
  };
24245
- function UI(e) {
24253
+ function YI(e) {
24246
24254
  return /* @__PURE__ */ l(Ne, {});
24247
24255
  }
24248
- function YI(e) {
24256
+ function XI(e) {
24249
24257
  return /* @__PURE__ */ l(z, {
24250
24258
  children: "Click scatter"
24251
24259
  });
@@ -24295,7 +24303,7 @@ const hh = {
24295
24303
  };
24296
24304
  $t.use([ei, Il, $l, Al, Lr, Vr, Fr, Jn, Pl, Nd]);
24297
24305
  $t.registerTransform(Nl.regression);
24298
- function XI({
24306
+ function QI({
24299
24307
  conf: e,
24300
24308
  data: t,
24301
24309
  width: n,
@@ -24313,7 +24321,7 @@ function XI({
24313
24321
  rowData: p
24314
24322
  });
24315
24323
  });
24316
- }, u = j.useMemo(() => qI(e, t, i), [e, t]);
24324
+ }, u = j.useMemo(() => UI(e, t, i), [e, t]);
24317
24325
  return !n || !r ? null : /* @__PURE__ */ l(Zn, {
24318
24326
  echarts: $t,
24319
24327
  option: u,
@@ -24326,7 +24334,7 @@ function XI({
24326
24334
  }
24327
24335
  });
24328
24336
  }
24329
- function QI({
24337
+ function JI({
24330
24338
  context: e,
24331
24339
  instance: t
24332
24340
  }) {
@@ -24364,7 +24372,7 @@ function QI({
24364
24372
  size: "xs",
24365
24373
  pl: "sm",
24366
24374
  children: Object.values(g.top).map((m) => m)
24367
- }), /* @__PURE__ */ l(XI, {
24375
+ }), /* @__PURE__ */ l(QI, {
24368
24376
  variables: o,
24369
24377
  width: s,
24370
24378
  height: h,
@@ -24380,14 +24388,14 @@ function QI({
24380
24388
  })]
24381
24389
  });
24382
24390
  }
24383
- const JI = [{
24391
+ const ZI = [{
24384
24392
  label: "Horizontal",
24385
24393
  value: "horizontal"
24386
24394
  }, {
24387
24395
  label: "Vertical",
24388
24396
  value: "vertical"
24389
24397
  }];
24390
- function ZI({
24398
+ function e$({
24391
24399
  control: e,
24392
24400
  index: t,
24393
24401
  remove: n,
@@ -24454,7 +24462,7 @@ function ZI({
24454
24462
  field: a
24455
24463
  }) => /* @__PURE__ */ l(Ee, {
24456
24464
  label: "Orientation",
24457
- data: JI,
24465
+ data: ZI,
24458
24466
  required: !0,
24459
24467
  sx: {
24460
24468
  flex: 1
@@ -24481,7 +24489,7 @@ function ZI({
24481
24489
  })]
24482
24490
  }, t);
24483
24491
  }
24484
- function e$({
24492
+ function t$({
24485
24493
  control: e,
24486
24494
  watch: t,
24487
24495
  variables: n
@@ -24532,7 +24540,7 @@ function e$({
24532
24540
  })]
24533
24541
  }), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
24534
24542
  value: f.toString(),
24535
- children: /* @__PURE__ */ l(ZI, {
24543
+ children: /* @__PURE__ */ l(e$, {
24536
24544
  control: e,
24537
24545
  index: f,
24538
24546
  remove: i,
@@ -24542,7 +24550,7 @@ function e$({
24542
24550
  }, f))]
24543
24551
  });
24544
24552
  }
24545
- const t$ = ({
24553
+ const n$ = ({
24546
24554
  value: e,
24547
24555
  onChange: t
24548
24556
  }) => /* @__PURE__ */ l(Ie, {
@@ -24575,7 +24583,7 @@ const t$ = ({
24575
24583
  ].join(`
24576
24584
  `)
24577
24585
  }
24578
- }, n$ = ({
24586
+ }, r$ = ({
24579
24587
  value: e,
24580
24588
  onChange: t,
24581
24589
  data: n
@@ -24631,7 +24639,7 @@ const t$ = ({
24631
24639
  label: "Dynamic by a custom function",
24632
24640
  labelPosition: "center",
24633
24641
  variant: "dashed"
24634
- }), /* @__PURE__ */ l(t$, {
24642
+ }), /* @__PURE__ */ l(n$, {
24635
24643
  value: a.func_content,
24636
24644
  onChange: d
24637
24645
  }), /* @__PURE__ */ v(k, {
@@ -24658,15 +24666,15 @@ const t$ = ({
24658
24666
  })
24659
24667
  })]
24660
24668
  });
24661
- }, r$ = ({
24669
+ }, o$ = ({
24662
24670
  value: e,
24663
24671
  onChange: t,
24664
24672
  data: n
24665
- }) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(n$, {
24673
+ }) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(r$, {
24666
24674
  value: e,
24667
24675
  onChange: t,
24668
24676
  data: n
24669
- }), o$ = ({
24677
+ }), i$ = ({
24670
24678
  value: e,
24671
24679
  onChange: t
24672
24680
  }) => {
@@ -24688,13 +24696,13 @@ const t$ = ({
24688
24696
  onChange: n
24689
24697
  })
24690
24698
  });
24691
- }, i$ = [{
24699
+ }, a$ = [{
24692
24700
  label: "Static",
24693
24701
  value: "static"
24694
24702
  }, {
24695
24703
  label: "Dynamic",
24696
24704
  value: "dynamic"
24697
- }], a$ = Nn(({
24705
+ }], l$ = Nn(({
24698
24706
  label: e = "Size",
24699
24707
  value: t,
24700
24708
  onChange: n,
@@ -24710,22 +24718,22 @@ const t$ = ({
24710
24718
  children: [/* @__PURE__ */ l(Ee, {
24711
24719
  ref: o,
24712
24720
  label: e,
24713
- data: i$,
24721
+ data: a$,
24714
24722
  value: t.type,
24715
24723
  onChange: i,
24716
24724
  sx: {
24717
24725
  flexGrow: 1
24718
24726
  }
24719
- }), /* @__PURE__ */ l(o$, {
24727
+ }), /* @__PURE__ */ l(i$, {
24720
24728
  value: t,
24721
24729
  onChange: n
24722
- }), /* @__PURE__ */ l(r$, {
24730
+ }), /* @__PURE__ */ l(o$, {
24723
24731
  value: t,
24724
24732
  onChange: n,
24725
24733
  data: r
24726
24734
  })]
24727
24735
  });
24728
- }), l$ = [{
24736
+ }), s$ = [{
24729
24737
  label: "off",
24730
24738
  value: ""
24731
24739
  }, {
@@ -24768,7 +24776,7 @@ const t$ = ({
24768
24776
  label: "insideBottomRight",
24769
24777
  value: "insideBottomRight"
24770
24778
  }];
24771
- function s$({
24779
+ function c$({
24772
24780
  data: e,
24773
24781
  control: t,
24774
24782
  watch: n
@@ -24815,7 +24823,7 @@ function s$({
24815
24823
  control: t,
24816
24824
  render: ({
24817
24825
  field: r
24818
- }) => /* @__PURE__ */ l(a$, {
24826
+ }) => /* @__PURE__ */ l(l$, {
24819
24827
  label: "Size",
24820
24828
  data: e,
24821
24829
  ...r
@@ -24848,14 +24856,14 @@ function s$({
24848
24856
  field: r
24849
24857
  }) => /* @__PURE__ */ l(Ee, {
24850
24858
  label: "Label Position",
24851
- data: l$,
24859
+ data: s$,
24852
24860
  ...r
24853
24861
  })
24854
24862
  })
24855
24863
  })]
24856
24864
  });
24857
24865
  }
24858
- function c$({
24866
+ function u$({
24859
24867
  control: e,
24860
24868
  watch: t
24861
24869
  }) {
@@ -24892,7 +24900,7 @@ function c$({
24892
24900
  })
24893
24901
  });
24894
24902
  }
24895
- const u$ = ({
24903
+ const d$ = ({
24896
24904
  control: e,
24897
24905
  data: t,
24898
24906
  index: n,
@@ -24946,7 +24954,7 @@ const u$ = ({
24946
24954
  },
24947
24955
  children: "Delete this Metric"
24948
24956
  })]
24949
- }), d$ = ({
24957
+ }), f$ = ({
24950
24958
  control: e,
24951
24959
  watch: t,
24952
24960
  data: n
@@ -25015,7 +25023,7 @@ const u$ = ({
25015
25023
  })]
25016
25024
  }), s.map((p, g) => /* @__PURE__ */ l(I.Panel, {
25017
25025
  value: p.id,
25018
- children: /* @__PURE__ */ l(u$, {
25026
+ children: /* @__PURE__ */ l(d$, {
25019
25027
  control: e,
25020
25028
  index: g,
25021
25029
  remove: i,
@@ -25025,18 +25033,18 @@ const u$ = ({
25025
25033
  })]
25026
25034
  });
25027
25035
  };
25028
- function f$({
25036
+ function p$({
25029
25037
  data: e,
25030
25038
  control: t,
25031
25039
  watch: n
25032
25040
  }) {
25033
- return /* @__PURE__ */ l(d$, {
25041
+ return /* @__PURE__ */ l(f$, {
25034
25042
  control: t,
25035
25043
  watch: n,
25036
25044
  data: e
25037
25045
  });
25038
25046
  }
25039
- const p$ = ({
25047
+ const g$ = ({
25040
25048
  disabled: e,
25041
25049
  value: t,
25042
25050
  onChange: n
@@ -25064,7 +25072,7 @@ const p$ = ({
25064
25072
  }
25065
25073
  }
25066
25074
  })]
25067
- }), g$ = ({
25075
+ }), h$ = ({
25068
25076
  value: e,
25069
25077
  onChange: t,
25070
25078
  data: n
@@ -25119,7 +25127,7 @@ const p$ = ({
25119
25127
  label: "Enabled",
25120
25128
  checked: a.enabled,
25121
25129
  onChange: (g) => c(g.currentTarget.checked)
25122
- }), /* @__PURE__ */ l(p$, {
25130
+ }), /* @__PURE__ */ l(g$, {
25123
25131
  value: a.func_content,
25124
25132
  onChange: f,
25125
25133
  disabled: !a.enabled
@@ -25148,7 +25156,7 @@ const p$ = ({
25148
25156
  })]
25149
25157
  });
25150
25158
  };
25151
- function h$({
25159
+ function m$({
25152
25160
  data: e,
25153
25161
  control: t,
25154
25162
  watch: n
@@ -25222,7 +25230,7 @@ function h$({
25222
25230
  control: t,
25223
25231
  render: ({
25224
25232
  field: r
25225
- }) => /* @__PURE__ */ l(g$, {
25233
+ }) => /* @__PURE__ */ l(h$, {
25226
25234
  data: e,
25227
25235
  ...r
25228
25236
  })
@@ -25230,7 +25238,7 @@ function h$({
25230
25238
  })]
25231
25239
  });
25232
25240
  }
25233
- const m$ = [{
25241
+ const v$ = [{
25234
25242
  label: "left",
25235
25243
  value: "left"
25236
25244
  }, {
@@ -25239,14 +25247,14 @@ const m$ = [{
25239
25247
  }, {
25240
25248
  label: "right",
25241
25249
  value: "right"
25242
- }], v$ = [{
25250
+ }], y$ = [{
25243
25251
  label: "left",
25244
25252
  value: "left"
25245
25253
  }, {
25246
25254
  label: "right",
25247
25255
  value: "right"
25248
25256
  }];
25249
- function y$({
25257
+ function b$({
25250
25258
  control: e,
25251
25259
  index: t,
25252
25260
  remove: n
@@ -25287,7 +25295,7 @@ function y$({
25287
25295
  }) => /* @__PURE__ */ l(Ee, {
25288
25296
  label: "Align",
25289
25297
  required: !0,
25290
- data: m$,
25298
+ data: v$,
25291
25299
  sx: {
25292
25300
  flex: 1
25293
25301
  },
@@ -25310,7 +25318,7 @@ function y$({
25310
25318
  }) => /* @__PURE__ */ l(Ee, {
25311
25319
  label: "Position",
25312
25320
  required: !0,
25313
- data: v$,
25321
+ data: y$,
25314
25322
  sx: {
25315
25323
  flex: 1
25316
25324
  },
@@ -25345,7 +25353,7 @@ function y$({
25345
25353
  })]
25346
25354
  });
25347
25355
  }
25348
- function b$({
25356
+ function S$({
25349
25357
  control: e,
25350
25358
  watch: t
25351
25359
  }) {
@@ -25390,7 +25398,7 @@ function b$({
25390
25398
  })]
25391
25399
  }), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
25392
25400
  value: u.toString(),
25393
- children: /* @__PURE__ */ l(y$, {
25401
+ children: /* @__PURE__ */ l(b$, {
25394
25402
  control: e,
25395
25403
  index: u,
25396
25404
  remove: o
@@ -25398,7 +25406,7 @@ function b$({
25398
25406
  }, u))]
25399
25407
  });
25400
25408
  }
25401
- function S$(e) {
25409
+ function w$(e) {
25402
25410
  return e || {
25403
25411
  templates: {
25404
25412
  top: "",
@@ -25406,18 +25414,18 @@ function S$(e) {
25406
25414
  }
25407
25415
  };
25408
25416
  }
25409
- function w$({
25417
+ function C$({
25410
25418
  reference_lines: e = [],
25411
25419
  stats: t,
25412
25420
  ...n
25413
25421
  }) {
25414
25422
  return {
25415
25423
  reference_lines: e,
25416
- stats: S$(t),
25424
+ stats: w$(t),
25417
25425
  ...n
25418
25426
  };
25419
25427
  }
25420
- function C$({
25428
+ function x$({
25421
25429
  context: e
25422
25430
  }) {
25423
25431
  const {
@@ -25425,7 +25433,7 @@ function C$({
25425
25433
  set: n
25426
25434
  } = rt(e.instanceData, "config"), {
25427
25435
  variables: r
25428
- } = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() => w$(i), [i]);
25436
+ } = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() => C$(i), [i]);
25429
25437
  Me(() => {
25430
25438
  !Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
25431
25439
  }, [i, a]);
@@ -25502,41 +25510,41 @@ function C$({
25502
25510
  })]
25503
25511
  }), /* @__PURE__ */ l(I.Panel, {
25504
25512
  value: "X Axis",
25505
- children: /* @__PURE__ */ l(h$, {
25513
+ children: /* @__PURE__ */ l(m$, {
25506
25514
  control: s,
25507
25515
  watch: u,
25508
25516
  data: o
25509
25517
  })
25510
25518
  }), /* @__PURE__ */ l(I.Panel, {
25511
25519
  value: "Y Axes",
25512
- children: /* @__PURE__ */ l(b$, {
25520
+ children: /* @__PURE__ */ l(S$, {
25513
25521
  control: s,
25514
25522
  watch: u
25515
25523
  })
25516
25524
  }), /* @__PURE__ */ l(I.Panel, {
25517
25525
  value: "Scatter",
25518
- children: /* @__PURE__ */ l(s$, {
25526
+ children: /* @__PURE__ */ l(c$, {
25519
25527
  control: s,
25520
25528
  watch: u,
25521
25529
  data: o
25522
25530
  })
25523
25531
  }), /* @__PURE__ */ l(I.Panel, {
25524
25532
  value: "Tooltip",
25525
- children: /* @__PURE__ */ l(f$, {
25533
+ children: /* @__PURE__ */ l(p$, {
25526
25534
  control: s,
25527
25535
  watch: u,
25528
25536
  data: o
25529
25537
  })
25530
25538
  }), /* @__PURE__ */ l(I.Panel, {
25531
25539
  value: "Stats",
25532
- children: /* @__PURE__ */ l(c$, {
25540
+ children: /* @__PURE__ */ l(u$, {
25533
25541
  control: s,
25534
25542
  watch: u,
25535
25543
  data: o
25536
25544
  })
25537
25545
  }), /* @__PURE__ */ l(I.Panel, {
25538
25546
  value: "Reference Lines",
25539
- children: /* @__PURE__ */ l(e$, {
25547
+ children: /* @__PURE__ */ l(t$, {
25540
25548
  variables: r,
25541
25549
  control: s,
25542
25550
  watch: u
@@ -25546,7 +25554,7 @@ function C$({
25546
25554
  })
25547
25555
  });
25548
25556
  }
25549
- class x$ extends tn {
25557
+ class _$ extends tn {
25550
25558
  constructor() {
25551
25559
  super(...arguments);
25552
25560
  he(this, "VERSION", 2);
@@ -25572,12 +25580,12 @@ class x$ extends tn {
25572
25580
  });
25573
25581
  }
25574
25582
  }
25575
- const _$ = {
25583
+ const E$ = {
25576
25584
  displayName: "Scatter Chart",
25577
- migrator: new x$(),
25585
+ migrator: new _$(),
25578
25586
  name: "scatterChart",
25579
- viewRender: QI,
25580
- configRender: C$,
25587
+ viewRender: JI,
25588
+ configRender: x$,
25581
25589
  createConfig: () => js,
25582
25590
  triggers: [gh]
25583
25591
  }, vh = [
@@ -25591,7 +25599,7 @@ const _$ = {
25591
25599
  horizontal_align: "left",
25592
25600
  font_size: "14px",
25593
25601
  font_weight: "normal"
25594
- }, E$ = Q(({
25602
+ }, O$ = Q(({
25595
25603
  context: e
25596
25604
  }) => {
25597
25605
  const t = lt(), {
@@ -25617,7 +25625,7 @@ const _$ = {
25617
25625
  },
25618
25626
  children: c
25619
25627
  });
25620
- }), O$ = ({
25628
+ }), R$ = ({
25621
25629
  value: e,
25622
25630
  onChange: t
25623
25631
  }) => /* @__PURE__ */ l(Ie, {
@@ -25638,7 +25646,7 @@ const _$ = {
25638
25646
  }
25639
25647
  }
25640
25648
  })
25641
- }), R$ = Nn(({
25649
+ }), T$ = Nn(({
25642
25650
  value: e,
25643
25651
  onChange: t
25644
25652
  }, n) => {
@@ -25671,7 +25679,7 @@ const _$ = {
25671
25679
  closeOnClickOutside: !1,
25672
25680
  withCloseButton: !1,
25673
25681
  children: r && /* @__PURE__ */ v(B, {
25674
- children: [/* @__PURE__ */ l(O$, {
25682
+ children: [/* @__PURE__ */ l(R$, {
25675
25683
  value: a,
25676
25684
  onChange: s
25677
25685
  }), /* @__PURE__ */ v(k, {
@@ -25698,7 +25706,7 @@ const _$ = {
25698
25706
  })
25699
25707
  })]
25700
25708
  });
25701
- }), T$ = [{
25709
+ }), M$ = [{
25702
25710
  label: "Left",
25703
25711
  value: "left"
25704
25712
  }, {
@@ -25708,7 +25716,7 @@ const _$ = {
25708
25716
  label: "Right",
25709
25717
  value: "right"
25710
25718
  }];
25711
- function M$({
25719
+ function k$({
25712
25720
  context: e
25713
25721
  }) {
25714
25722
  const {
@@ -25777,7 +25785,7 @@ function M$({
25777
25785
  control: i,
25778
25786
  render: ({
25779
25787
  field: p
25780
- }) => /* @__PURE__ */ l(R$, {
25788
+ }) => /* @__PURE__ */ l(T$, {
25781
25789
  ...p
25782
25790
  })
25783
25791
  }), /* @__PURE__ */ l(Ae, {
@@ -25793,7 +25801,7 @@ function M$({
25793
25801
  field: p
25794
25802
  }) => /* @__PURE__ */ l(Ee, {
25795
25803
  label: "Horizontal Alignment",
25796
- data: T$,
25804
+ data: M$,
25797
25805
  ...p
25798
25806
  })
25799
25807
  }), /* @__PURE__ */ l(V, {
@@ -25833,7 +25841,7 @@ function M$({
25833
25841
  })
25834
25842
  });
25835
25843
  }
25836
- class k$ extends tn {
25844
+ class D$ extends tn {
25837
25845
  constructor() {
25838
25846
  super(...arguments);
25839
25847
  he(this, "VERSION", 1);
@@ -25845,14 +25853,14 @@ class k$ extends tn {
25845
25853
  }));
25846
25854
  }
25847
25855
  }
25848
- const D$ = {
25856
+ const P$ = {
25849
25857
  displayName: "Text",
25850
- migrator: new k$(),
25858
+ migrator: new D$(),
25851
25859
  name: "text",
25852
- viewRender: E$,
25853
- configRender: M$,
25860
+ viewRender: O$,
25861
+ configRender: k$,
25854
25862
  createConfig: () => Hs
25855
- }, P$ = [{
25863
+ }, I$ = [{
25856
25864
  value: "#25262B",
25857
25865
  name: "Dark"
25858
25866
  }, {
@@ -25899,12 +25907,12 @@ const D$ = {
25899
25907
  value: e.value,
25900
25908
  type: "single",
25901
25909
  category: "basic"
25902
- })), I$ = [mT, vT, ST, bT, yT, wT], yh = () => ({
25910
+ })), $$ = [mT, vT, ST, bT, yT, wT], yh = () => ({
25903
25911
  id: "dashboard",
25904
25912
  version: hs,
25905
25913
  manifest: {
25906
- viz: [bl, qD, D$, FD, JD, pD, DT, IM, sD, eD, _$, _D, AD, II, qM],
25907
- color: [...P$, ...I$]
25914
+ viz: [bl, UD, P$, zD, ZD, gD, DT, IM, cD, tD, E$, ED, ND, $I, qM],
25915
+ color: [...I$, ...$$]
25908
25916
  }
25909
25917
  }), Oo = new ET(), Vt = {
25910
25918
  pluginManager: zn("pluginManager"),
@@ -25934,7 +25942,7 @@ try {
25934
25942
  Oo.install(yh());
25935
25943
  } catch {
25936
25944
  }
25937
- function $$(e, t) {
25945
+ function A$(e, t) {
25938
25946
  const {
25939
25947
  value: n,
25940
25948
  set: r
@@ -25949,12 +25957,12 @@ function $$(e, t) {
25949
25957
  commit: a
25950
25958
  };
25951
25959
  }
25952
- function A$(e) {
25960
+ function N$(e) {
25953
25961
  const {
25954
25962
  config: t,
25955
25963
  setConfig: n,
25956
25964
  commit: r
25957
- } = $$(e, {
25965
+ } = A$(e, {
25958
25966
  urlTemplate: "",
25959
25967
  openInNewTab: !0
25960
25968
  });
@@ -25984,7 +25992,7 @@ function A$(e) {
25984
25992
  })]
25985
25993
  });
25986
25994
  }
25987
- async function N$(e, t) {
25995
+ async function L$(e, t) {
25988
25996
  const {
25989
25997
  urlTemplate: n,
25990
25998
  openInNewTab: r
@@ -25997,7 +26005,7 @@ async function N$(e, t) {
25997
26005
  }
25998
26006
  }));
25999
26007
  }
26000
- class L$ extends tn {
26008
+ class V$ extends tn {
26001
26009
  constructor() {
26002
26010
  super(...arguments);
26003
26011
  he(this, "VERSION", 1);
@@ -26006,12 +26014,12 @@ class L$ extends tn {
26006
26014
  this.version(1, (n) => n);
26007
26015
  }
26008
26016
  }
26009
- const V$ = {
26017
+ const F$ = {
26010
26018
  displayName: "Open Link",
26011
26019
  id: "builtin:op:open-link",
26012
- configRender: A$,
26013
- run: N$,
26014
- migrator: new L$(),
26020
+ configRender: N$,
26021
+ run: L$,
26022
+ migrator: new V$(),
26015
26023
  createDefaultConfig: () => ({
26016
26024
  version: 1,
26017
26025
  config: {
@@ -26020,7 +26028,7 @@ const V$ = {
26020
26028
  }
26021
26029
  })
26022
26030
  };
26023
- function F$(e) {
26031
+ function z$(e) {
26024
26032
  const {
26025
26033
  value: t,
26026
26034
  set: n
@@ -26029,24 +26037,24 @@ function F$(e) {
26029
26037
  });
26030
26038
  return [(t == null ? void 0 : t.template) || "", r];
26031
26039
  }
26032
- function z$(e) {
26033
- const [t, n] = F$(e.operation);
26040
+ function j$(e) {
26041
+ const [t, n] = z$(e.operation);
26034
26042
  return /* @__PURE__ */ l(se, {
26035
26043
  defaultValue: t,
26036
26044
  onBlur: (r) => n(r.currentTarget.value),
26037
26045
  label: "console.log"
26038
26046
  });
26039
26047
  }
26040
- async function j$(e, t) {
26048
+ async function H$(e, t) {
26041
26049
  const n = await t.operationData.getItem("config"), r = Ol(n.template || "");
26042
26050
  console.log("run with payload", e), console.log(r(e));
26043
26051
  }
26044
- const H$ = {
26052
+ const K$ = {
26045
26053
  displayName: "console.log (debug)",
26046
26054
  id: "builtin:op:debug",
26047
- configRender: z$,
26048
- run: j$
26049
- }, K$ = Q((e) => {
26055
+ configRender: j$,
26056
+ run: H$
26057
+ }, B$ = Q((e) => {
26050
26058
  const t = lt(), {
26051
26059
  value: n,
26052
26060
  set: r
@@ -26066,7 +26074,7 @@ const H$ = {
26066
26074
  data: t.views.options
26067
26075
  });
26068
26076
  });
26069
- async function B$(e, t) {
26077
+ async function G$(e, t) {
26070
26078
  const r = (await t.operationData.getItem("config")).viewID;
26071
26079
  window.dispatchEvent(new CustomEvent("open-view", {
26072
26080
  detail: {
@@ -26074,16 +26082,16 @@ async function B$(e, t) {
26074
26082
  }
26075
26083
  }));
26076
26084
  }
26077
- const G$ = {
26085
+ const W$ = {
26078
26086
  displayName: "Open View",
26079
26087
  id: "builtin:op:open_view",
26080
- configRender: K$,
26081
- run: B$
26082
- }, W$ = {
26088
+ configRender: B$,
26089
+ run: G$
26090
+ }, q$ = {
26083
26091
  dictionary: {}
26084
- }, q$ = Q((e) => {
26092
+ }, U$ = Q((e) => {
26085
26093
  const t = lt(), {
26086
- value: n = W$,
26094
+ value: n = q$,
26087
26095
  set: r
26088
26096
  } = rt(e.operation.operationData, "config"), {
26089
26097
  dictionary: o = {}
@@ -26140,7 +26148,7 @@ const G$ = {
26140
26148
  })]
26141
26149
  });
26142
26150
  });
26143
- async function U$(e, t) {
26151
+ async function Y$(e, t) {
26144
26152
  const r = (await t.operationData.getItem("config")).dictionary;
26145
26153
  window.dispatchEvent(new CustomEvent("set-filter-values", {
26146
26154
  detail: {
@@ -26149,13 +26157,13 @@ async function U$(e, t) {
26149
26157
  }
26150
26158
  }));
26151
26159
  }
26152
- const Y$ = {
26160
+ const X$ = {
26153
26161
  displayName: "Set Filter Values",
26154
26162
  id: "builtin:op:set_filter_values",
26155
- configRender: q$,
26156
- run: U$
26157
- }, da = [H$, V$, G$, Y$];
26158
- class X$ {
26163
+ configRender: U$,
26164
+ run: Y$
26165
+ }, da = [K$, F$, W$, X$];
26166
+ class Q$ {
26159
26167
  constructor(t, n = da) {
26160
26168
  he(this, "attachments");
26161
26169
  this.operations = n;
@@ -26232,7 +26240,7 @@ class Bs {
26232
26240
  he(this, "operationManager");
26233
26241
  he(this, "triggerManager");
26234
26242
  he(this, "attachments");
26235
- this.operationManager = new X$(t, r), this.triggerManager = new PT(t, n);
26243
+ this.operationManager = new Q$(t, r), this.triggerManager = new PT(t, n);
26236
26244
  const o = async (i) => {
26237
26245
  const { id: a, triggerRef: s, operationRef: c } = await i.getItem(null);
26238
26246
  return {
@@ -26280,14 +26288,14 @@ class Bs {
26280
26288
  );
26281
26289
  }
26282
26290
  }
26283
- function Q$(e, t) {
26291
+ function J$(e, t) {
26284
26292
  const [n, r] = Xe([]);
26285
26293
  return Yo(async () => {
26286
26294
  const o = await e.getInteractionList();
26287
26295
  r(o);
26288
26296
  }, [t]), n;
26289
26297
  }
26290
- const J$ = Q(({
26298
+ const Z$ = Q(({
26291
26299
  item: e,
26292
26300
  manager: t,
26293
26301
  instance: n,
@@ -26321,13 +26329,13 @@ const J$ = Q(({
26321
26329
  });
26322
26330
  }
26323
26331
  return null;
26324
- }), Z$ = (e) => {
26332
+ }), eA = (e) => {
26325
26333
  const [t, n] = Xe(0), {
26326
26334
  interactionManager: r,
26327
26335
  instance: o,
26328
26336
  sampleData: i,
26329
26337
  variables: a
26330
- } = e, s = Q$(r, t), c = async () => {
26338
+ } = e, s = J$(r, t), c = async () => {
26331
26339
  const p = await r.triggerManager.createOrGetTrigger(gn(), r.triggerManager.getTriggerSchemaList()[0]), g = await r.operationManager.createOrGetOperation(gn(), r.operationManager.getOperationSchemaList()[0]);
26332
26340
  await r.addInteraction(p, g), n((h) => h + 1);
26333
26341
  };
@@ -26354,7 +26362,7 @@ const J$ = Q(({
26354
26362
  title: "Unavailable",
26355
26363
  color: "gray",
26356
26364
  children: "This visualization does not have available interactions to choose from"
26357
- }), s.map((p) => /* @__PURE__ */ l(J$, {
26365
+ }), s.map((p) => /* @__PURE__ */ l(Z$, {
26358
26366
  onRemove: u,
26359
26367
  instance: o,
26360
26368
  sampleData: i,
@@ -26370,7 +26378,7 @@ const J$ = Q(({
26370
26378
  children: "Add interaction"
26371
26379
  })]
26372
26380
  });
26373
- }, eA = () => {
26381
+ }, tA = () => {
26374
26382
  const {
26375
26383
  panel: e,
26376
26384
  data: t
@@ -26392,12 +26400,12 @@ const J$ = Q(({
26392
26400
  sampleData: t,
26393
26401
  variables: []
26394
26402
  };
26395
- }, tA = () => {
26396
- const e = eA();
26397
- return /* @__PURE__ */ l(Z$, {
26403
+ }, nA = () => {
26404
+ const e = tA();
26405
+ return /* @__PURE__ */ l(eA, {
26398
26406
  ...e
26399
26407
  });
26400
- }, nA = Q(() => {
26408
+ }, rA = Q(() => {
26401
26409
  const {
26402
26410
  panel: e
26403
26411
  } = Gt(), [t, n] = j.useState(e.description), r = e.description !== t, o = j.useCallback(() => {
@@ -26434,7 +26442,7 @@ const J$ = Q(({
26434
26442
  }
26435
26443
  })]
26436
26444
  });
26437
- }), rA = Q(() => {
26445
+ }), oA = Q(() => {
26438
26446
  const {
26439
26447
  panel: e
26440
26448
  } = Gt(), {
@@ -26447,7 +26455,7 @@ const J$ = Q(({
26447
26455
  onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
26448
26456
  })
26449
26457
  });
26450
- }), oA = Q(() => {
26458
+ }), iA = Q(() => {
26451
26459
  const {
26452
26460
  panel: {
26453
26461
  title: e,
@@ -26502,7 +26510,7 @@ const J$ = Q(({
26502
26510
  })]
26503
26511
  })
26504
26512
  });
26505
- }), iA = Q(() => {
26513
+ }), aA = Q(() => {
26506
26514
  const {
26507
26515
  panel: e
26508
26516
  } = Gt(), {
@@ -26539,7 +26547,7 @@ const J$ = Q(({
26539
26547
  }
26540
26548
  });
26541
26549
  });
26542
- function aA() {
26550
+ function lA() {
26543
26551
  return /* @__PURE__ */ v(k, {
26544
26552
  grow: !0,
26545
26553
  noWrap: !0,
@@ -26558,22 +26566,22 @@ function aA() {
26558
26566
  label: "Style",
26559
26567
  labelPosition: "center",
26560
26568
  variant: "dashed"
26561
- }), /* @__PURE__ */ l(rA, {}), /* @__PURE__ */ l(Ae, {
26569
+ }), /* @__PURE__ */ l(oA, {}), /* @__PURE__ */ l(Ae, {
26562
26570
  label: "Info",
26563
26571
  labelPosition: "center",
26564
26572
  variant: "dashed"
26565
- }), /* @__PURE__ */ l(iA, {}), /* @__PURE__ */ l(nA, {})]
26573
+ }), /* @__PURE__ */ l(aA, {}), /* @__PURE__ */ l(rA, {})]
26566
26574
  }), /* @__PURE__ */ l(Ie, {
26567
26575
  sx: {
26568
26576
  height: "100%",
26569
26577
  flexGrow: 1,
26570
26578
  maxWidth: "60%"
26571
26579
  },
26572
- children: /* @__PURE__ */ l(oA, {})
26580
+ children: /* @__PURE__ */ l(iA, {})
26573
26581
  })]
26574
26582
  });
26575
26583
  }
26576
- const lA = Q(function() {
26584
+ const sA = Q(function() {
26577
26585
  const t = lt(), {
26578
26586
  panel: {
26579
26587
  queryID: n,
@@ -26608,7 +26616,7 @@ const lA = Q(function() {
26608
26616
  });
26609
26617
  });
26610
26618
  var bh = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(bh || {}), _i = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(_i || {});
26611
- class sA {
26619
+ class cA {
26612
26620
  constructor(t) {
26613
26621
  he(this, "vizInstance");
26614
26622
  he(this, "operationManager");
@@ -26660,7 +26668,7 @@ function Sh(e) {
26660
26668
  return n.createScoped().provideFactory(Vt.instanceScope.vizInstance, () => r.getOrCreateInstance(e)).provideFactory(Vt.instanceScope.interactionManager, (i) => {
26661
26669
  const a = i.getRequired(Vt.instanceScope.vizInstance);
26662
26670
  return new Bs(a, o, da);
26663
- }).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new sA(i));
26671
+ }).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new cA(i));
26664
26672
  },
26665
26673
  [e.viz.type, e.viz.conf]
26666
26674
  );
@@ -26682,7 +26690,7 @@ function Ch(e, t) {
26682
26690
  e(r);
26683
26691
  }), [e, t.viz.type]), n;
26684
26692
  }
26685
- function cA({
26693
+ function uA({
26686
26694
  setVizConf: e,
26687
26695
  ...t
26688
26696
  }) {
@@ -26702,7 +26710,7 @@ function cA({
26702
26710
  children: "Checking update..."
26703
26711
  });
26704
26712
  }
26705
- function uA(e) {
26713
+ function dA(e) {
26706
26714
  const {
26707
26715
  panel: t,
26708
26716
  setVizConf: n
@@ -26718,7 +26726,7 @@ function uA(e) {
26718
26726
  children: "Checking update"
26719
26727
  });
26720
26728
  }
26721
- function dA(e, t) {
26729
+ function fA(e, t) {
26722
26730
  const {
26723
26731
  vizManager: n
26724
26732
  } = Qn(Fn), {
@@ -26741,7 +26749,7 @@ function dA(e, t) {
26741
26749
  try {
26742
26750
  return n.resolveComponent(r.type), /* @__PURE__ */ l(qi, {
26743
26751
  configure: d,
26744
- children: /* @__PURE__ */ l(uA, {
26752
+ children: /* @__PURE__ */ l(dA, {
26745
26753
  setVizConf: r.setConf,
26746
26754
  panel: u,
26747
26755
  data: e,
@@ -26753,7 +26761,7 @@ function dA(e, t) {
26753
26761
  return console.info(dt(f, "message")), null;
26754
26762
  }
26755
26763
  }
26756
- const fA = ["richText", "button"], xh = Q(function({
26764
+ const pA = ["richText", "button"], xh = Q(function({
26757
26765
  height: t,
26758
26766
  viz: n,
26759
26767
  data: r,
@@ -26765,11 +26773,11 @@ const fA = ["richText", "button"], xh = Q(function({
26765
26773
  ref: s,
26766
26774
  width: c,
26767
26775
  height: u
26768
- } = Ao(), d = dA(r, {
26776
+ } = Ao(), d = fA(r, {
26769
26777
  w: c,
26770
26778
  h: u
26771
26779
  });
26772
- if (fA.includes(n.type))
26780
+ if (pA.includes(n.type))
26773
26781
  return /* @__PURE__ */ l("div", {
26774
26782
  className: "viz-root",
26775
26783
  style: {
@@ -26815,7 +26823,7 @@ const fA = ["richText", "button"], xh = Q(function({
26815
26823
  children: d
26816
26824
  })]
26817
26825
  });
26818
- }), pA = Q(() => {
26826
+ }), gA = Q(() => {
26819
26827
  const {
26820
26828
  data: e,
26821
26829
  loading: t,
@@ -26830,7 +26838,7 @@ const fA = ["richText", "button"], xh = Q(function({
26830
26838
  height: "100%"
26831
26839
  });
26832
26840
  }), Sl = [];
26833
- function gA() {
26841
+ function hA() {
26834
26842
  const {
26835
26843
  vizManager: e
26836
26844
  } = Qn(Fn);
@@ -26839,14 +26847,14 @@ function gA() {
26839
26847
  label: t.displayName
26840
26848
  })).concat(Sl), [e]);
26841
26849
  }
26842
- function hA(e, t) {
26850
+ function mA(e, t) {
26843
26851
  try {
26844
26852
  return e.resolveComponent(t).createConfig();
26845
26853
  } catch {
26846
26854
  return null;
26847
26855
  }
26848
26856
  }
26849
- function mA() {
26857
+ function vA() {
26850
26858
  const {
26851
26859
  data: e,
26852
26860
  panel: {
@@ -26876,7 +26884,7 @@ function mA() {
26876
26884
  try {
26877
26885
  return d.resolveComponent(f.viz.type), /* @__PURE__ */ l(qi, {
26878
26886
  configure: g,
26879
- children: /* @__PURE__ */ l(cA, {
26887
+ children: /* @__PURE__ */ l(uA, {
26880
26888
  variables: t,
26881
26889
  setVizConf: n.setConf,
26882
26890
  panel: f,
@@ -26889,7 +26897,7 @@ function mA() {
26889
26897
  return console.info(dt(h, "message")), null;
26890
26898
  }
26891
26899
  }
26892
- const vA = Q(() => {
26900
+ const yA = Q(() => {
26893
26901
  const {
26894
26902
  data: e,
26895
26903
  panel: {
@@ -26900,7 +26908,7 @@ const vA = Q(() => {
26900
26908
  } = Qn(Fn), a = j.useCallback(() => {
26901
26909
  if (!o)
26902
26910
  return;
26903
- const g = hA(i, n);
26911
+ const g = mA(i, n);
26904
26912
  t.setType(n), t.setConf(g || {});
26905
26913
  }, [t, o, n]), s = (g) => {
26906
26914
  try {
@@ -26911,11 +26919,11 @@ const vA = Q(() => {
26911
26919
  }, c = j.useMemo(() => {
26912
26920
  var g;
26913
26921
  return (g = Sl.find((h) => h.value === n)) == null ? void 0 : g.Panel;
26914
- }, [n, Sl]), u = mA(), d = c ? Sr(c, {
26922
+ }, [n, Sl]), u = vA(), d = c ? Sr(c, {
26915
26923
  data: e,
26916
26924
  conf: t.conf,
26917
26925
  setConf: t.setConf
26918
- }) : null, f = u || d, p = gA();
26926
+ }) : null, f = u || d, p = hA();
26919
26927
  return /* @__PURE__ */ v(Ne, {
26920
26928
  children: [/* @__PURE__ */ l(Ee, {
26921
26929
  label: "Visualization",
@@ -26937,7 +26945,7 @@ const vA = Q(() => {
26937
26945
  })]
26938
26946
  });
26939
26947
  });
26940
- function yA() {
26948
+ function bA() {
26941
26949
  return /* @__PURE__ */ v(k, {
26942
26950
  grow: !0,
26943
26951
  noWrap: !0,
@@ -26954,18 +26962,18 @@ function yA() {
26954
26962
  overflow: "scroll",
26955
26963
  height: "100%"
26956
26964
  },
26957
- children: /* @__PURE__ */ l(vA, {})
26965
+ children: /* @__PURE__ */ l(yA, {})
26958
26966
  }), /* @__PURE__ */ l(Ie, {
26959
26967
  sx: {
26960
26968
  height: "100%",
26961
26969
  flexGrow: 1,
26962
26970
  maxWidth: "60%"
26963
26971
  },
26964
- children: /* @__PURE__ */ l(pA, {})
26972
+ children: /* @__PURE__ */ l(gA, {})
26965
26973
  })]
26966
26974
  });
26967
26975
  }
26968
- const bA = R.model("VariableModel", {
26976
+ const SA = R.model("VariableModel", {
26969
26977
  name: R.string,
26970
26978
  size: R.string,
26971
26979
  weight: R.string,
@@ -27000,7 +27008,7 @@ const bA = R.model("VariableModel", {
27000
27008
  return In(e);
27001
27009
  }
27002
27010
  }));
27003
- class SA {
27011
+ class wA {
27004
27012
  constructor(t) {
27005
27013
  he(this, "origin");
27006
27014
  he(this, "copy");
@@ -27016,7 +27024,7 @@ class SA {
27016
27024
  Rr(this.copy, t);
27017
27025
  }
27018
27026
  }
27019
- const wA = (e) => new SA(e), Na = {
27027
+ const CA = (e) => new wA(e), Na = {
27020
27028
  name: "new_var",
27021
27029
  size: "1rem",
27022
27030
  weight: "initial",
@@ -27036,7 +27044,7 @@ const wA = (e) => new SA(e), Na = {
27036
27044
  average: !1
27037
27045
  }
27038
27046
  };
27039
- class CA {
27047
+ class xA {
27040
27048
  constructor(t) {
27041
27049
  he(this, "panel");
27042
27050
  he(this, "selected");
@@ -27061,11 +27069,11 @@ class CA {
27061
27069
  }
27062
27070
  }
27063
27071
  }
27064
- function xA() {
27072
+ function _A() {
27065
27073
  const { panel: e } = Gt();
27066
- return On(() => new CA(e), [e]);
27074
+ return On(() => new xA(e), [e]);
27067
27075
  }
27068
- const _A = j.forwardRef(function({
27076
+ const EA = j.forwardRef(function({
27069
27077
  value: t,
27070
27078
  onChange: n,
27071
27079
  data: r,
@@ -27140,7 +27148,7 @@ const _A = j.forwardRef(function({
27140
27148
  overflow: "auto",
27141
27149
  paddingRight: 10
27142
27150
  }
27143
- })), EA = (e) => {
27151
+ })), OA = (e) => {
27144
27152
  const {
27145
27153
  uiModel: t
27146
27154
  } = e;
@@ -27153,7 +27161,7 @@ const _A = j.forwardRef(function({
27153
27161
  children: n.name
27154
27162
  }, n.name))
27155
27163
  });
27156
- }, OA = Q(EA), RA = ({
27164
+ }, RA = Q(OA), TA = ({
27157
27165
  variable: e,
27158
27166
  data: t
27159
27167
  }) => /* @__PURE__ */ l(k, {
@@ -27166,8 +27174,8 @@ const _A = j.forwardRef(function({
27166
27174
  p: "md",
27167
27175
  children: Kg(e, t)
27168
27176
  })
27169
- }), TA = Q(RA), MA = (e) => {
27170
- const t = On(() => wA(e.variable), [e.variable]), {
27177
+ }), MA = Q(TA), kA = (e) => {
27178
+ const t = On(() => CA(e.variable), [e.variable]), {
27171
27179
  classes: n
27172
27180
  } = _h(), {
27173
27181
  data: r
@@ -27194,18 +27202,18 @@ const _A = j.forwardRef(function({
27194
27202
  onClick: () => e.uiModel.remove(e.variable),
27195
27203
  children: /* @__PURE__ */ l(Wp, {})
27196
27204
  })]
27197
- }), /* @__PURE__ */ l(_A, {
27205
+ }), /* @__PURE__ */ l(EA, {
27198
27206
  value: In(t.copy),
27199
27207
  onChange: t.update,
27200
27208
  data: r
27201
27209
  })]
27202
- }), /* @__PURE__ */ l(TA, {
27210
+ }), /* @__PURE__ */ l(MA, {
27203
27211
  variable: In(t.copy),
27204
27212
  data: r
27205
27213
  })]
27206
27214
  });
27207
- }, kA = Q(MA), DA = () => {
27208
- const e = xA(), {
27215
+ }, DA = Q(kA), PA = () => {
27216
+ const e = _A(), {
27209
27217
  classes: t
27210
27218
  } = _h();
27211
27219
  return /* @__PURE__ */ v(k, {
@@ -27227,12 +27235,12 @@ const _A = j.forwardRef(function({
27227
27235
  fullWidth: !0,
27228
27236
  children: "Add Variable"
27229
27237
  })
27230
- }), /* @__PURE__ */ l(OA, {
27238
+ }), /* @__PURE__ */ l(RA, {
27231
27239
  uiModel: e
27232
27240
  })]
27233
27241
  })
27234
27242
  }), e.selected ? /* @__PURE__ */ l(Ne, {
27235
- children: /* @__PURE__ */ l(kA, {
27243
+ children: /* @__PURE__ */ l(DA, {
27236
27244
  uiModel: e,
27237
27245
  variable: e.selected
27238
27246
  })
@@ -27240,7 +27248,7 @@ const _A = j.forwardRef(function({
27240
27248
  children: "Select or create a new variable on right side"
27241
27249
  })]
27242
27250
  });
27243
- }, PA = Q(DA), IA = Q(function({
27251
+ }, IA = Q(PA), $A = Q(function({
27244
27252
  opened: t,
27245
27253
  close: n
27246
27254
  }) {
@@ -27308,30 +27316,30 @@ const _A = j.forwardRef(function({
27308
27316
  children: [/* @__PURE__ */ l(Uo, {
27309
27317
  visible: s,
27310
27318
  exitTransitionDuration: 0
27311
- }), /* @__PURE__ */ l(lA, {})]
27319
+ }), /* @__PURE__ */ l(sA, {})]
27312
27320
  }), /* @__PURE__ */ l(I.Panel, {
27313
27321
  value: "Panel",
27314
27322
  pt: "sm",
27315
- children: o === "Panel" && /* @__PURE__ */ l(aA, {})
27323
+ children: o === "Panel" && /* @__PURE__ */ l(lA, {})
27316
27324
  }), /* @__PURE__ */ l(I.Panel, {
27317
27325
  value: "Variables",
27318
27326
  pt: "sm",
27319
- children: o === "Variables" && /* @__PURE__ */ l(PA, {})
27327
+ children: o === "Variables" && /* @__PURE__ */ l(IA, {})
27320
27328
  }), /* @__PURE__ */ l(I.Panel, {
27321
27329
  value: "Visualization",
27322
27330
  pt: "sm",
27323
- children: o === "Visualization" && /* @__PURE__ */ l(yA, {})
27331
+ children: o === "Visualization" && /* @__PURE__ */ l(bA, {})
27324
27332
  }), /* @__PURE__ */ l(I.Panel, {
27325
27333
  value: "Interactions",
27326
27334
  pt: "sm",
27327
27335
  children: /* @__PURE__ */ l(Zr, {
27328
- children: /* @__PURE__ */ l(tA, {})
27336
+ children: /* @__PURE__ */ l(nA, {})
27329
27337
  })
27330
27338
  })]
27331
27339
  })
27332
27340
  })
27333
27341
  });
27334
- }), $A = Q(({
27342
+ }), AA = Q(({
27335
27343
  view: e
27336
27344
  }) => {
27337
27345
  const t = lt(), n = Jh(), [r, o] = j.useState(!1), i = () => o(!0), a = () => o(!1), {
@@ -27422,13 +27430,13 @@ const _A = j.forwardRef(function({
27422
27430
  })]
27423
27431
  })]
27424
27432
  })
27425
- }), d && /* @__PURE__ */ l(IA, {
27433
+ }), d && /* @__PURE__ */ l($A, {
27426
27434
  opened: r,
27427
27435
  close: a
27428
27436
  })]
27429
27437
  });
27430
27438
  });
27431
- const AA = Q(function() {
27439
+ const NA = Q(function() {
27432
27440
  const {
27433
27441
  panel: t
27434
27442
  } = Gt(), {
@@ -27450,10 +27458,10 @@ const AA = Q(function() {
27450
27458
  })
27451
27459
  }) : null;
27452
27460
  });
27453
- function NA(e) {
27461
+ function LA(e) {
27454
27462
  return !["richText", "button"].includes(e);
27455
27463
  }
27456
- const LA = {
27464
+ const VA = {
27457
27465
  border: "1px solid #e9ecef"
27458
27466
  }, sd = {
27459
27467
  border: "1px dashed transparent",
@@ -27462,8 +27470,8 @@ const LA = {
27462
27470
  borderColor: "#e9ecef"
27463
27471
  }
27464
27472
  };
27465
- function VA(e, t, n) {
27466
- return e.style.border.enabled ? LA : n || t ? sd : {
27473
+ function FA(e, t, n) {
27474
+ return e.style.border.enabled ? VA : n || t ? sd : {
27467
27475
  border: "1px dashed transparent"
27468
27476
  };
27469
27477
  }
@@ -27477,7 +27485,7 @@ const Gs = Q(function({
27477
27485
  data: i,
27478
27486
  state: a,
27479
27487
  error: s
27480
- } = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u = NA(t.viz.type), d = u && a === "loading", f = t.title ? "calc(100% - 25px - 5px)" : "100%", p = VA(t, u, o), g = u || o;
27488
+ } = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u = LA(t.viz.type), d = u && a === "loading", f = t.title ? "calc(100% - 25px - 5px)" : "100%", p = FA(t, u, o), g = u || o;
27481
27489
  return /* @__PURE__ */ l(tv, {
27482
27490
  value: {
27483
27491
  panel: t,
@@ -27500,9 +27508,9 @@ const Gs = Q(function({
27500
27508
  zIndex: 310
27501
27509
  },
27502
27510
  children: /* @__PURE__ */ l(lg, {})
27503
- }), g && /* @__PURE__ */ l($A, {
27511
+ }), g && /* @__PURE__ */ l(AA, {
27504
27512
  view: n
27505
- }), /* @__PURE__ */ l(AA, {}), /* @__PURE__ */ l(xh, {
27513
+ }), /* @__PURE__ */ l(NA, {}), /* @__PURE__ */ l(xh, {
27506
27514
  viz: t.viz,
27507
27515
  data: i,
27508
27516
  loading: d,
@@ -27577,7 +27585,7 @@ function Rh() {
27577
27585
  };
27578
27586
  }, []);
27579
27587
  }
27580
- const FA = j.forwardRef(({
27588
+ const zA = j.forwardRef(({
27581
27589
  handleAxis: e
27582
27590
  }, t) => /* @__PURE__ */ l(Te, {
27583
27591
  ref: t,
@@ -27597,7 +27605,7 @@ const FA = j.forwardRef(({
27597
27605
  children: /* @__PURE__ */ l(xm, {
27598
27606
  size: 16
27599
27607
  })
27600
- })), zA = j.forwardRef(({
27608
+ })), jA = j.forwardRef(({
27601
27609
  handleAxis: e,
27602
27610
  ...t
27603
27611
  }, n) => /* @__PURE__ */ l(Te, {
@@ -27619,7 +27627,7 @@ const FA = j.forwardRef(({
27619
27627
  children: /* @__PURE__ */ l(_m, {
27620
27628
  size: 16
27621
27629
  })
27622
- })), jA = Fd(Vd), HA = Q(function({
27630
+ })), HA = Fd(Vd), KA = Q(function({
27623
27631
  view: t,
27624
27632
  className: n = "layout",
27625
27633
  rowHeight: r = 10,
@@ -27635,7 +27643,7 @@ const FA = j.forwardRef(({
27635
27643
  !d || d.layout.set(u);
27636
27644
  });
27637
27645
  }, [t]);
27638
- return /* @__PURE__ */ l(jA, {
27646
+ return /* @__PURE__ */ l(HA, {
27639
27647
  onLayoutChange: a,
27640
27648
  className: `dashboard-layout ${n}`,
27641
27649
  rowHeight: r,
@@ -27643,7 +27651,7 @@ const FA = j.forwardRef(({
27643
27651
  isDraggable: o,
27644
27652
  isResizable: i,
27645
27653
  draggableHandle: ".react-grid-customDragHandle",
27646
- resizeHandle: /* @__PURE__ */ l(zA, {}),
27654
+ resizeHandle: /* @__PURE__ */ l(jA, {}),
27647
27655
  children: t.panels.list.map((s, c) => /* @__PURE__ */ v("div", {
27648
27656
  "data-grid": {
27649
27657
  ...s.layout
@@ -27651,18 +27659,18 @@ const FA = j.forwardRef(({
27651
27659
  style: {
27652
27660
  position: "relative"
27653
27661
  },
27654
- children: [o && /* @__PURE__ */ l(FA, {}), /* @__PURE__ */ l(Gs, {
27662
+ children: [o && /* @__PURE__ */ l(zA, {}), /* @__PURE__ */ l(Gs, {
27655
27663
  view: t,
27656
27664
  panel: s
27657
27665
  })]
27658
27666
  }, s.id))
27659
27667
  });
27660
- }), KA = Fd(Vd), BA = Q(function({
27668
+ }), BA = Fd(Vd), GA = Q(function({
27661
27669
  view: t,
27662
27670
  className: n = "layout",
27663
27671
  rowHeight: r = 10
27664
27672
  }) {
27665
- return /* @__PURE__ */ l(KA, {
27673
+ return /* @__PURE__ */ l(BA, {
27666
27674
  className: `dashboard-layout ${n}`,
27667
27675
  rowHeight: r,
27668
27676
  isDraggable: !1,
@@ -27676,11 +27684,11 @@ const FA = j.forwardRef(({
27676
27684
  })
27677
27685
  }, o.id))
27678
27686
  });
27679
- }), GA = Q(({
27687
+ }), WA = Q(({
27680
27688
  children: e
27681
27689
  }) => /* @__PURE__ */ l(Ie, {
27682
27690
  children: e
27683
- })), WA = Q(({
27691
+ })), qA = Q(({
27684
27692
  children: e,
27685
27693
  view: t
27686
27694
  }) => /* @__PURE__ */ l(en, {
@@ -27715,23 +27723,23 @@ const FA = j.forwardRef(({
27715
27723
  withinPortal: !1,
27716
27724
  transitionDuration: 0,
27717
27725
  children: e
27718
- })), qA = Q(({
27726
+ })), UA = Q(({
27719
27727
  view: e,
27720
27728
  children: t
27721
27729
  }) => {
27722
27730
  switch (e.type) {
27723
27731
  case Rn.Modal:
27724
- return /* @__PURE__ */ l(WA, {
27732
+ return /* @__PURE__ */ l(qA, {
27725
27733
  view: e,
27726
27734
  children: t
27727
27735
  });
27728
27736
  case Rn.Division:
27729
27737
  default:
27730
- return /* @__PURE__ */ l(GA, {
27738
+ return /* @__PURE__ */ l(WA, {
27731
27739
  children: t
27732
27740
  });
27733
27741
  }
27734
- }), UA = Q(function({
27742
+ }), YA = Q(function({
27735
27743
  view: t,
27736
27744
  saveDashboardChanges: n,
27737
27745
  fullScreenPanelID: r,
@@ -27761,7 +27769,7 @@ const FA = j.forwardRef(({
27761
27769
  exitFullScreen: a
27762
27770
  }), !s && /* @__PURE__ */ l(Qp, {
27763
27771
  saveChanges: n
27764
- }), /* @__PURE__ */ l(qA, {
27772
+ }), /* @__PURE__ */ l(UA, {
27765
27773
  view: t,
27766
27774
  children: /* @__PURE__ */ v(Ie, {
27767
27775
  className: "dashboard-sticky-parent",
@@ -27770,7 +27778,7 @@ const FA = j.forwardRef(({
27770
27778
  children: /* @__PURE__ */ l(Hp, {
27771
27779
  view: t
27772
27780
  })
27773
- }), !s && /* @__PURE__ */ l(HA, {
27781
+ }), !s && /* @__PURE__ */ l(KA, {
27774
27782
  view: t,
27775
27783
  isDraggable: !0,
27776
27784
  isResizable: !0
@@ -27779,11 +27787,11 @@ const FA = j.forwardRef(({
27779
27787
  })]
27780
27788
  })
27781
27789
  });
27782
- }), YA = Q(({
27790
+ }), XA = Q(({
27783
27791
  children: e
27784
27792
  }) => /* @__PURE__ */ l(Ie, {
27785
27793
  children: e
27786
- })), XA = Q(({
27794
+ })), QA = Q(({
27787
27795
  children: e,
27788
27796
  view: t
27789
27797
  }) => {
@@ -27812,23 +27820,23 @@ const FA = j.forwardRef(({
27812
27820
  transitionDuration: 0,
27813
27821
  children: e
27814
27822
  });
27815
- }), QA = Q(({
27823
+ }), JA = Q(({
27816
27824
  view: e,
27817
27825
  children: t
27818
27826
  }) => {
27819
27827
  switch (e.type) {
27820
27828
  case Rn.Modal:
27821
- return /* @__PURE__ */ l(XA, {
27829
+ return /* @__PURE__ */ l(QA, {
27822
27830
  view: e,
27823
27831
  children: t
27824
27832
  });
27825
27833
  case Rn.Division:
27826
27834
  default:
27827
- return /* @__PURE__ */ l(YA, {
27835
+ return /* @__PURE__ */ l(XA, {
27828
27836
  children: t
27829
27837
  });
27830
27838
  }
27831
- }), JA = Q(function({
27839
+ }), ZA = Q(function({
27832
27840
  view: t,
27833
27841
  fullScreenPanelID: n,
27834
27842
  setFullScreenPanelID: r
@@ -27857,7 +27865,7 @@ const FA = j.forwardRef(({
27857
27865
  exitFullScreen: i
27858
27866
  }), !a && /* @__PURE__ */ l(Qp, {
27859
27867
  saveChanges: Le.noop
27860
- }), /* @__PURE__ */ l(QA, {
27868
+ }), /* @__PURE__ */ l(JA, {
27861
27869
  view: t,
27862
27870
  children: /* @__PURE__ */ v(Ie, {
27863
27871
  className: "dashboard-sticky-parent",
@@ -27866,7 +27874,7 @@ const FA = j.forwardRef(({
27866
27874
  children: /* @__PURE__ */ l(Hp, {
27867
27875
  view: t
27868
27876
  })
27869
- }), !a && /* @__PURE__ */ l(BA, {
27877
+ }), !a && /* @__PURE__ */ l(GA, {
27870
27878
  view: t
27871
27879
  })]
27872
27880
  })
@@ -27880,10 +27888,10 @@ const FA = j.forwardRef(({
27880
27888
  setDefaultValue(t) {
27881
27889
  e.default_value = t;
27882
27890
  }
27883
- })), ZA = () => Th.create({
27891
+ })), eN = () => Th.create({
27884
27892
  _name: "checkbox",
27885
27893
  default_value: !1
27886
- }), eN = R.model("FilterConfigModel_DateRange", {
27894
+ }), tN = R.model("FilterConfigModel_DateRange", {
27887
27895
  _name: R.literal("date-range"),
27888
27896
  required: R.boolean,
27889
27897
  inputFormat: R.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
@@ -27902,7 +27910,7 @@ const FA = j.forwardRef(({
27902
27910
  setDefaultValue(t) {
27903
27911
  e.default_value.length = 0, e.default_value.push(...t);
27904
27912
  }
27905
- })), Mh = R.snapshotProcessor(eN, {
27913
+ })), Mh = R.snapshotProcessor(tN, {
27906
27914
  preProcessor({ default_value: e, ...t }) {
27907
27915
  return {
27908
27916
  ...t,
@@ -27921,13 +27929,13 @@ const FA = j.forwardRef(({
27921
27929
  })
27922
27930
  };
27923
27931
  }
27924
- }), tN = () => Mh.create({
27932
+ }), nN = () => Mh.create({
27925
27933
  _name: "date-range",
27926
27934
  required: !1,
27927
27935
  inputFormat: "YYYY-MM-DD",
27928
27936
  clearable: !1,
27929
27937
  default_value: [null, null]
27930
- }), nN = R.model({
27938
+ }), rN = R.model({
27931
27939
  label: R.string,
27932
27940
  value: R.string
27933
27941
  }).actions((e) => ({
@@ -27938,7 +27946,7 @@ const FA = j.forwardRef(({
27938
27946
  e.value = t;
27939
27947
  }
27940
27948
  })), Ws = R.model("FilterConfigModel_BaseSelect", {
27941
- static_options: R.optional(R.array(nN), []),
27949
+ static_options: R.optional(R.array(rN), []),
27942
27950
  options_query_id: R.optional(R.string, ""),
27943
27951
  select_first_by_default: R.optional(R.boolean, !1)
27944
27952
  }).views((e) => ({
@@ -27977,7 +27985,7 @@ const FA = j.forwardRef(({
27977
27985
  setMinWidth(t) {
27978
27986
  e.min_width = t;
27979
27987
  }
27980
- })), rN = () => kh.create({
27988
+ })), oN = () => kh.create({
27981
27989
  _name: "multi-select",
27982
27990
  default_value: [],
27983
27991
  static_options: [],
@@ -27998,7 +28006,7 @@ const FA = j.forwardRef(({
27998
28006
  setMinWidth(t) {
27999
28007
  e.min_width = t;
28000
28008
  }
28001
- })), oN = () => Dh.create({
28009
+ })), iN = () => Dh.create({
28002
28010
  _name: "tree-select",
28003
28011
  default_value: [],
28004
28012
  static_options: [],
@@ -28023,7 +28031,7 @@ const FA = j.forwardRef(({
28023
28031
  setWidth(t) {
28024
28032
  e.width = t;
28025
28033
  }
28026
- })), iN = () => Ph.create({
28034
+ })), aN = () => Ph.create({
28027
28035
  _name: "select",
28028
28036
  required: !1,
28029
28037
  default_value: "",
@@ -28071,22 +28079,22 @@ const FA = j.forwardRef(({
28071
28079
  setType(t) {
28072
28080
  switch (t) {
28073
28081
  case ln.Select:
28074
- e.config = iN();
28082
+ e.config = aN();
28075
28083
  break;
28076
28084
  case ln.MultiSelect:
28077
- e.config = rN();
28085
+ e.config = oN();
28078
28086
  break;
28079
28087
  case ln.TreeSelect:
28080
- e.config = oN();
28088
+ e.config = iN();
28081
28089
  break;
28082
28090
  case ln.TextInput:
28083
28091
  e.config = Yp();
28084
28092
  break;
28085
28093
  case ln.Checkbox:
28086
- e.config = ZA();
28094
+ e.config = eN();
28087
28095
  break;
28088
28096
  case ln.DateRange:
28089
- e.config = tN();
28097
+ e.config = nN();
28090
28098
  break;
28091
28099
  }
28092
28100
  e.type = t;
@@ -28115,7 +28123,7 @@ function Ih(e, t) {
28115
28123
  function $h(e) {
28116
28124
  return e.reduce((t, n) => (t[n.key] = Ih(n.config.default_value, n.config), t), {});
28117
28125
  }
28118
- function aN(e, t, n) {
28126
+ function lN(e, t, n) {
28119
28127
  kd(
28120
28128
  e,
28121
28129
  km(e, (r, o) => {
@@ -28125,7 +28133,7 @@ function aN(e, t, n) {
28125
28133
  })
28126
28134
  );
28127
28135
  }
28128
- const lN = R.model("FiltersModel", {
28136
+ const sN = R.model("FiltersModel", {
28129
28137
  current: R.optional(R.array(cd), []),
28130
28138
  values: R.optional(R.frozen(), {}),
28131
28139
  previewValues: R.optional(R.frozen(), {})
@@ -28183,7 +28191,7 @@ const lN = R.model("FiltersModel", {
28183
28191
  }
28184
28192
  })).actions((e) => {
28185
28193
  function t() {
28186
- aN(e.current, cd, (n, r) => {
28194
+ lN(e.current, cd, (n, r) => {
28187
28195
  if (n === "setType") {
28188
28196
  const o = Ih(r.config.default_value, r.config);
28189
28197
  e.setValueByKey(r.key, o), e.updatePreviewValues({
@@ -28199,13 +28207,13 @@ const lN = R.model("FiltersModel", {
28199
28207
  }
28200
28208
  };
28201
28209
  });
28202
- function sN(e) {
28210
+ function cN(e) {
28203
28211
  return {
28204
28212
  current: e,
28205
28213
  values: $h(e)
28206
28214
  };
28207
28215
  }
28208
- const cN = R.model("QueryModel", {
28216
+ const uN = R.model("QueryModel", {
28209
28217
  id: R.string,
28210
28218
  name: R.string,
28211
28219
  type: R.enumeration("DataSourceType", [pr.Postgresql, pr.MySQL, pr.HTTP]),
@@ -28257,9 +28265,9 @@ const cN = R.model("QueryModel", {
28257
28265
  filters: r
28258
28266
  };
28259
28267
  }
28260
- })), uN = R.compose(
28268
+ })), dN = R.compose(
28261
28269
  "QueryModel",
28262
- cN,
28270
+ uN,
28263
28271
  R.model({
28264
28272
  state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
28265
28273
  data: R.optional(R.array(R.frozen()), []),
@@ -28339,8 +28347,8 @@ const cN = R.model("QueryModel", {
28339
28347
  })
28340
28348
  );
28341
28349
  }
28342
- })), dN = R.model("QueriesModel", {
28343
- current: R.optional(R.array(uN), [])
28350
+ })), fN = R.model("QueriesModel", {
28351
+ current: R.optional(R.array(dN), [])
28344
28352
  }).views((e) => ({
28345
28353
  get firstID() {
28346
28354
  if (e.current.length !== 0)
@@ -28399,7 +28407,7 @@ const cN = R.model("QueryModel", {
28399
28407
  const n = e.current.find((r) => r.id === t);
28400
28408
  n && ($m(n), e.current.remove(n));
28401
28409
  }
28402
- })), fN = R.model("SQLSnippetModel", {
28410
+ })), pN = R.model("SQLSnippetModel", {
28403
28411
  key: R.string,
28404
28412
  value: R.string
28405
28413
  }).views((e) => ({
@@ -28420,8 +28428,8 @@ const cN = R.model("QueryModel", {
28420
28428
  setValue(t) {
28421
28429
  e.value = t;
28422
28430
  }
28423
- })), pN = R.model("SQLSnippetsModel", {
28424
- current: R.optional(R.array(fN), [])
28431
+ })), gN = R.model("SQLSnippetsModel", {
28432
+ current: R.optional(R.array(pN), [])
28425
28433
  }).views((e) => ({
28426
28434
  get json() {
28427
28435
  return e.current.map((t) => t.json);
@@ -28449,7 +28457,7 @@ const cN = R.model("QueryModel", {
28449
28457
  replaceByIndex(t, n) {
28450
28458
  e.current.splice(t, 1, n);
28451
28459
  }
28452
- })), gN = R.model("ContextModel", {
28460
+ })), hN = R.model("ContextModel", {
28453
28461
  current: R.optional(R.frozen(), {})
28454
28462
  }).views((e) => ({
28455
28463
  get keys() {
@@ -28468,7 +28476,7 @@ const cN = R.model("QueryModel", {
28468
28476
  set(t, n) {
28469
28477
  e.current[t] = n;
28470
28478
  }
28471
- })), hN = R.model("MockContextModel", {
28479
+ })), mN = R.model("MockContextModel", {
28472
28480
  current: R.optional(R.frozen(), {})
28473
28481
  }).views((e) => ({
28474
28482
  get keys() {
@@ -28487,7 +28495,7 @@ const cN = R.model("QueryModel", {
28487
28495
  set(t, n) {
28488
28496
  e.current[t] = n;
28489
28497
  }
28490
- })), mN = R.model("PanelLayoutModel", {
28498
+ })), vN = R.model("PanelLayoutModel", {
28491
28499
  x: R.number,
28492
28500
  y: R.number,
28493
28501
  w: R.number,
@@ -28511,7 +28519,7 @@ const cN = R.model("QueryModel", {
28511
28519
  const { x: n, y: r, w: o, h: i, moved: a } = t;
28512
28520
  e.x = n, e.y = r, e.w = o, e.h = i, e.moved = !!a, e.static = !!t.static;
28513
28521
  }
28514
- })), vN = R.model("PanelStyleBorderModel", {
28522
+ })), yN = R.model("PanelStyleBorderModel", {
28515
28523
  enabled: R.boolean
28516
28524
  }).views((e) => ({
28517
28525
  get json() {
@@ -28524,8 +28532,8 @@ const cN = R.model("QueryModel", {
28524
28532
  setEnabled(t) {
28525
28533
  e.enabled = t;
28526
28534
  }
28527
- })), yN = R.model("PanelStyleModel", {
28528
- border: vN
28535
+ })), bN = R.model("PanelStyleModel", {
28536
+ border: yN
28529
28537
  }).views((e) => ({
28530
28538
  get json() {
28531
28539
  const { border: t } = e;
@@ -28533,7 +28541,7 @@ const cN = R.model("QueryModel", {
28533
28541
  border: t.json
28534
28542
  };
28535
28543
  }
28536
- })).actions((e) => ({})), bN = R.model("PanelVizModel", {
28544
+ })).actions((e) => ({})), SN = R.model("PanelVizModel", {
28537
28545
  type: R.string,
28538
28546
  conf: R.frozen()
28539
28547
  }).views((e) => ({
@@ -28550,15 +28558,15 @@ const cN = R.model("QueryModel", {
28550
28558
  setConf(t) {
28551
28559
  e.conf = t;
28552
28560
  }
28553
- })), SN = R.model({
28561
+ })), wN = R.model({
28554
28562
  id: R.string,
28555
28563
  title: R.string,
28556
28564
  description: R.string,
28557
- layout: mN,
28565
+ layout: vN,
28558
28566
  queryID: R.string,
28559
- viz: bN,
28560
- style: yN,
28561
- variables: R.optional(R.array(bA), [])
28567
+ viz: SN,
28568
+ style: bN,
28569
+ variables: R.optional(R.array(SA), [])
28562
28570
  }).views((e) => ({
28563
28571
  get query() {
28564
28572
  return Qs(e, wl).queries.findByID(e.queryID);
@@ -28598,8 +28606,8 @@ const cN = R.model("QueryModel", {
28598
28606
  removeVariable(t) {
28599
28607
  e.variables.remove(t);
28600
28608
  }
28601
- })), wN = R.model("PanelsModel", {
28602
- list: R.optional(R.array(SN), [])
28609
+ })), CN = R.model("PanelsModel", {
28610
+ list: R.optional(R.array(wN), [])
28603
28611
  }).views((e) => ({
28604
28612
  get json() {
28605
28613
  return e.list.map((t) => t.json);
@@ -28671,12 +28679,12 @@ const cN = R.model("QueryModel", {
28671
28679
  replaceByIndex(t, n) {
28672
28680
  e.list.splice(t, 1, n);
28673
28681
  }
28674
- })), CN = R.model({
28682
+ })), xN = R.model({
28675
28683
  id: R.identifier,
28676
28684
  name: R.string,
28677
28685
  type: R.string,
28678
28686
  config: R.frozen(),
28679
- panels: wN
28687
+ panels: CN
28680
28688
  }).views((e) => ({
28681
28689
  get json() {
28682
28690
  const { id: t, name: n, type: r, config: o } = e;
@@ -28707,8 +28715,8 @@ const cN = R.model("QueryModel", {
28707
28715
  [t]: n
28708
28716
  };
28709
28717
  }
28710
- })).actions((e) => ({})), xN = R.model("ViewsModel", {
28711
- current: R.optional(R.array(CN), []),
28718
+ })).actions((e) => ({})), _N = R.model("ViewsModel", {
28719
+ current: R.optional(R.array(xN), []),
28712
28720
  visibleViewIDs: R.array(R.string),
28713
28721
  idOfVIE: R.string
28714
28722
  }).views((e) => ({
@@ -28790,7 +28798,7 @@ const cN = R.model("QueryModel", {
28790
28798
  n !== -1 && e.visibleViewIDs.splice(n, 1);
28791
28799
  }
28792
28800
  }));
28793
- function _N(e) {
28801
+ function EN(e) {
28794
28802
  const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
28795
28803
  return {
28796
28804
  current: e.map((o) => ({
@@ -28803,16 +28811,16 @@ function _N(e) {
28803
28811
  idOfVIE: n
28804
28812
  };
28805
28813
  }
28806
- const EN = R.model({
28814
+ const ON = R.model({
28807
28815
  id: R.identifier,
28808
28816
  name: R.string,
28809
28817
  version: R.string,
28810
- filters: lN,
28811
- queries: dN,
28812
- sqlSnippets: pN,
28813
- views: xN,
28814
- context: gN,
28815
- mock_context: hN,
28818
+ filters: sN,
28819
+ queries: fN,
28820
+ sqlSnippets: gN,
28821
+ views: _N,
28822
+ context: hN,
28823
+ mock_context: mN,
28816
28824
  origin: R.maybe(R.frozen())
28817
28825
  }).views((e) => ({
28818
28826
  get filtersChanged() {
@@ -28883,7 +28891,7 @@ const EN = R.model({
28883
28891
  resetFilters() {
28884
28892
  Rr(e.filters.current, e.origin.filters.current);
28885
28893
  }
28886
- })), wl = R.snapshotProcessor(EN, {
28894
+ })), wl = R.snapshotProcessor(ON, {
28887
28895
  preProcessor(e) {
28888
28896
  return {
28889
28897
  ...e,
@@ -28901,7 +28909,7 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
28901
28909
  id: e,
28902
28910
  name: t,
28903
28911
  version: n,
28904
- filters: sN(r),
28912
+ filters: cN(r),
28905
28913
  queries: {
28906
28914
  current: i
28907
28915
  },
@@ -28914,13 +28922,13 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
28914
28922
  mock_context: {
28915
28923
  current: s
28916
28924
  },
28917
- views: _N(o)
28925
+ views: EN(o)
28918
28926
  });
28919
28927
  }
28920
28928
  function Nh(e) {
28921
28929
  return j.useCallback((t) => t.provideValue(Vt.pluginManager, e.pluginManager).provideValue(Vt.vizManager, e.vizManager).provideValue(Vt.colorManager, e.colorManager), []);
28922
28930
  }
28923
- const hL = Q(function({
28931
+ const mL = Q(function({
28924
28932
  context: t,
28925
28933
  dashboard: n,
28926
28934
  update: r,
@@ -28968,7 +28976,7 @@ const hL = Q(function({
28968
28976
  value: p,
28969
28977
  children: /* @__PURE__ */ l(qi, {
28970
28978
  configure: g,
28971
- children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(UA, {
28979
+ children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(YA, {
28972
28980
  view: h,
28973
28981
  saveDashboardChanges: f,
28974
28982
  fullScreenPanelID: a,
@@ -28980,7 +28988,7 @@ const hL = Q(function({
28980
28988
  })
28981
28989
  })
28982
28990
  });
28983
- }), mL = Q(({
28991
+ }), vL = Q(({
28984
28992
  context: e,
28985
28993
  dashboard: t,
28986
28994
  className: n = "dashboard",
@@ -29010,7 +29018,7 @@ const hL = Q(function({
29010
29018
  value: s,
29011
29019
  children: /* @__PURE__ */ l(qi, {
29012
29020
  configure: c,
29013
- children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(JA, {
29021
+ children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(ZA, {
29014
29022
  view: u,
29015
29023
  fullScreenPanelID: o,
29016
29024
  setFullScreenPanelID: i
@@ -29085,7 +29093,7 @@ var Lh = { exports: {} };
29085
29093
  };
29086
29094
  });
29087
29095
  })(Lh);
29088
- const ON = Lh.exports;
29096
+ const RN = Lh.exports;
29089
29097
  var Vh = { exports: {} };
29090
29098
  (function(e, t) {
29091
29099
  (function(n, r) {
@@ -29167,36 +29175,36 @@ var Vh = { exports: {} };
29167
29175
  };
29168
29176
  });
29169
29177
  })(Vh);
29170
- const RN = Vh.exports, vL = () => Promise.resolve().then(() => xT).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
29178
+ const TN = Vh.exports, yL = () => Promise.resolve().then(() => xT).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
29179
+ hr.extend(TN);
29171
29180
  hr.extend(RN);
29172
- hr.extend(ON);
29173
29181
  hr.tz.setDefault("UTC");
29174
29182
  export {
29175
- gN as ContextModel,
29176
- hL as Dashboard,
29183
+ hN as ContextModel,
29184
+ mL as Dashboard,
29177
29185
  jR as DashboardFilterType,
29178
29186
  zR as DashboardMode,
29179
29187
  wl as DashboardModel,
29180
29188
  Rn as EViewComponentType,
29181
29189
  cd as FilterModel,
29182
- lN as FiltersModel,
29190
+ sN as FiltersModel,
29183
29191
  Vn as LayoutStateContext,
29184
- UA as MainDashboardView,
29192
+ YA as MainDashboardView,
29185
29193
  Kd as ModelContextProvider,
29186
29194
  Gs as Panel,
29187
29195
  tv as PanelContextProvider,
29188
- dN as QueriesModel,
29189
- uN as QueryModel,
29190
- mL as ReadOnlyDashboard,
29191
- JA as ReadOnlyDashboardView,
29192
- fN as SQLSnippetModel,
29193
- pN as SQLSnippetsModel,
29194
- CN as ViewModel,
29195
- xN as ViewsModel,
29196
+ fN as QueriesModel,
29197
+ dN as QueryModel,
29198
+ vL as ReadOnlyDashboard,
29199
+ ZA as ReadOnlyDashboardView,
29200
+ pN as SQLSnippetModel,
29201
+ gN as SQLSnippetsModel,
29202
+ xN as ViewModel,
29203
+ _N as ViewsModel,
29196
29204
  Ah as createDashboardModel,
29197
- _N as createDashboardViewsModel,
29198
- sN as getInitialFiltersPayload,
29199
- vL as getVersion,
29205
+ EN as createDashboardViewsModel,
29206
+ cN as getInitialFiltersPayload,
29207
+ yL as getVersion,
29200
29208
  lt as useModelContext,
29201
29209
  Gt as usePanelContext,
29202
29210
  Nh as useTopLevelServices