@tenorlab/react-dashboard 1.2.3 → 1.2.4
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,10 +1,10 @@
|
|
|
1
|
-
import ae, { useState as
|
|
1
|
+
import ae, { useState as ce, useCallback as ue, useMemo as st, forwardRef as le, useRef as Ct, Suspense as St, useEffect as Dt } from "react";
|
|
2
2
|
import { jsxs as W, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import ct from "react-dom";
|
|
4
|
+
const Tt = [
|
|
5
5
|
{
|
|
6
6
|
key: "grid-gap",
|
|
7
|
-
|
|
7
|
+
name: "Gap",
|
|
8
8
|
description: "Set the gap between widgets in the dashboard grid",
|
|
9
9
|
cssProperty: "--bwj-dashboard-gap",
|
|
10
10
|
step: 0.1,
|
|
@@ -15,7 +15,7 @@ const Nt = [
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
key: "widget-width",
|
|
18
|
-
|
|
18
|
+
name: "Widget Width",
|
|
19
19
|
description: "Set the min width for the widgets",
|
|
20
20
|
cssProperty: "--bwj-widget-width",
|
|
21
21
|
step: 0.1,
|
|
@@ -26,7 +26,7 @@ const Nt = [
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: "widget-border-radius",
|
|
29
|
-
|
|
29
|
+
name: "Widget Border Radius",
|
|
30
30
|
description: "Set the border radius for the widgets",
|
|
31
31
|
cssProperty: "--bwj-widget-border-radius",
|
|
32
32
|
step: 0.1,
|
|
@@ -37,7 +37,7 @@ const Nt = [
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
key: "widget-inner-padding-x",
|
|
40
|
-
|
|
40
|
+
name: "Widget Horiz Padding",
|
|
41
41
|
description: "Set the horizontal padding for the widgets",
|
|
42
42
|
cssProperty: "--bwj-widget-inner-px",
|
|
43
43
|
step: 0.1,
|
|
@@ -48,7 +48,7 @@ const Nt = [
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
key: "widget-inner-padding-y",
|
|
51
|
-
|
|
51
|
+
name: "Widget Vertical Padding",
|
|
52
52
|
description: "Set the vertical padding for the widgets",
|
|
53
53
|
cssProperty: "--bwj-widget-inner-py",
|
|
54
54
|
step: 0.1,
|
|
@@ -59,7 +59,7 @@ const Nt = [
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
key: "widget-header-padding-y",
|
|
62
|
-
|
|
62
|
+
name: "Widget Header Vertical Padding",
|
|
63
63
|
description: "Set the vertical padding for the widget headers",
|
|
64
64
|
cssProperty: "--bwj-widget-header-py",
|
|
65
65
|
step: 0.1,
|
|
@@ -70,7 +70,7 @@ const Nt = [
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
key: "widget-title-font-size",
|
|
73
|
-
|
|
73
|
+
name: "Widget Title Font Size",
|
|
74
74
|
description: "Set the font size for the widget titles",
|
|
75
75
|
cssProperty: "--bwj-widget-title-size",
|
|
76
76
|
step: 0.1,
|
|
@@ -79,9 +79,9 @@ const Nt = [
|
|
|
79
79
|
defaultValue: "1.0rem",
|
|
80
80
|
value: "1.0rem"
|
|
81
81
|
}
|
|
82
|
-
],
|
|
82
|
+
], Et = ["rem", "pc", "cm", "in", "em", "vh", "vw", "%"], Nt = (e, n) => Et.includes(e) ? n : 1, _t = {
|
|
83
83
|
incrementOrDecrementValue: (e, n) => {
|
|
84
|
-
const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0,
|
|
84
|
+
const t = e.value.match(/([\d.]+)/), r = t ? parseFloat(t[1]) : 0, i = e.value.match(/([^\d.]+)/), o = i ? i[1] : e.defaultUnit, a = Nt(o, e.step) * n, b = `${Math.max(r + a, e.minValue).toFixed(1)}${o}`;
|
|
85
85
|
return {
|
|
86
86
|
...e,
|
|
87
87
|
value: b
|
|
@@ -96,13 +96,13 @@ const Nt = [
|
|
|
96
96
|
responsiveGrid: !1,
|
|
97
97
|
widgets: [],
|
|
98
98
|
childWidgetsConfig: [],
|
|
99
|
-
cssSettings: [...
|
|
100
|
-
}, Ae = 0.7, Fe = 1, Mt = 0.05,
|
|
99
|
+
cssSettings: [...Tt]
|
|
100
|
+
}, Ae = 0.7, Fe = 1, Mt = 0.05, lt = (e) => {
|
|
101
101
|
let n = Number(e || 0);
|
|
102
102
|
return n < Ae && (n = Ae), n > Fe && (n = Fe), n;
|
|
103
103
|
}, Pn = (e, n) => {
|
|
104
104
|
let t = Number(Number((Mt * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
|
|
105
|
-
return
|
|
105
|
+
return lt(r);
|
|
106
106
|
}, $n = (e) => {
|
|
107
107
|
let n = {
|
|
108
108
|
...e
|
|
@@ -110,11 +110,11 @@ const Nt = [
|
|
|
110
110
|
return n.widgets = n.widgets.filter((t) => {
|
|
111
111
|
if (`${t}`.includes("WidgetContainer")) {
|
|
112
112
|
const r = n.childWidgetsConfig.filter(
|
|
113
|
-
(
|
|
113
|
+
(i) => i.parentWidgetKey === t
|
|
114
114
|
);
|
|
115
115
|
if (!r || r.length === 0)
|
|
116
116
|
return n.widgets = n.widgets.filter(
|
|
117
|
-
(
|
|
117
|
+
(i) => i !== t
|
|
118
118
|
), !1;
|
|
119
119
|
}
|
|
120
120
|
return !0;
|
|
@@ -123,23 +123,23 @@ const Nt = [
|
|
|
123
123
|
const n = e.widgets.filter(
|
|
124
124
|
(r) => r.includes("WidgetContainer")
|
|
125
125
|
), t = {};
|
|
126
|
-
return n.forEach((r,
|
|
127
|
-
const d = `${r.split("_container")[0]}_container${
|
|
126
|
+
return n.forEach((r, i) => {
|
|
127
|
+
const d = `${r.split("_container")[0]}_container${i + 1}`;
|
|
128
128
|
t[r] = d;
|
|
129
129
|
}), e.widgets = e.widgets.map((r) => t[r] || r), e.childWidgetsConfig = e.childWidgetsConfig.map((r) => {
|
|
130
|
-
const
|
|
130
|
+
const i = r.parentWidgetKey, o = t[i];
|
|
131
131
|
return {
|
|
132
132
|
...r,
|
|
133
133
|
// If a new key exists, use it. If not, keep the original key.
|
|
134
|
-
parentWidgetKey:
|
|
134
|
+
parentWidgetKey: o || i
|
|
135
135
|
};
|
|
136
136
|
}), e;
|
|
137
137
|
}, ge = (e, n) => {
|
|
138
|
-
const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"],
|
|
138
|
+
const t = `${e}`.includes("Container"), r = t ? ["Container"] : ["Widget"], i = n?.title || e, o = n?.description || (t ? "Container" : "Unknown");
|
|
139
139
|
return {
|
|
140
|
-
title:
|
|
141
|
-
|
|
142
|
-
description:
|
|
140
|
+
title: i,
|
|
141
|
+
name: e,
|
|
142
|
+
description: o,
|
|
143
143
|
categories: r,
|
|
144
144
|
noDuplicatedWidgets: !0,
|
|
145
145
|
icon: void 0,
|
|
@@ -157,7 +157,7 @@ const Nt = [
|
|
|
157
157
|
e,
|
|
158
158
|
{
|
|
159
159
|
key: e,
|
|
160
|
-
title: r.
|
|
160
|
+
title: r.name,
|
|
161
161
|
isContainer: `${e}`.includes("Container"),
|
|
162
162
|
meta: r,
|
|
163
163
|
component: n
|
|
@@ -169,7 +169,7 @@ const Nt = [
|
|
|
169
169
|
e,
|
|
170
170
|
{
|
|
171
171
|
key: e,
|
|
172
|
-
title: r.
|
|
172
|
+
title: r.name,
|
|
173
173
|
isContainer: !1,
|
|
174
174
|
meta: r,
|
|
175
175
|
loader: n
|
|
@@ -178,36 +178,36 @@ const Nt = [
|
|
|
178
178
|
}, It = (e) => {
|
|
179
179
|
const n = e.match(/\/widget-([a-zA-Z0-9-]+)\/index\.ts$/);
|
|
180
180
|
if (n && n[1]) {
|
|
181
|
-
const t = n[1], r = t.split("-"),
|
|
181
|
+
const t = n[1], r = t.split("-"), i = `Widget${r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("")}`, o = r.map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join(" ");
|
|
182
182
|
return {
|
|
183
|
-
key:
|
|
184
|
-
title:
|
|
183
|
+
key: i,
|
|
184
|
+
title: o,
|
|
185
185
|
folder: t
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
return null;
|
|
189
189
|
}, Ot = (e, n, t, r) => {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
190
|
+
const i = `${n}/widget-${t}/meta.ts`, o = e[i];
|
|
191
|
+
if (!o)
|
|
192
192
|
return;
|
|
193
193
|
const a = `${r}Meta`;
|
|
194
|
-
return
|
|
194
|
+
return o[a] || void 0;
|
|
195
195
|
}, In = async (e) => new Promise(async (n, t) => {
|
|
196
196
|
const r = [];
|
|
197
197
|
try {
|
|
198
|
-
const
|
|
199
|
-
for (const a in
|
|
200
|
-
const d =
|
|
198
|
+
const o = await (await fetch(`${e}?${Math.random()}`)).json();
|
|
199
|
+
for (const a in o) {
|
|
200
|
+
const d = o[a], b = () => import(
|
|
201
201
|
/* @vite-ignore */
|
|
202
202
|
d.url
|
|
203
203
|
), g = {
|
|
204
|
-
|
|
205
|
-
description: d.meta
|
|
206
|
-
categories: d.meta
|
|
207
|
-
noDuplicatedWidgets: d.meta
|
|
204
|
+
name: d.meta?.name || "Unknown",
|
|
205
|
+
description: d.meta?.description || "Remote Plugin",
|
|
206
|
+
categories: d.meta?.categories || ["Widget"],
|
|
207
|
+
noDuplicatedWidgets: d.meta?.noDuplicatedWidgets ?? !0,
|
|
208
208
|
icon: void 0,
|
|
209
209
|
// Or a logic to map a string name to a Lucide component
|
|
210
|
-
externalDependencies: d.meta
|
|
210
|
+
externalDependencies: d.meta?.externalDependencies || []
|
|
211
211
|
};
|
|
212
212
|
r.push(dt(a, b, g));
|
|
213
213
|
}
|
|
@@ -216,17 +216,17 @@ const Nt = [
|
|
|
216
216
|
message: "",
|
|
217
217
|
details: ""
|
|
218
218
|
});
|
|
219
|
-
} catch (
|
|
220
|
-
console.error("Remote plugin discovery failed:",
|
|
219
|
+
} catch (i) {
|
|
220
|
+
console.error("Remote plugin discovery failed:", i), t({
|
|
221
221
|
entries: [],
|
|
222
222
|
message: "Remote plugin discovery failed:",
|
|
223
|
-
details: typeof
|
|
223
|
+
details: typeof i == "object" ? JSON.stringify(i) : i
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
}), On = (e, n, t, r = !0) => {
|
|
227
|
-
const
|
|
228
|
-
for (const
|
|
229
|
-
const a = n[
|
|
227
|
+
const i = [];
|
|
228
|
+
for (const o in n) {
|
|
229
|
+
const a = n[o], d = It(o);
|
|
230
230
|
if (d && a) {
|
|
231
231
|
const { key: b, title: g, folder: h } = d;
|
|
232
232
|
let u = Ot(t, e, h, b);
|
|
@@ -234,16 +234,16 @@ const Nt = [
|
|
|
234
234
|
title: g,
|
|
235
235
|
description: `Local ${r ? "dynamic" : "static"} widget`
|
|
236
236
|
})), r)
|
|
237
|
-
|
|
237
|
+
i.push(
|
|
238
238
|
dt(b, a, u)
|
|
239
239
|
);
|
|
240
240
|
else {
|
|
241
241
|
const p = a.default || a;
|
|
242
|
-
|
|
242
|
+
i.push(Wt(b, p, u));
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
return
|
|
246
|
+
return i;
|
|
247
247
|
}, Le = (e) => {
|
|
248
248
|
let n;
|
|
249
249
|
const t = /* @__PURE__ */ new Set(), r = (g, h) => {
|
|
@@ -252,7 +252,7 @@ const Nt = [
|
|
|
252
252
|
const p = n;
|
|
253
253
|
n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, p));
|
|
254
254
|
}
|
|
255
|
-
},
|
|
255
|
+
}, i = () => n, d = { setState: r, getState: i, getInitialState: () => b, subscribe: (g) => (t.add(g), () => t.delete(g)) }, b = n = e(r, i, d);
|
|
256
256
|
return d;
|
|
257
257
|
}, Rt = ((e) => e ? Le(e) : Le), kt = (e) => e;
|
|
258
258
|
function jt(e, n = kt) {
|
|
@@ -273,9 +273,9 @@ const At = (e) => {
|
|
|
273
273
|
const t = Lt(e);
|
|
274
274
|
return `${n}_${t}`;
|
|
275
275
|
}, Ut = (e) => {
|
|
276
|
-
const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets:
|
|
276
|
+
const { dashboardConfig: n, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: i } = e;
|
|
277
277
|
if (r) {
|
|
278
|
-
if (
|
|
278
|
+
if (i && n.childWidgetsConfig.find(
|
|
279
279
|
(a) => a.parentWidgetKey === r && a.widgetKey === t
|
|
280
280
|
))
|
|
281
281
|
return {
|
|
@@ -283,7 +283,7 @@ const At = (e) => {
|
|
|
283
283
|
message: `DashboardStore: addWidget: Widget already added (${t})`,
|
|
284
284
|
updatedDashboardConfig: n
|
|
285
285
|
};
|
|
286
|
-
const
|
|
286
|
+
const o = [
|
|
287
287
|
...n.childWidgetsConfig,
|
|
288
288
|
{ parentWidgetKey: r, widgetKey: t }
|
|
289
289
|
// new entry
|
|
@@ -292,22 +292,22 @@ const At = (e) => {
|
|
|
292
292
|
success: !0,
|
|
293
293
|
updatedDashboardConfig: {
|
|
294
294
|
...n,
|
|
295
|
-
childWidgetsConfig:
|
|
295
|
+
childWidgetsConfig: o
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
} else {
|
|
299
|
-
if (
|
|
299
|
+
if (i && n.widgets.includes(t))
|
|
300
300
|
return {
|
|
301
301
|
success: !1,
|
|
302
302
|
message: `DashboardStore: addWidget: Widget already added (${t})`,
|
|
303
303
|
updatedDashboardConfig: n
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const o = [...n.widgets, t];
|
|
306
306
|
return {
|
|
307
307
|
success: !0,
|
|
308
308
|
updatedDashboardConfig: {
|
|
309
309
|
...n,
|
|
310
|
-
widgets:
|
|
310
|
+
widgets: o
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
@@ -315,64 +315,64 @@ const At = (e) => {
|
|
|
315
315
|
if ((t || "").trim().length > 0) {
|
|
316
316
|
const r = e.childWidgetsConfig.filter(
|
|
317
317
|
(b) => b.parentWidgetKey !== t
|
|
318
|
-
),
|
|
318
|
+
), i = e.childWidgetsConfig.filter(
|
|
319
319
|
(b) => b.parentWidgetKey === t && b.widgetKey !== n
|
|
320
|
-
),
|
|
320
|
+
), o = [...r, ...i];
|
|
321
321
|
let a = {
|
|
322
322
|
...e,
|
|
323
|
-
childWidgetsConfig:
|
|
323
|
+
childWidgetsConfig: o
|
|
324
324
|
};
|
|
325
325
|
return `${n}`.includes("Container") && (a = Pt(a)), {
|
|
326
326
|
success: !0,
|
|
327
327
|
updatedDashboardConfig: a
|
|
328
328
|
};
|
|
329
329
|
} else {
|
|
330
|
-
const r = e.widgets.filter((
|
|
331
|
-
(
|
|
330
|
+
const r = e.widgets.filter((o) => o !== n), i = e.childWidgetsConfig.filter(
|
|
331
|
+
(o) => o.parentWidgetKey !== n
|
|
332
332
|
);
|
|
333
333
|
return {
|
|
334
334
|
success: !0,
|
|
335
335
|
updatedDashboardConfig: {
|
|
336
336
|
...e,
|
|
337
337
|
widgets: r,
|
|
338
|
-
childWidgetsConfig:
|
|
338
|
+
childWidgetsConfig: i
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}, Yt = (e, n, t, r) => {
|
|
343
343
|
if ((r || "").trim().length > 0) {
|
|
344
|
-
const
|
|
344
|
+
const i = e.childWidgetsConfig.filter(
|
|
345
345
|
(h) => h.parentWidgetKey !== r
|
|
346
346
|
);
|
|
347
|
-
let
|
|
347
|
+
let o = e.childWidgetsConfig.filter(
|
|
348
348
|
(h) => h.parentWidgetKey === r
|
|
349
349
|
);
|
|
350
|
-
const a =
|
|
350
|
+
const a = o.indexOf(t);
|
|
351
351
|
let d = a + n;
|
|
352
|
-
if (d = Math.max(0, d), d = Math.min(
|
|
352
|
+
if (d = Math.max(0, d), d = Math.min(o.length - 1, d), d === a)
|
|
353
353
|
return {
|
|
354
354
|
success: !1,
|
|
355
355
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
356
356
|
updatedDashboardConfig: e
|
|
357
357
|
};
|
|
358
|
-
const b = [...
|
|
358
|
+
const b = [...o], [g] = b.splice(a, 1);
|
|
359
359
|
return b.splice(d, 0, g), {
|
|
360
360
|
success: !0,
|
|
361
361
|
updatedDashboardConfig: {
|
|
362
362
|
...e,
|
|
363
|
-
childWidgetsConfig: [...
|
|
363
|
+
childWidgetsConfig: [...i, ...b]
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
} else {
|
|
367
|
-
const
|
|
368
|
-
let a =
|
|
369
|
-
if (a = Math.max(0, a), a = Math.min(
|
|
367
|
+
const i = e.widgets || [], o = i.indexOf(t);
|
|
368
|
+
let a = o + n;
|
|
369
|
+
if (a = Math.max(0, a), a = Math.min(i.length - 1, a), a === o)
|
|
370
370
|
return {
|
|
371
371
|
success: !1,
|
|
372
372
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
373
373
|
updatedDashboardConfig: e
|
|
374
374
|
};
|
|
375
|
-
const d = [...
|
|
375
|
+
const d = [...i], [b] = d.splice(o, 1);
|
|
376
376
|
return d.splice(a, 0, b), {
|
|
377
377
|
success: !0,
|
|
378
378
|
updatedDashboardConfig: {
|
|
@@ -396,79 +396,79 @@ const At = (e) => {
|
|
|
396
396
|
setTargetContainerKey: (t) => (e(() => ({ targetContainerKey: t })), t),
|
|
397
397
|
setAllDashboardConfigs: (t) => (e(() => ({ allDashboardConfigs: t })), n().allDashboardConfigs),
|
|
398
398
|
setCurrentDashboardConfig: (t) => {
|
|
399
|
-
const r = n(),
|
|
400
|
-
...r.allDashboardConfigs.filter((
|
|
399
|
+
const r = n(), i = [
|
|
400
|
+
...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
|
|
401
401
|
t
|
|
402
402
|
];
|
|
403
403
|
return e(() => ({
|
|
404
404
|
...r,
|
|
405
|
-
allDashboardConfigs:
|
|
405
|
+
allDashboardConfigs: i,
|
|
406
406
|
currentDashboardConfig: t
|
|
407
|
-
})),
|
|
407
|
+
})), i;
|
|
408
408
|
},
|
|
409
409
|
addDashboardConfig: (t) => {
|
|
410
|
-
const r = n(),
|
|
411
|
-
...r.allDashboardConfigs.filter((
|
|
410
|
+
const r = n(), i = [
|
|
411
|
+
...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
|
|
412
412
|
t
|
|
413
413
|
];
|
|
414
414
|
return e(() => ({
|
|
415
415
|
...r,
|
|
416
|
-
allDashboardConfigs:
|
|
416
|
+
allDashboardConfigs: i,
|
|
417
417
|
currentDashboardConfig: t
|
|
418
|
-
})),
|
|
418
|
+
})), i;
|
|
419
419
|
},
|
|
420
420
|
deleteDashboardConfigById: (t) => {
|
|
421
|
-
const r = n(),
|
|
421
|
+
const r = n(), i = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
|
|
422
422
|
return e(() => ({
|
|
423
423
|
...r,
|
|
424
|
-
allDashboardConfigs:
|
|
425
|
-
currentDashboardConfig:
|
|
426
|
-
})),
|
|
424
|
+
allDashboardConfigs: i,
|
|
425
|
+
currentDashboardConfig: i[0] || Ce
|
|
426
|
+
})), i;
|
|
427
427
|
},
|
|
428
428
|
selectDashboardById: (t) => (e(() => {
|
|
429
|
-
const r = n(),
|
|
430
|
-
return
|
|
431
|
-
currentDashboardConfig:
|
|
429
|
+
const r = n(), i = r.allDashboardConfigs.find((o) => o.dashboardId === t);
|
|
430
|
+
return i ? {
|
|
431
|
+
currentDashboardConfig: i
|
|
432
432
|
} : {
|
|
433
433
|
...r
|
|
434
434
|
};
|
|
435
435
|
}), n().currentDashboardConfig),
|
|
436
436
|
addWidget: (t) => {
|
|
437
|
-
const r = n(),
|
|
437
|
+
const r = n(), i = Ut({
|
|
438
438
|
dashboardConfig: r.currentDashboardConfig,
|
|
439
439
|
...t
|
|
440
|
-
}),
|
|
440
|
+
}), o = [
|
|
441
441
|
...r.allDashboardConfigs.filter(
|
|
442
|
-
(a) => a.dashboardId !==
|
|
442
|
+
(a) => a.dashboardId !== i.updatedDashboardConfig.dashboardId
|
|
443
443
|
),
|
|
444
|
-
|
|
444
|
+
i.updatedDashboardConfig
|
|
445
445
|
];
|
|
446
|
-
return
|
|
447
|
-
allDashboardConfigs:
|
|
448
|
-
currentDashboardConfig:
|
|
446
|
+
return i.success && e(() => ({
|
|
447
|
+
allDashboardConfigs: o,
|
|
448
|
+
currentDashboardConfig: i.updatedDashboardConfig
|
|
449
449
|
})), {
|
|
450
|
-
...
|
|
451
|
-
allUpdatedDashboardConfigs:
|
|
450
|
+
...i,
|
|
451
|
+
allUpdatedDashboardConfigs: o
|
|
452
452
|
};
|
|
453
453
|
},
|
|
454
454
|
removeWidget: (t, r) => {
|
|
455
|
-
const
|
|
456
|
-
...
|
|
457
|
-
(d) => d.dashboardId !==
|
|
455
|
+
const i = n(), o = qt(i.currentDashboardConfig, t, r), a = [
|
|
456
|
+
...i.allDashboardConfigs.filter(
|
|
457
|
+
(d) => d.dashboardId !== o.updatedDashboardConfig.dashboardId
|
|
458
458
|
),
|
|
459
|
-
|
|
459
|
+
o.updatedDashboardConfig
|
|
460
460
|
];
|
|
461
|
-
return
|
|
461
|
+
return o.success && e(() => ({
|
|
462
462
|
allDashboardConfigs: a,
|
|
463
|
-
currentDashboardConfig:
|
|
463
|
+
currentDashboardConfig: o.updatedDashboardConfig
|
|
464
464
|
})), {
|
|
465
|
-
...
|
|
465
|
+
...o,
|
|
466
466
|
allUpdatedDashboardConfigs: a
|
|
467
467
|
};
|
|
468
468
|
},
|
|
469
|
-
moveWidget: (t, r,
|
|
470
|
-
const
|
|
471
|
-
...
|
|
469
|
+
moveWidget: (t, r, i) => {
|
|
470
|
+
const o = n(), a = Yt(o.currentDashboardConfig, t, r, i), d = [
|
|
471
|
+
...o.allDashboardConfigs.filter(
|
|
472
472
|
(b) => b.dashboardId !== a.updatedDashboardConfig.dashboardId
|
|
473
473
|
),
|
|
474
474
|
a.updatedDashboardConfig
|
|
@@ -484,11 +484,11 @@ const At = (e) => {
|
|
|
484
484
|
}), Rn = Ft()((...e) => ({
|
|
485
485
|
...zt(...e)
|
|
486
486
|
})), ut = (e, n) => `dashboards_${n}_${e}`, Bt = async (e, n, t, r) => {
|
|
487
|
-
const
|
|
488
|
-
if (
|
|
487
|
+
const i = localStorage.getItem(ut(e, n));
|
|
488
|
+
if (i)
|
|
489
489
|
try {
|
|
490
|
-
const
|
|
491
|
-
return
|
|
490
|
+
const o = JSON.parse(i);
|
|
491
|
+
return o.length < 1 ? [r] : (o.forEach((a) => {
|
|
492
492
|
a.dashboardId || (a.dashboardId = "default"), a.dashboardName || (a.dashboardName = `Dashboard ${a.dashboardId}`), a.responsiveGrid = a.responsiveGrid ?? !1, (a.widgets || []).length < 1 && (a.widgets = r.widgets);
|
|
493
493
|
const d = (a.cssSettings || []).filter(
|
|
494
494
|
(b) => r.cssSettings.some((g) => g.key === b.key)
|
|
@@ -515,28 +515,28 @@ const At = (e) => {
|
|
|
515
515
|
), a.childWidgetsConfig = a.childWidgetsConfig.filter(
|
|
516
516
|
(b) => t.has(b.widgetKey)
|
|
517
517
|
), a.zoomScale ? a.zoomScale < 0.7 && (a.zoomScale = 0.7) : a.zoomScale = 1;
|
|
518
|
-
}),
|
|
519
|
-
} catch (
|
|
520
|
-
console.warn("Error parsing saved dashboard config:",
|
|
518
|
+
}), o);
|
|
519
|
+
} catch (o) {
|
|
520
|
+
console.warn("Error parsing saved dashboard config:", o);
|
|
521
521
|
}
|
|
522
522
|
return [r];
|
|
523
523
|
}, Ht = async (e, n, t, r) => {
|
|
524
|
-
t.forEach((
|
|
525
|
-
if (
|
|
524
|
+
t.forEach((o) => {
|
|
525
|
+
if (o.userID = e, o.clientAppKey = n, o.responsiveGrid = o.responsiveGrid ?? !1, typeof o != "object")
|
|
526
526
|
throw new Error("Invalid dashboard configuration");
|
|
527
|
-
|
|
527
|
+
o.widgets = o.widgets.filter(
|
|
528
528
|
(a) => a.includes("WidgetContainer") || r.has(a)
|
|
529
|
-
),
|
|
529
|
+
), o.childWidgetsConfig = o.childWidgetsConfig.filter(
|
|
530
530
|
(a) => r.has(a.widgetKey)
|
|
531
|
-
),
|
|
531
|
+
), o.zoomScale ? o.zoomScale < 0.7 && (o.zoomScale = 0.7) : o.zoomScale = 1;
|
|
532
532
|
});
|
|
533
|
-
const
|
|
534
|
-
return localStorage.setItem(ut(e, n),
|
|
533
|
+
const i = JSON.stringify(t);
|
|
534
|
+
return localStorage.setItem(ut(e, n), i), !0;
|
|
535
535
|
}, Kt = {
|
|
536
536
|
getSavedDashboards: Bt,
|
|
537
537
|
saveDashboards: Ht
|
|
538
538
|
}, kn = () => Kt, jn = () => {
|
|
539
|
-
const [e, n] =
|
|
539
|
+
const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
|
|
540
540
|
const u = h.dashboardId;
|
|
541
541
|
n((p) => {
|
|
542
542
|
const y = {
|
|
@@ -552,7 +552,7 @@ const At = (e) => {
|
|
|
552
552
|
// Forces a reset to just this one entry
|
|
553
553
|
};
|
|
554
554
|
});
|
|
555
|
-
}, []),
|
|
555
|
+
}, []), o = ue(
|
|
556
556
|
(h) => {
|
|
557
557
|
n((u) => {
|
|
558
558
|
const p = h.dashboardId, y = u[p] || [], D = t[p] ?? -1, m = y.slice(0, D + 1), v = {
|
|
@@ -560,8 +560,8 @@ const At = (e) => {
|
|
|
560
560
|
// New index based on trimmed length
|
|
561
561
|
config: h
|
|
562
562
|
}, w = [...m, v];
|
|
563
|
-
return r((
|
|
564
|
-
...
|
|
563
|
+
return r((T) => ({
|
|
564
|
+
...T,
|
|
565
565
|
[p]: w.length - 1
|
|
566
566
|
// Index is now the last element's index
|
|
567
567
|
})), {
|
|
@@ -604,9 +604,9 @@ const At = (e) => {
|
|
|
604
604
|
]
|
|
605
605
|
);
|
|
606
606
|
return {
|
|
607
|
-
initializeHistoryForDashboard:
|
|
607
|
+
initializeHistoryForDashboard: i,
|
|
608
608
|
resetAllHistory: () => n({}),
|
|
609
|
-
addUndoEntry:
|
|
609
|
+
addUndoEntry: o,
|
|
610
610
|
removeUndoHistoryForDashboard: a,
|
|
611
611
|
undo: d,
|
|
612
612
|
redo: b,
|
|
@@ -831,7 +831,7 @@ const G = (e, ...n) => [
|
|
|
831
831
|
].join(" ").trim(), re = (e, n = "color") => {
|
|
832
832
|
if (typeof window > "u") return "#FFFFFF";
|
|
833
833
|
const t = document.createElement("div");
|
|
834
|
-
Array.isArray(e) ? e.forEach((
|
|
834
|
+
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);
|
|
835
835
|
const r = window.getComputedStyle(t)[n];
|
|
836
836
|
return document.body.removeChild(t), r;
|
|
837
837
|
}, Kn = {
|
|
@@ -866,8 +866,8 @@ const G = (e, ...n) => [
|
|
|
866
866
|
className: n,
|
|
867
867
|
size: t = "medium",
|
|
868
868
|
value: r,
|
|
869
|
-
onChange:
|
|
870
|
-
onKeyDown:
|
|
869
|
+
onChange: i,
|
|
870
|
+
onKeyDown: o,
|
|
871
871
|
placeholder: a = ""
|
|
872
872
|
}) => {
|
|
873
873
|
const d = st(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), b = G("flex flex-col mb-4", n || ""), h = `${G(`
|
|
@@ -885,8 +885,8 @@ const G = (e, ...n) => [
|
|
|
885
885
|
id: e,
|
|
886
886
|
type: "text",
|
|
887
887
|
value: r,
|
|
888
|
-
onChange:
|
|
889
|
-
onKeyDown: (u) =>
|
|
888
|
+
onChange: i,
|
|
889
|
+
onKeyDown: (u) => o && o(u),
|
|
890
890
|
placeholder: a,
|
|
891
891
|
className: h,
|
|
892
892
|
"aria-label": e
|
|
@@ -908,18 +908,18 @@ function J(e) {
|
|
|
908
908
|
tooltip: n,
|
|
909
909
|
disabled: t,
|
|
910
910
|
isIconButton: r,
|
|
911
|
-
className:
|
|
912
|
-
buttonType:
|
|
911
|
+
className: i,
|
|
912
|
+
buttonType: o,
|
|
913
913
|
category: a,
|
|
914
914
|
px: d,
|
|
915
915
|
py: b,
|
|
916
916
|
children: g,
|
|
917
917
|
...h
|
|
918
918
|
} = e, u = () => {
|
|
919
|
-
const y = e.isIconButton || !1, D = e.category || "primary", m = e.buttonType || "normal", v = e.disabled || !1, w = e.className || "",
|
|
919
|
+
const y = e.isIconButton || !1, D = e.category || "primary", m = e.buttonType || "normal", v = e.disabled || !1, w = e.className || "", T = e.font || "semibold", C = Number((e.border || 0) > 0 ? e.border : 0);
|
|
920
920
|
let S = (e.borderColor || "").trim();
|
|
921
921
|
S = S.length > 0 ? S : "";
|
|
922
|
-
const
|
|
922
|
+
const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", c = e.shadowHover || "md", f = (e.addCss || "").trim(), M = e.justifyCss || "justify-center";
|
|
923
923
|
if (y)
|
|
924
924
|
return G(
|
|
925
925
|
"flex flex-row items-center",
|
|
@@ -931,7 +931,7 @@ function J(e) {
|
|
|
931
931
|
"rounded-sm focus:outline-none focus:ring focus:ring-offset",
|
|
932
932
|
"transition-all duration-150",
|
|
933
933
|
"text-sm",
|
|
934
|
-
`font-${
|
|
934
|
+
`font-${T}`
|
|
935
935
|
];
|
|
936
936
|
if (v)
|
|
937
937
|
m === "ghost" ? $.push("text-disabled border-disabled cursor-not-allowed") : $.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
|
|
@@ -939,10 +939,10 @@ function J(e) {
|
|
|
939
939
|
$.push("cursor-pointer");
|
|
940
940
|
let I = "";
|
|
941
941
|
Se.has(m) ? I = `${Se.get(m)}` : I = `${Se.get("normal")}`, C < 1 && (I = I.replace("border-[category]", ""));
|
|
942
|
-
const
|
|
943
|
-
$.push(
|
|
942
|
+
const E = I.replace(/\[category\]/g, D).trim();
|
|
943
|
+
$.push(E);
|
|
944
944
|
}
|
|
945
|
-
return C > 0 ? ($.push(`border-[${C}px]`), $.push(`border-${S}`)) : ($.push("border-[1px]"), $.push("border-transparent")),
|
|
945
|
+
return C > 0 ? ($.push(`border-[${C}px]`), $.push(`border-${S}`)) : ($.push("border-[1px]"), $.push("border-transparent")), l > 0 ? ($.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), $.push(`hover:border-${S} group-hover:border-${S}`)) : $.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(M), $.join(" ").trim();
|
|
946
946
|
}, p = () => {
|
|
947
947
|
const y = e.px || 0.7, D = e.py || 0.25;
|
|
948
948
|
return {
|
|
@@ -953,19 +953,19 @@ function J(e) {
|
|
|
953
953
|
}
|
|
954
954
|
const rn = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
|
|
955
955
|
function on(e) {
|
|
956
|
-
const { children: n, testId: t, classNames: r, direction:
|
|
957
|
-
return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...
|
|
956
|
+
const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = rn(e);
|
|
957
|
+
return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
|
|
958
958
|
}
|
|
959
|
-
const Gn =
|
|
959
|
+
const Gn = le(
|
|
960
960
|
(e, n) => {
|
|
961
|
-
const { classNames: t, innerClass: r, ...
|
|
961
|
+
const { classNames: t, innerClass: r, ...i } = e, o = G(t || "", "w-full"), a = G(
|
|
962
962
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
963
963
|
rounded-md border`,
|
|
964
964
|
r || ""
|
|
965
965
|
);
|
|
966
|
-
return /* @__PURE__ */ s(on, { direction: "row", classNames:
|
|
966
|
+
return /* @__PURE__ */ s(on, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
|
|
967
967
|
}
|
|
968
|
-
), Zn =
|
|
968
|
+
), Zn = le((e, n) => /* @__PURE__ */ s(
|
|
969
969
|
"div",
|
|
970
970
|
{
|
|
971
971
|
"data-testid": e.testId || "not-set",
|
|
@@ -976,7 +976,7 @@ const Gn = ce(
|
|
|
976
976
|
},
|
|
977
977
|
children: e.children
|
|
978
978
|
}
|
|
979
|
-
)), Jn =
|
|
979
|
+
)), Jn = le(
|
|
980
980
|
(e, n) => /* @__PURE__ */ s(
|
|
981
981
|
"div",
|
|
982
982
|
{
|
|
@@ -985,7 +985,7 @@ const Gn = ce(
|
|
|
985
985
|
children: e.children
|
|
986
986
|
}
|
|
987
987
|
)
|
|
988
|
-
), Qn =
|
|
988
|
+
), Qn = le((e, n) => /* @__PURE__ */ s(
|
|
989
989
|
"div",
|
|
990
990
|
{
|
|
991
991
|
"data-testid": e.testId || "not-set",
|
|
@@ -1005,76 +1005,76 @@ var Ve;
|
|
|
1005
1005
|
function sn() {
|
|
1006
1006
|
if (Ve) return U;
|
|
1007
1007
|
Ve = 1;
|
|
1008
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107,
|
|
1009
|
-
function C(
|
|
1010
|
-
if (typeof
|
|
1011
|
-
var
|
|
1012
|
-
switch (
|
|
1008
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1009
|
+
function C(l) {
|
|
1010
|
+
if (typeof l == "object" && l !== null) {
|
|
1011
|
+
var N = l.$$typeof;
|
|
1012
|
+
switch (N) {
|
|
1013
1013
|
case n:
|
|
1014
|
-
switch (
|
|
1014
|
+
switch (l = l.type, l) {
|
|
1015
1015
|
case b:
|
|
1016
1016
|
case g:
|
|
1017
1017
|
case r:
|
|
1018
|
-
case i:
|
|
1019
1018
|
case o:
|
|
1019
|
+
case i:
|
|
1020
1020
|
case u:
|
|
1021
|
-
return
|
|
1021
|
+
return l;
|
|
1022
1022
|
default:
|
|
1023
|
-
switch (
|
|
1023
|
+
switch (l = l && l.$$typeof, l) {
|
|
1024
1024
|
case d:
|
|
1025
1025
|
case h:
|
|
1026
1026
|
case D:
|
|
1027
1027
|
case y:
|
|
1028
1028
|
case a:
|
|
1029
|
-
return
|
|
1029
|
+
return l;
|
|
1030
1030
|
default:
|
|
1031
|
-
return
|
|
1031
|
+
return N;
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
case t:
|
|
1035
|
-
return
|
|
1035
|
+
return N;
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
function S(
|
|
1040
|
-
return C(
|
|
1041
|
-
}
|
|
1042
|
-
return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider = a, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = D, U.Memo = y, U.Portal = t, U.Profiler =
|
|
1043
|
-
return S(
|
|
1044
|
-
}, U.isConcurrentMode = S, U.isContextConsumer = function(
|
|
1045
|
-
return C(
|
|
1046
|
-
}, U.isContextProvider = function(
|
|
1047
|
-
return C(
|
|
1048
|
-
}, U.isElement = function(
|
|
1049
|
-
return typeof
|
|
1050
|
-
}, U.isForwardRef = function(
|
|
1051
|
-
return C(
|
|
1052
|
-
}, U.isFragment = function(
|
|
1053
|
-
return C(
|
|
1054
|
-
}, U.isLazy = function(
|
|
1055
|
-
return C(
|
|
1056
|
-
}, U.isMemo = function(
|
|
1057
|
-
return C(
|
|
1058
|
-
}, U.isPortal = function(
|
|
1059
|
-
return C(
|
|
1060
|
-
}, U.isProfiler = function(
|
|
1061
|
-
return C(
|
|
1062
|
-
}, U.isStrictMode = function(
|
|
1063
|
-
return C(
|
|
1064
|
-
}, U.isSuspense = function(
|
|
1065
|
-
return C(
|
|
1066
|
-
}, U.isValidElementType = function(
|
|
1067
|
-
return typeof
|
|
1039
|
+
function S(l) {
|
|
1040
|
+
return C(l) === g;
|
|
1041
|
+
}
|
|
1042
|
+
return U.AsyncMode = b, U.ConcurrentMode = g, U.ContextConsumer = d, U.ContextProvider = a, U.Element = n, U.ForwardRef = h, U.Fragment = r, U.Lazy = D, U.Memo = y, U.Portal = t, U.Profiler = o, U.StrictMode = i, U.Suspense = u, U.isAsyncMode = function(l) {
|
|
1043
|
+
return S(l) || C(l) === b;
|
|
1044
|
+
}, U.isConcurrentMode = S, U.isContextConsumer = function(l) {
|
|
1045
|
+
return C(l) === d;
|
|
1046
|
+
}, U.isContextProvider = function(l) {
|
|
1047
|
+
return C(l) === a;
|
|
1048
|
+
}, U.isElement = function(l) {
|
|
1049
|
+
return typeof l == "object" && l !== null && l.$$typeof === n;
|
|
1050
|
+
}, U.isForwardRef = function(l) {
|
|
1051
|
+
return C(l) === h;
|
|
1052
|
+
}, U.isFragment = function(l) {
|
|
1053
|
+
return C(l) === r;
|
|
1054
|
+
}, U.isLazy = function(l) {
|
|
1055
|
+
return C(l) === D;
|
|
1056
|
+
}, U.isMemo = function(l) {
|
|
1057
|
+
return C(l) === y;
|
|
1058
|
+
}, U.isPortal = function(l) {
|
|
1059
|
+
return C(l) === t;
|
|
1060
|
+
}, U.isProfiler = function(l) {
|
|
1061
|
+
return C(l) === o;
|
|
1062
|
+
}, U.isStrictMode = function(l) {
|
|
1063
|
+
return C(l) === i;
|
|
1064
|
+
}, U.isSuspense = function(l) {
|
|
1065
|
+
return C(l) === u;
|
|
1066
|
+
}, U.isValidElementType = function(l) {
|
|
1067
|
+
return typeof l == "string" || typeof l == "function" || l === r || l === g || l === o || l === i || l === u || l === p || typeof l == "object" && l !== null && (l.$$typeof === D || l.$$typeof === y || l.$$typeof === a || l.$$typeof === d || l.$$typeof === h || l.$$typeof === v || l.$$typeof === w || l.$$typeof === T || l.$$typeof === m);
|
|
1068
1068
|
}, U.typeOf = C, U;
|
|
1069
1069
|
}
|
|
1070
1070
|
var q = {};
|
|
1071
1071
|
var Ue;
|
|
1072
|
-
function
|
|
1072
|
+
function cn() {
|
|
1073
1073
|
return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1074
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107,
|
|
1074
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, b = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, D = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, v = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1075
1075
|
function C(_) {
|
|
1076
1076
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1077
|
-
_ === r || _ === g || _ ===
|
|
1077
|
+
_ === r || _ === g || _ === o || _ === i || _ === u || _ === p || typeof _ == "object" && _ !== null && (_.$$typeof === D || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === v || _.$$typeof === w || _.$$typeof === T || _.$$typeof === m);
|
|
1078
1078
|
}
|
|
1079
1079
|
function S(_) {
|
|
1080
1080
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -1086,8 +1086,8 @@ function ln() {
|
|
|
1086
1086
|
case b:
|
|
1087
1087
|
case g:
|
|
1088
1088
|
case r:
|
|
1089
|
-
case i:
|
|
1090
1089
|
case o:
|
|
1090
|
+
case i:
|
|
1091
1091
|
case u:
|
|
1092
1092
|
return me;
|
|
1093
1093
|
default:
|
|
@@ -1108,7 +1108,7 @@ function ln() {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
var
|
|
1111
|
+
var l = b, N = g, c = d, f = a, M = n, $ = h, I = r, E = D, z = y, X = t, Q = o, K = i, ee = u, se = !1;
|
|
1112
1112
|
function de(_) {
|
|
1113
1113
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || S(_) === b;
|
|
1114
1114
|
}
|
|
@@ -1140,37 +1140,37 @@ function ln() {
|
|
|
1140
1140
|
return S(_) === t;
|
|
1141
1141
|
}
|
|
1142
1142
|
function Y(_) {
|
|
1143
|
-
return S(_) ===
|
|
1143
|
+
return S(_) === o;
|
|
1144
1144
|
}
|
|
1145
1145
|
function V(_) {
|
|
1146
|
-
return S(_) ===
|
|
1146
|
+
return S(_) === i;
|
|
1147
1147
|
}
|
|
1148
1148
|
function Z(_) {
|
|
1149
1149
|
return S(_) === u;
|
|
1150
1150
|
}
|
|
1151
|
-
q.AsyncMode =
|
|
1151
|
+
q.AsyncMode = l, q.ConcurrentMode = N, q.ContextConsumer = c, q.ContextProvider = f, q.Element = M, q.ForwardRef = $, q.Fragment = I, q.Lazy = E, q.Memo = z, q.Portal = X, q.Profiler = Q, q.StrictMode = K, q.Suspense = ee, q.isAsyncMode = de, q.isConcurrentMode = x, q.isContextConsumer = P, q.isContextProvider = A, q.isElement = k, q.isForwardRef = O, q.isFragment = F, q.isLazy = R, q.isMemo = j, q.isPortal = L, q.isProfiler = Y, q.isStrictMode = V, q.isSuspense = Z, q.isValidElementType = C, q.typeOf = S;
|
|
1152
1152
|
})()), q;
|
|
1153
1153
|
}
|
|
1154
1154
|
var qe;
|
|
1155
1155
|
function yt() {
|
|
1156
|
-
return qe || (qe = 1, process.env.NODE_ENV === "production" ? ye.exports = sn() : ye.exports =
|
|
1156
|
+
return qe || (qe = 1, process.env.NODE_ENV === "production" ? ye.exports = sn() : ye.exports = cn()), ye.exports;
|
|
1157
1157
|
}
|
|
1158
|
-
var
|
|
1159
|
-
function
|
|
1160
|
-
if (Ye) return
|
|
1158
|
+
var Te, Ye;
|
|
1159
|
+
function ln() {
|
|
1160
|
+
if (Ye) return Te;
|
|
1161
1161
|
Ye = 1;
|
|
1162
1162
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
1163
|
-
function r(
|
|
1164
|
-
if (
|
|
1163
|
+
function r(o) {
|
|
1164
|
+
if (o == null)
|
|
1165
1165
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1166
|
-
return Object(
|
|
1166
|
+
return Object(o);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function i() {
|
|
1169
1169
|
try {
|
|
1170
1170
|
if (!Object.assign)
|
|
1171
1171
|
return !1;
|
|
1172
|
-
var
|
|
1173
|
-
if (
|
|
1172
|
+
var o = new String("abc");
|
|
1173
|
+
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
1174
1174
|
return !1;
|
|
1175
1175
|
for (var a = {}, d = 0; d < 10; d++)
|
|
1176
1176
|
a["_" + String.fromCharCode(d)] = d;
|
|
@@ -1187,8 +1187,8 @@ function cn() {
|
|
|
1187
1187
|
return !1;
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
|
-
return
|
|
1191
|
-
for (var d, b = r(
|
|
1190
|
+
return Te = i() ? Object.assign : function(o, a) {
|
|
1191
|
+
for (var d, b = r(o), g, h = 1; h < arguments.length; h++) {
|
|
1192
1192
|
d = Object(arguments[h]);
|
|
1193
1193
|
for (var u in d)
|
|
1194
1194
|
n.call(d, u) && (b[u] = d[u]);
|
|
@@ -1199,18 +1199,18 @@ function cn() {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
return b;
|
|
1202
|
-
},
|
|
1202
|
+
}, Te;
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1204
|
+
var Ee, ze;
|
|
1205
1205
|
function Oe() {
|
|
1206
|
-
if (ze) return
|
|
1206
|
+
if (ze) return Ee;
|
|
1207
1207
|
ze = 1;
|
|
1208
1208
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1209
|
-
return
|
|
1209
|
+
return Ee = e, Ee;
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1211
|
+
var Ne, Be;
|
|
1212
1212
|
function bt() {
|
|
1213
|
-
return Be || (Be = 1,
|
|
1213
|
+
return Be || (Be = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
|
|
1214
1214
|
}
|
|
1215
1215
|
var _e, He;
|
|
1216
1216
|
function dn() {
|
|
@@ -1220,8 +1220,8 @@ function dn() {
|
|
|
1220
1220
|
};
|
|
1221
1221
|
if (process.env.NODE_ENV !== "production") {
|
|
1222
1222
|
var n = /* @__PURE__ */ Oe(), t = {}, r = /* @__PURE__ */ bt();
|
|
1223
|
-
e = function(
|
|
1224
|
-
var a = "Warning: " +
|
|
1223
|
+
e = function(o) {
|
|
1224
|
+
var a = "Warning: " + o;
|
|
1225
1225
|
typeof console < "u" && console.error(a);
|
|
1226
1226
|
try {
|
|
1227
1227
|
throw new Error(a);
|
|
@@ -1229,19 +1229,19 @@ function dn() {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
function o
|
|
1232
|
+
function i(o, a, d, b, g) {
|
|
1233
1233
|
if (process.env.NODE_ENV !== "production") {
|
|
1234
|
-
for (var h in
|
|
1235
|
-
if (r(
|
|
1234
|
+
for (var h in o)
|
|
1235
|
+
if (r(o, h)) {
|
|
1236
1236
|
var u;
|
|
1237
1237
|
try {
|
|
1238
|
-
if (typeof
|
|
1238
|
+
if (typeof o[h] != "function") {
|
|
1239
1239
|
var p = Error(
|
|
1240
|
-
(b || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
1240
|
+
(b || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1241
1241
|
);
|
|
1242
1242
|
throw p.name = "Invariant Violation", p;
|
|
1243
1243
|
}
|
|
1244
|
-
u =
|
|
1244
|
+
u = o[h](a, h, b, d, null, n);
|
|
1245
1245
|
} catch (D) {
|
|
1246
1246
|
u = D;
|
|
1247
1247
|
}
|
|
@@ -1257,17 +1257,17 @@ function dn() {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
return
|
|
1260
|
+
return i.resetWarningCache = function() {
|
|
1261
1261
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1262
|
-
}, _e =
|
|
1262
|
+
}, _e = i, _e;
|
|
1263
1263
|
}
|
|
1264
1264
|
var Me, Ke;
|
|
1265
1265
|
function un() {
|
|
1266
1266
|
if (Ke) return Me;
|
|
1267
1267
|
Ke = 1;
|
|
1268
|
-
var e = yt(), n =
|
|
1268
|
+
var e = yt(), n = ln(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ bt(), i = /* @__PURE__ */ dn(), o = function() {
|
|
1269
1269
|
};
|
|
1270
|
-
process.env.NODE_ENV !== "production" && (
|
|
1270
|
+
process.env.NODE_ENV !== "production" && (o = function(d) {
|
|
1271
1271
|
var b = "Warning: " + d;
|
|
1272
1272
|
typeof console < "u" && console.error(b);
|
|
1273
1273
|
try {
|
|
@@ -1294,16 +1294,16 @@ function un() {
|
|
|
1294
1294
|
object: w("object"),
|
|
1295
1295
|
string: w("string"),
|
|
1296
1296
|
symbol: w("symbol"),
|
|
1297
|
-
any:
|
|
1297
|
+
any: T(),
|
|
1298
1298
|
arrayOf: C,
|
|
1299
1299
|
element: S(),
|
|
1300
|
-
elementType:
|
|
1301
|
-
instanceOf:
|
|
1300
|
+
elementType: l(),
|
|
1301
|
+
instanceOf: N,
|
|
1302
1302
|
node: $(),
|
|
1303
1303
|
objectOf: f,
|
|
1304
|
-
oneOf:
|
|
1304
|
+
oneOf: c,
|
|
1305
1305
|
oneOfType: M,
|
|
1306
|
-
shape:
|
|
1306
|
+
shape: E,
|
|
1307
1307
|
exact: z
|
|
1308
1308
|
};
|
|
1309
1309
|
function D(x, P) {
|
|
@@ -1326,7 +1326,7 @@ function un() {
|
|
|
1326
1326
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1327
1327
|
var te = L + ":" + j;
|
|
1328
1328
|
!P[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1329
|
-
A < 3 && (
|
|
1329
|
+
A < 3 && (o(
|
|
1330
1330
|
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1331
1331
|
), P[te] = !0, A++);
|
|
1332
1332
|
}
|
|
@@ -1350,7 +1350,7 @@ function un() {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
return v(P);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function T() {
|
|
1354
1354
|
return v(a);
|
|
1355
1355
|
}
|
|
1356
1356
|
function C(x) {
|
|
@@ -1382,7 +1382,7 @@ function un() {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
return v(x);
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function l() {
|
|
1386
1386
|
function x(P, A, k, O, F) {
|
|
1387
1387
|
var R = P[A];
|
|
1388
1388
|
if (!e.isValidElementType(R)) {
|
|
@@ -1393,7 +1393,7 @@ function un() {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
return v(x);
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function N(x) {
|
|
1397
1397
|
function P(A, k, O, F, R) {
|
|
1398
1398
|
if (!(A[k] instanceof x)) {
|
|
1399
1399
|
var j = x.name || p, L = de(A[k]);
|
|
@@ -1403,11 +1403,11 @@ function un() {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
return v(P);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function c(x) {
|
|
1407
1407
|
if (!Array.isArray(x))
|
|
1408
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
1408
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1409
1409
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1410
|
-
) :
|
|
1410
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1411
1411
|
function P(A, k, O, F, R) {
|
|
1412
1412
|
for (var j = A[k], L = 0; L < x.length; L++)
|
|
1413
1413
|
if (D(j, x[L]))
|
|
@@ -1439,11 +1439,11 @@ function un() {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
function M(x) {
|
|
1441
1441
|
if (!Array.isArray(x))
|
|
1442
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1442
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1443
1443
|
for (var P = 0; P < x.length; P++) {
|
|
1444
1444
|
var A = x[P];
|
|
1445
1445
|
if (typeof A != "function")
|
|
1446
|
-
return
|
|
1446
|
+
return o(
|
|
1447
1447
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(A) + " at index " + P + "."
|
|
1448
1448
|
), a;
|
|
1449
1449
|
}
|
|
@@ -1470,7 +1470,7 @@ function un() {
|
|
|
1470
1470
|
(x || "React class") + ": " + P + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
1471
1471
|
);
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function E(x) {
|
|
1474
1474
|
function P(A, k, O, F, R) {
|
|
1475
1475
|
var j = A[k], L = K(j);
|
|
1476
1476
|
if (L !== "object")
|
|
@@ -1579,7 +1579,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1579
1579
|
function de(x) {
|
|
1580
1580
|
return !x.constructor || !x.constructor.name ? p : x.constructor.name;
|
|
1581
1581
|
}
|
|
1582
|
-
return y.checkPropTypes =
|
|
1582
|
+
return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
|
|
1583
1583
|
}, Me;
|
|
1584
1584
|
}
|
|
1585
1585
|
var Pe, Xe;
|
|
@@ -1601,10 +1601,10 @@ function fn() {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
r.isRequired = r;
|
|
1604
|
-
function
|
|
1604
|
+
function i() {
|
|
1605
1605
|
return r;
|
|
1606
1606
|
}
|
|
1607
|
-
var
|
|
1607
|
+
var o = {
|
|
1608
1608
|
array: r,
|
|
1609
1609
|
bigint: r,
|
|
1610
1610
|
bool: r,
|
|
@@ -1614,20 +1614,20 @@ function fn() {
|
|
|
1614
1614
|
string: r,
|
|
1615
1615
|
symbol: r,
|
|
1616
1616
|
any: r,
|
|
1617
|
-
arrayOf:
|
|
1617
|
+
arrayOf: i,
|
|
1618
1618
|
element: r,
|
|
1619
1619
|
elementType: r,
|
|
1620
|
-
instanceOf:
|
|
1620
|
+
instanceOf: i,
|
|
1621
1621
|
node: r,
|
|
1622
|
-
objectOf:
|
|
1623
|
-
oneOf:
|
|
1624
|
-
oneOfType:
|
|
1625
|
-
shape:
|
|
1626
|
-
exact:
|
|
1622
|
+
objectOf: i,
|
|
1623
|
+
oneOf: i,
|
|
1624
|
+
oneOfType: i,
|
|
1625
|
+
shape: i,
|
|
1626
|
+
exact: i,
|
|
1627
1627
|
checkPropTypes: t,
|
|
1628
1628
|
resetWarningCache: n
|
|
1629
1629
|
};
|
|
1630
|
-
return
|
|
1630
|
+
return o.PropTypes = o, o;
|
|
1631
1631
|
}, Pe;
|
|
1632
1632
|
}
|
|
1633
1633
|
var Ge;
|
|
@@ -1645,213 +1645,213 @@ function hn() {
|
|
|
1645
1645
|
if (Ze) return be.exports;
|
|
1646
1646
|
Ze = 1;
|
|
1647
1647
|
function e(t) {
|
|
1648
|
-
var r,
|
|
1649
|
-
if (typeof t == "string" || typeof t == "number")
|
|
1648
|
+
var r, i, o = "";
|
|
1649
|
+
if (typeof t == "string" || typeof t == "number") o += t;
|
|
1650
1650
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1651
1651
|
var a = t.length;
|
|
1652
|
-
for (r = 0; r < a; r++) t[r] && (
|
|
1653
|
-
} else for (
|
|
1654
|
-
return
|
|
1652
|
+
for (r = 0; r < a; r++) t[r] && (i = e(t[r])) && (o && (o += " "), o += i);
|
|
1653
|
+
} else for (i in t) t[i] && (o && (o += " "), o += i);
|
|
1654
|
+
return o;
|
|
1655
1655
|
}
|
|
1656
1656
|
function n() {
|
|
1657
|
-
for (var t, r,
|
|
1658
|
-
return
|
|
1657
|
+
for (var t, r, i = 0, o = "", a = arguments.length; i < a; i++) (t = arguments[i]) && (r = e(t)) && (o && (o += " "), o += r);
|
|
1658
|
+
return o;
|
|
1659
1659
|
}
|
|
1660
1660
|
return be.exports = n, be.exports.clsx = n, be.exports;
|
|
1661
1661
|
}
|
|
1662
|
-
var B = {},
|
|
1662
|
+
var B = {}, oe = {}, Je;
|
|
1663
1663
|
function we() {
|
|
1664
|
-
if (Je) return
|
|
1665
|
-
Je = 1, Object.defineProperty(
|
|
1664
|
+
if (Je) return oe;
|
|
1665
|
+
Je = 1, Object.defineProperty(oe, "__esModule", {
|
|
1666
1666
|
value: !0
|
|
1667
|
-
}),
|
|
1668
|
-
function e(
|
|
1669
|
-
for (let d = 0, b =
|
|
1670
|
-
if (a.apply(a, [
|
|
1667
|
+
}), oe.dontSetMe = i, oe.findInArray = e, oe.int = r, oe.isFunction = n, oe.isNum = t;
|
|
1668
|
+
function e(o, a) {
|
|
1669
|
+
for (let d = 0, b = o.length; d < b; d++)
|
|
1670
|
+
if (a.apply(a, [o[d], d, o])) return o[d];
|
|
1671
1671
|
}
|
|
1672
|
-
function n(
|
|
1673
|
-
return typeof
|
|
1672
|
+
function n(o) {
|
|
1673
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
|
|
1674
1674
|
}
|
|
1675
|
-
function t(
|
|
1676
|
-
return typeof
|
|
1675
|
+
function t(o) {
|
|
1676
|
+
return typeof o == "number" && !isNaN(o);
|
|
1677
1677
|
}
|
|
1678
|
-
function r(
|
|
1679
|
-
return parseInt(
|
|
1678
|
+
function r(o) {
|
|
1679
|
+
return parseInt(o, 10);
|
|
1680
1680
|
}
|
|
1681
|
-
function o
|
|
1682
|
-
if (
|
|
1681
|
+
function i(o, a, d) {
|
|
1682
|
+
if (o[a])
|
|
1683
1683
|
return new Error(`Invalid prop ${a} passed to ${d} - do not set this, set it on the child.`);
|
|
1684
1684
|
}
|
|
1685
|
-
return
|
|
1685
|
+
return oe;
|
|
1686
1686
|
}
|
|
1687
|
-
var
|
|
1687
|
+
var ie = {}, Qe;
|
|
1688
1688
|
function gn() {
|
|
1689
|
-
if (Qe) return
|
|
1690
|
-
Qe = 1, Object.defineProperty(
|
|
1689
|
+
if (Qe) return ie;
|
|
1690
|
+
Qe = 1, Object.defineProperty(ie, "__esModule", {
|
|
1691
1691
|
value: !0
|
|
1692
|
-
}),
|
|
1692
|
+
}), ie.browserPrefixToKey = t, ie.browserPrefixToStyle = r, ie.default = void 0, ie.getPrefix = n;
|
|
1693
1693
|
const e = ["Moz", "Webkit", "O", "ms"];
|
|
1694
1694
|
function n() {
|
|
1695
|
-
let
|
|
1695
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
1696
1696
|
if (typeof window > "u") return "";
|
|
1697
1697
|
const a = window.document?.documentElement?.style;
|
|
1698
|
-
if (!a ||
|
|
1698
|
+
if (!a || o in a) return "";
|
|
1699
1699
|
for (let d = 0; d < e.length; d++)
|
|
1700
|
-
if (t(
|
|
1700
|
+
if (t(o, e[d]) in a) return e[d];
|
|
1701
1701
|
return "";
|
|
1702
1702
|
}
|
|
1703
|
-
function t(
|
|
1704
|
-
return a ? `${a}${o
|
|
1703
|
+
function t(o, a) {
|
|
1704
|
+
return a ? `${a}${i(o)}` : o;
|
|
1705
1705
|
}
|
|
1706
|
-
function r(
|
|
1707
|
-
return a ? `-${a.toLowerCase()}-${
|
|
1706
|
+
function r(o, a) {
|
|
1707
|
+
return a ? `-${a.toLowerCase()}-${o}` : o;
|
|
1708
1708
|
}
|
|
1709
|
-
function o
|
|
1709
|
+
function i(o) {
|
|
1710
1710
|
let a = "", d = !0;
|
|
1711
|
-
for (let b = 0; b <
|
|
1712
|
-
d ? (a +=
|
|
1711
|
+
for (let b = 0; b < o.length; b++)
|
|
1712
|
+
d ? (a += o[b].toUpperCase(), d = !1) : o[b] === "-" ? d = !0 : a += o[b];
|
|
1713
1713
|
return a;
|
|
1714
1714
|
}
|
|
1715
|
-
return
|
|
1715
|
+
return ie.default = n(), ie;
|
|
1716
1716
|
}
|
|
1717
1717
|
var et;
|
|
1718
1718
|
function Re() {
|
|
1719
1719
|
if (et) return B;
|
|
1720
1720
|
et = 1, Object.defineProperty(B, "__esModule", {
|
|
1721
1721
|
value: !0
|
|
1722
|
-
}), B.addClassName =
|
|
1722
|
+
}), B.addClassName = l, B.addEvent = a, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = D, B.getTouch = v, B.getTouchIdentifier = w, B.getTranslation = m, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = p, B.outerHeight = b, B.outerWidth = g, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = C;
|
|
1723
1723
|
var e = we(), n = t(gn());
|
|
1724
|
-
function t(
|
|
1724
|
+
function t(c, f) {
|
|
1725
1725
|
if (typeof WeakMap == "function") var M = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
|
|
1726
|
-
return (t = function(I,
|
|
1727
|
-
if (!
|
|
1726
|
+
return (t = function(I, E) {
|
|
1727
|
+
if (!E && I && I.__esModule) return I;
|
|
1728
1728
|
var z, X, Q = { __proto__: null, default: I };
|
|
1729
1729
|
if (I === null || typeof I != "object" && typeof I != "function") return Q;
|
|
1730
|
-
if (z =
|
|
1730
|
+
if (z = E ? $ : M) {
|
|
1731
1731
|
if (z.has(I)) return z.get(I);
|
|
1732
1732
|
z.set(I, Q);
|
|
1733
1733
|
}
|
|
1734
1734
|
for (const K in I) K !== "default" && {}.hasOwnProperty.call(I, K) && ((X = (z = Object.defineProperty) && Object.getOwnPropertyDescriptor(I, K)) && (X.get || X.set) ? z(Q, K, X) : Q[K] = I[K]);
|
|
1735
1735
|
return Q;
|
|
1736
|
-
})(
|
|
1736
|
+
})(c, f);
|
|
1737
1737
|
}
|
|
1738
1738
|
let r = "";
|
|
1739
|
-
function
|
|
1739
|
+
function i(c, f) {
|
|
1740
1740
|
return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(M) {
|
|
1741
|
-
return (0, e.isFunction)(
|
|
1742
|
-
})), (0, e.isFunction)(
|
|
1741
|
+
return (0, e.isFunction)(c[M]);
|
|
1742
|
+
})), (0, e.isFunction)(c[r]) ? c[r](f) : !1;
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1745
|
-
let $ =
|
|
1744
|
+
function o(c, f, M) {
|
|
1745
|
+
let $ = c;
|
|
1746
1746
|
do {
|
|
1747
|
-
if (
|
|
1747
|
+
if (i($, f)) return !0;
|
|
1748
1748
|
if ($ === M) return !1;
|
|
1749
1749
|
$ = $.parentNode;
|
|
1750
1750
|
} while ($);
|
|
1751
1751
|
return !1;
|
|
1752
1752
|
}
|
|
1753
|
-
function a(
|
|
1754
|
-
if (!
|
|
1753
|
+
function a(c, f, M, $) {
|
|
1754
|
+
if (!c) return;
|
|
1755
1755
|
const I = {
|
|
1756
1756
|
capture: !0,
|
|
1757
1757
|
...$
|
|
1758
1758
|
};
|
|
1759
|
-
|
|
1759
|
+
c.addEventListener ? c.addEventListener(f, M, I) : c.attachEvent ? c.attachEvent("on" + f, M) : c["on" + f] = M;
|
|
1760
1760
|
}
|
|
1761
|
-
function d(
|
|
1762
|
-
if (!
|
|
1761
|
+
function d(c, f, M, $) {
|
|
1762
|
+
if (!c) return;
|
|
1763
1763
|
const I = {
|
|
1764
1764
|
capture: !0,
|
|
1765
1765
|
...$
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1767
|
+
c.removeEventListener ? c.removeEventListener(f, M, I) : c.detachEvent ? c.detachEvent("on" + f, M) : c["on" + f] = null;
|
|
1768
1768
|
}
|
|
1769
|
-
function b(
|
|
1770
|
-
let f =
|
|
1771
|
-
const M =
|
|
1769
|
+
function b(c) {
|
|
1770
|
+
let f = c.clientHeight;
|
|
1771
|
+
const M = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1772
1772
|
return f += (0, e.int)(M.borderTopWidth), f += (0, e.int)(M.borderBottomWidth), f;
|
|
1773
1773
|
}
|
|
1774
|
-
function g(
|
|
1775
|
-
let f =
|
|
1776
|
-
const M =
|
|
1774
|
+
function g(c) {
|
|
1775
|
+
let f = c.clientWidth;
|
|
1776
|
+
const M = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1777
1777
|
return f += (0, e.int)(M.borderLeftWidth), f += (0, e.int)(M.borderRightWidth), f;
|
|
1778
1778
|
}
|
|
1779
|
-
function h(
|
|
1780
|
-
let f =
|
|
1781
|
-
const M =
|
|
1779
|
+
function h(c) {
|
|
1780
|
+
let f = c.clientHeight;
|
|
1781
|
+
const M = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1782
1782
|
return f -= (0, e.int)(M.paddingTop), f -= (0, e.int)(M.paddingBottom), f;
|
|
1783
1783
|
}
|
|
1784
|
-
function u(
|
|
1785
|
-
let f =
|
|
1786
|
-
const M =
|
|
1784
|
+
function u(c) {
|
|
1785
|
+
let f = c.clientWidth;
|
|
1786
|
+
const M = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
1787
1787
|
return f -= (0, e.int)(M.paddingLeft), f -= (0, e.int)(M.paddingRight), f;
|
|
1788
1788
|
}
|
|
1789
|
-
function p(
|
|
1789
|
+
function p(c, f, M) {
|
|
1790
1790
|
const I = f === f.ownerDocument.body ? {
|
|
1791
1791
|
left: 0,
|
|
1792
1792
|
top: 0
|
|
1793
|
-
} : f.getBoundingClientRect(),
|
|
1793
|
+
} : f.getBoundingClientRect(), E = (c.clientX + f.scrollLeft - I.left) / M, z = (c.clientY + f.scrollTop - I.top) / M;
|
|
1794
1794
|
return {
|
|
1795
|
-
x:
|
|
1795
|
+
x: E,
|
|
1796
1796
|
y: z
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
1799
|
-
function y(
|
|
1800
|
-
const M = m(
|
|
1799
|
+
function y(c, f) {
|
|
1800
|
+
const M = m(c, f, "px");
|
|
1801
1801
|
return {
|
|
1802
1802
|
[(0, n.browserPrefixToKey)("transform", n.default)]: M
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
|
-
function D(
|
|
1806
|
-
return m(
|
|
1805
|
+
function D(c, f) {
|
|
1806
|
+
return m(c, f, "");
|
|
1807
1807
|
}
|
|
1808
|
-
function m(
|
|
1808
|
+
function m(c, f, M) {
|
|
1809
1809
|
let {
|
|
1810
1810
|
x: $,
|
|
1811
1811
|
y: I
|
|
1812
|
-
} =
|
|
1812
|
+
} = c, E = `translate(${$}${M},${I}${M})`;
|
|
1813
1813
|
if (f) {
|
|
1814
1814
|
const z = `${typeof f.x == "string" ? f.x : f.x + M}`, X = `${typeof f.y == "string" ? f.y : f.y + M}`;
|
|
1815
|
-
|
|
1815
|
+
E = `translate(${z}, ${X})` + E;
|
|
1816
1816
|
}
|
|
1817
|
-
return
|
|
1817
|
+
return E;
|
|
1818
1818
|
}
|
|
1819
|
-
function v(
|
|
1820
|
-
return
|
|
1819
|
+
function v(c, f) {
|
|
1820
|
+
return c.targetTouches && (0, e.findInArray)(c.targetTouches, (M) => f === M.identifier) || c.changedTouches && (0, e.findInArray)(c.changedTouches, (M) => f === M.identifier);
|
|
1821
1821
|
}
|
|
1822
|
-
function w(
|
|
1823
|
-
if (
|
|
1824
|
-
if (
|
|
1822
|
+
function w(c) {
|
|
1823
|
+
if (c.targetTouches && c.targetTouches[0]) return c.targetTouches[0].identifier;
|
|
1824
|
+
if (c.changedTouches && c.changedTouches[0]) return c.changedTouches[0].identifier;
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1827
|
-
if (!
|
|
1828
|
-
let f =
|
|
1829
|
-
f || (f =
|
|
1826
|
+
function T(c) {
|
|
1827
|
+
if (!c) return;
|
|
1828
|
+
let f = c.getElementById("react-draggable-style-el");
|
|
1829
|
+
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;}
|
|
1830
1830
|
`, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
1831
|
-
`,
|
|
1831
|
+
`, c.getElementsByTagName("head")[0].appendChild(f)), c.body && l(c.body, "react-draggable-transparent-selection");
|
|
1832
1832
|
}
|
|
1833
|
-
function C(
|
|
1833
|
+
function C(c) {
|
|
1834
1834
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
1835
|
-
S(
|
|
1836
|
-
}) : S(
|
|
1835
|
+
S(c);
|
|
1836
|
+
}) : S(c);
|
|
1837
1837
|
}
|
|
1838
|
-
function S(
|
|
1839
|
-
if (
|
|
1838
|
+
function S(c) {
|
|
1839
|
+
if (c)
|
|
1840
1840
|
try {
|
|
1841
|
-
if (
|
|
1842
|
-
|
|
1841
|
+
if (c.body && N(c.body, "react-draggable-transparent-selection"), c.selection)
|
|
1842
|
+
c.selection.empty();
|
|
1843
1843
|
else {
|
|
1844
|
-
const f = (
|
|
1844
|
+
const f = (c.defaultView || window).getSelection();
|
|
1845
1845
|
f && f.type !== "Caret" && f.removeAllRanges();
|
|
1846
1846
|
}
|
|
1847
1847
|
} catch {
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
function c
|
|
1851
|
-
|
|
1850
|
+
function l(c, f) {
|
|
1851
|
+
c.classList ? c.classList.add(f) : c.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (c.className += ` ${f}`);
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1854
|
-
|
|
1853
|
+
function N(c, f) {
|
|
1854
|
+
c.classList ? c.classList.remove(f) : c.className = c.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
|
|
1855
1855
|
}
|
|
1856
1856
|
return B;
|
|
1857
1857
|
}
|
|
@@ -1860,7 +1860,7 @@ function xt() {
|
|
|
1860
1860
|
if (tt) return ne;
|
|
1861
1861
|
tt = 1, Object.defineProperty(ne, "__esModule", {
|
|
1862
1862
|
value: !0
|
|
1863
|
-
}), ne.canDragX =
|
|
1863
|
+
}), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = b, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
|
|
1864
1864
|
var e = we(), n = Re();
|
|
1865
1865
|
function t(u, p, y) {
|
|
1866
1866
|
if (!u.props.bounds) return [p, y];
|
|
@@ -1873,15 +1873,15 @@ function xt() {
|
|
|
1873
1873
|
const {
|
|
1874
1874
|
ownerDocument: v
|
|
1875
1875
|
} = m, w = v.defaultView;
|
|
1876
|
-
let
|
|
1877
|
-
if (D === "parent" ?
|
|
1876
|
+
let T;
|
|
1877
|
+
if (D === "parent" ? T = m.parentNode : T = m.getRootNode().querySelector(D), !(T instanceof w.HTMLElement))
|
|
1878
1878
|
throw new Error('Bounds selector "' + D + '" could not find an element.');
|
|
1879
|
-
const C =
|
|
1879
|
+
const C = T, S = w.getComputedStyle(m), l = w.getComputedStyle(C);
|
|
1880
1880
|
D = {
|
|
1881
|
-
left: -m.offsetLeft + (0, e.int)(
|
|
1882
|
-
top: -m.offsetTop + (0, e.int)(
|
|
1883
|
-
right: (0, n.innerWidth)(C) - (0, n.outerWidth)(m) - m.offsetLeft + (0, e.int)(
|
|
1884
|
-
bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(m) - m.offsetTop + (0, e.int)(
|
|
1881
|
+
left: -m.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(S.marginLeft),
|
|
1882
|
+
top: -m.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(S.marginTop),
|
|
1883
|
+
right: (0, n.innerWidth)(C) - (0, n.outerWidth)(m) - m.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(S.marginRight),
|
|
1884
|
+
bottom: (0, n.innerHeight)(C) - (0, n.outerHeight)(m) - m.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(S.marginBottom)
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
1887
|
return (0, e.isNum)(D.right) && (p = Math.min(p, D.right)), (0, e.isNum)(D.bottom) && (y = Math.min(y, D.bottom)), (0, e.isNum)(D.left) && (p = Math.max(p, D.left)), (0, e.isNum)(D.top) && (y = Math.max(y, D.top)), [p, y];
|
|
@@ -1890,10 +1890,10 @@ function xt() {
|
|
|
1890
1890
|
const D = Math.round(p / u[0]) * u[0], m = Math.round(y / u[1]) * u[1];
|
|
1891
1891
|
return [D, m];
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function i(u) {
|
|
1894
1894
|
return u.props.axis === "both" || u.props.axis === "x";
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function o(u) {
|
|
1897
1897
|
return u.props.axis === "both" || u.props.axis === "y";
|
|
1898
1898
|
}
|
|
1899
1899
|
function a(u, p, y) {
|
|
@@ -1966,22 +1966,22 @@ function mn() {
|
|
|
1966
1966
|
rt = 1, Object.defineProperty(he, "__esModule", {
|
|
1967
1967
|
value: !0
|
|
1968
1968
|
}), he.default = void 0;
|
|
1969
|
-
var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(
|
|
1969
|
+
var e = b(ae), n = d(/* @__PURE__ */ vt()), t = d(ct), r = Re(), i = xt(), o = we(), a = d(wt());
|
|
1970
1970
|
function d(m) {
|
|
1971
1971
|
return m && m.__esModule ? m : { default: m };
|
|
1972
1972
|
}
|
|
1973
1973
|
function b(m, v) {
|
|
1974
|
-
if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(),
|
|
1974
|
+
if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
|
|
1975
1975
|
return (b = function(C, S) {
|
|
1976
1976
|
if (!S && C && C.__esModule) return C;
|
|
1977
|
-
var
|
|
1978
|
-
if (C === null || typeof C != "object" && typeof C != "function") return
|
|
1979
|
-
if (
|
|
1980
|
-
if (
|
|
1981
|
-
|
|
1977
|
+
var l, N, c = { __proto__: null, default: C };
|
|
1978
|
+
if (C === null || typeof C != "object" && typeof C != "function") return c;
|
|
1979
|
+
if (l = S ? T : w) {
|
|
1980
|
+
if (l.has(C)) return l.get(C);
|
|
1981
|
+
l.set(C, c);
|
|
1982
1982
|
}
|
|
1983
|
-
for (const f in C) f !== "default" && {}.hasOwnProperty.call(C, f) && ((
|
|
1984
|
-
return
|
|
1983
|
+
for (const f in C) f !== "default" && {}.hasOwnProperty.call(C, f) && ((N = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, f)) && (N.get || N.set) ? l(c, f, N) : c[f] = C[f]);
|
|
1984
|
+
return c;
|
|
1985
1985
|
})(m, v);
|
|
1986
1986
|
}
|
|
1987
1987
|
function g(m, v, w) {
|
|
@@ -1995,8 +1995,8 @@ function mn() {
|
|
|
1995
1995
|
if (typeof m != "object" || !m) return m;
|
|
1996
1996
|
var w = m[Symbol.toPrimitive];
|
|
1997
1997
|
if (w !== void 0) {
|
|
1998
|
-
var
|
|
1999
|
-
if (typeof
|
|
1998
|
+
var T = w.call(m, v);
|
|
1999
|
+
if (typeof T != "object") return T;
|
|
2000
2000
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2001
2001
|
}
|
|
2002
2002
|
return (v === "string" ? String : Number)(m);
|
|
@@ -2021,59 +2021,59 @@ function mn() {
|
|
|
2021
2021
|
if (!w || !w.ownerDocument || !w.ownerDocument.body)
|
|
2022
2022
|
throw new Error("<DraggableCore> not mounted on DragStart!");
|
|
2023
2023
|
const {
|
|
2024
|
-
ownerDocument:
|
|
2024
|
+
ownerDocument: T
|
|
2025
2025
|
} = w;
|
|
2026
|
-
if (this.props.disabled || !(v.target instanceof
|
|
2026
|
+
if (this.props.disabled || !(v.target instanceof T.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(v.target, this.props.handle, w) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(v.target, this.props.cancel, w))
|
|
2027
2027
|
return;
|
|
2028
2028
|
v.type === "touchstart" && !this.props.allowMobileScroll && v.preventDefault();
|
|
2029
2029
|
const C = (0, r.getTouchIdentifier)(v);
|
|
2030
2030
|
this.touchIdentifier = C;
|
|
2031
|
-
const S = (0,
|
|
2031
|
+
const S = (0, i.getControlPosition)(v, C, this);
|
|
2032
2032
|
if (S == null) return;
|
|
2033
2033
|
const {
|
|
2034
|
-
x:
|
|
2035
|
-
y:
|
|
2036
|
-
} = S,
|
|
2037
|
-
(0, a.default)("DraggableCore: handleDragStart: %j",
|
|
2034
|
+
x: l,
|
|
2035
|
+
y: N
|
|
2036
|
+
} = S, c = (0, i.createCoreData)(this, l, N);
|
|
2037
|
+
(0, a.default)("DraggableCore: handleDragStart: %j", c), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(v, 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));
|
|
2038
2038
|
}), g(this, "handleDrag", (v) => {
|
|
2039
|
-
const w = (0,
|
|
2039
|
+
const w = (0, i.getControlPosition)(v, this.touchIdentifier, this);
|
|
2040
2040
|
if (w == null) return;
|
|
2041
2041
|
let {
|
|
2042
|
-
x:
|
|
2042
|
+
x: T,
|
|
2043
2043
|
y: C
|
|
2044
2044
|
} = w;
|
|
2045
2045
|
if (Array.isArray(this.props.grid)) {
|
|
2046
|
-
let
|
|
2047
|
-
if ([
|
|
2048
|
-
|
|
2046
|
+
let N = T - this.lastX, c = C - this.lastY;
|
|
2047
|
+
if ([N, c] = (0, i.snapToGrid)(this.props.grid, N, c), !N && !c) return;
|
|
2048
|
+
T = this.lastX + N, C = this.lastY + c;
|
|
2049
2049
|
}
|
|
2050
|
-
const S = (0,
|
|
2050
|
+
const S = (0, i.createCoreData)(this, T, C);
|
|
2051
2051
|
if ((0, a.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(v, S) === !1 || this.mounted === !1) {
|
|
2052
2052
|
try {
|
|
2053
2053
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
2054
2054
|
} catch {
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2055
|
+
const c = document.createEvent("MouseEvents");
|
|
2056
|
+
c.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(c);
|
|
2057
2057
|
}
|
|
2058
2058
|
return;
|
|
2059
2059
|
}
|
|
2060
|
-
this.lastX =
|
|
2060
|
+
this.lastX = T, this.lastY = C;
|
|
2061
2061
|
}), g(this, "handleDragStop", (v) => {
|
|
2062
2062
|
if (!this.dragging) return;
|
|
2063
|
-
const w = (0,
|
|
2063
|
+
const w = (0, i.getControlPosition)(v, this.touchIdentifier, this);
|
|
2064
2064
|
if (w == null) return;
|
|
2065
2065
|
let {
|
|
2066
|
-
x:
|
|
2066
|
+
x: T,
|
|
2067
2067
|
y: C
|
|
2068
2068
|
} = w;
|
|
2069
2069
|
if (Array.isArray(this.props.grid)) {
|
|
2070
|
-
let
|
|
2071
|
-
[
|
|
2070
|
+
let c = T - this.lastX || 0, f = C - this.lastY || 0;
|
|
2071
|
+
[c, f] = (0, i.snapToGrid)(this.props.grid, c, f), T = this.lastX + c, C = this.lastY + f;
|
|
2072
2072
|
}
|
|
2073
|
-
const S = (0,
|
|
2073
|
+
const S = (0, i.createCoreData)(this, T, C);
|
|
2074
2074
|
if (this.props.onStop(v, S) === !1 || this.mounted === !1) return !1;
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2075
|
+
const N = this.findDOMNode();
|
|
2076
|
+
N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", S), 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));
|
|
2077
2077
|
}), g(this, "onMouseDown", (v) => (y = p.mouse, this.handleDragStart(v))), g(this, "onMouseUp", (v) => (y = p.mouse, this.handleDragStop(v))), g(this, "onTouchStart", (v) => (y = p.touch, this.handleDragStart(v))), g(this, "onTouchEnd", (v) => (y = p.touch, this.handleDragStop(v)));
|
|
2078
2078
|
}
|
|
2079
2079
|
componentDidMount() {
|
|
@@ -2240,9 +2240,9 @@ function mn() {
|
|
|
2240
2240
|
/**
|
|
2241
2241
|
* These properties should be defined on the child, not here.
|
|
2242
2242
|
*/
|
|
2243
|
-
className:
|
|
2244
|
-
style:
|
|
2245
|
-
transform:
|
|
2243
|
+
className: o.dontSetMe,
|
|
2244
|
+
style: o.dontSetMe,
|
|
2245
|
+
transform: o.dontSetMe
|
|
2246
2246
|
}), g(D, "defaultProps", {
|
|
2247
2247
|
allowAnyClick: !1,
|
|
2248
2248
|
// by default only accept left click
|
|
@@ -2260,9 +2260,9 @@ function mn() {
|
|
|
2260
2260
|
scale: 1
|
|
2261
2261
|
}), he;
|
|
2262
2262
|
}
|
|
2263
|
-
var
|
|
2263
|
+
var ot;
|
|
2264
2264
|
function pn() {
|
|
2265
|
-
return
|
|
2265
|
+
return ot || (ot = 1, (function(e) {
|
|
2266
2266
|
Object.defineProperty(e, "__esModule", {
|
|
2267
2267
|
value: !0
|
|
2268
2268
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
@@ -2271,62 +2271,62 @@ function pn() {
|
|
|
2271
2271
|
return b.default;
|
|
2272
2272
|
}
|
|
2273
2273
|
}), e.default = void 0;
|
|
2274
|
-
var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(
|
|
2274
|
+
var n = u(ae), t = h(/* @__PURE__ */ vt()), r = h(ct), i = hn(), o = Re(), a = xt(), d = we(), b = h(mn()), g = h(wt());
|
|
2275
2275
|
function h(w) {
|
|
2276
2276
|
return w && w.__esModule ? w : { default: w };
|
|
2277
2277
|
}
|
|
2278
|
-
function u(w,
|
|
2278
|
+
function u(w, T) {
|
|
2279
2279
|
if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
|
|
2280
|
-
return (u = function(
|
|
2281
|
-
if (!
|
|
2282
|
-
var
|
|
2283
|
-
if (
|
|
2284
|
-
if (
|
|
2285
|
-
if (
|
|
2286
|
-
|
|
2280
|
+
return (u = function(l, N) {
|
|
2281
|
+
if (!N && l && l.__esModule) return l;
|
|
2282
|
+
var c, f, M = { __proto__: null, default: l };
|
|
2283
|
+
if (l === null || typeof l != "object" && typeof l != "function") return M;
|
|
2284
|
+
if (c = N ? S : C) {
|
|
2285
|
+
if (c.has(l)) return c.get(l);
|
|
2286
|
+
c.set(l, M);
|
|
2287
2287
|
}
|
|
2288
|
-
for (const $ in
|
|
2288
|
+
for (const $ in l) $ !== "default" && {}.hasOwnProperty.call(l, $) && ((f = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, $)) && (f.get || f.set) ? c(M, $, f) : M[$] = l[$]);
|
|
2289
2289
|
return M;
|
|
2290
|
-
})(w,
|
|
2290
|
+
})(w, T);
|
|
2291
2291
|
}
|
|
2292
2292
|
function p() {
|
|
2293
2293
|
return p = Object.assign ? Object.assign.bind() : function(w) {
|
|
2294
|
-
for (var
|
|
2295
|
-
var C = arguments[
|
|
2294
|
+
for (var T = 1; T < arguments.length; T++) {
|
|
2295
|
+
var C = arguments[T];
|
|
2296
2296
|
for (var S in C) ({}).hasOwnProperty.call(C, S) && (w[S] = C[S]);
|
|
2297
2297
|
}
|
|
2298
2298
|
return w;
|
|
2299
2299
|
}, p.apply(null, arguments);
|
|
2300
2300
|
}
|
|
2301
|
-
function y(w,
|
|
2302
|
-
return (
|
|
2301
|
+
function y(w, T, C) {
|
|
2302
|
+
return (T = D(T)) in w ? Object.defineProperty(w, T, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : w[T] = C, w;
|
|
2303
2303
|
}
|
|
2304
2304
|
function D(w) {
|
|
2305
|
-
var
|
|
2306
|
-
return typeof
|
|
2305
|
+
var T = m(w, "string");
|
|
2306
|
+
return typeof T == "symbol" ? T : T + "";
|
|
2307
2307
|
}
|
|
2308
|
-
function m(w,
|
|
2308
|
+
function m(w, T) {
|
|
2309
2309
|
if (typeof w != "object" || !w) return w;
|
|
2310
2310
|
var C = w[Symbol.toPrimitive];
|
|
2311
2311
|
if (C !== void 0) {
|
|
2312
|
-
var S = C.call(w,
|
|
2312
|
+
var S = C.call(w, T);
|
|
2313
2313
|
if (typeof S != "object") return S;
|
|
2314
2314
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2315
2315
|
}
|
|
2316
|
-
return (
|
|
2316
|
+
return (T === "string" ? String : Number)(w);
|
|
2317
2317
|
}
|
|
2318
2318
|
class v extends n.Component {
|
|
2319
2319
|
// React 16.3+
|
|
2320
2320
|
// Arity (props, state)
|
|
2321
|
-
static getDerivedStateFromProps(
|
|
2321
|
+
static getDerivedStateFromProps(T, C) {
|
|
2322
2322
|
let {
|
|
2323
2323
|
position: S
|
|
2324
|
-
} =
|
|
2325
|
-
prevPropsPosition:
|
|
2324
|
+
} = T, {
|
|
2325
|
+
prevPropsPosition: l
|
|
2326
2326
|
} = C;
|
|
2327
|
-
return S && (!
|
|
2327
|
+
return S && (!l || S.x !== l.x || S.y !== l.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
|
|
2328
2328
|
position: S,
|
|
2329
|
-
prevPropsPosition:
|
|
2329
|
+
prevPropsPosition: l
|
|
2330
2330
|
}), {
|
|
2331
2331
|
x: S.x,
|
|
2332
2332
|
y: S.y,
|
|
@@ -2335,8 +2335,8 @@ function pn() {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
}) : null;
|
|
2337
2337
|
}
|
|
2338
|
-
constructor(
|
|
2339
|
-
super(
|
|
2338
|
+
constructor(T) {
|
|
2339
|
+
super(T), y(this, "onDragStart", (C, S) => {
|
|
2340
2340
|
if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
|
|
2341
2341
|
this.setState({
|
|
2342
2342
|
dragging: !0,
|
|
@@ -2345,9 +2345,9 @@ function pn() {
|
|
|
2345
2345
|
}), y(this, "onDrag", (C, S) => {
|
|
2346
2346
|
if (!this.state.dragging) return !1;
|
|
2347
2347
|
(0, g.default)("Draggable: onDrag: %j", S);
|
|
2348
|
-
const
|
|
2349
|
-
x:
|
|
2350
|
-
y:
|
|
2348
|
+
const l = (0, a.createDraggableData)(this, S), N = {
|
|
2349
|
+
x: l.x,
|
|
2350
|
+
y: l.y,
|
|
2351
2351
|
slackX: 0,
|
|
2352
2352
|
slackY: 0
|
|
2353
2353
|
};
|
|
@@ -2355,17 +2355,17 @@ function pn() {
|
|
|
2355
2355
|
const {
|
|
2356
2356
|
x: f,
|
|
2357
2357
|
y: M
|
|
2358
|
-
} =
|
|
2359
|
-
|
|
2360
|
-
const [$, I] = (0, a.getBoundPosition)(this,
|
|
2361
|
-
|
|
2358
|
+
} = N;
|
|
2359
|
+
N.x += this.state.slackX, N.y += this.state.slackY;
|
|
2360
|
+
const [$, I] = (0, a.getBoundPosition)(this, N.x, N.y);
|
|
2361
|
+
N.x = $, N.y = I, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (M - N.y), l.x = N.x, l.y = N.y, l.deltaX = N.x - this.state.x, l.deltaY = N.y - this.state.y;
|
|
2362
2362
|
}
|
|
2363
|
-
if (this.props.onDrag(C,
|
|
2364
|
-
this.setState(
|
|
2363
|
+
if (this.props.onDrag(C, l) === !1) return !1;
|
|
2364
|
+
this.setState(N);
|
|
2365
2365
|
}), y(this, "onDragStop", (C, S) => {
|
|
2366
2366
|
if (!this.state.dragging || this.props.onStop(C, (0, a.createDraggableData)(this, S)) === !1) return !1;
|
|
2367
2367
|
(0, g.default)("Draggable: onDragStop: %j", S);
|
|
2368
|
-
const
|
|
2368
|
+
const N = {
|
|
2369
2369
|
dragging: !1,
|
|
2370
2370
|
slackX: 0,
|
|
2371
2371
|
slackY: 0
|
|
@@ -2375,26 +2375,26 @@ function pn() {
|
|
|
2375
2375
|
x: f,
|
|
2376
2376
|
y: M
|
|
2377
2377
|
} = this.props.position;
|
|
2378
|
-
|
|
2378
|
+
N.x = f, N.y = M;
|
|
2379
2379
|
}
|
|
2380
|
-
this.setState(
|
|
2380
|
+
this.setState(N);
|
|
2381
2381
|
}), this.state = {
|
|
2382
2382
|
// Whether or not we are currently dragging.
|
|
2383
2383
|
dragging: !1,
|
|
2384
2384
|
// Whether or not we have been dragged before.
|
|
2385
2385
|
dragged: !1,
|
|
2386
2386
|
// Current transform x and y.
|
|
2387
|
-
x:
|
|
2388
|
-
y:
|
|
2387
|
+
x: T.position ? T.position.x : T.defaultPosition.x,
|
|
2388
|
+
y: T.position ? T.position.y : T.defaultPosition.y,
|
|
2389
2389
|
prevPropsPosition: {
|
|
2390
|
-
...
|
|
2390
|
+
...T.position
|
|
2391
2391
|
},
|
|
2392
2392
|
// Used for compensating for out-of-bounds drags
|
|
2393
2393
|
slackX: 0,
|
|
2394
2394
|
slackY: 0,
|
|
2395
2395
|
// Can only determine if SVG after mounting
|
|
2396
2396
|
isElementSVG: !1
|
|
2397
|
-
},
|
|
2397
|
+
}, T.position && !(T.onDrag || T.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
2398
2398
|
}
|
|
2399
2399
|
componentDidMount() {
|
|
2400
2400
|
typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
|
|
@@ -2413,31 +2413,31 @@ function pn() {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
render() {
|
|
2415
2415
|
const {
|
|
2416
|
-
axis:
|
|
2416
|
+
axis: T,
|
|
2417
2417
|
bounds: C,
|
|
2418
2418
|
children: S,
|
|
2419
|
-
defaultPosition:
|
|
2420
|
-
defaultClassName:
|
|
2421
|
-
defaultClassNameDragging:
|
|
2419
|
+
defaultPosition: l,
|
|
2420
|
+
defaultClassName: N,
|
|
2421
|
+
defaultClassNameDragging: c,
|
|
2422
2422
|
defaultClassNameDragged: f,
|
|
2423
2423
|
position: M,
|
|
2424
2424
|
positionOffset: $,
|
|
2425
2425
|
scale: I,
|
|
2426
|
-
...
|
|
2426
|
+
...E
|
|
2427
2427
|
} = this.props;
|
|
2428
2428
|
let z = {}, X = null;
|
|
2429
|
-
const K = !!!M || this.state.dragging, ee = M ||
|
|
2429
|
+
const K = !!!M || this.state.dragging, ee = M || l, se = {
|
|
2430
2430
|
// Set left if horizontal drag is enabled
|
|
2431
2431
|
x: (0, a.canDragX)(this) && K ? this.state.x : ee.x,
|
|
2432
2432
|
// Set top if vertical drag is enabled
|
|
2433
2433
|
y: (0, a.canDragY)(this) && K ? this.state.y : ee.y
|
|
2434
2434
|
};
|
|
2435
|
-
this.state.isElementSVG ? X = (0,
|
|
2436
|
-
const de = (0,
|
|
2437
|
-
[
|
|
2435
|
+
this.state.isElementSVG ? X = (0, o.createSVGTransform)(se, $) : z = (0, o.createCSSTransform)(se, $);
|
|
2436
|
+
const de = (0, i.clsx)(S.props.className || "", N, {
|
|
2437
|
+
[c]: this.state.dragging,
|
|
2438
2438
|
[f]: this.state.dragged
|
|
2439
2439
|
});
|
|
2440
|
-
return /* @__PURE__ */ n.createElement(b.default, p({},
|
|
2440
|
+
return /* @__PURE__ */ n.createElement(b.default, p({}, E, {
|
|
2441
2441
|
onStart: this.onDragStart,
|
|
2442
2442
|
onDrag: this.onDrag,
|
|
2443
2443
|
onStop: this.onDragStop
|
|
@@ -2573,10 +2573,10 @@ function pn() {
|
|
|
2573
2573
|
});
|
|
2574
2574
|
})(De)), De;
|
|
2575
2575
|
}
|
|
2576
|
-
var
|
|
2576
|
+
var it;
|
|
2577
2577
|
function yn() {
|
|
2578
|
-
if (
|
|
2579
|
-
|
|
2578
|
+
if (it) return fe.exports;
|
|
2579
|
+
it = 1;
|
|
2580
2580
|
const {
|
|
2581
2581
|
default: e,
|
|
2582
2582
|
DraggableCore: n
|
|
@@ -2584,7 +2584,7 @@ function yn() {
|
|
|
2584
2584
|
return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
|
|
2585
2585
|
}
|
|
2586
2586
|
var bn = yn();
|
|
2587
|
-
const vn = /* @__PURE__ */ an(bn), xn =
|
|
2587
|
+
const vn = /* @__PURE__ */ an(bn), xn = le((e, n) => {
|
|
2588
2588
|
const r = {
|
|
2589
2589
|
...{
|
|
2590
2590
|
// 1. Take it out of the document flow
|
|
@@ -2602,14 +2602,14 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
|
|
|
2602
2602
|
boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
|
|
2603
2603
|
},
|
|
2604
2604
|
...e.style || {}
|
|
2605
|
-
},
|
|
2605
|
+
}, i = e.testId || "not-set", o = e.className || "panel", a = Ct(null);
|
|
2606
2606
|
return (
|
|
2607
2607
|
// 3. Pass the internal ref to the Draggable component via 'nodeRef'
|
|
2608
2608
|
/* @__PURE__ */ s(
|
|
2609
2609
|
vn,
|
|
2610
2610
|
{
|
|
2611
2611
|
nodeRef: a,
|
|
2612
|
-
"data-testid":
|
|
2612
|
+
"data-testid": i,
|
|
2613
2613
|
axis: "both",
|
|
2614
2614
|
handle: ".handle",
|
|
2615
2615
|
onStart: (g, h) => {
|
|
@@ -2620,7 +2620,7 @@ const vn = /* @__PURE__ */ an(bn), xn = ce((e, n) => {
|
|
|
2620
2620
|
e.onDraggingChange?.(!1);
|
|
2621
2621
|
}, 100);
|
|
2622
2622
|
},
|
|
2623
|
-
children: /* @__PURE__ */ s("div", { ref: a, className:
|
|
2623
|
+
children: /* @__PURE__ */ s("div", { ref: a, className: o, style: r, children: e.children })
|
|
2624
2624
|
}
|
|
2625
2625
|
)
|
|
2626
2626
|
);
|
|
@@ -2650,23 +2650,23 @@ function nr({ children: e, addCssClasses: n }) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
const rr = (e) => {
|
|
2652
2652
|
console.warn("showToast TODO", e);
|
|
2653
|
-
}, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0,
|
|
2654
|
-
let t =
|
|
2655
|
-
const r = e.responsiveGrid || !1,
|
|
2653
|
+
}, wn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, or = le((e, n) => {
|
|
2654
|
+
let t = lt(Number(e.zoomScale || 0));
|
|
2655
|
+
const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
|
|
2656
2656
|
"--bwj-dashboard-transform-scale": t,
|
|
2657
2657
|
"--bwj-dashboard-add-cols": wn(t)
|
|
2658
2658
|
}, a = G(
|
|
2659
2659
|
"dashboard-main-grid w-full",
|
|
2660
|
-
|
|
2660
|
+
i ? "editing" : "",
|
|
2661
2661
|
r ? "responsive-grid" : "",
|
|
2662
|
-
`border border-dashed ${
|
|
2662
|
+
`border border-dashed ${i ? "border-primary border-opacity-50" : "border-transparent"}`
|
|
2663
2663
|
);
|
|
2664
|
-
return /* @__PURE__ */ s("div", { className: a, style:
|
|
2664
|
+
return /* @__PURE__ */ s("div", { className: a, style: o, children: e.children });
|
|
2665
2665
|
}), $e = "size-5", Cn = (e, n) => {
|
|
2666
2666
|
const t = e.hideTitle && !e.isEditing, r = e.noBorder;
|
|
2667
|
-
let
|
|
2668
|
-
r ?
|
|
2669
|
-
const
|
|
2667
|
+
let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
|
|
2668
|
+
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`);
|
|
2669
|
+
const o = () => {
|
|
2670
2670
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
|
|
2671
2671
|
}, a = (b) => {
|
|
2672
2672
|
e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
|
|
@@ -2675,7 +2675,7 @@ const rr = (e) => {
|
|
|
2675
2675
|
t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
|
|
2676
2676
|
t ? "border-opacity-0" : "border-opacity-20"
|
|
2677
2677
|
);
|
|
2678
|
-
return /* @__PURE__ */ W("div", { className:
|
|
2678
|
+
return /* @__PURE__ */ W("div", { className: i, children: [
|
|
2679
2679
|
/* @__PURE__ */ W("div", { className: d, children: [
|
|
2680
2680
|
/* @__PURE__ */ W("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
|
|
2681
2681
|
/* @__PURE__ */ W("h2", { className: "widget-title", children: [
|
|
@@ -2724,7 +2724,7 @@ const rr = (e) => {
|
|
|
2724
2724
|
placement: "top",
|
|
2725
2725
|
title: "Remove Widget"
|
|
2726
2726
|
},
|
|
2727
|
-
onClick: () =>
|
|
2727
|
+
onClick: () => o(),
|
|
2728
2728
|
children: /* @__PURE__ */ s(gt, { className: $e })
|
|
2729
2729
|
}
|
|
2730
2730
|
)
|
|
@@ -2733,9 +2733,9 @@ const rr = (e) => {
|
|
|
2733
2733
|
] }),
|
|
2734
2734
|
/* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
|
|
2735
2735
|
] });
|
|
2736
|
-
}, at =
|
|
2737
|
-
const t = (
|
|
2738
|
-
return !(r[0] !==
|
|
2736
|
+
}, at = le(Cn), Sn = (e, n) => {
|
|
2737
|
+
const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), i = t(n).split(".").map(Number);
|
|
2738
|
+
return !(r[0] !== i[0] || r[1] < i[1]);
|
|
2739
2739
|
};
|
|
2740
2740
|
function Dn(e) {
|
|
2741
2741
|
return /* @__PURE__ */ s("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
|
|
@@ -2743,13 +2743,13 @@ function Dn(e) {
|
|
|
2743
2743
|
/* @__PURE__ */ s("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
|
|
2744
2744
|
] }) });
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function Tn({
|
|
2747
2747
|
index: e,
|
|
2748
2748
|
maxIndex: n,
|
|
2749
2749
|
widgetKey: t,
|
|
2750
2750
|
parentWidgetKey: r,
|
|
2751
|
-
targetContainerKey:
|
|
2752
|
-
childWidgetsConfig:
|
|
2751
|
+
targetContainerKey: i,
|
|
2752
|
+
childWidgetsConfig: o,
|
|
2753
2753
|
widgetCatalog: a,
|
|
2754
2754
|
isEditing: d,
|
|
2755
2755
|
// for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
|
|
@@ -2765,7 +2765,7 @@ function Nn({
|
|
|
2765
2765
|
D
|
|
2766
2766
|
] }) });
|
|
2767
2767
|
let v = null, w = !1;
|
|
2768
|
-
const
|
|
2768
|
+
const T = !!m.isContainer, C = y ? mt(t) : "", S = T ? (o || []).filter((c) => c.parentWidgetKey === t) : [], l = {
|
|
2769
2769
|
index: e,
|
|
2770
2770
|
maxIndex: n,
|
|
2771
2771
|
widgetKey: t,
|
|
@@ -2778,12 +2778,12 @@ function Nn({
|
|
|
2778
2778
|
};
|
|
2779
2779
|
if (m.component ? (v = m.component, w = !1) : m.loader && (w = !0, v = st(() => {
|
|
2780
2780
|
if (!m) return null;
|
|
2781
|
-
const
|
|
2781
|
+
const c = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = m.meta?.externalDependencies || [], M = f.find(($) => $.startsWith("react@"));
|
|
2782
2782
|
if (M) {
|
|
2783
2783
|
const $ = M.split("@")[1];
|
|
2784
|
-
if (!Sn(
|
|
2784
|
+
if (!Sn(c, $))
|
|
2785
2785
|
return ae.lazy(async () => ({
|
|
2786
|
-
default: () => /* @__PURE__ */ s(at, { ...
|
|
2786
|
+
default: () => /* @__PURE__ */ s(at, { ...l, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2787
2787
|
/* @__PURE__ */ W("p", { className: "font-bold", children: [
|
|
2788
2788
|
'Failed to load "',
|
|
2789
2789
|
t,
|
|
@@ -2803,16 +2803,16 @@ function Nn({
|
|
|
2803
2803
|
] }),
|
|
2804
2804
|
". Host is running",
|
|
2805
2805
|
" ",
|
|
2806
|
-
/* @__PURE__ */ s("strong", { children:
|
|
2806
|
+
/* @__PURE__ */ s("strong", { children: c }),
|
|
2807
2807
|
"."
|
|
2808
2808
|
] })
|
|
2809
2809
|
] }),
|
|
2810
2810
|
/* @__PURE__ */ W("div", { className: "flex flex-col mt-3", children: [
|
|
2811
2811
|
/* @__PURE__ */ s("h5", { children: "Externals:" }),
|
|
2812
|
-
/* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((I,
|
|
2812
|
+
/* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((I, E) => /* @__PURE__ */ W("dd", { children: [
|
|
2813
2813
|
"- ",
|
|
2814
2814
|
I
|
|
2815
|
-
] },
|
|
2815
|
+
] }, E)) })
|
|
2816
2816
|
] })
|
|
2817
2817
|
] }) })
|
|
2818
2818
|
}));
|
|
@@ -2825,7 +2825,7 @@ function Nn({
|
|
|
2825
2825
|
return await m.loader();
|
|
2826
2826
|
} catch (I) {
|
|
2827
2827
|
return console.error(`CDN Load Failure for ${t}:`, I), {
|
|
2828
|
-
default: () => /* @__PURE__ */ s(at, { ...
|
|
2828
|
+
default: () => /* @__PURE__ */ s(at, { ...l, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2829
2829
|
/* @__PURE__ */ W("p", { className: "font-bold", children: [
|
|
2830
2830
|
'Failed to load "',
|
|
2831
2831
|
t,
|
|
@@ -2845,32 +2845,32 @@ function Nn({
|
|
|
2845
2845
|
"Widget definition incomplete: ",
|
|
2846
2846
|
D
|
|
2847
2847
|
] }) });
|
|
2848
|
-
const
|
|
2849
|
-
highlight:
|
|
2848
|
+
const N = T ? {
|
|
2849
|
+
highlight: i === t,
|
|
2850
2850
|
selectContainer: u,
|
|
2851
2851
|
// The children prop is the recursive call back to DynamicWidgetLoader
|
|
2852
|
-
children: S.map((
|
|
2853
|
-
|
|
2852
|
+
children: S.map((c, f) => /* @__PURE__ */ s(
|
|
2853
|
+
Tn,
|
|
2854
2854
|
{
|
|
2855
2855
|
index: f,
|
|
2856
2856
|
maxIndex: S.length - 1,
|
|
2857
|
-
widgetKey:
|
|
2858
|
-
parentWidgetKey:
|
|
2857
|
+
widgetKey: c.widgetKey,
|
|
2858
|
+
parentWidgetKey: c.parentWidgetKey,
|
|
2859
2859
|
widgetCatalog: a,
|
|
2860
2860
|
isEditing: d,
|
|
2861
2861
|
extraProps: b,
|
|
2862
2862
|
onRemoveClick: g,
|
|
2863
2863
|
onMoveClick: h
|
|
2864
2864
|
},
|
|
2865
|
-
`${
|
|
2865
|
+
`${c.widgetKey}_${f}`
|
|
2866
2866
|
))
|
|
2867
2867
|
} : {};
|
|
2868
|
-
return w ? /* @__PURE__ */ s(St, { fallback: /* @__PURE__ */ s(Dn, { title: `Loading ${m.title}` }), children: /* @__PURE__ */ s(v, { ...
|
|
2868
|
+
return w ? /* @__PURE__ */ s(St, { fallback: /* @__PURE__ */ s(Dn, { title: `Loading ${m.title}` }), children: /* @__PURE__ */ s(v, { ...l, ...N }) }) : /* @__PURE__ */ s(v, { ...l, ...N });
|
|
2869
2869
|
}
|
|
2870
2870
|
const xe = "size-5";
|
|
2871
2871
|
function ke(e) {
|
|
2872
|
-
const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0,
|
|
2873
|
-
let d = n ? "border-transparent" :
|
|
2872
|
+
const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
|
|
2873
|
+
let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
|
|
2874
2874
|
const b = ["large", "xlarge"].includes(e.size || "");
|
|
2875
2875
|
let g = "";
|
|
2876
2876
|
["large", "xlarge"].indexOf(e.size || "") > -1 && (g = `${e.size}-widget`);
|
|
@@ -2879,7 +2879,7 @@ function ke(e) {
|
|
|
2879
2879
|
let u = G(
|
|
2880
2880
|
"dashboard-widget-container relative ",
|
|
2881
2881
|
r ? "" : "has-no-children",
|
|
2882
|
-
|
|
2882
|
+
i ? "editing" : "",
|
|
2883
2883
|
h,
|
|
2884
2884
|
g,
|
|
2885
2885
|
b ? "widget-container-grid" : "widget-container-flex",
|
|
@@ -2970,7 +2970,7 @@ function ke(e) {
|
|
|
2970
2970
|
/* @__PURE__ */ s("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
|
|
2971
2971
|
] });
|
|
2972
2972
|
}
|
|
2973
|
-
function
|
|
2973
|
+
function ir(e) {
|
|
2974
2974
|
const { direction: n, ...t } = e;
|
|
2975
2975
|
return /* @__PURE__ */ s(ke, { direction: "column", ...t });
|
|
2976
2976
|
}
|
|
@@ -2988,14 +2988,14 @@ function We({
|
|
|
2988
2988
|
alreadyAdded: n,
|
|
2989
2989
|
addWidget: t
|
|
2990
2990
|
}) {
|
|
2991
|
-
const [r,
|
|
2991
|
+
const [r, i] = ce(!1), o = e.icon || nn, a = e.name || "Unknown", d = e.description || "---", g = (e.noDuplicatedWidgets || !1) && n, h = G(`
|
|
2992
2992
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2993
2993
|
${g ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
|
|
2994
2994
|
`);
|
|
2995
2995
|
return /* @__PURE__ */ W("div", { className: h, style: { width: "calc(100% - 1rem)" }, onClick: () => {
|
|
2996
2996
|
g || t();
|
|
2997
2997
|
}, children: [
|
|
2998
|
-
/* @__PURE__ */ s(
|
|
2998
|
+
/* @__PURE__ */ s(o, { className: "" }),
|
|
2999
2999
|
/* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
3000
3000
|
/* @__PURE__ */ W("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
|
|
3001
3001
|
/* @__PURE__ */ s("span", { className: "font-bold", children: a }),
|
|
@@ -3004,7 +3004,7 @@ function We({
|
|
|
3004
3004
|
/* @__PURE__ */ W("div", { className: "flex flex-col text-xs", children: [
|
|
3005
3005
|
/* @__PURE__ */ s("div", { children: d }),
|
|
3006
3006
|
/* @__PURE__ */ s("div", { className: "mt-3 cursor-pointer", onClick: (y) => {
|
|
3007
|
-
y.stopPropagation(), y.preventDefault(),
|
|
3007
|
+
y.stopPropagation(), y.preventDefault(), i(!r);
|
|
3008
3008
|
}, children: "Externals:" }),
|
|
3009
3009
|
r && /* @__PURE__ */ s("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((y, D) => /* @__PURE__ */ W("dd", { children: [
|
|
3010
3010
|
"- ",
|
|
@@ -3014,13 +3014,13 @@ function We({
|
|
|
3014
3014
|
] })
|
|
3015
3015
|
] });
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function En({
|
|
3018
3018
|
item: e,
|
|
3019
3019
|
onSettingItemChanged: n
|
|
3020
3020
|
}) {
|
|
3021
|
-
const t = e.
|
|
3021
|
+
const t = e.name || "Unknown", r = e.description || "---", i = G(`
|
|
3022
3022
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
3023
|
-
`),
|
|
3023
|
+
`), o = (d) => {
|
|
3024
3024
|
const b = d.key;
|
|
3025
3025
|
if (["ArrowUp", "ArrowDown"].includes(b)) {
|
|
3026
3026
|
d.preventDefault();
|
|
@@ -3036,7 +3036,7 @@ function Tn({
|
|
|
3036
3036
|
value: d.target.value || ""
|
|
3037
3037
|
});
|
|
3038
3038
|
};
|
|
3039
|
-
return /* @__PURE__ */ s("div", { className:
|
|
3039
|
+
return /* @__PURE__ */ s("div", { className: i, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ W("div", { className: "w-full", children: [
|
|
3040
3040
|
/* @__PURE__ */ s("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ s("span", { className: "font-bold", children: t }) }),
|
|
3041
3041
|
/* @__PURE__ */ s("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ s("div", { children: r }) }),
|
|
3042
3042
|
/* @__PURE__ */ W("div", { children: [
|
|
@@ -3049,7 +3049,7 @@ function Tn({
|
|
|
3049
3049
|
className: "w-full",
|
|
3050
3050
|
value: e.value,
|
|
3051
3051
|
onChange: a,
|
|
3052
|
-
onKeyDown:
|
|
3052
|
+
onKeyDown: o
|
|
3053
3053
|
}
|
|
3054
3054
|
)
|
|
3055
3055
|
] })
|
|
@@ -3059,47 +3059,47 @@ const Ie = (e, n) => [
|
|
|
3059
3059
|
...n.widgets.filter((r) => r.indexOf("Container") === -1),
|
|
3060
3060
|
...n.childWidgetsConfig.map((r) => r.widgetKey)
|
|
3061
3061
|
].includes(e);
|
|
3062
|
-
function
|
|
3062
|
+
function cr({
|
|
3063
3063
|
targetContainerKey: e,
|
|
3064
3064
|
widgetsCatalog: n,
|
|
3065
3065
|
currentDashboardConfig: t,
|
|
3066
3066
|
undoStatus: r,
|
|
3067
|
-
addWidget:
|
|
3068
|
-
addContainer:
|
|
3067
|
+
addWidget: i,
|
|
3068
|
+
addContainer: o,
|
|
3069
3069
|
onSettingItemsUpdated: a,
|
|
3070
3070
|
onResetToDefaultDashboardClick: d,
|
|
3071
3071
|
onUndoOrRedo: b,
|
|
3072
3072
|
onDoneClick: g
|
|
3073
3073
|
}) {
|
|
3074
|
-
const [h, u] =
|
|
3075
|
-
widgetKey:
|
|
3076
|
-
metaData: $t(
|
|
3077
|
-
})),
|
|
3078
|
-
m(
|
|
3079
|
-
}, C = (
|
|
3074
|
+
const [h, u] = ce("Editing"), [p, y] = ce(0), [D, m] = ce(""), w = Array.from(n.keys()).map((E) => ({
|
|
3075
|
+
widgetKey: E,
|
|
3076
|
+
metaData: $t(E, n)
|
|
3077
|
+
})), T = (E) => {
|
|
3078
|
+
m(E.target.value);
|
|
3079
|
+
}, C = (E) => {
|
|
3080
3080
|
const z = D.trim().toLowerCase();
|
|
3081
|
-
return z.length < 1 ? !0 :
|
|
3082
|
-
}, S = (
|
|
3081
|
+
return z.length < 1 ? !0 : E.name.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
|
|
3082
|
+
}, S = (E) => {
|
|
3083
3083
|
const z = D.trim().toLowerCase();
|
|
3084
|
-
return z.length < 1 ? !0 :
|
|
3085
|
-
},
|
|
3084
|
+
return z.length < 1 ? !0 : E.name.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
|
|
3085
|
+
}, l = (E) => G(
|
|
3086
3086
|
"px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
|
|
3087
|
-
|
|
3088
|
-
),
|
|
3087
|
+
E === p ? "text-primary border-primary" : ""
|
|
3088
|
+
), N = !!e;
|
|
3089
3089
|
Dt(() => {
|
|
3090
3090
|
if (e) {
|
|
3091
3091
|
y(0);
|
|
3092
|
-
const
|
|
3093
|
-
u(`Editing ${
|
|
3092
|
+
const E = mt(e);
|
|
3093
|
+
u(`Editing ${E}`);
|
|
3094
3094
|
} else
|
|
3095
3095
|
u("Editing Dashboard");
|
|
3096
3096
|
}, [e]);
|
|
3097
|
-
const
|
|
3098
|
-
|
|
3099
|
-
}, f = (
|
|
3100
|
-
const z = (t.cssSettings || []).map((X) => X.key ===
|
|
3097
|
+
const c = (E) => {
|
|
3098
|
+
N ? i(E, e) : i(E);
|
|
3099
|
+
}, f = (E) => {
|
|
3100
|
+
const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
|
|
3101
3101
|
a(z);
|
|
3102
|
-
}, [M, $] =
|
|
3102
|
+
}, [M, $] = ce(!1);
|
|
3103
3103
|
return /* @__PURE__ */ s(
|
|
3104
3104
|
xn,
|
|
3105
3105
|
{
|
|
@@ -3112,8 +3112,8 @@ function lr({
|
|
|
3112
3112
|
minHeight: "360px",
|
|
3113
3113
|
backdropFilter: "blur(8px)"
|
|
3114
3114
|
},
|
|
3115
|
-
onDraggingChange: (
|
|
3116
|
-
$(
|
|
3115
|
+
onDraggingChange: (E) => {
|
|
3116
|
+
$(E);
|
|
3117
3117
|
},
|
|
3118
3118
|
children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-2 p-2", children: [
|
|
3119
3119
|
/* @__PURE__ */ W("div", { className: "flex flex-row gap-2 justify-between", children: [
|
|
@@ -3123,7 +3123,7 @@ function lr({
|
|
|
3123
3123
|
"h2",
|
|
3124
3124
|
{
|
|
3125
3125
|
className: "flex-1 text-base margin-0 capitalize",
|
|
3126
|
-
title:
|
|
3126
|
+
title: N ? h : `Editing dashboard: ${t.dashboardName}`,
|
|
3127
3127
|
children: h
|
|
3128
3128
|
}
|
|
3129
3129
|
)
|
|
@@ -3173,10 +3173,10 @@ function lr({
|
|
|
3173
3173
|
] })
|
|
3174
3174
|
] }),
|
|
3175
3175
|
/* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
|
|
3176
|
-
/* @__PURE__ */ s("button", { onClick: () => y(0), className:
|
|
3177
|
-
/* @__PURE__ */ s("button", { onClick: () => y(1), className:
|
|
3178
|
-
!
|
|
3179
|
-
!
|
|
3176
|
+
/* @__PURE__ */ s("button", { onClick: () => y(0), className: l(0), children: "Widgets" }),
|
|
3177
|
+
/* @__PURE__ */ s("button", { onClick: () => y(1), className: l(1), children: "Charts" }),
|
|
3178
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(2), className: l(2), children: "Containers" }),
|
|
3179
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(3), className: l(3), children: /* @__PURE__ */ s(Xt, {}) })
|
|
3180
3180
|
] }),
|
|
3181
3181
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
|
|
3182
3182
|
pt,
|
|
@@ -3185,7 +3185,7 @@ function lr({
|
|
|
3185
3185
|
size: "small",
|
|
3186
3186
|
className: "w-full",
|
|
3187
3187
|
value: D,
|
|
3188
|
-
onChange:
|
|
3188
|
+
onChange: T
|
|
3189
3189
|
}
|
|
3190
3190
|
) }),
|
|
3191
3191
|
/* @__PURE__ */ W(
|
|
@@ -3197,46 +3197,46 @@ function lr({
|
|
|
3197
3197
|
},
|
|
3198
3198
|
children: [
|
|
3199
3199
|
p === 0 && w.filter(
|
|
3200
|
-
(
|
|
3201
|
-
).map((
|
|
3200
|
+
(E) => E.metaData.categories.includes("Widget") && C(E.metaData)
|
|
3201
|
+
).map((E) => /* @__PURE__ */ s(
|
|
3202
3202
|
We,
|
|
3203
3203
|
{
|
|
3204
|
-
widgetKey:
|
|
3205
|
-
metaData:
|
|
3206
|
-
alreadyAdded: Ie(
|
|
3207
|
-
addWidget: () =>
|
|
3204
|
+
widgetKey: E.widgetKey,
|
|
3205
|
+
metaData: E.metaData,
|
|
3206
|
+
alreadyAdded: Ie(E.widgetKey, t),
|
|
3207
|
+
addWidget: () => c(E.widgetKey)
|
|
3208
3208
|
},
|
|
3209
|
-
|
|
3209
|
+
E.widgetKey
|
|
3210
3210
|
)),
|
|
3211
3211
|
p === 1 && w.filter(
|
|
3212
|
-
(
|
|
3213
|
-
).map((
|
|
3212
|
+
(E) => E.metaData.categories.includes("Chart") && C(E.metaData)
|
|
3213
|
+
).map((E) => /* @__PURE__ */ s(
|
|
3214
3214
|
We,
|
|
3215
3215
|
{
|
|
3216
|
-
widgetKey:
|
|
3217
|
-
metaData:
|
|
3218
|
-
alreadyAdded: Ie(
|
|
3219
|
-
addWidget: () =>
|
|
3216
|
+
widgetKey: E.widgetKey,
|
|
3217
|
+
metaData: E.metaData,
|
|
3218
|
+
alreadyAdded: Ie(E.widgetKey, t),
|
|
3219
|
+
addWidget: () => c(E.widgetKey)
|
|
3220
3220
|
},
|
|
3221
|
-
|
|
3221
|
+
E.widgetKey
|
|
3222
3222
|
)),
|
|
3223
|
-
!
|
|
3223
|
+
!N && p === 2 && w.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
|
|
3224
3224
|
We,
|
|
3225
3225
|
{
|
|
3226
|
-
widgetKey:
|
|
3227
|
-
metaData:
|
|
3228
|
-
alreadyAdded: Ie(
|
|
3229
|
-
addWidget: () =>
|
|
3226
|
+
widgetKey: E.widgetKey,
|
|
3227
|
+
metaData: E.metaData,
|
|
3228
|
+
alreadyAdded: Ie(E.widgetKey, t),
|
|
3229
|
+
addWidget: () => o(E.widgetKey)
|
|
3230
3230
|
},
|
|
3231
|
-
|
|
3231
|
+
E.widgetKey
|
|
3232
3232
|
)),
|
|
3233
|
-
!
|
|
3234
|
-
|
|
3233
|
+
!N && p === 3 && (t.cssSettings || []).filter(S).map((E) => /* @__PURE__ */ s(
|
|
3234
|
+
En,
|
|
3235
3235
|
{
|
|
3236
|
-
item:
|
|
3236
|
+
item: E,
|
|
3237
3237
|
onSettingItemChanged: f
|
|
3238
3238
|
},
|
|
3239
|
-
|
|
3239
|
+
E.key
|
|
3240
3240
|
))
|
|
3241
3241
|
]
|
|
3242
3242
|
}
|
|
@@ -3262,14 +3262,14 @@ export {
|
|
|
3262
3262
|
J as Button,
|
|
3263
3263
|
nn as CircleQuestionMark,
|
|
3264
3264
|
tn as CrosshairIcon,
|
|
3265
|
-
|
|
3265
|
+
or as DashboardGrid,
|
|
3266
3266
|
Fe as DashboardMaxZoomScale,
|
|
3267
3267
|
Ae as DashboardMinZoomScale,
|
|
3268
3268
|
at as DashboardWidgetBase,
|
|
3269
3269
|
Mt as DashboardZoomStep,
|
|
3270
3270
|
Fn as DeleteIcon,
|
|
3271
3271
|
xn as DraggablePanel,
|
|
3272
|
-
|
|
3272
|
+
Tn as DynamicWidgetLoader,
|
|
3273
3273
|
Ln as EditIcon,
|
|
3274
3274
|
Vn as GridIcon,
|
|
3275
3275
|
en as HandGrabIcon,
|
|
@@ -3291,10 +3291,10 @@ export {
|
|
|
3291
3291
|
pt as TextField,
|
|
3292
3292
|
Gt as TimerResetIcon,
|
|
3293
3293
|
Zt as UndoIcon,
|
|
3294
|
-
|
|
3294
|
+
ir as WidgetContainerColumn,
|
|
3295
3295
|
ar as WidgetContainerLarge,
|
|
3296
3296
|
sr as WidgetContainerRow,
|
|
3297
|
-
|
|
3297
|
+
cr as WidgetsCatalogFlyout,
|
|
3298
3298
|
tr as WrapperColumnContent,
|
|
3299
3299
|
nr as WrapperColumnContentListItem,
|
|
3300
3300
|
gt as XCircleIcon,
|
|
@@ -3304,11 +3304,11 @@ export {
|
|
|
3304
3304
|
Ce as blankDashboardConfig,
|
|
3305
3305
|
dt as createDynamicEntry,
|
|
3306
3306
|
Wt as createStaticEntry,
|
|
3307
|
-
|
|
3307
|
+
Tt as cssSettingsCatalog,
|
|
3308
3308
|
Xn as cssVarsUtils,
|
|
3309
3309
|
_t as dashboardSettingsUtils,
|
|
3310
3310
|
Pt as ensureContainersSequence,
|
|
3311
|
-
|
|
3311
|
+
lt as ensureZoomScaleIsWithinRange,
|
|
3312
3312
|
ge as getDefaultWidgetMetaFromKey,
|
|
3313
3313
|
Wn as getDefaultWidgetMetaFromMap,
|
|
3314
3314
|
G as getDistinctCssClasses,
|