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