@tenorlab/react-dashboard 1.2.1 → 1.2.2

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,5 +1,5 @@
1
1
  import ae, { useState as le, useCallback as ue, useMemo as st, forwardRef as ce, useRef as Ct, Suspense as St, useEffect as Dt } from "react";
2
- import { jsxs as W, jsx as a } from "react/jsx-runtime";
2
+ import { jsxs as W, jsx as s } from "react/jsx-runtime";
3
3
  import lt from "react-dom";
4
4
  const Nt = [
5
5
  {
@@ -81,7 +81,7 @@ const Nt = [
81
81
  }
82
82
  ], Tt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Et = (e, n) => Tt.includes(e) ? n : 1, _t = {
83
83
  incrementOrDecrementValue: (e, n) => {
84
- const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, o = e.value.match(/([^\d.]+)/), i = o ? o[1] : e.defaultUnit, s = Et(i, e.step) * n, b = `${Math.max(r + s, e.minValue).toFixed(1)}${i}`;
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 = Et(o, e.step) * n, b = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
85
85
  return {
86
86
  ...e,
87
87
  value: b
@@ -110,11 +110,11 @@ const Nt = [
110
110
  return n.widgets = n.widgets.filter((t) => {
111
111
  if (`${t}`.includes("WidgetContainer")) {
112
112
  const r = n.childWidgetsConfig.filter(
113
- (o) => o.parentWidgetKey === t
113
+ (i) => i.parentWidgetKey === t
114
114
  );
115
115
  if (!r || r.length === 0)
116
116
  return n.widgets = n.widgets.filter(
117
- (o) => o !== t
117
+ (i) => i !== t
118
118
  ), !1;
119
119
  }
120
120
  return !0;
@@ -123,23 +123,23 @@ const Nt = [
123
123
  const n = e.widgets.filter(
124
124
  (r) => r.includes("WidgetContainer")
125
125
  ), t = {};
126
- return n.forEach((r, o) => {
127
- const d = `${r.split("_container")[0]}_container${o + 1}`;
126
+ return n.forEach((r, i) => {
127
+ const d = `${r.split("_container")[0]}_container${i + 1}`;
128
128
  t[r] = d;
129
129
  }), e.widgets = e.widgets.map((r) => t[r] || r), e.childWidgetsConfig = e.childWidgetsConfig.map((r) => {
130
- const o = r.parentWidgetKey, i = t[o];
130
+ const i = r.parentWidgetKey, o = t[i];
131
131
  return {
132
132
  ...r,
133
133
  // If a new key exists, use it. If not, keep the original key.
134
- parentWidgetKey: i || o
134
+ parentWidgetKey: o || i
135
135
  };
136
136
  }), e;
137
137
  }, ge = (e, n) => {
138
- const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], o = n?.title || e, i = n?.description || (t ? "Container" : "Unknown");
138
+ const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
139
139
  return {
140
- title: o,
140
+ title: i,
141
141
  displayName: e,
142
- description: i,
142
+ description: o,
143
143
  categories: r,
144
144
  noDuplicatedWidgets: !0,
145
145
  icon: void 0,
@@ -176,22 +176,26 @@ const Nt = [
176
176
  }
177
177
  ];
178
178
  }, It = (e) => {
179
- const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
179
+ const n = e.match(/\/widget-([a-zA-Z0-9_-]+)\/(index|widget-.*|.*)\.ts(x?)$/);
180
180
  if (n && n[1]) {
181
- const t = n[1], r = `Widget${t.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("")}`, o = t.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join(" ");
182
- return { key: r, title: o, folder: t };
181
+ const t = n[1], r = t.split(/[-_]/), i = `Widget${r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("")}`, o = r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join(" ");
182
+ return {
183
+ key: i,
184
+ title: o,
185
+ folder: t
186
+ };
183
187
  }
184
188
  return null;
185
189
  }, Ot = (e, n, t, r) => {
186
- const o = `${n}/widget-${t}/widget-${t}.meta.ts`, i = e[o], s = `${r}Meta`;
187
- if (i && i[s])
188
- return i[s];
190
+ const i = `${n}/widget-${t}/widget-${t}.meta.ts`, o = e[i], a = `${r}Meta`;
191
+ if (o && o[a])
192
+ return o[a];
189
193
  }, In = async (e) => new Promise(async (n, t) => {
190
194
  const r = [];
191
195
  try {
192
- const i = await (await fetch(`${e}?${Math.random()}`)).json();
193
- for (const s in i) {
194
- const d = i[s], b = () => import(
196
+ const o = await (await fetch(`${e}?${Math.random()}`)).json();
197
+ for (const a in o) {
198
+ const d = o[a], b = () => import(
195
199
  /* @vite-ignore */
196
200
  d.url
197
201
  ), g = {
@@ -203,40 +207,40 @@ const Nt = [
203
207
  // Or a logic to map a string name to a Lucide component
204
208
  externalDependencies: d.meta.externalDependencies || []
205
209
  };
206
- r.push(dt(s, b, g));
210
+ r.push(dt(a, b, g));
207
211
  }
208
212
  n({
209
213
  entries: r,
210
214
  message: "",
211
215
  details: ""
212
216
  });
213
- } catch (o) {
214
- console.error("Remote plugin discovery failed:", o), t({
217
+ } catch (i) {
218
+ console.error("Remote plugin discovery failed:", i), t({
215
219
  entries: [],
216
220
  message: "Remote plugin discovery failed:",
217
- details: typeof o == "object" ? JSON.stringify(o) : o
221
+ details: typeof i == "object" ? JSON.stringify(i) : i
218
222
  });
219
223
  }
220
224
  }), On = (e, n, t, r = !0) => {
221
- const o = [];
222
- for (const i in n) {
223
- const s = n[i], d = It(i);
224
- if (d && s) {
225
+ const i = [];
226
+ for (const o in n) {
227
+ const a = n[o], d = It(o);
228
+ if (d && a) {
225
229
  const { key: b, title: g, folder: h } = d;
226
230
  let u = Ot(t, e, h, b);
227
231
  if (u || (u = ge(b, {
228
232
  title: g,
229
233
  description: `Local ${r ? "dynamic" : "static"} widget`
230
234
  })), r) {
231
- const m = s;
232
- o.push(dt(b, m, u));
235
+ const m = a;
236
+ i.push(dt(b, m, u));
233
237
  } else {
234
- const m = s.default || s;
235
- o.push(Wt(b, m, u));
238
+ const m = a.default || a;
239
+ i.push(Wt(b, m, u));
236
240
  }
237
241
  }
238
242
  }
239
- return o;
243
+ return i;
240
244
  }, Fe = (e) => {
241
245
  let n;
242
246
  const t = /* @__PURE__ */ new Set(), r = (g, h) => {
@@ -245,7 +249,7 @@ const Nt = [
245
249
  const m = n;
246
250
  n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, m));
247
251
  }
248
- }, o = () => n, d = { setState: r, getState: o, getInitialState: () => b, subscribe: (g) => (t.add(g), () => t.delete(g)) }, b = n = e(r, o, d);
252
+ }, i = () => n, d = { setState: r, getState: i, getInitialState: () => b, subscribe: (g) => (t.add(g), () => t.delete(g)) }, b = n = e(r, i, d);
249
253
  return d;
250
254
  }, Rt = ((e) => e ? Fe(e) : Fe), kt = (e) => e;
251
255
  function jt(e, n = kt) {
@@ -266,17 +270,17 @@ const At = (e) => {
266
270
  const t = Ft(e);
267
271
  return `${n}_${t}`;
268
272
  }, Ut = (e) => {
269
- const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: o } = e;
273
+ const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
270
274
  if (r) {
271
- if (o && n.childWidgetsConfig.find(
272
- (s) => s.parentWidgetKey === r && s.widgetKey === t
275
+ if (i && n.childWidgetsConfig.find(
276
+ (a) => a.parentWidgetKey === r && a.widgetKey === t
273
277
  ))
274
278
  return {
275
279
  success: !1,
276
280
  message: `DashboardStore: addWidget: Widget already added (${t})`,
277
281
  updatedDashboardConfig: n
278
282
  };
279
- const i = [
283
+ const o = [
280
284
  ...n.childWidgetsConfig,
281
285
  { parentWidgetKey: r, widgetKey: t }
282
286
  // new entry
@@ -285,22 +289,22 @@ const At = (e) => {
285
289
  success: !0,
286
290
  updatedDashboardConfig: {
287
291
  ...n,
288
- childWidgetsConfig: i
292
+ childWidgetsConfig: o
289
293
  }
290
294
  };
291
295
  } else {
292
- if (o && n.widgets.includes(t))
296
+ if (i && n.widgets.includes(t))
293
297
  return {
294
298
  success: !1,
295
299
  message: `DashboardStore: addWidget: Widget already added (${t})`,
296
300
  updatedDashboardConfig: n
297
301
  };
298
- const i = [...n.widgets, t];
302
+ const o = [...n.widgets, t];
299
303
  return {
300
304
  success: !0,
301
305
  updatedDashboardConfig: {
302
306
  ...n,
303
- widgets: i
307
+ widgets: o
304
308
  }
305
309
  };
306
310
  }
@@ -308,65 +312,65 @@ const At = (e) => {
308
312
  if ((t || "").trim().length > 0) {
309
313
  const r = e.childWidgetsConfig.filter(
310
314
  (b) => b.parentWidgetKey !== t
311
- ), o = e.childWidgetsConfig.filter(
315
+ ), i = e.childWidgetsConfig.filter(
312
316
  (b) => b.parentWidgetKey === t && b.widgetKey !== n
313
- ), i = [...r, ...o];
314
- let s = {
317
+ ), o = [...r, ...i];
318
+ let a = {
315
319
  ...e,
316
- childWidgetsConfig: i
320
+ childWidgetsConfig: o
317
321
  };
318
- return `${n}`.includes("Container") && (s = Pt(s)), {
322
+ return `${n}`.includes("Container") && (a = Pt(a)), {
319
323
  success: !0,
320
- updatedDashboardConfig: s
324
+ updatedDashboardConfig: a
321
325
  };
322
326
  } else {
323
- const r = e.widgets.filter((i) => i !== n), o = e.childWidgetsConfig.filter(
324
- (i) => i.parentWidgetKey !== n
327
+ const r = e.widgets.filter((o) => o !== n), i = e.childWidgetsConfig.filter(
328
+ (o) => o.parentWidgetKey !== n
325
329
  );
326
330
  return {
327
331
  success: !0,
328
332
  updatedDashboardConfig: {
329
333
  ...e,
330
334
  widgets: r,
331
- childWidgetsConfig: o
335
+ childWidgetsConfig: i
332
336
  }
333
337
  };
334
338
  }
335
339
  }, Yt = (e, n, t, r) => {
336
340
  if ((r || "").trim().length > 0) {
337
- const o = e.childWidgetsConfig.filter(
341
+ const i = e.childWidgetsConfig.filter(
338
342
  (h) => h.parentWidgetKey !== r
339
343
  );
340
- let i = e.childWidgetsConfig.filter(
344
+ let o = e.childWidgetsConfig.filter(
341
345
  (h) => h.parentWidgetKey === r
342
346
  );
343
- const s = i.indexOf(t);
344
- let d = s + n;
345
- if (d = Math.max(0, d), d = Math.min(i.length - 1, d), d === s)
347
+ const a = o.indexOf(t);
348
+ let d = a + n;
349
+ if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === a)
346
350
  return {
347
351
  success: !1,
348
352
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
349
353
  updatedDashboardConfig: e
350
354
  };
351
- const b = [...i], [g] = b.splice(s, 1);
355
+ const b = [...o], [g] = b.splice(a, 1);
352
356
  return b.splice(d, 0, g), {
353
357
  success: !0,
354
358
  updatedDashboardConfig: {
355
359
  ...e,
356
- childWidgetsConfig: [...o, ...b]
360
+ childWidgetsConfig: [...i, ...b]
357
361
  }
358
362
  };
359
363
  } else {
360
- const o = e.widgets || [], i = o.indexOf(t);
361
- let s = i + n;
362
- if (s = Math.max(0, s), s = Math.min(o.length - 1, s), s === i)
364
+ const i = e.widgets || [], o = i.indexOf(t);
365
+ let a = o + n;
366
+ if (a = Math.max(0, a), a = Math.min(i.length - 1, a), a === o)
363
367
  return {
364
368
  success: !1,
365
369
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
366
370
  updatedDashboardConfig: e
367
371
  };
368
- const d = [...o], [b] = d.splice(i, 1);
369
- return d.splice(s, 0, b), {
372
+ const d = [...i], [b] = d.splice(o, 1);
373
+ return d.splice(a, 0, b), {
370
374
  success: !0,
371
375
  updatedDashboardConfig: {
372
376
  ...e,
@@ -389,105 +393,105 @@ const At = (e) => {
389
393
  setTargetContainerKey: (t) => (e(() => ({ targetContainerKey: t })), t),
390
394
  setAllDashboardConfigs: (t) => (e(() => ({ allDashboardConfigs: t })), n().allDashboardConfigs),
391
395
  setCurrentDashboardConfig: (t) => {
392
- const r = n(), o = [
393
- ...r.allDashboardConfigs.filter((i) => i.dashboardId !== t.dashboardId),
396
+ const r = n(), i = [
397
+ ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
394
398
  t
395
399
  ];
396
400
  return e(() => ({
397
401
  ...r,
398
- allDashboardConfigs: o,
402
+ allDashboardConfigs: i,
399
403
  currentDashboardConfig: t
400
- })), o;
404
+ })), i;
401
405
  },
402
406
  addDashboardConfig: (t) => {
403
- const r = n(), o = [
404
- ...r.allDashboardConfigs.filter((i) => i.dashboardId !== t.dashboardId),
407
+ const r = n(), i = [
408
+ ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
405
409
  t
406
410
  ];
407
411
  return e(() => ({
408
412
  ...r,
409
- allDashboardConfigs: o,
413
+ allDashboardConfigs: i,
410
414
  currentDashboardConfig: t
411
- })), o;
415
+ })), i;
412
416
  },
413
417
  deleteDashboardConfigById: (t) => {
414
- const r = n(), o = [...r.allDashboardConfigs.filter((i) => i.dashboardId !== t)];
418
+ const r = n(), i = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
415
419
  return e(() => ({
416
420
  ...r,
417
- allDashboardConfigs: o,
418
- currentDashboardConfig: o[0] || Ce
419
- })), o;
421
+ allDashboardConfigs: i,
422
+ currentDashboardConfig: i[0] || Ce
423
+ })), i;
420
424
  },
421
425
  selectDashboardById: (t) => (e(() => {
422
- const r = n(), o = r.allDashboardConfigs.find((i) => i.dashboardId === t);
423
- return o ? {
424
- currentDashboardConfig: o
426
+ const r = n(), i = r.allDashboardConfigs.find((o) => o.dashboardId === t);
427
+ return i ? {
428
+ currentDashboardConfig: i
425
429
  } : {
426
430
  ...r
427
431
  };
428
432
  }), n().currentDashboardConfig),
429
433
  addWidget: (t) => {
430
- const r = n(), o = Ut({
434
+ const r = n(), i = Ut({
431
435
  dashboardConfig: r.currentDashboardConfig,
432
436
  ...t
433
- }), i = [
437
+ }), o = [
434
438
  ...r.allDashboardConfigs.filter(
435
- (s) => s.dashboardId !== o.updatedDashboardConfig.dashboardId
439
+ (a) => a.dashboardId !== i.updatedDashboardConfig.dashboardId
436
440
  ),
437
- o.updatedDashboardConfig
441
+ i.updatedDashboardConfig
438
442
  ];
439
- return o.success && e(() => ({
440
- allDashboardConfigs: i,
441
- currentDashboardConfig: o.updatedDashboardConfig
443
+ return i.success && e(() => ({
444
+ allDashboardConfigs: o,
445
+ currentDashboardConfig: i.updatedDashboardConfig
442
446
  })), {
443
- ...o,
444
- allUpdatedDashboardConfigs: i
447
+ ...i,
448
+ allUpdatedDashboardConfigs: o
445
449
  };
446
450
  },
447
451
  removeWidget: (t, r) => {
448
- const o = n(), i = qt(o.currentDashboardConfig, t, r), s = [
449
- ...o.allDashboardConfigs.filter(
450
- (d) => d.dashboardId !== i.updatedDashboardConfig.dashboardId
452
+ const i = n(), o = qt(i.currentDashboardConfig, t, r), a = [
453
+ ...i.allDashboardConfigs.filter(
454
+ (d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
451
455
  ),
452
- i.updatedDashboardConfig
456
+ o.updatedDashboardConfig
453
457
  ];
454
- return i.success && e(() => ({
455
- allDashboardConfigs: s,
456
- currentDashboardConfig: i.updatedDashboardConfig
458
+ return o.success && e(() => ({
459
+ allDashboardConfigs: a,
460
+ currentDashboardConfig: o.updatedDashboardConfig
457
461
  })), {
458
- ...i,
459
- allUpdatedDashboardConfigs: s
462
+ ...o,
463
+ allUpdatedDashboardConfigs: a
460
464
  };
461
465
  },
462
- moveWidget: (t, r, o) => {
463
- const i = n(), s = Yt(i.currentDashboardConfig, t, r, o), d = [
464
- ...i.allDashboardConfigs.filter(
465
- (b) => b.dashboardId !== s.updatedDashboardConfig.dashboardId
466
+ moveWidget: (t, r, i) => {
467
+ const o = n(), a = Yt(o.currentDashboardConfig, t, r, i), d = [
468
+ ...o.allDashboardConfigs.filter(
469
+ (b) => b.dashboardId !== a.updatedDashboardConfig.dashboardId
466
470
  ),
467
- s.updatedDashboardConfig
471
+ a.updatedDashboardConfig
468
472
  ];
469
- return s.success && e(() => ({
473
+ return a.success && e(() => ({
470
474
  allDashboardConfigs: d,
471
- currentDashboardConfig: s.updatedDashboardConfig
475
+ currentDashboardConfig: a.updatedDashboardConfig
472
476
  })), {
473
- ...s,
477
+ ...a,
474
478
  allUpdatedDashboardConfigs: d
475
479
  };
476
480
  }
477
481
  }), Rn = Lt()((...e) => ({
478
482
  ...zt(...e)
479
483
  })), ut = (e, n) => `dashboards_${n}_${e}`, Bt = async (e, n, t, r) => {
480
- const o = localStorage.getItem(ut(e, n));
481
- if (o)
484
+ const i = localStorage.getItem(ut(e, n));
485
+ if (i)
482
486
  try {
483
- const i = JSON.parse(o);
484
- return i.length < 1 ? [r] : (i.forEach((s) => {
485
- s.dashboardId || (s.dashboardId = "default"), s.dashboardName || (s.dashboardName = `Dashboard ${s.dashboardId}`), s.responsiveGrid = s.responsiveGrid ?? !1, (s.widgets || []).length < 1 && (s.widgets = r.widgets);
486
- const d = (s.cssSettings || []).filter(
487
+ const o = JSON.parse(i);
488
+ return o.length < 1 ? [r] : (o.forEach((a) => {
489
+ 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);
490
+ const d = (a.cssSettings || []).filter(
487
491
  (b) => r.cssSettings.some((g) => g.key === b.key)
488
492
  );
489
493
  if (d.length < 1)
490
- s.cssSettings = [...r.cssSettings];
494
+ a.cssSettings = [...r.cssSettings];
491
495
  else {
492
496
  d.forEach((g) => {
493
497
  g.value = (g.value || "").replace(/NaN/g, "");
@@ -501,35 +505,35 @@ const At = (e) => {
501
505
  const b = r.cssSettings.filter((g) => !d.some(
502
506
  (h) => h.key === g.key
503
507
  ));
504
- s.cssSettings = [...d, ...b];
508
+ a.cssSettings = [...d, ...b];
505
509
  }
506
- s.widgets = s.widgets.filter(
510
+ a.widgets = a.widgets.filter(
507
511
  (b) => b.includes("WidgetContainer") || t.has(b)
508
- ), s.childWidgetsConfig = s.childWidgetsConfig.filter(
512
+ ), a.childWidgetsConfig = a.childWidgetsConfig.filter(
509
513
  (b) => t.has(b.widgetKey)
510
- ), s.zoomScale ? s.zoomScale < 0.7 && (s.zoomScale = 0.7) : s.zoomScale = 1;
511
- }), i);
512
- } catch (i) {
513
- console.warn("Error parsing saved dashboard config:", i);
514
+ ), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
515
+ }), o);
516
+ } catch (o) {
517
+ console.warn("Error parsing saved dashboard config:", o);
514
518
  }
515
519
  return [r];
516
520
  }, Ht = async (e, n, t, r) => {
517
- t.forEach((i) => {
518
- if (i.userID = e, i.clientAppKey = n, i.responsiveGrid = i.responsiveGrid ?? !1, typeof i != "object")
521
+ t.forEach((o) => {
522
+ if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
519
523
  throw new Error("Invalid dashboard configuration");
520
- i.widgets = i.widgets.filter(
521
- (s) => s.includes("WidgetContainer") || r.has(s)
522
- ), i.childWidgetsConfig = i.childWidgetsConfig.filter(
523
- (s) => r.has(s.widgetKey)
524
- ), i.zoomScale ? i.zoomScale < 0.7 && (i.zoomScale = 0.7) : i.zoomScale = 1;
524
+ o.widgets = o.widgets.filter(
525
+ (a) => a.includes("WidgetContainer") || r.has(a)
526
+ ), o.childWidgetsConfig = o.childWidgetsConfig.filter(
527
+ (a) => r.has(a.widgetKey)
528
+ ), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
525
529
  });
526
- const o = JSON.stringify(t);
527
- return localStorage.setItem(ut(e, n), o), !0;
530
+ const i = JSON.stringify(t);
531
+ return localStorage.setItem(ut(e, n), i), !0;
528
532
  }, Kt = {
529
533
  getSavedDashboards: Bt,
530
534
  saveDashboards: Ht
531
535
  }, kn = () => Kt, jn = () => {
532
- const [e, n] = le({}), [t, r] = le({}), o = ue((h) => {
536
+ const [e, n] = le({}), [t, r] = le({}), i = ue((h) => {
533
537
  const u = h.dashboardId;
534
538
  n((m) => {
535
539
  const y = {
@@ -545,7 +549,7 @@ const At = (e) => {
545
549
  // Forces a reset to just this one entry
546
550
  };
547
551
  });
548
- }, []), i = ue(
552
+ }, []), o = ue(
549
553
  (h) => {
550
554
  n((u) => {
551
555
  const m = h.dashboardId, y = u[m] || [], D = t[m] ?? -1, p = y.slice(0, D + 1), v = {
@@ -564,7 +568,7 @@ const At = (e) => {
564
568
  });
565
569
  },
566
570
  [t]
567
- ), s = ue((h) => {
571
+ ), a = ue((h) => {
568
572
  n((u) => {
569
573
  if (!u[h])
570
574
  return u;
@@ -597,10 +601,10 @@ const At = (e) => {
597
601
  ]
598
602
  );
599
603
  return {
600
- initializeHistoryForDashboard: o,
604
+ initializeHistoryForDashboard: i,
601
605
  resetAllHistory: () => n({}),
602
- addUndoEntry: i,
603
- removeUndoHistoryForDashboard: s,
606
+ addUndoEntry: o,
607
+ removeUndoHistoryForDashboard: a,
604
608
  undo: d,
605
609
  redo: b,
606
610
  getUndoStatus: (h) => {
@@ -616,7 +620,7 @@ function H({
616
620
  children: e,
617
621
  className: n
618
622
  }) {
619
- return /* @__PURE__ */ a(
623
+ return /* @__PURE__ */ s(
620
624
  "svg",
621
625
  {
622
626
  xmlns: "http://www.w3.org/2000/svg",
@@ -635,40 +639,40 @@ function H({
635
639
  }
636
640
  function An({ className: e }) {
637
641
  return /* @__PURE__ */ W(H, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
638
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
639
- /* @__PURE__ */ a("path", { d: "M8 12h8" }),
640
- /* @__PURE__ */ a("path", { d: "M12 8v8" })
642
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
643
+ /* @__PURE__ */ s("path", { d: "M8 12h8" }),
644
+ /* @__PURE__ */ s("path", { d: "M12 8v8" })
641
645
  ] });
642
646
  }
643
647
  function Ln({ className: e }) {
644
648
  return /* @__PURE__ */ W(H, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
645
- /* @__PURE__ */ a("path", { d: "M10 11v6" }),
646
- /* @__PURE__ */ a("path", { d: "M14 11v6" }),
647
- /* @__PURE__ */ a("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
648
- /* @__PURE__ */ a("path", { d: "M3 6h18" }),
649
- /* @__PURE__ */ a("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
649
+ /* @__PURE__ */ s("path", { d: "M10 11v6" }),
650
+ /* @__PURE__ */ s("path", { d: "M14 11v6" }),
651
+ /* @__PURE__ */ s("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
652
+ /* @__PURE__ */ s("path", { d: "M3 6h18" }),
653
+ /* @__PURE__ */ s("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
650
654
  ] });
651
655
  }
652
656
  function Fn({ className: e }) {
653
657
  return /* @__PURE__ */ W(H, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
654
- /* @__PURE__ */ a("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
655
- /* @__PURE__ */ a("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
658
+ /* @__PURE__ */ s("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
659
+ /* @__PURE__ */ s("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
656
660
  ] });
657
661
  }
658
662
  function Vn({ className: e }) {
659
663
  return /* @__PURE__ */ W(H, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
660
- /* @__PURE__ */ a("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
661
- /* @__PURE__ */ a("path", { d: "M3 9h18" }),
662
- /* @__PURE__ */ a("path", { d: "M3 15h18" }),
663
- /* @__PURE__ */ a("path", { d: "M9 3v18" }),
664
- /* @__PURE__ */ a("path", { d: "M15 3v18" })
664
+ /* @__PURE__ */ s("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
665
+ /* @__PURE__ */ s("path", { d: "M3 9h18" }),
666
+ /* @__PURE__ */ s("path", { d: "M3 15h18" }),
667
+ /* @__PURE__ */ s("path", { d: "M9 3v18" }),
668
+ /* @__PURE__ */ s("path", { d: "M15 3v18" })
665
669
  ] });
666
670
  }
667
671
  function Un({ className: e }) {
668
672
  return /* @__PURE__ */ W(H, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
669
- /* @__PURE__ */ a("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
670
- /* @__PURE__ */ a("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
671
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
673
+ /* @__PURE__ */ s("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
674
+ /* @__PURE__ */ s("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
675
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
672
676
  ] });
673
677
  }
674
678
  function qn({ className: e }) {
@@ -677,10 +681,10 @@ function qn({ className: e }) {
677
681
  {
678
682
  className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
679
683
  children: [
680
- /* @__PURE__ */ a("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
681
- /* @__PURE__ */ a("path", { d: "M10 19v-3.96 3.15" }),
682
- /* @__PURE__ */ a("path", { d: "M7 19h5" }),
683
- /* @__PURE__ */ a("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
684
+ /* @__PURE__ */ s("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
685
+ /* @__PURE__ */ s("path", { d: "M10 19v-3.96 3.15" }),
686
+ /* @__PURE__ */ s("path", { d: "M7 19h5" }),
687
+ /* @__PURE__ */ s("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
684
688
  ]
685
689
  }
686
690
  );
@@ -691,9 +695,9 @@ function ft({ className: e }) {
691
695
  {
692
696
  className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
693
697
  children: [
694
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
695
- /* @__PURE__ */ a("path", { d: "m12 8-4 4 4 4" }),
696
- /* @__PURE__ */ a("path", { d: "M16 12H8" })
698
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
699
+ /* @__PURE__ */ s("path", { d: "m12 8-4 4 4 4" }),
700
+ /* @__PURE__ */ s("path", { d: "M16 12H8" })
697
701
  ]
698
702
  }
699
703
  );
@@ -704,17 +708,17 @@ function ht({ className: e }) {
704
708
  {
705
709
  className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
706
710
  children: [
707
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
708
- /* @__PURE__ */ a("path", { d: "m12 16 4-4-4-4" }),
709
- /* @__PURE__ */ a("path", { d: "M8 12h8" })
711
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
712
+ /* @__PURE__ */ s("path", { d: "m12 16 4-4-4-4" }),
713
+ /* @__PURE__ */ s("path", { d: "M8 12h8" })
710
714
  ]
711
715
  }
712
716
  );
713
717
  }
714
718
  function Xt({ className: e }) {
715
719
  return /* @__PURE__ */ W(H, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
716
- /* @__PURE__ */ a("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
717
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "3" })
720
+ /* @__PURE__ */ s("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
721
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "3" })
718
722
  ] });
719
723
  }
720
724
  function Yn({ className: e }) {
@@ -723,85 +727,85 @@ function Yn({ className: e }) {
723
727
  {
724
728
  className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
725
729
  children: [
726
- /* @__PURE__ */ a("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
727
- /* @__PURE__ */ a("path", { d: "M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4" }),
728
- /* @__PURE__ */ a("path", { d: "M8 18h.01" })
730
+ /* @__PURE__ */ s("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
731
+ /* @__PURE__ */ s("path", { d: "M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4" }),
732
+ /* @__PURE__ */ s("path", { d: "M8 18h.01" })
729
733
  ]
730
734
  }
731
735
  );
732
736
  }
733
737
  function gt({ className: e }) {
734
738
  return /* @__PURE__ */ W(H, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
735
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
736
- /* @__PURE__ */ a("path", { d: "m15 9-6 6" }),
737
- /* @__PURE__ */ a("path", { d: "m9 9 6 6" })
739
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
740
+ /* @__PURE__ */ s("path", { d: "m15 9-6 6" }),
741
+ /* @__PURE__ */ s("path", { d: "m9 9 6 6" })
738
742
  ] });
739
743
  }
740
744
  function zn({ className: e }) {
741
745
  return /* @__PURE__ */ W(H, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
742
- /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
743
- /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
744
- /* @__PURE__ */ a("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
745
- /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
746
+ /* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
747
+ /* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
748
+ /* @__PURE__ */ s("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
749
+ /* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
746
750
  ] });
747
751
  }
748
752
  function Bn({ className: e }) {
749
753
  return /* @__PURE__ */ W(H, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
750
- /* @__PURE__ */ a("circle", { cx: "11", cy: "11", r: "8" }),
751
- /* @__PURE__ */ a("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
752
- /* @__PURE__ */ a("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
754
+ /* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
755
+ /* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
756
+ /* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
753
757
  ] });
754
758
  }
755
759
  function Gt({ className: e }) {
756
760
  return /* @__PURE__ */ W(H, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
757
- /* @__PURE__ */ a("path", { d: "M10 2h4" }),
758
- /* @__PURE__ */ a("path", { d: "M12 14v-4" }),
759
- /* @__PURE__ */ a("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
760
- /* @__PURE__ */ a("path", { d: "M9 17H4v5" })
761
+ /* @__PURE__ */ s("path", { d: "M10 2h4" }),
762
+ /* @__PURE__ */ s("path", { d: "M12 14v-4" }),
763
+ /* @__PURE__ */ s("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
764
+ /* @__PURE__ */ s("path", { d: "M9 17H4v5" })
761
765
  ] });
762
766
  }
763
767
  function Zt({ className: e }) {
764
768
  return /* @__PURE__ */ W(H, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
765
- /* @__PURE__ */ a("path", { d: "M3 7v6h6" }),
766
- /* @__PURE__ */ a("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
769
+ /* @__PURE__ */ s("path", { d: "M3 7v6h6" }),
770
+ /* @__PURE__ */ s("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
767
771
  ] });
768
772
  }
769
773
  function Jt({ className: e }) {
770
774
  return /* @__PURE__ */ W(H, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
771
- /* @__PURE__ */ a("path", { d: "M21 7v6h-6" }),
772
- /* @__PURE__ */ a("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
775
+ /* @__PURE__ */ s("path", { d: "M21 7v6h-6" }),
776
+ /* @__PURE__ */ s("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
773
777
  ] });
774
778
  }
775
779
  function Qt({ className: e }) {
776
780
  return /* @__PURE__ */ W(H, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
777
- /* @__PURE__ */ a("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
778
- /* @__PURE__ */ a("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
779
- /* @__PURE__ */ a("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
780
- /* @__PURE__ */ a("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
781
+ /* @__PURE__ */ s("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
782
+ /* @__PURE__ */ s("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
783
+ /* @__PURE__ */ s("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
784
+ /* @__PURE__ */ s("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
781
785
  ] });
782
786
  }
783
787
  function en({ className: e }) {
784
788
  return /* @__PURE__ */ W(H, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
785
- /* @__PURE__ */ a("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
786
- /* @__PURE__ */ a("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
787
- /* @__PURE__ */ a("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
788
- /* @__PURE__ */ a("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
789
- /* @__PURE__ */ a("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
789
+ /* @__PURE__ */ s("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
790
+ /* @__PURE__ */ s("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
791
+ /* @__PURE__ */ s("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
792
+ /* @__PURE__ */ s("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
793
+ /* @__PURE__ */ s("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
790
794
  ] });
791
795
  }
792
796
  function tn({ className: e }) {
793
797
  return /* @__PURE__ */ W(H, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
794
- /* @__PURE__ */ a("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
795
- /* @__PURE__ */ a("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
796
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
797
- /* @__PURE__ */ a("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
798
+ /* @__PURE__ */ s("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
799
+ /* @__PURE__ */ s("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
800
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
801
+ /* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
798
802
  ] });
799
803
  }
800
804
  function Hn({ className: e }) {
801
805
  return /* @__PURE__ */ W(H, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
802
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
803
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "6" }),
804
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "2" })
806
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
807
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "6" }),
808
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "2" })
805
809
  ] });
806
810
  }
807
811
  function nn({ className: e }) {
@@ -810,9 +814,9 @@ function nn({ className: e }) {
810
814
  {
811
815
  className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
812
816
  children: [
813
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10" }),
814
- /* @__PURE__ */ a("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
815
- /* @__PURE__ */ a("path", { d: "M12 17h.01" })
817
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
818
+ /* @__PURE__ */ s("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
819
+ /* @__PURE__ */ s("path", { d: "M12 17h.01" })
816
820
  ]
817
821
  }
818
822
  );
@@ -824,7 +828,7 @@ const G = (e, ...n) => [
824
828
  ].join(" ").trim(), re = (e, n = "color") => {
825
829
  if (typeof window > "u") return "#FFFFFF";
826
830
  const t = document.createElement("div");
827
- Array.isArray(e) ? e.forEach((o) => t.classList.add(o)) : e.split(" ").forEach((o) => t.classList.add(o)), t.style.display = "none", document.body.appendChild(t);
831
+ Array.isArray(e) ? e.forEach((i) => t.classList.add(i)) : e.split(" ").forEach((i) => t.classList.add(i)), t.style.display = "none", document.body.appendChild(t);
828
832
  const r = window.getComputedStyle(t)[n];
829
833
  return document.body.removeChild(t), r;
830
834
  }, Kn = {
@@ -859,9 +863,9 @@ const G = (e, ...n) => [
859
863
  className: n,
860
864
  size: t = "medium",
861
865
  value: r,
862
- onChange: o,
863
- onKeyDown: i,
864
- placeholder: s = ""
866
+ onChange: i,
867
+ onKeyDown: o,
868
+ placeholder: a = ""
865
869
  }) => {
866
870
  const d = st(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), b = G("flex flex-col mb-4", n || ""), h = `${G(`
867
871
  block w-full rounded-md px-3 py-1.5 text-base
@@ -871,16 +875,16 @@ const G = (e, ...n) => [
871
875
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
872
876
  `)} ${d}`;
873
877
  return /* @__PURE__ */ W("div", { className: b, children: [
874
- /* @__PURE__ */ a("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
875
- /* @__PURE__ */ a(
878
+ /* @__PURE__ */ s("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
879
+ /* @__PURE__ */ s(
876
880
  "input",
877
881
  {
878
882
  id: e,
879
883
  type: "text",
880
884
  value: r,
881
- onChange: o,
882
- onKeyDown: (u) => i && i(u),
883
- placeholder: s,
885
+ onChange: i,
886
+ onKeyDown: (u) => o && o(u),
887
+ placeholder: a,
884
888
  className: h,
885
889
  "aria-label": e
886
890
  }
@@ -901,9 +905,9 @@ function J(e) {
901
905
  tooltip: n,
902
906
  disabled: t,
903
907
  isIconButton: r,
904
- className: o,
905
- buttonType: i,
906
- category: s,
908
+ className: i,
909
+ buttonType: o,
910
+ category: a,
907
911
  px: d,
908
912
  py: b,
909
913
  children: g,
@@ -942,23 +946,23 @@ function J(e) {
942
946
  padding: r ? 0 : `${D}rem ${y}rem `
943
947
  };
944
948
  };
945
- return /* @__PURE__ */ a("button", { type: "button", disabled: t, className: u(), style: m(), ...h, children: g });
949
+ return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: m(), ...h, children: g });
946
950
  }
947
951
  const rn = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
948
952
  function on(e) {
949
- const { children: n, testId: t, classNames: r, direction: o, ...i } = e, s = rn(e);
950
- return /* @__PURE__ */ a("div", { "data-testid": t || "not-set", className: s, ...i, children: n });
953
+ const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = rn(e);
954
+ return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
951
955
  }
952
956
  const Gn = ce(
953
957
  (e, n) => {
954
- const { classNames: t, innerClass: r, ...o } = e, i = G(t || "", "w-full"), s = G(
958
+ const { classNames: t, innerClass: r, ...i } = e, o = G(t || "", "w-full"), a = G(
955
959
  `w-full flex overflow-hidden justify-between items-center gap-0
956
960
  rounded-md border`,
957
961
  r || ""
958
962
  );
959
- return /* @__PURE__ */ a(on, { direction: "row", classNames: i, ...o, children: /* @__PURE__ */ a("div", { className: s, children: e.children }) });
963
+ return /* @__PURE__ */ s(on, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
960
964
  }
961
- ), Zn = ce((e, n) => /* @__PURE__ */ a(
965
+ ), Zn = ce((e, n) => /* @__PURE__ */ s(
962
966
  "div",
963
967
  {
964
968
  "data-testid": e.testId || "not-set",
@@ -970,7 +974,7 @@ const Gn = ce(
970
974
  children: e.children
971
975
  }
972
976
  )), Jn = ce(
973
- (e, n) => /* @__PURE__ */ a(
977
+ (e, n) => /* @__PURE__ */ s(
974
978
  "div",
975
979
  {
976
980
  "data-testid": e.testId || "not-set",
@@ -978,7 +982,7 @@ const Gn = ce(
978
982
  children: e.children
979
983
  }
980
984
  )
981
- ), Qn = ce((e, n) => /* @__PURE__ */ a(
985
+ ), Qn = ce((e, n) => /* @__PURE__ */ s(
982
986
  "div",
983
987
  {
984
988
  "data-testid": e.testId || "not-set",
@@ -998,7 +1002,7 @@ var Ve;
998
1002
  function sn() {
999
1003
  if (Ve) return U;
1000
1004
  Ve = 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, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = 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, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1005
+ 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, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = 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, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1002
1006
  function C(c) {
1003
1007
  if (typeof c == "object" && c !== null) {
1004
1008
  var E = c.$$typeof;
@@ -1008,8 +1012,8 @@ function sn() {
1008
1012
  case b:
1009
1013
  case g:
1010
1014
  case r:
1011
- case i:
1012
1015
  case o:
1016
+ case i:
1013
1017
  case u:
1014
1018
  return c;
1015
1019
  default:
@@ -1018,7 +1022,7 @@ function sn() {
1018
1022
  case h:
1019
1023
  case D:
1020
1024
  case y:
1021
- case s:
1025
+ case a:
1022
1026
  return c;
1023
1027
  default:
1024
1028
  return E;
@@ -1032,12 +1036,12 @@ function sn() {
1032
1036
  function S(c) {
1033
1037
  return C(c) === g;
1034
1038
  }
1035
- return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider = s, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = D, U.Memo = y, U.Portal = t, U.Profiler = i, U.StrictMode = o, U.Suspense = u, U.isAsyncMode = function(c) {
1039
+ return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider = a, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = D, U.Memo = y, U.Portal = t, U.Profiler = o, U.StrictMode = i, U.Suspense = u, U.isAsyncMode = function(c) {
1036
1040
  return S(c) || C(c) === b;
1037
1041
  }, U.isConcurrentMode = S, U.isContextConsumer = function(c) {
1038
1042
  return C(c) === d;
1039
1043
  }, U.isContextProvider = function(c) {
1040
- return C(c) === s;
1044
+ return C(c) === a;
1041
1045
  }, U.isElement = function(c) {
1042
1046
  return typeof c == "object" && c !== null && c.$$typeof === n;
1043
1047
  }, U.isForwardRef = function(c) {
@@ -1051,23 +1055,23 @@ function sn() {
1051
1055
  }, U.isPortal = function(c) {
1052
1056
  return C(c) === t;
1053
1057
  }, U.isProfiler = function(c) {
1054
- return C(c) === i;
1055
- }, U.isStrictMode = function(c) {
1056
1058
  return C(c) === o;
1059
+ }, U.isStrictMode = function(c) {
1060
+ return C(c) === i;
1057
1061
  }, U.isSuspense = function(c) {
1058
1062
  return C(c) === u;
1059
1063
  }, U.isValidElementType = function(c) {
1060
- return typeof c == "string" || typeof c == "function" || c === r || c === g || c === i || c === o || c === u || c === m || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === y || c.$$typeof === s || c.$$typeof === d || c.$$typeof === h || c.$$typeof === v || c.$$typeof === w || c.$$typeof === N || c.$$typeof === p);
1064
+ return typeof c == "string" || typeof c == "function" || c === r || c === g || c === o || c === i || c === u || c === m || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === y || c.$$typeof === a || c.$$typeof === d || c.$$typeof === h || c.$$typeof === v || c.$$typeof === w || c.$$typeof === N || c.$$typeof === p);
1061
1065
  }, U.typeOf = C, U;
1062
1066
  }
1063
1067
  var q = {};
1064
1068
  var Ue;
1065
1069
  function ln() {
1066
1070
  return Ue || (Ue = 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, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = 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, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1071
+ 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, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = 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, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1068
1072
  function C(_) {
1069
1073
  return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1070
- _ === r || _ === g || _ === i || _ === o || _ === u || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === D || _.$$typeof === y || _.$$typeof === s || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === w || _.$$typeof === N || _.$$typeof === p);
1074
+ _ === r || _ === g || _ === o || _ === i || _ === u || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === D || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === w || _.$$typeof === N || _.$$typeof === p);
1071
1075
  }
1072
1076
  function S(_) {
1073
1077
  if (typeof _ == "object" && _ !== null) {
@@ -1079,8 +1083,8 @@ function ln() {
1079
1083
  case b:
1080
1084
  case g:
1081
1085
  case r:
1082
- case i:
1083
1086
  case o:
1087
+ case i:
1084
1088
  case u:
1085
1089
  return me;
1086
1090
  default:
@@ -1090,7 +1094,7 @@ function ln() {
1090
1094
  case h:
1091
1095
  case D:
1092
1096
  case y:
1093
- case s:
1097
+ case a:
1094
1098
  return je;
1095
1099
  default:
1096
1100
  return te;
@@ -1101,7 +1105,7 @@ function ln() {
1101
1105
  }
1102
1106
  }
1103
1107
  }
1104
- var c = b, E = g, l = d, f = s, M = n, $ = h, I = r, T = D, z = y, X = t, Q = i, K = o, ee = u, se = !1;
1108
+ var c = b, E = g, l = d, f = a, M = n, $ = h, I = r, T = D, z = y, X = t, Q = o, K = i, ee = u, se = !1;
1105
1109
  function de(_) {
1106
1110
  return se || (se = !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(_) || S(_) === b;
1107
1111
  }
@@ -1112,7 +1116,7 @@ function ln() {
1112
1116
  return S(_) === d;
1113
1117
  }
1114
1118
  function A(_) {
1115
- return S(_) === s;
1119
+ return S(_) === a;
1116
1120
  }
1117
1121
  function k(_) {
1118
1122
  return typeof _ == "object" && _ !== null && _.$$typeof === n;
@@ -1133,10 +1137,10 @@ function ln() {
1133
1137
  return S(_) === t;
1134
1138
  }
1135
1139
  function Y(_) {
1136
- return S(_) === i;
1140
+ return S(_) === o;
1137
1141
  }
1138
1142
  function V(_) {
1139
- return S(_) === o;
1143
+ return S(_) === i;
1140
1144
  }
1141
1145
  function Z(_) {
1142
1146
  return S(_) === u;
@@ -1153,22 +1157,22 @@ function cn() {
1153
1157
  if (Ye) return Ne;
1154
1158
  Ye = 1;
1155
1159
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1156
- function r(i) {
1157
- if (i == null)
1160
+ function r(o) {
1161
+ if (o == null)
1158
1162
  throw new TypeError("Object.assign cannot be called with null or undefined");
1159
- return Object(i);
1163
+ return Object(o);
1160
1164
  }
1161
- function o() {
1165
+ function i() {
1162
1166
  try {
1163
1167
  if (!Object.assign)
1164
1168
  return !1;
1165
- var i = new String("abc");
1166
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
1169
+ var o = new String("abc");
1170
+ if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
1167
1171
  return !1;
1168
- for (var s = {}, d = 0; d < 10; d++)
1169
- s["_" + String.fromCharCode(d)] = d;
1170
- var b = Object.getOwnPropertyNames(s).map(function(h) {
1171
- return s[h];
1172
+ for (var a = {}, d = 0; d < 10; d++)
1173
+ a["_" + String.fromCharCode(d)] = d;
1174
+ var b = Object.getOwnPropertyNames(a).map(function(h) {
1175
+ return a[h];
1172
1176
  });
1173
1177
  if (b.join("") !== "0123456789")
1174
1178
  return !1;
@@ -1180,8 +1184,8 @@ function cn() {
1180
1184
  return !1;
1181
1185
  }
1182
1186
  }
1183
- return Ne = o() ? Object.assign : function(i, s) {
1184
- for (var d, b = r(i), g, h = 1; h < arguments.length; h++) {
1187
+ return Ne = i() ? Object.assign : function(o, a) {
1188
+ for (var d, b = r(o), g, h = 1; h < arguments.length; h++) {
1185
1189
  d = Object(arguments[h]);
1186
1190
  for (var u in d)
1187
1191
  n.call(d, u) && (b[u] = d[u]);
@@ -1213,28 +1217,28 @@ function dn() {
1213
1217
  };
1214
1218
  if (process.env.NODE_ENV !== "production") {
1215
1219
  var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ bt();
1216
- e = function(i) {
1217
- var s = "Warning: " + i;
1218
- typeof console < "u" && console.error(s);
1220
+ e = function(o) {
1221
+ var a = "Warning: " + o;
1222
+ typeof console < "u" && console.error(a);
1219
1223
  try {
1220
- throw new Error(s);
1224
+ throw new Error(a);
1221
1225
  } catch {
1222
1226
  }
1223
1227
  };
1224
1228
  }
1225
- function o(i, s, d, b, g) {
1229
+ function i(o, a, d, b, g) {
1226
1230
  if (process.env.NODE_ENV !== "production") {
1227
- for (var h in i)
1228
- if (r(i, h)) {
1231
+ for (var h in o)
1232
+ if (r(o, h)) {
1229
1233
  var u;
1230
1234
  try {
1231
- if (typeof i[h] != "function") {
1235
+ if (typeof o[h] != "function") {
1232
1236
  var m = Error(
1233
- (b || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1237
+ (b || "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
1238
  );
1235
1239
  throw m.name = "Invariant Violation", m;
1236
1240
  }
1237
- u = i[h](s, h, b, d, null, n);
1241
+ u = o[h](a, h, b, d, null, n);
1238
1242
  } catch (D) {
1239
1243
  u = D;
1240
1244
  }
@@ -1250,17 +1254,17 @@ function dn() {
1250
1254
  }
1251
1255
  }
1252
1256
  }
1253
- return o.resetWarningCache = function() {
1257
+ return i.resetWarningCache = function() {
1254
1258
  process.env.NODE_ENV !== "production" && (t = {});
1255
- }, _e = o, _e;
1259
+ }, _e = i, _e;
1256
1260
  }
1257
1261
  var Me, Ke;
1258
1262
  function un() {
1259
1263
  if (Ke) return Me;
1260
1264
  Ke = 1;
1261
- var e = yt(), n = cn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ bt(), o = /* @__PURE__ */ dn(), i = function() {
1265
+ var e = yt(), n = cn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ bt(), i = /* @__PURE__ */ dn(), o = function() {
1262
1266
  };
1263
- process.env.NODE_ENV !== "production" && (i = function(d) {
1267
+ process.env.NODE_ENV !== "production" && (o = function(d) {
1264
1268
  var b = "Warning: " + d;
1265
1269
  typeof console < "u" && console.error(b);
1266
1270
  try {
@@ -1268,7 +1272,7 @@ function un() {
1268
1272
  } catch {
1269
1273
  }
1270
1274
  });
1271
- function s() {
1275
+ function a() {
1272
1276
  return null;
1273
1277
  }
1274
1278
  return Me = function(d, b) {
@@ -1319,7 +1323,7 @@ function un() {
1319
1323
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1320
1324
  var te = F + ":" + j;
1321
1325
  !P[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1322
- A < 3 && (i(
1326
+ A < 3 && (o(
1323
1327
  "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1324
1328
  ), P[te] = !0, A++);
1325
1329
  }
@@ -1344,7 +1348,7 @@ function un() {
1344
1348
  return v(P);
1345
1349
  }
1346
1350
  function N() {
1347
- return v(s);
1351
+ return v(a);
1348
1352
  }
1349
1353
  function C(x) {
1350
1354
  function P(A, k, O, L, R) {
@@ -1398,9 +1402,9 @@ function un() {
1398
1402
  }
1399
1403
  function l(x) {
1400
1404
  if (!Array.isArray(x))
1401
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
1405
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1402
1406
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1403
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
1407
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), a;
1404
1408
  function P(A, k, O, L, R) {
1405
1409
  for (var j = A[k], F = 0; F < x.length; F++)
1406
1410
  if (D(j, x[F]))
@@ -1432,13 +1436,13 @@ function un() {
1432
1436
  }
1433
1437
  function M(x) {
1434
1438
  if (!Array.isArray(x))
1435
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1439
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
1436
1440
  for (var P = 0; P < x.length; P++) {
1437
1441
  var A = x[P];
1438
1442
  if (typeof A != "function")
1439
- return i(
1443
+ return o(
1440
1444
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(A) + " at index " + P + "."
1441
- ), s;
1445
+ ), a;
1442
1446
  }
1443
1447
  function k(O, L, R, j, F) {
1444
1448
  for (var Y = [], V = 0; V < x.length; V++) {
@@ -1572,7 +1576,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1572
1576
  function de(x) {
1573
1577
  return !x.constructor || !x.constructor.name ? m : x.constructor.name;
1574
1578
  }
1575
- return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
1579
+ return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
1576
1580
  }, Me;
1577
1581
  }
1578
1582
  var Pe, Xe;
@@ -1585,7 +1589,7 @@ function fn() {
1585
1589
  function t() {
1586
1590
  }
1587
1591
  return t.resetWarningCache = n, Pe = function() {
1588
- function r(s, d, b, g, h, u) {
1592
+ function r(a, d, b, g, h, u) {
1589
1593
  if (u !== e) {
1590
1594
  var m = new Error(
1591
1595
  "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"
@@ -1594,10 +1598,10 @@ function fn() {
1594
1598
  }
1595
1599
  }
1596
1600
  r.isRequired = r;
1597
- function o() {
1601
+ function i() {
1598
1602
  return r;
1599
1603
  }
1600
- var i = {
1604
+ var o = {
1601
1605
  array: r,
1602
1606
  bigint: r,
1603
1607
  bool: r,
@@ -1607,20 +1611,20 @@ function fn() {
1607
1611
  string: r,
1608
1612
  symbol: r,
1609
1613
  any: r,
1610
- arrayOf: o,
1614
+ arrayOf: i,
1611
1615
  element: r,
1612
1616
  elementType: r,
1613
- instanceOf: o,
1617
+ instanceOf: i,
1614
1618
  node: r,
1615
- objectOf: o,
1616
- oneOf: o,
1617
- oneOfType: o,
1618
- shape: o,
1619
- exact: o,
1619
+ objectOf: i,
1620
+ oneOf: i,
1621
+ oneOfType: i,
1622
+ shape: i,
1623
+ exact: i,
1620
1624
  checkPropTypes: t,
1621
1625
  resetWarningCache: n
1622
1626
  };
1623
- return i.PropTypes = i, i;
1627
+ return o.PropTypes = o, o;
1624
1628
  }, Pe;
1625
1629
  }
1626
1630
  var Ge;
@@ -1638,81 +1642,81 @@ function hn() {
1638
1642
  if (Ze) return be.exports;
1639
1643
  Ze = 1;
1640
1644
  function e(t) {
1641
- var r, o, i = "";
1642
- if (typeof t == "string" || typeof t == "number") i += t;
1645
+ var r, i, o = "";
1646
+ if (typeof t == "string" || typeof t == "number") o += t;
1643
1647
  else if (typeof t == "object") if (Array.isArray(t)) {
1644
- var s = t.length;
1645
- for (r = 0; r < s; r++) t[r] && (o = e(t[r])) && (i && (i += " "), i += o);
1646
- } else for (o in t) t[o] && (i && (i += " "), i += o);
1647
- return i;
1648
+ var a = t.length;
1649
+ for (r = 0; r < a; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
1650
+ } else for (i in t) t[i] && (o && (o += " "), o += i);
1651
+ return o;
1648
1652
  }
1649
1653
  function n() {
1650
- for (var t, r, o = 0, i = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r = e(t)) && (i && (i += " "), i += r);
1651
- return i;
1654
+ for (var t, r, i = 0, o = "", a = arguments.length; i < a; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
1655
+ return o;
1652
1656
  }
1653
1657
  return be.exports = n, be.exports.clsx = n, be.exports;
1654
1658
  }
1655
- var B = {}, ie = {}, Je;
1659
+ var B = {}, oe = {}, Je;
1656
1660
  function we() {
1657
- if (Je) return ie;
1658
- Je = 1, Object.defineProperty(ie, "__esModule", {
1661
+ if (Je) return oe;
1662
+ Je = 1, Object.defineProperty(oe, "__esModule", {
1659
1663
  value: !0
1660
- }), ie.dontSetMe = o, ie.findInArray = e, ie.int = r, ie.isFunction = n, ie.isNum = t;
1661
- function e(i, s) {
1662
- for (let d = 0, b = i.length; d < b; d++)
1663
- if (s.apply(s, [i[d], d, i])) return i[d];
1664
+ }), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
1665
+ function e(o, a) {
1666
+ for (let d = 0, b = o.length; d < b; d++)
1667
+ if (a.apply(a, [o[d], d, o])) return o[d];
1664
1668
  }
1665
- function n(i) {
1666
- return typeof i == "function" || Object.prototype.toString.call(i) === "[object Function]";
1669
+ function n(o) {
1670
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
1667
1671
  }
1668
- function t(i) {
1669
- return typeof i == "number" && !isNaN(i);
1672
+ function t(o) {
1673
+ return typeof o == "number" && !isNaN(o);
1670
1674
  }
1671
- function r(i) {
1672
- return parseInt(i, 10);
1675
+ function r(o) {
1676
+ return parseInt(o, 10);
1673
1677
  }
1674
- function o(i, s, d) {
1675
- if (i[s])
1676
- return new Error(`Invalid prop ${s} passed to ${d} - do not set this, set it on the child.`);
1678
+ function i(o, a, d) {
1679
+ if (o[a])
1680
+ return new Error(`Invalid prop ${a} passed to ${d} - do not set this, set it on the child.`);
1677
1681
  }
1678
- return ie;
1682
+ return oe;
1679
1683
  }
1680
- var oe = {}, Qe;
1684
+ var ie = {}, Qe;
1681
1685
  function gn() {
1682
- if (Qe) return oe;
1683
- Qe = 1, Object.defineProperty(oe, "__esModule", {
1686
+ if (Qe) return ie;
1687
+ Qe = 1, Object.defineProperty(ie, "__esModule", {
1684
1688
  value: !0
1685
- }), oe.browserPrefixToKey = t, oe.browserPrefixToStyle = r, oe.default = void 0, oe.getPrefix = n;
1689
+ }), ie.browserPrefixToKey = t, ie.browserPrefixToStyle = r, ie.default = void 0, ie.getPrefix = n;
1686
1690
  const e = ["Moz", "Webkit", "O", "ms"];
1687
1691
  function n() {
1688
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1692
+ let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1689
1693
  if (typeof window > "u") return "";
1690
- const s = window.document?.documentElement?.style;
1691
- if (!s || i in s) return "";
1694
+ const a = window.document?.documentElement?.style;
1695
+ if (!a || o in a) return "";
1692
1696
  for (let d = 0; d < e.length; d++)
1693
- if (t(i, e[d]) in s) return e[d];
1697
+ if (t(o, e[d]) in a) return e[d];
1694
1698
  return "";
1695
1699
  }
1696
- function t(i, s) {
1697
- return s ? `${s}${o(i)}` : i;
1700
+ function t(o, a) {
1701
+ return a ? `${a}${i(o)}` : o;
1698
1702
  }
1699
- function r(i, s) {
1700
- return s ? `-${s.toLowerCase()}-${i}` : i;
1703
+ function r(o, a) {
1704
+ return a ? `-${a.toLowerCase()}-${o}` : o;
1701
1705
  }
1702
- function o(i) {
1703
- let s = "", d = !0;
1704
- for (let b = 0; b < i.length; b++)
1705
- d ? (s += i[b].toUpperCase(), d = !1) : i[b] === "-" ? d = !0 : s += i[b];
1706
- return s;
1706
+ function i(o) {
1707
+ let a = "", d = !0;
1708
+ for (let b = 0; b < o.length; b++)
1709
+ d ? (a += o[b].toUpperCase(), d = !1) : o[b] === "-" ? d = !0 : a += o[b];
1710
+ return a;
1707
1711
  }
1708
- return oe.default = n(), oe;
1712
+ return ie.default = n(), ie;
1709
1713
  }
1710
1714
  var et;
1711
1715
  function Re() {
1712
1716
  if (et) return B;
1713
1717
  et = 1, Object.defineProperty(B, "__esModule", {
1714
1718
  value: !0
1715
- }), B.addClassName = c, B.addEvent = s, B.addUserSelectStyles = N, B.createCSSTransform = y, B.createSVGTransform = D, B.getTouch = v, B.getTouchIdentifier = w, B.getTranslation = p, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = o, B.matchesSelectorAndParentsTo = i, B.offsetXYFromParent = m, B.outerHeight = b, B.outerWidth = g, B.removeClassName = E, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = C;
1719
+ }), B.addClassName = c, B.addEvent = a, B.addUserSelectStyles = N, B.createCSSTransform = y, B.createSVGTransform = D, B.getTouch = v, B.getTouchIdentifier = w, B.getTranslation = p, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = m, B.outerHeight = b, B.outerWidth = g, B.removeClassName = E, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = C;
1716
1720
  var e = we(), n = t(gn());
1717
1721
  function t(l, f) {
1718
1722
  if (typeof WeakMap == "function") var M = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
@@ -1729,21 +1733,21 @@ function Re() {
1729
1733
  })(l, f);
1730
1734
  }
1731
1735
  let r = "";
1732
- function o(l, f) {
1736
+ function i(l, f) {
1733
1737
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(M) {
1734
1738
  return (0, e.isFunction)(l[M]);
1735
1739
  })), (0, e.isFunction)(l[r]) ? l[r](f) : !1;
1736
1740
  }
1737
- function i(l, f, M) {
1741
+ function o(l, f, M) {
1738
1742
  let $ = l;
1739
1743
  do {
1740
- if (o($, f)) return !0;
1744
+ if (i($, f)) return !0;
1741
1745
  if ($ === M) return !1;
1742
1746
  $ = $.parentNode;
1743
1747
  } while ($);
1744
1748
  return !1;
1745
1749
  }
1746
- function s(l, f, M, $) {
1750
+ function a(l, f, M, $) {
1747
1751
  if (!l) return;
1748
1752
  const I = {
1749
1753
  capture: !0,
@@ -1853,7 +1857,7 @@ function xt() {
1853
1857
  if (tt) return ne;
1854
1858
  tt = 1, Object.defineProperty(ne, "__esModule", {
1855
1859
  value: !0
1856
- }), ne.canDragX = o, ne.canDragY = i, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition = s, ne.snapToGrid = r;
1860
+ }), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
1857
1861
  var e = we(), n = Re();
1858
1862
  function t(u, m, y) {
1859
1863
  if (!u.props.bounds) return [m, y];
@@ -1883,13 +1887,13 @@ function xt() {
1883
1887
  const D = Math.round(m / u[0]) * u[0], p = Math.round(y / u[1]) * u[1];
1884
1888
  return [D, p];
1885
1889
  }
1886
- function o(u) {
1890
+ function i(u) {
1887
1891
  return u.props.axis === "both" || u.props.axis === "x";
1888
1892
  }
1889
- function i(u) {
1893
+ function o(u) {
1890
1894
  return u.props.axis === "both" || u.props.axis === "y";
1891
1895
  }
1892
- function s(u, m, y) {
1896
+ function a(u, m, y) {
1893
1897
  const D = typeof m == "number" ? (0, n.getTouch)(u, m) : null;
1894
1898
  if (typeof m == "number" && !D) return null;
1895
1899
  const p = h(y), v = y.props.offsetParent || p.offsetParent || p.ownerDocument.body;
@@ -1959,7 +1963,7 @@ function mn() {
1959
1963
  rt = 1, Object.defineProperty(he, "__esModule", {
1960
1964
  value: !0
1961
1965
  }), he.default = void 0;
1962
- var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Re(), o = xt(), i = we(), s = d(wt());
1966
+ var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Re(), i = xt(), o = we(), a = d(wt());
1963
1967
  function d(p) {
1964
1968
  return p && p.__esModule ? p : { default: p };
1965
1969
  }
@@ -2021,15 +2025,15 @@ function mn() {
2021
2025
  v.type === "touchstart" && !this.props.allowMobileScroll && v.preventDefault();
2022
2026
  const C = (0, r.getTouchIdentifier)(v);
2023
2027
  this.touchIdentifier = C;
2024
- const S = (0, o.getControlPosition)(v, C, this);
2028
+ const S = (0, i.getControlPosition)(v, C, this);
2025
2029
  if (S == null) return;
2026
2030
  const {
2027
2031
  x: c,
2028
2032
  y: E
2029
- } = S, l = (0, o.createCoreData)(this, c, E);
2030
- (0, s.default)("DraggableCore: handleDragStart: %j", l), (0, s.default)("calling", this.props.onStart), !(this.props.onStart(v, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = c, this.lastY = E, (0, r.addEvent)(N, y.move, this.handleDrag), (0, r.addEvent)(N, y.stop, this.handleDragStop));
2033
+ } = S, l = (0, i.createCoreData)(this, c, E);
2034
+ (0, a.default)("DraggableCore: handleDragStart: %j", l), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(v, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = c, this.lastY = E, (0, r.addEvent)(N, y.move, this.handleDrag), (0, r.addEvent)(N, y.stop, this.handleDragStop));
2031
2035
  }), g(this, "handleDrag", (v) => {
2032
- const w = (0, o.getControlPosition)(v, this.touchIdentifier, this);
2036
+ const w = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2033
2037
  if (w == null) return;
2034
2038
  let {
2035
2039
  x: N,
@@ -2037,11 +2041,11 @@ function mn() {
2037
2041
  } = w;
2038
2042
  if (Array.isArray(this.props.grid)) {
2039
2043
  let E = N - this.lastX, l = C - this.lastY;
2040
- if ([E, l] = (0, o.snapToGrid)(this.props.grid, E, l), !E && !l) return;
2044
+ if ([E, l] = (0, i.snapToGrid)(this.props.grid, E, l), !E && !l) return;
2041
2045
  N = this.lastX + E, C = this.lastY + l;
2042
2046
  }
2043
- const S = (0, o.createCoreData)(this, N, C);
2044
- if ((0, s.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(v, S) === !1 || this.mounted === !1) {
2047
+ const S = (0, i.createCoreData)(this, N, C);
2048
+ if ((0, a.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(v, S) === !1 || this.mounted === !1) {
2045
2049
  try {
2046
2050
  this.handleDragStop(new MouseEvent("mouseup"));
2047
2051
  } catch {
@@ -2053,7 +2057,7 @@ function mn() {
2053
2057
  this.lastX = N, this.lastY = C;
2054
2058
  }), g(this, "handleDragStop", (v) => {
2055
2059
  if (!this.dragging) return;
2056
- const w = (0, o.getControlPosition)(v, this.touchIdentifier, this);
2060
+ const w = (0, i.getControlPosition)(v, this.touchIdentifier, this);
2057
2061
  if (w == null) return;
2058
2062
  let {
2059
2063
  x: N,
@@ -2061,12 +2065,12 @@ function mn() {
2061
2065
  } = w;
2062
2066
  if (Array.isArray(this.props.grid)) {
2063
2067
  let l = N - this.lastX || 0, f = C - this.lastY || 0;
2064
- [l, f] = (0, o.snapToGrid)(this.props.grid, l, f), N = this.lastX + l, C = this.lastY + f;
2068
+ [l, f] = (0, i.snapToGrid)(this.props.grid, l, f), N = this.lastX + l, C = this.lastY + f;
2065
2069
  }
2066
- const S = (0, o.createCoreData)(this, N, C);
2070
+ const S = (0, i.createCoreData)(this, N, C);
2067
2071
  if (this.props.onStop(v, S) === !1 || this.mounted === !1) return !1;
2068
2072
  const E = this.findDOMNode();
2069
- E && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(E.ownerDocument), (0, s.default)("DraggableCore: handleDragStop: %j", S), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, E && ((0, s.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(E.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(E.ownerDocument, y.stop, this.handleDragStop));
2073
+ E && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(E.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", S), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, E && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(E.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(E.ownerDocument, y.stop, this.handleDragStop));
2070
2074
  }), g(this, "onMouseDown", (v) => (y = m.mouse, this.handleDragStart(v))), g(this, "onMouseUp", (v) => (y = m.mouse, this.handleDragStop(v))), g(this, "onTouchStart", (v) => (y = m.touch, this.handleDragStart(v))), g(this, "onTouchEnd", (v) => (y = m.touch, this.handleDragStop(v)));
2071
2075
  }
2072
2076
  componentDidMount() {
@@ -2233,9 +2237,9 @@ function mn() {
2233
2237
  /**
2234
2238
  * These properties should be defined on the child, not here.
2235
2239
  */
2236
- className: i.dontSetMe,
2237
- style: i.dontSetMe,
2238
- transform: i.dontSetMe
2240
+ className: o.dontSetMe,
2241
+ style: o.dontSetMe,
2242
+ transform: o.dontSetMe
2239
2243
  }), g(D, "defaultProps", {
2240
2244
  allowAnyClick: !1,
2241
2245
  // by default only accept left click
@@ -2253,9 +2257,9 @@ function mn() {
2253
2257
  scale: 1
2254
2258
  }), he;
2255
2259
  }
2256
- var it;
2260
+ var ot;
2257
2261
  function pn() {
2258
- return it || (it = 1, (function(e) {
2262
+ return ot || (ot = 1, (function(e) {
2259
2263
  Object.defineProperty(e, "__esModule", {
2260
2264
  value: !0
2261
2265
  }), Object.defineProperty(e, "DraggableCore", {
@@ -2264,7 +2268,7 @@ function pn() {
2264
2268
  return b.default;
2265
2269
  }
2266
2270
  }), e.default = void 0;
2267
- var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), o = hn(), i = Re(), s = xt(), d = we(), b = h(mn()), g = h(wt());
2271
+ var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), i = hn(), o = Re(), a = xt(), d = we(), b = h(mn()), g = h(wt());
2268
2272
  function h(w) {
2269
2273
  return w && w.__esModule ? w : { default: w };
2270
2274
  }
@@ -2330,7 +2334,7 @@ function pn() {
2330
2334
  }
2331
2335
  constructor(N) {
2332
2336
  super(N), y(this, "onDragStart", (C, S) => {
2333
- if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0, s.createDraggableData)(this, S)) === !1) return !1;
2337
+ if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
2334
2338
  this.setState({
2335
2339
  dragging: !0,
2336
2340
  dragged: !0
@@ -2338,7 +2342,7 @@ function pn() {
2338
2342
  }), y(this, "onDrag", (C, S) => {
2339
2343
  if (!this.state.dragging) return !1;
2340
2344
  (0, g.default)("Draggable: onDrag: %j", S);
2341
- const c = (0, s.createDraggableData)(this, S), E = {
2345
+ const c = (0, a.createDraggableData)(this, S), E = {
2342
2346
  x: c.x,
2343
2347
  y: c.y,
2344
2348
  slackX: 0,
@@ -2350,13 +2354,13 @@ function pn() {
2350
2354
  y: M
2351
2355
  } = E;
2352
2356
  E.x += this.state.slackX, E.y += this.state.slackY;
2353
- const [$, I] = (0, s.getBoundPosition)(this, E.x, E.y);
2357
+ const [$, I] = (0, a.getBoundPosition)(this, E.x, E.y);
2354
2358
  E.x = $, E.y = I, E.slackX = this.state.slackX + (f - E.x), E.slackY = this.state.slackY + (M - E.y), c.x = E.x, c.y = E.y, c.deltaX = E.x - this.state.x, c.deltaY = E.y - this.state.y;
2355
2359
  }
2356
2360
  if (this.props.onDrag(C, c) === !1) return !1;
2357
2361
  this.setState(E);
2358
2362
  }), y(this, "onDragStop", (C, S) => {
2359
- if (!this.state.dragging || this.props.onStop(C, (0, s.createDraggableData)(this, S)) === !1) return !1;
2363
+ if (!this.state.dragging || this.props.onStop(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
2360
2364
  (0, g.default)("Draggable: onDragStop: %j", S);
2361
2365
  const E = {
2362
2366
  dragging: !1,
@@ -2421,12 +2425,12 @@ function pn() {
2421
2425
  let z = {}, X = null;
2422
2426
  const K = !!!M || this.state.dragging, ee = M || c, se = {
2423
2427
  // Set left if horizontal drag is enabled
2424
- x: (0, s.canDragX)(this) && K ? this.state.x : ee.x,
2428
+ x: (0, a.canDragX)(this) && K ? this.state.x : ee.x,
2425
2429
  // Set top if vertical drag is enabled
2426
- y: (0, s.canDragY)(this) && K ? this.state.y : ee.y
2430
+ y: (0, a.canDragY)(this) && K ? this.state.y : ee.y
2427
2431
  };
2428
- this.state.isElementSVG ? X = (0, i.createSVGTransform)(se, $) : z = (0, i.createCSSTransform)(se, $);
2429
- const de = (0, o.clsx)(S.props.className || "", E, {
2432
+ this.state.isElementSVG ? X = (0, o.createSVGTransform)(se, $) : z = (0, o.createCSSTransform)(se, $);
2433
+ const de = (0, i.clsx)(S.props.className || "", E, {
2430
2434
  [l]: this.state.dragging,
2431
2435
  [f]: this.state.dragged
2432
2436
  });
@@ -2566,10 +2570,10 @@ function pn() {
2566
2570
  });
2567
2571
  })(De)), De;
2568
2572
  }
2569
- var ot;
2573
+ var it;
2570
2574
  function yn() {
2571
- if (ot) return fe.exports;
2572
- ot = 1;
2575
+ if (it) return fe.exports;
2576
+ it = 1;
2573
2577
  const {
2574
2578
  default: e,
2575
2579
  DraggableCore: n
@@ -2595,14 +2599,14 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
2595
2599
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2596
2600
  },
2597
2601
  ...e.style || {}
2598
- }, o = e.testId || "not-set", i = e.className || "panel", s = Ct(null);
2602
+ }, i = e.testId || "not-set", o = e.className || "panel", a = Ct(null);
2599
2603
  return (
2600
2604
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2601
- /* @__PURE__ */ a(
2605
+ /* @__PURE__ */ s(
2602
2606
  vn,
2603
2607
  {
2604
- nodeRef: s,
2605
- "data-testid": o,
2608
+ nodeRef: a,
2609
+ "data-testid": i,
2606
2610
  axis: "both",
2607
2611
  handle: ".handle",
2608
2612
  onStart: (g, h) => {
@@ -2613,7 +2617,7 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
2613
2617
  e.onDraggingChange?.(!1);
2614
2618
  }, 100);
2615
2619
  },
2616
- children: /* @__PURE__ */ a("div", { ref: s, className: i, style: r, children: e.children })
2620
+ children: /* @__PURE__ */ s("div", { ref: a, className: o, style: r, children: e.children })
2617
2621
  }
2618
2622
  )
2619
2623
  );
@@ -2623,7 +2627,7 @@ function tr({ children: e, addCssClasses: n }) {
2623
2627
  "w-full h-full flex-1 flex flex-col",
2624
2628
  (n || "gap-2 items-end justify-end content-end").trim()
2625
2629
  );
2626
- return /* @__PURE__ */ a(
2630
+ return /* @__PURE__ */ s(
2627
2631
  "div",
2628
2632
  {
2629
2633
  className: t,
@@ -2639,48 +2643,48 @@ function nr({ children: e, addCssClasses: n }) {
2639
2643
  "w-full flex flex-col",
2640
2644
  (n || "items-end").trim()
2641
2645
  );
2642
- return /* @__PURE__ */ a("div", { className: t, children: e });
2646
+ return /* @__PURE__ */ s("div", { className: t, children: e });
2643
2647
  }
2644
2648
  const rr = (e) => {
2645
2649
  console.warn("showToast TODO", e);
2646
- }, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, ir = ce((e, n) => {
2650
+ }, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, or = ce((e, n) => {
2647
2651
  let t = ct(Number(e.zoomScale || 0));
2648
- const r = e.responsiveGrid || !1, o = e.isEditing || !1, i = {
2652
+ const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
2649
2653
  "--bwj-dashboard-transform-scale": t,
2650
2654
  "--bwj-dashboard-add-cols": wn(t)
2651
- }, s = G(
2655
+ }, a = G(
2652
2656
  "dashboard-main-grid w-full",
2653
- o ? "editing" : "",
2657
+ i ? "editing" : "",
2654
2658
  r ? "responsive-grid" : "",
2655
- `border border-dashed ${o ? "border-primary border-opacity-50" : "border-transparent"}`
2659
+ `border border-dashed ${i ? "border-primary border-opacity-50" : "border-transparent"}`
2656
2660
  );
2657
- return /* @__PURE__ */ a("div", { className: s, style: i, children: e.children });
2661
+ return /* @__PURE__ */ s("div", { className: a, style: o, children: e.children });
2658
2662
  }), $e = "size-5", Cn = (e, n) => {
2659
2663
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2660
- let o = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2661
- r ? o = `${o} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? o = `${o} ${e.borderCssClasses}` : o = `${o} border-card-invert border-opacity-20`, e.noShadow && (o = `${o} no-shadow`), e.noPadding && (o = `${o} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? o = `${o} ${e.backgroundCssClasses}` : o = `${o} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (o = `${o} ${e.size}-widget`);
2662
- const i = () => {
2664
+ let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2665
+ 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`);
2666
+ const o = () => {
2663
2667
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2664
- }, s = (b) => {
2668
+ }, a = (b) => {
2665
2669
  e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2666
2670
  }, d = G(
2667
2671
  "widget-header",
2668
2672
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2669
2673
  t ? "border-opacity-0" : "border-opacity-20"
2670
2674
  );
2671
- return /* @__PURE__ */ W("div", { className: o, children: [
2675
+ return /* @__PURE__ */ W("div", { className: i, children: [
2672
2676
  /* @__PURE__ */ W("div", { className: d, children: [
2673
2677
  /* @__PURE__ */ W("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2674
2678
  /* @__PURE__ */ W("h2", { className: "widget-title", children: [
2675
2679
  e.title,
2676
2680
  " "
2677
2681
  ] }),
2678
- /* @__PURE__ */ a("div", {})
2682
+ /* @__PURE__ */ s("div", {})
2679
2683
  ] }),
2680
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2681
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("span", { className: "hidden", children: "Widget" }) }),
2684
+ /* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
2685
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("span", { className: "hidden", children: "Widget" }) }),
2682
2686
  /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2683
- /* @__PURE__ */ a(
2687
+ /* @__PURE__ */ s(
2684
2688
  J,
2685
2689
  {
2686
2690
  "data-testid": `move-widget-left_${e.title}`,
@@ -2690,11 +2694,11 @@ const rr = (e) => {
2690
2694
  placement: "top",
2691
2695
  title: `${e.index < 1 ? "Already at min position" : "Move Widget to the left/up"}`
2692
2696
  },
2693
- onClick: () => s(-1),
2694
- children: /* @__PURE__ */ a(ft, { className: $e })
2697
+ onClick: () => a(-1),
2698
+ children: /* @__PURE__ */ s(ft, { className: $e })
2695
2699
  }
2696
2700
  ),
2697
- /* @__PURE__ */ a(
2701
+ /* @__PURE__ */ s(
2698
2702
  J,
2699
2703
  {
2700
2704
  "data-testid": `move-widget-right_${e.title}`,
@@ -2704,11 +2708,11 @@ const rr = (e) => {
2704
2708
  placement: "top",
2705
2709
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Widget to the right/down"}`
2706
2710
  },
2707
- onClick: () => s(1),
2708
- children: /* @__PURE__ */ a(ht, { className: $e })
2711
+ onClick: () => a(1),
2712
+ children: /* @__PURE__ */ s(ht, { className: $e })
2709
2713
  }
2710
2714
  ),
2711
- /* @__PURE__ */ a(
2715
+ /* @__PURE__ */ s(
2712
2716
  J,
2713
2717
  {
2714
2718
  "data-testid": `remove-container_${e.title}`,
@@ -2717,23 +2721,23 @@ const rr = (e) => {
2717
2721
  placement: "top",
2718
2722
  title: "Remove Widget"
2719
2723
  },
2720
- onClick: () => i(),
2721
- children: /* @__PURE__ */ a(gt, { className: $e })
2724
+ onClick: () => o(),
2725
+ children: /* @__PURE__ */ s(gt, { className: $e })
2722
2726
  }
2723
2727
  )
2724
2728
  ] })
2725
2729
  ] }) })
2726
2730
  ] }),
2727
- /* @__PURE__ */ a("div", { className: "widget-inner", children: e.children })
2731
+ /* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
2728
2732
  ] });
2729
2733
  }, at = ce(Cn), Sn = (e, n) => {
2730
- const t = (i) => i.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), o = t(n).split(".").map(Number);
2731
- return !(r[0] !== o[0] || r[1] < o[1]);
2734
+ const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), i = t(n).split(".").map(Number);
2735
+ return !(r[0] !== i[0] || r[1] < i[1]);
2732
2736
  };
2733
2737
  function Dn(e) {
2734
- return /* @__PURE__ */ a("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2735
- /* @__PURE__ */ a("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2736
- /* @__PURE__ */ a("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2738
+ 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: [
2739
+ /* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2740
+ /* @__PURE__ */ s("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2737
2741
  ] }) });
2738
2742
  }
2739
2743
  function Nn({
@@ -2741,9 +2745,9 @@ function Nn({
2741
2745
  maxIndex: n,
2742
2746
  widgetKey: t,
2743
2747
  parentWidgetKey: r,
2744
- targetContainerKey: o,
2745
- childWidgetsConfig: i,
2746
- widgetCatalog: s,
2748
+ targetContainerKey: i,
2749
+ childWidgetsConfig: o,
2750
+ widgetCatalog: a,
2747
2751
  isEditing: d,
2748
2752
  // for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
2749
2753
  extraProps: b,
@@ -2751,14 +2755,14 @@ function Nn({
2751
2755
  onMoveClick: h,
2752
2756
  selectContainer: u
2753
2757
  }) {
2754
- const m = `${t}`.split("_"), y = m.length > 1, D = y ? m[0] : t, p = s.get(D);
2758
+ const m = `${t}`.split("_"), y = m.length > 1, D = y ? m[0] : t, p = a.get(D);
2755
2759
  if (!p)
2756
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2760
+ return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2757
2761
  "Widget not found in catalog: ",
2758
2762
  D
2759
2763
  ] }) });
2760
2764
  let v = null, w = !1;
2761
- const N = !!p.isContainer, C = y ? mt(t) : "", S = N ? (i || []).filter((l) => l.parentWidgetKey === t) : [], c = {
2765
+ const N = !!p.isContainer, C = y ? mt(t) : "", S = N ? (o || []).filter((l) => l.parentWidgetKey === t) : [], c = {
2762
2766
  index: e,
2763
2767
  maxIndex: n,
2764
2768
  widgetKey: t,
@@ -2776,7 +2780,7 @@ function Nn({
2776
2780
  const $ = M.split("@")[1];
2777
2781
  if (!Sn(l, $))
2778
2782
  return ae.lazy(async () => ({
2779
- default: () => /* @__PURE__ */ a(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2783
+ default: () => /* @__PURE__ */ s(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2780
2784
  /* @__PURE__ */ W("p", { className: "font-bold", children: [
2781
2785
  'Failed to load "',
2782
2786
  t,
@@ -2796,13 +2800,13 @@ function Nn({
2796
2800
  ] }),
2797
2801
  ". Host is running",
2798
2802
  " ",
2799
- /* @__PURE__ */ a("strong", { children: l }),
2803
+ /* @__PURE__ */ s("strong", { children: l }),
2800
2804
  "."
2801
2805
  ] })
2802
2806
  ] }),
2803
2807
  /* @__PURE__ */ W("div", { className: "flex flex-col mt-3", children: [
2804
- /* @__PURE__ */ a("h5", { children: "Externals:" }),
2805
- /* @__PURE__ */ a("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((I, T) => /* @__PURE__ */ W("dd", { children: [
2808
+ /* @__PURE__ */ s("h5", { children: "Externals:" }),
2809
+ /* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((I, T) => /* @__PURE__ */ W("dd", { children: [
2806
2810
  "- ",
2807
2811
  I
2808
2812
  ] }, T)) })
@@ -2818,14 +2822,14 @@ function Nn({
2818
2822
  return await p.loader();
2819
2823
  } catch (I) {
2820
2824
  return console.error(`CDN Load Failure for ${t}:`, I), {
2821
- default: () => /* @__PURE__ */ a(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2825
+ default: () => /* @__PURE__ */ s(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
2822
2826
  /* @__PURE__ */ W("p", { className: "font-bold", children: [
2823
2827
  'Failed to load "',
2824
2828
  t,
2825
2829
  '"'
2826
2830
  ] }),
2827
- /* @__PURE__ */ a("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2828
- /* @__PURE__ */ a("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(p.meta || {}, null, 2) })
2831
+ /* @__PURE__ */ s("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2832
+ /* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(p.meta || {}, null, 2) })
2829
2833
  ] }) })
2830
2834
  };
2831
2835
  }
@@ -2834,22 +2838,22 @@ function Nn({
2834
2838
  }
2835
2839
  return null;
2836
2840
  }, [p, t])), !v)
2837
- return /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2841
+ return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
2838
2842
  "Widget definition incomplete: ",
2839
2843
  D
2840
2844
  ] }) });
2841
2845
  const E = N ? {
2842
- highlight: o === t,
2846
+ highlight: i === t,
2843
2847
  selectContainer: u,
2844
2848
  // The children prop is the recursive call back to DynamicWidgetLoader
2845
- children: S.map((l, f) => /* @__PURE__ */ a(
2849
+ children: S.map((l, f) => /* @__PURE__ */ s(
2846
2850
  Nn,
2847
2851
  {
2848
2852
  index: f,
2849
2853
  maxIndex: S.length - 1,
2850
2854
  widgetKey: l.widgetKey,
2851
2855
  parentWidgetKey: l.parentWidgetKey,
2852
- widgetCatalog: s,
2856
+ widgetCatalog: a,
2853
2857
  isEditing: d,
2854
2858
  extraProps: b,
2855
2859
  onRemoveClick: g,
@@ -2858,12 +2862,12 @@ function Nn({
2858
2862
  `${l.widgetKey}_${f}`
2859
2863
  ))
2860
2864
  } : {};
2861
- return w ? /* @__PURE__ */ a(St, { fallback: /* @__PURE__ */ a(Dn, { title: `Loading ${p.title}` }), children: /* @__PURE__ */ a(v, { ...c, ...E }) }) : /* @__PURE__ */ a(v, { ...c, ...E });
2865
+ return w ? /* @__PURE__ */ s(St, { fallback: /* @__PURE__ */ s(Dn, { title: `Loading ${p.title}` }), children: /* @__PURE__ */ s(v, { ...c, ...E }) }) : /* @__PURE__ */ s(v, { ...c, ...E });
2862
2866
  }
2863
2867
  const xe = "size-5";
2864
2868
  function ke(e) {
2865
- const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, o = e.isEditing || !1;
2866
- let d = n ? "border-transparent" : o && !r ? "border-card-invert" : "border-transparent";
2869
+ const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
2870
+ let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
2867
2871
  const b = ["large", "xlarge"].includes(e.size || "");
2868
2872
  let g = "";
2869
2873
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (g = `${e.size}-widget`);
@@ -2872,7 +2876,7 @@ function ke(e) {
2872
2876
  let u = G(
2873
2877
  "dashboard-widget-container relative ",
2874
2878
  r ? "" : "has-no-children",
2875
- o ? "editing" : "",
2879
+ i ? "editing" : "",
2876
2880
  h,
2877
2881
  g,
2878
2882
  b ? "widget-container-grid" : "widget-container-flex",
@@ -2889,16 +2893,16 @@ function ke(e) {
2889
2893
  };
2890
2894
  return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
2891
2895
  /* @__PURE__ */ W("div", { className: m, children: [
2892
- /* @__PURE__ */ a(
2896
+ /* @__PURE__ */ s(
2893
2897
  "div",
2894
2898
  {
2895
2899
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2896
2900
  onClick: p,
2897
- children: /* @__PURE__ */ a("span", { className: "text-sm font-semibold capitalize", children: e.title })
2901
+ children: /* @__PURE__ */ s("span", { className: "text-sm font-semibold capitalize", children: e.title })
2898
2902
  }
2899
2903
  ),
2900
- /* @__PURE__ */ a("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ a("div", { className: "actions-inner", children: /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2901
- /* @__PURE__ */ a(
2904
+ /* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ s("div", { className: "actions-inner", children: /* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
2905
+ /* @__PURE__ */ s(
2902
2906
  J,
2903
2907
  {
2904
2908
  "data-testid": `open-widgets-catalog-from-container_${e.title}`,
@@ -2909,7 +2913,7 @@ function ke(e) {
2909
2913
  title: "Target this Container"
2910
2914
  },
2911
2915
  onClick: p,
2912
- children: /* @__PURE__ */ a(
2916
+ children: /* @__PURE__ */ s(
2913
2917
  tn,
2914
2918
  {
2915
2919
  className: `${xe} ${n ? "text-success" : "text-disabled"}`
@@ -2917,7 +2921,7 @@ function ke(e) {
2917
2921
  )
2918
2922
  }
2919
2923
  ),
2920
- /* @__PURE__ */ a(
2924
+ /* @__PURE__ */ s(
2921
2925
  J,
2922
2926
  {
2923
2927
  "data-testid": `move-container-left_${e.title}`,
@@ -2928,10 +2932,10 @@ function ke(e) {
2928
2932
  title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
2929
2933
  },
2930
2934
  onClick: () => D(-1),
2931
- children: /* @__PURE__ */ a(ft, { className: xe })
2935
+ children: /* @__PURE__ */ s(ft, { className: xe })
2932
2936
  }
2933
2937
  ),
2934
- /* @__PURE__ */ a(
2938
+ /* @__PURE__ */ s(
2935
2939
  J,
2936
2940
  {
2937
2941
  "data-testid": `move-container-right_${e.title}`,
@@ -2942,10 +2946,10 @@ function ke(e) {
2942
2946
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
2943
2947
  },
2944
2948
  onClick: () => D(1),
2945
- children: /* @__PURE__ */ a(ht, { className: xe })
2949
+ children: /* @__PURE__ */ s(ht, { className: xe })
2946
2950
  }
2947
2951
  ),
2948
- /* @__PURE__ */ a(
2952
+ /* @__PURE__ */ s(
2949
2953
  J,
2950
2954
  {
2951
2955
  "data-testid": `remove-container_${e.title}`,
@@ -2955,25 +2959,25 @@ function ke(e) {
2955
2959
  title: "Remove Container"
2956
2960
  },
2957
2961
  onClick: () => y(),
2958
- children: /* @__PURE__ */ a(gt, { className: xe })
2962
+ children: /* @__PURE__ */ s(gt, { className: xe })
2959
2963
  }
2960
2964
  )
2961
2965
  ] }) }) })
2962
2966
  ] }),
2963
- /* @__PURE__ */ a("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2967
+ /* @__PURE__ */ s("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2964
2968
  ] });
2965
2969
  }
2966
- function or(e) {
2970
+ function ir(e) {
2967
2971
  const { direction: n, ...t } = e;
2968
- return /* @__PURE__ */ a(ke, { direction: "column", ...t });
2972
+ return /* @__PURE__ */ s(ke, { direction: "column", ...t });
2969
2973
  }
2970
2974
  function ar(e) {
2971
2975
  const { size: n, ...t } = e;
2972
- return /* @__PURE__ */ a(ke, { size: "large", ...t });
2976
+ return /* @__PURE__ */ s(ke, { size: "large", ...t });
2973
2977
  }
2974
2978
  function sr(e) {
2975
2979
  const { direction: n, ...t } = e;
2976
- return /* @__PURE__ */ a(ke, { direction: "row", ...t });
2980
+ return /* @__PURE__ */ s(ke, { direction: "row", ...t });
2977
2981
  }
2978
2982
  function We({
2979
2983
  // widgetKey,
@@ -2981,25 +2985,25 @@ function We({
2981
2985
  alreadyAdded: n,
2982
2986
  addWidget: t
2983
2987
  }) {
2984
- const [r, o] = le(!1), i = e.icon || nn, s = e.displayName || "Unknown", d = e.description || "---", g = (e.noDuplicatedWidgets || !1) && n, h = G(`
2988
+ const [r, i] = le(!1), o = e.icon || nn, a = e.displayName || "Unknown", d = e.description || "---", g = (e.noDuplicatedWidgets || !1) && n, h = G(`
2985
2989
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2986
2990
  ${g ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2987
2991
  `);
2988
2992
  return /* @__PURE__ */ W("div", { className: h, style: { width: "calc(100% - 1rem)" }, onClick: () => {
2989
2993
  g || t();
2990
2994
  }, children: [
2991
- /* @__PURE__ */ a(i, { className: "" }),
2995
+ /* @__PURE__ */ s(o, { className: "" }),
2992
2996
  /* @__PURE__ */ W("div", { className: "w-full", children: [
2993
2997
  /* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2994
- /* @__PURE__ */ a("span", { className: "font-bold", children: s }),
2995
- /* @__PURE__ */ a("div", { className: "text-xs", children: g ? "(Added)" : "" })
2998
+ /* @__PURE__ */ s("span", { className: "font-bold", children: a }),
2999
+ /* @__PURE__ */ s("div", { className: "text-xs", children: g ? "(Added)" : "" })
2996
3000
  ] }),
2997
3001
  /* @__PURE__ */ W("div", { className: "flex flex-col text-xs", children: [
2998
- /* @__PURE__ */ a("div", { children: d }),
2999
- /* @__PURE__ */ a("div", { className: "mt-3 cursor-pointer", onClick: (y) => {
3000
- y.stopPropagation(), y.preventDefault(), o(!r);
3002
+ /* @__PURE__ */ s("div", { children: d }),
3003
+ /* @__PURE__ */ s("div", { className: "mt-3 cursor-pointer", onClick: (y) => {
3004
+ y.stopPropagation(), y.preventDefault(), i(!r);
3001
3005
  }, children: "Externals:" }),
3002
- r && /* @__PURE__ */ a("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((y, D) => /* @__PURE__ */ W("dd", { children: [
3006
+ r && /* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((y, D) => /* @__PURE__ */ W("dd", { children: [
3003
3007
  "- ",
3004
3008
  y
3005
3009
  ] }, D)) })
@@ -3011,9 +3015,9 @@ function Tn({
3011
3015
  item: e,
3012
3016
  onSettingItemChanged: n
3013
3017
  }) {
3014
- const t = e.displayName || "Unknown", r = e.description || "---", o = G(`
3018
+ const t = e.displayName || "Unknown", r = e.description || "---", i = G(`
3015
3019
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
3016
- `), i = (d) => {
3020
+ `), o = (d) => {
3017
3021
  const b = d.key;
3018
3022
  if (["ArrowUp", "ArrowDown"].includes(b)) {
3019
3023
  d.preventDefault();
@@ -3023,26 +3027,26 @@ function Tn({
3023
3027
  );
3024
3028
  n(g);
3025
3029
  }
3026
- }, s = (d) => {
3030
+ }, a = (d) => {
3027
3031
  n({
3028
3032
  ...e,
3029
3033
  value: d.target.value || ""
3030
3034
  });
3031
3035
  };
3032
- return /* @__PURE__ */ a("div", { className: o, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
3033
- /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ a("span", { className: "font-bold", children: t }) }),
3034
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ a("div", { children: r }) }),
3036
+ return /* @__PURE__ */ s("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
3037
+ /* @__PURE__ */ s("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ s("span", { className: "font-bold", children: t }) }),
3038
+ /* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: r }) }),
3035
3039
  /* @__PURE__ */ W("div", { children: [
3036
3040
  "Value:",
3037
- /* @__PURE__ */ a(
3041
+ /* @__PURE__ */ s(
3038
3042
  pt,
3039
3043
  {
3040
3044
  label: "Filter...",
3041
3045
  size: "small",
3042
3046
  className: "w-full",
3043
3047
  value: e.value,
3044
- onChange: s,
3045
- onKeyDown: i
3048
+ onChange: a,
3049
+ onKeyDown: o
3046
3050
  }
3047
3051
  )
3048
3052
  ] })
@@ -3057,9 +3061,9 @@ function lr({
3057
3061
  widgetsCatalog: n,
3058
3062
  currentDashboardConfig: t,
3059
3063
  undoStatus: r,
3060
- addWidget: o,
3061
- addContainer: i,
3062
- onSettingItemsUpdated: s,
3064
+ addWidget: i,
3065
+ addContainer: o,
3066
+ onSettingItemsUpdated: a,
3063
3067
  onResetToDefaultDashboardClick: d,
3064
3068
  onUndoOrRedo: b,
3065
3069
  onDoneClick: g
@@ -3088,12 +3092,12 @@ function lr({
3088
3092
  u("Editing Dashboard");
3089
3093
  }, [e]);
3090
3094
  const l = (T) => {
3091
- E ? o(T, e) : o(T);
3095
+ E ? i(T, e) : i(T);
3092
3096
  }, f = (T) => {
3093
3097
  const z = (t.cssSettings || []).map((X) => X.key === T.key ? T : X);
3094
- s(z);
3098
+ a(z);
3095
3099
  }, [M, $] = le(!1);
3096
- return /* @__PURE__ */ a(
3100
+ return /* @__PURE__ */ s(
3097
3101
  xn,
3098
3102
  {
3099
3103
  testId: "dashboard-catalog-flyout",
@@ -3111,8 +3115,8 @@ function lr({
3111
3115
  children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
3112
3116
  /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
3113
3117
  /* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
3114
- M ? /* @__PURE__ */ a(en, { className: "size-5" }) : /* @__PURE__ */ a(Qt, { className: "size-5" }),
3115
- /* @__PURE__ */ a(
3118
+ M ? /* @__PURE__ */ s(en, { className: "size-5" }) : /* @__PURE__ */ s(Qt, { className: "size-5" }),
3119
+ /* @__PURE__ */ s(
3116
3120
  "h2",
3117
3121
  {
3118
3122
  className: "flex-1 text-base margin-0 capitalize",
@@ -3122,7 +3126,7 @@ function lr({
3122
3126
  )
3123
3127
  ] }),
3124
3128
  /* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
3125
- /* @__PURE__ */ a(
3129
+ /* @__PURE__ */ s(
3126
3130
  J,
3127
3131
  {
3128
3132
  "data-testid": "undo-dashboard-config-change",
@@ -3133,10 +3137,10 @@ function lr({
3133
3137
  },
3134
3138
  disabled: r.isUndoDisabled,
3135
3139
  onClick: () => b("Undo"),
3136
- children: /* @__PURE__ */ a(Zt, { className: "size-5" })
3140
+ children: /* @__PURE__ */ s(Zt, { className: "size-5" })
3137
3141
  }
3138
3142
  ),
3139
- /* @__PURE__ */ a(
3143
+ /* @__PURE__ */ s(
3140
3144
  J,
3141
3145
  {
3142
3146
  "data-testid": "redo-dashboard-config-change",
@@ -3147,10 +3151,10 @@ function lr({
3147
3151
  },
3148
3152
  disabled: r.isRedoDisabled,
3149
3153
  onClick: () => b("Redo"),
3150
- children: /* @__PURE__ */ a(Jt, { className: "size-5" })
3154
+ children: /* @__PURE__ */ s(Jt, { className: "size-5" })
3151
3155
  }
3152
3156
  ),
3153
- /* @__PURE__ */ a(
3157
+ /* @__PURE__ */ s(
3154
3158
  J,
3155
3159
  {
3156
3160
  "data-testid": "reset-dashboard-to-default",
@@ -3160,18 +3164,18 @@ function lr({
3160
3164
  title: "Reset this dashboard to the default configuration"
3161
3165
  },
3162
3166
  onClick: d,
3163
- children: /* @__PURE__ */ a(Gt, { className: "size-5" })
3167
+ children: /* @__PURE__ */ s(Gt, { className: "size-5" })
3164
3168
  }
3165
3169
  )
3166
3170
  ] })
3167
3171
  ] }),
3168
3172
  /* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
3169
- /* @__PURE__ */ a("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
3170
- /* @__PURE__ */ a("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
3171
- !E && /* @__PURE__ */ a("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
3172
- !E && /* @__PURE__ */ a("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ a(Xt, {}) })
3173
+ /* @__PURE__ */ s("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
3174
+ /* @__PURE__ */ s("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
3175
+ !E && /* @__PURE__ */ s("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
3176
+ !E && /* @__PURE__ */ s("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ s(Xt, {}) })
3173
3177
  ] }),
3174
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ a(
3178
+ /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
3175
3179
  pt,
3176
3180
  {
3177
3181
  label: "Filter...",
@@ -3191,7 +3195,7 @@ function lr({
3191
3195
  children: [
3192
3196
  m === 0 && w.filter(
3193
3197
  (T) => T.metaData.categories.includes("Widget") && C(T.metaData)
3194
- ).map((T) => /* @__PURE__ */ a(
3198
+ ).map((T) => /* @__PURE__ */ s(
3195
3199
  We,
3196
3200
  {
3197
3201
  widgetKey: T.widgetKey,
@@ -3203,7 +3207,7 @@ function lr({
3203
3207
  )),
3204
3208
  m === 1 && w.filter(
3205
3209
  (T) => T.metaData.categories.includes("Chart") && C(T.metaData)
3206
- ).map((T) => /* @__PURE__ */ a(
3210
+ ).map((T) => /* @__PURE__ */ s(
3207
3211
  We,
3208
3212
  {
3209
3213
  widgetKey: T.widgetKey,
@@ -3213,17 +3217,17 @@ function lr({
3213
3217
  },
3214
3218
  T.widgetKey
3215
3219
  )),
3216
- !E && m === 2 && w.filter((T) => T.metaData.categories.includes("Container")).map((T) => /* @__PURE__ */ a(
3220
+ !E && m === 2 && w.filter((T) => T.metaData.categories.includes("Container")).map((T) => /* @__PURE__ */ s(
3217
3221
  We,
3218
3222
  {
3219
3223
  widgetKey: T.widgetKey,
3220
3224
  metaData: T.metaData,
3221
3225
  alreadyAdded: Ie(T.widgetKey, t),
3222
- addWidget: () => i(T.widgetKey)
3226
+ addWidget: () => o(T.widgetKey)
3223
3227
  },
3224
3228
  T.widgetKey
3225
3229
  )),
3226
- !E && m === 3 && (t.cssSettings || []).filter(S).map((T) => /* @__PURE__ */ a(
3230
+ !E && m === 3 && (t.cssSettings || []).filter(S).map((T) => /* @__PURE__ */ s(
3227
3231
  Tn,
3228
3232
  {
3229
3233
  item: T,
@@ -3234,7 +3238,7 @@ function lr({
3234
3238
  ]
3235
3239
  }
3236
3240
  ),
3237
- /* @__PURE__ */ a("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ a(
3241
+ /* @__PURE__ */ s("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ s(
3238
3242
  J,
3239
3243
  {
3240
3244
  className: "bg-opacity-100",
@@ -3255,7 +3259,7 @@ export {
3255
3259
  J as Button,
3256
3260
  nn as CircleQuestionMark,
3257
3261
  tn as CrosshairIcon,
3258
- ir as DashboardGrid,
3262
+ or as DashboardGrid,
3259
3263
  Le as DashboardMaxZoomScale,
3260
3264
  Ae as DashboardMinZoomScale,
3261
3265
  at as DashboardWidgetBase,
@@ -3284,7 +3288,7 @@ export {
3284
3288
  pt as TextField,
3285
3289
  Gt as TimerResetIcon,
3286
3290
  Zt as UndoIcon,
3287
- or as WidgetContainerColumn,
3291
+ ir as WidgetContainerColumn,
3288
3292
  ar as WidgetContainerLarge,
3289
3293
  sr as WidgetContainerRow,
3290
3294
  lr as WidgetsCatalogFlyout,