@tenorlab/react-dashboard 1.2.1 → 1.2.3
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
|
|
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,
|
|
84
|
+
const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, o = e.value.match(/([^\d.]+)/), i = o ? o[1] : e.defaultUnit, a = Et(i, e.step) * n, b = `${Math.max(r + a, e.minValue).toFixed(1)}${i}`;
|
|
85
85
|
return {
|
|
86
86
|
...e,
|
|
87
87
|
value: b
|
|
@@ -97,9 +97,9 @@ const Nt = [
|
|
|
97
97
|
widgets: [],
|
|
98
98
|
childWidgetsConfig: [],
|
|
99
99
|
cssSettings: [...Nt]
|
|
100
|
-
}, Ae = 0.7,
|
|
100
|
+
}, Ae = 0.7, Fe = 1, Mt = 0.05, ct = (e) => {
|
|
101
101
|
let n = Number(e || 0);
|
|
102
|
-
return n < Ae && (n = Ae), n >
|
|
102
|
+
return n < Ae && (n = Ae), n > Fe && (n = Fe), n;
|
|
103
103
|
}, Pn = (e, n) => {
|
|
104
104
|
let t = Number(Number((Mt * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
|
|
105
105
|
return ct(r);
|
|
@@ -178,20 +178,26 @@ const Nt = [
|
|
|
178
178
|
}, It = (e) => {
|
|
179
179
|
const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
|
|
180
180
|
if (n && n[1]) {
|
|
181
|
-
const t = n[1], r =
|
|
182
|
-
return {
|
|
181
|
+
const t = n[1], r = t.split("-"), o = `Widget${r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("")}`, i = r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join(" ");
|
|
182
|
+
return {
|
|
183
|
+
key: o,
|
|
184
|
+
title: i,
|
|
185
|
+
folder: t
|
|
186
|
+
};
|
|
183
187
|
}
|
|
184
188
|
return null;
|
|
185
189
|
}, Ot = (e, n, t, r) => {
|
|
186
|
-
const o = `${n}/widget-${t}/
|
|
187
|
-
if (i
|
|
188
|
-
return
|
|
190
|
+
const o = `${n}/widget-${t}/meta.ts`, i = e[o];
|
|
191
|
+
if (!i)
|
|
192
|
+
return;
|
|
193
|
+
const a = `${r}Meta`;
|
|
194
|
+
return i[a] || void 0;
|
|
189
195
|
}, In = async (e) => new Promise(async (n, t) => {
|
|
190
196
|
const r = [];
|
|
191
197
|
try {
|
|
192
198
|
const i = await (await fetch(`${e}?${Math.random()}`)).json();
|
|
193
|
-
for (const
|
|
194
|
-
const d = i[
|
|
199
|
+
for (const a in i) {
|
|
200
|
+
const d = i[a], b = () => import(
|
|
195
201
|
/* @vite-ignore */
|
|
196
202
|
d.url
|
|
197
203
|
), g = {
|
|
@@ -203,7 +209,7 @@ const Nt = [
|
|
|
203
209
|
// Or a logic to map a string name to a Lucide component
|
|
204
210
|
externalDependencies: d.meta.externalDependencies || []
|
|
205
211
|
};
|
|
206
|
-
r.push(dt(
|
|
212
|
+
r.push(dt(a, b, g));
|
|
207
213
|
}
|
|
208
214
|
n({
|
|
209
215
|
entries: r,
|
|
@@ -220,34 +226,35 @@ const Nt = [
|
|
|
220
226
|
}), On = (e, n, t, r = !0) => {
|
|
221
227
|
const o = [];
|
|
222
228
|
for (const i in n) {
|
|
223
|
-
const
|
|
224
|
-
if (d &&
|
|
229
|
+
const a = n[i], d = It(i);
|
|
230
|
+
if (d && a) {
|
|
225
231
|
const { key: b, title: g, folder: h } = d;
|
|
226
232
|
let u = Ot(t, e, h, b);
|
|
227
233
|
if (u || (u = ge(b, {
|
|
228
234
|
title: g,
|
|
229
235
|
description: `Local ${r ? "dynamic" : "static"} widget`
|
|
230
|
-
})), r)
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
})), r)
|
|
237
|
+
o.push(
|
|
238
|
+
dt(b, a, u)
|
|
239
|
+
);
|
|
240
|
+
else {
|
|
241
|
+
const p = a.default || a;
|
|
242
|
+
o.push(Wt(b, p, u));
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
245
|
}
|
|
239
246
|
return o;
|
|
240
|
-
},
|
|
247
|
+
}, Le = (e) => {
|
|
241
248
|
let n;
|
|
242
249
|
const t = /* @__PURE__ */ new Set(), r = (g, h) => {
|
|
243
250
|
const u = typeof g == "function" ? g(n) : g;
|
|
244
251
|
if (!Object.is(u, n)) {
|
|
245
|
-
const
|
|
246
|
-
n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n,
|
|
252
|
+
const p = n;
|
|
253
|
+
n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, p));
|
|
247
254
|
}
|
|
248
255
|
}, o = () => n, d = { setState: r, getState: o, getInitialState: () => b, subscribe: (g) => (t.add(g), () => t.delete(g)) }, b = n = e(r, o, d);
|
|
249
256
|
return d;
|
|
250
|
-
}, Rt = ((e) => e ?
|
|
257
|
+
}, Rt = ((e) => e ? Le(e) : Le), kt = (e) => e;
|
|
251
258
|
function jt(e, n = kt) {
|
|
252
259
|
const t = ae.useSyncExternalStore(
|
|
253
260
|
e.subscribe,
|
|
@@ -259,17 +266,17 @@ function jt(e, n = kt) {
|
|
|
259
266
|
const At = (e) => {
|
|
260
267
|
const n = Rt(e), t = (r) => jt(n, r);
|
|
261
268
|
return Object.assign(t, n), t;
|
|
262
|
-
},
|
|
269
|
+
}, Ft = ((e) => At), Lt = (e) => {
|
|
263
270
|
const n = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
|
|
264
271
|
return `container${n.length > 0 ? Math.max(...n) + 1 : 1}`;
|
|
265
272
|
}, Vt = (e, n) => {
|
|
266
|
-
const t =
|
|
273
|
+
const t = Lt(e);
|
|
267
274
|
return `${n}_${t}`;
|
|
268
275
|
}, Ut = (e) => {
|
|
269
276
|
const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: o } = e;
|
|
270
277
|
if (r) {
|
|
271
278
|
if (o && n.childWidgetsConfig.find(
|
|
272
|
-
(
|
|
279
|
+
(a) => a.parentWidgetKey === r && a.widgetKey === t
|
|
273
280
|
))
|
|
274
281
|
return {
|
|
275
282
|
success: !1,
|
|
@@ -311,13 +318,13 @@ const At = (e) => {
|
|
|
311
318
|
), o = e.childWidgetsConfig.filter(
|
|
312
319
|
(b) => b.parentWidgetKey === t && b.widgetKey !== n
|
|
313
320
|
), i = [...r, ...o];
|
|
314
|
-
let
|
|
321
|
+
let a = {
|
|
315
322
|
...e,
|
|
316
323
|
childWidgetsConfig: i
|
|
317
324
|
};
|
|
318
|
-
return `${n}`.includes("Container") && (
|
|
325
|
+
return `${n}`.includes("Container") && (a = Pt(a)), {
|
|
319
326
|
success: !0,
|
|
320
|
-
updatedDashboardConfig:
|
|
327
|
+
updatedDashboardConfig: a
|
|
321
328
|
};
|
|
322
329
|
} else {
|
|
323
330
|
const r = e.widgets.filter((i) => i !== n), o = e.childWidgetsConfig.filter(
|
|
@@ -340,15 +347,15 @@ const At = (e) => {
|
|
|
340
347
|
let i = e.childWidgetsConfig.filter(
|
|
341
348
|
(h) => h.parentWidgetKey === r
|
|
342
349
|
);
|
|
343
|
-
const
|
|
344
|
-
let d =
|
|
345
|
-
if (d = Math.max(0, d), d = Math.min(i.length - 1, d), d ===
|
|
350
|
+
const a = i.indexOf(t);
|
|
351
|
+
let d = a + n;
|
|
352
|
+
if (d = Math.max(0, d), d = Math.min(i.length - 1, d), d === a)
|
|
346
353
|
return {
|
|
347
354
|
success: !1,
|
|
348
355
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
349
356
|
updatedDashboardConfig: e
|
|
350
357
|
};
|
|
351
|
-
const b = [...i], [g] = b.splice(
|
|
358
|
+
const b = [...i], [g] = b.splice(a, 1);
|
|
352
359
|
return b.splice(d, 0, g), {
|
|
353
360
|
success: !0,
|
|
354
361
|
updatedDashboardConfig: {
|
|
@@ -358,15 +365,15 @@ const At = (e) => {
|
|
|
358
365
|
};
|
|
359
366
|
} else {
|
|
360
367
|
const o = e.widgets || [], i = o.indexOf(t);
|
|
361
|
-
let
|
|
362
|
-
if (
|
|
368
|
+
let a = i + n;
|
|
369
|
+
if (a = Math.max(0, a), a = Math.min(o.length - 1, a), a === i)
|
|
363
370
|
return {
|
|
364
371
|
success: !1,
|
|
365
372
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
366
373
|
updatedDashboardConfig: e
|
|
367
374
|
};
|
|
368
375
|
const d = [...o], [b] = d.splice(i, 1);
|
|
369
|
-
return d.splice(
|
|
376
|
+
return d.splice(a, 0, b), {
|
|
370
377
|
success: !0,
|
|
371
378
|
updatedDashboardConfig: {
|
|
372
379
|
...e,
|
|
@@ -432,7 +439,7 @@ const At = (e) => {
|
|
|
432
439
|
...t
|
|
433
440
|
}), i = [
|
|
434
441
|
...r.allDashboardConfigs.filter(
|
|
435
|
-
(
|
|
442
|
+
(a) => a.dashboardId !== o.updatedDashboardConfig.dashboardId
|
|
436
443
|
),
|
|
437
444
|
o.updatedDashboardConfig
|
|
438
445
|
];
|
|
@@ -445,49 +452,49 @@ const At = (e) => {
|
|
|
445
452
|
};
|
|
446
453
|
},
|
|
447
454
|
removeWidget: (t, r) => {
|
|
448
|
-
const o = n(), i = qt(o.currentDashboardConfig, t, r),
|
|
455
|
+
const o = n(), i = qt(o.currentDashboardConfig, t, r), a = [
|
|
449
456
|
...o.allDashboardConfigs.filter(
|
|
450
457
|
(d) => d.dashboardId !== i.updatedDashboardConfig.dashboardId
|
|
451
458
|
),
|
|
452
459
|
i.updatedDashboardConfig
|
|
453
460
|
];
|
|
454
461
|
return i.success && e(() => ({
|
|
455
|
-
allDashboardConfigs:
|
|
462
|
+
allDashboardConfigs: a,
|
|
456
463
|
currentDashboardConfig: i.updatedDashboardConfig
|
|
457
464
|
})), {
|
|
458
465
|
...i,
|
|
459
|
-
allUpdatedDashboardConfigs:
|
|
466
|
+
allUpdatedDashboardConfigs: a
|
|
460
467
|
};
|
|
461
468
|
},
|
|
462
469
|
moveWidget: (t, r, o) => {
|
|
463
|
-
const i = n(),
|
|
470
|
+
const i = n(), a = Yt(i.currentDashboardConfig, t, r, o), d = [
|
|
464
471
|
...i.allDashboardConfigs.filter(
|
|
465
|
-
(b) => b.dashboardId !==
|
|
472
|
+
(b) => b.dashboardId !== a.updatedDashboardConfig.dashboardId
|
|
466
473
|
),
|
|
467
|
-
|
|
474
|
+
a.updatedDashboardConfig
|
|
468
475
|
];
|
|
469
|
-
return
|
|
476
|
+
return a.success && e(() => ({
|
|
470
477
|
allDashboardConfigs: d,
|
|
471
|
-
currentDashboardConfig:
|
|
478
|
+
currentDashboardConfig: a.updatedDashboardConfig
|
|
472
479
|
})), {
|
|
473
|
-
...
|
|
480
|
+
...a,
|
|
474
481
|
allUpdatedDashboardConfigs: d
|
|
475
482
|
};
|
|
476
483
|
}
|
|
477
|
-
}), Rn =
|
|
484
|
+
}), Rn = Ft()((...e) => ({
|
|
478
485
|
...zt(...e)
|
|
479
486
|
})), ut = (e, n) => `dashboards_${n}_${e}`, Bt = async (e, n, t, r) => {
|
|
480
487
|
const o = localStorage.getItem(ut(e, n));
|
|
481
488
|
if (o)
|
|
482
489
|
try {
|
|
483
490
|
const i = JSON.parse(o);
|
|
484
|
-
return i.length < 1 ? [r] : (i.forEach((
|
|
485
|
-
|
|
486
|
-
const d = (
|
|
491
|
+
return i.length < 1 ? [r] : (i.forEach((a) => {
|
|
492
|
+
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);
|
|
493
|
+
const d = (a.cssSettings || []).filter(
|
|
487
494
|
(b) => r.cssSettings.some((g) => g.key === b.key)
|
|
488
495
|
);
|
|
489
496
|
if (d.length < 1)
|
|
490
|
-
|
|
497
|
+
a.cssSettings = [...r.cssSettings];
|
|
491
498
|
else {
|
|
492
499
|
d.forEach((g) => {
|
|
493
500
|
g.value = (g.value || "").replace(/NaN/g, "");
|
|
@@ -501,13 +508,13 @@ const At = (e) => {
|
|
|
501
508
|
const b = r.cssSettings.filter((g) => !d.some(
|
|
502
509
|
(h) => h.key === g.key
|
|
503
510
|
));
|
|
504
|
-
|
|
511
|
+
a.cssSettings = [...d, ...b];
|
|
505
512
|
}
|
|
506
|
-
|
|
513
|
+
a.widgets = a.widgets.filter(
|
|
507
514
|
(b) => b.includes("WidgetContainer") || t.has(b)
|
|
508
|
-
),
|
|
515
|
+
), a.childWidgetsConfig = a.childWidgetsConfig.filter(
|
|
509
516
|
(b) => t.has(b.widgetKey)
|
|
510
|
-
),
|
|
517
|
+
), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
|
|
511
518
|
}), i);
|
|
512
519
|
} catch (i) {
|
|
513
520
|
console.warn("Error parsing saved dashboard config:", i);
|
|
@@ -518,9 +525,9 @@ const At = (e) => {
|
|
|
518
525
|
if (i.userID = e, i.clientAppKey = n, i.responsiveGrid = i.responsiveGrid ?? !1, typeof i != "object")
|
|
519
526
|
throw new Error("Invalid dashboard configuration");
|
|
520
527
|
i.widgets = i.widgets.filter(
|
|
521
|
-
(
|
|
528
|
+
(a) => a.includes("WidgetContainer") || r.has(a)
|
|
522
529
|
), i.childWidgetsConfig = i.childWidgetsConfig.filter(
|
|
523
|
-
(
|
|
530
|
+
(a) => r.has(a.widgetKey)
|
|
524
531
|
), i.zoomScale ? i.zoomScale < 0.7 && (i.zoomScale = 0.7) : i.zoomScale = 1;
|
|
525
532
|
});
|
|
526
533
|
const o = JSON.stringify(t);
|
|
@@ -531,7 +538,7 @@ const At = (e) => {
|
|
|
531
538
|
}, kn = () => Kt, jn = () => {
|
|
532
539
|
const [e, n] = le({}), [t, r] = le({}), o = ue((h) => {
|
|
533
540
|
const u = h.dashboardId;
|
|
534
|
-
n((
|
|
541
|
+
n((p) => {
|
|
535
542
|
const y = {
|
|
536
543
|
undoIndex: 0,
|
|
537
544
|
config: h
|
|
@@ -540,7 +547,7 @@ const At = (e) => {
|
|
|
540
547
|
...D,
|
|
541
548
|
[u]: 0
|
|
542
549
|
})), {
|
|
543
|
-
...
|
|
550
|
+
...p,
|
|
544
551
|
[u]: [y]
|
|
545
552
|
// Forces a reset to just this one entry
|
|
546
553
|
};
|
|
@@ -548,37 +555,37 @@ const At = (e) => {
|
|
|
548
555
|
}, []), i = ue(
|
|
549
556
|
(h) => {
|
|
550
557
|
n((u) => {
|
|
551
|
-
const
|
|
552
|
-
undoIndex:
|
|
558
|
+
const p = h.dashboardId, y = u[p] || [], D = t[p] ?? -1, m = y.slice(0, D + 1), v = {
|
|
559
|
+
undoIndex: m.length,
|
|
553
560
|
// New index based on trimmed length
|
|
554
561
|
config: h
|
|
555
|
-
}, w = [...
|
|
562
|
+
}, w = [...m, v];
|
|
556
563
|
return r((N) => ({
|
|
557
564
|
...N,
|
|
558
|
-
[
|
|
565
|
+
[p]: w.length - 1
|
|
559
566
|
// Index is now the last element's index
|
|
560
567
|
})), {
|
|
561
568
|
...u,
|
|
562
|
-
[
|
|
569
|
+
[p]: w
|
|
563
570
|
};
|
|
564
571
|
});
|
|
565
572
|
},
|
|
566
573
|
[t]
|
|
567
|
-
),
|
|
574
|
+
), a = ue((h) => {
|
|
568
575
|
n((u) => {
|
|
569
576
|
if (!u[h])
|
|
570
577
|
return u;
|
|
571
|
-
const { [h]:
|
|
578
|
+
const { [h]: p, ...y } = u;
|
|
572
579
|
return y;
|
|
573
580
|
}), r((u) => {
|
|
574
|
-
const { [h]:
|
|
581
|
+
const { [h]: p, ...y } = u;
|
|
575
582
|
return y;
|
|
576
583
|
});
|
|
577
584
|
}, []), d = ue(
|
|
578
585
|
(h) => {
|
|
579
586
|
r((u) => {
|
|
580
|
-
const
|
|
581
|
-
return y !==
|
|
587
|
+
const p = u[h] ?? -1, y = Math.max(0, p - 1);
|
|
588
|
+
return y !== p ? { ...u, [h]: y } : u;
|
|
582
589
|
});
|
|
583
590
|
},
|
|
584
591
|
[
|
|
@@ -587,7 +594,7 @@ const At = (e) => {
|
|
|
587
594
|
), b = ue(
|
|
588
595
|
(h) => {
|
|
589
596
|
r((u) => {
|
|
590
|
-
const
|
|
597
|
+
const p = e[h]?.length || 0, y = u[h] ?? -1, D = Math.min(p - 1, y + 1);
|
|
591
598
|
return D !== y ? { ...u, [h]: D } : u;
|
|
592
599
|
});
|
|
593
600
|
},
|
|
@@ -600,11 +607,11 @@ const At = (e) => {
|
|
|
600
607
|
initializeHistoryForDashboard: o,
|
|
601
608
|
resetAllHistory: () => n({}),
|
|
602
609
|
addUndoEntry: i,
|
|
603
|
-
removeUndoHistoryForDashboard:
|
|
610
|
+
removeUndoHistoryForDashboard: a,
|
|
604
611
|
undo: d,
|
|
605
612
|
redo: b,
|
|
606
613
|
getUndoStatus: (h) => {
|
|
607
|
-
const u = t[h] ?? -1,
|
|
614
|
+
const u = t[h] ?? -1, p = e[h]?.length || 0, y = u <= 0, D = u >= p - 1;
|
|
608
615
|
return { isUndoDisabled: y, isRedoDisabled: D };
|
|
609
616
|
},
|
|
610
617
|
undoHistory: e,
|
|
@@ -616,7 +623,7 @@ function H({
|
|
|
616
623
|
children: e,
|
|
617
624
|
className: n
|
|
618
625
|
}) {
|
|
619
|
-
return /* @__PURE__ */
|
|
626
|
+
return /* @__PURE__ */ s(
|
|
620
627
|
"svg",
|
|
621
628
|
{
|
|
622
629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -635,40 +642,40 @@ function H({
|
|
|
635
642
|
}
|
|
636
643
|
function An({ className: e }) {
|
|
637
644
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
|
|
638
|
-
/* @__PURE__ */
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
646
|
+
/* @__PURE__ */ s("path", { d: "M8 12h8" }),
|
|
647
|
+
/* @__PURE__ */ s("path", { d: "M12 8v8" })
|
|
641
648
|
] });
|
|
642
649
|
}
|
|
643
|
-
function
|
|
650
|
+
function Fn({ className: e }) {
|
|
644
651
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ s("path", { d: "M10 11v6" }),
|
|
653
|
+
/* @__PURE__ */ s("path", { d: "M14 11v6" }),
|
|
654
|
+
/* @__PURE__ */ s("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
|
|
655
|
+
/* @__PURE__ */ s("path", { d: "M3 6h18" }),
|
|
656
|
+
/* @__PURE__ */ s("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
650
657
|
] });
|
|
651
658
|
}
|
|
652
|
-
function
|
|
659
|
+
function Ln({ className: e }) {
|
|
653
660
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__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" }),
|
|
662
|
+
/* @__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
663
|
] });
|
|
657
664
|
}
|
|
658
665
|
function Vn({ className: e }) {
|
|
659
666
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ s("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
668
|
+
/* @__PURE__ */ s("path", { d: "M3 9h18" }),
|
|
669
|
+
/* @__PURE__ */ s("path", { d: "M3 15h18" }),
|
|
670
|
+
/* @__PURE__ */ s("path", { d: "M9 3v18" }),
|
|
671
|
+
/* @__PURE__ */ s("path", { d: "M15 3v18" })
|
|
665
672
|
] });
|
|
666
673
|
}
|
|
667
674
|
function Un({ className: e }) {
|
|
668
675
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ s("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
|
|
677
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
|
|
678
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
|
|
672
679
|
] });
|
|
673
680
|
}
|
|
674
681
|
function qn({ className: e }) {
|
|
@@ -677,10 +684,10 @@ function qn({ className: e }) {
|
|
|
677
684
|
{
|
|
678
685
|
className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
|
|
679
686
|
children: [
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
/* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
687
|
+
/* @__PURE__ */ s("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
|
|
688
|
+
/* @__PURE__ */ s("path", { d: "M10 19v-3.96 3.15" }),
|
|
689
|
+
/* @__PURE__ */ s("path", { d: "M7 19h5" }),
|
|
690
|
+
/* @__PURE__ */ s("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
|
|
684
691
|
]
|
|
685
692
|
}
|
|
686
693
|
);
|
|
@@ -691,9 +698,9 @@ function ft({ className: e }) {
|
|
|
691
698
|
{
|
|
692
699
|
className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
|
|
693
700
|
children: [
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
702
|
+
/* @__PURE__ */ s("path", { d: "m12 8-4 4 4 4" }),
|
|
703
|
+
/* @__PURE__ */ s("path", { d: "M16 12H8" })
|
|
697
704
|
]
|
|
698
705
|
}
|
|
699
706
|
);
|
|
@@ -704,17 +711,17 @@ function ht({ className: e }) {
|
|
|
704
711
|
{
|
|
705
712
|
className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
|
|
706
713
|
children: [
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
715
|
+
/* @__PURE__ */ s("path", { d: "m12 16 4-4-4-4" }),
|
|
716
|
+
/* @__PURE__ */ s("path", { d: "M8 12h8" })
|
|
710
717
|
]
|
|
711
718
|
}
|
|
712
719
|
);
|
|
713
720
|
}
|
|
714
721
|
function Xt({ className: e }) {
|
|
715
722
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__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" }),
|
|
724
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "3" })
|
|
718
725
|
] });
|
|
719
726
|
}
|
|
720
727
|
function Yn({ className: e }) {
|
|
@@ -723,85 +730,85 @@ function Yn({ className: e }) {
|
|
|
723
730
|
{
|
|
724
731
|
className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
|
|
725
732
|
children: [
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ s("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
|
|
734
|
+
/* @__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" }),
|
|
735
|
+
/* @__PURE__ */ s("path", { d: "M8 18h.01" })
|
|
729
736
|
]
|
|
730
737
|
}
|
|
731
738
|
);
|
|
732
739
|
}
|
|
733
740
|
function gt({ className: e }) {
|
|
734
741
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
|
|
735
|
-
/* @__PURE__ */
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
743
|
+
/* @__PURE__ */ s("path", { d: "m15 9-6 6" }),
|
|
744
|
+
/* @__PURE__ */ s("path", { d: "m9 9 6 6" })
|
|
738
745
|
] });
|
|
739
746
|
}
|
|
740
747
|
function zn({ className: e }) {
|
|
741
748
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
|
|
750
|
+
/* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
751
|
+
/* @__PURE__ */ s("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
|
|
752
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
746
753
|
] });
|
|
747
754
|
}
|
|
748
755
|
function Bn({ className: e }) {
|
|
749
756
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
|
|
758
|
+
/* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
759
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
753
760
|
] });
|
|
754
761
|
}
|
|
755
762
|
function Gt({ className: e }) {
|
|
756
763
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ s("path", { d: "M10 2h4" }),
|
|
765
|
+
/* @__PURE__ */ s("path", { d: "M12 14v-4" }),
|
|
766
|
+
/* @__PURE__ */ s("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
|
|
767
|
+
/* @__PURE__ */ s("path", { d: "M9 17H4v5" })
|
|
761
768
|
] });
|
|
762
769
|
}
|
|
763
770
|
function Zt({ className: e }) {
|
|
764
771
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ s("path", { d: "M3 7v6h6" }),
|
|
773
|
+
/* @__PURE__ */ s("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
|
|
767
774
|
] });
|
|
768
775
|
}
|
|
769
776
|
function Jt({ className: e }) {
|
|
770
777
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
778
|
+
/* @__PURE__ */ s("path", { d: "M21 7v6h-6" }),
|
|
779
|
+
/* @__PURE__ */ s("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
|
|
773
780
|
] });
|
|
774
781
|
}
|
|
775
782
|
function Qt({ className: e }) {
|
|
776
783
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ s("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
|
|
785
|
+
/* @__PURE__ */ s("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
786
|
+
/* @__PURE__ */ s("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
|
|
787
|
+
/* @__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
788
|
] });
|
|
782
789
|
}
|
|
783
790
|
function en({ className: e }) {
|
|
784
791
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ s("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
|
|
793
|
+
/* @__PURE__ */ s("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
794
|
+
/* @__PURE__ */ s("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
|
|
795
|
+
/* @__PURE__ */ s("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
|
|
796
|
+
/* @__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
797
|
] });
|
|
791
798
|
}
|
|
792
799
|
function tn({ className: e }) {
|
|
793
800
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ s("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
|
|
802
|
+
/* @__PURE__ */ s("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
|
|
803
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
|
|
804
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
|
|
798
805
|
] });
|
|
799
806
|
}
|
|
800
807
|
function Hn({ className: e }) {
|
|
801
808
|
return /* @__PURE__ */ W(H, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
810
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "6" }),
|
|
811
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "2" })
|
|
805
812
|
] });
|
|
806
813
|
}
|
|
807
814
|
function nn({ className: e }) {
|
|
@@ -810,9 +817,9 @@ function nn({ className: e }) {
|
|
|
810
817
|
{
|
|
811
818
|
className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
|
|
812
819
|
children: [
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
821
|
+
/* @__PURE__ */ s("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
822
|
+
/* @__PURE__ */ s("path", { d: "M12 17h.01" })
|
|
816
823
|
]
|
|
817
824
|
}
|
|
818
825
|
);
|
|
@@ -861,7 +868,7 @@ const G = (e, ...n) => [
|
|
|
861
868
|
value: r,
|
|
862
869
|
onChange: o,
|
|
863
870
|
onKeyDown: i,
|
|
864
|
-
placeholder:
|
|
871
|
+
placeholder: a = ""
|
|
865
872
|
}) => {
|
|
866
873
|
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
874
|
block w-full rounded-md px-3 py-1.5 text-base
|
|
@@ -871,8 +878,8 @@ const G = (e, ...n) => [
|
|
|
871
878
|
focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
|
|
872
879
|
`)} ${d}`;
|
|
873
880
|
return /* @__PURE__ */ W("div", { className: b, children: [
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ s("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
|
|
882
|
+
/* @__PURE__ */ s(
|
|
876
883
|
"input",
|
|
877
884
|
{
|
|
878
885
|
id: e,
|
|
@@ -880,7 +887,7 @@ const G = (e, ...n) => [
|
|
|
880
887
|
value: r,
|
|
881
888
|
onChange: o,
|
|
882
889
|
onKeyDown: (u) => i && i(u),
|
|
883
|
-
placeholder:
|
|
890
|
+
placeholder: a,
|
|
884
891
|
className: h,
|
|
885
892
|
"aria-label": e
|
|
886
893
|
}
|
|
@@ -903,13 +910,13 @@ function J(e) {
|
|
|
903
910
|
isIconButton: r,
|
|
904
911
|
className: o,
|
|
905
912
|
buttonType: i,
|
|
906
|
-
category:
|
|
913
|
+
category: a,
|
|
907
914
|
px: d,
|
|
908
915
|
py: b,
|
|
909
916
|
children: g,
|
|
910
917
|
...h
|
|
911
918
|
} = e, u = () => {
|
|
912
|
-
const y = e.isIconButton || !1, D = e.category || "primary",
|
|
919
|
+
const y = e.isIconButton || !1, D = e.category || "primary", m = e.buttonType || "normal", v = e.disabled || !1, w = e.className || "", N = e.font || "semibold", C = Number((e.border || 0) > 0 ? e.border : 0);
|
|
913
920
|
let S = (e.borderColor || "").trim();
|
|
914
921
|
S = S.length > 0 ? S : "";
|
|
915
922
|
const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), E = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), M = e.justifyCss || "justify-center";
|
|
@@ -927,38 +934,38 @@ function J(e) {
|
|
|
927
934
|
`font-${N}`
|
|
928
935
|
];
|
|
929
936
|
if (v)
|
|
930
|
-
|
|
937
|
+
m === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
|
|
931
938
|
else {
|
|
932
939
|
$.push("cursor-pointer");
|
|
933
940
|
let I = "";
|
|
934
|
-
Se.has(
|
|
941
|
+
Se.has(m) ? I = `${Se.get(m)}` : I = `${Se.get("normal")}`, C < 1 && (I = I.replace("border-[category]", ""));
|
|
935
942
|
const T = I.replace(/\[category\]/g, D).trim();
|
|
936
943
|
$.push(T);
|
|
937
944
|
}
|
|
938
945
|
return C > 0 ? ($.push(`border-[${C}px]`), $.push(`border-${S}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${S} group-hover:border-${S}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${E}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(M), $.join(" ").trim();
|
|
939
|
-
},
|
|
946
|
+
}, p = () => {
|
|
940
947
|
const y = e.px || 0.7, D = e.py || 0.25;
|
|
941
948
|
return {
|
|
942
949
|
padding: r ? 0 : `${D}rem ${y}rem `
|
|
943
950
|
};
|
|
944
951
|
};
|
|
945
|
-
return /* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: p(), ...h, children: g });
|
|
946
953
|
}
|
|
947
954
|
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
955
|
function on(e) {
|
|
949
|
-
const { children: n, testId: t, classNames: r, direction: o, ...i } = e,
|
|
950
|
-
return /* @__PURE__ */
|
|
956
|
+
const { children: n, testId: t, classNames: r, direction: o, ...i } = e, a = rn(e);
|
|
957
|
+
return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...i, children: n });
|
|
951
958
|
}
|
|
952
959
|
const Gn = ce(
|
|
953
960
|
(e, n) => {
|
|
954
|
-
const { classNames: t, innerClass: r, ...o } = e, i = G(t || "", "w-full"),
|
|
961
|
+
const { classNames: t, innerClass: r, ...o } = e, i = G(t || "", "w-full"), a = G(
|
|
955
962
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
956
963
|
rounded-md border`,
|
|
957
964
|
r || ""
|
|
958
965
|
);
|
|
959
|
-
return /* @__PURE__ */
|
|
966
|
+
return /* @__PURE__ */ s(on, { direction: "row", classNames: i, ...o, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
|
|
960
967
|
}
|
|
961
|
-
), Zn = ce((e, n) => /* @__PURE__ */
|
|
968
|
+
), Zn = ce((e, n) => /* @__PURE__ */ s(
|
|
962
969
|
"div",
|
|
963
970
|
{
|
|
964
971
|
"data-testid": e.testId || "not-set",
|
|
@@ -970,7 +977,7 @@ const Gn = ce(
|
|
|
970
977
|
children: e.children
|
|
971
978
|
}
|
|
972
979
|
)), Jn = ce(
|
|
973
|
-
(e, n) => /* @__PURE__ */
|
|
980
|
+
(e, n) => /* @__PURE__ */ s(
|
|
974
981
|
"div",
|
|
975
982
|
{
|
|
976
983
|
"data-testid": e.testId || "not-set",
|
|
@@ -978,7 +985,7 @@ const Gn = ce(
|
|
|
978
985
|
children: e.children
|
|
979
986
|
}
|
|
980
987
|
)
|
|
981
|
-
), Qn = ce((e, n) => /* @__PURE__ */
|
|
988
|
+
), Qn = ce((e, n) => /* @__PURE__ */ s(
|
|
982
989
|
"div",
|
|
983
990
|
{
|
|
984
991
|
"data-testid": e.testId || "not-set",
|
|
@@ -998,7 +1005,7 @@ var Ve;
|
|
|
998
1005
|
function sn() {
|
|
999
1006
|
if (Ve) return U;
|
|
1000
1007
|
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,
|
|
1008
|
+
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, 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, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = 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
1009
|
function C(c) {
|
|
1003
1010
|
if (typeof c == "object" && c !== null) {
|
|
1004
1011
|
var E = c.$$typeof;
|
|
@@ -1018,7 +1025,7 @@ function sn() {
|
|
|
1018
1025
|
case h:
|
|
1019
1026
|
case D:
|
|
1020
1027
|
case y:
|
|
1021
|
-
case
|
|
1028
|
+
case a:
|
|
1022
1029
|
return c;
|
|
1023
1030
|
default:
|
|
1024
1031
|
return E;
|
|
@@ -1032,12 +1039,12 @@ function sn() {
|
|
|
1032
1039
|
function S(c) {
|
|
1033
1040
|
return C(c) === g;
|
|
1034
1041
|
}
|
|
1035
|
-
return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider =
|
|
1042
|
+
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 = i, U.StrictMode = o, U.Suspense = u, U.isAsyncMode = function(c) {
|
|
1036
1043
|
return S(c) || C(c) === b;
|
|
1037
1044
|
}, U.isConcurrentMode = S, U.isContextConsumer = function(c) {
|
|
1038
1045
|
return C(c) === d;
|
|
1039
1046
|
}, U.isContextProvider = function(c) {
|
|
1040
|
-
return C(c) ===
|
|
1047
|
+
return C(c) === a;
|
|
1041
1048
|
}, U.isElement = function(c) {
|
|
1042
1049
|
return typeof c == "object" && c !== null && c.$$typeof === n;
|
|
1043
1050
|
}, U.isForwardRef = function(c) {
|
|
@@ -1057,17 +1064,17 @@ function sn() {
|
|
|
1057
1064
|
}, U.isSuspense = function(c) {
|
|
1058
1065
|
return C(c) === u;
|
|
1059
1066
|
}, U.isValidElementType = function(c) {
|
|
1060
|
-
return typeof c == "string" || typeof c == "function" || c === r || c === g || c === i || c === o || c === u || c ===
|
|
1067
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === g || c === i || c === o || c === u || c === p || 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 === m);
|
|
1061
1068
|
}, U.typeOf = C, U;
|
|
1062
1069
|
}
|
|
1063
1070
|
var q = {};
|
|
1064
1071
|
var Ue;
|
|
1065
1072
|
function ln() {
|
|
1066
1073
|
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,
|
|
1074
|
+
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, 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, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = 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
1075
|
function C(_) {
|
|
1069
1076
|
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 || _ ===
|
|
1077
|
+
_ === r || _ === g || _ === i || _ === o || _ === u || _ === p || typeof _ == "object" && _ !== null && (_.$$typeof === D || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === w || _.$$typeof === N || _.$$typeof === m);
|
|
1071
1078
|
}
|
|
1072
1079
|
function S(_) {
|
|
1073
1080
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -1090,7 +1097,7 @@ function ln() {
|
|
|
1090
1097
|
case h:
|
|
1091
1098
|
case D:
|
|
1092
1099
|
case y:
|
|
1093
|
-
case
|
|
1100
|
+
case a:
|
|
1094
1101
|
return je;
|
|
1095
1102
|
default:
|
|
1096
1103
|
return te;
|
|
@@ -1101,7 +1108,7 @@ function ln() {
|
|
|
1101
1108
|
}
|
|
1102
1109
|
}
|
|
1103
1110
|
}
|
|
1104
|
-
var c = b, E = g, l = d, f =
|
|
1111
|
+
var c = b, E = g, l = d, f = a, M = n, $ = h, I = r, T = D, z = y, X = t, Q = i, K = o, ee = u, se = !1;
|
|
1105
1112
|
function de(_) {
|
|
1106
1113
|
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
1114
|
}
|
|
@@ -1112,7 +1119,7 @@ function ln() {
|
|
|
1112
1119
|
return S(_) === d;
|
|
1113
1120
|
}
|
|
1114
1121
|
function A(_) {
|
|
1115
|
-
return S(_) ===
|
|
1122
|
+
return S(_) === a;
|
|
1116
1123
|
}
|
|
1117
1124
|
function k(_) {
|
|
1118
1125
|
return typeof _ == "object" && _ !== null && _.$$typeof === n;
|
|
@@ -1120,7 +1127,7 @@ function ln() {
|
|
|
1120
1127
|
function O(_) {
|
|
1121
1128
|
return S(_) === h;
|
|
1122
1129
|
}
|
|
1123
|
-
function
|
|
1130
|
+
function F(_) {
|
|
1124
1131
|
return S(_) === r;
|
|
1125
1132
|
}
|
|
1126
1133
|
function R(_) {
|
|
@@ -1129,7 +1136,7 @@ function ln() {
|
|
|
1129
1136
|
function j(_) {
|
|
1130
1137
|
return S(_) === y;
|
|
1131
1138
|
}
|
|
1132
|
-
function
|
|
1139
|
+
function L(_) {
|
|
1133
1140
|
return S(_) === t;
|
|
1134
1141
|
}
|
|
1135
1142
|
function Y(_) {
|
|
@@ -1141,7 +1148,7 @@ function ln() {
|
|
|
1141
1148
|
function Z(_) {
|
|
1142
1149
|
return S(_) === u;
|
|
1143
1150
|
}
|
|
1144
|
-
q.AsyncMode = c, q.ConcurrentMode = E, q.ContextConsumer = l, q.ContextProvider = f, q.Element = M, q.ForwardRef = $, q.Fragment = I, q.Lazy = T, q.Memo = z, q.Portal = X, q.Profiler = Q, q.StrictMode = K, q.Suspense = ee, q.isAsyncMode = de, q.isConcurrentMode = x, q.isContextConsumer = P, q.isContextProvider = A, q.isElement = k, q.isForwardRef = O, q.isFragment =
|
|
1151
|
+
q.AsyncMode = c, q.ConcurrentMode = E, q.ContextConsumer = l, q.ContextProvider = f, q.Element = M, q.ForwardRef = $, q.Fragment = I, q.Lazy = T, q.Memo = z, q.Portal = X, q.Profiler = Q, q.StrictMode = K, q.Suspense = ee, q.isAsyncMode = de, q.isConcurrentMode = x, q.isContextConsumer = P, q.isContextProvider = A, q.isElement = k, q.isForwardRef = O, q.isFragment = F, q.isLazy = R, q.isMemo = j, q.isPortal = L, q.isProfiler = Y, q.isStrictMode = V, q.isSuspense = Z, q.isValidElementType = C, q.typeOf = S;
|
|
1145
1152
|
})()), q;
|
|
1146
1153
|
}
|
|
1147
1154
|
var qe;
|
|
@@ -1165,10 +1172,10 @@ function cn() {
|
|
|
1165
1172
|
var i = new String("abc");
|
|
1166
1173
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
1167
1174
|
return !1;
|
|
1168
|
-
for (var
|
|
1169
|
-
|
|
1170
|
-
var b = Object.getOwnPropertyNames(
|
|
1171
|
-
return
|
|
1175
|
+
for (var a = {}, d = 0; d < 10; d++)
|
|
1176
|
+
a["_" + String.fromCharCode(d)] = d;
|
|
1177
|
+
var b = Object.getOwnPropertyNames(a).map(function(h) {
|
|
1178
|
+
return a[h];
|
|
1172
1179
|
});
|
|
1173
1180
|
if (b.join("") !== "0123456789")
|
|
1174
1181
|
return !1;
|
|
@@ -1180,15 +1187,15 @@ function cn() {
|
|
|
1180
1187
|
return !1;
|
|
1181
1188
|
}
|
|
1182
1189
|
}
|
|
1183
|
-
return Ne = o() ? Object.assign : function(i,
|
|
1190
|
+
return Ne = o() ? Object.assign : function(i, a) {
|
|
1184
1191
|
for (var d, b = r(i), g, h = 1; h < arguments.length; h++) {
|
|
1185
1192
|
d = Object(arguments[h]);
|
|
1186
1193
|
for (var u in d)
|
|
1187
1194
|
n.call(d, u) && (b[u] = d[u]);
|
|
1188
1195
|
if (e) {
|
|
1189
1196
|
g = e(d);
|
|
1190
|
-
for (var
|
|
1191
|
-
t.call(d, g[
|
|
1197
|
+
for (var p = 0; p < g.length; p++)
|
|
1198
|
+
t.call(d, g[p]) && (b[g[p]] = d[g[p]]);
|
|
1192
1199
|
}
|
|
1193
1200
|
}
|
|
1194
1201
|
return b;
|
|
@@ -1214,27 +1221,27 @@ function dn() {
|
|
|
1214
1221
|
if (process.env.NODE_ENV !== "production") {
|
|
1215
1222
|
var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ bt();
|
|
1216
1223
|
e = function(i) {
|
|
1217
|
-
var
|
|
1218
|
-
typeof console < "u" && console.error(
|
|
1224
|
+
var a = "Warning: " + i;
|
|
1225
|
+
typeof console < "u" && console.error(a);
|
|
1219
1226
|
try {
|
|
1220
|
-
throw new Error(
|
|
1227
|
+
throw new Error(a);
|
|
1221
1228
|
} catch {
|
|
1222
1229
|
}
|
|
1223
1230
|
};
|
|
1224
1231
|
}
|
|
1225
|
-
function o(i,
|
|
1232
|
+
function o(i, a, d, b, g) {
|
|
1226
1233
|
if (process.env.NODE_ENV !== "production") {
|
|
1227
1234
|
for (var h in i)
|
|
1228
1235
|
if (r(i, h)) {
|
|
1229
1236
|
var u;
|
|
1230
1237
|
try {
|
|
1231
1238
|
if (typeof i[h] != "function") {
|
|
1232
|
-
var
|
|
1239
|
+
var p = Error(
|
|
1233
1240
|
(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`."
|
|
1234
1241
|
);
|
|
1235
|
-
throw
|
|
1242
|
+
throw p.name = "Invariant Violation", p;
|
|
1236
1243
|
}
|
|
1237
|
-
u = i[h](
|
|
1244
|
+
u = i[h](a, h, b, d, null, n);
|
|
1238
1245
|
} catch (D) {
|
|
1239
1246
|
u = D;
|
|
1240
1247
|
}
|
|
@@ -1268,7 +1275,7 @@ function un() {
|
|
|
1268
1275
|
} catch {
|
|
1269
1276
|
}
|
|
1270
1277
|
});
|
|
1271
|
-
function
|
|
1278
|
+
function a() {
|
|
1272
1279
|
return null;
|
|
1273
1280
|
}
|
|
1274
1281
|
return Me = function(d, b) {
|
|
@@ -1278,7 +1285,7 @@ function un() {
|
|
|
1278
1285
|
if (typeof P == "function")
|
|
1279
1286
|
return P;
|
|
1280
1287
|
}
|
|
1281
|
-
var
|
|
1288
|
+
var p = "<<anonymous>>", y = {
|
|
1282
1289
|
array: w("array"),
|
|
1283
1290
|
bigint: w("bigint"),
|
|
1284
1291
|
bool: w("boolean"),
|
|
@@ -1302,40 +1309,40 @@ function un() {
|
|
|
1302
1309
|
function D(x, P) {
|
|
1303
1310
|
return x === P ? x !== 0 || 1 / x === 1 / P : x !== x && P !== P;
|
|
1304
1311
|
}
|
|
1305
|
-
function
|
|
1312
|
+
function m(x, P) {
|
|
1306
1313
|
this.message = x, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
|
|
1307
1314
|
}
|
|
1308
|
-
|
|
1315
|
+
m.prototype = Error.prototype;
|
|
1309
1316
|
function v(x) {
|
|
1310
1317
|
if (process.env.NODE_ENV !== "production")
|
|
1311
1318
|
var P = {}, A = 0;
|
|
1312
|
-
function k(
|
|
1313
|
-
if (
|
|
1319
|
+
function k(F, R, j, L, Y, V, Z) {
|
|
1320
|
+
if (L = L || p, V = V || j, Z !== t) {
|
|
1314
1321
|
if (b) {
|
|
1315
1322
|
var _ = new Error(
|
|
1316
1323
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1317
1324
|
);
|
|
1318
1325
|
throw _.name = "Invariant Violation", _;
|
|
1319
1326
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1320
|
-
var te =
|
|
1327
|
+
var te = L + ":" + j;
|
|
1321
1328
|
!P[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1322
1329
|
A < 3 && (i(
|
|
1323
|
-
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" +
|
|
1330
|
+
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + L + "`. 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
1331
|
), P[te] = !0, A++);
|
|
1325
1332
|
}
|
|
1326
1333
|
}
|
|
1327
|
-
return R[j] == null ?
|
|
1334
|
+
return R[j] == null ? F ? R[j] === null ? new m("The " + Y + " `" + V + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new m("The " + Y + " `" + V + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(R, j, L, Y, V);
|
|
1328
1335
|
}
|
|
1329
1336
|
var O = k.bind(null, !1);
|
|
1330
1337
|
return O.isRequired = k.bind(null, !0), O;
|
|
1331
1338
|
}
|
|
1332
1339
|
function w(x) {
|
|
1333
|
-
function P(A, k, O,
|
|
1334
|
-
var
|
|
1340
|
+
function P(A, k, O, F, R, j) {
|
|
1341
|
+
var L = A[k], Y = K(L);
|
|
1335
1342
|
if (Y !== x) {
|
|
1336
|
-
var V = ee(
|
|
1337
|
-
return new
|
|
1338
|
-
"Invalid " +
|
|
1343
|
+
var V = ee(L);
|
|
1344
|
+
return new m(
|
|
1345
|
+
"Invalid " + F + " `" + R + "` of type " + ("`" + V + "` supplied to `" + O + "`, expected ") + ("`" + x + "`."),
|
|
1339
1346
|
{ expectedType: x }
|
|
1340
1347
|
);
|
|
1341
1348
|
}
|
|
@@ -1344,19 +1351,19 @@ function un() {
|
|
|
1344
1351
|
return v(P);
|
|
1345
1352
|
}
|
|
1346
1353
|
function N() {
|
|
1347
|
-
return v(
|
|
1354
|
+
return v(a);
|
|
1348
1355
|
}
|
|
1349
1356
|
function C(x) {
|
|
1350
|
-
function P(A, k, O,
|
|
1357
|
+
function P(A, k, O, F, R) {
|
|
1351
1358
|
if (typeof x != "function")
|
|
1352
|
-
return new
|
|
1359
|
+
return new m("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
1353
1360
|
var j = A[k];
|
|
1354
1361
|
if (!Array.isArray(j)) {
|
|
1355
|
-
var
|
|
1356
|
-
return new
|
|
1362
|
+
var L = K(j);
|
|
1363
|
+
return new m("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected an array."));
|
|
1357
1364
|
}
|
|
1358
1365
|
for (var Y = 0; Y < j.length; Y++) {
|
|
1359
|
-
var V = x(j, Y, O,
|
|
1366
|
+
var V = x(j, Y, O, F, R + "[" + Y + "]", t);
|
|
1360
1367
|
if (V instanceof Error)
|
|
1361
1368
|
return V;
|
|
1362
1369
|
}
|
|
@@ -1365,32 +1372,32 @@ function un() {
|
|
|
1365
1372
|
return v(P);
|
|
1366
1373
|
}
|
|
1367
1374
|
function S() {
|
|
1368
|
-
function x(P, A, k, O,
|
|
1375
|
+
function x(P, A, k, O, F) {
|
|
1369
1376
|
var R = P[A];
|
|
1370
1377
|
if (!d(R)) {
|
|
1371
1378
|
var j = K(R);
|
|
1372
|
-
return new
|
|
1379
|
+
return new m("Invalid " + O + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
1373
1380
|
}
|
|
1374
1381
|
return null;
|
|
1375
1382
|
}
|
|
1376
1383
|
return v(x);
|
|
1377
1384
|
}
|
|
1378
1385
|
function c() {
|
|
1379
|
-
function x(P, A, k, O,
|
|
1386
|
+
function x(P, A, k, O, F) {
|
|
1380
1387
|
var R = P[A];
|
|
1381
1388
|
if (!e.isValidElementType(R)) {
|
|
1382
1389
|
var j = K(R);
|
|
1383
|
-
return new
|
|
1390
|
+
return new m("Invalid " + O + " `" + F + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
1384
1391
|
}
|
|
1385
1392
|
return null;
|
|
1386
1393
|
}
|
|
1387
1394
|
return v(x);
|
|
1388
1395
|
}
|
|
1389
1396
|
function E(x) {
|
|
1390
|
-
function P(A, k, O,
|
|
1397
|
+
function P(A, k, O, F, R) {
|
|
1391
1398
|
if (!(A[k] instanceof x)) {
|
|
1392
|
-
var j = x.name ||
|
|
1393
|
-
return new
|
|
1399
|
+
var j = x.name || p, L = de(A[k]);
|
|
1400
|
+
return new m("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected ") + ("instance of `" + j + "`."));
|
|
1394
1401
|
}
|
|
1395
1402
|
return null;
|
|
1396
1403
|
}
|
|
@@ -1400,29 +1407,29 @@ function un() {
|
|
|
1400
1407
|
if (!Array.isArray(x))
|
|
1401
1408
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1402
1409
|
"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.")),
|
|
1404
|
-
function P(A, k, O,
|
|
1405
|
-
for (var j = A[k],
|
|
1406
|
-
if (D(j, x[
|
|
1410
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1411
|
+
function P(A, k, O, F, R) {
|
|
1412
|
+
for (var j = A[k], L = 0; L < x.length; L++)
|
|
1413
|
+
if (D(j, x[L]))
|
|
1407
1414
|
return null;
|
|
1408
1415
|
var Y = JSON.stringify(x, function(Z, _) {
|
|
1409
1416
|
var te = ee(_);
|
|
1410
1417
|
return te === "symbol" ? String(_) : _;
|
|
1411
1418
|
});
|
|
1412
|
-
return new
|
|
1419
|
+
return new m("Invalid " + F + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + O + "`, expected one of " + Y + "."));
|
|
1413
1420
|
}
|
|
1414
1421
|
return v(P);
|
|
1415
1422
|
}
|
|
1416
1423
|
function f(x) {
|
|
1417
|
-
function P(A, k, O,
|
|
1424
|
+
function P(A, k, O, F, R) {
|
|
1418
1425
|
if (typeof x != "function")
|
|
1419
|
-
return new
|
|
1420
|
-
var j = A[k],
|
|
1421
|
-
if (
|
|
1422
|
-
return new
|
|
1426
|
+
return new m("Property `" + R + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
1427
|
+
var j = A[k], L = K(j);
|
|
1428
|
+
if (L !== "object")
|
|
1429
|
+
return new m("Invalid " + F + " `" + R + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected an object."));
|
|
1423
1430
|
for (var Y in j)
|
|
1424
1431
|
if (r(j, Y)) {
|
|
1425
|
-
var V = x(j, Y, O,
|
|
1432
|
+
var V = x(j, Y, O, F, R + "." + Y, t);
|
|
1426
1433
|
if (V instanceof Error)
|
|
1427
1434
|
return V;
|
|
1428
1435
|
}
|
|
@@ -1432,47 +1439,47 @@ function un() {
|
|
|
1432
1439
|
}
|
|
1433
1440
|
function M(x) {
|
|
1434
1441
|
if (!Array.isArray(x))
|
|
1435
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
1442
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1436
1443
|
for (var P = 0; P < x.length; P++) {
|
|
1437
1444
|
var A = x[P];
|
|
1438
1445
|
if (typeof A != "function")
|
|
1439
1446
|
return i(
|
|
1440
1447
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(A) + " at index " + P + "."
|
|
1441
|
-
),
|
|
1448
|
+
), a;
|
|
1442
1449
|
}
|
|
1443
|
-
function k(O,
|
|
1450
|
+
function k(O, F, R, j, L) {
|
|
1444
1451
|
for (var Y = [], V = 0; V < x.length; V++) {
|
|
1445
|
-
var Z = x[V], _ = Z(O,
|
|
1452
|
+
var Z = x[V], _ = Z(O, F, R, j, L, t);
|
|
1446
1453
|
if (_ == null)
|
|
1447
1454
|
return null;
|
|
1448
1455
|
_.data && r(_.data, "expectedType") && Y.push(_.data.expectedType);
|
|
1449
1456
|
}
|
|
1450
1457
|
var te = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
1451
|
-
return new
|
|
1458
|
+
return new m("Invalid " + j + " `" + L + "` supplied to " + ("`" + R + "`" + te + "."));
|
|
1452
1459
|
}
|
|
1453
1460
|
return v(k);
|
|
1454
1461
|
}
|
|
1455
1462
|
function $() {
|
|
1456
|
-
function x(P, A, k, O,
|
|
1457
|
-
return X(P[A]) ? null : new
|
|
1463
|
+
function x(P, A, k, O, F) {
|
|
1464
|
+
return X(P[A]) ? null : new m("Invalid " + O + " `" + F + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
1458
1465
|
}
|
|
1459
1466
|
return v(x);
|
|
1460
1467
|
}
|
|
1461
1468
|
function I(x, P, A, k, O) {
|
|
1462
|
-
return new
|
|
1469
|
+
return new m(
|
|
1463
1470
|
(x || "React class") + ": " + P + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
1464
1471
|
);
|
|
1465
1472
|
}
|
|
1466
1473
|
function T(x) {
|
|
1467
|
-
function P(A, k, O,
|
|
1468
|
-
var j = A[k],
|
|
1469
|
-
if (
|
|
1470
|
-
return new
|
|
1474
|
+
function P(A, k, O, F, R) {
|
|
1475
|
+
var j = A[k], L = K(j);
|
|
1476
|
+
if (L !== "object")
|
|
1477
|
+
return new m("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1471
1478
|
for (var Y in x) {
|
|
1472
1479
|
var V = x[Y];
|
|
1473
1480
|
if (typeof V != "function")
|
|
1474
|
-
return I(O,
|
|
1475
|
-
var Z = V(j, Y, O,
|
|
1481
|
+
return I(O, F, R, Y, ee(V));
|
|
1482
|
+
var Z = V(j, Y, O, F, R + "." + Y, t);
|
|
1476
1483
|
if (Z)
|
|
1477
1484
|
return Z;
|
|
1478
1485
|
}
|
|
@@ -1481,21 +1488,21 @@ function un() {
|
|
|
1481
1488
|
return v(P);
|
|
1482
1489
|
}
|
|
1483
1490
|
function z(x) {
|
|
1484
|
-
function P(A, k, O,
|
|
1485
|
-
var j = A[k],
|
|
1486
|
-
if (
|
|
1487
|
-
return new
|
|
1491
|
+
function P(A, k, O, F, R) {
|
|
1492
|
+
var j = A[k], L = K(j);
|
|
1493
|
+
if (L !== "object")
|
|
1494
|
+
return new m("Invalid " + F + " `" + R + "` of type `" + L + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1488
1495
|
var Y = n({}, A[k], x);
|
|
1489
1496
|
for (var V in Y) {
|
|
1490
1497
|
var Z = x[V];
|
|
1491
1498
|
if (r(x, V) && typeof Z != "function")
|
|
1492
|
-
return I(O,
|
|
1499
|
+
return I(O, F, R, V, ee(Z));
|
|
1493
1500
|
if (!Z)
|
|
1494
|
-
return new
|
|
1495
|
-
"Invalid " +
|
|
1501
|
+
return new m(
|
|
1502
|
+
"Invalid " + F + " `" + R + "` key `" + V + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
|
|
1496
1503
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1497
1504
|
);
|
|
1498
|
-
var _ = Z(j, V, O,
|
|
1505
|
+
var _ = Z(j, V, O, F, R + "." + V, t);
|
|
1499
1506
|
if (_)
|
|
1500
1507
|
return _;
|
|
1501
1508
|
}
|
|
@@ -1570,7 +1577,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1570
1577
|
}
|
|
1571
1578
|
}
|
|
1572
1579
|
function de(x) {
|
|
1573
|
-
return !x.constructor || !x.constructor.name ?
|
|
1580
|
+
return !x.constructor || !x.constructor.name ? p : x.constructor.name;
|
|
1574
1581
|
}
|
|
1575
1582
|
return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
|
|
1576
1583
|
}, Me;
|
|
@@ -1585,12 +1592,12 @@ function fn() {
|
|
|
1585
1592
|
function t() {
|
|
1586
1593
|
}
|
|
1587
1594
|
return t.resetWarningCache = n, Pe = function() {
|
|
1588
|
-
function r(
|
|
1595
|
+
function r(a, d, b, g, h, u) {
|
|
1589
1596
|
if (u !== e) {
|
|
1590
|
-
var
|
|
1597
|
+
var p = new Error(
|
|
1591
1598
|
"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"
|
|
1592
1599
|
);
|
|
1593
|
-
throw
|
|
1600
|
+
throw p.name = "Invariant Violation", p;
|
|
1594
1601
|
}
|
|
1595
1602
|
}
|
|
1596
1603
|
r.isRequired = r;
|
|
@@ -1641,13 +1648,13 @@ function hn() {
|
|
|
1641
1648
|
var r, o, i = "";
|
|
1642
1649
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
1643
1650
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1644
|
-
var
|
|
1645
|
-
for (r = 0; r <
|
|
1651
|
+
var a = t.length;
|
|
1652
|
+
for (r = 0; r < a; r++) t[r] && (o = e(t[r])) && (i && (i += " "), i += o);
|
|
1646
1653
|
} else for (o in t) t[o] && (i && (i += " "), i += o);
|
|
1647
1654
|
return i;
|
|
1648
1655
|
}
|
|
1649
1656
|
function n() {
|
|
1650
|
-
for (var t, r, o = 0, i = "",
|
|
1657
|
+
for (var t, r, o = 0, i = "", a = arguments.length; o < a; o++) (t = arguments[o]) && (r = e(t)) && (i && (i += " "), i += r);
|
|
1651
1658
|
return i;
|
|
1652
1659
|
}
|
|
1653
1660
|
return be.exports = n, be.exports.clsx = n, be.exports;
|
|
@@ -1658,9 +1665,9 @@ function we() {
|
|
|
1658
1665
|
Je = 1, Object.defineProperty(ie, "__esModule", {
|
|
1659
1666
|
value: !0
|
|
1660
1667
|
}), ie.dontSetMe = o, ie.findInArray = e, ie.int = r, ie.isFunction = n, ie.isNum = t;
|
|
1661
|
-
function e(i,
|
|
1668
|
+
function e(i, a) {
|
|
1662
1669
|
for (let d = 0, b = i.length; d < b; d++)
|
|
1663
|
-
if (
|
|
1670
|
+
if (a.apply(a, [i[d], d, i])) return i[d];
|
|
1664
1671
|
}
|
|
1665
1672
|
function n(i) {
|
|
1666
1673
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Function]";
|
|
@@ -1671,9 +1678,9 @@ function we() {
|
|
|
1671
1678
|
function r(i) {
|
|
1672
1679
|
return parseInt(i, 10);
|
|
1673
1680
|
}
|
|
1674
|
-
function o(i,
|
|
1675
|
-
if (i[
|
|
1676
|
-
return new Error(`Invalid prop ${
|
|
1681
|
+
function o(i, a, d) {
|
|
1682
|
+
if (i[a])
|
|
1683
|
+
return new Error(`Invalid prop ${a} passed to ${d} - do not set this, set it on the child.`);
|
|
1677
1684
|
}
|
|
1678
1685
|
return ie;
|
|
1679
1686
|
}
|
|
@@ -1687,23 +1694,23 @@ function gn() {
|
|
|
1687
1694
|
function n() {
|
|
1688
1695
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
1689
1696
|
if (typeof window > "u") return "";
|
|
1690
|
-
const
|
|
1691
|
-
if (!
|
|
1697
|
+
const a = window.document?.documentElement?.style;
|
|
1698
|
+
if (!a || i in a) return "";
|
|
1692
1699
|
for (let d = 0; d < e.length; d++)
|
|
1693
|
-
if (t(i, e[d]) in
|
|
1700
|
+
if (t(i, e[d]) in a) return e[d];
|
|
1694
1701
|
return "";
|
|
1695
1702
|
}
|
|
1696
|
-
function t(i,
|
|
1697
|
-
return
|
|
1703
|
+
function t(i, a) {
|
|
1704
|
+
return a ? `${a}${o(i)}` : i;
|
|
1698
1705
|
}
|
|
1699
|
-
function r(i,
|
|
1700
|
-
return
|
|
1706
|
+
function r(i, a) {
|
|
1707
|
+
return a ? `-${a.toLowerCase()}-${i}` : i;
|
|
1701
1708
|
}
|
|
1702
1709
|
function o(i) {
|
|
1703
|
-
let
|
|
1710
|
+
let a = "", d = !0;
|
|
1704
1711
|
for (let b = 0; b < i.length; b++)
|
|
1705
|
-
d ? (
|
|
1706
|
-
return
|
|
1712
|
+
d ? (a += i[b].toUpperCase(), d = !1) : i[b] === "-" ? d = !0 : a += i[b];
|
|
1713
|
+
return a;
|
|
1707
1714
|
}
|
|
1708
1715
|
return oe.default = n(), oe;
|
|
1709
1716
|
}
|
|
@@ -1712,7 +1719,7 @@ function Re() {
|
|
|
1712
1719
|
if (et) return B;
|
|
1713
1720
|
et = 1, Object.defineProperty(B, "__esModule", {
|
|
1714
1721
|
value: !0
|
|
1715
|
-
}), B.addClassName = c, B.addEvent =
|
|
1722
|
+
}), B.addClassName = c, B.addEvent = a, B.addUserSelectStyles = N, B.createCSSTransform = y, B.createSVGTransform = D, B.getTouch = v, B.getTouchIdentifier = w, B.getTranslation = m, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = o, B.matchesSelectorAndParentsTo = i, B.offsetXYFromParent = p, B.outerHeight = b, B.outerWidth = g, B.removeClassName = E, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = C;
|
|
1716
1723
|
var e = we(), n = t(gn());
|
|
1717
1724
|
function t(l, f) {
|
|
1718
1725
|
if (typeof WeakMap == "function") var M = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
|
|
@@ -1743,7 +1750,7 @@ function Re() {
|
|
|
1743
1750
|
} while ($);
|
|
1744
1751
|
return !1;
|
|
1745
1752
|
}
|
|
1746
|
-
function
|
|
1753
|
+
function a(l, f, M, $) {
|
|
1747
1754
|
if (!l) return;
|
|
1748
1755
|
const I = {
|
|
1749
1756
|
capture: !0,
|
|
@@ -1779,7 +1786,7 @@ function Re() {
|
|
|
1779
1786
|
const M = l.ownerDocument.defaultView.getComputedStyle(l);
|
|
1780
1787
|
return f -= (0, e.int)(M.paddingLeft), f -= (0, e.int)(M.paddingRight), f;
|
|
1781
1788
|
}
|
|
1782
|
-
function
|
|
1789
|
+
function p(l, f, M) {
|
|
1783
1790
|
const I = f === f.ownerDocument.body ? {
|
|
1784
1791
|
left: 0,
|
|
1785
1792
|
top: 0
|
|
@@ -1790,15 +1797,15 @@ function Re() {
|
|
|
1790
1797
|
};
|
|
1791
1798
|
}
|
|
1792
1799
|
function y(l, f) {
|
|
1793
|
-
const M =
|
|
1800
|
+
const M = m(l, f, "px");
|
|
1794
1801
|
return {
|
|
1795
1802
|
[(0, n.browserPrefixToKey)("transform", n.default)]: M
|
|
1796
1803
|
};
|
|
1797
1804
|
}
|
|
1798
1805
|
function D(l, f) {
|
|
1799
|
-
return
|
|
1806
|
+
return m(l, f, "");
|
|
1800
1807
|
}
|
|
1801
|
-
function
|
|
1808
|
+
function m(l, f, M) {
|
|
1802
1809
|
let {
|
|
1803
1810
|
x: $,
|
|
1804
1811
|
y: I
|
|
@@ -1853,35 +1860,35 @@ function xt() {
|
|
|
1853
1860
|
if (tt) return ne;
|
|
1854
1861
|
tt = 1, Object.defineProperty(ne, "__esModule", {
|
|
1855
1862
|
value: !0
|
|
1856
|
-
}), ne.canDragX = o, ne.canDragY = i, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition =
|
|
1863
|
+
}), ne.canDragX = o, ne.canDragY = i, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
|
|
1857
1864
|
var e = we(), n = Re();
|
|
1858
|
-
function t(u,
|
|
1859
|
-
if (!u.props.bounds) return [
|
|
1865
|
+
function t(u, p, y) {
|
|
1866
|
+
if (!u.props.bounds) return [p, y];
|
|
1860
1867
|
let {
|
|
1861
1868
|
bounds: D
|
|
1862
1869
|
} = u.props;
|
|
1863
1870
|
D = typeof D == "string" ? D : g(D);
|
|
1864
|
-
const
|
|
1871
|
+
const m = h(u);
|
|
1865
1872
|
if (typeof D == "string") {
|
|
1866
1873
|
const {
|
|
1867
1874
|
ownerDocument: v
|
|
1868
|
-
} =
|
|
1875
|
+
} = m, w = v.defaultView;
|
|
1869
1876
|
let N;
|
|
1870
|
-
if (D === "parent" ? N =
|
|
1877
|
+
if (D === "parent" ? N = m.parentNode : N = m.getRootNode().querySelector(D), !(N instanceof w.HTMLElement))
|
|
1871
1878
|
throw new Error('Bounds selector "' + D + '" could not find an element.');
|
|
1872
|
-
const C = N, S = w.getComputedStyle(
|
|
1879
|
+
const C = N, S = w.getComputedStyle(m), c = w.getComputedStyle(C);
|
|
1873
1880
|
D = {
|
|
1874
|
-
left: -
|
|
1875
|
-
top: -
|
|
1876
|
-
right: (0, n.innerWidth)(C) - (0, n.outerWidth)(
|
|
1877
|
-
bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(
|
|
1881
|
+
left: -m.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(S.marginLeft),
|
|
1882
|
+
top: -m.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(S.marginTop),
|
|
1883
|
+
right: (0, n.innerWidth)(C) - (0, n.outerWidth)(m) - m.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(S.marginRight),
|
|
1884
|
+
bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(m) - m.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(S.marginBottom)
|
|
1878
1885
|
};
|
|
1879
1886
|
}
|
|
1880
|
-
return (0, e.isNum)(D.right) && (
|
|
1887
|
+
return (0, e.isNum)(D.right) && (p = Math.min(p, D.right)), (0, e.isNum)(D.bottom) && (y = Math.min(y, D.bottom)), (0, e.isNum)(D.left) && (p = Math.max(p, D.left)), (0, e.isNum)(D.top) && (y = Math.max(y, D.top)), [p, y];
|
|
1881
1888
|
}
|
|
1882
|
-
function r(u,
|
|
1883
|
-
const D = Math.round(
|
|
1884
|
-
return [D,
|
|
1889
|
+
function r(u, p, y) {
|
|
1890
|
+
const D = Math.round(p / u[0]) * u[0], m = Math.round(y / u[1]) * u[1];
|
|
1891
|
+
return [D, m];
|
|
1885
1892
|
}
|
|
1886
1893
|
function o(u) {
|
|
1887
1894
|
return u.props.axis === "both" || u.props.axis === "x";
|
|
@@ -1889,40 +1896,40 @@ function xt() {
|
|
|
1889
1896
|
function i(u) {
|
|
1890
1897
|
return u.props.axis === "both" || u.props.axis === "y";
|
|
1891
1898
|
}
|
|
1892
|
-
function
|
|
1893
|
-
const D = typeof
|
|
1894
|
-
if (typeof
|
|
1895
|
-
const
|
|
1899
|
+
function a(u, p, y) {
|
|
1900
|
+
const D = typeof p == "number" ? (0, n.getTouch)(u, p) : null;
|
|
1901
|
+
if (typeof p == "number" && !D) return null;
|
|
1902
|
+
const m = h(y), v = y.props.offsetParent || m.offsetParent || m.ownerDocument.body;
|
|
1896
1903
|
return (0, n.offsetXYFromParent)(D || u, v, y.props.scale);
|
|
1897
1904
|
}
|
|
1898
|
-
function d(u,
|
|
1899
|
-
const D = !(0, e.isNum)(u.lastX),
|
|
1905
|
+
function d(u, p, y) {
|
|
1906
|
+
const D = !(0, e.isNum)(u.lastX), m = h(u);
|
|
1900
1907
|
return D ? {
|
|
1901
|
-
node:
|
|
1908
|
+
node: m,
|
|
1902
1909
|
deltaX: 0,
|
|
1903
1910
|
deltaY: 0,
|
|
1904
|
-
lastX:
|
|
1911
|
+
lastX: p,
|
|
1905
1912
|
lastY: y,
|
|
1906
|
-
x:
|
|
1913
|
+
x: p,
|
|
1907
1914
|
y
|
|
1908
1915
|
} : {
|
|
1909
|
-
node:
|
|
1910
|
-
deltaX:
|
|
1916
|
+
node: m,
|
|
1917
|
+
deltaX: p - u.lastX,
|
|
1911
1918
|
deltaY: y - u.lastY,
|
|
1912
1919
|
lastX: u.lastX,
|
|
1913
1920
|
lastY: u.lastY,
|
|
1914
|
-
x:
|
|
1921
|
+
x: p,
|
|
1915
1922
|
y
|
|
1916
1923
|
};
|
|
1917
1924
|
}
|
|
1918
|
-
function b(u,
|
|
1925
|
+
function b(u, p) {
|
|
1919
1926
|
const y = u.props.scale;
|
|
1920
1927
|
return {
|
|
1921
|
-
node:
|
|
1922
|
-
x: u.state.x +
|
|
1923
|
-
y: u.state.y +
|
|
1924
|
-
deltaX:
|
|
1925
|
-
deltaY:
|
|
1928
|
+
node: p.node,
|
|
1929
|
+
x: u.state.x + p.deltaX / y,
|
|
1930
|
+
y: u.state.y + p.deltaY / y,
|
|
1931
|
+
deltaX: p.deltaX / y,
|
|
1932
|
+
deltaY: p.deltaY / y,
|
|
1926
1933
|
lastX: u.state.x,
|
|
1927
1934
|
lastY: u.state.y
|
|
1928
1935
|
};
|
|
@@ -1936,10 +1943,10 @@ function xt() {
|
|
|
1936
1943
|
};
|
|
1937
1944
|
}
|
|
1938
1945
|
function h(u) {
|
|
1939
|
-
const
|
|
1940
|
-
if (!
|
|
1946
|
+
const p = u.findDOMNode();
|
|
1947
|
+
if (!p)
|
|
1941
1948
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1942
|
-
return
|
|
1949
|
+
return p;
|
|
1943
1950
|
}
|
|
1944
1951
|
return ne;
|
|
1945
1952
|
}
|
|
@@ -1959,11 +1966,11 @@ function mn() {
|
|
|
1959
1966
|
rt = 1, Object.defineProperty(he, "__esModule", {
|
|
1960
1967
|
value: !0
|
|
1961
1968
|
}), he.default = void 0;
|
|
1962
|
-
var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Re(), o = xt(), i = we(),
|
|
1963
|
-
function d(
|
|
1964
|
-
return
|
|
1969
|
+
var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(lt), r = Re(), o = xt(), i = we(), a = d(wt());
|
|
1970
|
+
function d(m) {
|
|
1971
|
+
return m && m.__esModule ? m : { default: m };
|
|
1965
1972
|
}
|
|
1966
|
-
function b(
|
|
1973
|
+
function b(m, v) {
|
|
1967
1974
|
if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
1968
1975
|
return (b = function(C, S) {
|
|
1969
1976
|
if (!S && C && C.__esModule) return C;
|
|
@@ -1975,26 +1982,26 @@ function mn() {
|
|
|
1975
1982
|
}
|
|
1976
1983
|
for (const f in C) f !== "default" && {}.hasOwnProperty.call(C, f) && ((E = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, f)) && (E.get || E.set) ? c(l, f, E) : l[f] = C[f]);
|
|
1977
1984
|
return l;
|
|
1978
|
-
})(
|
|
1985
|
+
})(m, v);
|
|
1979
1986
|
}
|
|
1980
|
-
function g(
|
|
1981
|
-
return (v = h(v)) in
|
|
1987
|
+
function g(m, v, w) {
|
|
1988
|
+
return (v = h(v)) in m ? Object.defineProperty(m, v, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : m[v] = w, m;
|
|
1982
1989
|
}
|
|
1983
|
-
function h(
|
|
1984
|
-
var v = u(
|
|
1990
|
+
function h(m) {
|
|
1991
|
+
var v = u(m, "string");
|
|
1985
1992
|
return typeof v == "symbol" ? v : v + "";
|
|
1986
1993
|
}
|
|
1987
|
-
function u(
|
|
1988
|
-
if (typeof
|
|
1989
|
-
var w =
|
|
1994
|
+
function u(m, v) {
|
|
1995
|
+
if (typeof m != "object" || !m) return m;
|
|
1996
|
+
var w = m[Symbol.toPrimitive];
|
|
1990
1997
|
if (w !== void 0) {
|
|
1991
|
-
var N = w.call(
|
|
1998
|
+
var N = w.call(m, v);
|
|
1992
1999
|
if (typeof N != "object") return N;
|
|
1993
2000
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1994
2001
|
}
|
|
1995
|
-
return (v === "string" ? String : Number)(
|
|
2002
|
+
return (v === "string" ? String : Number)(m);
|
|
1996
2003
|
}
|
|
1997
|
-
const
|
|
2004
|
+
const p = {
|
|
1998
2005
|
touch: {
|
|
1999
2006
|
start: "touchstart",
|
|
2000
2007
|
move: "touchmove",
|
|
@@ -2006,7 +2013,7 @@ function mn() {
|
|
|
2006
2013
|
stop: "mouseup"
|
|
2007
2014
|
}
|
|
2008
2015
|
};
|
|
2009
|
-
let y =
|
|
2016
|
+
let y = p.mouse, D = class extends e.Component {
|
|
2010
2017
|
constructor() {
|
|
2011
2018
|
super(...arguments), g(this, "dragging", !1), g(this, "lastX", NaN), g(this, "lastY", NaN), g(this, "touchIdentifier", null), g(this, "mounted", !1), g(this, "handleDragStart", (v) => {
|
|
2012
2019
|
if (this.props.onMouseDown(v), !this.props.allowAnyClick && typeof v.button == "number" && v.button !== 0) return !1;
|
|
@@ -2027,7 +2034,7 @@ function mn() {
|
|
|
2027
2034
|
x: c,
|
|
2028
2035
|
y: E
|
|
2029
2036
|
} = S, l = (0, o.createCoreData)(this, c, E);
|
|
2030
|
-
(0,
|
|
2037
|
+
(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
2038
|
}), g(this, "handleDrag", (v) => {
|
|
2032
2039
|
const w = (0, o.getControlPosition)(v, this.touchIdentifier, this);
|
|
2033
2040
|
if (w == null) return;
|
|
@@ -2041,7 +2048,7 @@ function mn() {
|
|
|
2041
2048
|
N = this.lastX + E, C = this.lastY + l;
|
|
2042
2049
|
}
|
|
2043
2050
|
const S = (0, o.createCoreData)(this, N, C);
|
|
2044
|
-
if ((0,
|
|
2051
|
+
if ((0, a.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(v, S) === !1 || this.mounted === !1) {
|
|
2045
2052
|
try {
|
|
2046
2053
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
2047
2054
|
} catch {
|
|
@@ -2066,13 +2073,13 @@ function mn() {
|
|
|
2066
2073
|
const S = (0, o.createCoreData)(this, N, C);
|
|
2067
2074
|
if (this.props.onStop(v, S) === !1 || this.mounted === !1) return !1;
|
|
2068
2075
|
const E = this.findDOMNode();
|
|
2069
|
-
E && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(E.ownerDocument), (0,
|
|
2070
|
-
}), g(this, "onMouseDown", (v) => (y =
|
|
2076
|
+
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));
|
|
2077
|
+
}), g(this, "onMouseDown", (v) => (y = p.mouse, this.handleDragStart(v))), g(this, "onMouseUp", (v) => (y = p.mouse, this.handleDragStop(v))), g(this, "onTouchStart", (v) => (y = p.touch, this.handleDragStart(v))), g(this, "onTouchEnd", (v) => (y = p.touch, this.handleDragStop(v)));
|
|
2071
2078
|
}
|
|
2072
2079
|
componentDidMount() {
|
|
2073
2080
|
this.mounted = !0;
|
|
2074
2081
|
const v = this.findDOMNode();
|
|
2075
|
-
v && (0, r.addEvent)(v,
|
|
2082
|
+
v && (0, r.addEvent)(v, p.touch.start, this.onTouchStart, {
|
|
2076
2083
|
passive: !1
|
|
2077
2084
|
});
|
|
2078
2085
|
}
|
|
@@ -2083,7 +2090,7 @@ function mn() {
|
|
|
2083
2090
|
const {
|
|
2084
2091
|
ownerDocument: w
|
|
2085
2092
|
} = v;
|
|
2086
|
-
(0, r.removeEvent)(w,
|
|
2093
|
+
(0, r.removeEvent)(w, p.mouse.move, this.handleDrag), (0, r.removeEvent)(w, p.touch.move, this.handleDrag), (0, r.removeEvent)(w, p.mouse.stop, this.handleDragStop), (0, r.removeEvent)(w, p.touch.stop, this.handleDragStop), (0, r.removeEvent)(v, p.touch.start, this.onTouchStart, {
|
|
2087
2094
|
passive: !1
|
|
2088
2095
|
}), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(w);
|
|
2089
2096
|
}
|
|
@@ -2138,8 +2145,8 @@ function mn() {
|
|
|
2138
2145
|
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
2139
2146
|
* instead of using the parent node.
|
|
2140
2147
|
*/
|
|
2141
|
-
offsetParent: function(
|
|
2142
|
-
if (
|
|
2148
|
+
offsetParent: function(m, v) {
|
|
2149
|
+
if (m[v] && m[v].nodeType !== 1)
|
|
2143
2150
|
throw new Error("Draggable's offsetParent must be a DOM Node.");
|
|
2144
2151
|
},
|
|
2145
2152
|
/**
|
|
@@ -2264,7 +2271,7 @@ function pn() {
|
|
|
2264
2271
|
return b.default;
|
|
2265
2272
|
}
|
|
2266
2273
|
}), e.default = void 0;
|
|
2267
|
-
var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), o = hn(), i = Re(),
|
|
2274
|
+
var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(lt), o = hn(), i = Re(), a = xt(), d = we(), b = h(mn()), g = h(wt());
|
|
2268
2275
|
function h(w) {
|
|
2269
2276
|
return w && w.__esModule ? w : { default: w };
|
|
2270
2277
|
}
|
|
@@ -2282,23 +2289,23 @@ function pn() {
|
|
|
2282
2289
|
return M;
|
|
2283
2290
|
})(w, N);
|
|
2284
2291
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
2292
|
+
function p() {
|
|
2293
|
+
return p = Object.assign ? Object.assign.bind() : function(w) {
|
|
2287
2294
|
for (var N = 1; N < arguments.length; N++) {
|
|
2288
2295
|
var C = arguments[N];
|
|
2289
2296
|
for (var S in C) ({}).hasOwnProperty.call(C, S) && (w[S] = C[S]);
|
|
2290
2297
|
}
|
|
2291
2298
|
return w;
|
|
2292
|
-
},
|
|
2299
|
+
}, p.apply(null, arguments);
|
|
2293
2300
|
}
|
|
2294
2301
|
function y(w, N, C) {
|
|
2295
2302
|
return (N = D(N)) in w ? Object.defineProperty(w, N, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : w[N] = C, w;
|
|
2296
2303
|
}
|
|
2297
2304
|
function D(w) {
|
|
2298
|
-
var N =
|
|
2305
|
+
var N = m(w, "string");
|
|
2299
2306
|
return typeof N == "symbol" ? N : N + "";
|
|
2300
2307
|
}
|
|
2301
|
-
function
|
|
2308
|
+
function m(w, N) {
|
|
2302
2309
|
if (typeof w != "object" || !w) return w;
|
|
2303
2310
|
var C = w[Symbol.toPrimitive];
|
|
2304
2311
|
if (C !== void 0) {
|
|
@@ -2330,7 +2337,7 @@ function pn() {
|
|
|
2330
2337
|
}
|
|
2331
2338
|
constructor(N) {
|
|
2332
2339
|
super(N), y(this, "onDragStart", (C, S) => {
|
|
2333
|
-
if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0,
|
|
2340
|
+
if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
|
|
2334
2341
|
this.setState({
|
|
2335
2342
|
dragging: !0,
|
|
2336
2343
|
dragged: !0
|
|
@@ -2338,7 +2345,7 @@ function pn() {
|
|
|
2338
2345
|
}), y(this, "onDrag", (C, S) => {
|
|
2339
2346
|
if (!this.state.dragging) return !1;
|
|
2340
2347
|
(0, g.default)("Draggable: onDrag: %j", S);
|
|
2341
|
-
const c = (0,
|
|
2348
|
+
const c = (0, a.createDraggableData)(this, S), E = {
|
|
2342
2349
|
x: c.x,
|
|
2343
2350
|
y: c.y,
|
|
2344
2351
|
slackX: 0,
|
|
@@ -2350,13 +2357,13 @@ function pn() {
|
|
|
2350
2357
|
y: M
|
|
2351
2358
|
} = E;
|
|
2352
2359
|
E.x += this.state.slackX, E.y += this.state.slackY;
|
|
2353
|
-
const [$, I] = (0,
|
|
2360
|
+
const [$, I] = (0, a.getBoundPosition)(this, E.x, E.y);
|
|
2354
2361
|
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
2362
|
}
|
|
2356
2363
|
if (this.props.onDrag(C, c) === !1) return !1;
|
|
2357
2364
|
this.setState(E);
|
|
2358
2365
|
}), y(this, "onDragStop", (C, S) => {
|
|
2359
|
-
if (!this.state.dragging || this.props.onStop(C, (0,
|
|
2366
|
+
if (!this.state.dragging || this.props.onStop(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
|
|
2360
2367
|
(0, g.default)("Draggable: onDragStop: %j", S);
|
|
2361
2368
|
const E = {
|
|
2362
2369
|
dragging: !1,
|
|
@@ -2421,16 +2428,16 @@ function pn() {
|
|
|
2421
2428
|
let z = {}, X = null;
|
|
2422
2429
|
const K = !!!M || this.state.dragging, ee = M || c, se = {
|
|
2423
2430
|
// Set left if horizontal drag is enabled
|
|
2424
|
-
x: (0,
|
|
2431
|
+
x: (0, a.canDragX)(this) && K ? this.state.x : ee.x,
|
|
2425
2432
|
// Set top if vertical drag is enabled
|
|
2426
|
-
y: (0,
|
|
2433
|
+
y: (0, a.canDragY)(this) && K ? this.state.y : ee.y
|
|
2427
2434
|
};
|
|
2428
2435
|
this.state.isElementSVG ? X = (0, i.createSVGTransform)(se, $) : z = (0, i.createCSSTransform)(se, $);
|
|
2429
2436
|
const de = (0, o.clsx)(S.props.className || "", E, {
|
|
2430
2437
|
[l]: this.state.dragging,
|
|
2431
2438
|
[f]: this.state.dragged
|
|
2432
2439
|
});
|
|
2433
|
-
return /* @__PURE__ */ n.createElement(b.default,
|
|
2440
|
+
return /* @__PURE__ */ n.createElement(b.default, p({}, T, {
|
|
2434
2441
|
onStart: this.onDragStart,
|
|
2435
2442
|
onDrag: this.onDrag,
|
|
2436
2443
|
onStop: this.onDragStop
|
|
@@ -2595,13 +2602,13 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
|
|
|
2595
2602
|
boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
|
|
2596
2603
|
},
|
|
2597
2604
|
...e.style || {}
|
|
2598
|
-
}, o = e.testId || "not-set", i = e.className || "panel",
|
|
2605
|
+
}, o = e.testId || "not-set", i = e.className || "panel", a = Ct(null);
|
|
2599
2606
|
return (
|
|
2600
2607
|
// 3. Pass the internal ref to the Draggable component via 'nodeRef'
|
|
2601
|
-
/* @__PURE__ */
|
|
2608
|
+
/* @__PURE__ */ s(
|
|
2602
2609
|
vn,
|
|
2603
2610
|
{
|
|
2604
|
-
nodeRef:
|
|
2611
|
+
nodeRef: a,
|
|
2605
2612
|
"data-testid": o,
|
|
2606
2613
|
axis: "both",
|
|
2607
2614
|
handle: ".handle",
|
|
@@ -2613,7 +2620,7 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
|
|
|
2613
2620
|
e.onDraggingChange?.(!1);
|
|
2614
2621
|
}, 100);
|
|
2615
2622
|
},
|
|
2616
|
-
children: /* @__PURE__ */
|
|
2623
|
+
children: /* @__PURE__ */ s("div", { ref: a, className: i, style: r, children: e.children })
|
|
2617
2624
|
}
|
|
2618
2625
|
)
|
|
2619
2626
|
);
|
|
@@ -2623,7 +2630,7 @@ function tr({ children: e, addCssClasses: n }) {
|
|
|
2623
2630
|
"w-full h-full flex-1 flex flex-col",
|
|
2624
2631
|
(n || "gap-2 items-end justify-end content-end").trim()
|
|
2625
2632
|
);
|
|
2626
|
-
return /* @__PURE__ */
|
|
2633
|
+
return /* @__PURE__ */ s(
|
|
2627
2634
|
"div",
|
|
2628
2635
|
{
|
|
2629
2636
|
className: t,
|
|
@@ -2639,7 +2646,7 @@ function nr({ children: e, addCssClasses: n }) {
|
|
|
2639
2646
|
"w-full flex flex-col",
|
|
2640
2647
|
(n || "items-end").trim()
|
|
2641
2648
|
);
|
|
2642
|
-
return /* @__PURE__ */
|
|
2649
|
+
return /* @__PURE__ */ s("div", { className: t, children: e });
|
|
2643
2650
|
}
|
|
2644
2651
|
const rr = (e) => {
|
|
2645
2652
|
console.warn("showToast TODO", e);
|
|
@@ -2648,20 +2655,20 @@ const rr = (e) => {
|
|
|
2648
2655
|
const r = e.responsiveGrid || !1, o = e.isEditing || !1, i = {
|
|
2649
2656
|
"--bwj-dashboard-transform-scale": t,
|
|
2650
2657
|
"--bwj-dashboard-add-cols": wn(t)
|
|
2651
|
-
},
|
|
2658
|
+
}, a = G(
|
|
2652
2659
|
"dashboard-main-grid w-full",
|
|
2653
2660
|
o ? "editing" : "",
|
|
2654
2661
|
r ? "responsive-grid" : "",
|
|
2655
2662
|
`border border-dashed ${o ? "border-primary border-opacity-50" : "border-transparent"}`
|
|
2656
2663
|
);
|
|
2657
|
-
return /* @__PURE__ */
|
|
2664
|
+
return /* @__PURE__ */ s("div", { className: a, style: i, children: e.children });
|
|
2658
2665
|
}), $e = "size-5", Cn = (e, n) => {
|
|
2659
2666
|
const t = e.hideTitle && !e.isEditing, r = e.noBorder;
|
|
2660
2667
|
let o = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
|
|
2661
2668
|
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
2669
|
const i = () => {
|
|
2663
2670
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
|
|
2664
|
-
},
|
|
2671
|
+
}, a = (b) => {
|
|
2665
2672
|
e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
|
|
2666
2673
|
}, d = G(
|
|
2667
2674
|
"widget-header",
|
|
@@ -2675,12 +2682,12 @@ const rr = (e) => {
|
|
|
2675
2682
|
e.title,
|
|
2676
2683
|
" "
|
|
2677
2684
|
] }),
|
|
2678
|
-
/* @__PURE__ */
|
|
2685
|
+
/* @__PURE__ */ s("div", {})
|
|
2679
2686
|
] }),
|
|
2680
|
-
/* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2687
|
+
/* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
|
|
2688
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("span", { className: "hidden", children: "Widget" }) }),
|
|
2682
2689
|
/* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
|
|
2683
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ s(
|
|
2684
2691
|
J,
|
|
2685
2692
|
{
|
|
2686
2693
|
"data-testid": `move-widget-left_${e.title}`,
|
|
@@ -2690,11 +2697,11 @@ const rr = (e) => {
|
|
|
2690
2697
|
placement: "top",
|
|
2691
2698
|
title: `${e.index < 1 ? "Already at min position" : "Move Widget to the left/up"}`
|
|
2692
2699
|
},
|
|
2693
|
-
onClick: () =>
|
|
2694
|
-
children: /* @__PURE__ */
|
|
2700
|
+
onClick: () => a(-1),
|
|
2701
|
+
children: /* @__PURE__ */ s(ft, { className: $e })
|
|
2695
2702
|
}
|
|
2696
2703
|
),
|
|
2697
|
-
/* @__PURE__ */
|
|
2704
|
+
/* @__PURE__ */ s(
|
|
2698
2705
|
J,
|
|
2699
2706
|
{
|
|
2700
2707
|
"data-testid": `move-widget-right_${e.title}`,
|
|
@@ -2704,11 +2711,11 @@ const rr = (e) => {
|
|
|
2704
2711
|
placement: "top",
|
|
2705
2712
|
title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Widget to the right/down"}`
|
|
2706
2713
|
},
|
|
2707
|
-
onClick: () =>
|
|
2708
|
-
children: /* @__PURE__ */
|
|
2714
|
+
onClick: () => a(1),
|
|
2715
|
+
children: /* @__PURE__ */ s(ht, { className: $e })
|
|
2709
2716
|
}
|
|
2710
2717
|
),
|
|
2711
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ s(
|
|
2712
2719
|
J,
|
|
2713
2720
|
{
|
|
2714
2721
|
"data-testid": `remove-container_${e.title}`,
|
|
@@ -2718,22 +2725,22 @@ const rr = (e) => {
|
|
|
2718
2725
|
title: "Remove Widget"
|
|
2719
2726
|
},
|
|
2720
2727
|
onClick: () => i(),
|
|
2721
|
-
children: /* @__PURE__ */
|
|
2728
|
+
children: /* @__PURE__ */ s(gt, { className: $e })
|
|
2722
2729
|
}
|
|
2723
2730
|
)
|
|
2724
2731
|
] })
|
|
2725
2732
|
] }) })
|
|
2726
2733
|
] }),
|
|
2727
|
-
/* @__PURE__ */
|
|
2734
|
+
/* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
|
|
2728
2735
|
] });
|
|
2729
2736
|
}, at = ce(Cn), Sn = (e, n) => {
|
|
2730
2737
|
const t = (i) => i.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), o = t(n).split(".").map(Number);
|
|
2731
2738
|
return !(r[0] !== o[0] || r[1] < o[1]);
|
|
2732
2739
|
};
|
|
2733
2740
|
function Dn(e) {
|
|
2734
|
-
return /* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2741
|
+
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: [
|
|
2742
|
+
/* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
|
|
2743
|
+
/* @__PURE__ */ s("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
|
|
2737
2744
|
] }) });
|
|
2738
2745
|
}
|
|
2739
2746
|
function Nn({
|
|
@@ -2743,7 +2750,7 @@ function Nn({
|
|
|
2743
2750
|
parentWidgetKey: r,
|
|
2744
2751
|
targetContainerKey: o,
|
|
2745
2752
|
childWidgetsConfig: i,
|
|
2746
|
-
widgetCatalog:
|
|
2753
|
+
widgetCatalog: a,
|
|
2747
2754
|
isEditing: d,
|
|
2748
2755
|
// for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
|
|
2749
2756
|
extraProps: b,
|
|
@@ -2751,32 +2758,32 @@ function Nn({
|
|
|
2751
2758
|
onMoveClick: h,
|
|
2752
2759
|
selectContainer: u
|
|
2753
2760
|
}) {
|
|
2754
|
-
const
|
|
2755
|
-
if (!
|
|
2756
|
-
return /* @__PURE__ */
|
|
2761
|
+
const p = `${t}`.split("_"), y = p.length > 1, D = y ? p[0] : t, m = a.get(D);
|
|
2762
|
+
if (!m)
|
|
2763
|
+
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2757
2764
|
"Widget not found in catalog: ",
|
|
2758
2765
|
D
|
|
2759
2766
|
] }) });
|
|
2760
2767
|
let v = null, w = !1;
|
|
2761
|
-
const N = !!
|
|
2768
|
+
const N = !!m.isContainer, C = y ? mt(t) : "", S = N ? (i || []).filter((l) => l.parentWidgetKey === t) : [], c = {
|
|
2762
2769
|
index: e,
|
|
2763
2770
|
maxIndex: n,
|
|
2764
2771
|
widgetKey: t,
|
|
2765
2772
|
parentWidgetKey: r,
|
|
2766
2773
|
isEditing: d,
|
|
2767
2774
|
extraProps: b,
|
|
2768
|
-
title: y ? C :
|
|
2775
|
+
title: y ? C : m.title,
|
|
2769
2776
|
onRemoveClick: g,
|
|
2770
2777
|
onMoveClick: h
|
|
2771
2778
|
};
|
|
2772
|
-
if (
|
|
2773
|
-
if (!
|
|
2774
|
-
const l = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f =
|
|
2779
|
+
if (m.component ? (v = m.component, w = !1) : m.loader && (w = !0, v = st(() => {
|
|
2780
|
+
if (!m) return null;
|
|
2781
|
+
const l = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = m.meta?.externalDependencies || [], M = f.find(($) => $.startsWith("react@"));
|
|
2775
2782
|
if (M) {
|
|
2776
2783
|
const $ = M.split("@")[1];
|
|
2777
2784
|
if (!Sn(l, $))
|
|
2778
2785
|
return ae.lazy(async () => ({
|
|
2779
|
-
default: () => /* @__PURE__ */
|
|
2786
|
+
default: () => /* @__PURE__ */ s(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2780
2787
|
/* @__PURE__ */ W("p", { className: "font-bold", children: [
|
|
2781
2788
|
'Failed to load "',
|
|
2782
2789
|
t,
|
|
@@ -2796,13 +2803,13 @@ function Nn({
|
|
|
2796
2803
|
] }),
|
|
2797
2804
|
". Host is running",
|
|
2798
2805
|
" ",
|
|
2799
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ s("strong", { children: l }),
|
|
2800
2807
|
"."
|
|
2801
2808
|
] })
|
|
2802
2809
|
] }),
|
|
2803
2810
|
/* @__PURE__ */ W("div", { className: "flex flex-col mt-3", children: [
|
|
2804
|
-
/* @__PURE__ */
|
|
2805
|
-
/* @__PURE__ */
|
|
2811
|
+
/* @__PURE__ */ s("h5", { children: "Externals:" }),
|
|
2812
|
+
/* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((I, T) => /* @__PURE__ */ W("dd", { children: [
|
|
2806
2813
|
"- ",
|
|
2807
2814
|
I
|
|
2808
2815
|
] }, T)) })
|
|
@@ -2810,22 +2817,22 @@ function Nn({
|
|
|
2810
2817
|
] }) })
|
|
2811
2818
|
}));
|
|
2812
2819
|
}
|
|
2813
|
-
if (
|
|
2814
|
-
return
|
|
2815
|
-
if (
|
|
2820
|
+
if (m.component)
|
|
2821
|
+
return m.component;
|
|
2822
|
+
if (m.loader) {
|
|
2816
2823
|
const $ = async () => {
|
|
2817
2824
|
try {
|
|
2818
|
-
return await
|
|
2825
|
+
return await m.loader();
|
|
2819
2826
|
} catch (I) {
|
|
2820
2827
|
return console.error(`CDN Load Failure for ${t}:`, I), {
|
|
2821
|
-
default: () => /* @__PURE__ */
|
|
2828
|
+
default: () => /* @__PURE__ */ s(at, { ...c, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2822
2829
|
/* @__PURE__ */ W("p", { className: "font-bold", children: [
|
|
2823
2830
|
'Failed to load "',
|
|
2824
2831
|
t,
|
|
2825
2832
|
'"'
|
|
2826
2833
|
] }),
|
|
2827
|
-
/* @__PURE__ */
|
|
2828
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ s("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
|
|
2835
|
+
/* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(m.meta || {}, null, 2) })
|
|
2829
2836
|
] }) })
|
|
2830
2837
|
};
|
|
2831
2838
|
}
|
|
@@ -2833,8 +2840,8 @@ function Nn({
|
|
|
2833
2840
|
return ae.lazy($);
|
|
2834
2841
|
}
|
|
2835
2842
|
return null;
|
|
2836
|
-
}, [
|
|
2837
|
-
return /* @__PURE__ */
|
|
2843
|
+
}, [m, t])), !v)
|
|
2844
|
+
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2838
2845
|
"Widget definition incomplete: ",
|
|
2839
2846
|
D
|
|
2840
2847
|
] }) });
|
|
@@ -2842,14 +2849,14 @@ function Nn({
|
|
|
2842
2849
|
highlight: o === t,
|
|
2843
2850
|
selectContainer: u,
|
|
2844
2851
|
// The children prop is the recursive call back to DynamicWidgetLoader
|
|
2845
|
-
children: S.map((l, f) => /* @__PURE__ */
|
|
2852
|
+
children: S.map((l, f) => /* @__PURE__ */ s(
|
|
2846
2853
|
Nn,
|
|
2847
2854
|
{
|
|
2848
2855
|
index: f,
|
|
2849
2856
|
maxIndex: S.length - 1,
|
|
2850
2857
|
widgetKey: l.widgetKey,
|
|
2851
2858
|
parentWidgetKey: l.parentWidgetKey,
|
|
2852
|
-
widgetCatalog:
|
|
2859
|
+
widgetCatalog: a,
|
|
2853
2860
|
isEditing: d,
|
|
2854
2861
|
extraProps: b,
|
|
2855
2862
|
onRemoveClick: g,
|
|
@@ -2858,7 +2865,7 @@ function Nn({
|
|
|
2858
2865
|
`${l.widgetKey}_${f}`
|
|
2859
2866
|
))
|
|
2860
2867
|
} : {};
|
|
2861
|
-
return w ? /* @__PURE__ */
|
|
2868
|
+
return w ? /* @__PURE__ */ s(St, { fallback: /* @__PURE__ */ s(Dn, { title: `Loading ${m.title}` }), children: /* @__PURE__ */ s(v, { ...c, ...E }) }) : /* @__PURE__ */ s(v, { ...c, ...E });
|
|
2862
2869
|
}
|
|
2863
2870
|
const xe = "size-5";
|
|
2864
2871
|
function ke(e) {
|
|
@@ -2879,26 +2886,26 @@ function ke(e) {
|
|
|
2879
2886
|
`direction-${t}`,
|
|
2880
2887
|
`border ${d}`,
|
|
2881
2888
|
`${n ? "highlight-container" : ""} ${d}`
|
|
2882
|
-
),
|
|
2889
|
+
), p = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
|
|
2883
2890
|
const y = () => {
|
|
2884
2891
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
|
|
2885
2892
|
}, D = (v) => {
|
|
2886
2893
|
e.onMoveClick && e.widgetKey && e.onMoveClick(v, e.widgetKey, e.parentWidgetKey);
|
|
2887
|
-
},
|
|
2894
|
+
}, m = () => {
|
|
2888
2895
|
e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
|
|
2889
2896
|
};
|
|
2890
2897
|
return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
|
|
2891
|
-
/* @__PURE__ */ W("div", { className:
|
|
2892
|
-
/* @__PURE__ */
|
|
2898
|
+
/* @__PURE__ */ W("div", { className: p, children: [
|
|
2899
|
+
/* @__PURE__ */ s(
|
|
2893
2900
|
"div",
|
|
2894
2901
|
{
|
|
2895
2902
|
className: "widget-title-wrapper w-full flex whitespace-nowrap",
|
|
2896
|
-
onClick:
|
|
2897
|
-
children: /* @__PURE__ */
|
|
2903
|
+
onClick: m,
|
|
2904
|
+
children: /* @__PURE__ */ s("span", { className: "text-sm font-semibold capitalize", children: e.title })
|
|
2898
2905
|
}
|
|
2899
2906
|
),
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__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: [
|
|
2908
|
+
/* @__PURE__ */ s(
|
|
2902
2909
|
J,
|
|
2903
2910
|
{
|
|
2904
2911
|
"data-testid": `open-widgets-catalog-from-container_${e.title}`,
|
|
@@ -2908,8 +2915,8 @@ function ke(e) {
|
|
|
2908
2915
|
placement: "top",
|
|
2909
2916
|
title: "Target this Container"
|
|
2910
2917
|
},
|
|
2911
|
-
onClick:
|
|
2912
|
-
children: /* @__PURE__ */
|
|
2918
|
+
onClick: m,
|
|
2919
|
+
children: /* @__PURE__ */ s(
|
|
2913
2920
|
tn,
|
|
2914
2921
|
{
|
|
2915
2922
|
className: `${xe} ${n ? "text-success" : "text-disabled"}`
|
|
@@ -2917,7 +2924,7 @@ function ke(e) {
|
|
|
2917
2924
|
)
|
|
2918
2925
|
}
|
|
2919
2926
|
),
|
|
2920
|
-
/* @__PURE__ */
|
|
2927
|
+
/* @__PURE__ */ s(
|
|
2921
2928
|
J,
|
|
2922
2929
|
{
|
|
2923
2930
|
"data-testid": `move-container-left_${e.title}`,
|
|
@@ -2928,10 +2935,10 @@ function ke(e) {
|
|
|
2928
2935
|
title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
|
|
2929
2936
|
},
|
|
2930
2937
|
onClick: () => D(-1),
|
|
2931
|
-
children: /* @__PURE__ */
|
|
2938
|
+
children: /* @__PURE__ */ s(ft, { className: xe })
|
|
2932
2939
|
}
|
|
2933
2940
|
),
|
|
2934
|
-
/* @__PURE__ */
|
|
2941
|
+
/* @__PURE__ */ s(
|
|
2935
2942
|
J,
|
|
2936
2943
|
{
|
|
2937
2944
|
"data-testid": `move-container-right_${e.title}`,
|
|
@@ -2942,10 +2949,10 @@ function ke(e) {
|
|
|
2942
2949
|
title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
|
|
2943
2950
|
},
|
|
2944
2951
|
onClick: () => D(1),
|
|
2945
|
-
children: /* @__PURE__ */
|
|
2952
|
+
children: /* @__PURE__ */ s(ht, { className: xe })
|
|
2946
2953
|
}
|
|
2947
2954
|
),
|
|
2948
|
-
/* @__PURE__ */
|
|
2955
|
+
/* @__PURE__ */ s(
|
|
2949
2956
|
J,
|
|
2950
2957
|
{
|
|
2951
2958
|
"data-testid": `remove-container_${e.title}`,
|
|
@@ -2955,25 +2962,25 @@ function ke(e) {
|
|
|
2955
2962
|
title: "Remove Container"
|
|
2956
2963
|
},
|
|
2957
2964
|
onClick: () => y(),
|
|
2958
|
-
children: /* @__PURE__ */
|
|
2965
|
+
children: /* @__PURE__ */ s(gt, { className: xe })
|
|
2959
2966
|
}
|
|
2960
2967
|
)
|
|
2961
2968
|
] }) }) })
|
|
2962
2969
|
] }),
|
|
2963
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ s("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
|
|
2964
2971
|
] });
|
|
2965
2972
|
}
|
|
2966
2973
|
function or(e) {
|
|
2967
2974
|
const { direction: n, ...t } = e;
|
|
2968
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ s(ke, { direction: "column", ...t });
|
|
2969
2976
|
}
|
|
2970
2977
|
function ar(e) {
|
|
2971
2978
|
const { size: n, ...t } = e;
|
|
2972
|
-
return /* @__PURE__ */
|
|
2979
|
+
return /* @__PURE__ */ s(ke, { size: "large", ...t });
|
|
2973
2980
|
}
|
|
2974
2981
|
function sr(e) {
|
|
2975
2982
|
const { direction: n, ...t } = e;
|
|
2976
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ s(ke, { direction: "row", ...t });
|
|
2977
2984
|
}
|
|
2978
2985
|
function We({
|
|
2979
2986
|
// widgetKey,
|
|
@@ -2981,25 +2988,25 @@ function We({
|
|
|
2981
2988
|
alreadyAdded: n,
|
|
2982
2989
|
addWidget: t
|
|
2983
2990
|
}) {
|
|
2984
|
-
const [r, o] = le(!1), i = e.icon || nn,
|
|
2991
|
+
const [r, o] = le(!1), i = e.icon || nn, a = e.displayName || "Unknown", d = e.description || "---", g = (e.noDuplicatedWidgets || !1) && n, h = G(`
|
|
2985
2992
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2986
2993
|
${g ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
|
|
2987
2994
|
`);
|
|
2988
2995
|
return /* @__PURE__ */ W("div", { className: h, style: { width: "calc(100% - 1rem)" }, onClick: () => {
|
|
2989
2996
|
g || t();
|
|
2990
2997
|
}, children: [
|
|
2991
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ s(i, { className: "" }),
|
|
2992
2999
|
/* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
2993
3000
|
/* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
|
|
2994
|
-
/* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ s("span", { className: "font-bold", children: a }),
|
|
3002
|
+
/* @__PURE__ */ s("div", { className: "text-xs", children: g ? "(Added)" : "" })
|
|
2996
3003
|
] }),
|
|
2997
3004
|
/* @__PURE__ */ W("div", { className: "flex flex-col text-xs", children: [
|
|
2998
|
-
/* @__PURE__ */
|
|
2999
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ s("div", { children: d }),
|
|
3006
|
+
/* @__PURE__ */ s("div", { className: "mt-3 cursor-pointer", onClick: (y) => {
|
|
3000
3007
|
y.stopPropagation(), y.preventDefault(), o(!r);
|
|
3001
3008
|
}, children: "Externals:" }),
|
|
3002
|
-
r && /* @__PURE__ */
|
|
3009
|
+
r && /* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((y, D) => /* @__PURE__ */ W("dd", { children: [
|
|
3003
3010
|
"- ",
|
|
3004
3011
|
y
|
|
3005
3012
|
] }, D)) })
|
|
@@ -3023,25 +3030,25 @@ function Tn({
|
|
|
3023
3030
|
);
|
|
3024
3031
|
n(g);
|
|
3025
3032
|
}
|
|
3026
|
-
},
|
|
3033
|
+
}, a = (d) => {
|
|
3027
3034
|
n({
|
|
3028
3035
|
...e,
|
|
3029
3036
|
value: d.target.value || ""
|
|
3030
3037
|
});
|
|
3031
3038
|
};
|
|
3032
|
-
return /* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
/* @__PURE__ */
|
|
3039
|
+
return /* @__PURE__ */ s("div", { className: o, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
3040
|
+
/* @__PURE__ */ s("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ s("span", { className: "font-bold", children: t }) }),
|
|
3041
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: r }) }),
|
|
3035
3042
|
/* @__PURE__ */ W("div", { children: [
|
|
3036
3043
|
"Value:",
|
|
3037
|
-
/* @__PURE__ */
|
|
3044
|
+
/* @__PURE__ */ s(
|
|
3038
3045
|
pt,
|
|
3039
3046
|
{
|
|
3040
3047
|
label: "Filter...",
|
|
3041
3048
|
size: "small",
|
|
3042
3049
|
className: "w-full",
|
|
3043
3050
|
value: e.value,
|
|
3044
|
-
onChange:
|
|
3051
|
+
onChange: a,
|
|
3045
3052
|
onKeyDown: i
|
|
3046
3053
|
}
|
|
3047
3054
|
)
|
|
@@ -3059,16 +3066,16 @@ function lr({
|
|
|
3059
3066
|
undoStatus: r,
|
|
3060
3067
|
addWidget: o,
|
|
3061
3068
|
addContainer: i,
|
|
3062
|
-
onSettingItemsUpdated:
|
|
3069
|
+
onSettingItemsUpdated: a,
|
|
3063
3070
|
onResetToDefaultDashboardClick: d,
|
|
3064
3071
|
onUndoOrRedo: b,
|
|
3065
3072
|
onDoneClick: g
|
|
3066
3073
|
}) {
|
|
3067
|
-
const [h, u] = le("Editing"), [
|
|
3074
|
+
const [h, u] = le("Editing"), [p, y] = le(0), [D, m] = le(""), w = Array.from(n.keys()).map((T) => ({
|
|
3068
3075
|
widgetKey: T,
|
|
3069
3076
|
metaData: $t(T, n)
|
|
3070
3077
|
})), N = (T) => {
|
|
3071
|
-
|
|
3078
|
+
m(T.target.value);
|
|
3072
3079
|
}, C = (T) => {
|
|
3073
3080
|
const z = D.trim().toLowerCase();
|
|
3074
3081
|
return z.length < 1 ? !0 : T.displayName.trim().toLowerCase().includes(z) || T.description.toLowerCase().includes(z);
|
|
@@ -3077,7 +3084,7 @@ function lr({
|
|
|
3077
3084
|
return z.length < 1 ? !0 : T.displayName.trim().toLowerCase().includes(z) || T.description.toLowerCase().includes(z);
|
|
3078
3085
|
}, c = (T) => G(
|
|
3079
3086
|
"px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
|
|
3080
|
-
T ===
|
|
3087
|
+
T === p ? "text-primary border-primary" : ""
|
|
3081
3088
|
), E = !!e;
|
|
3082
3089
|
Dt(() => {
|
|
3083
3090
|
if (e) {
|
|
@@ -3091,9 +3098,9 @@ function lr({
|
|
|
3091
3098
|
E ? o(T, e) : o(T);
|
|
3092
3099
|
}, f = (T) => {
|
|
3093
3100
|
const z = (t.cssSettings || []).map((X) => X.key === T.key ? T : X);
|
|
3094
|
-
|
|
3101
|
+
a(z);
|
|
3095
3102
|
}, [M, $] = le(!1);
|
|
3096
|
-
return /* @__PURE__ */
|
|
3103
|
+
return /* @__PURE__ */ s(
|
|
3097
3104
|
xn,
|
|
3098
3105
|
{
|
|
3099
3106
|
testId: "dashboard-catalog-flyout",
|
|
@@ -3111,8 +3118,8 @@ function lr({
|
|
|
3111
3118
|
children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
|
|
3112
3119
|
/* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
|
|
3113
3120
|
/* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
|
|
3114
|
-
M ? /* @__PURE__ */
|
|
3115
|
-
/* @__PURE__ */
|
|
3121
|
+
M ? /* @__PURE__ */ s(en, { className: "size-5" }) : /* @__PURE__ */ s(Qt, { className: "size-5" }),
|
|
3122
|
+
/* @__PURE__ */ s(
|
|
3116
3123
|
"h2",
|
|
3117
3124
|
{
|
|
3118
3125
|
className: "flex-1 text-base margin-0 capitalize",
|
|
@@ -3122,7 +3129,7 @@ function lr({
|
|
|
3122
3129
|
)
|
|
3123
3130
|
] }),
|
|
3124
3131
|
/* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
|
|
3125
|
-
/* @__PURE__ */
|
|
3132
|
+
/* @__PURE__ */ s(
|
|
3126
3133
|
J,
|
|
3127
3134
|
{
|
|
3128
3135
|
"data-testid": "undo-dashboard-config-change",
|
|
@@ -3133,10 +3140,10 @@ function lr({
|
|
|
3133
3140
|
},
|
|
3134
3141
|
disabled: r.isUndoDisabled,
|
|
3135
3142
|
onClick: () => b("Undo"),
|
|
3136
|
-
children: /* @__PURE__ */
|
|
3143
|
+
children: /* @__PURE__ */ s(Zt, { className: "size-5" })
|
|
3137
3144
|
}
|
|
3138
3145
|
),
|
|
3139
|
-
/* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ s(
|
|
3140
3147
|
J,
|
|
3141
3148
|
{
|
|
3142
3149
|
"data-testid": "redo-dashboard-config-change",
|
|
@@ -3147,10 +3154,10 @@ function lr({
|
|
|
3147
3154
|
},
|
|
3148
3155
|
disabled: r.isRedoDisabled,
|
|
3149
3156
|
onClick: () => b("Redo"),
|
|
3150
|
-
children: /* @__PURE__ */
|
|
3157
|
+
children: /* @__PURE__ */ s(Jt, { className: "size-5" })
|
|
3151
3158
|
}
|
|
3152
3159
|
),
|
|
3153
|
-
/* @__PURE__ */
|
|
3160
|
+
/* @__PURE__ */ s(
|
|
3154
3161
|
J,
|
|
3155
3162
|
{
|
|
3156
3163
|
"data-testid": "reset-dashboard-to-default",
|
|
@@ -3160,18 +3167,18 @@ function lr({
|
|
|
3160
3167
|
title: "Reset this dashboard to the default configuration"
|
|
3161
3168
|
},
|
|
3162
3169
|
onClick: d,
|
|
3163
|
-
children: /* @__PURE__ */
|
|
3170
|
+
children: /* @__PURE__ */ s(Gt, { className: "size-5" })
|
|
3164
3171
|
}
|
|
3165
3172
|
)
|
|
3166
3173
|
] })
|
|
3167
3174
|
] }),
|
|
3168
3175
|
/* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
|
|
3169
|
-
/* @__PURE__ */
|
|
3170
|
-
/* @__PURE__ */
|
|
3171
|
-
!E && /* @__PURE__ */
|
|
3172
|
-
!E && /* @__PURE__ */
|
|
3176
|
+
/* @__PURE__ */ s("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
|
|
3177
|
+
/* @__PURE__ */ s("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
|
|
3178
|
+
!E && /* @__PURE__ */ s("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
|
|
3179
|
+
!E && /* @__PURE__ */ s("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ s(Xt, {}) })
|
|
3173
3180
|
] }),
|
|
3174
|
-
/* @__PURE__ */
|
|
3181
|
+
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
|
|
3175
3182
|
pt,
|
|
3176
3183
|
{
|
|
3177
3184
|
label: "Filter...",
|
|
@@ -3189,9 +3196,9 @@ function lr({
|
|
|
3189
3196
|
maxHeight: "360px"
|
|
3190
3197
|
},
|
|
3191
3198
|
children: [
|
|
3192
|
-
|
|
3199
|
+
p === 0 && w.filter(
|
|
3193
3200
|
(T) => T.metaData.categories.includes("Widget") && C(T.metaData)
|
|
3194
|
-
).map((T) => /* @__PURE__ */
|
|
3201
|
+
).map((T) => /* @__PURE__ */ s(
|
|
3195
3202
|
We,
|
|
3196
3203
|
{
|
|
3197
3204
|
widgetKey: T.widgetKey,
|
|
@@ -3201,9 +3208,9 @@ function lr({
|
|
|
3201
3208
|
},
|
|
3202
3209
|
T.widgetKey
|
|
3203
3210
|
)),
|
|
3204
|
-
|
|
3211
|
+
p === 1 && w.filter(
|
|
3205
3212
|
(T) => T.metaData.categories.includes("Chart") && C(T.metaData)
|
|
3206
|
-
).map((T) => /* @__PURE__ */
|
|
3213
|
+
).map((T) => /* @__PURE__ */ s(
|
|
3207
3214
|
We,
|
|
3208
3215
|
{
|
|
3209
3216
|
widgetKey: T.widgetKey,
|
|
@@ -3213,7 +3220,7 @@ function lr({
|
|
|
3213
3220
|
},
|
|
3214
3221
|
T.widgetKey
|
|
3215
3222
|
)),
|
|
3216
|
-
!E &&
|
|
3223
|
+
!E && p === 2 && w.filter((T) => T.metaData.categories.includes("Container")).map((T) => /* @__PURE__ */ s(
|
|
3217
3224
|
We,
|
|
3218
3225
|
{
|
|
3219
3226
|
widgetKey: T.widgetKey,
|
|
@@ -3223,7 +3230,7 @@ function lr({
|
|
|
3223
3230
|
},
|
|
3224
3231
|
T.widgetKey
|
|
3225
3232
|
)),
|
|
3226
|
-
!E &&
|
|
3233
|
+
!E && p === 3 && (t.cssSettings || []).filter(S).map((T) => /* @__PURE__ */ s(
|
|
3227
3234
|
Tn,
|
|
3228
3235
|
{
|
|
3229
3236
|
item: T,
|
|
@@ -3234,7 +3241,7 @@ function lr({
|
|
|
3234
3241
|
]
|
|
3235
3242
|
}
|
|
3236
3243
|
),
|
|
3237
|
-
/* @__PURE__ */
|
|
3244
|
+
/* @__PURE__ */ s("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ s(
|
|
3238
3245
|
J,
|
|
3239
3246
|
{
|
|
3240
3247
|
className: "bg-opacity-100",
|
|
@@ -3256,14 +3263,14 @@ export {
|
|
|
3256
3263
|
nn as CircleQuestionMark,
|
|
3257
3264
|
tn as CrosshairIcon,
|
|
3258
3265
|
ir as DashboardGrid,
|
|
3259
|
-
|
|
3266
|
+
Fe as DashboardMaxZoomScale,
|
|
3260
3267
|
Ae as DashboardMinZoomScale,
|
|
3261
3268
|
at as DashboardWidgetBase,
|
|
3262
3269
|
Mt as DashboardZoomStep,
|
|
3263
|
-
|
|
3270
|
+
Fn as DeleteIcon,
|
|
3264
3271
|
xn as DraggablePanel,
|
|
3265
3272
|
Nn as DynamicWidgetLoader,
|
|
3266
|
-
|
|
3273
|
+
Ln as EditIcon,
|
|
3267
3274
|
Vn as GridIcon,
|
|
3268
3275
|
en as HandGrabIcon,
|
|
3269
3276
|
Qt as HandIcon,
|