pennsieve-dashboard 0.3.7 → 0.3.71

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,7 +1,7 @@
1
1
  var Fs = Object.defineProperty;
2
2
  var Us = (a, e, t) => e in a ? Fs(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var $ = (a, e, t) => Us(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as de, openBlock as C, createElementBlock as O, createElementVNode as D, ref as B, reactive as si, isRef as Ws, isReactive as Gs, markRaw as Vs, computed as ue, watch as fe, resolveComponent as ie, createBlock as Q, withCtx as W, createVNode as V, Fragment as De, renderList as qe, unref as Y, createTextVNode as Oe, inject as qs, shallowRef as hs, renderSlot as Tt, mergeProps as di, toDisplayString as pe, withDirectives as Me, withKeys as us, vShow as Rt, vModelText as js, createCommentVNode as Ve, toRaw as Ys, onMounted as ds, onBeforeUnmount as fs, normalizeClass as ps, resolveDynamicComponent as ji, onBeforeMount as Xs, provide as Ks, defineAsyncComponent as Zs, nextTick as Yi } from "vue";
4
+ import { defineComponent as de, openBlock as C, createElementBlock as z, createElementVNode as D, ref as B, reactive as si, isRef as Ws, isReactive as Gs, markRaw as Vs, computed as ue, watch as fe, resolveComponent as ie, createBlock as Q, withCtx as W, createVNode as V, Fragment as De, renderList as qe, unref as Y, createTextVNode as Oe, inject as qs, shallowRef as hs, renderSlot as Tt, mergeProps as di, toDisplayString as pe, withDirectives as Me, withKeys as us, vShow as Rt, vModelText as js, createCommentVNode as Ve, toRaw as Ys, onMounted as ds, onBeforeUnmount as fs, normalizeClass as ps, resolveDynamicComponent as ji, onBeforeMount as Xs, provide as Ks, defineAsyncComponent as Zs, nextTick as Yi } from "vue";
5
5
  import { defineStore as Qs, storeToRefs as ni } from "pinia";
6
6
  import { ElTag as Js, ElTooltip as ri } from "element-plus";
7
7
  /*! Element Plus Icons Vue v2.3.2 */
@@ -9,7 +9,7 @@ var en = /* @__PURE__ */ de({
9
9
  name: "CircleCloseFilled",
10
10
  __name: "circle-close-filled",
11
11
  setup(a) {
12
- return (e, t) => (C(), O("svg", {
12
+ return (e, t) => (C(), z("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  viewBox: "0 0 1024 1024"
15
15
  }, [
@@ -23,7 +23,7 @@ var en = /* @__PURE__ */ de({
23
23
  name: "Close",
24
24
  __name: "close",
25
25
  setup(a) {
26
- return (e, t) => (C(), O("svg", {
26
+ return (e, t) => (C(), z("svg", {
27
27
  xmlns: "http://www.w3.org/2000/svg",
28
28
  viewBox: "0 0 1024 1024"
29
29
  }, [
@@ -37,7 +37,7 @@ var en = /* @__PURE__ */ de({
37
37
  name: "Edit",
38
38
  __name: "edit",
39
39
  setup(a) {
40
- return (e, t) => (C(), O("svg", {
40
+ return (e, t) => (C(), z("svg", {
41
41
  xmlns: "http://www.w3.org/2000/svg",
42
42
  viewBox: "0 0 1024 1024"
43
43
  }, [
@@ -55,7 +55,7 @@ var en = /* @__PURE__ */ de({
55
55
  name: "FullScreen",
56
56
  __name: "full-screen",
57
57
  setup(a) {
58
- return (e, t) => (C(), O("svg", {
58
+ return (e, t) => (C(), z("svg", {
59
59
  xmlns: "http://www.w3.org/2000/svg",
60
60
  viewBox: "0 0 1024 1024"
61
61
  }, [
@@ -69,7 +69,7 @@ var en = /* @__PURE__ */ de({
69
69
  name: "Lock",
70
70
  __name: "lock",
71
71
  setup(a) {
72
- return (e, t) => (C(), O("svg", {
72
+ return (e, t) => (C(), z("svg", {
73
73
  xmlns: "http://www.w3.org/2000/svg",
74
74
  viewBox: "0 0 1024 1024"
75
75
  }, [
@@ -87,7 +87,7 @@ var en = /* @__PURE__ */ de({
87
87
  name: "ScaleToOriginal",
88
88
  __name: "scale-to-original",
89
89
  setup(a) {
90
- return (e, t) => (C(), O("svg", {
90
+ return (e, t) => (C(), z("svg", {
91
91
  xmlns: "http://www.w3.org/2000/svg",
92
92
  viewBox: "0 0 1024 1024"
93
93
  }, [
@@ -101,7 +101,7 @@ var en = /* @__PURE__ */ de({
101
101
  name: "Unlock",
102
102
  __name: "unlock",
103
103
  setup(a) {
104
- return (e, t) => (C(), O("svg", {
104
+ return (e, t) => (C(), z("svg", {
105
105
  xmlns: "http://www.w3.org/2000/svg",
106
106
  viewBox: "0 0 1024 1024"
107
107
  }, [
@@ -118,11 +118,11 @@ var en = /* @__PURE__ */ de({
118
118
  }), fn = dn;
119
119
  const lt = Qs("globalPensieveDashVars", () => {
120
120
  const a = B([]), e = B({}), t = "dashboard-globalVarsStore", i = B([]), s = B([]), n = B({}), r = si({}), o = si({});
121
- function h(g, _, F = !1) {
122
- r[g] = _, o[g] = F;
121
+ function h(g, m, F = !1) {
122
+ r[g] = m, o[g] = F;
123
123
  }
124
124
  function c(g = {}) {
125
- for (const _ of Object.keys(r)) delete r[_];
125
+ for (const m of Object.keys(r)) delete r[m];
126
126
  Object.assign(r, g);
127
127
  }
128
128
  const l = (g) => {
@@ -134,35 +134,35 @@ const lt = Qs("globalPensieveDashVars", () => {
134
134
  function f() {
135
135
  s.value = [...a.value], c({});
136
136
  }
137
- const y = (g) => s.value.find((_) => _.id === g), m = (g, _) => {
138
- i.value.push({ name: g, value: _ });
139
- }, w = () => {
137
+ const y = (g) => s.value.find((m) => m.id === g), v = (g, m) => {
138
+ i.value.push({ name: g, value: m });
139
+ }, b = () => {
140
140
  i.value = [];
141
- }, z = (g) => {
141
+ }, O = (g) => {
142
142
  n.value = A(g);
143
143
  }, E = () => n.value;
144
144
  function A(g) {
145
- const _ = {};
146
- if (!g || typeof g != "object") return _;
145
+ const m = {};
146
+ if (!g || typeof g != "object") return m;
147
147
  for (const [F, N] of Object.entries(g))
148
148
  if (N && typeof N == "object" && !(Ws(N) || Gs(N))) {
149
149
  const le = Object.getPrototypeOf(N) === Object.prototype;
150
- _[F] = le ? { ...N } : Vs(N);
150
+ m[F] = le ? { ...N } : Vs(N);
151
151
  } else
152
- _[F] = N;
153
- return _;
152
+ m[F] = N;
153
+ return m;
154
154
  }
155
155
  const S = (g) => {
156
- const _ = s.value.find((F) => F.id === g);
157
- _ && (_.Props = _.Props || {}, _.Props.locked = !_.Props.locked);
158
- }, T = (g) => g.map((_) => {
159
- const F = e.value[_.componentKey];
156
+ const m = s.value.find((F) => F.id === g);
157
+ m && (m.Props = m.Props || {}, m.Props.locked = !m.Props.locked);
158
+ }, T = (g) => g.map((m) => {
159
+ const F = e.value[m.componentKey];
160
160
  return F ? {
161
- ..._,
161
+ ...m,
162
162
  component: F
163
163
  // attach runtime component
164
164
  } : null;
165
- }).filter((_) => !!_);
165
+ }).filter((m) => !!m);
166
166
  function H(g) {
167
167
  }
168
168
  function oe() {
@@ -184,8 +184,8 @@ const lt = Qs("globalPensieveDashVars", () => {
184
184
  resetGridLayout: f,
185
185
  getDashItem: y,
186
186
  toggleWidgetLock: S,
187
- addOptionsDataItems: m,
188
- clearOptionsDataItems: w,
187
+ addOptionsDataItems: v,
188
+ clearOptionsDataItems: b,
189
189
  //saveToLocalStorage,
190
190
  loadFromLocalStorage: () => {
191
191
  const g = localStorage.getItem(t);
@@ -194,13 +194,13 @@ const lt = Qs("globalPensieveDashVars", () => {
194
194
  return;
195
195
  }
196
196
  try {
197
- const _ = JSON.parse(g);
198
- s.value = Array.isArray(_.items) ? T(_.items) : [...a.value], c(_.filters ?? {});
199
- } catch (_) {
200
- console.error("Failed to parse globalVarsStore:", _), s.value = [...a.value], c({});
197
+ const m = JSON.parse(g);
198
+ s.value = Array.isArray(m.items) ? T(m.items) : [...a.value], c(m.filters ?? {});
199
+ } catch (m) {
200
+ console.error("Failed to parse globalVarsStore:", m), s.value = [...a.value], c({});
201
201
  }
202
202
  },
203
- setOptionServices: z,
203
+ setOptionServices: O,
204
204
  getServices: E
205
205
  };
206
206
  }), pn = { class: "widget-settings-container" }, gn = { class: "widget-setting" }, mn = { class: "dialog-footer" }, _n = /* @__PURE__ */ de({
@@ -227,8 +227,8 @@ const lt = Qs("globalPensieveDashVars", () => {
227
227
  c.value = !!d;
228
228
  });
229
229
  function l() {
230
- var m;
231
- const d = (o.value || "").trim(), f = d !== "", y = f ? null : ((m = h.value) == null ? void 0 : m.trim()) || "";
230
+ var v;
231
+ const d = (o.value || "").trim(), f = d !== "", y = f ? null : ((v = h.value) == null ? void 0 : v.trim()) || "";
232
232
  s("update-text-var", {
233
233
  reactiveSource: f ? d : null,
234
234
  manualEdit: y,
@@ -236,7 +236,7 @@ const lt = Qs("globalPensieveDashVars", () => {
236
236
  }), r.value = !1;
237
237
  }
238
238
  return (d, f) => {
239
- const y = ie("el-option"), m = ie("el-select"), w = ie("el-input"), z = ie("el-checkbox"), E = ie("el-button"), A = ie("el-dialog");
239
+ const y = ie("el-option"), v = ie("el-select"), b = ie("el-input"), O = ie("el-checkbox"), E = ie("el-button"), A = ie("el-dialog");
240
240
  return C(), Q(A, {
241
241
  class: "full-dialog-dashboard",
242
242
  modelValue: r.value,
@@ -268,7 +268,7 @@ const lt = Qs("globalPensieveDashVars", () => {
268
268
  D("div", gn, [
269
269
  f[5] || (f[5] = D("h4", null, "Select This Widget's Value", -1)),
270
270
  f[6] || (f[6] = D("h5", null, "Select From Variables", -1)),
271
- V(m, {
271
+ V(v, {
272
272
  modelValue: o.value,
273
273
  "onUpdate:modelValue": f[0] || (f[0] = (S) => o.value = S),
274
274
  class: "text-settings-height"
@@ -279,7 +279,7 @@ const lt = Qs("globalPensieveDashVars", () => {
279
279
  key: "__manual__",
280
280
  label: "Manual entry"
281
281
  })),
282
- (C(!0), O(De, null, qe(Y(i), (S) => (C(), Q(y, {
282
+ (C(!0), z(De, null, qe(Y(i), (S) => (C(), Q(y, {
283
283
  key: S.name,
284
284
  label: S.name,
285
285
  value: S.name
@@ -288,12 +288,12 @@ const lt = Qs("globalPensieveDashVars", () => {
288
288
  _: 1
289
289
  }, 8, ["modelValue"]),
290
290
  f[7] || (f[7] = D("h5", null, "Manual Entry", -1)),
291
- V(w, {
291
+ V(b, {
292
292
  modelValue: h.value,
293
293
  "onUpdate:modelValue": f[1] || (f[1] = (S) => h.value = S),
294
294
  class: "text-settings-height"
295
295
  }, null, 8, ["modelValue"]),
296
- V(z, {
296
+ V(O, {
297
297
  modelValue: c.value,
298
298
  "onUpdate:modelValue": f[2] || (f[2] = (S) => c.value = S),
299
299
  label: "Hide Header"
@@ -353,27 +353,27 @@ const lt = Qs("globalPensieveDashVars", () => {
353
353
  function y() {
354
354
  f.value = !0;
355
355
  }
356
- function m() {
356
+ function v() {
357
357
  f.value = !1;
358
358
  }
359
- function w({ manualEdit: E, reactiveSource: A, hideHeader: S }) {
359
+ function b({ manualEdit: E, reactiveSource: A, hideHeader: S }) {
360
360
  const T = e.getDashItem(t.widgetID);
361
- T && (T.hideHeader = S, A && A.trim() !== "" ? (T.Props = T.Props || {}, T.Props.bindedKey = A, T.Props.displayText = null, T.componentName = z(A)) : (T.Props = T.Props || {}, T.Props.bindedKey = null, T.Props.displayText = E ?? "", T.componentName = E ?? "Text"));
361
+ T && (T.hideHeader = S, A && A.trim() !== "" ? (T.Props = T.Props || {}, T.Props.bindedKey = A, T.Props.displayText = null, T.componentName = O(A)) : (T.Props = T.Props || {}, T.Props.bindedKey = null, T.Props.displayText = E ?? "", T.componentName = E ?? "Text"));
362
362
  }
363
- function z(E) {
363
+ function O(E) {
364
364
  return E ? E.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (A) => A.toUpperCase()) : "";
365
365
  }
366
366
  return (E, A) => {
367
367
  const S = ie("el-input");
368
- return C(), O(De, null, [
368
+ return C(), z(De, null, [
369
369
  Tt(E.$slots, "default", {
370
370
  widgetName: r.value,
371
371
  childIcons: o.value
372
372
  }, void 0, !0),
373
373
  D("div", di({ class: "text-widget-wrap" }, E.$attrs), [
374
- s.value ? (C(), O("div", yn, [
374
+ s.value ? (C(), z("div", yn, [
375
375
  D("h2", null, pe(n.value), 1)
376
- ])) : Me((C(), O("div", {
376
+ ])) : Me((C(), z("div", {
377
377
  key: 1,
378
378
  onKeyup: us(d, ["enter"]),
379
379
  class: "tw-flex"
@@ -409,8 +409,8 @@ const lt = Qs("globalPensieveDashVars", () => {
409
409
  "reactive-source-value": t.bindedKey || "",
410
410
  "manual-entry-value": i.value,
411
411
  "hide-header-value": t.hideHeader || !1,
412
- onCloseDialog: m,
413
- onUpdateTextVar: w
412
+ onCloseDialog: v,
413
+ onUpdateTextVar: b
414
414
  }, null, 8, ["show-dialog", "reactive-source-value", "manual-entry-value", "hide-header-value"])
415
415
  ], 64);
416
416
  };
@@ -780,16 +780,16 @@ ${l}` : l;
780
780
  if ((f == null ? void 0 : f.type) === "code")
781
781
  break;
782
782
  if ((f == null ? void 0 : f.type) === "blockquote") {
783
- const y = f, m = y.raw + `
783
+ const y = f, v = y.raw + `
784
784
  ` + t.join(`
785
- `), w = this.blockquote(m);
786
- n[n.length - 1] = w, i = i.substring(0, i.length - y.raw.length) + w.raw, s = s.substring(0, s.length - y.text.length) + w.text;
785
+ `), b = this.blockquote(v);
786
+ n[n.length - 1] = b, i = i.substring(0, i.length - y.raw.length) + b.raw, s = s.substring(0, s.length - y.text.length) + b.text;
787
787
  break;
788
788
  } else if ((f == null ? void 0 : f.type) === "list") {
789
- const y = f, m = y.raw + `
789
+ const y = f, v = y.raw + `
790
790
  ` + t.join(`
791
- `), w = this.list(m);
792
- n[n.length - 1] = w, i = i.substring(0, i.length - f.raw.length) + w.raw, s = s.substring(0, s.length - y.raw.length) + w.raw, t = m.substring(n.at(-1).raw.length).split(`
791
+ `), b = this.list(v);
792
+ n[n.length - 1] = b, i = i.substring(0, i.length - f.raw.length) + b.raw, s = s.substring(0, s.length - y.raw.length) + b.raw, t = v.substring(n.at(-1).raw.length).split(`
793
793
  `);
794
794
  continue;
795
795
  }
@@ -824,19 +824,19 @@ ${l}` : l;
824
824
  c = e[0], a = a.substring(c.length);
825
825
  let d = e[2].split(`
826
826
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (E) => " ".repeat(3 * E.length)), f = a.split(`
827
- `, 1)[0], y = !d.trim(), m = 0;
828
- if (this.options.pedantic ? (m = 2, l = d.trimStart()) : y ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, l = d.slice(m), m += e[1].length), y && this.rules.other.blankLine.test(f) && (c += f + `
827
+ `, 1)[0], y = !d.trim(), v = 0;
828
+ if (this.options.pedantic ? (v = 2, l = d.trimStart()) : y ? v = e[1].length + 1 : (v = e[2].search(this.rules.other.nonSpaceChar), v = v > 4 ? 1 : v, l = d.slice(v), v += e[1].length), y && this.rules.other.blankLine.test(f) && (c += f + `
829
829
  `, a = a.substring(f.length + 1), h = !0), !h) {
830
- const E = this.rules.other.nextBulletRegex(m), A = this.rules.other.hrRegex(m), S = this.rules.other.fencesBeginRegex(m), T = this.rules.other.headingBeginRegex(m), H = this.rules.other.htmlBeginRegex(m);
830
+ const E = this.rules.other.nextBulletRegex(v), A = this.rules.other.hrRegex(v), S = this.rules.other.fencesBeginRegex(v), T = this.rules.other.headingBeginRegex(v), H = this.rules.other.htmlBeginRegex(v);
831
831
  for (; a; ) {
832
832
  const oe = a.split(`
833
833
  `, 1)[0];
834
834
  let me;
835
835
  if (f = oe, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), me = f) : me = f.replace(this.rules.other.tabCharGlobal, " "), S.test(f) || T.test(f) || H.test(f) || E.test(f) || A.test(f))
836
836
  break;
837
- if (me.search(this.rules.other.nonSpaceChar) >= m || !f.trim())
837
+ if (me.search(this.rules.other.nonSpaceChar) >= v || !f.trim())
838
838
  l += `
839
- ` + me.slice(m);
839
+ ` + me.slice(v);
840
840
  else {
841
841
  if (y || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(d) || T.test(d) || A.test(d))
842
842
  break;
@@ -844,16 +844,16 @@ ${l}` : l;
844
844
  ` + f;
845
845
  }
846
846
  !y && !f.trim() && (y = !0), c += oe + `
847
- `, a = a.substring(oe.length + 1), d = me.slice(m);
847
+ `, a = a.substring(oe.length + 1), d = me.slice(v);
848
848
  }
849
849
  }
850
850
  s.loose || (r ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (r = !0));
851
- let w = null, z;
852
- this.options.gfm && (w = this.rules.other.listIsTask.exec(l), w && (z = w[0] !== "[ ] ", l = l.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
851
+ let b = null, O;
852
+ this.options.gfm && (b = this.rules.other.listIsTask.exec(l), b && (O = b[0] !== "[ ] ", l = l.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
853
853
  type: "list_item",
854
854
  raw: c,
855
- task: !!w,
856
- checked: z,
855
+ task: !!b,
856
+ checked: O,
857
857
  loose: !1,
858
858
  text: l,
859
859
  tokens: []
@@ -1054,12 +1054,12 @@ ${l}` : l;
1054
1054
  o = Math.min(o, o + h + c);
1055
1055
  const d = [...i[0]][0].length, f = a.slice(0, n + i.index + d + o);
1056
1056
  if (Math.min(n, o) % 2) {
1057
- const m = f.slice(1, -1);
1057
+ const v = f.slice(1, -1);
1058
1058
  return {
1059
1059
  type: "em",
1060
1060
  raw: f,
1061
- text: m,
1062
- tokens: this.lexer.inlineTokens(m)
1061
+ text: v,
1062
+ tokens: this.lexer.inlineTokens(v)
1063
1063
  };
1064
1064
  }
1065
1065
  const y = f.slice(2, -2);
@@ -1384,9 +1384,9 @@ ${l}` : l;
1384
1384
  if ((c = this.options.extensions) != null && c.startInline) {
1385
1385
  let f = 1 / 0;
1386
1386
  const y = e.slice(1);
1387
- let m;
1388
- this.options.extensions.startInline.forEach((w) => {
1389
- m = w.call({ lexer: this }, y), typeof m == "number" && m >= 0 && (f = Math.min(f, m));
1387
+ let v;
1388
+ this.options.extensions.startInline.forEach((b) => {
1389
+ v = b.call({ lexer: this }, y), typeof v == "number" && v >= 0 && (f = Math.min(f, v));
1390
1390
  }), f < 1 / 0 && f >= 0 && (d = e.substring(0, f + 1));
1391
1391
  }
1392
1392
  if (l = this.tokenizer.inlineText(d)) {
@@ -2144,7 +2144,7 @@ function Ls() {
2144
2144
  HTMLFormElement: d,
2145
2145
  DOMParser: f,
2146
2146
  trustedTypes: y
2147
- } = a, m = h.prototype, w = st(m, "cloneNode"), z = st(m, "remove"), E = st(m, "nextSibling"), A = st(m, "childNodes"), S = st(m, "parentNode");
2147
+ } = a, v = h.prototype, b = st(v, "cloneNode"), O = st(v, "remove"), E = st(v, "nextSibling"), A = st(v, "childNodes"), S = st(v, "parentNode");
2148
2148
  if (typeof r == "function") {
2149
2149
  const k = t.createElement("template");
2150
2150
  k.content && k.content.ownerDocument && (t = k.content.ownerDocument);
@@ -2154,7 +2154,7 @@ function Ls() {
2154
2154
  implementation: oe,
2155
2155
  createNodeIterator: me,
2156
2156
  createDocumentFragment: g,
2157
- getElementsByTagName: _
2157
+ getElementsByTagName: m
2158
2158
  } = t, {
2159
2159
  importNode: F
2160
2160
  } = i;
@@ -2242,13 +2242,13 @@ function Ls() {
2242
2242
  ne && ne(u), We = u;
2243
2243
  }
2244
2244
  }, Hi = L({}, [...Qt, ...Jt, ...dr]), Pi = L({}, [...ei, ...fr]), Bs = function(u) {
2245
- let v = S(u);
2246
- (!v || !v.tagName) && (v = {
2245
+ let _ = S(u);
2246
+ (!_ || !_.tagName) && (_ = {
2247
2247
  namespaceURI: Ue,
2248
2248
  tagName: "template"
2249
2249
  });
2250
- const b = Et(u.tagName), U = Et(v.tagName);
2251
- return qt[u.namespaceURI] ? u.namespaceURI === _t ? v.namespaceURI === ke ? b === "svg" : v.namespaceURI === mt ? b === "svg" && (U === "annotation-xml" || vt[U]) : !!Hi[b] : u.namespaceURI === mt ? v.namespaceURI === ke ? b === "math" : v.namespaceURI === _t ? b === "math" && yt[U] : !!Pi[b] : u.namespaceURI === ke ? v.namespaceURI === _t && !yt[U] || v.namespaceURI === mt && !vt[U] ? !1 : !Pi[b] && (Ms[b] || !Hi[b]) : !!(Ze === "application/xhtml+xml" && qt[u.namespaceURI]) : !1;
2250
+ const w = Et(u.tagName), U = Et(_.tagName);
2251
+ return qt[u.namespaceURI] ? u.namespaceURI === _t ? _.namespaceURI === ke ? w === "svg" : _.namespaceURI === mt ? w === "svg" && (U === "annotation-xml" || vt[U]) : !!Hi[w] : u.namespaceURI === mt ? _.namespaceURI === ke ? w === "math" : _.namespaceURI === _t ? w === "math" && yt[U] : !!Pi[w] : u.namespaceURI === ke ? _.namespaceURI === _t && !yt[U] || _.namespaceURI === mt && !vt[U] ? !1 : !Pi[w] && (Ms[w] || !Hi[w]) : !!(Ze === "application/xhtml+xml" && qt[u.namespaceURI]) : !1;
2252
2252
  }, be = function(u) {
2253
2253
  et(e.removed, {
2254
2254
  element: u
@@ -2256,55 +2256,55 @@ function Ls() {
2256
2256
  try {
2257
2257
  S(u).removeChild(u);
2258
2258
  } catch {
2259
- z(u);
2259
+ O(u);
2260
2260
  }
2261
- }, ze = function(u, v) {
2261
+ }, ze = function(u, _) {
2262
2262
  try {
2263
2263
  et(e.removed, {
2264
- attribute: v.getAttributeNode(u),
2265
- from: v
2264
+ attribute: _.getAttributeNode(u),
2265
+ from: _
2266
2266
  });
2267
2267
  } catch {
2268
2268
  et(e.removed, {
2269
2269
  attribute: null,
2270
- from: v
2270
+ from: _
2271
2271
  });
2272
2272
  }
2273
- if (v.removeAttribute(u), u === "is")
2273
+ if (_.removeAttribute(u), u === "is")
2274
2274
  if ($e || pt)
2275
2275
  try {
2276
- be(v);
2276
+ be(_);
2277
2277
  } catch {
2278
2278
  }
2279
2279
  else
2280
2280
  try {
2281
- v.setAttribute(u, "");
2281
+ _.setAttribute(u, "");
2282
2282
  } catch {
2283
2283
  }
2284
2284
  }, Ii = function(u) {
2285
- let v = null, b = null;
2285
+ let _ = null, w = null;
2286
2286
  if (Ft)
2287
2287
  u = "<remove></remove>" + u;
2288
2288
  else {
2289
2289
  const q = Zt(u, /^[\r\n\t ]+/);
2290
- b = q && q[0];
2290
+ w = q && q[0];
2291
2291
  }
2292
2292
  Ze === "application/xhtml+xml" && Ue === ke && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
2293
2293
  const U = T ? T.createHTML(u) : u;
2294
2294
  if (Ue === ke)
2295
2295
  try {
2296
- v = new f().parseFromString(U, Ze);
2296
+ _ = new f().parseFromString(U, Ze);
2297
2297
  } catch {
2298
2298
  }
2299
- if (!v || !v.documentElement) {
2300
- v = oe.createDocument(Ue, "template", null);
2299
+ if (!_ || !_.documentElement) {
2300
+ _ = oe.createDocument(Ue, "template", null);
2301
2301
  try {
2302
- v.documentElement.innerHTML = Vt ? H : U;
2302
+ _.documentElement.innerHTML = Vt ? H : U;
2303
2303
  } catch {
2304
2304
  }
2305
2305
  }
2306
- const J = v.body || v.documentElement;
2307
- return u && b && J.insertBefore(t.createTextNode(b), J.childNodes[0] || null), Ue === ke ? _.call(v, Ne ? "html" : "body")[0] : Ne ? v.documentElement : J;
2306
+ const J = _.body || _.documentElement;
2307
+ return u && w && J.insertBefore(t.createTextNode(w), J.childNodes[0] || null), Ue === ke ? m.call(_, Ne ? "html" : "body")[0] : Ne ? _.documentElement : J;
2308
2308
  }, Bi = function(u) {
2309
2309
  return me.call(
2310
2310
  u.ownerDocument || u,
@@ -2318,61 +2318,61 @@ function Ls() {
2318
2318
  }, $i = function(u) {
2319
2319
  return typeof o == "function" && u instanceof o;
2320
2320
  };
2321
- function Ee(k, u, v) {
2322
- wt(k, (b) => {
2323
- b.call(e, u, v, We);
2321
+ function Ee(k, u, _) {
2322
+ wt(k, (w) => {
2323
+ w.call(e, u, _, We);
2324
2324
  });
2325
2325
  }
2326
2326
  const Fi = function(u) {
2327
- let v = null;
2327
+ let _ = null;
2328
2328
  if (Ee(N.beforeSanitizeElements, u, null), Yt(u))
2329
2329
  return be(u), !0;
2330
- const b = j(u.nodeName);
2330
+ const w = j(u.nodeName);
2331
2331
  if (Ee(N.uponSanitizeElement, u, {
2332
- tagName: b,
2332
+ tagName: w,
2333
2333
  allowedTags: X
2334
2334
  }), ft && u.hasChildNodes() && !$i(u.firstElementChild) && ee(/<[/\w!]/g, u.innerHTML) && ee(/<[/\w!]/g, u.textContent) || u.nodeType === nt.progressingInstruction || ft && u.nodeType === nt.comment && ee(/<[/\w]/g, u.data))
2335
2335
  return be(u), !0;
2336
- if (!(Ie.tagCheck instanceof Function && Ie.tagCheck(b)) && (!X[b] || Xe[b])) {
2337
- if (!Xe[b] && Wi(b) && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, b) || G.tagNameCheck instanceof Function && G.tagNameCheck(b)))
2336
+ if (!(Ie.tagCheck instanceof Function && Ie.tagCheck(w)) && (!X[w] || Xe[w])) {
2337
+ if (!Xe[w] && Wi(w) && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, w) || G.tagNameCheck instanceof Function && G.tagNameCheck(w)))
2338
2338
  return !1;
2339
- if (Ut && !ye[b]) {
2339
+ if (Ut && !ye[w]) {
2340
2340
  const U = S(u) || u.parentNode, J = A(u) || u.childNodes;
2341
2341
  if (J && U) {
2342
2342
  const q = J.length;
2343
2343
  for (let ae = q - 1; ae >= 0; --ae) {
2344
- const Te = w(J[ae], !0);
2344
+ const Te = b(J[ae], !0);
2345
2345
  Te.__removalCount = (u.__removalCount || 0) + 1, U.insertBefore(Te, E(u));
2346
2346
  }
2347
2347
  }
2348
2348
  }
2349
2349
  return be(u), !0;
2350
2350
  }
2351
- return u instanceof h && !Bs(u) || (b === "noscript" || b === "noembed" || b === "noframes") && ee(/<\/no(script|embed|frames)/i, u.innerHTML) ? (be(u), !0) : (Be && u.nodeType === nt.text && (v = u.textContent, wt([le, Se, M], (U) => {
2352
- v = tt(v, U, " ");
2353
- }), u.textContent !== v && (et(e.removed, {
2351
+ return u instanceof h && !Bs(u) || (w === "noscript" || w === "noembed" || w === "noframes") && ee(/<\/no(script|embed|frames)/i, u.innerHTML) ? (be(u), !0) : (Be && u.nodeType === nt.text && (_ = u.textContent, wt([le, Se, M], (U) => {
2352
+ _ = tt(_, U, " ");
2353
+ }), u.textContent !== _ && (et(e.removed, {
2354
2354
  element: u.cloneNode()
2355
- }), u.textContent = v)), Ee(N.afterSanitizeElements, u, null), !1);
2356
- }, Ui = function(u, v, b) {
2357
- if (Di && (v === "id" || v === "name") && (b in t || b in Is))
2355
+ }), u.textContent = _)), Ee(N.afterSanitizeElements, u, null), !1);
2356
+ }, Ui = function(u, _, w) {
2357
+ if (Di && (_ === "id" || _ === "name") && (w in t || w in Is))
2358
2358
  return !1;
2359
- if (!(Bt && !It[v] && ee(je, v))) {
2360
- if (!(Ci && ee(ht, v))) {
2361
- if (!(Ie.attributeCheck instanceof Function && Ie.attributeCheck(v, u))) {
2362
- if (!K[v] || It[v]) {
2359
+ if (!(Bt && !It[_] && ee(je, _))) {
2360
+ if (!(Ci && ee(ht, _))) {
2361
+ if (!(Ie.attributeCheck instanceof Function && Ie.attributeCheck(_, u))) {
2362
+ if (!K[_] || It[_]) {
2363
2363
  if (
2364
2364
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2365
2365
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2366
2366
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2367
- !(Wi(u) && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, u) || G.tagNameCheck instanceof Function && G.tagNameCheck(u)) && (G.attributeNameCheck instanceof RegExp && ee(G.attributeNameCheck, v) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(v, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2367
+ !(Wi(u) && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, u) || G.tagNameCheck instanceof Function && G.tagNameCheck(u)) && (G.attributeNameCheck instanceof RegExp && ee(G.attributeNameCheck, _) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(_, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2368
2368
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2369
- v === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, b) || G.tagNameCheck instanceof Function && G.tagNameCheck(b)))
2369
+ _ === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && ee(G.tagNameCheck, w) || G.tagNameCheck instanceof Function && G.tagNameCheck(w)))
2370
2370
  ) return !1;
2371
- } else if (!Gt[v]) {
2372
- if (!ee(Ei, tt(b, Ye, ""))) {
2373
- if (!((v === "src" || v === "xlink:href" || v === "href") && u !== "script" && lr(b, "data:") === 0 && Ni[u])) {
2374
- if (!(Ai && !ee(ut, tt(b, Ye, "")))) {
2375
- if (b)
2371
+ } else if (!Gt[_]) {
2372
+ if (!ee(Ei, tt(w, Ye, ""))) {
2373
+ if (!((_ === "src" || _ === "xlink:href" || _ === "href") && u !== "script" && lr(w, "data:") === 0 && Ni[u])) {
2374
+ if (!(Ai && !ee(ut, tt(w, Ye, "")))) {
2375
+ if (w)
2376
2376
  return !1;
2377
2377
  }
2378
2378
  }
@@ -2387,26 +2387,26 @@ function Ls() {
2387
2387
  }, Gi = function(u) {
2388
2388
  Ee(N.beforeSanitizeAttributes, u, null);
2389
2389
  const {
2390
- attributes: v
2390
+ attributes: _
2391
2391
  } = u;
2392
- if (!v || Yt(u))
2392
+ if (!_ || Yt(u))
2393
2393
  return;
2394
- const b = {
2394
+ const w = {
2395
2395
  attrName: "",
2396
2396
  attrValue: "",
2397
2397
  keepAttr: !0,
2398
2398
  allowedAttributes: K,
2399
2399
  forceKeepAttr: void 0
2400
2400
  };
2401
- let U = v.length;
2401
+ let U = _.length;
2402
2402
  for (; U--; ) {
2403
- const J = v[U], {
2403
+ const J = _[U], {
2404
2404
  name: q,
2405
2405
  namespaceURI: ae,
2406
2406
  value: Te
2407
2407
  } = J, Ge = j(q), Xt = Te;
2408
2408
  let Z = q === "value" ? Xt : cr(Xt);
2409
- if (b.attrName = Ge, b.attrValue = Z, b.keepAttr = !0, b.forceKeepAttr = void 0, Ee(N.uponSanitizeAttribute, u, b), Z = b.attrValue, Li && (Ge === "id" || Ge === "name") && (ze(q, u), Z = zs + Z), ft && ee(/((--!?|])>)|<\/(style|title|textarea)/i, Z)) {
2409
+ if (w.attrName = Ge, w.attrValue = Z, w.keepAttr = !0, w.forceKeepAttr = void 0, Ee(N.uponSanitizeAttribute, u, w), Z = w.attrValue, Li && (Ge === "id" || Ge === "name") && (ze(q, u), Z = zs + Z), ft && ee(/((--!?|])>)|<\/(style|title|textarea)/i, Z)) {
2410
2410
  ze(q, u);
2411
2411
  continue;
2412
2412
  }
@@ -2414,9 +2414,9 @@ function Ls() {
2414
2414
  ze(q, u);
2415
2415
  continue;
2416
2416
  }
2417
- if (b.forceKeepAttr)
2417
+ if (w.forceKeepAttr)
2418
2418
  continue;
2419
- if (!b.keepAttr) {
2419
+ if (!w.keepAttr) {
2420
2420
  ze(q, u);
2421
2421
  continue;
2422
2422
  }
@@ -2452,14 +2452,14 @@ function Ls() {
2452
2452
  }
2453
2453
  Ee(N.afterSanitizeAttributes, u, null);
2454
2454
  }, $s = function k(u) {
2455
- let v = null;
2456
- const b = Bi(u);
2457
- for (Ee(N.beforeSanitizeShadowDOM, u, null); v = b.nextNode(); )
2458
- Ee(N.uponSanitizeShadowNode, v, null), Fi(v), Gi(v), v.content instanceof n && k(v.content);
2455
+ let _ = null;
2456
+ const w = Bi(u);
2457
+ for (Ee(N.beforeSanitizeShadowDOM, u, null); _ = w.nextNode(); )
2458
+ Ee(N.uponSanitizeShadowNode, _, null), Fi(_), Gi(_), _.content instanceof n && k(_.content);
2459
2459
  Ee(N.afterSanitizeShadowDOM, u, null);
2460
2460
  };
2461
2461
  return e.sanitize = function(k) {
2462
- let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, b = null, U = null, J = null;
2462
+ let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, w = null, U = null, J = null;
2463
2463
  if (Vt = !k, Vt && (k = "<!-->"), typeof k != "string" && !$i(k))
2464
2464
  if (typeof k.toString == "function") {
2465
2465
  if (k = k.toString(), typeof k != "string")
@@ -2475,30 +2475,30 @@ function Ls() {
2475
2475
  throw it("root node is forbidden and cannot be sanitized in-place");
2476
2476
  }
2477
2477
  } else if (k instanceof o)
2478
- v = Ii("<!---->"), b = v.ownerDocument.importNode(k, !0), b.nodeType === nt.element && b.nodeName === "BODY" || b.nodeName === "HTML" ? v = b : v.appendChild(b);
2478
+ _ = Ii("<!---->"), w = _.ownerDocument.importNode(k, !0), w.nodeType === nt.element && w.nodeName === "BODY" || w.nodeName === "HTML" ? _ = w : _.appendChild(w);
2479
2479
  else {
2480
2480
  if (!$e && !Be && !Ne && // eslint-disable-next-line unicorn/prefer-includes
2481
2481
  k.indexOf("<") === -1)
2482
2482
  return T && gt ? T.createHTML(k) : k;
2483
- if (v = Ii(k), !v)
2483
+ if (_ = Ii(k), !_)
2484
2484
  return $e ? null : gt ? H : "";
2485
2485
  }
2486
- v && Ft && be(v.firstChild);
2487
- const q = Bi(Ke ? k : v);
2486
+ _ && Ft && be(_.firstChild);
2487
+ const q = Bi(Ke ? k : _);
2488
2488
  for (; U = q.nextNode(); )
2489
2489
  Fi(U), Gi(U), U.content instanceof n && $s(U.content);
2490
2490
  if (Ke)
2491
2491
  return k;
2492
2492
  if ($e) {
2493
2493
  if (pt)
2494
- for (J = g.call(v.ownerDocument); v.firstChild; )
2495
- J.appendChild(v.firstChild);
2494
+ for (J = g.call(_.ownerDocument); _.firstChild; )
2495
+ J.appendChild(_.firstChild);
2496
2496
  else
2497
- J = v;
2497
+ J = _;
2498
2498
  return (K.shadowroot || K.shadowrootmode) && (J = F.call(i, J, !0)), J;
2499
2499
  }
2500
- let ae = Ne ? v.outerHTML : v.innerHTML;
2501
- return Ne && X["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && ee(Ds, v.ownerDocument.doctype.name) && (ae = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
2500
+ let ae = Ne ? _.outerHTML : _.innerHTML;
2501
+ return Ne && X["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && ee(Ds, _.ownerDocument.doctype.name) && (ae = "<!DOCTYPE " + _.ownerDocument.doctype.name + `>
2502
2502
  ` + ae), Be && wt([le, Se, M], (Te) => {
2503
2503
  ae = tt(ae, Te, " ");
2504
2504
  }), T && gt ? T.createHTML(ae) : ae;
@@ -2507,16 +2507,16 @@ function Ls() {
2507
2507
  jt(k), $t = !0;
2508
2508
  }, e.clearConfig = function() {
2509
2509
  We = null, $t = !1;
2510
- }, e.isValidAttribute = function(k, u, v) {
2510
+ }, e.isValidAttribute = function(k, u, _) {
2511
2511
  We || jt({});
2512
- const b = j(k), U = j(u);
2513
- return Ui(b, U, v);
2512
+ const w = j(k), U = j(u);
2513
+ return Ui(w, U, _);
2514
2514
  }, e.addHook = function(k, u) {
2515
2515
  typeof u == "function" && et(N[k], u);
2516
2516
  }, e.removeHook = function(k, u) {
2517
2517
  if (u !== void 0) {
2518
- const v = or(N[k], u);
2519
- return v === -1 ? void 0 : ar(N[k], v, 1)[0];
2518
+ const _ = or(N[k], u);
2519
+ return _ === -1 ? void 0 : ar(N[k], _, 1)[0];
2520
2520
  }
2521
2521
  return ts(N[k]);
2522
2522
  }, e.removeHooks = function(k) {
@@ -2560,13 +2560,13 @@ const Tr = ["innerHTML"], Rr = "Markdown", Cr = /* @__PURE__ */ de({
2560
2560
  function c() {
2561
2561
  r.value = !r.value, i("changeMode", r.value ? "edit" : "preview");
2562
2562
  }
2563
- return (l, d) => (C(), O(De, null, [
2563
+ return (l, d) => (C(), z(De, null, [
2564
2564
  Tt(l.$slots, "default", {
2565
2565
  widgetName: Rr,
2566
2566
  childIcons: s.value
2567
2567
  }, void 0, !0),
2568
2568
  D("div", di({ class: "markdown-widget-wrap" }, l.$attrs), [
2569
- r.value ? Me((C(), O("textarea", {
2569
+ r.value ? Me((C(), z("textarea", {
2570
2570
  key: 0,
2571
2571
  "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
2572
2572
  onInput: h,
@@ -2574,7 +2574,7 @@ const Tr = ["innerHTML"], Rr = "Markdown", Cr = /* @__PURE__ */ de({
2574
2574
  placeholder: "Write markdown here…"
2575
2575
  }, null, 544)), [
2576
2576
  [js, n.value]
2577
- ]) : (C(), O("div", {
2577
+ ]) : (C(), z("div", {
2578
2578
  key: 1,
2579
2579
  class: "markdown-output",
2580
2580
  innerHTML: o.value
@@ -3648,8 +3648,8 @@ class Re {
3648
3648
  const d = e._moving && !t.nested;
3649
3649
  let f = d ? this.directionCollideCoverage(e, t, o) : o[0];
3650
3650
  if (d && f && ((l = (c = e.grid) == null ? void 0 : c.opts) != null && l.subGridDynamic) && !e.grid._isTemp) {
3651
- const y = p.areaIntercept(t.rect, f._rect), m = p.area(t.rect), w = p.area(f._rect);
3652
- y / (m < w ? m : w) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
3651
+ const y = p.areaIntercept(t.rect, f._rect), v = p.area(t.rect), b = p.area(f._rect);
3652
+ y / (v < b ? v : b) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
3653
3653
  }
3654
3654
  f ? h = !this._fixCollisions(e, n, f, t) : (h = !1, i && delete t.pack);
3655
3655
  }
@@ -4670,13 +4670,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4670
4670
  * @returns newly created grid
4671
4671
  */
4672
4672
  makeSubGrid(e, t, i, s = !0) {
4673
- var y, m, w;
4673
+ var y, v, b;
4674
4674
  let n = e.gridstackNode;
4675
4675
  if (n || (n = this.makeWidget(e).gridstackNode), (y = n.subGrid) != null && y.el)
4676
4676
  return n.subGrid;
4677
4677
  let r, o = this;
4678
4678
  for (; o && !r; )
4679
- r = (m = o.opts) == null ? void 0 : m.subGridOpts, o = (w = o.parentGridNode) == null ? void 0 : w.grid;
4679
+ r = (v = o.opts) == null ? void 0 : v.subGridOpts, o = (b = o.parentGridNode) == null ? void 0 : b.grid;
4680
4680
  t = p.cloneDeep({
4681
4681
  // by default sub-grid inherit from us | parent, other than id, children, etc...
4682
4682
  ...this.opts,
@@ -4693,8 +4693,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4693
4693
  t.column === "auto" && (h = !0, t.column = Math.max(n.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
4694
4694
  let c = n.el.querySelector(".grid-stack-item-content"), l, d;
4695
4695
  if (s && (this._removeDD(n.el), d = { ...n, x: 0, y: 0 }, p.removeInternalForSave(d), delete d.subGridOpts, n.content && (d.content = n.content, delete n.content), x.addRemoveCB ? l = x.addRemoveCB(this.el, d, !0, !1) : (l = p.createDiv(["grid-stack-item"]), l.appendChild(c), c = p.createDiv(["grid-stack-item-content"], n.el)), this.prepareDragDrop(n.el)), i) {
4696
- const z = h ? t.column : n.w, E = n.h + i.h, A = n.el.style;
4697
- A.transition = "none", this.update(n.el, { w: z, h: E }), setTimeout(() => A.transition = null);
4696
+ const O = h ? t.column : n.w, E = n.h + i.h, A = n.el.style;
4697
+ A.transition = "none", this.update(n.el, { w: O, h: E }), setTimeout(() => A.transition = null);
4698
4698
  }
4699
4699
  const f = n.subGrid = x.addGrid(c, t);
4700
4700
  return i != null && i._moving && (f._isTemp = !0), h && (f._autoColumn = !0), s && f.makeWidget(l, d), i && (i._moving ? window.setTimeout(() => p.simulateMouseEvent(i._event, "mouseenter", f.el), 0) : f.makeWidget(n.el, n)), this.resizeToContentCheck(!1, n), f;
@@ -5310,18 +5310,18 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5310
5310
  let c;
5311
5311
  if (t.subGrid) {
5312
5312
  c = t.subGrid.getRow() * t.subGrid.getCellHeight(!0);
5313
- const m = t.subGrid.el.getBoundingClientRect(), w = e.getBoundingClientRect();
5314
- c += m.top - w.top;
5313
+ const v = t.subGrid.el.getBoundingClientRect(), b = e.getBoundingClientRect();
5314
+ c += v.top - b.top;
5315
5315
  } else {
5316
5316
  if ((y = (f = t.subGridOpts) == null ? void 0 : f.children) != null && y.length)
5317
5317
  return;
5318
5318
  {
5319
- const m = r.firstElementChild;
5320
- if (!m) {
5319
+ const v = r.firstElementChild;
5320
+ if (!v) {
5321
5321
  console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${x.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
5322
5322
  return;
5323
5323
  }
5324
- c = m.getBoundingClientRect().height || h;
5324
+ c = v.getBoundingClientRect().height || h;
5325
5325
  }
5326
5326
  }
5327
5327
  if (h === c)
@@ -5849,7 +5849,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5849
5849
  const o = (r == null ? void 0 : r.gridstackNode) || n.gridstackNode;
5850
5850
  return o && (!o.grid || o.grid === this) && (this._leave(n, r), this._isTemp && this.removeAsSubGrid(o)), !1;
5851
5851
  }).on(this.el, "drop", (s, n, r) => {
5852
- var f, y, m;
5852
+ var f, y, v;
5853
5853
  const o = (r == null ? void 0 : r.gridstackNode) || n.gridstackNode;
5854
5854
  if ((o == null ? void 0 : o.grid) === this && !o._isExternal)
5855
5855
  return !1;
@@ -5857,12 +5857,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5857
5857
  this.placeholder.remove(), delete this.placeholder.gridstackNode, h && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
5858
5858
  const l = n._gridstackNodeOrig;
5859
5859
  if (delete n._gridstackNodeOrig, h && (l != null && l.grid) && l.grid !== this) {
5860
- const w = l.grid;
5861
- w.engine.removeNodeFromLayoutCache(l), w.engine.removedNodes.push(l), w._triggerRemoveEvent()._triggerChangeEvent(), w.parentGridNode && !w.engine.nodes.length && w.opts.subGridDynamic && w.removeAsSubGrid();
5860
+ const b = l.grid;
5861
+ b.engine.removeNodeFromLayoutCache(l), b.engine.removedNodes.push(l), b._triggerRemoveEvent()._triggerChangeEvent(), b.parentGridNode && !b.engine.nodes.length && b.opts.subGridDynamic && b.removeAsSubGrid();
5862
5862
  }
5863
5863
  if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, te.off(n, "drag"), r !== n ? (r.remove(), n = r) : n.remove(), this._removeDD(n), !h))
5864
5864
  return !1;
5865
- const d = (m = (y = o.subGrid) == null ? void 0 : y.el) == null ? void 0 : m.gridstack;
5865
+ const d = (v = (y = o.subGrid) == null ? void 0 : y.el) == null ? void 0 : v.gridstack;
5866
5866
  return p.copyPos(o, this._readAttr(this.placeholder)), p.removePositioningStyles(n), c && (o.content || o.subGridOpts || x.addRemoveCB) ? (delete o.el, n = this.addWidget(o)) : (this._prepareElement(n, !0, o), this.el.appendChild(n), this.resizeToContentCheck(!1, o), d && (d.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, l && l.grid ? l : void 0, o), !1;
5867
5867
  }), this;
5868
5868
  }
@@ -5900,13 +5900,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5900
5900
  this._dragOrResize(e, f, y, i, o, h);
5901
5901
  }, d = (f) => {
5902
5902
  this.placeholder.remove(), delete this.placeholder.gridstackNode, delete i._moving, delete i._resizing, delete i._event, delete i._lastTried;
5903
- const y = i.w !== i._orig.w, m = f.target;
5904
- if (!(!m.gridstackNode || m.gridstackNode.grid !== this)) {
5905
- if (i.el = m, i._isAboutToRemove) {
5906
- const w = e.gridstackNode.grid;
5907
- w._gsEventHandler[f.type] && w._gsEventHandler[f.type](f, m), w.engine.nodes.push(i), w.removeWidget(e, !0, !0);
5903
+ const y = i.w !== i._orig.w, v = f.target;
5904
+ if (!(!v.gridstackNode || v.gridstackNode.grid !== this)) {
5905
+ if (i.el = v, i._isAboutToRemove) {
5906
+ const b = e.gridstackNode.grid;
5907
+ b._gsEventHandler[f.type] && b._gsEventHandler[f.type](f, v), b.engine.nodes.push(i), b.removeWidget(e, !0, !0);
5908
5908
  } else
5909
- p.removePositioningStyles(m), i._temporaryRemoved ? (this._writePosAttr(m, i), this.engine.addNode(i)) : this._writePosAttr(m, i), this.triggerEvent(f, m);
5909
+ p.removePositioningStyles(v), i._temporaryRemoved ? (this._writePosAttr(v, i), this.engine.addNode(i)) : this._writePosAttr(v, i), this.triggerEvent(f, v);
5910
5910
  this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), f.type === "resizestop" && (Number.isInteger(i.sizeToContent) && (i.sizeToContent = i.h), this.resizeToContentCheck(y, i));
5911
5911
  }
5912
5912
  };
@@ -5946,12 +5946,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5946
5946
  _dragOrResize(e, t, i, s, n, r) {
5947
5947
  const o = { ...s._orig };
5948
5948
  let h, c = this.opts.marginLeft, l = this.opts.marginRight, d = this.opts.marginTop, f = this.opts.marginBottom;
5949
- const y = Math.round(r * 0.1), m = Math.round(n * 0.1);
5950
- if (c = Math.min(c, m), l = Math.min(l, m), d = Math.min(d, y), f = Math.min(f, y), t.type === "drag") {
5949
+ const y = Math.round(r * 0.1), v = Math.round(n * 0.1);
5950
+ if (c = Math.min(c, v), l = Math.min(l, v), d = Math.min(d, y), f = Math.min(f, y), t.type === "drag") {
5951
5951
  if (s._temporaryRemoved)
5952
5952
  return;
5953
- const z = i.position.top - s._prevYPix;
5954
- s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && p.updateScrollPosition(e, i.position, z);
5953
+ const O = i.position.top - s._prevYPix;
5954
+ s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && p.updateScrollPosition(e, i.position, O);
5955
5955
  const E = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), A = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : d);
5956
5956
  o.x = Math.round(E / n), o.y = Math.round(A / r);
5957
5957
  const S = this._extraDragRow;
@@ -5966,20 +5966,20 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5966
5966
  } else if (t.type === "resize") {
5967
5967
  if (o.x < 0 || (p.updateScrollResize(t, e, r), o.w = Math.round((i.size.width - c) / n), o.h = Math.round((i.size.height - d) / r), s.w === o.w && s.h === o.h) || s._lastTried && s._lastTried.w === o.w && s._lastTried.h === o.h)
5968
5968
  return;
5969
- const z = i.position.left + c, E = i.position.top + d;
5970
- o.x = Math.round(z / n), o.y = Math.round(E / r), h = !0;
5969
+ const O = i.position.left + c, E = i.position.top + d;
5970
+ o.x = Math.round(O / n), o.y = Math.round(E / r), h = !0;
5971
5971
  }
5972
5972
  s._event = t, s._lastTried = o;
5973
- const w = {
5973
+ const b = {
5974
5974
  x: i.position.left + c,
5975
5975
  y: i.position.top + d,
5976
5976
  w: (i.size ? i.size.width : s.w * n) - c - l,
5977
5977
  h: (i.size ? i.size.height : s.h * r) - d - f
5978
5978
  };
5979
- if (this.engine.moveNodeCheck(s, { ...o, cellWidth: n, cellHeight: r, rect: w, resizing: h })) {
5979
+ if (this.engine.moveNodeCheck(s, { ...o, cellWidth: n, cellHeight: r, rect: b, resizing: h })) {
5980
5980
  s._lastUiPosition = i.position, this.engine.cacheRects(n, r, d, l, f, c), delete s._skipDown, h && s.subGrid && s.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
5981
- const z = t.target;
5982
- s._sidebarOrig || this._writePosAttr(z, s), this.triggerEvent(t, z);
5981
+ const O = t.target;
5982
+ s._sidebarOrig || this._writePosAttr(O, s), this.triggerEvent(t, O);
5983
5983
  }
5984
5984
  }
5985
5985
  /** call given event callback on our main top-most grid (if we're nested) */
@@ -6029,10 +6029,10 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6029
6029
  var d;
6030
6030
  const l = n.value.filter((f) => s.value.hasOwnProperty(f.key) && s.value[f.key]);
6031
6031
  if ((d = e.order) != null && d.length) {
6032
- const f = new Map(e.order.map((y, m) => [y, m]));
6033
- l.sort((y, m) => {
6034
- const w = f.has(y.key) ? f.get(y.key) : Number.MAX_SAFE_INTEGER, z = f.has(m.key) ? f.get(m.key) : Number.MAX_SAFE_INTEGER;
6035
- return w - z || y.key.localeCompare(m.key);
6032
+ const f = new Map(e.order.map((y, v) => [y, v]));
6033
+ l.sort((y, v) => {
6034
+ const b = f.has(y.key) ? f.get(y.key) : Number.MAX_SAFE_INTEGER, O = f.has(v.key) ? f.get(v.key) : Number.MAX_SAFE_INTEGER;
6035
+ return b - O || y.key.localeCompare(v.key);
6036
6036
  });
6037
6037
  } else
6038
6038
  l.sort((f, y) => f.key.localeCompare(y.key));
@@ -6057,22 +6057,22 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6057
6057
  }, {
6058
6058
  default: W(() => [
6059
6059
  D("div", Lr, [
6060
- r.value.length ? (C(!0), O(De, { key: 0 }, qe(r.value, (m) => (C(), Q(Y(Js), {
6060
+ r.value.length ? (C(!0), z(De, { key: 0 }, qe(r.value, (v) => (C(), Q(Y(Js), {
6061
6061
  class: "color-background",
6062
- key: m.key,
6062
+ key: v.key,
6063
6063
  closable: "",
6064
- onClose: (w) => h(m.key),
6064
+ onClose: (b) => h(v.key),
6065
6065
  effect: "dark",
6066
6066
  type: "info"
6067
6067
  }, {
6068
6068
  default: W(() => [
6069
- D("b", Nr, pe(m.key) + ": ", 1),
6070
- D("span", zr, pe(o(m.value)), 1)
6069
+ D("b", Nr, pe(v.key) + ": ", 1),
6070
+ D("span", zr, pe(o(v.value)), 1)
6071
6071
  ]),
6072
6072
  _: 2
6073
- }, 1032, ["onClose"]))), 128)) : (C(), O("span", Or))
6073
+ }, 1032, ["onClose"]))), 128)) : (C(), z("span", Or))
6074
6074
  ]),
6075
- r.value.length ? (C(), O("div", Mr, [
6075
+ r.value.length ? (C(), z("div", Mr, [
6076
6076
  V(Y(ri), {
6077
6077
  placement: "top-start",
6078
6078
  content: "Clear All Filters"
@@ -6134,13 +6134,13 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6134
6134
  }
6135
6135
  return (h, c) => {
6136
6136
  const l = ie("el-input");
6137
- return a.hideHeader ? (C(), O("div", Ur, [
6137
+ return a.hideHeader ? (C(), z("div", Ur, [
6138
6138
  D("div", Wr, [
6139
6139
  Tt(h.$slots, "default", {}, void 0, !0)
6140
6140
  ])
6141
- ])) : (C(), O("div", Ir, [
6141
+ ])) : (C(), z("div", Ir, [
6142
6142
  D("div", null, [
6143
- Me((C(), O("div", {
6143
+ Me((C(), z("div", {
6144
6144
  onKeyup: us(o, ["enter"]),
6145
6145
  class: "tw-flex"
6146
6146
  }, [
@@ -6200,7 +6200,7 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6200
6200
  return;
6201
6201
  } catch {
6202
6202
  }
6203
- h.value = !1, o.value = !0, w(!0);
6203
+ h.value = !1, o.value = !0, b(!0);
6204
6204
  }
6205
6205
  }
6206
6206
  async function d() {
@@ -6208,11 +6208,11 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6208
6208
  try {
6209
6209
  await document.exitFullscreen();
6210
6210
  } catch {
6211
- h.value = !1, o.value = !1, w(!1);
6211
+ h.value = !1, o.value = !1, b(!1);
6212
6212
  }
6213
6213
  return;
6214
6214
  }
6215
- h.value = !1, o.value = !1, w(!1);
6215
+ h.value = !1, o.value = !1, b(!1);
6216
6216
  }
6217
6217
  function f() {
6218
6218
  o.value ? d() : l();
@@ -6220,20 +6220,20 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6220
6220
  function y() {
6221
6221
  t("toggle-lock", { id: i.widgetID, isLocked: n.value });
6222
6222
  }
6223
- let m = "";
6224
- function w(E) {
6225
- E ? (m = document.body.style.overflow || "", document.body.style.overflow = "hidden") : document.body.style.overflow = m;
6223
+ let v = "";
6224
+ function b(E) {
6225
+ E ? (v = document.body.style.overflow || "", document.body.style.overflow = "hidden") : document.body.style.overflow = v;
6226
6226
  }
6227
- function z() {
6228
- h.value = !!document.fullscreenElement, h.value ? (o.value = c(), o.value || w(!1)) : (o.value = !1, w(!1));
6227
+ function O() {
6228
+ h.value = !!document.fullscreenElement, h.value ? (o.value = c(), o.value || b(!1)) : (o.value = !1, b(!1));
6229
6229
  }
6230
6230
  return ds(() => {
6231
- document.addEventListener("fullscreenchange", z);
6231
+ document.addEventListener("fullscreenchange", O);
6232
6232
  }), fs(() => {
6233
- document.removeEventListener("fullscreenchange", z), w(!1);
6233
+ document.removeEventListener("fullscreenchange", O), b(!1);
6234
6234
  }), (E, A) => {
6235
6235
  const S = ie("el-icon");
6236
- return C(), O("div", {
6236
+ return C(), z("div", {
6237
6237
  ref_key: "instance",
6238
6238
  ref: s,
6239
6239
  class: ps(["grid-stack-item-content", {
@@ -6259,7 +6259,7 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6259
6259
  }, {
6260
6260
  default: W(() => [
6261
6261
  D("div", qr, [
6262
- (C(!0), O(De, null, qe(T.childIcons, (H) => (C(), Q(Y(ri), { placement: "bottom-start" }, {
6262
+ (C(!0), z(De, null, qe(T.childIcons, (H) => (C(), Q(Y(ri), { placement: "bottom-start" }, {
6263
6263
  content: W(() => [
6264
6264
  Oe(pe(H.tooltip), 1)
6265
6265
  ]),
@@ -6352,25 +6352,25 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6352
6352
  const d = B([]), { ComponentRegistry: f } = ni(t), y = si({});
6353
6353
  Xs(() => {
6354
6354
  var g;
6355
- m(), w(), t.loadFromLocalStorage(), o = ((g = i.value) == null ? void 0 : g.length) + 1;
6355
+ v(), b(), t.loadFromLocalStorage(), o = ((g = i.value) == null ? void 0 : g.length) + 1;
6356
6356
  }), ds(() => {
6357
6357
  E(), S();
6358
6358
  }), fs(() => {
6359
6359
  A(), t.unregisterGridProvider();
6360
6360
  });
6361
- function m() {
6362
- var g, _;
6363
- t.DefaultLayout = (g = e.options) == null ? void 0 : g.defaultLayout, t.setOptionServices((_ = e.options) == null ? void 0 : _.services);
6361
+ function v() {
6362
+ var g, m;
6363
+ t.DefaultLayout = (g = e.options) == null ? void 0 : g.defaultLayout, t.setOptionServices((m = e.options) == null ? void 0 : m.services);
6364
6364
  }
6365
- function w() {
6365
+ function b() {
6366
6366
  const g = {
6367
6367
  apiUrl: ue(() => {
6368
- var _;
6369
- return (_ = t.Services) == null ? void 0 : _.ApiUrl;
6368
+ var m;
6369
+ return (m = t.Services) == null ? void 0 : m.ApiUrl;
6370
6370
  }),
6371
6371
  s3Url: ue(() => {
6372
- var _;
6373
- return (_ = t.Services) == null ? void 0 : _.s3Url;
6372
+ var m;
6373
+ return (m = t.Services) == null ? void 0 : m.s3Url;
6374
6374
  }),
6375
6375
  services: t.Services,
6376
6376
  filters: t.Filters,
@@ -6380,16 +6380,16 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6380
6380
  };
6381
6381
  Ks("dashboard:globalVars", g);
6382
6382
  }
6383
- async function z() {
6383
+ async function O() {
6384
6384
  if (t.resetGridLayout(), await Yi(), !!n) {
6385
6385
  n.batchUpdate(), n.removeAll();
6386
6386
  for (const g of i.value) {
6387
- const _ = document.getElementById(g.id);
6388
- if (!_) {
6387
+ const m = document.getElementById(g.id);
6388
+ if (!m) {
6389
6389
  console.warn("makeWidget: element not found for id", g.id);
6390
6390
  continue;
6391
6391
  }
6392
- _.classList.add("grid-stack-item"), g.w != null && _.setAttribute("gs-w", String(g.w)), g.h != null && _.setAttribute("gs-h", String(g.h)), g.x != null && _.setAttribute("gs-x", String(g.x)), g.y != null && _.setAttribute("gs-y", String(g.y)), g.x == null && g.y == null && g.autoPosition && _.setAttribute("gs-auto-position", "true"), !_.gridstackNode && n.makeWidget(_);
6392
+ m.classList.add("grid-stack-item"), g.w != null && m.setAttribute("gs-w", String(g.w)), g.h != null && m.setAttribute("gs-h", String(g.h)), g.x != null && m.setAttribute("gs-x", String(g.x)), g.y != null && m.setAttribute("gs-y", String(g.y)), g.x == null && g.y == null && g.autoPosition && m.setAttribute("gs-auto-position", "true"), !m.gridstackNode && n.makeWidget(m);
6393
6393
  }
6394
6394
  n.commit();
6395
6395
  }
@@ -6415,8 +6415,8 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6415
6415
  const g = e.options.globalData;
6416
6416
  if (g) {
6417
6417
  t.clearOptionsDataItems();
6418
- for (const _ in g)
6419
- t.addOptionsDataItems(_, g[_]);
6418
+ for (const m in g)
6419
+ t.addOptionsDataItems(m, g[m]);
6420
6420
  }
6421
6421
  }
6422
6422
  fe(
@@ -6425,18 +6425,18 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6425
6425
  return (g = e.options) == null ? void 0 : g.availableWidgets;
6426
6426
  },
6427
6427
  (g) => {
6428
- f.value = {}, d.value = [], g && g.forEach((_, F) => {
6428
+ f.value = {}, d.value = [], g && g.forEach((m, F) => {
6429
6429
  let N, le;
6430
- if (_ && typeof _ == "object" && "name" in _ && "component" in _)
6431
- N = _.name, le = _.component;
6432
- else if (_ && typeof _ == "object" && "name" in _ && "loader" in _)
6433
- N = _.name, le = Zs(async () => {
6434
- const Se = await _.loader();
6430
+ if (m && typeof m == "object" && "name" in m && "component" in m)
6431
+ N = m.name, le = m.component;
6432
+ else if (m && typeof m == "object" && "name" in m && "loader" in m)
6433
+ N = m.name, le = Zs(async () => {
6434
+ const Se = await m.loader();
6435
6435
  return Se.default ?? Se;
6436
6436
  });
6437
- else if (_ && (typeof _ == "function" || typeof _ == "object"))
6438
- le = _, N = _.name || `Widget${F + 1}`;
6439
- else if (typeof _ == "function")
6437
+ else if (m && (typeof m == "function" || typeof m == "object"))
6438
+ le = m, N = m.name || `Widget${F + 1}`;
6439
+ else if (typeof m == "function")
6440
6440
  return;
6441
6441
  !N || !le || f.value[N] || (f.value[N] = le, d.value.push(N));
6442
6442
  });
@@ -6460,8 +6460,8 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6460
6460
  function T(g) {
6461
6461
  if (!g)
6462
6462
  return;
6463
- const _ = `${g}-${o}`, F = {
6464
- id: _,
6463
+ const m = `${g}-${o}`, F = {
6464
+ id: m,
6465
6465
  w: 2,
6466
6466
  h: 6,
6467
6467
  autoPosition: !0,
@@ -6471,37 +6471,37 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6471
6471
  Props: {}
6472
6472
  };
6473
6473
  o++, i.value.push(F), Yi(() => {
6474
- n == null || n.makeWidget(`#${_}`);
6474
+ n == null || n.makeWidget(`#${m}`);
6475
6475
  });
6476
6476
  }
6477
6477
  function H(g) {
6478
- var _ = i.value.findIndex((N) => N.id == g);
6479
- i.value.splice(_, 1);
6478
+ var m = i.value.findIndex((N) => N.id == g);
6479
+ i.value.splice(m, 1);
6480
6480
  const F = `#${g}`;
6481
6481
  n.removeWidget(F, !1);
6482
6482
  }
6483
6483
  function oe({
6484
6484
  id: g,
6485
- isLocked: _
6485
+ isLocked: m
6486
6486
  }) {
6487
6487
  const F = y[g];
6488
6488
  F && n && n.update(F, {
6489
- locked: !_,
6490
- noMove: !_,
6491
- noResize: !_
6489
+ locked: !m,
6490
+ noMove: !m,
6491
+ noResize: !m
6492
6492
  }), t.toggleWidgetLock(g);
6493
6493
  }
6494
6494
  function me() {
6495
6495
  h.value || (l.value = !l.value, l.value);
6496
6496
  }
6497
- return (g, _) => {
6497
+ return (g, m) => {
6498
6498
  const F = ie("el-button"), N = ie("el-option"), le = ie("el-select"), Se = ie("el-col");
6499
- return C(), O("div", Xr, [
6500
- c.value ? h.value ? Ve("", !0) : (C(), O("div", Qr, [
6499
+ return C(), z("div", Xr, [
6500
+ c.value ? h.value ? Ve("", !0) : (C(), z("div", Qr, [
6501
6501
  D("span", Jr, [
6502
6502
  V(F, {
6503
6503
  class: "edit-button",
6504
- onClick: _[1] || (_[1] = (M) => me())
6504
+ onClick: m[1] || (m[1] = (M) => me())
6505
6505
  }, {
6506
6506
  default: W(() => [
6507
6507
  Oe(pe(Y(s)), 1)
@@ -6509,11 +6509,11 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6509
6509
  _: 1
6510
6510
  })
6511
6511
  ])
6512
- ])) : (C(), O("div", Kr, [
6513
- h.value ? Ve("", !0) : (C(), O("span", Zr, [
6512
+ ])) : (C(), z("div", Kr, [
6513
+ h.value ? Ve("", !0) : (C(), z("span", Zr, [
6514
6514
  V(F, {
6515
6515
  class: "edit-button",
6516
- onClick: _[0] || (_[0] = (M) => me())
6516
+ onClick: m[0] || (m[0] = (M) => me())
6517
6517
  }, {
6518
6518
  default: W(() => [
6519
6519
  Oe(pe(Y(s)), 1)
@@ -6528,7 +6528,7 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6528
6528
  D("div", eo, [
6529
6529
  V(le, { placeholder: "Add New Widget" }, {
6530
6530
  default: W(() => [
6531
- (C(!0), O(De, null, qe(d.value, (M) => (C(), Q(N, {
6531
+ (C(!0), z(De, null, qe(d.value, (M) => (C(), Q(N, {
6532
6532
  key: M,
6533
6533
  label: M,
6534
6534
  value: M,
@@ -6539,9 +6539,9 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6539
6539
  }),
6540
6540
  D("div", to, [
6541
6541
  V(F, {
6542
- onClick: _[2] || (_[2] = (M) => z())
6542
+ onClick: m[2] || (m[2] = (M) => O())
6543
6543
  }, {
6544
- default: W(() => [..._[3] || (_[3] = [
6544
+ default: W(() => [...m[3] || (m[3] = [
6545
6545
  Oe("Reset Grid Layout", -1)
6546
6546
  ])]),
6547
6547
  _: 1
@@ -6556,9 +6556,9 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6556
6556
  ref: r,
6557
6557
  class: "grid-stack"
6558
6558
  }, [
6559
- (C(!0), O(De, null, qe(Y(i), (M) => {
6559
+ (C(!0), z(De, null, qe(Y(i), (M) => {
6560
6560
  var je, ht, ut, Ye;
6561
- return C(), O("div", {
6561
+ return C(), z("div", {
6562
6562
  class: "grid-stack-item",
6563
6563
  ref_for: !0,
6564
6564
  ref: (dt) => y[M.id] = dt,
@@ -6600,58 +6600,58 @@ const Lr = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" }, Nr = { class:
6600
6600
  headerDescription: { default: "" }
6601
6601
  },
6602
6602
  setup(a) {
6603
- var f;
6604
- const e = a, t = new URLSearchParams(window.location.search), i = t.get("gene"), s = t.get("gene2"), n = t.get("dashboard"), r = (y) => y.toLowerCase().replace(/\s+/g, ""), o = n ? ((f = e.dashboardOptions) == null ? void 0 : f.find(
6605
- (y) => r(y.name) === r(n)
6603
+ var f, y, v;
6604
+ const e = a, t = new URLSearchParams(window.location.search), i = ((f = t.get("gene")) == null ? void 0 : f.toUpperCase()) ?? null, s = ((y = t.get("gene2")) == null ? void 0 : y.toUpperCase()) ?? null, n = t.get("dashboard"), r = (b) => b.toLowerCase().replace(/\s+/g, ""), o = n ? ((v = e.dashboardOptions) == null ? void 0 : v.find(
6605
+ (b) => r(b.name) === r(n)
6606
6606
  )) ?? null : null, h = B(
6607
6607
  o || e.default || e.dashboardOptions && e.dashboardOptions[0] || {}
6608
6608
  ), c = B(e.dashboardOptions), l = ue(() => {
6609
- const y = h.value;
6610
- return !(y != null && y.defaultLayout) || !i && !s ? y : {
6611
- ...y,
6612
- defaultLayout: y.defaultLayout.map((m) => ({
6613
- ...m,
6609
+ const b = h.value;
6610
+ return !(b != null && b.defaultLayout) || !i && !s ? b : {
6611
+ ...b,
6612
+ defaultLayout: b.defaultLayout.map((O) => ({
6613
+ ...O,
6614
6614
  Props: {
6615
- ...m.Props,
6615
+ ...O.Props,
6616
6616
  ...i ? { initialGene: i, initialGene1: i } : {},
6617
6617
  ...s ? { initialGene2: s } : {}
6618
6618
  }
6619
6619
  }))
6620
6620
  };
6621
- }), d = (y) => {
6622
- h.value = y;
6621
+ }), d = (b) => {
6622
+ h.value = b;
6623
6623
  };
6624
- return (y, m) => {
6625
- var w;
6626
- return C(), O("div", ro, [
6624
+ return (b, O) => {
6625
+ var E;
6626
+ return C(), z("div", ro, [
6627
6627
  D("div", oo, [
6628
6628
  D("h4", ao, pe(a.headerTitle), 1),
6629
6629
  D("p", lo, pe(a.headerDescription), 1),
6630
6630
  D("div", co, [
6631
- (C(!0), O(De, null, qe(c.value, (z) => {
6632
- var E;
6633
- return C(), O("button", {
6634
- key: z.name,
6631
+ (C(!0), z(De, null, qe(c.value, (A) => {
6632
+ var S;
6633
+ return C(), z("button", {
6634
+ key: A.name,
6635
6635
  class: ps([
6636
6636
  "dashboard-button",
6637
- { active: ((E = h.value) == null ? void 0 : E.name) === z.name }
6637
+ { active: ((S = h.value) == null ? void 0 : S.name) === A.name }
6638
6638
  ]),
6639
- onClick: (A) => d(z)
6640
- }, pe(z.name), 11, ho);
6639
+ onClick: (T) => d(A)
6640
+ }, pe(A.name), 11, ho);
6641
6641
  }), 128))
6642
6642
  ])
6643
6643
  ]),
6644
6644
  D("div", uo, [
6645
6645
  (C(), Q(Y(no), {
6646
6646
  class: "dashboard-app",
6647
- key: (w = h.value) == null ? void 0 : w.name,
6647
+ key: (E = h.value) == null ? void 0 : E.name,
6648
6648
  options: l.value
6649
6649
  }, null, 8, ["options"]))
6650
6650
  ])
6651
6651
  ]);
6652
6652
  };
6653
6653
  }
6654
- }), bo = /* @__PURE__ */ Le(fo, [["__scopeId", "data-v-6ea2ebdd"]]);
6654
+ }), bo = /* @__PURE__ */ Le(fo, [["__scopeId", "data-v-5c609848"]]);
6655
6655
  export {
6656
6656
  yo as MarkdownWidget,
6657
6657
  bo as MultiDashboard,