@tenorlab/react-dashboard 1.1.4 → 1.1.6

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.
@@ -1,4 +1,4 @@
1
- import se, { useState as ce, useCallback as ue, useMemo as at, forwardRef as le, useRef as wt, Suspense as Ct, useEffect as St } from "react";
1
+ import se, { useState as le, useCallback as ue, useMemo as at, forwardRef as ce, useRef as wt, Suspense as Ct, useEffect as St } from "react";
2
2
  import { jsxs as W, jsx as s } from "react/jsx-runtime";
3
3
  import st from "react-dom";
4
4
  const Dt = [
@@ -79,12 +79,12 @@ const Dt = [
79
79
  defaultValue: "1.0rem",
80
80
  value: "1.0rem"
81
81
  }
82
- ], Tt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Nt = (e, n) => Tt.includes(e) ? n : 1, Et = {
82
+ ], Nt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Tt = (e, n) => Nt.includes(e) ? n : 1, Et = {
83
83
  incrementOrDecrementValue: (e, n) => {
84
- const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, a = Nt(o, e.step) * n, m = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
84
+ const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, a = Tt(o, e.step) * n, y = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
85
85
  return {
86
86
  ...e,
87
- value: m
87
+ value: y
88
88
  };
89
89
  }
90
90
  }, Ce = {
@@ -191,10 +191,10 @@ const Dt = [
191
191
  try {
192
192
  const o = await (await fetch(`${e}?${Math.random()}`)).json();
193
193
  for (const a in o) {
194
- const d = o[a], m = () => import(
194
+ const d = o[a], y = () => import(
195
195
  /* @vite-ignore */
196
196
  d.url
197
- ), p = {
197
+ ), m = {
198
198
  displayName: d.meta.displayName,
199
199
  description: d.meta.description || "Remote Plugin",
200
200
  categories: d.meta.categories || ["Widget"],
@@ -203,7 +203,7 @@ const Dt = [
203
203
  // Or a logic to map a string name to a Lucide component
204
204
  externalDependencies: d.meta.externalDependencies || []
205
205
  };
206
- r.push(ct(a, m, p));
206
+ r.push(ct(a, y, m));
207
207
  }
208
208
  n({
209
209
  entries: r,
@@ -222,30 +222,30 @@ const Dt = [
222
222
  for (const o in n) {
223
223
  const a = n[o], d = Wt(o);
224
224
  if (d && a) {
225
- const { key: m, title: p, folder: h } = d;
226
- let u = It(t, e, h, m);
227
- if (u || (u = ge(m, {
228
- title: p,
225
+ const { key: y, title: m, folder: h } = d;
226
+ let u = It(t, e, h, y);
227
+ if (u || (u = ge(y, {
228
+ title: m,
229
229
  description: `Local ${r ? "dynamic" : "static"} widget`
230
230
  })), r) {
231
231
  const g = a;
232
- i.push(ct(m, g, u));
232
+ i.push(ct(y, g, u));
233
233
  } else {
234
234
  const g = a.default || a;
235
- i.push($t(m, g, u));
235
+ i.push($t(y, g, u));
236
236
  }
237
237
  }
238
238
  }
239
239
  return i;
240
240
  }, Fe = (e) => {
241
241
  let n;
242
- const t = /* @__PURE__ */ new Set(), r = (p, h) => {
243
- const u = typeof p == "function" ? p(n) : p;
242
+ const t = /* @__PURE__ */ new Set(), r = (m, h) => {
243
+ const u = typeof m == "function" ? m(n) : m;
244
244
  if (!Object.is(u, n)) {
245
245
  const g = n;
246
- n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, g));
246
+ n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((p) => p(n, g));
247
247
  }
248
- }, i = () => n, d = { setState: r, getState: i, getInitialState: () => m, subscribe: (p) => (t.add(p), () => t.delete(p)) }, m = n = e(r, i, d);
248
+ }, i = () => n, d = { setState: r, getState: i, getInitialState: () => y, subscribe: (m) => (t.add(m), () => t.delete(m)) }, y = n = e(r, i, d);
249
249
  return d;
250
250
  }, Ot = ((e) => e ? Fe(e) : Fe), Rt = (e) => e;
251
251
  function kt(e, n = Rt) {
@@ -307,9 +307,9 @@ const jt = (e) => {
307
307
  }, Vt = (e, n, t) => {
308
308
  if ((t || "").trim().length > 0) {
309
309
  const r = e.childWidgetsConfig.filter(
310
- (m) => m.parentWidgetKey !== t
310
+ (y) => y.parentWidgetKey !== t
311
311
  ), i = e.childWidgetsConfig.filter(
312
- (m) => m.parentWidgetKey === t && m.widgetKey !== n
312
+ (y) => y.parentWidgetKey === t && y.widgetKey !== n
313
313
  ), o = [...r, ...i];
314
314
  let a = {
315
315
  ...e,
@@ -348,12 +348,12 @@ const jt = (e) => {
348
348
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
349
349
  updatedDashboardConfig: e
350
350
  };
351
- const m = [...o], [p] = m.splice(a, 1);
352
- return m.splice(d, 0, p), {
351
+ const y = [...o], [m] = y.splice(a, 1);
352
+ return y.splice(d, 0, m), {
353
353
  success: !0,
354
354
  updatedDashboardConfig: {
355
355
  ...e,
356
- childWidgetsConfig: [...i, ...m]
356
+ childWidgetsConfig: [...i, ...y]
357
357
  }
358
358
  };
359
359
  } else {
@@ -365,8 +365,8 @@ const jt = (e) => {
365
365
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
366
366
  updatedDashboardConfig: e
367
367
  };
368
- const d = [...i], [m] = d.splice(o, 1);
369
- return d.splice(a, 0, m), {
368
+ const d = [...i], [y] = d.splice(o, 1);
369
+ return d.splice(a, 0, y), {
370
370
  success: !0,
371
371
  updatedDashboardConfig: {
372
372
  ...e,
@@ -462,7 +462,7 @@ const jt = (e) => {
462
462
  moveWidget: (t, r, i) => {
463
463
  const o = n(), a = Yt(o.currentDashboardConfig, t, r, i), d = [
464
464
  ...o.allDashboardConfigs.filter(
465
- (m) => m.dashboardId !== a.updatedDashboardConfig.dashboardId
465
+ (y) => y.dashboardId !== a.updatedDashboardConfig.dashboardId
466
466
  ),
467
467
  a.updatedDashboardConfig
468
468
  ];
@@ -484,29 +484,29 @@ const jt = (e) => {
484
484
  return o.length < 1 ? [r] : (o.forEach((a) => {
485
485
  a.dashboardId || (a.dashboardId = "default"), a.dashboardName || (a.dashboardName = `Dashboard ${a.dashboardId}`), a.responsiveGrid = a.responsiveGrid ?? !1, (a.widgets || []).length < 1 && (a.widgets = r.widgets);
486
486
  const d = (a.cssSettings || []).filter(
487
- (m) => r.cssSettings.some((p) => p.key === m.key)
487
+ (y) => r.cssSettings.some((m) => m.key === y.key)
488
488
  );
489
489
  if (d.length < 1)
490
490
  a.cssSettings = [...r.cssSettings];
491
491
  else {
492
- d.forEach((p) => {
493
- p.value = (p.value || "").replace(/NaN/g, "");
492
+ d.forEach((m) => {
493
+ m.value = (m.value || "").replace(/NaN/g, "");
494
494
  const h = r.cssSettings.find(
495
- (u) => u.key === p.key
495
+ (u) => u.key === m.key
496
496
  );
497
497
  h && (Object.keys(h).forEach((u) => {
498
- u in p || (p[u] = h[u]);
499
- }), p.step = h.step, p.minValue = h.minValue, p.defaultValue = h.defaultValue, p.defaultUnit = h.defaultUnit, /\d+/g.test(p.value) === !1 && (p.value = h ? h.value : "1.0rem"));
498
+ u in m || (m[u] = h[u]);
499
+ }), m.step = h.step, m.minValue = h.minValue, m.defaultValue = h.defaultValue, m.defaultUnit = h.defaultUnit, /\d+/g.test(m.value) === !1 && (m.value = h ? h.value : "1.0rem"));
500
500
  });
501
- const m = r.cssSettings.filter((p) => !d.some(
502
- (h) => h.key === p.key
501
+ const y = r.cssSettings.filter((m) => !d.some(
502
+ (h) => h.key === m.key
503
503
  ));
504
- a.cssSettings = [...d, ...m];
504
+ a.cssSettings = [...d, ...y];
505
505
  }
506
506
  a.widgets = a.widgets.filter(
507
- (m) => m.includes("WidgetContainer") || t.has(m)
507
+ (y) => y.includes("WidgetContainer") || t.has(y)
508
508
  ), a.childWidgetsConfig = a.childWidgetsConfig.filter(
509
- (m) => t.has(m.widgetKey)
509
+ (y) => t.has(y.widgetKey)
510
510
  ), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
511
511
  }), o);
512
512
  } catch (o) {
@@ -529,10 +529,10 @@ const jt = (e) => {
529
529
  getSavedDashboards: zt,
530
530
  saveDashboards: Bt
531
531
  }, Rn = () => Kt, kn = () => {
532
- const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
532
+ const [e, n] = le({}), [t, r] = le({}), i = ue((h) => {
533
533
  const u = h.dashboardId;
534
534
  n((g) => {
535
- const y = {
535
+ const p = {
536
536
  undoIndex: 0,
537
537
  config: h
538
538
  };
@@ -541,20 +541,20 @@ const jt = (e) => {
541
541
  [u]: 0
542
542
  })), {
543
543
  ...g,
544
- [u]: [y]
544
+ [u]: [p]
545
545
  // Forces a reset to just this one entry
546
546
  };
547
547
  });
548
548
  }, []), o = ue(
549
549
  (h) => {
550
550
  n((u) => {
551
- const g = h.dashboardId, y = u[g] || [], w = t[g] ?? -1, v = y.slice(0, w + 1), b = {
551
+ const g = h.dashboardId, p = u[g] || [], w = t[g] ?? -1, v = p.slice(0, w + 1), b = {
552
552
  undoIndex: v.length,
553
553
  // New index based on trimmed length
554
554
  config: h
555
555
  }, C = [...v, b];
556
- return r((T) => ({
557
- ...T,
556
+ return r((N) => ({
557
+ ...N,
558
558
  [g]: C.length - 1
559
559
  // Index is now the last element's index
560
560
  })), {
@@ -568,27 +568,27 @@ const jt = (e) => {
568
568
  n((u) => {
569
569
  if (!u[h])
570
570
  return u;
571
- const { [h]: g, ...y } = u;
572
- return y;
571
+ const { [h]: g, ...p } = u;
572
+ return p;
573
573
  }), r((u) => {
574
- const { [h]: g, ...y } = u;
575
- return y;
574
+ const { [h]: g, ...p } = u;
575
+ return p;
576
576
  });
577
577
  }, []), d = ue(
578
578
  (h) => {
579
579
  r((u) => {
580
- const g = u[h] ?? -1, y = Math.max(0, g - 1);
581
- return y !== g ? { ...u, [h]: y } : u;
580
+ const g = u[h] ?? -1, p = Math.max(0, g - 1);
581
+ return p !== g ? { ...u, [h]: p } : u;
582
582
  });
583
583
  },
584
584
  [
585
585
  //loadConfigFromHistory
586
586
  ]
587
- ), m = ue(
587
+ ), y = ue(
588
588
  (h) => {
589
589
  r((u) => {
590
- const g = e[h]?.length || 0, y = u[h] ?? -1, w = Math.min(g - 1, y + 1);
591
- return w !== y ? { ...u, [h]: w } : u;
590
+ const g = e[h]?.length || 0, p = u[h] ?? -1, w = Math.min(g - 1, p + 1);
591
+ return w !== p ? { ...u, [h]: w } : u;
592
592
  });
593
593
  },
594
594
  [
@@ -602,10 +602,10 @@ const jt = (e) => {
602
602
  addUndoEntry: o,
603
603
  removeUndoHistoryForDashboard: a,
604
604
  undo: d,
605
- redo: m,
605
+ redo: y,
606
606
  getUndoStatus: (h) => {
607
- const u = t[h] ?? -1, g = e[h]?.length || 0, y = u <= 0, w = u >= g - 1;
608
- return { isUndoDisabled: y, isRedoDisabled: w };
607
+ const u = t[h] ?? -1, g = e[h]?.length || 0, p = u <= 0, w = u >= g - 1;
608
+ return { isUndoDisabled: p, isRedoDisabled: w };
609
609
  },
610
610
  undoHistory: e,
611
611
  historyIndex: t
@@ -863,14 +863,14 @@ const Z = (e, ...n) => [
863
863
  onKeyDown: o,
864
864
  placeholder: a = ""
865
865
  }) => {
866
- const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), m = Z("flex flex-col mb-4", n || ""), h = `${Z(`
866
+ const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), y = Z("flex flex-col mb-4", n || ""), h = `${Z(`
867
867
  block w-full rounded-md px-3 py-1.5 text-base
868
868
  bg-formfield content-formfield
869
869
  outline-1 -outline-offset-1 outline-primary
870
870
  placeholder:text-disabled
871
871
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
872
872
  `)} ${d}`;
873
- return /* @__PURE__ */ W("div", { className: m, children: [
873
+ return /* @__PURE__ */ W("div", { className: y, children: [
874
874
  /* @__PURE__ */ s("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
875
875
  /* @__PURE__ */ s(
876
876
  "input",
@@ -905,15 +905,15 @@ function J(e) {
905
905
  buttonType: o,
906
906
  category: a,
907
907
  px: d,
908
- py: m,
909
- children: p,
908
+ py: y,
909
+ children: m,
910
910
  ...h
911
911
  } = e, u = () => {
912
- const y = e.isIconButton || !1, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
912
+ const p = e.isIconButton || !1, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", N = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
913
913
  let D = (e.borderColor || "").trim();
914
914
  D = D.length > 0 ? D : "";
915
- const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
916
- if (y)
915
+ const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), T = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
916
+ if (p)
917
917
  return Z(
918
918
  "flex flex-row items-center",
919
919
  b ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
@@ -924,7 +924,7 @@ function J(e) {
924
924
  "rounded-sm focus:outline-none focus:ring focus:ring-offset",
925
925
  "transition-all duration-150",
926
926
  "text-sm",
927
- `font-${T}`
927
+ `font-${N}`
928
928
  ];
929
929
  if (b)
930
930
  v === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
@@ -935,21 +935,21 @@ function J(e) {
935
935
  const E = O.replace(/\[category\]/g, w).trim();
936
936
  $.push(E);
937
937
  }
938
- return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${N}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
938
+ return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${T}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
939
939
  }, g = () => {
940
- const y = e.px || 0.7, w = e.py || 0.25;
940
+ const p = e.px || 0.7, w = e.py || 0.25;
941
941
  return {
942
- padding: r ? 0 : `${w}rem ${y}rem `
942
+ padding: r ? 0 : `${w}rem ${p}rem `
943
943
  };
944
944
  };
945
- return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: g(), ...h, children: p });
945
+ return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: g(), ...h, children: m });
946
946
  }
947
947
  const nn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
948
948
  function rn(e) {
949
949
  const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = nn(e);
950
950
  return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
951
951
  }
952
- const Xn = le(
952
+ const Xn = ce(
953
953
  (e, n) => {
954
954
  const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), a = Z(
955
955
  `w-full flex overflow-hidden justify-between items-center gap-0
@@ -958,7 +958,7 @@ const Xn = le(
958
958
  );
959
959
  return /* @__PURE__ */ s(rn, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
960
960
  }
961
- ), Gn = le((e, n) => /* @__PURE__ */ s(
961
+ ), Gn = ce((e, n) => /* @__PURE__ */ s(
962
962
  "div",
963
963
  {
964
964
  "data-testid": e.testId || "not-set",
@@ -969,7 +969,7 @@ const Xn = le(
969
969
  },
970
970
  children: e.children
971
971
  }
972
- )), Zn = le(
972
+ )), Zn = ce(
973
973
  (e, n) => /* @__PURE__ */ s(
974
974
  "div",
975
975
  {
@@ -978,7 +978,7 @@ const Xn = le(
978
978
  children: e.children
979
979
  }
980
980
  )
981
- ), Jn = le((e, n) => /* @__PURE__ */ s(
981
+ ), Jn = ce((e, n) => /* @__PURE__ */ s(
982
982
  "div",
983
983
  {
984
984
  "data-testid": e.testId || "not-set",
@@ -998,15 +998,15 @@ var Ue;
998
998
  function an() {
999
999
  if (Ue) return V;
1000
1000
  Ue = 1;
1001
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1001
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1002
1002
  function S(c) {
1003
1003
  if (typeof c == "object" && c !== null) {
1004
- var N = c.$$typeof;
1005
- switch (N) {
1004
+ var T = c.$$typeof;
1005
+ switch (T) {
1006
1006
  case n:
1007
1007
  switch (c = c.type, c) {
1008
+ case y:
1008
1009
  case m:
1009
- case p:
1010
1010
  case r:
1011
1011
  case o:
1012
1012
  case i:
@@ -1017,23 +1017,23 @@ function an() {
1017
1017
  case d:
1018
1018
  case h:
1019
1019
  case w:
1020
- case y:
1020
+ case p:
1021
1021
  case a:
1022
1022
  return c;
1023
1023
  default:
1024
- return N;
1024
+ return T;
1025
1025
  }
1026
1026
  }
1027
1027
  case t:
1028
- return N;
1028
+ return T;
1029
1029
  }
1030
1030
  }
1031
1031
  }
1032
1032
  function D(c) {
1033
- return S(c) === p;
1033
+ return S(c) === m;
1034
1034
  }
1035
- return V.AsyncMode = m, V.ConcurrentMode = p, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = w, V.Memo = y, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(c) {
1036
- return D(c) || S(c) === m;
1035
+ return V.AsyncMode = y, V.ConcurrentMode = m, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = w, V.Memo = p, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(c) {
1036
+ return D(c) || S(c) === y;
1037
1037
  }, V.isConcurrentMode = D, V.isContextConsumer = function(c) {
1038
1038
  return S(c) === d;
1039
1039
  }, V.isContextProvider = function(c) {
@@ -1047,7 +1047,7 @@ function an() {
1047
1047
  }, V.isLazy = function(c) {
1048
1048
  return S(c) === w;
1049
1049
  }, V.isMemo = function(c) {
1050
- return S(c) === y;
1050
+ return S(c) === p;
1051
1051
  }, V.isPortal = function(c) {
1052
1052
  return S(c) === t;
1053
1053
  }, V.isProfiler = function(c) {
@@ -1057,17 +1057,17 @@ function an() {
1057
1057
  }, V.isSuspense = function(c) {
1058
1058
  return S(c) === u;
1059
1059
  }, V.isValidElementType = function(c) {
1060
- return typeof c == "string" || typeof c == "function" || c === r || c === p || c === o || c === i || c === u || c === g || typeof c == "object" && c !== null && (c.$$typeof === w || c.$$typeof === y || c.$$typeof === a || c.$$typeof === d || c.$$typeof === h || c.$$typeof === b || c.$$typeof === C || c.$$typeof === T || c.$$typeof === v);
1060
+ return typeof c == "string" || typeof c == "function" || c === r || c === m || c === o || c === i || c === u || c === g || typeof c == "object" && c !== null && (c.$$typeof === w || c.$$typeof === p || c.$$typeof === a || c.$$typeof === d || c.$$typeof === h || c.$$typeof === b || c.$$typeof === C || c.$$typeof === N || c.$$typeof === v);
1061
1061
  }, V.typeOf = S, V;
1062
1062
  }
1063
1063
  var Y = {};
1064
1064
  var Ve;
1065
1065
  function sn() {
1066
1066
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
1067
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1067
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1068
1068
  function S(_) {
1069
1069
  return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1070
- _ === r || _ === p || _ === o || _ === i || _ === u || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
1070
+ _ === r || _ === m || _ === o || _ === i || _ === u || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === p || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === b || _.$$typeof === C || _.$$typeof === N || _.$$typeof === v);
1071
1071
  }
1072
1072
  function D(_) {
1073
1073
  if (typeof _ == "object" && _ !== null) {
@@ -1076,8 +1076,8 @@ function sn() {
1076
1076
  case n:
1077
1077
  var me = _.type;
1078
1078
  switch (me) {
1079
+ case y:
1079
1080
  case m:
1080
- case p:
1081
1081
  case r:
1082
1082
  case o:
1083
1083
  case i:
@@ -1089,7 +1089,7 @@ function sn() {
1089
1089
  case d:
1090
1090
  case h:
1091
1091
  case w:
1092
- case y:
1092
+ case p:
1093
1093
  case a:
1094
1094
  return je;
1095
1095
  default:
@@ -1101,12 +1101,12 @@ function sn() {
1101
1101
  }
1102
1102
  }
1103
1103
  }
1104
- var c = m, N = p, l = d, f = a, P = n, $ = h, O = r, E = w, z = y, X = t, Q = o, H = i, ee = u, ae = !1;
1104
+ var c = y, T = m, l = d, f = a, P = n, $ = h, O = r, E = w, z = p, X = t, Q = o, H = i, ee = u, ae = !1;
1105
1105
  function de(_) {
1106
- return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) === m;
1106
+ return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) === y;
1107
1107
  }
1108
1108
  function x(_) {
1109
- return D(_) === p;
1109
+ return D(_) === m;
1110
1110
  }
1111
1111
  function M(_) {
1112
1112
  return D(_) === d;
@@ -1127,7 +1127,7 @@ function sn() {
1127
1127
  return D(_) === w;
1128
1128
  }
1129
1129
  function j(_) {
1130
- return D(_) === y;
1130
+ return D(_) === p;
1131
1131
  }
1132
1132
  function F(_) {
1133
1133
  return D(_) === t;
@@ -1141,16 +1141,16 @@ function sn() {
1141
1141
  function G(_) {
1142
1142
  return D(_) === u;
1143
1143
  }
1144
- Y.AsyncMode = c, Y.ConcurrentMode = N, Y.ContextConsumer = l, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
1144
+ Y.AsyncMode = c, Y.ConcurrentMode = T, Y.ContextConsumer = l, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
1145
1145
  })()), Y;
1146
1146
  }
1147
1147
  var Ye;
1148
1148
  function pt() {
1149
1149
  return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = an() : ye.exports = sn()), ye.exports;
1150
1150
  }
1151
- var Te, qe;
1151
+ var Ne, qe;
1152
1152
  function ln() {
1153
- if (qe) return Te;
1153
+ if (qe) return Ne;
1154
1154
  qe = 1;
1155
1155
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1156
1156
  function r(o) {
@@ -1167,39 +1167,39 @@ function ln() {
1167
1167
  return !1;
1168
1168
  for (var a = {}, d = 0; d < 10; d++)
1169
1169
  a["_" + String.fromCharCode(d)] = d;
1170
- var m = Object.getOwnPropertyNames(a).map(function(h) {
1170
+ var y = Object.getOwnPropertyNames(a).map(function(h) {
1171
1171
  return a[h];
1172
1172
  });
1173
- if (m.join("") !== "0123456789")
1173
+ if (y.join("") !== "0123456789")
1174
1174
  return !1;
1175
- var p = {};
1175
+ var m = {};
1176
1176
  return "abcdefghijklmnopqrst".split("").forEach(function(h) {
1177
- p[h] = h;
1178
- }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
1177
+ m[h] = h;
1178
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
1179
1179
  } catch {
1180
1180
  return !1;
1181
1181
  }
1182
1182
  }
1183
- return Te = i() ? Object.assign : function(o, a) {
1184
- for (var d, m = r(o), p, h = 1; h < arguments.length; h++) {
1183
+ return Ne = i() ? Object.assign : function(o, a) {
1184
+ for (var d, y = r(o), m, h = 1; h < arguments.length; h++) {
1185
1185
  d = Object(arguments[h]);
1186
1186
  for (var u in d)
1187
- n.call(d, u) && (m[u] = d[u]);
1187
+ n.call(d, u) && (y[u] = d[u]);
1188
1188
  if (e) {
1189
- p = e(d);
1190
- for (var g = 0; g < p.length; g++)
1191
- t.call(d, p[g]) && (m[p[g]] = d[p[g]]);
1189
+ m = e(d);
1190
+ for (var g = 0; g < m.length; g++)
1191
+ t.call(d, m[g]) && (y[m[g]] = d[m[g]]);
1192
1192
  }
1193
1193
  }
1194
- return m;
1195
- }, Te;
1194
+ return y;
1195
+ }, Ne;
1196
1196
  }
1197
- var Ne, ze;
1197
+ var Te, ze;
1198
1198
  function Oe() {
1199
- if (ze) return Ne;
1199
+ if (ze) return Te;
1200
1200
  ze = 1;
1201
1201
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1202
- return Ne = e, Ne;
1202
+ return Te = e, Te;
1203
1203
  }
1204
1204
  var Ee, Be;
1205
1205
  function yt() {
@@ -1222,7 +1222,7 @@ function cn() {
1222
1222
  }
1223
1223
  };
1224
1224
  }
1225
- function i(o, a, d, m, p) {
1225
+ function i(o, a, d, y, m) {
1226
1226
  if (process.env.NODE_ENV !== "production") {
1227
1227
  for (var h in o)
1228
1228
  if (r(o, h)) {
@@ -1230,21 +1230,21 @@ function cn() {
1230
1230
  try {
1231
1231
  if (typeof o[h] != "function") {
1232
1232
  var g = Error(
1233
- (m || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1233
+ (y || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1234
1234
  );
1235
1235
  throw g.name = "Invariant Violation", g;
1236
1236
  }
1237
- u = o[h](a, h, m, d, null, n);
1237
+ u = o[h](a, h, y, d, null, n);
1238
1238
  } catch (w) {
1239
1239
  u = w;
1240
1240
  }
1241
1241
  if (u && !(u instanceof Error) && e(
1242
- (m || "React class") + ": type specification of " + d + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1242
+ (y || "React class") + ": type specification of " + d + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1243
1243
  ), u instanceof Error && !(u.message in t)) {
1244
1244
  t[u.message] = !0;
1245
- var y = p ? p() : "";
1245
+ var p = m ? m() : "";
1246
1246
  e(
1247
- "Failed " + d + " type: " + u.message + (y ?? "")
1247
+ "Failed " + d + " type: " + u.message + (p ?? "")
1248
1248
  );
1249
1249
  }
1250
1250
  }
@@ -1261,24 +1261,24 @@ function dn() {
1261
1261
  var e = pt(), n = ln(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ yt(), i = /* @__PURE__ */ cn(), o = function() {
1262
1262
  };
1263
1263
  process.env.NODE_ENV !== "production" && (o = function(d) {
1264
- var m = "Warning: " + d;
1265
- typeof console < "u" && console.error(m);
1264
+ var y = "Warning: " + d;
1265
+ typeof console < "u" && console.error(y);
1266
1266
  try {
1267
- throw new Error(m);
1267
+ throw new Error(y);
1268
1268
  } catch {
1269
1269
  }
1270
1270
  });
1271
1271
  function a() {
1272
1272
  return null;
1273
1273
  }
1274
- return Me = function(d, m) {
1275
- var p = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1274
+ return Me = function(d, y) {
1275
+ var m = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1276
1276
  function u(x) {
1277
- var M = x && (p && x[p] || x[h]);
1277
+ var M = x && (m && x[m] || x[h]);
1278
1278
  if (typeof M == "function")
1279
1279
  return M;
1280
1280
  }
1281
- var g = "<<anonymous>>", y = {
1281
+ var g = "<<anonymous>>", p = {
1282
1282
  array: C("array"),
1283
1283
  bigint: C("bigint"),
1284
1284
  bool: C("boolean"),
@@ -1287,11 +1287,11 @@ function dn() {
1287
1287
  object: C("object"),
1288
1288
  string: C("string"),
1289
1289
  symbol: C("symbol"),
1290
- any: T(),
1290
+ any: N(),
1291
1291
  arrayOf: S,
1292
1292
  element: D(),
1293
1293
  elementType: c(),
1294
- instanceOf: N,
1294
+ instanceOf: T,
1295
1295
  node: $(),
1296
1296
  objectOf: f,
1297
1297
  oneOf: l,
@@ -1311,7 +1311,7 @@ function dn() {
1311
1311
  var M = {}, A = 0;
1312
1312
  function k(L, R, j, F, q, U, G) {
1313
1313
  if (F = F || g, U = U || j, G !== t) {
1314
- if (m) {
1314
+ if (y) {
1315
1315
  var _ = new Error(
1316
1316
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1317
1317
  );
@@ -1343,7 +1343,7 @@ function dn() {
1343
1343
  }
1344
1344
  return b(M);
1345
1345
  }
1346
- function T() {
1346
+ function N() {
1347
1347
  return b(a);
1348
1348
  }
1349
1349
  function S(x) {
@@ -1386,7 +1386,7 @@ function dn() {
1386
1386
  }
1387
1387
  return b(x);
1388
1388
  }
1389
- function N(x) {
1389
+ function T(x) {
1390
1390
  function M(A, k, I, L, R) {
1391
1391
  if (!(A[k] instanceof x)) {
1392
1392
  var j = x.name || g, F = de(A[k]);
@@ -1572,7 +1572,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1572
1572
  function de(x) {
1573
1573
  return !x.constructor || !x.constructor.name ? g : x.constructor.name;
1574
1574
  }
1575
- return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
1575
+ return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
1576
1576
  }, Me;
1577
1577
  }
1578
1578
  var Pe, Xe;
@@ -1585,7 +1585,7 @@ function un() {
1585
1585
  function t() {
1586
1586
  }
1587
1587
  return t.resetWarningCache = n, Pe = function() {
1588
- function r(a, d, m, p, h, u) {
1588
+ function r(a, d, y, m, h, u) {
1589
1589
  if (u !== e) {
1590
1590
  var g = new Error(
1591
1591
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -1659,7 +1659,7 @@ function we() {
1659
1659
  value: !0
1660
1660
  }), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
1661
1661
  function e(o, a) {
1662
- for (let d = 0, m = o.length; d < m; d++)
1662
+ for (let d = 0, y = o.length; d < y; d++)
1663
1663
  if (a.apply(a, [o[d], d, o])) return o[d];
1664
1664
  }
1665
1665
  function n(o) {
@@ -1701,8 +1701,8 @@ function hn() {
1701
1701
  }
1702
1702
  function i(o) {
1703
1703
  let a = "", d = !0;
1704
- for (let m = 0; m < o.length; m++)
1705
- d ? (a += o[m].toUpperCase(), d = !1) : o[m] === "-" ? d = !0 : a += o[m];
1704
+ for (let y = 0; y < o.length; y++)
1705
+ d ? (a += o[y].toUpperCase(), d = !1) : o[y] === "-" ? d = !0 : a += o[y];
1706
1706
  return a;
1707
1707
  }
1708
1708
  return ie.default = n(), ie;
@@ -1712,7 +1712,7 @@ function Re() {
1712
1712
  if (et) return B;
1713
1713
  et = 1, Object.defineProperty(B, "__esModule", {
1714
1714
  value: !0
1715
- }), B.addClassName = c, B.addEvent = a, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = m, B.outerWidth = p, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1715
+ }), B.addClassName = c, B.addEvent = a, B.addUserSelectStyles = N, B.createCSSTransform = p, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = y, B.outerWidth = m, B.removeClassName = T, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
1716
1716
  var e = we(), n = t(hn());
1717
1717
  function t(l, f) {
1718
1718
  if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
@@ -1759,12 +1759,12 @@ function Re() {
1759
1759
  };
1760
1760
  l.removeEventListener ? l.removeEventListener(f, P, O) : l.detachEvent ? l.detachEvent("on" + f, P) : l["on" + f] = null;
1761
1761
  }
1762
- function m(l) {
1762
+ function y(l) {
1763
1763
  let f = l.clientHeight;
1764
1764
  const P = l.ownerDocument.defaultView.getComputedStyle(l);
1765
1765
  return f += (0, e.int)(P.borderTopWidth), f += (0, e.int)(P.borderBottomWidth), f;
1766
1766
  }
1767
- function p(l) {
1767
+ function m(l) {
1768
1768
  let f = l.clientWidth;
1769
1769
  const P = l.ownerDocument.defaultView.getComputedStyle(l);
1770
1770
  return f += (0, e.int)(P.borderLeftWidth), f += (0, e.int)(P.borderRightWidth), f;
@@ -1789,7 +1789,7 @@ function Re() {
1789
1789
  y: z
1790
1790
  };
1791
1791
  }
1792
- function y(l, f) {
1792
+ function p(l, f) {
1793
1793
  const P = v(l, f, "px");
1794
1794
  return {
1795
1795
  [(0, n.browserPrefixToKey)("transform", n.default)]: P
@@ -1816,7 +1816,7 @@ function Re() {
1816
1816
  if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
1817
1817
  if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
1818
1818
  }
1819
- function T(l) {
1819
+ function N(l) {
1820
1820
  if (!l) return;
1821
1821
  let f = l.getElementById("react-draggable-style-el");
1822
1822
  f || (f = l.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
@@ -1831,7 +1831,7 @@ function Re() {
1831
1831
  function D(l) {
1832
1832
  if (l)
1833
1833
  try {
1834
- if (l.body && N(l.body, "react-draggable-transparent-selection"), l.selection)
1834
+ if (l.body && T(l.body, "react-draggable-transparent-selection"), l.selection)
1835
1835
  l.selection.empty();
1836
1836
  else {
1837
1837
  const f = (l.defaultView || window).getSelection();
@@ -1843,7 +1843,7 @@ function Re() {
1843
1843
  function c(l, f) {
1844
1844
  l.classList ? l.classList.add(f) : l.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (l.className += ` ${f}`);
1845
1845
  }
1846
- function N(l, f) {
1846
+ function T(l, f) {
1847
1847
  l.classList ? l.classList.remove(f) : l.className = l.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1848
1848
  }
1849
1849
  return B;
@@ -1853,23 +1853,23 @@ function bt() {
1853
1853
  if (tt) return ne;
1854
1854
  tt = 1, Object.defineProperty(ne, "__esModule", {
1855
1855
  value: !0
1856
- }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = m, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
1856
+ }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = y, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
1857
1857
  var e = we(), n = Re();
1858
- function t(u, g, y) {
1859
- if (!u.props.bounds) return [g, y];
1858
+ function t(u, g, p) {
1859
+ if (!u.props.bounds) return [g, p];
1860
1860
  let {
1861
1861
  bounds: w
1862
1862
  } = u.props;
1863
- w = typeof w == "string" ? w : p(w);
1863
+ w = typeof w == "string" ? w : m(w);
1864
1864
  const v = h(u);
1865
1865
  if (typeof w == "string") {
1866
1866
  const {
1867
1867
  ownerDocument: b
1868
1868
  } = v, C = b.defaultView;
1869
- let T;
1870
- if (w === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(w), !(T instanceof C.HTMLElement))
1869
+ let N;
1870
+ if (w === "parent" ? N = v.parentNode : N = v.getRootNode().querySelector(w), !(N instanceof C.HTMLElement))
1871
1871
  throw new Error('Bounds selector "' + w + '" could not find an element.');
1872
- const S = T, D = C.getComputedStyle(v), c = C.getComputedStyle(S);
1872
+ const S = N, D = C.getComputedStyle(v), c = C.getComputedStyle(S);
1873
1873
  w = {
1874
1874
  left: -v.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
1875
1875
  top: -v.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
@@ -1877,10 +1877,10 @@ function bt() {
1877
1877
  bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
1878
1878
  };
1879
1879
  }
1880
- return (0, e.isNum)(w.right) && (g = Math.min(g, w.right)), (0, e.isNum)(w.bottom) && (y = Math.min(y, w.bottom)), (0, e.isNum)(w.left) && (g = Math.max(g, w.left)), (0, e.isNum)(w.top) && (y = Math.max(y, w.top)), [g, y];
1880
+ return (0, e.isNum)(w.right) && (g = Math.min(g, w.right)), (0, e.isNum)(w.bottom) && (p = Math.min(p, w.bottom)), (0, e.isNum)(w.left) && (g = Math.max(g, w.left)), (0, e.isNum)(w.top) && (p = Math.max(p, w.top)), [g, p];
1881
1881
  }
1882
- function r(u, g, y) {
1883
- const w = Math.round(g / u[0]) * u[0], v = Math.round(y / u[1]) * u[1];
1882
+ function r(u, g, p) {
1883
+ const w = Math.round(g / u[0]) * u[0], v = Math.round(p / u[1]) * u[1];
1884
1884
  return [w, v];
1885
1885
  }
1886
1886
  function i(u) {
@@ -1889,45 +1889,45 @@ function bt() {
1889
1889
  function o(u) {
1890
1890
  return u.props.axis === "both" || u.props.axis === "y";
1891
1891
  }
1892
- function a(u, g, y) {
1892
+ function a(u, g, p) {
1893
1893
  const w = typeof g == "number" ? (0, n.getTouch)(u, g) : null;
1894
1894
  if (typeof g == "number" && !w) return null;
1895
- const v = h(y), b = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
1896
- return (0, n.offsetXYFromParent)(w || u, b, y.props.scale);
1895
+ const v = h(p), b = p.props.offsetParent || v.offsetParent || v.ownerDocument.body;
1896
+ return (0, n.offsetXYFromParent)(w || u, b, p.props.scale);
1897
1897
  }
1898
- function d(u, g, y) {
1898
+ function d(u, g, p) {
1899
1899
  const w = !(0, e.isNum)(u.lastX), v = h(u);
1900
1900
  return w ? {
1901
1901
  node: v,
1902
1902
  deltaX: 0,
1903
1903
  deltaY: 0,
1904
1904
  lastX: g,
1905
- lastY: y,
1905
+ lastY: p,
1906
1906
  x: g,
1907
- y
1907
+ y: p
1908
1908
  } : {
1909
1909
  node: v,
1910
1910
  deltaX: g - u.lastX,
1911
- deltaY: y - u.lastY,
1911
+ deltaY: p - u.lastY,
1912
1912
  lastX: u.lastX,
1913
1913
  lastY: u.lastY,
1914
1914
  x: g,
1915
- y
1915
+ y: p
1916
1916
  };
1917
1917
  }
1918
- function m(u, g) {
1919
- const y = u.props.scale;
1918
+ function y(u, g) {
1919
+ const p = u.props.scale;
1920
1920
  return {
1921
1921
  node: g.node,
1922
- x: u.state.x + g.deltaX / y,
1923
- y: u.state.y + g.deltaY / y,
1924
- deltaX: g.deltaX / y,
1925
- deltaY: g.deltaY / y,
1922
+ x: u.state.x + g.deltaX / p,
1923
+ y: u.state.y + g.deltaY / p,
1924
+ deltaX: g.deltaX / p,
1925
+ deltaY: g.deltaY / p,
1926
1926
  lastX: u.state.x,
1927
1927
  lastY: u.state.y
1928
1928
  };
1929
1929
  }
1930
- function p(u) {
1930
+ function m(u) {
1931
1931
  return {
1932
1932
  left: u.left,
1933
1933
  top: u.top,
@@ -1959,25 +1959,25 @@ function gn() {
1959
1959
  rt = 1, Object.defineProperty(he, "__esModule", {
1960
1960
  value: !0
1961
1961
  }), he.default = void 0;
1962
- var e = m(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = we(), a = d(xt());
1962
+ var e = y(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = we(), a = d(xt());
1963
1963
  function d(v) {
1964
1964
  return v && v.__esModule ? v : { default: v };
1965
1965
  }
1966
- function m(v, b) {
1967
- if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
1968
- return (m = function(S, D) {
1966
+ function y(v, b) {
1967
+ if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1968
+ return (y = function(S, D) {
1969
1969
  if (!D && S && S.__esModule) return S;
1970
- var c, N, l = { __proto__: null, default: S };
1970
+ var c, T, l = { __proto__: null, default: S };
1971
1971
  if (S === null || typeof S != "object" && typeof S != "function") return l;
1972
- if (c = D ? T : C) {
1972
+ if (c = D ? N : C) {
1973
1973
  if (c.has(S)) return c.get(S);
1974
1974
  c.set(S, l);
1975
1975
  }
1976
- for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? c(l, f, N) : l[f] = S[f]);
1976
+ for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((T = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (T.get || T.set) ? c(l, f, T) : l[f] = S[f]);
1977
1977
  return l;
1978
1978
  })(v, b);
1979
1979
  }
1980
- function p(v, b, C) {
1980
+ function m(v, b, C) {
1981
1981
  return (b = h(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
1982
1982
  }
1983
1983
  function h(v) {
@@ -1988,8 +1988,8 @@ function gn() {
1988
1988
  if (typeof v != "object" || !v) return v;
1989
1989
  var C = v[Symbol.toPrimitive];
1990
1990
  if (C !== void 0) {
1991
- var T = C.call(v, b);
1992
- if (typeof T != "object") return T;
1991
+ var N = C.call(v, b);
1992
+ if (typeof N != "object") return N;
1993
1993
  throw new TypeError("@@toPrimitive must return a primitive value.");
1994
1994
  }
1995
1995
  return (b === "string" ? String : Number)(v);
@@ -2006,17 +2006,17 @@ function gn() {
2006
2006
  stop: "mouseup"
2007
2007
  }
2008
2008
  };
2009
- let y = g.mouse, w = class extends e.Component {
2009
+ let p = g.mouse, w = class extends e.Component {
2010
2010
  constructor() {
2011
- super(...arguments), p(this, "dragging", !1), p(this, "lastX", NaN), p(this, "lastY", NaN), p(this, "touchIdentifier", null), p(this, "mounted", !1), p(this, "handleDragStart", (b) => {
2011
+ super(...arguments), m(this, "dragging", !1), m(this, "lastX", NaN), m(this, "lastY", NaN), m(this, "touchIdentifier", null), m(this, "mounted", !1), m(this, "handleDragStart", (b) => {
2012
2012
  if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
2013
2013
  const C = this.findDOMNode();
2014
2014
  if (!C || !C.ownerDocument || !C.ownerDocument.body)
2015
2015
  throw new Error("<DraggableCore> not mounted on DragStart!");
2016
2016
  const {
2017
- ownerDocument: T
2017
+ ownerDocument: N
2018
2018
  } = C;
2019
- if (this.props.disabled || !(b.target instanceof T.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, C))
2019
+ if (this.props.disabled || !(b.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, C))
2020
2020
  return;
2021
2021
  b.type === "touchstart" && !this.props.allowMobileScroll && b.preventDefault();
2022
2022
  const S = (0, r.getTouchIdentifier)(b);
@@ -2025,22 +2025,22 @@ function gn() {
2025
2025
  if (D == null) return;
2026
2026
  const {
2027
2027
  x: c,
2028
- y: N
2029
- } = D, l = (0, i.createCoreData)(this, c, N);
2030
- (0, a.default)("DraggableCore: handleDragStart: %j", l), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(b, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = c, this.lastY = N, (0, r.addEvent)(T, y.move, this.handleDrag), (0, r.addEvent)(T, y.stop, this.handleDragStop));
2031
- }), p(this, "handleDrag", (b) => {
2028
+ y: T
2029
+ } = D, l = (0, i.createCoreData)(this, c, T);
2030
+ (0, a.default)("DraggableCore: handleDragStart: %j", l), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(b, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = c, this.lastY = T, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
2031
+ }), m(this, "handleDrag", (b) => {
2032
2032
  const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
2033
2033
  if (C == null) return;
2034
2034
  let {
2035
- x: T,
2035
+ x: N,
2036
2036
  y: S
2037
2037
  } = C;
2038
2038
  if (Array.isArray(this.props.grid)) {
2039
- let N = T - this.lastX, l = S - this.lastY;
2040
- if ([N, l] = (0, i.snapToGrid)(this.props.grid, N, l), !N && !l) return;
2041
- T = this.lastX + N, S = this.lastY + l;
2039
+ let T = N - this.lastX, l = S - this.lastY;
2040
+ if ([T, l] = (0, i.snapToGrid)(this.props.grid, T, l), !T && !l) return;
2041
+ N = this.lastX + T, S = this.lastY + l;
2042
2042
  }
2043
- const D = (0, i.createCoreData)(this, T, S);
2043
+ const D = (0, i.createCoreData)(this, N, S);
2044
2044
  if ((0, a.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
2045
2045
  try {
2046
2046
  this.handleDragStop(new MouseEvent("mouseup"));
@@ -2050,24 +2050,24 @@ function gn() {
2050
2050
  }
2051
2051
  return;
2052
2052
  }
2053
- this.lastX = T, this.lastY = S;
2054
- }), p(this, "handleDragStop", (b) => {
2053
+ this.lastX = N, this.lastY = S;
2054
+ }), m(this, "handleDragStop", (b) => {
2055
2055
  if (!this.dragging) return;
2056
2056
  const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
2057
2057
  if (C == null) return;
2058
2058
  let {
2059
- x: T,
2059
+ x: N,
2060
2060
  y: S
2061
2061
  } = C;
2062
2062
  if (Array.isArray(this.props.grid)) {
2063
- let l = T - this.lastX || 0, f = S - this.lastY || 0;
2064
- [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), T = this.lastX + l, S = this.lastY + f;
2063
+ let l = N - this.lastX || 0, f = S - this.lastY || 0;
2064
+ [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), N = this.lastX + l, S = this.lastY + f;
2065
2065
  }
2066
- const D = (0, i.createCoreData)(this, T, S);
2066
+ const D = (0, i.createCoreData)(this, N, S);
2067
2067
  if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
2068
- const N = this.findDOMNode();
2069
- N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, N && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(N.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, y.stop, this.handleDragStop));
2070
- }), p(this, "onMouseDown", (b) => (y = g.mouse, this.handleDragStart(b))), p(this, "onMouseUp", (b) => (y = g.mouse, this.handleDragStop(b))), p(this, "onTouchStart", (b) => (y = g.touch, this.handleDragStart(b))), p(this, "onTouchEnd", (b) => (y = g.touch, this.handleDragStop(b)));
2068
+ const T = this.findDOMNode();
2069
+ T && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(T.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, T && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(T.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(T.ownerDocument, p.stop, this.handleDragStop));
2070
+ }), m(this, "onMouseDown", (b) => (p = g.mouse, this.handleDragStart(b))), m(this, "onMouseUp", (b) => (p = g.mouse, this.handleDragStop(b))), m(this, "onTouchStart", (b) => (p = g.touch, this.handleDragStart(b))), m(this, "onTouchEnd", (b) => (p = g.touch, this.handleDragStop(b)));
2071
2071
  }
2072
2072
  componentDidMount() {
2073
2073
  this.mounted = !0;
@@ -2106,7 +2106,7 @@ function gn() {
2106
2106
  });
2107
2107
  }
2108
2108
  };
2109
- return he.default = w, p(w, "displayName", "DraggableCore"), p(w, "propTypes", {
2109
+ return he.default = w, m(w, "displayName", "DraggableCore"), m(w, "propTypes", {
2110
2110
  /**
2111
2111
  * `allowAnyClick` allows dragging using any mouse button.
2112
2112
  * By default, we only accept the left button.
@@ -2236,7 +2236,7 @@ function gn() {
2236
2236
  className: o.dontSetMe,
2237
2237
  style: o.dontSetMe,
2238
2238
  transform: o.dontSetMe
2239
- }), p(w, "defaultProps", {
2239
+ }), m(w, "defaultProps", {
2240
2240
  allowAnyClick: !1,
2241
2241
  // by default only accept left click
2242
2242
  allowMobileScroll: !1,
@@ -2261,63 +2261,63 @@ function mn() {
2261
2261
  }), Object.defineProperty(e, "DraggableCore", {
2262
2262
  enumerable: !0,
2263
2263
  get: function() {
2264
- return m.default;
2264
+ return y.default;
2265
2265
  }
2266
2266
  }), e.default = void 0;
2267
- var n = u(se), t = h(/* @__PURE__ */ vt()), r = h(st), i = fn(), o = Re(), a = bt(), d = we(), m = h(gn()), p = h(xt());
2267
+ var n = u(se), t = h(/* @__PURE__ */ vt()), r = h(st), i = fn(), o = Re(), a = bt(), d = we(), y = h(gn()), m = h(xt());
2268
2268
  function h(C) {
2269
2269
  return C && C.__esModule ? C : { default: C };
2270
2270
  }
2271
- function u(C, T) {
2271
+ function u(C, N) {
2272
2272
  if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
2273
- return (u = function(c, N) {
2274
- if (!N && c && c.__esModule) return c;
2273
+ return (u = function(c, T) {
2274
+ if (!T && c && c.__esModule) return c;
2275
2275
  var l, f, P = { __proto__: null, default: c };
2276
2276
  if (c === null || typeof c != "object" && typeof c != "function") return P;
2277
- if (l = N ? D : S) {
2277
+ if (l = T ? D : S) {
2278
2278
  if (l.has(c)) return l.get(c);
2279
2279
  l.set(c, P);
2280
2280
  }
2281
2281
  for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(P, $, f) : P[$] = c[$]);
2282
2282
  return P;
2283
- })(C, T);
2283
+ })(C, N);
2284
2284
  }
2285
2285
  function g() {
2286
2286
  return g = Object.assign ? Object.assign.bind() : function(C) {
2287
- for (var T = 1; T < arguments.length; T++) {
2288
- var S = arguments[T];
2287
+ for (var N = 1; N < arguments.length; N++) {
2288
+ var S = arguments[N];
2289
2289
  for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
2290
2290
  }
2291
2291
  return C;
2292
2292
  }, g.apply(null, arguments);
2293
2293
  }
2294
- function y(C, T, S) {
2295
- return (T = w(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
2294
+ function p(C, N, S) {
2295
+ return (N = w(N)) in C ? Object.defineProperty(C, N, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[N] = S, C;
2296
2296
  }
2297
2297
  function w(C) {
2298
- var T = v(C, "string");
2299
- return typeof T == "symbol" ? T : T + "";
2298
+ var N = v(C, "string");
2299
+ return typeof N == "symbol" ? N : N + "";
2300
2300
  }
2301
- function v(C, T) {
2301
+ function v(C, N) {
2302
2302
  if (typeof C != "object" || !C) return C;
2303
2303
  var S = C[Symbol.toPrimitive];
2304
2304
  if (S !== void 0) {
2305
- var D = S.call(C, T);
2305
+ var D = S.call(C, N);
2306
2306
  if (typeof D != "object") return D;
2307
2307
  throw new TypeError("@@toPrimitive must return a primitive value.");
2308
2308
  }
2309
- return (T === "string" ? String : Number)(C);
2309
+ return (N === "string" ? String : Number)(C);
2310
2310
  }
2311
2311
  class b extends n.Component {
2312
2312
  // React 16.3+
2313
2313
  // Arity (props, state)
2314
- static getDerivedStateFromProps(T, S) {
2314
+ static getDerivedStateFromProps(N, S) {
2315
2315
  let {
2316
2316
  position: D
2317
- } = T, {
2317
+ } = N, {
2318
2318
  prevPropsPosition: c
2319
2319
  } = S;
2320
- return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
2320
+ return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, m.default)("Draggable: getDerivedStateFromProps %j", {
2321
2321
  position: D,
2322
2322
  prevPropsPosition: c
2323
2323
  }), {
@@ -2328,17 +2328,17 @@ function mn() {
2328
2328
  }
2329
2329
  }) : null;
2330
2330
  }
2331
- constructor(T) {
2332
- super(T), y(this, "onDragStart", (S, D) => {
2333
- if ((0, p.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
2331
+ constructor(N) {
2332
+ super(N), p(this, "onDragStart", (S, D) => {
2333
+ if ((0, m.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
2334
2334
  this.setState({
2335
2335
  dragging: !0,
2336
2336
  dragged: !0
2337
2337
  });
2338
- }), y(this, "onDrag", (S, D) => {
2338
+ }), p(this, "onDrag", (S, D) => {
2339
2339
  if (!this.state.dragging) return !1;
2340
- (0, p.default)("Draggable: onDrag: %j", D);
2341
- const c = (0, a.createDraggableData)(this, D), N = {
2340
+ (0, m.default)("Draggable: onDrag: %j", D);
2341
+ const c = (0, a.createDraggableData)(this, D), T = {
2342
2342
  x: c.x,
2343
2343
  y: c.y,
2344
2344
  slackX: 0,
@@ -2348,17 +2348,17 @@ function mn() {
2348
2348
  const {
2349
2349
  x: f,
2350
2350
  y: P
2351
- } = N;
2352
- N.x += this.state.slackX, N.y += this.state.slackY;
2353
- const [$, O] = (0, a.getBoundPosition)(this, N.x, N.y);
2354
- N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y), c.x = N.x, c.y = N.y, c.deltaX = N.x - this.state.x, c.deltaY = N.y - this.state.y;
2351
+ } = T;
2352
+ T.x += this.state.slackX, T.y += this.state.slackY;
2353
+ const [$, O] = (0, a.getBoundPosition)(this, T.x, T.y);
2354
+ T.x = $, T.y = O, T.slackX = this.state.slackX + (f - T.x), T.slackY = this.state.slackY + (P - T.y), c.x = T.x, c.y = T.y, c.deltaX = T.x - this.state.x, c.deltaY = T.y - this.state.y;
2355
2355
  }
2356
2356
  if (this.props.onDrag(S, c) === !1) return !1;
2357
- this.setState(N);
2358
- }), y(this, "onDragStop", (S, D) => {
2357
+ this.setState(T);
2358
+ }), p(this, "onDragStop", (S, D) => {
2359
2359
  if (!this.state.dragging || this.props.onStop(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
2360
- (0, p.default)("Draggable: onDragStop: %j", D);
2361
- const N = {
2360
+ (0, m.default)("Draggable: onDragStop: %j", D);
2361
+ const T = {
2362
2362
  dragging: !1,
2363
2363
  slackX: 0,
2364
2364
  slackY: 0
@@ -2368,26 +2368,26 @@ function mn() {
2368
2368
  x: f,
2369
2369
  y: P
2370
2370
  } = this.props.position;
2371
- N.x = f, N.y = P;
2371
+ T.x = f, T.y = P;
2372
2372
  }
2373
- this.setState(N);
2373
+ this.setState(T);
2374
2374
  }), this.state = {
2375
2375
  // Whether or not we are currently dragging.
2376
2376
  dragging: !1,
2377
2377
  // Whether or not we have been dragged before.
2378
2378
  dragged: !1,
2379
2379
  // Current transform x and y.
2380
- x: T.position ? T.position.x : T.defaultPosition.x,
2381
- y: T.position ? T.position.y : T.defaultPosition.y,
2380
+ x: N.position ? N.position.x : N.defaultPosition.x,
2381
+ y: N.position ? N.position.y : N.defaultPosition.y,
2382
2382
  prevPropsPosition: {
2383
- ...T.position
2383
+ ...N.position
2384
2384
  },
2385
2385
  // Used for compensating for out-of-bounds drags
2386
2386
  slackX: 0,
2387
2387
  slackY: 0,
2388
2388
  // Can only determine if SVG after mounting
2389
2389
  isElementSVG: !1
2390
- }, T.position && !(T.onDrag || T.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
2390
+ }, N.position && !(N.onDrag || N.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
2391
2391
  }
2392
2392
  componentDidMount() {
2393
2393
  typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
@@ -2406,11 +2406,11 @@ function mn() {
2406
2406
  }
2407
2407
  render() {
2408
2408
  const {
2409
- axis: T,
2409
+ axis: N,
2410
2410
  bounds: S,
2411
2411
  children: D,
2412
2412
  defaultPosition: c,
2413
- defaultClassName: N,
2413
+ defaultClassName: T,
2414
2414
  defaultClassNameDragging: l,
2415
2415
  defaultClassNameDragged: f,
2416
2416
  position: P,
@@ -2426,11 +2426,11 @@ function mn() {
2426
2426
  y: (0, a.canDragY)(this) && H ? this.state.y : ee.y
2427
2427
  };
2428
2428
  this.state.isElementSVG ? X = (0, o.createSVGTransform)(ae, $) : z = (0, o.createCSSTransform)(ae, $);
2429
- const de = (0, i.clsx)(D.props.className || "", N, {
2429
+ const de = (0, i.clsx)(D.props.className || "", T, {
2430
2430
  [l]: this.state.dragging,
2431
2431
  [f]: this.state.dragged
2432
2432
  });
2433
- return /* @__PURE__ */ n.createElement(m.default, g({}, E, {
2433
+ return /* @__PURE__ */ n.createElement(y.default, g({}, E, {
2434
2434
  onStart: this.onDragStart,
2435
2435
  onDrag: this.onDrag,
2436
2436
  onStop: this.onDragStop
@@ -2444,9 +2444,9 @@ function mn() {
2444
2444
  }));
2445
2445
  }
2446
2446
  }
2447
- e.default = b, y(b, "displayName", "Draggable"), y(b, "propTypes", {
2447
+ e.default = b, p(b, "displayName", "Draggable"), p(b, "propTypes", {
2448
2448
  // Accepts all props <DraggableCore> accepts.
2449
- ...m.default.propTypes,
2449
+ ...y.default.propTypes,
2450
2450
  /**
2451
2451
  * `axis` determines which axis the draggable can move.
2452
2452
  *
@@ -2551,8 +2551,8 @@ function mn() {
2551
2551
  className: d.dontSetMe,
2552
2552
  style: d.dontSetMe,
2553
2553
  transform: d.dontSetMe
2554
- }), y(b, "defaultProps", {
2555
- ...m.default.defaultProps,
2554
+ }), p(b, "defaultProps", {
2555
+ ...y.default.defaultProps,
2556
2556
  axis: "both",
2557
2557
  bounds: !1,
2558
2558
  defaultClassName: "react-draggable",
@@ -2577,7 +2577,7 @@ function pn() {
2577
2577
  return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
2578
2578
  }
2579
2579
  var yn = pn();
2580
- const vn = /* @__PURE__ */ on(yn), bn = le((e, n) => {
2580
+ const vn = /* @__PURE__ */ on(yn), bn = ce((e, n) => {
2581
2581
  const r = {
2582
2582
  ...{
2583
2583
  // 1. Take it out of the document flow
@@ -2605,10 +2605,10 @@ const vn = /* @__PURE__ */ on(yn), bn = le((e, n) => {
2605
2605
  "data-testid": i,
2606
2606
  axis: "both",
2607
2607
  handle: ".handle",
2608
- onStart: (p, h) => {
2608
+ onStart: (m, h) => {
2609
2609
  e.onDraggingChange?.(!0);
2610
2610
  },
2611
- onStop: (p, h) => {
2611
+ onStop: (m, h) => {
2612
2612
  setTimeout(() => {
2613
2613
  e.onDraggingChange?.(!1);
2614
2614
  }, 100);
@@ -2635,7 +2635,7 @@ function tr({ children: e }) {
2635
2635
  }
2636
2636
  const nr = (e) => {
2637
2637
  console.warn("showToast TODO", e);
2638
- }, xn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = le((e, n) => {
2638
+ }, xn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = ce((e, n) => {
2639
2639
  let t = lt(Number(e.zoomScale || 0));
2640
2640
  const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2641
2641
  "--bwj-dashboard-transform-scale": t,
@@ -2653,8 +2653,8 @@ const nr = (e) => {
2653
2653
  r ? i = `${i} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? i = `${i} ${e.borderCssClasses}` : i = `${i} border-card-invert border-opacity-20`, e.noShadow && (i = `${i} no-shadow`), e.noPadding && (i = `${i} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? i = `${i} ${e.backgroundCssClasses}` : i = `${i} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (i = `${i} ${e.size}-widget`);
2654
2654
  const o = () => {
2655
2655
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2656
- }, a = (m) => {
2657
- e.onMoveClick && e.widgetKey && e.onMoveClick(m, e.widgetKey, e.parentWidgetKey);
2656
+ }, a = (y) => {
2657
+ e.onMoveClick && e.widgetKey && e.onMoveClick(y, e.widgetKey, e.parentWidgetKey);
2658
2658
  }, d = Z(
2659
2659
  "widget-header",
2660
2660
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
@@ -2718,7 +2718,7 @@ const nr = (e) => {
2718
2718
  ] }),
2719
2719
  /* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
2720
2720
  ] });
2721
- }, Cn = le(wn);
2721
+ }, Cn = ce(wn);
2722
2722
  function Sn(e) {
2723
2723
  return /* @__PURE__ */ s("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2724
2724
  /* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
@@ -2734,15 +2734,15 @@ function Dn({
2734
2734
  childWidgetsConfig: o,
2735
2735
  widgetCatalog: a,
2736
2736
  isEditing: d,
2737
- onRemoveClick: m,
2738
- onMoveClick: p,
2737
+ onRemoveClick: y,
2738
+ onMoveClick: m,
2739
2739
  selectContainer: h
2740
2740
  }) {
2741
- const u = `${t}`.split("_"), g = u.length > 1, y = g ? u[0] : t, w = a.get(y);
2741
+ const u = `${t}`.split("_"), g = u.length > 1, p = g ? u[0] : t, w = a.get(p);
2742
2742
  if (!w)
2743
2743
  return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2744
2744
  "Widget not found in catalog: ",
2745
- y
2745
+ p
2746
2746
  ] }) });
2747
2747
  let v = null, b = !1;
2748
2748
  if (w.component ? (v = w.component, b = !1) : w.loader && (b = !0, v = at(() => {
@@ -2773,17 +2773,17 @@ function Dn({
2773
2773
  }, [w, t])), !v)
2774
2774
  return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2775
2775
  "Widget definition incomplete: ",
2776
- y
2776
+ p
2777
2777
  ] }) });
2778
- const C = !!w.isContainer, T = g ? gt(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2778
+ const C = !!w.isContainer, N = g ? gt(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
2779
2779
  index: e,
2780
2780
  maxIndex: n,
2781
2781
  widgetKey: t,
2782
2782
  parentWidgetKey: r,
2783
2783
  isEditing: d,
2784
- title: g ? T : w.title,
2785
- onRemoveClick: m,
2786
- onMoveClick: p
2784
+ title: g ? N : w.title,
2785
+ onRemoveClick: y,
2786
+ onMoveClick: m
2787
2787
  }, c = C ? {
2788
2788
  highlight: i === t,
2789
2789
  selectContainer: h,
@@ -2797,21 +2797,21 @@ function Dn({
2797
2797
  parentWidgetKey: l.parentWidgetKey,
2798
2798
  widgetCatalog: a,
2799
2799
  isEditing: d,
2800
- onRemoveClick: m,
2801
- onMoveClick: p
2800
+ onRemoveClick: y,
2801
+ onMoveClick: m
2802
2802
  },
2803
2803
  `${l.widgetKey}_${f}`
2804
2804
  ))
2805
- } : {}, N = () => /* @__PURE__ */ s(v, { ...D, ...c });
2806
- return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ s(N, {}) }) : /* @__PURE__ */ s(N, {});
2805
+ } : {}, T = () => /* @__PURE__ */ s(v, { ...D, ...c });
2806
+ return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ s(T, {}) }) : /* @__PURE__ */ s(T, {});
2807
2807
  }
2808
2808
  const xe = "size-5";
2809
2809
  function ke(e) {
2810
2810
  const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
2811
2811
  let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2812
- const m = ["large", "xlarge"].includes(e.size || "");
2813
- let p = "";
2814
- ["large", "xlarge"].indexOf(e.size || "") > -1 && (p = `${e.size}-widget`);
2812
+ const y = ["large", "xlarge"].includes(e.size || "");
2813
+ let m = "";
2814
+ ["large", "xlarge"].indexOf(e.size || "") > -1 && (m = `${e.size}-widget`);
2815
2815
  let h = "";
2816
2816
  t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
2817
2817
  let u = Z(
@@ -2819,13 +2819,13 @@ function ke(e) {
2819
2819
  r ? "" : "has-no-children",
2820
2820
  i ? "editing" : "",
2821
2821
  h,
2822
- p,
2823
- m ? "widget-container-grid" : "widget-container-flex",
2822
+ m,
2823
+ y ? "widget-container-grid" : "widget-container-flex",
2824
2824
  `direction-${t}`,
2825
2825
  `border ${d}`,
2826
2826
  `${n ? "highlight-container" : ""} ${d}`
2827
2827
  ), g = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
2828
- const y = () => {
2828
+ const p = () => {
2829
2829
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2830
2830
  }, w = (b) => {
2831
2831
  e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
@@ -2899,7 +2899,7 @@ function ke(e) {
2899
2899
  placement: "top",
2900
2900
  title: "Remove Container"
2901
2901
  },
2902
- onClick: () => y(),
2902
+ onClick: () => p(),
2903
2903
  children: /* @__PURE__ */ s(ht, { className: xe })
2904
2904
  }
2905
2905
  )
@@ -2926,44 +2926,47 @@ function We({
2926
2926
  alreadyAdded: n,
2927
2927
  addWidget: t
2928
2928
  }) {
2929
- const r = e.icon || tn, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, m = Z(`
2929
+ const [r, i] = le(!1), o = e.icon || tn, a = e.displayName || "Unknown", d = e.description || "---", m = (e.noDuplicatedWidgets || !1) && n, h = Z(`
2930
2930
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2931
- ${d ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2931
+ ${m ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2932
2932
  `);
2933
- return /* @__PURE__ */ W("div", { className: m, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2934
- d || t();
2933
+ return /* @__PURE__ */ W("div", { className: h, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2934
+ m || t();
2935
2935
  }, children: [
2936
- /* @__PURE__ */ s(r, { className: "" }),
2936
+ /* @__PURE__ */ s(o, { className: "" }),
2937
2937
  /* @__PURE__ */ W("div", { className: "w-full", children: [
2938
2938
  /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2939
- /* @__PURE__ */ s("span", { className: "font-bold", children: i }),
2940
- /* @__PURE__ */ s("div", { className: "text-xs", children: d ? "(Added)" : "" })
2939
+ /* @__PURE__ */ s("span", { className: "font-bold", children: a }),
2940
+ /* @__PURE__ */ s("div", { className: "text-xs", children: m ? "(Added)" : "" })
2941
2941
  ] }),
2942
- /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 text-xs", children: [
2943
- /* @__PURE__ */ s("div", { children: o }),
2944
- /* @__PURE__ */ W("details", { children: [
2945
- /* @__PURE__ */ s("summary", { children: "Externals" }),
2946
- /* @__PURE__ */ s("div", { className: "ml-2 flex flex-col gap-1 text-xs", children: e.externalDependencies.map((h, u) => /* @__PURE__ */ s("div", { children: h }, u)) })
2947
- ] })
2942
+ /* @__PURE__ */ W("div", { className: "flex flex-col text-xs", children: [
2943
+ /* @__PURE__ */ s("div", { children: d }),
2944
+ /* @__PURE__ */ s("div", { className: "mt-3", onClick: (p) => {
2945
+ p.stopPropagation(), p.preventDefault(), i(!r);
2946
+ }, children: "Externals:" }),
2947
+ r && /* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((p, w) => /* @__PURE__ */ W("dd", { children: [
2948
+ "- ",
2949
+ p
2950
+ ] }, w)) })
2948
2951
  ] })
2949
2952
  ] })
2950
2953
  ] });
2951
2954
  }
2952
- function Tn({
2955
+ function Nn({
2953
2956
  item: e,
2954
2957
  onSettingItemChanged: n
2955
2958
  }) {
2956
2959
  const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
2957
2960
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2958
2961
  `), o = (d) => {
2959
- const m = d.key;
2960
- if (["ArrowUp", "ArrowDown"].includes(m)) {
2962
+ const y = d.key;
2963
+ if (["ArrowUp", "ArrowDown"].includes(y)) {
2961
2964
  d.preventDefault();
2962
- const p = Et.incrementOrDecrementValue(
2965
+ const m = Et.incrementOrDecrementValue(
2963
2966
  e,
2964
- m === "ArrowUp" ? 1 : -1
2967
+ y === "ArrowUp" ? 1 : -1
2965
2968
  );
2966
- n(p);
2969
+ n(m);
2967
2970
  }
2968
2971
  }, a = (d) => {
2969
2972
  n({
@@ -3003,13 +3006,13 @@ function sr({
3003
3006
  addContainer: o,
3004
3007
  onSettingItemsUpdated: a,
3005
3008
  onResetToDefaultDashboardClick: d,
3006
- onUndoOrRedo: m,
3007
- onDoneClick: p
3009
+ onUndoOrRedo: y,
3010
+ onDoneClick: m
3008
3011
  }) {
3009
- const [h, u] = ce("Editing"), [g, y] = ce(0), [w, v] = ce(""), C = Array.from(n.keys()).map((E) => ({
3012
+ const [h, u] = le("Editing"), [g, p] = le(0), [w, v] = le(""), C = Array.from(n.keys()).map((E) => ({
3010
3013
  widgetKey: E,
3011
3014
  metaData: Pt(E, n)
3012
- })), T = (E) => {
3015
+ })), N = (E) => {
3013
3016
  v(E.target.value);
3014
3017
  }, S = (E) => {
3015
3018
  const z = w.trim().toLowerCase();
@@ -3020,21 +3023,21 @@ function sr({
3020
3023
  }, c = (E) => Z(
3021
3024
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
3022
3025
  E === g ? "text-primary border-primary" : ""
3023
- ), N = !!e;
3026
+ ), T = !!e;
3024
3027
  St(() => {
3025
3028
  if (e) {
3026
- y(0);
3029
+ p(0);
3027
3030
  const E = gt(e);
3028
3031
  u(`Editing ${E}`);
3029
3032
  } else
3030
3033
  u("Editing Dashboard");
3031
3034
  }, [e]);
3032
3035
  const l = (E) => {
3033
- N ? i(E, e) : i(E);
3036
+ T ? i(E, e) : i(E);
3034
3037
  }, f = (E) => {
3035
3038
  const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
3036
3039
  a(z);
3037
- }, [P, $] = ce(!1);
3040
+ }, [P, $] = le(!1);
3038
3041
  return /* @__PURE__ */ s(
3039
3042
  bn,
3040
3043
  {
@@ -3058,7 +3061,7 @@ function sr({
3058
3061
  "h2",
3059
3062
  {
3060
3063
  className: "flex-1 text-base margin-0 capitalize",
3061
- title: N ? h : `Editing dashboard: ${t.dashboardName}`,
3064
+ title: T ? h : `Editing dashboard: ${t.dashboardName}`,
3062
3065
  children: h
3063
3066
  }
3064
3067
  )
@@ -3074,7 +3077,7 @@ function sr({
3074
3077
  title: "Undo"
3075
3078
  },
3076
3079
  disabled: r.isUndoDisabled,
3077
- onClick: () => m("Undo"),
3080
+ onClick: () => y("Undo"),
3078
3081
  children: /* @__PURE__ */ s(Gt, { className: "size-5" })
3079
3082
  }
3080
3083
  ),
@@ -3088,7 +3091,7 @@ function sr({
3088
3091
  title: "Redo"
3089
3092
  },
3090
3093
  disabled: r.isRedoDisabled,
3091
- onClick: () => m("Redo"),
3094
+ onClick: () => y("Redo"),
3092
3095
  children: /* @__PURE__ */ s(Zt, { className: "size-5" })
3093
3096
  }
3094
3097
  ),
@@ -3108,10 +3111,10 @@ function sr({
3108
3111
  ] })
3109
3112
  ] }),
3110
3113
  /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3111
- /* @__PURE__ */ s("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
3112
- /* @__PURE__ */ s("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
3113
- !N && /* @__PURE__ */ s("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
3114
- !N && /* @__PURE__ */ s("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ s(Ht, {}) })
3114
+ /* @__PURE__ */ s("button", { onClick: () => p(0), className: c(0), children: "Widgets" }),
3115
+ /* @__PURE__ */ s("button", { onClick: () => p(1), className: c(1), children: "Charts" }),
3116
+ !T && /* @__PURE__ */ s("button", { onClick: () => p(2), className: c(2), children: "Containers" }),
3117
+ !T && /* @__PURE__ */ s("button", { onClick: () => p(3), className: c(3), children: /* @__PURE__ */ s(Ht, {}) })
3115
3118
  ] }),
3116
3119
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
3117
3120
  mt,
@@ -3120,7 +3123,7 @@ function sr({
3120
3123
  size: "small",
3121
3124
  className: "w-full",
3122
3125
  value: w,
3123
- onChange: T
3126
+ onChange: N
3124
3127
  }
3125
3128
  ) }),
3126
3129
  /* @__PURE__ */ W(
@@ -3155,7 +3158,7 @@ function sr({
3155
3158
  },
3156
3159
  E.widgetKey
3157
3160
  )),
3158
- !N && g === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
3161
+ !T && g === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
3159
3162
  We,
3160
3163
  {
3161
3164
  widgetKey: E.widgetKey,
@@ -3165,8 +3168,8 @@ function sr({
3165
3168
  },
3166
3169
  E.widgetKey
3167
3170
  )),
3168
- !N && g === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ s(
3169
- Tn,
3171
+ !T && g === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ s(
3172
+ Nn,
3170
3173
  {
3171
3174
  item: E,
3172
3175
  onSettingItemChanged: f
@@ -3184,7 +3187,7 @@ function sr({
3184
3187
  placement: "bottom",
3185
3188
  title: "Click to exit edit mode"
3186
3189
  },
3187
- onClick: p,
3190
+ onClick: m,
3188
3191
  children: "Done"
3189
3192
  }
3190
3193
  ) })