@tenorlab/react-dashboard 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import se, { useState as
|
|
2
|
-
import { jsxs as W, jsx as
|
|
1
|
+
import se, { useState as le, useCallback as ue, useMemo as at, forwardRef as ce, useRef as wt, Suspense as Ct, useEffect as St } from "react";
|
|
2
|
+
import { jsxs as W, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import st from "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const Dt = [
|
|
5
5
|
{
|
|
6
6
|
key: "grid-gap",
|
|
7
7
|
displayName: "Gap",
|
|
@@ -79,12 +79,12 @@ const St = [
|
|
|
79
79
|
defaultValue: "1.0rem",
|
|
80
80
|
value: "1.0rem"
|
|
81
81
|
}
|
|
82
|
-
],
|
|
82
|
+
], Tt = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Nt = (e, n) => Tt.includes(e) ? n : 1, Et = {
|
|
83
83
|
incrementOrDecrementValue: (e, n) => {
|
|
84
|
-
const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit,
|
|
84
|
+
const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, a = Nt(o, e.step) * n, m = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
|
|
85
85
|
return {
|
|
86
86
|
...e,
|
|
87
|
-
value:
|
|
87
|
+
value: m
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
}, Ce = {
|
|
@@ -96,14 +96,14 @@ const St = [
|
|
|
96
96
|
responsiveGrid: !1,
|
|
97
97
|
widgets: [],
|
|
98
98
|
childWidgetsConfig: [],
|
|
99
|
-
cssSettings: [...
|
|
100
|
-
}, Ae = 0.7, Le = 1,
|
|
99
|
+
cssSettings: [...Dt]
|
|
100
|
+
}, Ae = 0.7, Le = 1, _t = 0.05, ct = (e) => {
|
|
101
101
|
let n = Number(e || 0);
|
|
102
102
|
return n < Ae && (n = Ae), n > Le && (n = Le), n;
|
|
103
|
-
},
|
|
104
|
-
let t = Number(Number((
|
|
105
|
-
return
|
|
106
|
-
},
|
|
103
|
+
}, Mn = (e, n) => {
|
|
104
|
+
let t = Number(Number((_t * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
|
|
105
|
+
return ct(r);
|
|
106
|
+
}, Pn = (e) => {
|
|
107
107
|
let n = {
|
|
108
108
|
...e
|
|
109
109
|
};
|
|
@@ -119,7 +119,7 @@ const St = [
|
|
|
119
119
|
}
|
|
120
120
|
return !0;
|
|
121
121
|
}), n;
|
|
122
|
-
},
|
|
122
|
+
}, Mt = (e) => {
|
|
123
123
|
const n = e.widgets.filter(
|
|
124
124
|
(r) => r.includes("WidgetContainer")
|
|
125
125
|
), t = {};
|
|
@@ -134,7 +134,7 @@ const St = [
|
|
|
134
134
|
parentWidgetKey: o || i
|
|
135
135
|
};
|
|
136
136
|
}), e;
|
|
137
|
-
},
|
|
137
|
+
}, ge = (e, n) => {
|
|
138
138
|
const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
|
|
139
139
|
return {
|
|
140
140
|
title: i,
|
|
@@ -144,14 +144,14 @@ const St = [
|
|
|
144
144
|
noDuplicatedWidgets: !0,
|
|
145
145
|
icon: void 0
|
|
146
146
|
};
|
|
147
|
-
},
|
|
147
|
+
}, $n = (e, n, t) => {
|
|
148
148
|
const r = n[e];
|
|
149
|
-
return r ||
|
|
150
|
-
},
|
|
149
|
+
return r || ge(e, t);
|
|
150
|
+
}, Pt = (e, n) => {
|
|
151
151
|
const r = n.get(e)?.meta;
|
|
152
|
-
return r ||
|
|
153
|
-
},
|
|
154
|
-
const r = t ||
|
|
152
|
+
return r || ge(e);
|
|
153
|
+
}, $t = (e, n, t) => {
|
|
154
|
+
const r = t || ge(e);
|
|
155
155
|
return [
|
|
156
156
|
e,
|
|
157
157
|
{
|
|
@@ -162,8 +162,8 @@ const St = [
|
|
|
162
162
|
component: n
|
|
163
163
|
}
|
|
164
164
|
];
|
|
165
|
-
},
|
|
166
|
-
const r = t ||
|
|
165
|
+
}, lt = (e, n, t) => {
|
|
166
|
+
const r = t || ge(e);
|
|
167
167
|
return [
|
|
168
168
|
e,
|
|
169
169
|
{
|
|
@@ -174,22 +174,26 @@ const St = [
|
|
|
174
174
|
loader: n
|
|
175
175
|
}
|
|
176
176
|
];
|
|
177
|
-
},
|
|
177
|
+
}, Wt = (e) => {
|
|
178
178
|
const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
|
|
179
179
|
if (n && n[1]) {
|
|
180
180
|
const t = n[1], r = `Widget${t.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join("")}`, i = t.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" ");
|
|
181
181
|
return { key: r, title: i, folder: t };
|
|
182
182
|
}
|
|
183
183
|
return null;
|
|
184
|
-
},
|
|
184
|
+
}, It = (e, n, t, r) => {
|
|
185
|
+
const i = `${n}/${t}/${t}.meta.ts`, o = e[i], a = `${r}Meta`;
|
|
186
|
+
if (o && o[a])
|
|
187
|
+
return o[a];
|
|
188
|
+
}, Wn = async (e) => new Promise(async (n, t) => {
|
|
185
189
|
const r = [];
|
|
186
190
|
try {
|
|
187
191
|
const o = await (await fetch(`${e}?${Math.random()}`)).json();
|
|
188
|
-
for (const
|
|
189
|
-
const d = o[
|
|
192
|
+
for (const a in o) {
|
|
193
|
+
const d = o[a], m = () => import(
|
|
190
194
|
/* @vite-ignore */
|
|
191
195
|
d.url
|
|
192
|
-
),
|
|
196
|
+
), p = {
|
|
193
197
|
displayName: d.meta.displayName,
|
|
194
198
|
description: d.meta.description || "Remote Plugin",
|
|
195
199
|
categories: d.meta.categories || ["Widget"],
|
|
@@ -197,7 +201,7 @@ const St = [
|
|
|
197
201
|
icon: void 0
|
|
198
202
|
// Or a logic to map a string name to a Lucide component
|
|
199
203
|
};
|
|
200
|
-
r.push(
|
|
204
|
+
r.push(lt(a, m, p));
|
|
201
205
|
}
|
|
202
206
|
n({
|
|
203
207
|
entries: r,
|
|
@@ -211,18 +215,38 @@ const St = [
|
|
|
211
215
|
details: typeof i == "object" ? JSON.stringify(i) : i
|
|
212
216
|
});
|
|
213
217
|
}
|
|
214
|
-
}),
|
|
218
|
+
}), In = (e, n, t, r = !0) => {
|
|
219
|
+
const i = [];
|
|
220
|
+
for (const o in n) {
|
|
221
|
+
const a = n[o], d = Wt(o);
|
|
222
|
+
if (d && a) {
|
|
223
|
+
const { key: m, title: p, folder: g } = d;
|
|
224
|
+
let u = It(t, e, g, m);
|
|
225
|
+
if (u || (u = ge(m, {
|
|
226
|
+
title: p,
|
|
227
|
+
description: `Local ${r ? "dynamic" : "static"} widget`
|
|
228
|
+
})), r) {
|
|
229
|
+
const h = a;
|
|
230
|
+
i.push(lt(m, h, u));
|
|
231
|
+
} else {
|
|
232
|
+
const h = a.default || a;
|
|
233
|
+
i.push($t(m, h, u));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return i;
|
|
238
|
+
}, Fe = (e) => {
|
|
215
239
|
let n;
|
|
216
|
-
const t = /* @__PURE__ */ new Set(), r = (
|
|
217
|
-
const u = typeof
|
|
240
|
+
const t = /* @__PURE__ */ new Set(), r = (p, g) => {
|
|
241
|
+
const u = typeof p == "function" ? p(n) : p;
|
|
218
242
|
if (!Object.is(u, n)) {
|
|
219
|
-
const
|
|
220
|
-
n =
|
|
243
|
+
const h = n;
|
|
244
|
+
n = g ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, h));
|
|
221
245
|
}
|
|
222
|
-
}, i = () => n, d = { setState: r, getState: i, getInitialState: () =>
|
|
246
|
+
}, i = () => n, d = { setState: r, getState: i, getInitialState: () => m, subscribe: (p) => (t.add(p), () => t.delete(p)) }, m = n = e(r, i, d);
|
|
223
247
|
return d;
|
|
224
|
-
},
|
|
225
|
-
function
|
|
248
|
+
}, Ot = ((e) => e ? Fe(e) : Fe), Rt = (e) => e;
|
|
249
|
+
function kt(e, n = Rt) {
|
|
226
250
|
const t = se.useSyncExternalStore(
|
|
227
251
|
e.subscribe,
|
|
228
252
|
se.useCallback(() => n(e.getState()), [e, n]),
|
|
@@ -230,20 +254,20 @@ function It(e, n = Wt) {
|
|
|
230
254
|
);
|
|
231
255
|
return se.useDebugValue(t), t;
|
|
232
256
|
}
|
|
233
|
-
const
|
|
234
|
-
const n =
|
|
257
|
+
const jt = (e) => {
|
|
258
|
+
const n = Ot(e), t = (r) => kt(n, r);
|
|
235
259
|
return Object.assign(t, n), t;
|
|
236
|
-
},
|
|
260
|
+
}, At = ((e) => jt), Lt = (e) => {
|
|
237
261
|
const n = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
|
|
238
262
|
return `container${n.length > 0 ? Math.max(...n) + 1 : 1}`;
|
|
239
|
-
},
|
|
240
|
-
const t =
|
|
263
|
+
}, Ft = (e, n) => {
|
|
264
|
+
const t = Lt(e);
|
|
241
265
|
return `${n}_${t}`;
|
|
242
|
-
},
|
|
266
|
+
}, Ut = (e) => {
|
|
243
267
|
const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
|
|
244
268
|
if (r) {
|
|
245
269
|
if (i && n.childWidgetsConfig.find(
|
|
246
|
-
(
|
|
270
|
+
(a) => a.parentWidgetKey === r && a.widgetKey === t
|
|
247
271
|
))
|
|
248
272
|
return {
|
|
249
273
|
success: !1,
|
|
@@ -278,20 +302,20 @@ const Ot = (e) => {
|
|
|
278
302
|
}
|
|
279
303
|
};
|
|
280
304
|
}
|
|
281
|
-
},
|
|
305
|
+
}, Vt = (e, n, t) => {
|
|
282
306
|
if ((t || "").trim().length > 0) {
|
|
283
307
|
const r = e.childWidgetsConfig.filter(
|
|
284
|
-
(
|
|
308
|
+
(m) => m.parentWidgetKey !== t
|
|
285
309
|
), i = e.childWidgetsConfig.filter(
|
|
286
|
-
(
|
|
310
|
+
(m) => m.parentWidgetKey === t && m.widgetKey !== n
|
|
287
311
|
), o = [...r, ...i];
|
|
288
|
-
let
|
|
312
|
+
let a = {
|
|
289
313
|
...e,
|
|
290
314
|
childWidgetsConfig: o
|
|
291
315
|
};
|
|
292
|
-
return `${n}`.includes("Container") && (
|
|
316
|
+
return `${n}`.includes("Container") && (a = Mt(a)), {
|
|
293
317
|
success: !0,
|
|
294
|
-
updatedDashboardConfig:
|
|
318
|
+
updatedDashboardConfig: a
|
|
295
319
|
};
|
|
296
320
|
} else {
|
|
297
321
|
const r = e.widgets.filter((o) => o !== n), i = e.childWidgetsConfig.filter(
|
|
@@ -306,41 +330,41 @@ const Ot = (e) => {
|
|
|
306
330
|
}
|
|
307
331
|
};
|
|
308
332
|
}
|
|
309
|
-
},
|
|
333
|
+
}, Yt = (e, n, t, r) => {
|
|
310
334
|
if ((r || "").trim().length > 0) {
|
|
311
335
|
const i = e.childWidgetsConfig.filter(
|
|
312
|
-
(
|
|
336
|
+
(g) => g.parentWidgetKey !== r
|
|
313
337
|
);
|
|
314
338
|
let o = e.childWidgetsConfig.filter(
|
|
315
|
-
(
|
|
339
|
+
(g) => g.parentWidgetKey === r
|
|
316
340
|
);
|
|
317
|
-
const
|
|
318
|
-
let d =
|
|
319
|
-
if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d ===
|
|
341
|
+
const a = o.indexOf(t);
|
|
342
|
+
let d = a + n;
|
|
343
|
+
if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === a)
|
|
320
344
|
return {
|
|
321
345
|
success: !1,
|
|
322
346
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
323
347
|
updatedDashboardConfig: e
|
|
324
348
|
};
|
|
325
|
-
const
|
|
326
|
-
return
|
|
349
|
+
const m = [...o], [p] = m.splice(a, 1);
|
|
350
|
+
return m.splice(d, 0, p), {
|
|
327
351
|
success: !0,
|
|
328
352
|
updatedDashboardConfig: {
|
|
329
353
|
...e,
|
|
330
|
-
childWidgetsConfig: [...i, ...
|
|
354
|
+
childWidgetsConfig: [...i, ...m]
|
|
331
355
|
}
|
|
332
356
|
};
|
|
333
357
|
} else {
|
|
334
358
|
const i = e.widgets || [], o = i.indexOf(t);
|
|
335
|
-
let
|
|
336
|
-
if (
|
|
359
|
+
let a = o + n;
|
|
360
|
+
if (a = Math.max(0, a), a = Math.min(i.length - 1, a), a === o)
|
|
337
361
|
return {
|
|
338
362
|
success: !1,
|
|
339
363
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
340
364
|
updatedDashboardConfig: e
|
|
341
365
|
};
|
|
342
|
-
const d = [...i], [
|
|
343
|
-
return d.splice(
|
|
366
|
+
const d = [...i], [m] = d.splice(o, 1);
|
|
367
|
+
return d.splice(a, 0, m), {
|
|
344
368
|
success: !0,
|
|
345
369
|
updatedDashboardConfig: {
|
|
346
370
|
...e,
|
|
@@ -348,13 +372,13 @@ const Ot = (e) => {
|
|
|
348
372
|
}
|
|
349
373
|
};
|
|
350
374
|
}
|
|
351
|
-
},
|
|
375
|
+
}, qt = (e, n) => ({
|
|
352
376
|
isLoading: !1,
|
|
353
377
|
isEditing: !1,
|
|
354
378
|
allDashboardConfigs: [Ce],
|
|
355
379
|
currentDashboardConfig: Ce,
|
|
356
380
|
targetContainerKey: void 0,
|
|
357
|
-
getNextContainerKey: (t) =>
|
|
381
|
+
getNextContainerKey: (t) => Ft(n().currentDashboardConfig, t),
|
|
358
382
|
setIsLoading: (t) => (e(() => ({ isLoading: t })), t),
|
|
359
383
|
setIsEditing: (t) => {
|
|
360
384
|
let r = n().targetContainerKey;
|
|
@@ -401,12 +425,12 @@ const Ot = (e) => {
|
|
|
401
425
|
};
|
|
402
426
|
}), n().currentDashboardConfig),
|
|
403
427
|
addWidget: (t) => {
|
|
404
|
-
const r = n(), i =
|
|
428
|
+
const r = n(), i = Ut({
|
|
405
429
|
dashboardConfig: r.currentDashboardConfig,
|
|
406
430
|
...t
|
|
407
431
|
}), o = [
|
|
408
432
|
...r.allDashboardConfigs.filter(
|
|
409
|
-
(
|
|
433
|
+
(a) => a.dashboardId !== i.updatedDashboardConfig.dashboardId
|
|
410
434
|
),
|
|
411
435
|
i.updatedDashboardConfig
|
|
412
436
|
];
|
|
@@ -419,150 +443,150 @@ const Ot = (e) => {
|
|
|
419
443
|
};
|
|
420
444
|
},
|
|
421
445
|
removeWidget: (t, r) => {
|
|
422
|
-
const i = n(), o =
|
|
446
|
+
const i = n(), o = Vt(i.currentDashboardConfig, t, r), a = [
|
|
423
447
|
...i.allDashboardConfigs.filter(
|
|
424
448
|
(d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
|
|
425
449
|
),
|
|
426
450
|
o.updatedDashboardConfig
|
|
427
451
|
];
|
|
428
452
|
return o.success && e(() => ({
|
|
429
|
-
allDashboardConfigs:
|
|
453
|
+
allDashboardConfigs: a,
|
|
430
454
|
currentDashboardConfig: o.updatedDashboardConfig
|
|
431
455
|
})), {
|
|
432
456
|
...o,
|
|
433
|
-
allUpdatedDashboardConfigs:
|
|
457
|
+
allUpdatedDashboardConfigs: a
|
|
434
458
|
};
|
|
435
459
|
},
|
|
436
460
|
moveWidget: (t, r, i) => {
|
|
437
|
-
const o = n(),
|
|
461
|
+
const o = n(), a = Yt(o.currentDashboardConfig, t, r, i), d = [
|
|
438
462
|
...o.allDashboardConfigs.filter(
|
|
439
|
-
(
|
|
463
|
+
(m) => m.dashboardId !== a.updatedDashboardConfig.dashboardId
|
|
440
464
|
),
|
|
441
|
-
|
|
465
|
+
a.updatedDashboardConfig
|
|
442
466
|
];
|
|
443
|
-
return
|
|
467
|
+
return a.success && e(() => ({
|
|
444
468
|
allDashboardConfigs: d,
|
|
445
|
-
currentDashboardConfig:
|
|
469
|
+
currentDashboardConfig: a.updatedDashboardConfig
|
|
446
470
|
})), {
|
|
447
|
-
...
|
|
471
|
+
...a,
|
|
448
472
|
allUpdatedDashboardConfigs: d
|
|
449
473
|
};
|
|
450
474
|
}
|
|
451
|
-
}),
|
|
452
|
-
...
|
|
453
|
-
})),
|
|
454
|
-
const i = localStorage.getItem(
|
|
475
|
+
}), On = At()((...e) => ({
|
|
476
|
+
...qt(...e)
|
|
477
|
+
})), dt = (e, n) => `dashboards_${n}_${e}`, zt = async (e, n, t, r) => {
|
|
478
|
+
const i = localStorage.getItem(dt(e, n));
|
|
455
479
|
if (i)
|
|
456
480
|
try {
|
|
457
481
|
const o = JSON.parse(i);
|
|
458
|
-
return o.length < 1 ? [r] : (o.forEach((
|
|
459
|
-
|
|
460
|
-
const d = (
|
|
461
|
-
(
|
|
482
|
+
return o.length < 1 ? [r] : (o.forEach((a) => {
|
|
483
|
+
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);
|
|
484
|
+
const d = (a.cssSettings || []).filter(
|
|
485
|
+
(m) => r.cssSettings.some((p) => p.key === m.key)
|
|
462
486
|
);
|
|
463
487
|
if (d.length < 1)
|
|
464
|
-
|
|
488
|
+
a.cssSettings = [...r.cssSettings];
|
|
465
489
|
else {
|
|
466
|
-
d.forEach((
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
(u) => u.key ===
|
|
490
|
+
d.forEach((p) => {
|
|
491
|
+
p.value = (p.value || "").replace(/NaN/g, "");
|
|
492
|
+
const g = r.cssSettings.find(
|
|
493
|
+
(u) => u.key === p.key
|
|
470
494
|
);
|
|
471
|
-
|
|
472
|
-
u in
|
|
473
|
-
}),
|
|
495
|
+
g && (Object.keys(g).forEach((u) => {
|
|
496
|
+
u in p || (p[u] = g[u]);
|
|
497
|
+
}), p.step = g.step, p.minValue = g.minValue, p.defaultValue = g.defaultValue, p.defaultUnit = g.defaultUnit, /\d+/g.test(p.value) === !1 && (p.value = g ? g.value : "1.0rem"));
|
|
474
498
|
});
|
|
475
|
-
const
|
|
476
|
-
(
|
|
499
|
+
const m = r.cssSettings.filter((p) => !d.some(
|
|
500
|
+
(g) => g.key === p.key
|
|
477
501
|
));
|
|
478
|
-
|
|
502
|
+
a.cssSettings = [...d, ...m];
|
|
479
503
|
}
|
|
480
|
-
|
|
481
|
-
(
|
|
482
|
-
),
|
|
483
|
-
(
|
|
484
|
-
),
|
|
504
|
+
a.widgets = a.widgets.filter(
|
|
505
|
+
(m) => m.includes("WidgetContainer") || t.has(m)
|
|
506
|
+
), a.childWidgetsConfig = a.childWidgetsConfig.filter(
|
|
507
|
+
(m) => t.has(m.widgetKey)
|
|
508
|
+
), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
|
|
485
509
|
}), o);
|
|
486
510
|
} catch (o) {
|
|
487
511
|
console.warn("Error parsing saved dashboard config:", o);
|
|
488
512
|
}
|
|
489
513
|
return [r];
|
|
490
|
-
},
|
|
514
|
+
}, Bt = async (e, n, t, r) => {
|
|
491
515
|
t.forEach((o) => {
|
|
492
516
|
if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
|
|
493
517
|
throw new Error("Invalid dashboard configuration");
|
|
494
518
|
o.widgets = o.widgets.filter(
|
|
495
|
-
(
|
|
519
|
+
(a) => a.includes("WidgetContainer") || r.has(a)
|
|
496
520
|
), o.childWidgetsConfig = o.childWidgetsConfig.filter(
|
|
497
|
-
(
|
|
521
|
+
(a) => r.has(a.widgetKey)
|
|
498
522
|
), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
|
|
499
523
|
});
|
|
500
524
|
const i = JSON.stringify(t);
|
|
501
|
-
return localStorage.setItem(
|
|
502
|
-
},
|
|
503
|
-
getSavedDashboards:
|
|
504
|
-
saveDashboards:
|
|
505
|
-
},
|
|
506
|
-
const [e, n] =
|
|
507
|
-
const u =
|
|
508
|
-
n((
|
|
509
|
-
const
|
|
525
|
+
return localStorage.setItem(dt(e, n), i), !0;
|
|
526
|
+
}, Kt = {
|
|
527
|
+
getSavedDashboards: zt,
|
|
528
|
+
saveDashboards: Bt
|
|
529
|
+
}, Rn = () => Kt, kn = () => {
|
|
530
|
+
const [e, n] = le({}), [t, r] = le({}), i = ue((g) => {
|
|
531
|
+
const u = g.dashboardId;
|
|
532
|
+
n((h) => {
|
|
533
|
+
const y = {
|
|
510
534
|
undoIndex: 0,
|
|
511
|
-
config:
|
|
535
|
+
config: g
|
|
512
536
|
};
|
|
513
537
|
return r((w) => ({
|
|
514
538
|
...w,
|
|
515
539
|
[u]: 0
|
|
516
540
|
})), {
|
|
517
|
-
...
|
|
518
|
-
[u]: [
|
|
541
|
+
...h,
|
|
542
|
+
[u]: [y]
|
|
519
543
|
// Forces a reset to just this one entry
|
|
520
544
|
};
|
|
521
545
|
});
|
|
522
546
|
}, []), o = ue(
|
|
523
|
-
(
|
|
547
|
+
(g) => {
|
|
524
548
|
n((u) => {
|
|
525
|
-
const
|
|
549
|
+
const h = g.dashboardId, y = u[h] || [], w = t[h] ?? -1, v = y.slice(0, w + 1), b = {
|
|
526
550
|
undoIndex: v.length,
|
|
527
551
|
// New index based on trimmed length
|
|
528
|
-
config:
|
|
552
|
+
config: g
|
|
529
553
|
}, C = [...v, b];
|
|
530
554
|
return r((T) => ({
|
|
531
555
|
...T,
|
|
532
|
-
[
|
|
556
|
+
[h]: C.length - 1
|
|
533
557
|
// Index is now the last element's index
|
|
534
558
|
})), {
|
|
535
559
|
...u,
|
|
536
|
-
[
|
|
560
|
+
[h]: C
|
|
537
561
|
};
|
|
538
562
|
});
|
|
539
563
|
},
|
|
540
564
|
[t]
|
|
541
|
-
),
|
|
565
|
+
), a = ue((g) => {
|
|
542
566
|
n((u) => {
|
|
543
|
-
if (!u[
|
|
567
|
+
if (!u[g])
|
|
544
568
|
return u;
|
|
545
|
-
const { [
|
|
546
|
-
return
|
|
569
|
+
const { [g]: h, ...y } = u;
|
|
570
|
+
return y;
|
|
547
571
|
}), r((u) => {
|
|
548
|
-
const { [
|
|
549
|
-
return
|
|
572
|
+
const { [g]: h, ...y } = u;
|
|
573
|
+
return y;
|
|
550
574
|
});
|
|
551
575
|
}, []), d = ue(
|
|
552
|
-
(
|
|
576
|
+
(g) => {
|
|
553
577
|
r((u) => {
|
|
554
|
-
const
|
|
555
|
-
return
|
|
578
|
+
const h = u[g] ?? -1, y = Math.max(0, h - 1);
|
|
579
|
+
return y !== h ? { ...u, [g]: y } : u;
|
|
556
580
|
});
|
|
557
581
|
},
|
|
558
582
|
[
|
|
559
583
|
//loadConfigFromHistory
|
|
560
584
|
]
|
|
561
|
-
),
|
|
562
|
-
(
|
|
585
|
+
), m = ue(
|
|
586
|
+
(g) => {
|
|
563
587
|
r((u) => {
|
|
564
|
-
const
|
|
565
|
-
return w !==
|
|
588
|
+
const h = e[g]?.length || 0, y = u[g] ?? -1, w = Math.min(h - 1, y + 1);
|
|
589
|
+
return w !== y ? { ...u, [g]: w } : u;
|
|
566
590
|
});
|
|
567
591
|
},
|
|
568
592
|
[
|
|
@@ -574,12 +598,12 @@ const Ot = (e) => {
|
|
|
574
598
|
initializeHistoryForDashboard: i,
|
|
575
599
|
resetAllHistory: () => n({}),
|
|
576
600
|
addUndoEntry: o,
|
|
577
|
-
removeUndoHistoryForDashboard:
|
|
601
|
+
removeUndoHistoryForDashboard: a,
|
|
578
602
|
undo: d,
|
|
579
|
-
redo:
|
|
580
|
-
getUndoStatus: (
|
|
581
|
-
const u = t[
|
|
582
|
-
return { isUndoDisabled:
|
|
603
|
+
redo: m,
|
|
604
|
+
getUndoStatus: (g) => {
|
|
605
|
+
const u = t[g] ?? -1, h = e[g]?.length || 0, y = u <= 0, w = u >= h - 1;
|
|
606
|
+
return { isUndoDisabled: y, isRedoDisabled: w };
|
|
583
607
|
},
|
|
584
608
|
undoHistory: e,
|
|
585
609
|
historyIndex: t
|
|
@@ -590,7 +614,7 @@ function K({
|
|
|
590
614
|
children: e,
|
|
591
615
|
className: n
|
|
592
616
|
}) {
|
|
593
|
-
return /* @__PURE__ */
|
|
617
|
+
return /* @__PURE__ */ s(
|
|
594
618
|
"svg",
|
|
595
619
|
{
|
|
596
620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -607,186 +631,186 @@ function K({
|
|
|
607
631
|
}
|
|
608
632
|
);
|
|
609
633
|
}
|
|
610
|
-
function
|
|
634
|
+
function jn({ className: e }) {
|
|
611
635
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
|
|
612
|
-
/* @__PURE__ */
|
|
613
|
-
/* @__PURE__ */
|
|
614
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
637
|
+
/* @__PURE__ */ s("path", { d: "M8 12h8" }),
|
|
638
|
+
/* @__PURE__ */ s("path", { d: "M12 8v8" })
|
|
615
639
|
] });
|
|
616
640
|
}
|
|
617
|
-
function
|
|
641
|
+
function An({ className: e }) {
|
|
618
642
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
|
|
619
|
-
/* @__PURE__ */
|
|
620
|
-
/* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ s("path", { d: "M10 11v6" }),
|
|
644
|
+
/* @__PURE__ */ s("path", { d: "M14 11v6" }),
|
|
645
|
+
/* @__PURE__ */ s("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
|
|
646
|
+
/* @__PURE__ */ s("path", { d: "M3 6h18" }),
|
|
647
|
+
/* @__PURE__ */ s("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
624
648
|
] });
|
|
625
649
|
}
|
|
626
|
-
function
|
|
650
|
+
function Ln({ className: e }) {
|
|
627
651
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__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" }),
|
|
653
|
+
/* @__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" })
|
|
630
654
|
] });
|
|
631
655
|
}
|
|
632
|
-
function
|
|
656
|
+
function Fn({ className: e }) {
|
|
633
657
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ s("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
659
|
+
/* @__PURE__ */ s("path", { d: "M3 9h18" }),
|
|
660
|
+
/* @__PURE__ */ s("path", { d: "M3 15h18" }),
|
|
661
|
+
/* @__PURE__ */ s("path", { d: "M9 3v18" }),
|
|
662
|
+
/* @__PURE__ */ s("path", { d: "M15 3v18" })
|
|
639
663
|
] });
|
|
640
664
|
}
|
|
641
|
-
function
|
|
665
|
+
function Un({ className: e }) {
|
|
642
666
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ s("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
|
|
668
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
|
|
669
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
|
|
646
670
|
] });
|
|
647
671
|
}
|
|
648
|
-
function
|
|
672
|
+
function Vn({ className: e }) {
|
|
649
673
|
return /* @__PURE__ */ W(
|
|
650
674
|
K,
|
|
651
675
|
{
|
|
652
676
|
className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
|
|
653
677
|
children: [
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
/* @__PURE__ */
|
|
657
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ s("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
|
|
679
|
+
/* @__PURE__ */ s("path", { d: "M10 19v-3.96 3.15" }),
|
|
680
|
+
/* @__PURE__ */ s("path", { d: "M7 19h5" }),
|
|
681
|
+
/* @__PURE__ */ s("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
|
|
658
682
|
]
|
|
659
683
|
}
|
|
660
684
|
);
|
|
661
685
|
}
|
|
662
|
-
function
|
|
686
|
+
function ut({ className: e }) {
|
|
663
687
|
return /* @__PURE__ */ W(
|
|
664
688
|
K,
|
|
665
689
|
{
|
|
666
690
|
className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
|
|
667
691
|
children: [
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
693
|
+
/* @__PURE__ */ s("path", { d: "m12 8-4 4 4 4" }),
|
|
694
|
+
/* @__PURE__ */ s("path", { d: "M16 12H8" })
|
|
671
695
|
]
|
|
672
696
|
}
|
|
673
697
|
);
|
|
674
698
|
}
|
|
675
|
-
function
|
|
699
|
+
function ft({ className: e }) {
|
|
676
700
|
return /* @__PURE__ */ W(
|
|
677
701
|
K,
|
|
678
702
|
{
|
|
679
703
|
className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
|
|
680
704
|
children: [
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
/* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
706
|
+
/* @__PURE__ */ s("path", { d: "m12 16 4-4-4-4" }),
|
|
707
|
+
/* @__PURE__ */ s("path", { d: "M8 12h8" })
|
|
684
708
|
]
|
|
685
709
|
}
|
|
686
710
|
);
|
|
687
711
|
}
|
|
688
|
-
function
|
|
712
|
+
function Ht({ className: e }) {
|
|
689
713
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__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" }),
|
|
715
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "3" })
|
|
692
716
|
] });
|
|
693
717
|
}
|
|
694
|
-
function
|
|
718
|
+
function Yn({ className: e }) {
|
|
695
719
|
return /* @__PURE__ */ W(
|
|
696
720
|
K,
|
|
697
721
|
{
|
|
698
722
|
className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
|
|
699
723
|
children: [
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ s("rect", { width: "10", height: "14", x: "3", y: "8", rx: "2" }),
|
|
725
|
+
/* @__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" }),
|
|
726
|
+
/* @__PURE__ */ s("path", { d: "M8 18h.01" })
|
|
703
727
|
]
|
|
704
728
|
}
|
|
705
729
|
);
|
|
706
730
|
}
|
|
707
|
-
function
|
|
731
|
+
function ht({ className: e }) {
|
|
708
732
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
734
|
+
/* @__PURE__ */ s("path", { d: "m15 9-6 6" }),
|
|
735
|
+
/* @__PURE__ */ s("path", { d: "m9 9 6 6" })
|
|
712
736
|
] });
|
|
713
737
|
}
|
|
714
|
-
function
|
|
738
|
+
function qn({ className: e }) {
|
|
715
739
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
|
|
741
|
+
/* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
742
|
+
/* @__PURE__ */ s("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
|
|
743
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
720
744
|
] });
|
|
721
745
|
}
|
|
722
|
-
function
|
|
746
|
+
function zn({ className: e }) {
|
|
723
747
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ s("circle", { cx: "11", cy: "11", r: "8" }),
|
|
749
|
+
/* @__PURE__ */ s("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
750
|
+
/* @__PURE__ */ s("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
727
751
|
] });
|
|
728
752
|
}
|
|
729
|
-
function
|
|
753
|
+
function Xt({ className: e }) {
|
|
730
754
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
/* @__PURE__ */
|
|
734
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ s("path", { d: "M10 2h4" }),
|
|
756
|
+
/* @__PURE__ */ s("path", { d: "M12 14v-4" }),
|
|
757
|
+
/* @__PURE__ */ s("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
|
|
758
|
+
/* @__PURE__ */ s("path", { d: "M9 17H4v5" })
|
|
735
759
|
] });
|
|
736
760
|
}
|
|
737
|
-
function
|
|
761
|
+
function Gt({ className: e }) {
|
|
738
762
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ s("path", { d: "M3 7v6h6" }),
|
|
764
|
+
/* @__PURE__ */ s("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
|
|
741
765
|
] });
|
|
742
766
|
}
|
|
743
|
-
function
|
|
767
|
+
function Zt({ className: e }) {
|
|
744
768
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ s("path", { d: "M21 7v6h-6" }),
|
|
770
|
+
/* @__PURE__ */ s("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
|
|
747
771
|
] });
|
|
748
772
|
}
|
|
749
|
-
function
|
|
773
|
+
function Jt({ className: e }) {
|
|
750
774
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ s("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
|
|
776
|
+
/* @__PURE__ */ s("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
777
|
+
/* @__PURE__ */ s("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
|
|
778
|
+
/* @__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" })
|
|
755
779
|
] });
|
|
756
780
|
}
|
|
757
|
-
function
|
|
781
|
+
function Qt({ className: e }) {
|
|
758
782
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ s("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
|
|
784
|
+
/* @__PURE__ */ s("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
785
|
+
/* @__PURE__ */ s("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
|
|
786
|
+
/* @__PURE__ */ s("path", { d: "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
|
|
787
|
+
/* @__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" })
|
|
764
788
|
] });
|
|
765
789
|
}
|
|
766
|
-
function
|
|
790
|
+
function en({ className: e }) {
|
|
767
791
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
/* @__PURE__ */
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ s("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
|
|
793
|
+
/* @__PURE__ */ s("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
|
|
794
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
|
|
795
|
+
/* @__PURE__ */ s("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
|
|
772
796
|
] });
|
|
773
797
|
}
|
|
774
|
-
function
|
|
798
|
+
function Bn({ className: e }) {
|
|
775
799
|
return /* @__PURE__ */ W(K, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
801
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "6" }),
|
|
802
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "2" })
|
|
779
803
|
] });
|
|
780
804
|
}
|
|
781
|
-
function
|
|
805
|
+
function tn({ className: e }) {
|
|
782
806
|
return /* @__PURE__ */ W(
|
|
783
807
|
K,
|
|
784
808
|
{
|
|
785
809
|
className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
|
|
786
810
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
811
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
812
|
+
/* @__PURE__ */ s("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
813
|
+
/* @__PURE__ */ s("path", { d: "M12 17h.01" })
|
|
790
814
|
]
|
|
791
815
|
}
|
|
792
816
|
);
|
|
@@ -801,7 +825,7 @@ const Z = (e, ...n) => [
|
|
|
801
825
|
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);
|
|
802
826
|
const r = window.getComputedStyle(t)[n];
|
|
803
827
|
return document.body.removeChild(t), r;
|
|
804
|
-
},
|
|
828
|
+
}, Kn = {
|
|
805
829
|
primary: re("text-primary", "color"),
|
|
806
830
|
secondary: re("text-secondary", "color"),
|
|
807
831
|
success: re("text-success", "color"),
|
|
@@ -811,7 +835,7 @@ const Z = (e, ...n) => [
|
|
|
811
835
|
disabled: re("text-disabled", "color"),
|
|
812
836
|
neutral: re("text-neutral", "color"),
|
|
813
837
|
body: re("text-body", "color")
|
|
814
|
-
},
|
|
838
|
+
}, Hn = {
|
|
815
839
|
getCssVariableValue: (e) => {
|
|
816
840
|
const n = document.documentElement;
|
|
817
841
|
return getComputedStyle(n).getPropertyValue(e).trim() || null;
|
|
@@ -825,28 +849,28 @@ const Z = (e, ...n) => [
|
|
|
825
849
|
n.style.setProperty(t.cssProperty, t.value);
|
|
826
850
|
});
|
|
827
851
|
}
|
|
828
|
-
},
|
|
852
|
+
}, gt = (e) => {
|
|
829
853
|
const n = `${e}`.split("_");
|
|
830
854
|
return n.length > 1 ? n[1].replace(/(\D)(\d+)/, "$1 $2") : "Container";
|
|
831
|
-
},
|
|
855
|
+
}, mt = ({
|
|
832
856
|
label: e,
|
|
833
857
|
className: n,
|
|
834
858
|
size: t = "medium",
|
|
835
859
|
value: r,
|
|
836
860
|
onChange: i,
|
|
837
861
|
onKeyDown: o,
|
|
838
|
-
placeholder:
|
|
862
|
+
placeholder: a = ""
|
|
839
863
|
}) => {
|
|
840
|
-
const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]),
|
|
864
|
+
const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), m = Z("flex flex-col mb-4", n || ""), g = `${Z(`
|
|
841
865
|
block w-full rounded-md px-3 py-1.5 text-base
|
|
842
866
|
bg-formfield content-formfield
|
|
843
867
|
outline-1 -outline-offset-1 outline-primary
|
|
844
868
|
placeholder:text-disabled
|
|
845
869
|
focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
|
|
846
870
|
`)} ${d}`;
|
|
847
|
-
return /* @__PURE__ */ W("div", { className:
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ W("div", { className: m, children: [
|
|
872
|
+
/* @__PURE__ */ s("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
|
|
873
|
+
/* @__PURE__ */ s(
|
|
850
874
|
"input",
|
|
851
875
|
{
|
|
852
876
|
id: e,
|
|
@@ -854,8 +878,8 @@ const Z = (e, ...n) => [
|
|
|
854
878
|
value: r,
|
|
855
879
|
onChange: i,
|
|
856
880
|
onKeyDown: (u) => o && o(u),
|
|
857
|
-
placeholder:
|
|
858
|
-
className:
|
|
881
|
+
placeholder: a,
|
|
882
|
+
className: g,
|
|
859
883
|
"aria-label": e
|
|
860
884
|
}
|
|
861
885
|
)
|
|
@@ -877,17 +901,17 @@ function J(e) {
|
|
|
877
901
|
isIconButton: r,
|
|
878
902
|
className: i,
|
|
879
903
|
buttonType: o,
|
|
880
|
-
category:
|
|
904
|
+
category: a,
|
|
881
905
|
px: d,
|
|
882
|
-
py:
|
|
883
|
-
children:
|
|
884
|
-
...
|
|
906
|
+
py: m,
|
|
907
|
+
children: p,
|
|
908
|
+
...g
|
|
885
909
|
} = e, u = () => {
|
|
886
|
-
const
|
|
910
|
+
const y = e.isIconButton || !1, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
|
|
887
911
|
let D = (e.borderColor || "").trim();
|
|
888
912
|
D = D.length > 0 ? D : "";
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
913
|
+
const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", c = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
|
|
914
|
+
if (y)
|
|
891
915
|
return Z(
|
|
892
916
|
"flex flex-row items-center",
|
|
893
917
|
b ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
|
|
@@ -909,30 +933,30 @@ function J(e) {
|
|
|
909
933
|
const E = O.replace(/\[category\]/g, w).trim();
|
|
910
934
|
$.push(E);
|
|
911
935
|
}
|
|
912
|
-
return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")),
|
|
913
|
-
},
|
|
914
|
-
const
|
|
936
|
+
return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), l > 0 ? ($.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${N}`), $.push(`hover:shadow-${c} group-hover:shadow-${c}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
|
|
937
|
+
}, h = () => {
|
|
938
|
+
const y = e.px || 0.7, w = e.py || 0.25;
|
|
915
939
|
return {
|
|
916
|
-
padding: r ? 0 : `${w}rem ${
|
|
940
|
+
padding: r ? 0 : `${w}rem ${y}rem `
|
|
917
941
|
};
|
|
918
942
|
};
|
|
919
|
-
return /* @__PURE__ */
|
|
943
|
+
return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: h(), ...g, children: p });
|
|
920
944
|
}
|
|
921
|
-
const
|
|
922
|
-
function
|
|
923
|
-
const { children: n, testId: t, classNames: r, direction: i, ...o } = e,
|
|
924
|
-
return /* @__PURE__ */
|
|
945
|
+
const nn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
|
|
946
|
+
function rn(e) {
|
|
947
|
+
const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = nn(e);
|
|
948
|
+
return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
|
|
925
949
|
}
|
|
926
|
-
const
|
|
950
|
+
const Xn = ce(
|
|
927
951
|
(e, n) => {
|
|
928
|
-
const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"),
|
|
952
|
+
const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), a = Z(
|
|
929
953
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
930
954
|
rounded-md border`,
|
|
931
955
|
r || ""
|
|
932
956
|
);
|
|
933
|
-
return /* @__PURE__ */
|
|
957
|
+
return /* @__PURE__ */ s(rn, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
|
|
934
958
|
}
|
|
935
|
-
),
|
|
959
|
+
), Gn = ce((e, n) => /* @__PURE__ */ s(
|
|
936
960
|
"div",
|
|
937
961
|
{
|
|
938
962
|
"data-testid": e.testId || "not-set",
|
|
@@ -943,8 +967,8 @@ const Kn = le(
|
|
|
943
967
|
},
|
|
944
968
|
children: e.children
|
|
945
969
|
}
|
|
946
|
-
)),
|
|
947
|
-
(e, n) => /* @__PURE__ */
|
|
970
|
+
)), Zn = ce(
|
|
971
|
+
(e, n) => /* @__PURE__ */ s(
|
|
948
972
|
"div",
|
|
949
973
|
{
|
|
950
974
|
"data-testid": e.testId || "not-set",
|
|
@@ -952,7 +976,7 @@ const Kn = le(
|
|
|
952
976
|
children: e.children
|
|
953
977
|
}
|
|
954
978
|
)
|
|
955
|
-
),
|
|
979
|
+
), Jn = ce((e, n) => /* @__PURE__ */ s(
|
|
956
980
|
"div",
|
|
957
981
|
{
|
|
958
982
|
"data-testid": e.testId || "not-set",
|
|
@@ -964,36 +988,36 @@ const Kn = le(
|
|
|
964
988
|
children: e.children
|
|
965
989
|
}
|
|
966
990
|
));
|
|
967
|
-
function
|
|
991
|
+
function on(e) {
|
|
968
992
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
969
993
|
}
|
|
970
|
-
var fe = { exports: {} }, De = {},
|
|
994
|
+
var fe = { exports: {} }, De = {}, pe = { exports: {} }, ye = { exports: {} }, V = {};
|
|
971
995
|
var Ue;
|
|
972
|
-
function
|
|
996
|
+
function an() {
|
|
973
997
|
if (Ue) return V;
|
|
974
998
|
Ue = 1;
|
|
975
|
-
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,
|
|
976
|
-
function S(
|
|
977
|
-
if (typeof
|
|
978
|
-
var N =
|
|
999
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1000
|
+
function S(l) {
|
|
1001
|
+
if (typeof l == "object" && l !== null) {
|
|
1002
|
+
var N = l.$$typeof;
|
|
979
1003
|
switch (N) {
|
|
980
1004
|
case n:
|
|
981
|
-
switch (
|
|
982
|
-
case y:
|
|
1005
|
+
switch (l = l.type, l) {
|
|
983
1006
|
case m:
|
|
1007
|
+
case p:
|
|
984
1008
|
case r:
|
|
985
1009
|
case o:
|
|
986
1010
|
case i:
|
|
987
1011
|
case u:
|
|
988
|
-
return
|
|
1012
|
+
return l;
|
|
989
1013
|
default:
|
|
990
|
-
switch (
|
|
1014
|
+
switch (l = l && l.$$typeof, l) {
|
|
991
1015
|
case d:
|
|
992
|
-
case
|
|
1016
|
+
case g:
|
|
993
1017
|
case w:
|
|
994
|
-
case
|
|
995
|
-
case
|
|
996
|
-
return
|
|
1018
|
+
case y:
|
|
1019
|
+
case a:
|
|
1020
|
+
return l;
|
|
997
1021
|
default:
|
|
998
1022
|
return N;
|
|
999
1023
|
}
|
|
@@ -1003,69 +1027,69 @@ function nn() {
|
|
|
1003
1027
|
}
|
|
1004
1028
|
}
|
|
1005
1029
|
}
|
|
1006
|
-
function D(
|
|
1007
|
-
return S(
|
|
1008
|
-
}
|
|
1009
|
-
return V.AsyncMode =
|
|
1010
|
-
return D(
|
|
1011
|
-
}, V.isConcurrentMode = D, V.isContextConsumer = function(
|
|
1012
|
-
return S(
|
|
1013
|
-
}, V.isContextProvider = function(
|
|
1014
|
-
return S(
|
|
1015
|
-
}, V.isElement = function(
|
|
1016
|
-
return typeof
|
|
1017
|
-
}, V.isForwardRef = function(
|
|
1018
|
-
return S(
|
|
1019
|
-
}, V.isFragment = function(
|
|
1020
|
-
return S(
|
|
1021
|
-
}, V.isLazy = function(
|
|
1022
|
-
return S(
|
|
1023
|
-
}, V.isMemo = function(
|
|
1024
|
-
return S(
|
|
1025
|
-
}, V.isPortal = function(
|
|
1026
|
-
return S(
|
|
1027
|
-
}, V.isProfiler = function(
|
|
1028
|
-
return S(
|
|
1029
|
-
}, V.isStrictMode = function(
|
|
1030
|
-
return S(
|
|
1031
|
-
}, V.isSuspense = function(
|
|
1032
|
-
return S(
|
|
1033
|
-
}, V.isValidElementType = function(
|
|
1034
|
-
return typeof
|
|
1030
|
+
function D(l) {
|
|
1031
|
+
return S(l) === p;
|
|
1032
|
+
}
|
|
1033
|
+
return V.AsyncMode = m, V.ConcurrentMode = p, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef = g, V.Fragment = r, V.Lazy = w, V.Memo = y, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(l) {
|
|
1034
|
+
return D(l) || S(l) === m;
|
|
1035
|
+
}, V.isConcurrentMode = D, V.isContextConsumer = function(l) {
|
|
1036
|
+
return S(l) === d;
|
|
1037
|
+
}, V.isContextProvider = function(l) {
|
|
1038
|
+
return S(l) === a;
|
|
1039
|
+
}, V.isElement = function(l) {
|
|
1040
|
+
return typeof l == "object" && l !== null && l.$$typeof === n;
|
|
1041
|
+
}, V.isForwardRef = function(l) {
|
|
1042
|
+
return S(l) === g;
|
|
1043
|
+
}, V.isFragment = function(l) {
|
|
1044
|
+
return S(l) === r;
|
|
1045
|
+
}, V.isLazy = function(l) {
|
|
1046
|
+
return S(l) === w;
|
|
1047
|
+
}, V.isMemo = function(l) {
|
|
1048
|
+
return S(l) === y;
|
|
1049
|
+
}, V.isPortal = function(l) {
|
|
1050
|
+
return S(l) === t;
|
|
1051
|
+
}, V.isProfiler = function(l) {
|
|
1052
|
+
return S(l) === o;
|
|
1053
|
+
}, V.isStrictMode = function(l) {
|
|
1054
|
+
return S(l) === i;
|
|
1055
|
+
}, V.isSuspense = function(l) {
|
|
1056
|
+
return S(l) === u;
|
|
1057
|
+
}, V.isValidElementType = function(l) {
|
|
1058
|
+
return typeof l == "string" || typeof l == "function" || l === r || l === p || l === o || l === i || l === u || l === h || typeof l == "object" && l !== null && (l.$$typeof === w || l.$$typeof === y || l.$$typeof === a || l.$$typeof === d || l.$$typeof === g || l.$$typeof === b || l.$$typeof === C || l.$$typeof === T || l.$$typeof === v);
|
|
1035
1059
|
}, V.typeOf = S, V;
|
|
1036
1060
|
}
|
|
1037
1061
|
var Y = {};
|
|
1038
1062
|
var Ve;
|
|
1039
|
-
function
|
|
1063
|
+
function sn() {
|
|
1040
1064
|
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1041
|
-
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,
|
|
1065
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1042
1066
|
function S(_) {
|
|
1043
1067
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1044
|
-
_ === r || _ ===
|
|
1068
|
+
_ === r || _ === p || _ === o || _ === i || _ === u || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === g || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
|
|
1045
1069
|
}
|
|
1046
1070
|
function D(_) {
|
|
1047
1071
|
if (typeof _ == "object" && _ !== null) {
|
|
1048
1072
|
var te = _.$$typeof;
|
|
1049
1073
|
switch (te) {
|
|
1050
1074
|
case n:
|
|
1051
|
-
var
|
|
1052
|
-
switch (
|
|
1053
|
-
case y:
|
|
1075
|
+
var me = _.type;
|
|
1076
|
+
switch (me) {
|
|
1054
1077
|
case m:
|
|
1078
|
+
case p:
|
|
1055
1079
|
case r:
|
|
1056
1080
|
case o:
|
|
1057
1081
|
case i:
|
|
1058
1082
|
case u:
|
|
1059
|
-
return
|
|
1083
|
+
return me;
|
|
1060
1084
|
default:
|
|
1061
|
-
var
|
|
1062
|
-
switch (
|
|
1085
|
+
var je = me && me.$$typeof;
|
|
1086
|
+
switch (je) {
|
|
1063
1087
|
case d:
|
|
1064
|
-
case
|
|
1088
|
+
case g:
|
|
1065
1089
|
case w:
|
|
1066
|
-
case
|
|
1067
|
-
case
|
|
1068
|
-
return
|
|
1090
|
+
case y:
|
|
1091
|
+
case a:
|
|
1092
|
+
return je;
|
|
1069
1093
|
default:
|
|
1070
1094
|
return te;
|
|
1071
1095
|
}
|
|
@@ -1075,24 +1099,24 @@ function rn() {
|
|
|
1075
1099
|
}
|
|
1076
1100
|
}
|
|
1077
1101
|
}
|
|
1078
|
-
var
|
|
1102
|
+
var l = m, N = p, c = d, f = a, P = n, $ = g, O = r, E = w, z = y, X = t, Q = o, H = i, ee = u, ae = !1;
|
|
1079
1103
|
function de(_) {
|
|
1080
|
-
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) ===
|
|
1104
|
+
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) === m;
|
|
1081
1105
|
}
|
|
1082
1106
|
function x(_) {
|
|
1083
|
-
return D(_) ===
|
|
1107
|
+
return D(_) === p;
|
|
1084
1108
|
}
|
|
1085
1109
|
function M(_) {
|
|
1086
1110
|
return D(_) === d;
|
|
1087
1111
|
}
|
|
1088
1112
|
function A(_) {
|
|
1089
|
-
return D(_) ===
|
|
1113
|
+
return D(_) === a;
|
|
1090
1114
|
}
|
|
1091
|
-
function
|
|
1115
|
+
function k(_) {
|
|
1092
1116
|
return typeof _ == "object" && _ !== null && _.$$typeof === n;
|
|
1093
1117
|
}
|
|
1094
1118
|
function I(_) {
|
|
1095
|
-
return D(_) ===
|
|
1119
|
+
return D(_) === g;
|
|
1096
1120
|
}
|
|
1097
1121
|
function L(_) {
|
|
1098
1122
|
return D(_) === r;
|
|
@@ -1100,8 +1124,8 @@ function rn() {
|
|
|
1100
1124
|
function R(_) {
|
|
1101
1125
|
return D(_) === w;
|
|
1102
1126
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return D(_) ===
|
|
1127
|
+
function j(_) {
|
|
1128
|
+
return D(_) === y;
|
|
1105
1129
|
}
|
|
1106
1130
|
function F(_) {
|
|
1107
1131
|
return D(_) === t;
|
|
@@ -1115,15 +1139,15 @@ function rn() {
|
|
|
1115
1139
|
function G(_) {
|
|
1116
1140
|
return D(_) === u;
|
|
1117
1141
|
}
|
|
1118
|
-
Y.AsyncMode =
|
|
1142
|
+
Y.AsyncMode = l, Y.ConcurrentMode = N, Y.ContextConsumer = c, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
|
|
1119
1143
|
})()), Y;
|
|
1120
1144
|
}
|
|
1121
1145
|
var Ye;
|
|
1122
|
-
function
|
|
1123
|
-
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ?
|
|
1146
|
+
function pt() {
|
|
1147
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = an() : ye.exports = sn()), ye.exports;
|
|
1124
1148
|
}
|
|
1125
1149
|
var Te, qe;
|
|
1126
|
-
function
|
|
1150
|
+
function cn() {
|
|
1127
1151
|
if (qe) return Te;
|
|
1128
1152
|
qe = 1;
|
|
1129
1153
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
@@ -1139,33 +1163,33 @@ function on() {
|
|
|
1139
1163
|
var o = new String("abc");
|
|
1140
1164
|
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
1141
1165
|
return !1;
|
|
1142
|
-
for (var
|
|
1143
|
-
|
|
1144
|
-
var
|
|
1145
|
-
return
|
|
1166
|
+
for (var a = {}, d = 0; d < 10; d++)
|
|
1167
|
+
a["_" + String.fromCharCode(d)] = d;
|
|
1168
|
+
var m = Object.getOwnPropertyNames(a).map(function(g) {
|
|
1169
|
+
return a[g];
|
|
1146
1170
|
});
|
|
1147
|
-
if (
|
|
1171
|
+
if (m.join("") !== "0123456789")
|
|
1148
1172
|
return !1;
|
|
1149
|
-
var
|
|
1150
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1151
|
-
|
|
1152
|
-
}), Object.keys(Object.assign({},
|
|
1173
|
+
var p = {};
|
|
1174
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(g) {
|
|
1175
|
+
p[g] = g;
|
|
1176
|
+
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
1153
1177
|
} catch {
|
|
1154
1178
|
return !1;
|
|
1155
1179
|
}
|
|
1156
1180
|
}
|
|
1157
|
-
return Te = i() ? Object.assign : function(o,
|
|
1158
|
-
for (var d,
|
|
1159
|
-
d = Object(arguments[
|
|
1181
|
+
return Te = i() ? Object.assign : function(o, a) {
|
|
1182
|
+
for (var d, m = r(o), p, g = 1; g < arguments.length; g++) {
|
|
1183
|
+
d = Object(arguments[g]);
|
|
1160
1184
|
for (var u in d)
|
|
1161
|
-
n.call(d, u) && (
|
|
1185
|
+
n.call(d, u) && (m[u] = d[u]);
|
|
1162
1186
|
if (e) {
|
|
1163
|
-
|
|
1164
|
-
for (var
|
|
1165
|
-
t.call(d,
|
|
1187
|
+
p = e(d);
|
|
1188
|
+
for (var h = 0; h < p.length; h++)
|
|
1189
|
+
t.call(d, p[h]) && (m[p[h]] = d[p[h]]);
|
|
1166
1190
|
}
|
|
1167
1191
|
}
|
|
1168
|
-
return
|
|
1192
|
+
return m;
|
|
1169
1193
|
}, Te;
|
|
1170
1194
|
}
|
|
1171
1195
|
var Ne, ze;
|
|
@@ -1176,49 +1200,49 @@ function Oe() {
|
|
|
1176
1200
|
return Ne = e, Ne;
|
|
1177
1201
|
}
|
|
1178
1202
|
var Ee, Be;
|
|
1179
|
-
function
|
|
1203
|
+
function yt() {
|
|
1180
1204
|
return Be || (Be = 1, Ee = Function.call.bind(Object.prototype.hasOwnProperty)), Ee;
|
|
1181
1205
|
}
|
|
1182
1206
|
var _e, Ke;
|
|
1183
|
-
function
|
|
1207
|
+
function ln() {
|
|
1184
1208
|
if (Ke) return _e;
|
|
1185
1209
|
Ke = 1;
|
|
1186
1210
|
var e = function() {
|
|
1187
1211
|
};
|
|
1188
1212
|
if (process.env.NODE_ENV !== "production") {
|
|
1189
|
-
var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */
|
|
1213
|
+
var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ yt();
|
|
1190
1214
|
e = function(o) {
|
|
1191
|
-
var
|
|
1192
|
-
typeof console < "u" && console.error(
|
|
1215
|
+
var a = "Warning: " + o;
|
|
1216
|
+
typeof console < "u" && console.error(a);
|
|
1193
1217
|
try {
|
|
1194
|
-
throw new Error(
|
|
1218
|
+
throw new Error(a);
|
|
1195
1219
|
} catch {
|
|
1196
1220
|
}
|
|
1197
1221
|
};
|
|
1198
1222
|
}
|
|
1199
|
-
function i(o,
|
|
1223
|
+
function i(o, a, d, m, p) {
|
|
1200
1224
|
if (process.env.NODE_ENV !== "production") {
|
|
1201
|
-
for (var
|
|
1202
|
-
if (r(o,
|
|
1225
|
+
for (var g in o)
|
|
1226
|
+
if (r(o, g)) {
|
|
1203
1227
|
var u;
|
|
1204
1228
|
try {
|
|
1205
|
-
if (typeof o[
|
|
1206
|
-
var
|
|
1207
|
-
(
|
|
1229
|
+
if (typeof o[g] != "function") {
|
|
1230
|
+
var h = Error(
|
|
1231
|
+
(m || "React class") + ": " + d + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1208
1232
|
);
|
|
1209
|
-
throw
|
|
1233
|
+
throw h.name = "Invariant Violation", h;
|
|
1210
1234
|
}
|
|
1211
|
-
u = o[
|
|
1235
|
+
u = o[g](a, g, m, d, null, n);
|
|
1212
1236
|
} catch (w) {
|
|
1213
1237
|
u = w;
|
|
1214
1238
|
}
|
|
1215
1239
|
if (u && !(u instanceof Error) && e(
|
|
1216
|
-
(
|
|
1240
|
+
(m || "React class") + ": type specification of " + d + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1217
1241
|
), u instanceof Error && !(u.message in t)) {
|
|
1218
1242
|
t[u.message] = !0;
|
|
1219
|
-
var
|
|
1243
|
+
var y = p ? p() : "";
|
|
1220
1244
|
e(
|
|
1221
|
-
"Failed " + d + " type: " + u.message + (
|
|
1245
|
+
"Failed " + d + " type: " + u.message + (y ?? "")
|
|
1222
1246
|
);
|
|
1223
1247
|
}
|
|
1224
1248
|
}
|
|
@@ -1229,30 +1253,30 @@ function an() {
|
|
|
1229
1253
|
}, _e = i, _e;
|
|
1230
1254
|
}
|
|
1231
1255
|
var Me, He;
|
|
1232
|
-
function
|
|
1256
|
+
function dn() {
|
|
1233
1257
|
if (He) return Me;
|
|
1234
1258
|
He = 1;
|
|
1235
|
-
var e =
|
|
1259
|
+
var e = pt(), n = cn(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ yt(), i = /* @__PURE__ */ ln(), o = function() {
|
|
1236
1260
|
};
|
|
1237
1261
|
process.env.NODE_ENV !== "production" && (o = function(d) {
|
|
1238
|
-
var
|
|
1239
|
-
typeof console < "u" && console.error(
|
|
1262
|
+
var m = "Warning: " + d;
|
|
1263
|
+
typeof console < "u" && console.error(m);
|
|
1240
1264
|
try {
|
|
1241
|
-
throw new Error(
|
|
1265
|
+
throw new Error(m);
|
|
1242
1266
|
} catch {
|
|
1243
1267
|
}
|
|
1244
1268
|
});
|
|
1245
|
-
function
|
|
1269
|
+
function a() {
|
|
1246
1270
|
return null;
|
|
1247
1271
|
}
|
|
1248
|
-
return Me = function(d,
|
|
1249
|
-
var
|
|
1272
|
+
return Me = function(d, m) {
|
|
1273
|
+
var p = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
1250
1274
|
function u(x) {
|
|
1251
|
-
var M = x && (
|
|
1275
|
+
var M = x && (p && x[p] || x[g]);
|
|
1252
1276
|
if (typeof M == "function")
|
|
1253
1277
|
return M;
|
|
1254
1278
|
}
|
|
1255
|
-
var
|
|
1279
|
+
var h = "<<anonymous>>", y = {
|
|
1256
1280
|
array: C("array"),
|
|
1257
1281
|
bigint: C("bigint"),
|
|
1258
1282
|
bool: C("boolean"),
|
|
@@ -1264,11 +1288,11 @@ function sn() {
|
|
|
1264
1288
|
any: T(),
|
|
1265
1289
|
arrayOf: S,
|
|
1266
1290
|
element: D(),
|
|
1267
|
-
elementType:
|
|
1291
|
+
elementType: l(),
|
|
1268
1292
|
instanceOf: N,
|
|
1269
1293
|
node: $(),
|
|
1270
1294
|
objectOf: f,
|
|
1271
|
-
oneOf:
|
|
1295
|
+
oneOf: c,
|
|
1272
1296
|
oneOfType: P,
|
|
1273
1297
|
shape: E,
|
|
1274
1298
|
exact: z
|
|
@@ -1283,29 +1307,29 @@ function sn() {
|
|
|
1283
1307
|
function b(x) {
|
|
1284
1308
|
if (process.env.NODE_ENV !== "production")
|
|
1285
1309
|
var M = {}, A = 0;
|
|
1286
|
-
function
|
|
1287
|
-
if (F = F ||
|
|
1288
|
-
if (
|
|
1310
|
+
function k(L, R, j, F, q, U, G) {
|
|
1311
|
+
if (F = F || h, U = U || j, G !== t) {
|
|
1312
|
+
if (m) {
|
|
1289
1313
|
var _ = new Error(
|
|
1290
1314
|
"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"
|
|
1291
1315
|
);
|
|
1292
1316
|
throw _.name = "Invariant Violation", _;
|
|
1293
1317
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1294
|
-
var te = F + ":" +
|
|
1318
|
+
var te = F + ":" + j;
|
|
1295
1319
|
!M[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1296
1320
|
A < 3 && (o(
|
|
1297
1321
|
"You are manually calling a React.PropTypes validation function for the `" + U + "` 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."
|
|
1298
1322
|
), M[te] = !0, A++);
|
|
1299
1323
|
}
|
|
1300
1324
|
}
|
|
1301
|
-
return R[
|
|
1325
|
+
return R[j] == null ? L ? R[j] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, j, F, q, U);
|
|
1302
1326
|
}
|
|
1303
|
-
var I =
|
|
1304
|
-
return I.isRequired =
|
|
1327
|
+
var I = k.bind(null, !1);
|
|
1328
|
+
return I.isRequired = k.bind(null, !0), I;
|
|
1305
1329
|
}
|
|
1306
1330
|
function C(x) {
|
|
1307
|
-
function M(A,
|
|
1308
|
-
var F = A[
|
|
1331
|
+
function M(A, k, I, L, R, j) {
|
|
1332
|
+
var F = A[k], q = H(F);
|
|
1309
1333
|
if (q !== x) {
|
|
1310
1334
|
var U = ee(F);
|
|
1311
1335
|
return new v(
|
|
@@ -1318,19 +1342,19 @@ function sn() {
|
|
|
1318
1342
|
return b(M);
|
|
1319
1343
|
}
|
|
1320
1344
|
function T() {
|
|
1321
|
-
return b(
|
|
1345
|
+
return b(a);
|
|
1322
1346
|
}
|
|
1323
1347
|
function S(x) {
|
|
1324
|
-
function M(A,
|
|
1348
|
+
function M(A, k, I, L, R) {
|
|
1325
1349
|
if (typeof x != "function")
|
|
1326
1350
|
return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1327
|
-
var
|
|
1328
|
-
if (!Array.isArray(
|
|
1329
|
-
var F = H(
|
|
1351
|
+
var j = A[k];
|
|
1352
|
+
if (!Array.isArray(j)) {
|
|
1353
|
+
var F = H(j);
|
|
1330
1354
|
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an array."));
|
|
1331
1355
|
}
|
|
1332
|
-
for (var q = 0; q <
|
|
1333
|
-
var U = x(
|
|
1356
|
+
for (var q = 0; q < j.length; q++) {
|
|
1357
|
+
var U = x(j, q, I, L, R + "[" + q + "]", t);
|
|
1334
1358
|
if (U instanceof Error)
|
|
1335
1359
|
return U;
|
|
1336
1360
|
}
|
|
@@ -1339,64 +1363,64 @@ function sn() {
|
|
|
1339
1363
|
return b(M);
|
|
1340
1364
|
}
|
|
1341
1365
|
function D() {
|
|
1342
|
-
function x(M, A,
|
|
1366
|
+
function x(M, A, k, I, L) {
|
|
1343
1367
|
var R = M[A];
|
|
1344
1368
|
if (!d(R)) {
|
|
1345
|
-
var
|
|
1346
|
-
return new v("Invalid " + I + " `" + L + "` of type " + ("`" +
|
|
1369
|
+
var j = H(R);
|
|
1370
|
+
return new v("Invalid " + I + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
1347
1371
|
}
|
|
1348
1372
|
return null;
|
|
1349
1373
|
}
|
|
1350
1374
|
return b(x);
|
|
1351
1375
|
}
|
|
1352
|
-
function
|
|
1353
|
-
function x(M, A,
|
|
1376
|
+
function l() {
|
|
1377
|
+
function x(M, A, k, I, L) {
|
|
1354
1378
|
var R = M[A];
|
|
1355
1379
|
if (!e.isValidElementType(R)) {
|
|
1356
|
-
var
|
|
1357
|
-
return new v("Invalid " + I + " `" + L + "` of type " + ("`" +
|
|
1380
|
+
var j = H(R);
|
|
1381
|
+
return new v("Invalid " + I + " `" + L + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
1358
1382
|
}
|
|
1359
1383
|
return null;
|
|
1360
1384
|
}
|
|
1361
1385
|
return b(x);
|
|
1362
1386
|
}
|
|
1363
1387
|
function N(x) {
|
|
1364
|
-
function M(A,
|
|
1365
|
-
if (!(A[
|
|
1366
|
-
var
|
|
1367
|
-
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected ") + ("instance of `" +
|
|
1388
|
+
function M(A, k, I, L, R) {
|
|
1389
|
+
if (!(A[k] instanceof x)) {
|
|
1390
|
+
var j = x.name || h, F = de(A[k]);
|
|
1391
|
+
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected ") + ("instance of `" + j + "`."));
|
|
1368
1392
|
}
|
|
1369
1393
|
return null;
|
|
1370
1394
|
}
|
|
1371
1395
|
return b(M);
|
|
1372
1396
|
}
|
|
1373
|
-
function
|
|
1397
|
+
function c(x) {
|
|
1374
1398
|
if (!Array.isArray(x))
|
|
1375
1399
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1376
1400
|
"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])."
|
|
1377
|
-
) : o("Invalid argument supplied to oneOf, expected an array.")),
|
|
1378
|
-
function M(A,
|
|
1379
|
-
for (var
|
|
1380
|
-
if (w(
|
|
1401
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1402
|
+
function M(A, k, I, L, R) {
|
|
1403
|
+
for (var j = A[k], F = 0; F < x.length; F++)
|
|
1404
|
+
if (w(j, x[F]))
|
|
1381
1405
|
return null;
|
|
1382
1406
|
var q = JSON.stringify(x, function(G, _) {
|
|
1383
1407
|
var te = ee(_);
|
|
1384
1408
|
return te === "symbol" ? String(_) : _;
|
|
1385
1409
|
});
|
|
1386
|
-
return new v("Invalid " + L + " `" + R + "` of value `" + String(
|
|
1410
|
+
return new v("Invalid " + L + " `" + R + "` of value `" + String(j) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
|
|
1387
1411
|
}
|
|
1388
1412
|
return b(M);
|
|
1389
1413
|
}
|
|
1390
1414
|
function f(x) {
|
|
1391
|
-
function M(A,
|
|
1415
|
+
function M(A, k, I, L, R) {
|
|
1392
1416
|
if (typeof x != "function")
|
|
1393
1417
|
return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1394
|
-
var
|
|
1418
|
+
var j = A[k], F = H(j);
|
|
1395
1419
|
if (F !== "object")
|
|
1396
1420
|
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an object."));
|
|
1397
|
-
for (var q in
|
|
1398
|
-
if (r(
|
|
1399
|
-
var U = x(
|
|
1421
|
+
for (var q in j)
|
|
1422
|
+
if (r(j, q)) {
|
|
1423
|
+
var U = x(j, q, I, L, R + "." + q, t);
|
|
1400
1424
|
if (U instanceof Error)
|
|
1401
1425
|
return U;
|
|
1402
1426
|
}
|
|
@@ -1406,47 +1430,47 @@ function sn() {
|
|
|
1406
1430
|
}
|
|
1407
1431
|
function P(x) {
|
|
1408
1432
|
if (!Array.isArray(x))
|
|
1409
|
-
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
1433
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1410
1434
|
for (var M = 0; M < x.length; M++) {
|
|
1411
1435
|
var A = x[M];
|
|
1412
1436
|
if (typeof A != "function")
|
|
1413
1437
|
return o(
|
|
1414
1438
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(A) + " at index " + M + "."
|
|
1415
|
-
),
|
|
1439
|
+
), a;
|
|
1416
1440
|
}
|
|
1417
|
-
function
|
|
1441
|
+
function k(I, L, R, j, F) {
|
|
1418
1442
|
for (var q = [], U = 0; U < x.length; U++) {
|
|
1419
|
-
var G = x[U], _ = G(I, L, R,
|
|
1443
|
+
var G = x[U], _ = G(I, L, R, j, F, t);
|
|
1420
1444
|
if (_ == null)
|
|
1421
1445
|
return null;
|
|
1422
1446
|
_.data && r(_.data, "expectedType") && q.push(_.data.expectedType);
|
|
1423
1447
|
}
|
|
1424
1448
|
var te = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
1425
|
-
return new v("Invalid " +
|
|
1449
|
+
return new v("Invalid " + j + " `" + F + "` supplied to " + ("`" + R + "`" + te + "."));
|
|
1426
1450
|
}
|
|
1427
|
-
return b(
|
|
1451
|
+
return b(k);
|
|
1428
1452
|
}
|
|
1429
1453
|
function $() {
|
|
1430
|
-
function x(M, A,
|
|
1431
|
-
return X(M[A]) ? null : new v("Invalid " + I + " `" + L + "` supplied to " + ("`" +
|
|
1454
|
+
function x(M, A, k, I, L) {
|
|
1455
|
+
return X(M[A]) ? null : new v("Invalid " + I + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
1432
1456
|
}
|
|
1433
1457
|
return b(x);
|
|
1434
1458
|
}
|
|
1435
|
-
function O(x, M, A,
|
|
1459
|
+
function O(x, M, A, k, I) {
|
|
1436
1460
|
return new v(
|
|
1437
|
-
(x || "React class") + ": " + M + " type `" + A + "." +
|
|
1461
|
+
(x || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1438
1462
|
);
|
|
1439
1463
|
}
|
|
1440
1464
|
function E(x) {
|
|
1441
|
-
function M(A,
|
|
1442
|
-
var
|
|
1465
|
+
function M(A, k, I, L, R) {
|
|
1466
|
+
var j = A[k], F = H(j);
|
|
1443
1467
|
if (F !== "object")
|
|
1444
1468
|
return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1445
1469
|
for (var q in x) {
|
|
1446
1470
|
var U = x[q];
|
|
1447
1471
|
if (typeof U != "function")
|
|
1448
1472
|
return O(I, L, R, q, ee(U));
|
|
1449
|
-
var G = U(
|
|
1473
|
+
var G = U(j, q, I, L, R + "." + q, t);
|
|
1450
1474
|
if (G)
|
|
1451
1475
|
return G;
|
|
1452
1476
|
}
|
|
@@ -1455,21 +1479,21 @@ function sn() {
|
|
|
1455
1479
|
return b(M);
|
|
1456
1480
|
}
|
|
1457
1481
|
function z(x) {
|
|
1458
|
-
function M(A,
|
|
1459
|
-
var
|
|
1482
|
+
function M(A, k, I, L, R) {
|
|
1483
|
+
var j = A[k], F = H(j);
|
|
1460
1484
|
if (F !== "object")
|
|
1461
1485
|
return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1462
|
-
var q = n({}, A[
|
|
1486
|
+
var q = n({}, A[k], x);
|
|
1463
1487
|
for (var U in q) {
|
|
1464
1488
|
var G = x[U];
|
|
1465
1489
|
if (r(x, U) && typeof G != "function")
|
|
1466
1490
|
return O(I, L, R, U, ee(G));
|
|
1467
1491
|
if (!G)
|
|
1468
1492
|
return new v(
|
|
1469
|
-
"Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[
|
|
1493
|
+
"Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
|
|
1470
1494
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1471
1495
|
);
|
|
1472
|
-
var _ = G(
|
|
1496
|
+
var _ = G(j, U, I, L, R + "." + U, t);
|
|
1473
1497
|
if (_)
|
|
1474
1498
|
return _;
|
|
1475
1499
|
}
|
|
@@ -1492,14 +1516,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1492
1516
|
return !0;
|
|
1493
1517
|
var M = u(x);
|
|
1494
1518
|
if (M) {
|
|
1495
|
-
var A = M.call(x),
|
|
1519
|
+
var A = M.call(x), k;
|
|
1496
1520
|
if (M !== x.entries) {
|
|
1497
|
-
for (; !(
|
|
1498
|
-
if (!X(
|
|
1521
|
+
for (; !(k = A.next()).done; )
|
|
1522
|
+
if (!X(k.value))
|
|
1499
1523
|
return !1;
|
|
1500
1524
|
} else
|
|
1501
|
-
for (; !(
|
|
1502
|
-
var I =
|
|
1525
|
+
for (; !(k = A.next()).done; ) {
|
|
1526
|
+
var I = k.value;
|
|
1503
1527
|
if (I && !X(I[1]))
|
|
1504
1528
|
return !1;
|
|
1505
1529
|
}
|
|
@@ -1544,13 +1568,13 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1544
1568
|
}
|
|
1545
1569
|
}
|
|
1546
1570
|
function de(x) {
|
|
1547
|
-
return !x.constructor || !x.constructor.name ?
|
|
1571
|
+
return !x.constructor || !x.constructor.name ? h : x.constructor.name;
|
|
1548
1572
|
}
|
|
1549
|
-
return
|
|
1573
|
+
return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
|
|
1550
1574
|
}, Me;
|
|
1551
1575
|
}
|
|
1552
1576
|
var Pe, Xe;
|
|
1553
|
-
function
|
|
1577
|
+
function un() {
|
|
1554
1578
|
if (Xe) return Pe;
|
|
1555
1579
|
Xe = 1;
|
|
1556
1580
|
var e = /* @__PURE__ */ Oe();
|
|
@@ -1559,12 +1583,12 @@ function ln() {
|
|
|
1559
1583
|
function t() {
|
|
1560
1584
|
}
|
|
1561
1585
|
return t.resetWarningCache = n, Pe = function() {
|
|
1562
|
-
function r(
|
|
1586
|
+
function r(a, d, m, p, g, u) {
|
|
1563
1587
|
if (u !== e) {
|
|
1564
|
-
var
|
|
1588
|
+
var h = new Error(
|
|
1565
1589
|
"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"
|
|
1566
1590
|
);
|
|
1567
|
-
throw
|
|
1591
|
+
throw h.name = "Invariant Violation", h;
|
|
1568
1592
|
}
|
|
1569
1593
|
}
|
|
1570
1594
|
r.isRequired = r;
|
|
@@ -1598,33 +1622,33 @@ function ln() {
|
|
|
1598
1622
|
}, Pe;
|
|
1599
1623
|
}
|
|
1600
1624
|
var Ge;
|
|
1601
|
-
function
|
|
1602
|
-
if (Ge) return
|
|
1625
|
+
function vt() {
|
|
1626
|
+
if (Ge) return pe.exports;
|
|
1603
1627
|
if (Ge = 1, process.env.NODE_ENV !== "production") {
|
|
1604
|
-
var e =
|
|
1605
|
-
|
|
1628
|
+
var e = pt(), n = !0;
|
|
1629
|
+
pe.exports = /* @__PURE__ */ dn()(e.isElement, n);
|
|
1606
1630
|
} else
|
|
1607
|
-
|
|
1608
|
-
return
|
|
1631
|
+
pe.exports = /* @__PURE__ */ un()();
|
|
1632
|
+
return pe.exports;
|
|
1609
1633
|
}
|
|
1610
|
-
var
|
|
1611
|
-
function
|
|
1612
|
-
if (Ze) return
|
|
1634
|
+
var ve = { exports: {} }, Ze;
|
|
1635
|
+
function fn() {
|
|
1636
|
+
if (Ze) return ve.exports;
|
|
1613
1637
|
Ze = 1;
|
|
1614
1638
|
function e(t) {
|
|
1615
1639
|
var r, i, o = "";
|
|
1616
1640
|
if (typeof t == "string" || typeof t == "number") o += t;
|
|
1617
1641
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1618
|
-
var
|
|
1619
|
-
for (r = 0; r <
|
|
1642
|
+
var a = t.length;
|
|
1643
|
+
for (r = 0; r < a; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
|
|
1620
1644
|
} else for (i in t) t[i] && (o && (o += " "), o += i);
|
|
1621
1645
|
return o;
|
|
1622
1646
|
}
|
|
1623
1647
|
function n() {
|
|
1624
|
-
for (var t, r, i = 0, o = "",
|
|
1648
|
+
for (var t, r, i = 0, o = "", a = arguments.length; i < a; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
|
|
1625
1649
|
return o;
|
|
1626
1650
|
}
|
|
1627
|
-
return
|
|
1651
|
+
return ve.exports = n, ve.exports.clsx = n, ve.exports;
|
|
1628
1652
|
}
|
|
1629
1653
|
var B = {}, oe = {}, Je;
|
|
1630
1654
|
function we() {
|
|
@@ -1632,9 +1656,9 @@ function we() {
|
|
|
1632
1656
|
Je = 1, Object.defineProperty(oe, "__esModule", {
|
|
1633
1657
|
value: !0
|
|
1634
1658
|
}), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
|
|
1635
|
-
function e(o,
|
|
1636
|
-
for (let d = 0,
|
|
1637
|
-
if (
|
|
1659
|
+
function e(o, a) {
|
|
1660
|
+
for (let d = 0, m = o.length; d < m; d++)
|
|
1661
|
+
if (a.apply(a, [o[d], d, o])) return o[d];
|
|
1638
1662
|
}
|
|
1639
1663
|
function n(o) {
|
|
1640
1664
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
|
|
@@ -1645,14 +1669,14 @@ function we() {
|
|
|
1645
1669
|
function r(o) {
|
|
1646
1670
|
return parseInt(o, 10);
|
|
1647
1671
|
}
|
|
1648
|
-
function i(o,
|
|
1649
|
-
if (o[
|
|
1650
|
-
return new Error(`Invalid prop ${
|
|
1672
|
+
function i(o, a, d) {
|
|
1673
|
+
if (o[a])
|
|
1674
|
+
return new Error(`Invalid prop ${a} passed to ${d} - do not set this, set it on the child.`);
|
|
1651
1675
|
}
|
|
1652
1676
|
return oe;
|
|
1653
1677
|
}
|
|
1654
1678
|
var ie = {}, Qe;
|
|
1655
|
-
function
|
|
1679
|
+
function hn() {
|
|
1656
1680
|
if (Qe) return ie;
|
|
1657
1681
|
Qe = 1, Object.defineProperty(ie, "__esModule", {
|
|
1658
1682
|
value: !0
|
|
@@ -1661,23 +1685,23 @@ function dn() {
|
|
|
1661
1685
|
function n() {
|
|
1662
1686
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
1663
1687
|
if (typeof window > "u") return "";
|
|
1664
|
-
const
|
|
1665
|
-
if (!
|
|
1688
|
+
const a = window.document?.documentElement?.style;
|
|
1689
|
+
if (!a || o in a) return "";
|
|
1666
1690
|
for (let d = 0; d < e.length; d++)
|
|
1667
|
-
if (t(o, e[d]) in
|
|
1691
|
+
if (t(o, e[d]) in a) return e[d];
|
|
1668
1692
|
return "";
|
|
1669
1693
|
}
|
|
1670
|
-
function t(o,
|
|
1671
|
-
return
|
|
1694
|
+
function t(o, a) {
|
|
1695
|
+
return a ? `${a}${i(o)}` : o;
|
|
1672
1696
|
}
|
|
1673
|
-
function r(o,
|
|
1674
|
-
return
|
|
1697
|
+
function r(o, a) {
|
|
1698
|
+
return a ? `-${a.toLowerCase()}-${o}` : o;
|
|
1675
1699
|
}
|
|
1676
1700
|
function i(o) {
|
|
1677
|
-
let
|
|
1678
|
-
for (let
|
|
1679
|
-
d ? (
|
|
1680
|
-
return
|
|
1701
|
+
let a = "", d = !0;
|
|
1702
|
+
for (let m = 0; m < o.length; m++)
|
|
1703
|
+
d ? (a += o[m].toUpperCase(), d = !1) : o[m] === "-" ? d = !0 : a += o[m];
|
|
1704
|
+
return a;
|
|
1681
1705
|
}
|
|
1682
1706
|
return ie.default = n(), ie;
|
|
1683
1707
|
}
|
|
@@ -1686,9 +1710,9 @@ function Re() {
|
|
|
1686
1710
|
if (et) return B;
|
|
1687
1711
|
et = 1, Object.defineProperty(B, "__esModule", {
|
|
1688
1712
|
value: !0
|
|
1689
|
-
}), B.addClassName =
|
|
1690
|
-
var e = we(), n = t(
|
|
1691
|
-
function t(
|
|
1713
|
+
}), B.addClassName = l, B.addEvent = a, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = g, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = h, B.outerHeight = m, B.outerWidth = p, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
|
|
1714
|
+
var e = we(), n = t(hn());
|
|
1715
|
+
function t(c, f) {
|
|
1692
1716
|
if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
|
|
1693
1717
|
return (t = function(O, E) {
|
|
1694
1718
|
if (!E && O && O.__esModule) return O;
|
|
@@ -1700,16 +1724,16 @@ function Re() {
|
|
|
1700
1724
|
}
|
|
1701
1725
|
for (const H in O) H !== "default" && {}.hasOwnProperty.call(O, H) && ((X = (z = Object.defineProperty) && Object.getOwnPropertyDescriptor(O, H)) && (X.get || X.set) ? z(Q, H, X) : Q[H] = O[H]);
|
|
1702
1726
|
return Q;
|
|
1703
|
-
})(
|
|
1727
|
+
})(c, f);
|
|
1704
1728
|
}
|
|
1705
1729
|
let r = "";
|
|
1706
|
-
function i(
|
|
1730
|
+
function i(c, f) {
|
|
1707
1731
|
return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(P) {
|
|
1708
|
-
return (0, e.isFunction)(
|
|
1709
|
-
})), (0, e.isFunction)(
|
|
1732
|
+
return (0, e.isFunction)(c[P]);
|
|
1733
|
+
})), (0, e.isFunction)(c[r]) ? c[r](f) : !1;
|
|
1710
1734
|
}
|
|
1711
|
-
function o(
|
|
1712
|
-
let $ =
|
|
1735
|
+
function o(c, f, P) {
|
|
1736
|
+
let $ = c;
|
|
1713
1737
|
do {
|
|
1714
1738
|
if (i($, f)) return !0;
|
|
1715
1739
|
if ($ === P) return !1;
|
|
@@ -1717,125 +1741,125 @@ function Re() {
|
|
|
1717
1741
|
} while ($);
|
|
1718
1742
|
return !1;
|
|
1719
1743
|
}
|
|
1720
|
-
function
|
|
1721
|
-
if (!
|
|
1744
|
+
function a(c, f, P, $) {
|
|
1745
|
+
if (!c) return;
|
|
1722
1746
|
const O = {
|
|
1723
1747
|
capture: !0,
|
|
1724
1748
|
...$
|
|
1725
1749
|
};
|
|
1726
|
-
|
|
1750
|
+
c.addEventListener ? c.addEventListener(f, P, O) : c.attachEvent ? c.attachEvent("on" + f, P) : c["on" + f] = P;
|
|
1727
1751
|
}
|
|
1728
|
-
function d(
|
|
1729
|
-
if (!
|
|
1752
|
+
function d(c, f, P, $) {
|
|
1753
|
+
if (!c) return;
|
|
1730
1754
|
const O = {
|
|
1731
1755
|
capture: !0,
|
|
1732
1756
|
...$
|
|
1733
1757
|
};
|
|
1734
|
-
|
|
1758
|
+
c.removeEventListener ? c.removeEventListener(f, P, O) : c.detachEvent ? c.detachEvent("on" + f, P) : c["on" + f] = null;
|
|
1735
1759
|
}
|
|
1736
|
-
function
|
|
1737
|
-
let f =
|
|
1738
|
-
const P =
|
|
1760
|
+
function m(c) {
|
|
1761
|
+
let f = c.clientHeight;
|
|
1762
|
+
const P = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1739
1763
|
return f += (0, e.int)(P.borderTopWidth), f += (0, e.int)(P.borderBottomWidth), f;
|
|
1740
1764
|
}
|
|
1741
|
-
function
|
|
1742
|
-
let f =
|
|
1743
|
-
const P =
|
|
1765
|
+
function p(c) {
|
|
1766
|
+
let f = c.clientWidth;
|
|
1767
|
+
const P = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1744
1768
|
return f += (0, e.int)(P.borderLeftWidth), f += (0, e.int)(P.borderRightWidth), f;
|
|
1745
1769
|
}
|
|
1746
|
-
function
|
|
1747
|
-
let f =
|
|
1748
|
-
const P =
|
|
1770
|
+
function g(c) {
|
|
1771
|
+
let f = c.clientHeight;
|
|
1772
|
+
const P = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1749
1773
|
return f -= (0, e.int)(P.paddingTop), f -= (0, e.int)(P.paddingBottom), f;
|
|
1750
1774
|
}
|
|
1751
|
-
function u(
|
|
1752
|
-
let f =
|
|
1753
|
-
const P =
|
|
1775
|
+
function u(c) {
|
|
1776
|
+
let f = c.clientWidth;
|
|
1777
|
+
const P = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1754
1778
|
return f -= (0, e.int)(P.paddingLeft), f -= (0, e.int)(P.paddingRight), f;
|
|
1755
1779
|
}
|
|
1756
|
-
function
|
|
1780
|
+
function h(c, f, P) {
|
|
1757
1781
|
const O = f === f.ownerDocument.body ? {
|
|
1758
1782
|
left: 0,
|
|
1759
1783
|
top: 0
|
|
1760
|
-
} : f.getBoundingClientRect(), E = (
|
|
1784
|
+
} : f.getBoundingClientRect(), E = (c.clientX + f.scrollLeft - O.left) / P, z = (c.clientY + f.scrollTop - O.top) / P;
|
|
1761
1785
|
return {
|
|
1762
1786
|
x: E,
|
|
1763
1787
|
y: z
|
|
1764
1788
|
};
|
|
1765
1789
|
}
|
|
1766
|
-
function
|
|
1767
|
-
const P = v(
|
|
1790
|
+
function y(c, f) {
|
|
1791
|
+
const P = v(c, f, "px");
|
|
1768
1792
|
return {
|
|
1769
1793
|
[(0, n.browserPrefixToKey)("transform", n.default)]: P
|
|
1770
1794
|
};
|
|
1771
1795
|
}
|
|
1772
|
-
function w(
|
|
1773
|
-
return v(
|
|
1796
|
+
function w(c, f) {
|
|
1797
|
+
return v(c, f, "");
|
|
1774
1798
|
}
|
|
1775
|
-
function v(
|
|
1799
|
+
function v(c, f, P) {
|
|
1776
1800
|
let {
|
|
1777
1801
|
x: $,
|
|
1778
1802
|
y: O
|
|
1779
|
-
} =
|
|
1803
|
+
} = c, E = `translate(${$}${P},${O}${P})`;
|
|
1780
1804
|
if (f) {
|
|
1781
1805
|
const z = `${typeof f.x == "string" ? f.x : f.x + P}`, X = `${typeof f.y == "string" ? f.y : f.y + P}`;
|
|
1782
1806
|
E = `translate(${z}, ${X})` + E;
|
|
1783
1807
|
}
|
|
1784
1808
|
return E;
|
|
1785
1809
|
}
|
|
1786
|
-
function b(
|
|
1787
|
-
return
|
|
1810
|
+
function b(c, f) {
|
|
1811
|
+
return c.targetTouches && (0, e.findInArray)(c.targetTouches, (P) => f === P.identifier) || c.changedTouches && (0, e.findInArray)(c.changedTouches, (P) => f === P.identifier);
|
|
1788
1812
|
}
|
|
1789
|
-
function C(
|
|
1790
|
-
if (
|
|
1791
|
-
if (
|
|
1813
|
+
function C(c) {
|
|
1814
|
+
if (c.targetTouches && c.targetTouches[0]) return c.targetTouches[0].identifier;
|
|
1815
|
+
if (c.changedTouches && c.changedTouches[0]) return c.changedTouches[0].identifier;
|
|
1792
1816
|
}
|
|
1793
|
-
function T(
|
|
1794
|
-
if (!
|
|
1795
|
-
let f =
|
|
1796
|
-
f || (f =
|
|
1817
|
+
function T(c) {
|
|
1818
|
+
if (!c) return;
|
|
1819
|
+
let f = c.getElementById("react-draggable-style-el");
|
|
1820
|
+
f || (f = c.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
1797
1821
|
`, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
1798
|
-
`,
|
|
1822
|
+
`, c.getElementsByTagName("head")[0].appendChild(f)), c.body && l(c.body, "react-draggable-transparent-selection");
|
|
1799
1823
|
}
|
|
1800
|
-
function S(
|
|
1824
|
+
function S(c) {
|
|
1801
1825
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
1802
|
-
D(
|
|
1803
|
-
}) : D(
|
|
1826
|
+
D(c);
|
|
1827
|
+
}) : D(c);
|
|
1804
1828
|
}
|
|
1805
|
-
function D(
|
|
1806
|
-
if (
|
|
1829
|
+
function D(c) {
|
|
1830
|
+
if (c)
|
|
1807
1831
|
try {
|
|
1808
|
-
if (
|
|
1809
|
-
|
|
1832
|
+
if (c.body && N(c.body, "react-draggable-transparent-selection"), c.selection)
|
|
1833
|
+
c.selection.empty();
|
|
1810
1834
|
else {
|
|
1811
|
-
const f = (
|
|
1835
|
+
const f = (c.defaultView || window).getSelection();
|
|
1812
1836
|
f && f.type !== "Caret" && f.removeAllRanges();
|
|
1813
1837
|
}
|
|
1814
1838
|
} catch {
|
|
1815
1839
|
}
|
|
1816
1840
|
}
|
|
1817
|
-
function c
|
|
1818
|
-
|
|
1841
|
+
function l(c, f) {
|
|
1842
|
+
c.classList ? c.classList.add(f) : c.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (c.className += ` ${f}`);
|
|
1819
1843
|
}
|
|
1820
|
-
function N(
|
|
1821
|
-
|
|
1844
|
+
function N(c, f) {
|
|
1845
|
+
c.classList ? c.classList.remove(f) : c.className = c.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
|
|
1822
1846
|
}
|
|
1823
1847
|
return B;
|
|
1824
1848
|
}
|
|
1825
1849
|
var ne = {}, tt;
|
|
1826
|
-
function
|
|
1850
|
+
function bt() {
|
|
1827
1851
|
if (tt) return ne;
|
|
1828
1852
|
tt = 1, Object.defineProperty(ne, "__esModule", {
|
|
1829
1853
|
value: !0
|
|
1830
|
-
}), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData =
|
|
1854
|
+
}), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = m, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
|
|
1831
1855
|
var e = we(), n = Re();
|
|
1832
|
-
function t(u,
|
|
1833
|
-
if (!u.props.bounds) return [
|
|
1856
|
+
function t(u, h, y) {
|
|
1857
|
+
if (!u.props.bounds) return [h, y];
|
|
1834
1858
|
let {
|
|
1835
1859
|
bounds: w
|
|
1836
1860
|
} = u.props;
|
|
1837
|
-
w = typeof w == "string" ? w :
|
|
1838
|
-
const v =
|
|
1861
|
+
w = typeof w == "string" ? w : p(w);
|
|
1862
|
+
const v = g(u);
|
|
1839
1863
|
if (typeof w == "string") {
|
|
1840
1864
|
const {
|
|
1841
1865
|
ownerDocument: b
|
|
@@ -1843,18 +1867,18 @@ function vt() {
|
|
|
1843
1867
|
let T;
|
|
1844
1868
|
if (w === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(w), !(T instanceof C.HTMLElement))
|
|
1845
1869
|
throw new Error('Bounds selector "' + w + '" could not find an element.');
|
|
1846
|
-
const S = T, D = C.getComputedStyle(v),
|
|
1870
|
+
const S = T, D = C.getComputedStyle(v), l = C.getComputedStyle(S);
|
|
1847
1871
|
w = {
|
|
1848
|
-
left: -v.offsetLeft + (0, e.int)(
|
|
1849
|
-
top: -v.offsetTop + (0, e.int)(
|
|
1850
|
-
right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(
|
|
1851
|
-
bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(
|
|
1872
|
+
left: -v.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(D.marginLeft),
|
|
1873
|
+
top: -v.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(D.marginTop),
|
|
1874
|
+
right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(D.marginRight),
|
|
1875
|
+
bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(D.marginBottom)
|
|
1852
1876
|
};
|
|
1853
1877
|
}
|
|
1854
|
-
return (0, e.isNum)(w.right) && (
|
|
1878
|
+
return (0, e.isNum)(w.right) && (h = Math.min(h, w.right)), (0, e.isNum)(w.bottom) && (y = Math.min(y, w.bottom)), (0, e.isNum)(w.left) && (h = Math.max(h, w.left)), (0, e.isNum)(w.top) && (y = Math.max(y, w.top)), [h, y];
|
|
1855
1879
|
}
|
|
1856
|
-
function r(u,
|
|
1857
|
-
const w = Math.round(
|
|
1880
|
+
function r(u, h, y) {
|
|
1881
|
+
const w = Math.round(h / u[0]) * u[0], v = Math.round(y / u[1]) * u[1];
|
|
1858
1882
|
return [w, v];
|
|
1859
1883
|
}
|
|
1860
1884
|
function i(u) {
|
|
@@ -1863,45 +1887,45 @@ function vt() {
|
|
|
1863
1887
|
function o(u) {
|
|
1864
1888
|
return u.props.axis === "both" || u.props.axis === "y";
|
|
1865
1889
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const w = typeof
|
|
1868
|
-
if (typeof
|
|
1869
|
-
const v =
|
|
1870
|
-
return (0, n.offsetXYFromParent)(w || u, b,
|
|
1890
|
+
function a(u, h, y) {
|
|
1891
|
+
const w = typeof h == "number" ? (0, n.getTouch)(u, h) : null;
|
|
1892
|
+
if (typeof h == "number" && !w) return null;
|
|
1893
|
+
const v = g(y), b = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
|
|
1894
|
+
return (0, n.offsetXYFromParent)(w || u, b, y.props.scale);
|
|
1871
1895
|
}
|
|
1872
|
-
function d(u,
|
|
1873
|
-
const w = !(0, e.isNum)(u.lastX), v =
|
|
1896
|
+
function d(u, h, y) {
|
|
1897
|
+
const w = !(0, e.isNum)(u.lastX), v = g(u);
|
|
1874
1898
|
return w ? {
|
|
1875
1899
|
node: v,
|
|
1876
1900
|
deltaX: 0,
|
|
1877
1901
|
deltaY: 0,
|
|
1878
|
-
lastX:
|
|
1879
|
-
lastY:
|
|
1880
|
-
x:
|
|
1881
|
-
y
|
|
1902
|
+
lastX: h,
|
|
1903
|
+
lastY: y,
|
|
1904
|
+
x: h,
|
|
1905
|
+
y
|
|
1882
1906
|
} : {
|
|
1883
1907
|
node: v,
|
|
1884
|
-
deltaX:
|
|
1885
|
-
deltaY:
|
|
1908
|
+
deltaX: h - u.lastX,
|
|
1909
|
+
deltaY: y - u.lastY,
|
|
1886
1910
|
lastX: u.lastX,
|
|
1887
1911
|
lastY: u.lastY,
|
|
1888
|
-
x:
|
|
1889
|
-
y
|
|
1912
|
+
x: h,
|
|
1913
|
+
y
|
|
1890
1914
|
};
|
|
1891
1915
|
}
|
|
1892
|
-
function
|
|
1893
|
-
const
|
|
1916
|
+
function m(u, h) {
|
|
1917
|
+
const y = u.props.scale;
|
|
1894
1918
|
return {
|
|
1895
|
-
node:
|
|
1896
|
-
x: u.state.x +
|
|
1897
|
-
y: u.state.y +
|
|
1898
|
-
deltaX:
|
|
1899
|
-
deltaY:
|
|
1919
|
+
node: h.node,
|
|
1920
|
+
x: u.state.x + h.deltaX / y,
|
|
1921
|
+
y: u.state.y + h.deltaY / y,
|
|
1922
|
+
deltaX: h.deltaX / y,
|
|
1923
|
+
deltaY: h.deltaY / y,
|
|
1900
1924
|
lastX: u.state.x,
|
|
1901
1925
|
lastY: u.state.y
|
|
1902
1926
|
};
|
|
1903
1927
|
}
|
|
1904
|
-
function
|
|
1928
|
+
function p(u) {
|
|
1905
1929
|
return {
|
|
1906
1930
|
left: u.left,
|
|
1907
1931
|
top: u.top,
|
|
@@ -1909,52 +1933,52 @@ function vt() {
|
|
|
1909
1933
|
bottom: u.bottom
|
|
1910
1934
|
};
|
|
1911
1935
|
}
|
|
1912
|
-
function
|
|
1913
|
-
const
|
|
1914
|
-
if (!
|
|
1936
|
+
function g(u) {
|
|
1937
|
+
const h = u.findDOMNode();
|
|
1938
|
+
if (!h)
|
|
1915
1939
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1916
|
-
return
|
|
1940
|
+
return h;
|
|
1917
1941
|
}
|
|
1918
1942
|
return ne;
|
|
1919
1943
|
}
|
|
1920
|
-
var he = {},
|
|
1921
|
-
function
|
|
1922
|
-
if (nt) return
|
|
1923
|
-
nt = 1, Object.defineProperty(
|
|
1944
|
+
var he = {}, be = {}, nt;
|
|
1945
|
+
function xt() {
|
|
1946
|
+
if (nt) return be;
|
|
1947
|
+
nt = 1, Object.defineProperty(be, "__esModule", {
|
|
1924
1948
|
value: !0
|
|
1925
|
-
}),
|
|
1949
|
+
}), be.default = e;
|
|
1926
1950
|
function e() {
|
|
1927
1951
|
}
|
|
1928
|
-
return
|
|
1952
|
+
return be;
|
|
1929
1953
|
}
|
|
1930
1954
|
var rt;
|
|
1931
|
-
function
|
|
1955
|
+
function gn() {
|
|
1932
1956
|
if (rt) return he;
|
|
1933
1957
|
rt = 1, Object.defineProperty(he, "__esModule", {
|
|
1934
1958
|
value: !0
|
|
1935
1959
|
}), he.default = void 0;
|
|
1936
|
-
var e =
|
|
1960
|
+
var e = m(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = we(), a = d(xt());
|
|
1937
1961
|
function d(v) {
|
|
1938
1962
|
return v && v.__esModule ? v : { default: v };
|
|
1939
1963
|
}
|
|
1940
|
-
function
|
|
1964
|
+
function m(v, b) {
|
|
1941
1965
|
if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
|
|
1942
|
-
return (
|
|
1966
|
+
return (m = function(S, D) {
|
|
1943
1967
|
if (!D && S && S.__esModule) return S;
|
|
1944
|
-
var
|
|
1945
|
-
if (S === null || typeof S != "object" && typeof S != "function") return
|
|
1946
|
-
if (
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1968
|
+
var l, N, c = { __proto__: null, default: S };
|
|
1969
|
+
if (S === null || typeof S != "object" && typeof S != "function") return c;
|
|
1970
|
+
if (l = D ? T : C) {
|
|
1971
|
+
if (l.has(S)) return l.get(S);
|
|
1972
|
+
l.set(S, c);
|
|
1949
1973
|
}
|
|
1950
|
-
for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (
|
|
1951
|
-
return
|
|
1974
|
+
for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? l(c, f, N) : c[f] = S[f]);
|
|
1975
|
+
return c;
|
|
1952
1976
|
})(v, b);
|
|
1953
1977
|
}
|
|
1954
|
-
function
|
|
1955
|
-
return (b =
|
|
1978
|
+
function p(v, b, C) {
|
|
1979
|
+
return (b = g(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
|
|
1956
1980
|
}
|
|
1957
|
-
function
|
|
1981
|
+
function g(v) {
|
|
1958
1982
|
var b = u(v, "string");
|
|
1959
1983
|
return typeof b == "symbol" ? b : b + "";
|
|
1960
1984
|
}
|
|
@@ -1968,7 +1992,7 @@ function un() {
|
|
|
1968
1992
|
}
|
|
1969
1993
|
return (b === "string" ? String : Number)(v);
|
|
1970
1994
|
}
|
|
1971
|
-
const
|
|
1995
|
+
const h = {
|
|
1972
1996
|
touch: {
|
|
1973
1997
|
start: "touchstart",
|
|
1974
1998
|
move: "touchmove",
|
|
@@ -1980,9 +2004,9 @@ function un() {
|
|
|
1980
2004
|
stop: "mouseup"
|
|
1981
2005
|
}
|
|
1982
2006
|
};
|
|
1983
|
-
let
|
|
2007
|
+
let y = h.mouse, w = class extends e.Component {
|
|
1984
2008
|
constructor() {
|
|
1985
|
-
super(...arguments),
|
|
2009
|
+
super(...arguments), p(this, "dragging", !1), p(this, "lastX", NaN), p(this, "lastY", NaN), p(this, "touchIdentifier", null), p(this, "mounted", !1), p(this, "handleDragStart", (b) => {
|
|
1986
2010
|
if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
|
|
1987
2011
|
const C = this.findDOMNode();
|
|
1988
2012
|
if (!C || !C.ownerDocument || !C.ownerDocument.body)
|
|
@@ -1998,11 +2022,11 @@ function un() {
|
|
|
1998
2022
|
const D = (0, i.getControlPosition)(b, S, this);
|
|
1999
2023
|
if (D == null) return;
|
|
2000
2024
|
const {
|
|
2001
|
-
x:
|
|
2025
|
+
x: l,
|
|
2002
2026
|
y: N
|
|
2003
|
-
} = D,
|
|
2004
|
-
(0,
|
|
2005
|
-
}),
|
|
2027
|
+
} = D, c = (0, i.createCoreData)(this, l, N);
|
|
2028
|
+
(0, a.default)("DraggableCore: handleDragStart: %j", c), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(b, c) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = l, this.lastY = N, (0, r.addEvent)(T, y.move, this.handleDrag), (0, r.addEvent)(T, y.stop, this.handleDragStop));
|
|
2029
|
+
}), p(this, "handleDrag", (b) => {
|
|
2006
2030
|
const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
|
|
2007
2031
|
if (C == null) return;
|
|
2008
2032
|
let {
|
|
@@ -2010,22 +2034,22 @@ function un() {
|
|
|
2010
2034
|
y: S
|
|
2011
2035
|
} = C;
|
|
2012
2036
|
if (Array.isArray(this.props.grid)) {
|
|
2013
|
-
let N = T - this.lastX,
|
|
2014
|
-
if ([N,
|
|
2015
|
-
T = this.lastX + N, S = this.lastY +
|
|
2037
|
+
let N = T - this.lastX, c = S - this.lastY;
|
|
2038
|
+
if ([N, c] = (0, i.snapToGrid)(this.props.grid, N, c), !N && !c) return;
|
|
2039
|
+
T = this.lastX + N, S = this.lastY + c;
|
|
2016
2040
|
}
|
|
2017
2041
|
const D = (0, i.createCoreData)(this, T, S);
|
|
2018
|
-
if ((0,
|
|
2042
|
+
if ((0, a.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
|
|
2019
2043
|
try {
|
|
2020
2044
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
2021
2045
|
} catch {
|
|
2022
|
-
const
|
|
2023
|
-
|
|
2046
|
+
const c = document.createEvent("MouseEvents");
|
|
2047
|
+
c.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(c);
|
|
2024
2048
|
}
|
|
2025
2049
|
return;
|
|
2026
2050
|
}
|
|
2027
2051
|
this.lastX = T, this.lastY = S;
|
|
2028
|
-
}),
|
|
2052
|
+
}), p(this, "handleDragStop", (b) => {
|
|
2029
2053
|
if (!this.dragging) return;
|
|
2030
2054
|
const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
|
|
2031
2055
|
if (C == null) return;
|
|
@@ -2034,19 +2058,19 @@ function un() {
|
|
|
2034
2058
|
y: S
|
|
2035
2059
|
} = C;
|
|
2036
2060
|
if (Array.isArray(this.props.grid)) {
|
|
2037
|
-
let
|
|
2038
|
-
[
|
|
2061
|
+
let c = T - this.lastX || 0, f = S - this.lastY || 0;
|
|
2062
|
+
[c, f] = (0, i.snapToGrid)(this.props.grid, c, f), T = this.lastX + c, S = this.lastY + f;
|
|
2039
2063
|
}
|
|
2040
2064
|
const D = (0, i.createCoreData)(this, T, S);
|
|
2041
2065
|
if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
|
|
2042
2066
|
const N = this.findDOMNode();
|
|
2043
|
-
N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0,
|
|
2044
|
-
}),
|
|
2067
|
+
N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, N && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(N.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, y.stop, this.handleDragStop));
|
|
2068
|
+
}), p(this, "onMouseDown", (b) => (y = h.mouse, this.handleDragStart(b))), p(this, "onMouseUp", (b) => (y = h.mouse, this.handleDragStop(b))), p(this, "onTouchStart", (b) => (y = h.touch, this.handleDragStart(b))), p(this, "onTouchEnd", (b) => (y = h.touch, this.handleDragStop(b)));
|
|
2045
2069
|
}
|
|
2046
2070
|
componentDidMount() {
|
|
2047
2071
|
this.mounted = !0;
|
|
2048
2072
|
const b = this.findDOMNode();
|
|
2049
|
-
b && (0, r.addEvent)(b,
|
|
2073
|
+
b && (0, r.addEvent)(b, h.touch.start, this.onTouchStart, {
|
|
2050
2074
|
passive: !1
|
|
2051
2075
|
});
|
|
2052
2076
|
}
|
|
@@ -2057,7 +2081,7 @@ function un() {
|
|
|
2057
2081
|
const {
|
|
2058
2082
|
ownerDocument: C
|
|
2059
2083
|
} = b;
|
|
2060
|
-
(0, r.removeEvent)(C,
|
|
2084
|
+
(0, r.removeEvent)(C, h.mouse.move, this.handleDrag), (0, r.removeEvent)(C, h.touch.move, this.handleDrag), (0, r.removeEvent)(C, h.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, h.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, h.touch.start, this.onTouchStart, {
|
|
2061
2085
|
passive: !1
|
|
2062
2086
|
}), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
|
|
2063
2087
|
}
|
|
@@ -2080,7 +2104,7 @@ function un() {
|
|
|
2080
2104
|
});
|
|
2081
2105
|
}
|
|
2082
2106
|
};
|
|
2083
|
-
return he.default = w,
|
|
2107
|
+
return he.default = w, p(w, "displayName", "DraggableCore"), p(w, "propTypes", {
|
|
2084
2108
|
/**
|
|
2085
2109
|
* `allowAnyClick` allows dragging using any mouse button.
|
|
2086
2110
|
* By default, we only accept the left button.
|
|
@@ -2210,7 +2234,7 @@ function un() {
|
|
|
2210
2234
|
className: o.dontSetMe,
|
|
2211
2235
|
style: o.dontSetMe,
|
|
2212
2236
|
transform: o.dontSetMe
|
|
2213
|
-
}),
|
|
2237
|
+
}), p(w, "defaultProps", {
|
|
2214
2238
|
allowAnyClick: !1,
|
|
2215
2239
|
// by default only accept left click
|
|
2216
2240
|
allowMobileScroll: !1,
|
|
@@ -2228,44 +2252,44 @@ function un() {
|
|
|
2228
2252
|
}), he;
|
|
2229
2253
|
}
|
|
2230
2254
|
var ot;
|
|
2231
|
-
function
|
|
2255
|
+
function mn() {
|
|
2232
2256
|
return ot || (ot = 1, (function(e) {
|
|
2233
2257
|
Object.defineProperty(e, "__esModule", {
|
|
2234
2258
|
value: !0
|
|
2235
2259
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
2236
2260
|
enumerable: !0,
|
|
2237
2261
|
get: function() {
|
|
2238
|
-
return
|
|
2262
|
+
return m.default;
|
|
2239
2263
|
}
|
|
2240
2264
|
}), e.default = void 0;
|
|
2241
|
-
var n = u(se), t =
|
|
2242
|
-
function
|
|
2265
|
+
var n = u(se), t = g(/* @__PURE__ */ vt()), r = g(st), i = fn(), o = Re(), a = bt(), d = we(), m = g(gn()), p = g(xt());
|
|
2266
|
+
function g(C) {
|
|
2243
2267
|
return C && C.__esModule ? C : { default: C };
|
|
2244
2268
|
}
|
|
2245
2269
|
function u(C, T) {
|
|
2246
2270
|
if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
|
|
2247
|
-
return (u = function(
|
|
2248
|
-
if (!N &&
|
|
2249
|
-
var
|
|
2250
|
-
if (
|
|
2251
|
-
if (
|
|
2252
|
-
if (
|
|
2253
|
-
|
|
2271
|
+
return (u = function(l, N) {
|
|
2272
|
+
if (!N && l && l.__esModule) return l;
|
|
2273
|
+
var c, f, P = { __proto__: null, default: l };
|
|
2274
|
+
if (l === null || typeof l != "object" && typeof l != "function") return P;
|
|
2275
|
+
if (c = N ? D : S) {
|
|
2276
|
+
if (c.has(l)) return c.get(l);
|
|
2277
|
+
c.set(l, P);
|
|
2254
2278
|
}
|
|
2255
|
-
for (const $ in
|
|
2279
|
+
for (const $ in l) $ !== "default" && {}.hasOwnProperty.call(l, $) && ((f = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, $)) && (f.get || f.set) ? c(P, $, f) : P[$] = l[$]);
|
|
2256
2280
|
return P;
|
|
2257
2281
|
})(C, T);
|
|
2258
2282
|
}
|
|
2259
|
-
function
|
|
2260
|
-
return
|
|
2283
|
+
function h() {
|
|
2284
|
+
return h = Object.assign ? Object.assign.bind() : function(C) {
|
|
2261
2285
|
for (var T = 1; T < arguments.length; T++) {
|
|
2262
2286
|
var S = arguments[T];
|
|
2263
2287
|
for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
|
|
2264
2288
|
}
|
|
2265
2289
|
return C;
|
|
2266
|
-
},
|
|
2290
|
+
}, h.apply(null, arguments);
|
|
2267
2291
|
}
|
|
2268
|
-
function
|
|
2292
|
+
function y(C, T, S) {
|
|
2269
2293
|
return (T = w(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
|
|
2270
2294
|
}
|
|
2271
2295
|
function w(C) {
|
|
@@ -2289,11 +2313,11 @@ function fn() {
|
|
|
2289
2313
|
let {
|
|
2290
2314
|
position: D
|
|
2291
2315
|
} = T, {
|
|
2292
|
-
prevPropsPosition:
|
|
2316
|
+
prevPropsPosition: l
|
|
2293
2317
|
} = S;
|
|
2294
|
-
return D && (!
|
|
2318
|
+
return D && (!l || D.x !== l.x || D.y !== l.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
|
|
2295
2319
|
position: D,
|
|
2296
|
-
prevPropsPosition:
|
|
2320
|
+
prevPropsPosition: l
|
|
2297
2321
|
}), {
|
|
2298
2322
|
x: D.x,
|
|
2299
2323
|
y: D.y,
|
|
@@ -2303,18 +2327,18 @@ function fn() {
|
|
|
2303
2327
|
}) : null;
|
|
2304
2328
|
}
|
|
2305
2329
|
constructor(T) {
|
|
2306
|
-
super(T),
|
|
2307
|
-
if ((0,
|
|
2330
|
+
super(T), y(this, "onDragStart", (S, D) => {
|
|
2331
|
+
if ((0, p.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
|
|
2308
2332
|
this.setState({
|
|
2309
2333
|
dragging: !0,
|
|
2310
2334
|
dragged: !0
|
|
2311
2335
|
});
|
|
2312
|
-
}),
|
|
2336
|
+
}), y(this, "onDrag", (S, D) => {
|
|
2313
2337
|
if (!this.state.dragging) return !1;
|
|
2314
|
-
(0,
|
|
2315
|
-
const
|
|
2316
|
-
x:
|
|
2317
|
-
y:
|
|
2338
|
+
(0, p.default)("Draggable: onDrag: %j", D);
|
|
2339
|
+
const l = (0, a.createDraggableData)(this, D), N = {
|
|
2340
|
+
x: l.x,
|
|
2341
|
+
y: l.y,
|
|
2318
2342
|
slackX: 0,
|
|
2319
2343
|
slackY: 0
|
|
2320
2344
|
};
|
|
@@ -2324,14 +2348,14 @@ function fn() {
|
|
|
2324
2348
|
y: P
|
|
2325
2349
|
} = N;
|
|
2326
2350
|
N.x += this.state.slackX, N.y += this.state.slackY;
|
|
2327
|
-
const [$, O] = (0,
|
|
2328
|
-
N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y),
|
|
2351
|
+
const [$, O] = (0, a.getBoundPosition)(this, N.x, N.y);
|
|
2352
|
+
N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y), l.x = N.x, l.y = N.y, l.deltaX = N.x - this.state.x, l.deltaY = N.y - this.state.y;
|
|
2329
2353
|
}
|
|
2330
|
-
if (this.props.onDrag(S,
|
|
2354
|
+
if (this.props.onDrag(S, l) === !1) return !1;
|
|
2331
2355
|
this.setState(N);
|
|
2332
|
-
}),
|
|
2333
|
-
if (!this.state.dragging || this.props.onStop(S, (0,
|
|
2334
|
-
(0,
|
|
2356
|
+
}), y(this, "onDragStop", (S, D) => {
|
|
2357
|
+
if (!this.state.dragging || this.props.onStop(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
|
|
2358
|
+
(0, p.default)("Draggable: onDragStop: %j", D);
|
|
2335
2359
|
const N = {
|
|
2336
2360
|
dragging: !1,
|
|
2337
2361
|
slackX: 0,
|
|
@@ -2383,9 +2407,9 @@ function fn() {
|
|
|
2383
2407
|
axis: T,
|
|
2384
2408
|
bounds: S,
|
|
2385
2409
|
children: D,
|
|
2386
|
-
defaultPosition:
|
|
2410
|
+
defaultPosition: l,
|
|
2387
2411
|
defaultClassName: N,
|
|
2388
|
-
defaultClassNameDragging:
|
|
2412
|
+
defaultClassNameDragging: c,
|
|
2389
2413
|
defaultClassNameDragged: f,
|
|
2390
2414
|
position: P,
|
|
2391
2415
|
positionOffset: $,
|
|
@@ -2393,18 +2417,18 @@ function fn() {
|
|
|
2393
2417
|
...E
|
|
2394
2418
|
} = this.props;
|
|
2395
2419
|
let z = {}, X = null;
|
|
2396
|
-
const H = !!!P || this.state.dragging, ee = P ||
|
|
2420
|
+
const H = !!!P || this.state.dragging, ee = P || l, ae = {
|
|
2397
2421
|
// Set left if horizontal drag is enabled
|
|
2398
|
-
x: (0,
|
|
2422
|
+
x: (0, a.canDragX)(this) && H ? this.state.x : ee.x,
|
|
2399
2423
|
// Set top if vertical drag is enabled
|
|
2400
|
-
y: (0,
|
|
2424
|
+
y: (0, a.canDragY)(this) && H ? this.state.y : ee.y
|
|
2401
2425
|
};
|
|
2402
2426
|
this.state.isElementSVG ? X = (0, o.createSVGTransform)(ae, $) : z = (0, o.createCSSTransform)(ae, $);
|
|
2403
2427
|
const de = (0, i.clsx)(D.props.className || "", N, {
|
|
2404
|
-
[
|
|
2428
|
+
[c]: this.state.dragging,
|
|
2405
2429
|
[f]: this.state.dragged
|
|
2406
2430
|
});
|
|
2407
|
-
return /* @__PURE__ */ n.createElement(
|
|
2431
|
+
return /* @__PURE__ */ n.createElement(m.default, h({}, E, {
|
|
2408
2432
|
onStart: this.onDragStart,
|
|
2409
2433
|
onDrag: this.onDrag,
|
|
2410
2434
|
onStop: this.onDragStop
|
|
@@ -2418,9 +2442,9 @@ function fn() {
|
|
|
2418
2442
|
}));
|
|
2419
2443
|
}
|
|
2420
2444
|
}
|
|
2421
|
-
e.default = b,
|
|
2445
|
+
e.default = b, y(b, "displayName", "Draggable"), y(b, "propTypes", {
|
|
2422
2446
|
// Accepts all props <DraggableCore> accepts.
|
|
2423
|
-
...
|
|
2447
|
+
...m.default.propTypes,
|
|
2424
2448
|
/**
|
|
2425
2449
|
* `axis` determines which axis the draggable can move.
|
|
2426
2450
|
*
|
|
@@ -2525,8 +2549,8 @@ function fn() {
|
|
|
2525
2549
|
className: d.dontSetMe,
|
|
2526
2550
|
style: d.dontSetMe,
|
|
2527
2551
|
transform: d.dontSetMe
|
|
2528
|
-
}),
|
|
2529
|
-
...
|
|
2552
|
+
}), y(b, "defaultProps", {
|
|
2553
|
+
...m.default.defaultProps,
|
|
2530
2554
|
axis: "both",
|
|
2531
2555
|
bounds: !1,
|
|
2532
2556
|
defaultClassName: "react-draggable",
|
|
@@ -2541,17 +2565,17 @@ function fn() {
|
|
|
2541
2565
|
})(De)), De;
|
|
2542
2566
|
}
|
|
2543
2567
|
var it;
|
|
2544
|
-
function
|
|
2568
|
+
function pn() {
|
|
2545
2569
|
if (it) return fe.exports;
|
|
2546
2570
|
it = 1;
|
|
2547
2571
|
const {
|
|
2548
2572
|
default: e,
|
|
2549
2573
|
DraggableCore: n
|
|
2550
|
-
} =
|
|
2574
|
+
} = mn();
|
|
2551
2575
|
return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
|
|
2552
2576
|
}
|
|
2553
|
-
var
|
|
2554
|
-
const
|
|
2577
|
+
var yn = pn();
|
|
2578
|
+
const vn = /* @__PURE__ */ on(yn), bn = ce((e, n) => {
|
|
2555
2579
|
const r = {
|
|
2556
2580
|
...{
|
|
2557
2581
|
// 1. Take it out of the document flow
|
|
@@ -2569,31 +2593,31 @@ const mn = /* @__PURE__ */ tn(gn), pn = le((e, n) => {
|
|
|
2569
2593
|
boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
|
|
2570
2594
|
},
|
|
2571
2595
|
...e.style || {}
|
|
2572
|
-
}, i = e.testId || "not-set", o = e.className || "panel",
|
|
2596
|
+
}, i = e.testId || "not-set", o = e.className || "panel", a = wt(null);
|
|
2573
2597
|
return (
|
|
2574
2598
|
// 3. Pass the internal ref to the Draggable component via 'nodeRef'
|
|
2575
|
-
/* @__PURE__ */
|
|
2576
|
-
|
|
2599
|
+
/* @__PURE__ */ s(
|
|
2600
|
+
vn,
|
|
2577
2601
|
{
|
|
2578
|
-
nodeRef:
|
|
2602
|
+
nodeRef: a,
|
|
2579
2603
|
"data-testid": i,
|
|
2580
2604
|
axis: "both",
|
|
2581
2605
|
handle: ".handle",
|
|
2582
|
-
onStart: (
|
|
2606
|
+
onStart: (p, g) => {
|
|
2583
2607
|
e.onDraggingChange?.(!0);
|
|
2584
2608
|
},
|
|
2585
|
-
onStop: (
|
|
2609
|
+
onStop: (p, g) => {
|
|
2586
2610
|
setTimeout(() => {
|
|
2587
2611
|
e.onDraggingChange?.(!1);
|
|
2588
2612
|
}, 100);
|
|
2589
2613
|
},
|
|
2590
|
-
children: /* @__PURE__ */
|
|
2614
|
+
children: /* @__PURE__ */ s("div", { ref: a, className: o, style: r, children: e.children })
|
|
2591
2615
|
}
|
|
2592
2616
|
)
|
|
2593
2617
|
);
|
|
2594
2618
|
});
|
|
2595
|
-
function
|
|
2596
|
-
return /* @__PURE__ */
|
|
2619
|
+
function er({ children: e }) {
|
|
2620
|
+
return /* @__PURE__ */ s(
|
|
2597
2621
|
"div",
|
|
2598
2622
|
{
|
|
2599
2623
|
className: "w-full h-full flex-1 flex flex-col gap-2 items-end justify-end content-end",
|
|
@@ -2604,32 +2628,32 @@ function Jn({ children: e }) {
|
|
|
2604
2628
|
}
|
|
2605
2629
|
);
|
|
2606
2630
|
}
|
|
2607
|
-
function
|
|
2608
|
-
return /* @__PURE__ */
|
|
2631
|
+
function tr({ children: e }) {
|
|
2632
|
+
return /* @__PURE__ */ s("div", { className: "w-full flex flex-col items-end", children: e });
|
|
2609
2633
|
}
|
|
2610
|
-
const
|
|
2634
|
+
const nr = (e) => {
|
|
2611
2635
|
console.warn("showToast TODO", e);
|
|
2612
|
-
},
|
|
2613
|
-
let t =
|
|
2636
|
+
}, xn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = ce((e, n) => {
|
|
2637
|
+
let t = ct(Number(e.zoomScale || 0));
|
|
2614
2638
|
const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
|
|
2615
2639
|
"--bwj-dashboard-transform-scale": t,
|
|
2616
|
-
"--bwj-dashboard-add-cols":
|
|
2617
|
-
},
|
|
2640
|
+
"--bwj-dashboard-add-cols": xn(t)
|
|
2641
|
+
}, a = Z(
|
|
2618
2642
|
"dashboard-main-grid w-full",
|
|
2619
2643
|
i ? "editing" : "",
|
|
2620
2644
|
r ? "responsive-grid" : "",
|
|
2621
2645
|
//`border border-dashed ${isEditing ? 'border-primary border-opacity-50' : 'border-transparent'}`,
|
|
2622
2646
|
"border border-solid border-primary"
|
|
2623
2647
|
);
|
|
2624
|
-
return /* @__PURE__ */
|
|
2625
|
-
}), $e = "size-5",
|
|
2648
|
+
return /* @__PURE__ */ s("div", { className: a, style: o, children: e.children });
|
|
2649
|
+
}), $e = "size-5", wn = (e, n) => {
|
|
2626
2650
|
const t = e.hideTitle && !e.isEditing, r = e.noBorder;
|
|
2627
2651
|
let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
|
|
2628
2652
|
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`);
|
|
2629
2653
|
const o = () => {
|
|
2630
2654
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
|
|
2631
|
-
},
|
|
2632
|
-
e.onMoveClick && e.widgetKey && e.onMoveClick(
|
|
2655
|
+
}, a = (m) => {
|
|
2656
|
+
e.onMoveClick && e.widgetKey && e.onMoveClick(m, e.widgetKey, e.parentWidgetKey);
|
|
2633
2657
|
}, d = Z(
|
|
2634
2658
|
"widget-header",
|
|
2635
2659
|
t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
|
|
@@ -2642,12 +2666,12 @@ const er = (e) => {
|
|
|
2642
2666
|
e.title,
|
|
2643
2667
|
" "
|
|
2644
2668
|
] }),
|
|
2645
|
-
/* @__PURE__ */
|
|
2669
|
+
/* @__PURE__ */ s("div", {})
|
|
2646
2670
|
] }),
|
|
2647
|
-
/* @__PURE__ */
|
|
2648
|
-
/* @__PURE__ */
|
|
2671
|
+
/* @__PURE__ */ s("div", { "data-testid": "collapse-and-other-actions", children: /* @__PURE__ */ W("div", { className: "actions-inner", children: [
|
|
2672
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("span", { className: "hidden", children: "Widget" }) }),
|
|
2649
2673
|
/* @__PURE__ */ W("div", { className: "actions-buttons-container", children: [
|
|
2650
|
-
/* @__PURE__ */
|
|
2674
|
+
/* @__PURE__ */ s(
|
|
2651
2675
|
J,
|
|
2652
2676
|
{
|
|
2653
2677
|
"data-testid": `move-widget-left_${e.title}`,
|
|
@@ -2657,11 +2681,11 @@ const er = (e) => {
|
|
|
2657
2681
|
placement: "top",
|
|
2658
2682
|
title: `${e.index < 1 ? "Already at min position" : "Move Widget to the left/up"}`
|
|
2659
2683
|
},
|
|
2660
|
-
onClick: () =>
|
|
2661
|
-
children: /* @__PURE__ */
|
|
2684
|
+
onClick: () => a(-1),
|
|
2685
|
+
children: /* @__PURE__ */ s(ut, { className: $e })
|
|
2662
2686
|
}
|
|
2663
2687
|
),
|
|
2664
|
-
/* @__PURE__ */
|
|
2688
|
+
/* @__PURE__ */ s(
|
|
2665
2689
|
J,
|
|
2666
2690
|
{
|
|
2667
2691
|
"data-testid": `move-widget-right_${e.title}`,
|
|
@@ -2671,11 +2695,11 @@ const er = (e) => {
|
|
|
2671
2695
|
placement: "top",
|
|
2672
2696
|
title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Widget to the right/down"}`
|
|
2673
2697
|
},
|
|
2674
|
-
onClick: () =>
|
|
2675
|
-
children: /* @__PURE__ */
|
|
2698
|
+
onClick: () => a(1),
|
|
2699
|
+
children: /* @__PURE__ */ s(ft, { className: $e })
|
|
2676
2700
|
}
|
|
2677
2701
|
),
|
|
2678
|
-
/* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ s(
|
|
2679
2703
|
J,
|
|
2680
2704
|
{
|
|
2681
2705
|
"data-testid": `remove-container_${e.title}`,
|
|
@@ -2685,39 +2709,39 @@ const er = (e) => {
|
|
|
2685
2709
|
title: "Remove Widget"
|
|
2686
2710
|
},
|
|
2687
2711
|
onClick: () => o(),
|
|
2688
|
-
children: /* @__PURE__ */
|
|
2712
|
+
children: /* @__PURE__ */ s(ht, { className: $e })
|
|
2689
2713
|
}
|
|
2690
2714
|
)
|
|
2691
2715
|
] })
|
|
2692
2716
|
] }) })
|
|
2693
2717
|
] }),
|
|
2694
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
|
|
2695
2719
|
] });
|
|
2696
|
-
},
|
|
2697
|
-
function
|
|
2698
|
-
return /* @__PURE__ */
|
|
2699
|
-
/* @__PURE__ */
|
|
2700
|
-
/* @__PURE__ */
|
|
2720
|
+
}, Cn = ce(wn);
|
|
2721
|
+
function Sn(e) {
|
|
2722
|
+
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: [
|
|
2723
|
+
/* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
|
|
2724
|
+
/* @__PURE__ */ s("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
|
|
2701
2725
|
] }) });
|
|
2702
2726
|
}
|
|
2703
|
-
function
|
|
2727
|
+
function Dn({
|
|
2704
2728
|
index: e,
|
|
2705
2729
|
maxIndex: n,
|
|
2706
2730
|
widgetKey: t,
|
|
2707
2731
|
parentWidgetKey: r,
|
|
2708
2732
|
targetContainerKey: i,
|
|
2709
2733
|
childWidgetsConfig: o,
|
|
2710
|
-
widgetCatalog:
|
|
2734
|
+
widgetCatalog: a,
|
|
2711
2735
|
isEditing: d,
|
|
2712
|
-
onRemoveClick:
|
|
2713
|
-
onMoveClick:
|
|
2714
|
-
selectContainer:
|
|
2736
|
+
onRemoveClick: m,
|
|
2737
|
+
onMoveClick: p,
|
|
2738
|
+
selectContainer: g
|
|
2715
2739
|
}) {
|
|
2716
|
-
const u = `${t}`.split("_"),
|
|
2740
|
+
const u = `${t}`.split("_"), h = u.length > 1, y = h ? u[0] : t, w = a.get(y);
|
|
2717
2741
|
if (!w)
|
|
2718
|
-
return /* @__PURE__ */
|
|
2742
|
+
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2719
2743
|
"Widget not found in catalog: ",
|
|
2720
|
-
|
|
2744
|
+
y
|
|
2721
2745
|
] }) });
|
|
2722
2746
|
let v = null, b = !1;
|
|
2723
2747
|
if (w.component ? (v = w.component, b = !1) : w.loader && (b = !0, v = at(() => {
|
|
@@ -2725,82 +2749,82 @@ function wn({
|
|
|
2725
2749
|
if (w.component)
|
|
2726
2750
|
return w.component;
|
|
2727
2751
|
if (w.loader) {
|
|
2728
|
-
const
|
|
2752
|
+
const c = async () => {
|
|
2729
2753
|
try {
|
|
2730
2754
|
return await w.loader();
|
|
2731
2755
|
} catch (f) {
|
|
2732
2756
|
return console.error(`CDN Load Failure for ${t}:`, f), {
|
|
2733
|
-
default: () => /* @__PURE__ */
|
|
2757
|
+
default: () => /* @__PURE__ */ s(Cn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2734
2758
|
/* @__PURE__ */ W("p", { className: "font-bold", children: [
|
|
2735
2759
|
'Failed to load "',
|
|
2736
2760
|
t,
|
|
2737
2761
|
'"'
|
|
2738
2762
|
] }),
|
|
2739
|
-
/* @__PURE__ */
|
|
2740
|
-
/* @__PURE__ */
|
|
2763
|
+
/* @__PURE__ */ s("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
|
|
2764
|
+
/* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(w.meta || {}, null, 2) })
|
|
2741
2765
|
] }) })
|
|
2742
2766
|
};
|
|
2743
2767
|
}
|
|
2744
2768
|
};
|
|
2745
|
-
return se.lazy(
|
|
2769
|
+
return se.lazy(c);
|
|
2746
2770
|
}
|
|
2747
2771
|
return null;
|
|
2748
2772
|
}, [w, t])), !v)
|
|
2749
|
-
return /* @__PURE__ */
|
|
2773
|
+
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2750
2774
|
"Widget definition incomplete: ",
|
|
2751
|
-
|
|
2775
|
+
y
|
|
2752
2776
|
] }) });
|
|
2753
|
-
const C = !!w.isContainer, T =
|
|
2777
|
+
const C = !!w.isContainer, T = h ? gt(t) : "", S = C ? (o || []).filter((c) => c.parentWidgetKey === t) : [], D = {
|
|
2754
2778
|
index: e,
|
|
2755
2779
|
maxIndex: n,
|
|
2756
2780
|
widgetKey: t,
|
|
2757
2781
|
parentWidgetKey: r,
|
|
2758
2782
|
isEditing: d,
|
|
2759
|
-
title:
|
|
2760
|
-
onRemoveClick:
|
|
2761
|
-
onMoveClick:
|
|
2762
|
-
},
|
|
2783
|
+
title: h ? T : w.title,
|
|
2784
|
+
onRemoveClick: m,
|
|
2785
|
+
onMoveClick: p
|
|
2786
|
+
}, l = C ? {
|
|
2763
2787
|
highlight: i === t,
|
|
2764
|
-
selectContainer:
|
|
2788
|
+
selectContainer: g,
|
|
2765
2789
|
// The children prop is the recursive call back to DynamicWidgetLoader
|
|
2766
|
-
children: S.map((
|
|
2767
|
-
|
|
2790
|
+
children: S.map((c, f) => /* @__PURE__ */ s(
|
|
2791
|
+
Dn,
|
|
2768
2792
|
{
|
|
2769
2793
|
index: f,
|
|
2770
2794
|
maxIndex: S.length - 1,
|
|
2771
|
-
widgetKey:
|
|
2772
|
-
parentWidgetKey:
|
|
2773
|
-
widgetCatalog:
|
|
2795
|
+
widgetKey: c.widgetKey,
|
|
2796
|
+
parentWidgetKey: c.parentWidgetKey,
|
|
2797
|
+
widgetCatalog: a,
|
|
2774
2798
|
isEditing: d,
|
|
2775
|
-
onRemoveClick:
|
|
2776
|
-
onMoveClick:
|
|
2799
|
+
onRemoveClick: m,
|
|
2800
|
+
onMoveClick: p
|
|
2777
2801
|
},
|
|
2778
|
-
`${
|
|
2802
|
+
`${c.widgetKey}_${f}`
|
|
2779
2803
|
))
|
|
2780
|
-
} : {}, N = () => /* @__PURE__ */
|
|
2781
|
-
return b ? /* @__PURE__ */
|
|
2804
|
+
} : {}, N = () => /* @__PURE__ */ s(v, { ...D, ...l });
|
|
2805
|
+
return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ s(N, {}) }) : /* @__PURE__ */ s(N, {});
|
|
2782
2806
|
}
|
|
2783
|
-
const
|
|
2784
|
-
function
|
|
2807
|
+
const xe = "size-5";
|
|
2808
|
+
function ke(e) {
|
|
2785
2809
|
const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
|
|
2786
2810
|
let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
|
|
2787
|
-
const
|
|
2788
|
-
let
|
|
2789
|
-
["large", "xlarge"].indexOf(e.size || "") > -1 && (
|
|
2790
|
-
let
|
|
2791
|
-
t === "row" && !r ?
|
|
2811
|
+
const m = ["large", "xlarge"].includes(e.size || "");
|
|
2812
|
+
let p = "";
|
|
2813
|
+
["large", "xlarge"].indexOf(e.size || "") > -1 && (p = `${e.size}-widget`);
|
|
2814
|
+
let g = "";
|
|
2815
|
+
t === "row" && !r ? g = "min-h-48" : t === "column" && !r && (g = "min-h-96");
|
|
2792
2816
|
let u = Z(
|
|
2793
2817
|
"dashboard-widget-container relative ",
|
|
2794
2818
|
r ? "" : "has-no-children",
|
|
2795
2819
|
i ? "editing" : "",
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2820
|
+
g,
|
|
2821
|
+
p,
|
|
2822
|
+
m ? "widget-container-grid" : "widget-container-flex",
|
|
2799
2823
|
`direction-${t}`,
|
|
2800
2824
|
`border ${d}`,
|
|
2801
2825
|
`${n ? "highlight-container" : ""} ${d}`
|
|
2802
|
-
),
|
|
2803
|
-
const
|
|
2826
|
+
), h = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
|
|
2827
|
+
const y = () => {
|
|
2804
2828
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
|
|
2805
2829
|
}, w = (b) => {
|
|
2806
2830
|
e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
|
|
@@ -2808,17 +2832,17 @@ function je(e) {
|
|
|
2808
2832
|
e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
|
|
2809
2833
|
};
|
|
2810
2834
|
return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
|
|
2811
|
-
/* @__PURE__ */ W("div", { className:
|
|
2812
|
-
/* @__PURE__ */
|
|
2835
|
+
/* @__PURE__ */ W("div", { className: h, children: [
|
|
2836
|
+
/* @__PURE__ */ s(
|
|
2813
2837
|
"div",
|
|
2814
2838
|
{
|
|
2815
2839
|
className: "widget-title-wrapper w-full flex whitespace-nowrap",
|
|
2816
2840
|
onClick: v,
|
|
2817
|
-
children: /* @__PURE__ */
|
|
2841
|
+
children: /* @__PURE__ */ s("span", { className: "text-sm font-semibold capitalize", children: e.title })
|
|
2818
2842
|
}
|
|
2819
2843
|
),
|
|
2820
|
-
/* @__PURE__ */
|
|
2821
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__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: [
|
|
2845
|
+
/* @__PURE__ */ s(
|
|
2822
2846
|
J,
|
|
2823
2847
|
{
|
|
2824
2848
|
"data-testid": `open-widgets-catalog-from-container_${e.title}`,
|
|
@@ -2829,15 +2853,15 @@ function je(e) {
|
|
|
2829
2853
|
title: "Target this Container"
|
|
2830
2854
|
},
|
|
2831
2855
|
onClick: v,
|
|
2832
|
-
children: /* @__PURE__ */
|
|
2833
|
-
|
|
2856
|
+
children: /* @__PURE__ */ s(
|
|
2857
|
+
en,
|
|
2834
2858
|
{
|
|
2835
|
-
className: `${
|
|
2859
|
+
className: `${xe} ${n ? "text-success" : "text-disabled"}`
|
|
2836
2860
|
}
|
|
2837
2861
|
)
|
|
2838
2862
|
}
|
|
2839
2863
|
),
|
|
2840
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ s(
|
|
2841
2865
|
J,
|
|
2842
2866
|
{
|
|
2843
2867
|
"data-testid": `move-container-left_${e.title}`,
|
|
@@ -2848,10 +2872,10 @@ function je(e) {
|
|
|
2848
2872
|
title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
|
|
2849
2873
|
},
|
|
2850
2874
|
onClick: () => w(-1),
|
|
2851
|
-
children: /* @__PURE__ */
|
|
2875
|
+
children: /* @__PURE__ */ s(ut, { className: xe })
|
|
2852
2876
|
}
|
|
2853
2877
|
),
|
|
2854
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ s(
|
|
2855
2879
|
J,
|
|
2856
2880
|
{
|
|
2857
2881
|
"data-testid": `move-container-right_${e.title}`,
|
|
@@ -2862,10 +2886,10 @@ function je(e) {
|
|
|
2862
2886
|
title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
|
|
2863
2887
|
},
|
|
2864
2888
|
onClick: () => w(1),
|
|
2865
|
-
children: /* @__PURE__ */
|
|
2889
|
+
children: /* @__PURE__ */ s(ft, { className: xe })
|
|
2866
2890
|
}
|
|
2867
2891
|
),
|
|
2868
|
-
/* @__PURE__ */
|
|
2892
|
+
/* @__PURE__ */ s(
|
|
2869
2893
|
J,
|
|
2870
2894
|
{
|
|
2871
2895
|
"data-testid": `remove-container_${e.title}`,
|
|
@@ -2874,26 +2898,26 @@ function je(e) {
|
|
|
2874
2898
|
placement: "top",
|
|
2875
2899
|
title: "Remove Container"
|
|
2876
2900
|
},
|
|
2877
|
-
onClick: () =>
|
|
2878
|
-
children: /* @__PURE__ */
|
|
2901
|
+
onClick: () => y(),
|
|
2902
|
+
children: /* @__PURE__ */ s(ht, { className: xe })
|
|
2879
2903
|
}
|
|
2880
2904
|
)
|
|
2881
2905
|
] }) }) })
|
|
2882
2906
|
] }),
|
|
2883
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__PURE__ */ s("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
|
|
2884
2908
|
] });
|
|
2885
2909
|
}
|
|
2886
|
-
function
|
|
2910
|
+
function or(e) {
|
|
2887
2911
|
const { direction: n, ...t } = e;
|
|
2888
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ s(ke, { direction: "column", ...t });
|
|
2889
2913
|
}
|
|
2890
|
-
function
|
|
2914
|
+
function ir(e) {
|
|
2891
2915
|
const { size: n, ...t } = e;
|
|
2892
|
-
return /* @__PURE__ */
|
|
2916
|
+
return /* @__PURE__ */ s(ke, { size: "large", ...t });
|
|
2893
2917
|
}
|
|
2894
|
-
function
|
|
2918
|
+
function ar(e) {
|
|
2895
2919
|
const { direction: n, ...t } = e;
|
|
2896
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ s(ke, { direction: "row", ...t });
|
|
2897
2921
|
}
|
|
2898
2922
|
function We({
|
|
2899
2923
|
// widgetKey,
|
|
@@ -2901,58 +2925,58 @@ function We({
|
|
|
2901
2925
|
alreadyAdded: n,
|
|
2902
2926
|
addWidget: t
|
|
2903
2927
|
}) {
|
|
2904
|
-
const r = e.icon ||
|
|
2928
|
+
const r = e.icon || tn, i = e.displayName || "Unknown", o = e.description || "---", d = (e.noDuplicatedWidgets || !1) && n, m = Z(`
|
|
2905
2929
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2906
2930
|
${d ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
|
|
2907
2931
|
`);
|
|
2908
|
-
return /* @__PURE__ */ W("div", { className:
|
|
2932
|
+
return /* @__PURE__ */ W("div", { className: m, style: { width: "calc(100% - 1rem)" }, onClick: () => {
|
|
2909
2933
|
d || t();
|
|
2910
2934
|
}, children: [
|
|
2911
|
-
/* @__PURE__ */
|
|
2935
|
+
/* @__PURE__ */ s(r, { className: "" }),
|
|
2912
2936
|
/* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
2913
2937
|
/* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ s("span", { className: "font-bold", children: i }),
|
|
2939
|
+
/* @__PURE__ */ s("div", { className: "text-xs", children: d ? "(Added)" : "" })
|
|
2916
2940
|
] }),
|
|
2917
|
-
/* @__PURE__ */
|
|
2941
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: o }) })
|
|
2918
2942
|
] })
|
|
2919
2943
|
] });
|
|
2920
2944
|
}
|
|
2921
|
-
function
|
|
2945
|
+
function Tn({
|
|
2922
2946
|
item: e,
|
|
2923
2947
|
onSettingItemChanged: n
|
|
2924
2948
|
}) {
|
|
2925
2949
|
const t = e.displayName || "Unknown", r = e.description || "---", i = Z(`
|
|
2926
2950
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2927
2951
|
`), o = (d) => {
|
|
2928
|
-
const
|
|
2929
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
2952
|
+
const m = d.key;
|
|
2953
|
+
if (["ArrowUp", "ArrowDown"].includes(m)) {
|
|
2930
2954
|
d.preventDefault();
|
|
2931
|
-
const
|
|
2955
|
+
const p = Et.incrementOrDecrementValue(
|
|
2932
2956
|
e,
|
|
2933
|
-
|
|
2957
|
+
m === "ArrowUp" ? 1 : -1
|
|
2934
2958
|
);
|
|
2935
|
-
n(
|
|
2959
|
+
n(p);
|
|
2936
2960
|
}
|
|
2937
|
-
},
|
|
2961
|
+
}, a = (d) => {
|
|
2938
2962
|
n({
|
|
2939
2963
|
...e,
|
|
2940
2964
|
value: d.target.value || ""
|
|
2941
2965
|
});
|
|
2942
2966
|
};
|
|
2943
|
-
return /* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */
|
|
2945
|
-
/* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ s("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
2968
|
+
/* @__PURE__ */ s("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ s("span", { className: "font-bold", children: t }) }),
|
|
2969
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: r }) }),
|
|
2946
2970
|
/* @__PURE__ */ W("div", { children: [
|
|
2947
2971
|
"Value:",
|
|
2948
|
-
/* @__PURE__ */
|
|
2949
|
-
|
|
2972
|
+
/* @__PURE__ */ s(
|
|
2973
|
+
mt,
|
|
2950
2974
|
{
|
|
2951
2975
|
label: "Filter...",
|
|
2952
2976
|
size: "small",
|
|
2953
2977
|
className: "w-full",
|
|
2954
2978
|
value: e.value,
|
|
2955
|
-
onChange:
|
|
2979
|
+
onChange: a,
|
|
2956
2980
|
onKeyDown: o
|
|
2957
2981
|
}
|
|
2958
2982
|
)
|
|
@@ -2963,21 +2987,21 @@ const Ie = (e, n) => [
|
|
|
2963
2987
|
...n.widgets.filter((r) => r.indexOf("Container") === -1),
|
|
2964
2988
|
...n.childWidgetsConfig.map((r) => r.widgetKey)
|
|
2965
2989
|
].includes(e);
|
|
2966
|
-
function
|
|
2990
|
+
function sr({
|
|
2967
2991
|
targetContainerKey: e,
|
|
2968
2992
|
widgetsCatalog: n,
|
|
2969
2993
|
currentDashboardConfig: t,
|
|
2970
2994
|
undoStatus: r,
|
|
2971
2995
|
addWidget: i,
|
|
2972
2996
|
addContainer: o,
|
|
2973
|
-
onSettingItemsUpdated:
|
|
2997
|
+
onSettingItemsUpdated: a,
|
|
2974
2998
|
onResetToDefaultDashboardClick: d,
|
|
2975
|
-
onUndoOrRedo:
|
|
2976
|
-
onDoneClick:
|
|
2999
|
+
onUndoOrRedo: m,
|
|
3000
|
+
onDoneClick: p
|
|
2977
3001
|
}) {
|
|
2978
|
-
const [
|
|
3002
|
+
const [g, u] = le("Editing"), [h, y] = le(0), [w, v] = le(""), C = Array.from(n.keys()).map((E) => ({
|
|
2979
3003
|
widgetKey: E,
|
|
2980
|
-
metaData:
|
|
3004
|
+
metaData: Pt(E, n)
|
|
2981
3005
|
})), T = (E) => {
|
|
2982
3006
|
v(E.target.value);
|
|
2983
3007
|
}, S = (E) => {
|
|
@@ -2986,26 +3010,26 @@ function ir({
|
|
|
2986
3010
|
}, D = (E) => {
|
|
2987
3011
|
const z = w.trim().toLowerCase();
|
|
2988
3012
|
return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
|
|
2989
|
-
},
|
|
3013
|
+
}, l = (E) => Z(
|
|
2990
3014
|
"px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
|
|
2991
|
-
E ===
|
|
3015
|
+
E === h ? "text-primary border-primary" : ""
|
|
2992
3016
|
), N = !!e;
|
|
2993
|
-
|
|
3017
|
+
St(() => {
|
|
2994
3018
|
if (e) {
|
|
2995
|
-
|
|
2996
|
-
const E =
|
|
3019
|
+
y(0);
|
|
3020
|
+
const E = gt(e);
|
|
2997
3021
|
u(`Editing ${E}`);
|
|
2998
3022
|
} else
|
|
2999
3023
|
u("Editing Dashboard");
|
|
3000
3024
|
}, [e]);
|
|
3001
|
-
const
|
|
3025
|
+
const c = (E) => {
|
|
3002
3026
|
N ? i(E, e) : i(E);
|
|
3003
3027
|
}, f = (E) => {
|
|
3004
3028
|
const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
|
|
3005
|
-
|
|
3006
|
-
}, [P, $] =
|
|
3007
|
-
return /* @__PURE__ */
|
|
3008
|
-
|
|
3029
|
+
a(z);
|
|
3030
|
+
}, [P, $] = le(!1);
|
|
3031
|
+
return /* @__PURE__ */ s(
|
|
3032
|
+
bn,
|
|
3009
3033
|
{
|
|
3010
3034
|
testId: "dashboard-catalog-flyout",
|
|
3011
3035
|
className: "bg-body content-body bg-opacity-70 border-2 border-primary",
|
|
@@ -3022,18 +3046,18 @@ function ir({
|
|
|
3022
3046
|
children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
|
|
3023
3047
|
/* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
|
|
3024
3048
|
/* @__PURE__ */ W("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
|
|
3025
|
-
P ? /* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3049
|
+
P ? /* @__PURE__ */ s(Qt, { className: "size-5" }) : /* @__PURE__ */ s(Jt, { className: "size-5" }),
|
|
3050
|
+
/* @__PURE__ */ s(
|
|
3027
3051
|
"h2",
|
|
3028
3052
|
{
|
|
3029
3053
|
className: "flex-1 text-base margin-0 capitalize",
|
|
3030
|
-
title: N ?
|
|
3031
|
-
children:
|
|
3054
|
+
title: N ? g : `Editing dashboard: ${t.dashboardName}`,
|
|
3055
|
+
children: g
|
|
3032
3056
|
}
|
|
3033
3057
|
)
|
|
3034
3058
|
] }),
|
|
3035
3059
|
/* @__PURE__ */ W("div", { className: "flex flex-row gap-2 items-center", children: [
|
|
3036
|
-
/* @__PURE__ */
|
|
3060
|
+
/* @__PURE__ */ s(
|
|
3037
3061
|
J,
|
|
3038
3062
|
{
|
|
3039
3063
|
"data-testid": "undo-dashboard-config-change",
|
|
@@ -3043,11 +3067,11 @@ function ir({
|
|
|
3043
3067
|
title: "Undo"
|
|
3044
3068
|
},
|
|
3045
3069
|
disabled: r.isUndoDisabled,
|
|
3046
|
-
onClick: () =>
|
|
3047
|
-
children: /* @__PURE__ */
|
|
3070
|
+
onClick: () => m("Undo"),
|
|
3071
|
+
children: /* @__PURE__ */ s(Gt, { className: "size-5" })
|
|
3048
3072
|
}
|
|
3049
3073
|
),
|
|
3050
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ s(
|
|
3051
3075
|
J,
|
|
3052
3076
|
{
|
|
3053
3077
|
"data-testid": "redo-dashboard-config-change",
|
|
@@ -3057,11 +3081,11 @@ function ir({
|
|
|
3057
3081
|
title: "Redo"
|
|
3058
3082
|
},
|
|
3059
3083
|
disabled: r.isRedoDisabled,
|
|
3060
|
-
onClick: () =>
|
|
3061
|
-
children: /* @__PURE__ */
|
|
3084
|
+
onClick: () => m("Redo"),
|
|
3085
|
+
children: /* @__PURE__ */ s(Zt, { className: "size-5" })
|
|
3062
3086
|
}
|
|
3063
3087
|
),
|
|
3064
|
-
/* @__PURE__ */
|
|
3088
|
+
/* @__PURE__ */ s(
|
|
3065
3089
|
J,
|
|
3066
3090
|
{
|
|
3067
3091
|
"data-testid": "reset-dashboard-to-default",
|
|
@@ -3071,19 +3095,19 @@ function ir({
|
|
|
3071
3095
|
title: "Reset this dashboard to the default configuration"
|
|
3072
3096
|
},
|
|
3073
3097
|
onClick: d,
|
|
3074
|
-
children: /* @__PURE__ */
|
|
3098
|
+
children: /* @__PURE__ */ s(Xt, { className: "size-5" })
|
|
3075
3099
|
}
|
|
3076
3100
|
)
|
|
3077
3101
|
] })
|
|
3078
3102
|
] }),
|
|
3079
3103
|
/* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3082
|
-
!N && /* @__PURE__ */
|
|
3083
|
-
!N && /* @__PURE__ */
|
|
3104
|
+
/* @__PURE__ */ s("button", { onClick: () => y(0), className: l(0), children: "Widgets" }),
|
|
3105
|
+
/* @__PURE__ */ s("button", { onClick: () => y(1), className: l(1), children: "Charts" }),
|
|
3106
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(2), className: l(2), children: "Containers" }),
|
|
3107
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(3), className: l(3), children: /* @__PURE__ */ s(Ht, {}) })
|
|
3084
3108
|
] }),
|
|
3085
|
-
/* @__PURE__ */
|
|
3086
|
-
|
|
3109
|
+
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
|
|
3110
|
+
mt,
|
|
3087
3111
|
{
|
|
3088
3112
|
label: "Filter...",
|
|
3089
3113
|
size: "small",
|
|
@@ -3100,31 +3124,31 @@ function ir({
|
|
|
3100
3124
|
maxHeight: "360px"
|
|
3101
3125
|
},
|
|
3102
3126
|
children: [
|
|
3103
|
-
|
|
3127
|
+
h === 0 && C.filter(
|
|
3104
3128
|
(E) => E.metaData.categories.includes("Widget") && S(E.metaData)
|
|
3105
|
-
).map((E) => /* @__PURE__ */
|
|
3129
|
+
).map((E) => /* @__PURE__ */ s(
|
|
3106
3130
|
We,
|
|
3107
3131
|
{
|
|
3108
3132
|
widgetKey: E.widgetKey,
|
|
3109
3133
|
metaData: E.metaData,
|
|
3110
3134
|
alreadyAdded: Ie(E.widgetKey, t),
|
|
3111
|
-
addWidget: () =>
|
|
3135
|
+
addWidget: () => c(E.widgetKey)
|
|
3112
3136
|
},
|
|
3113
3137
|
E.widgetKey
|
|
3114
3138
|
)),
|
|
3115
|
-
|
|
3139
|
+
h === 1 && C.filter(
|
|
3116
3140
|
(E) => E.metaData.categories.includes("Chart") && S(E.metaData)
|
|
3117
|
-
).map((E) => /* @__PURE__ */
|
|
3141
|
+
).map((E) => /* @__PURE__ */ s(
|
|
3118
3142
|
We,
|
|
3119
3143
|
{
|
|
3120
3144
|
widgetKey: E.widgetKey,
|
|
3121
3145
|
metaData: E.metaData,
|
|
3122
3146
|
alreadyAdded: Ie(E.widgetKey, t),
|
|
3123
|
-
addWidget: () =>
|
|
3147
|
+
addWidget: () => c(E.widgetKey)
|
|
3124
3148
|
},
|
|
3125
3149
|
E.widgetKey
|
|
3126
3150
|
)),
|
|
3127
|
-
!N &&
|
|
3151
|
+
!N && h === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
|
|
3128
3152
|
We,
|
|
3129
3153
|
{
|
|
3130
3154
|
widgetKey: E.widgetKey,
|
|
@@ -3134,8 +3158,8 @@ function ir({
|
|
|
3134
3158
|
},
|
|
3135
3159
|
E.widgetKey
|
|
3136
3160
|
)),
|
|
3137
|
-
!N &&
|
|
3138
|
-
|
|
3161
|
+
!N && h === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ s(
|
|
3162
|
+
Tn,
|
|
3139
3163
|
{
|
|
3140
3164
|
item: E,
|
|
3141
3165
|
onSettingItemChanged: f
|
|
@@ -3145,7 +3169,7 @@ function ir({
|
|
|
3145
3169
|
]
|
|
3146
3170
|
}
|
|
3147
3171
|
),
|
|
3148
|
-
/* @__PURE__ */
|
|
3172
|
+
/* @__PURE__ */ s("div", { className: "mt-4 w-full flex flex-row justify-end pt-1", children: /* @__PURE__ */ s(
|
|
3149
3173
|
J,
|
|
3150
3174
|
{
|
|
3151
3175
|
className: "bg-opacity-100",
|
|
@@ -3153,7 +3177,7 @@ function ir({
|
|
|
3153
3177
|
placement: "bottom",
|
|
3154
3178
|
title: "Click to exit edit mode"
|
|
3155
3179
|
},
|
|
3156
|
-
onClick:
|
|
3180
|
+
onClick: p,
|
|
3157
3181
|
children: "Done"
|
|
3158
3182
|
}
|
|
3159
3183
|
) })
|
|
@@ -3162,69 +3186,71 @@ function ir({
|
|
|
3162
3186
|
);
|
|
3163
3187
|
}
|
|
3164
3188
|
export {
|
|
3165
|
-
|
|
3189
|
+
jn as AddIcon,
|
|
3166
3190
|
J as Button,
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3191
|
+
tn as CircleQuestionMark,
|
|
3192
|
+
en as CrosshairIcon,
|
|
3193
|
+
rr as DashboardGrid,
|
|
3170
3194
|
Le as DashboardMaxZoomScale,
|
|
3171
3195
|
Ae as DashboardMinZoomScale,
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3196
|
+
Cn as DashboardWidgetBase,
|
|
3197
|
+
_t as DashboardZoomStep,
|
|
3198
|
+
An as DeleteIcon,
|
|
3199
|
+
bn as DraggablePanel,
|
|
3200
|
+
Dn as DynamicWidgetLoader,
|
|
3201
|
+
Ln as EditIcon,
|
|
3202
|
+
Fn as GridIcon,
|
|
3203
|
+
Qt as HandGrabIcon,
|
|
3204
|
+
Jt as HandIcon,
|
|
3205
|
+
Xn as ListItem,
|
|
3206
|
+
Gn as ListItemLeftChild,
|
|
3207
|
+
Zn as ListItemMiddleChild,
|
|
3208
|
+
Jn as ListItemRightChild,
|
|
3209
|
+
Un as MonitorIcon,
|
|
3210
|
+
Vn as MonitorSmartphoneIcon,
|
|
3211
|
+
ut as MoveLeftIcon,
|
|
3212
|
+
ft as MoveRightIcon,
|
|
3213
|
+
Zt as RedoIcon,
|
|
3214
|
+
Ht as SettingsIcon,
|
|
3215
|
+
rn as Stack,
|
|
3192
3216
|
K as SvgBaseWrapper,
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3217
|
+
Yn as TabletSmartphoneIcon,
|
|
3218
|
+
Bn as TargetIcon,
|
|
3219
|
+
mt as TextField,
|
|
3220
|
+
Xt as TimerResetIcon,
|
|
3221
|
+
Gt as UndoIcon,
|
|
3222
|
+
or as WidgetContainerColumn,
|
|
3223
|
+
ir as WidgetContainerLarge,
|
|
3224
|
+
ar as WidgetContainerRow,
|
|
3225
|
+
sr as WidgetsCatalogFlyout,
|
|
3226
|
+
er as WrapperColumnContent,
|
|
3227
|
+
tr as WrapperColumnContentListItem,
|
|
3228
|
+
ht as XCircleIcon,
|
|
3229
|
+
qn as ZoomInIcon,
|
|
3230
|
+
zn as ZoomOutIcon,
|
|
3207
3231
|
Ce as blankDashboardConfig,
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3232
|
+
lt as createDynamicEntry,
|
|
3233
|
+
$t as createStaticEntry,
|
|
3234
|
+
Dt as cssSettingsCatalog,
|
|
3235
|
+
Hn as cssVarsUtils,
|
|
3236
|
+
Et as dashboardSettingsUtils,
|
|
3237
|
+
Mt as ensureContainersSequence,
|
|
3238
|
+
ct as ensureZoomScaleIsWithinRange,
|
|
3239
|
+
ge as getDefaultWidgetMetaFromKey,
|
|
3240
|
+
$n as getDefaultWidgetMetaFromMap,
|
|
3217
3241
|
Z as getDistinctCssClasses,
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3242
|
+
It as getMetaInfoFromFile,
|
|
3243
|
+
Mn as getNewZoomScaleWithinRange,
|
|
3244
|
+
Pt as getWidgetMetaFromCatalog,
|
|
3245
|
+
In as localWidgetDiscovery,
|
|
3246
|
+
gt as parseContainerTitle,
|
|
3247
|
+
Wt as parseKeyAndTitleFromFilePath,
|
|
3248
|
+
Wn as remoteWidgetDiscovery,
|
|
3249
|
+
Pn as removeEmptyContainers,
|
|
3224
3250
|
re as resolveColorFromClass,
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3251
|
+
Kn as resolvedColors,
|
|
3252
|
+
nr as showToast,
|
|
3253
|
+
Rn as useDashboardStorageService,
|
|
3254
|
+
On as useDashboardStore,
|
|
3255
|
+
kn as useDashboardUndoService
|
|
3230
3256
|
};
|