@tenorlab/react-dashboard 1.4.4 → 1.4.5
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.
- package/dist/react-dashboard.es.js +402 -402
- package/package.json +1 -1
|
@@ -4,32 +4,32 @@ import be, { useState as ae, useCallback as ce, useMemo as rt, forwardRef as se,
|
|
|
4
4
|
import { jsxs as $, jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import ot from "react-dom";
|
|
6
6
|
const wt = (e) => {
|
|
7
|
-
const i = e.widgets.filter((
|
|
7
|
+
const i = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
|
|
8
8
|
return `container${i.length > 0 ? Math.max(...i) + 1 : 1}`;
|
|
9
9
|
}, St = (e, i) => {
|
|
10
10
|
const t = wt(e);
|
|
11
11
|
return `${i}_${t}`;
|
|
12
12
|
}, Dt = (e) => {
|
|
13
|
-
const { dashboardConfig: i, widgetKey: t, parentWidgetKey:
|
|
14
|
-
if (
|
|
13
|
+
const { dashboardConfig: i, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: s } = e;
|
|
14
|
+
if (r) {
|
|
15
15
|
if (s && i.childWidgetsConfig.find(
|
|
16
|
-
(c) => c.parentWidgetKey ===
|
|
16
|
+
(c) => c.parentWidgetKey === r && c.widgetKey === t
|
|
17
17
|
))
|
|
18
18
|
return {
|
|
19
19
|
success: !1,
|
|
20
20
|
message: `DashboardStore: addWidget: Widget already added (${t})`,
|
|
21
21
|
updatedDashboardConfig: i
|
|
22
22
|
};
|
|
23
|
-
const
|
|
23
|
+
const o = [
|
|
24
24
|
...i.childWidgetsConfig,
|
|
25
|
-
{ parentWidgetKey:
|
|
25
|
+
{ parentWidgetKey: r, widgetKey: t }
|
|
26
26
|
// new entry
|
|
27
27
|
];
|
|
28
28
|
return {
|
|
29
29
|
success: !0,
|
|
30
30
|
updatedDashboardConfig: {
|
|
31
31
|
...i,
|
|
32
|
-
childWidgetsConfig:
|
|
32
|
+
childWidgetsConfig: o
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
} else {
|
|
@@ -39,66 +39,66 @@ const wt = (e) => {
|
|
|
39
39
|
message: `DashboardStore: addWidget: Widget already added (${t})`,
|
|
40
40
|
updatedDashboardConfig: i
|
|
41
41
|
};
|
|
42
|
-
const
|
|
42
|
+
const o = [...i.widgets, t];
|
|
43
43
|
return {
|
|
44
44
|
success: !0,
|
|
45
45
|
updatedDashboardConfig: {
|
|
46
46
|
...i,
|
|
47
|
-
widgets:
|
|
47
|
+
widgets: o
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
}, Tt = (e, i, t) => {
|
|
52
|
-
const
|
|
52
|
+
const r = `${i || ""}`.trim().toLowerCase(), s = `${t || ""}`.trim().toLowerCase();
|
|
53
53
|
if (s.length > 0) {
|
|
54
|
-
const
|
|
54
|
+
const o = e.childWidgetsConfig.filter(
|
|
55
55
|
(m) => `${m.parentWidgetKey}`.trim().toLowerCase() !== s
|
|
56
56
|
), c = e.childWidgetsConfig.filter(
|
|
57
|
-
(m) => `${m.parentWidgetKey}`.trim().toLowerCase() === s && `${m.widgetKey}`.trim().toLowerCase() !==
|
|
58
|
-
),
|
|
57
|
+
(m) => `${m.parentWidgetKey}`.trim().toLowerCase() === s && `${m.widgetKey}`.trim().toLowerCase() !== r
|
|
58
|
+
), g = [...o, ...c];
|
|
59
59
|
let D = {
|
|
60
60
|
...e,
|
|
61
|
-
childWidgetsConfig:
|
|
61
|
+
childWidgetsConfig: g
|
|
62
62
|
};
|
|
63
|
-
return
|
|
63
|
+
return r.includes("container") && (D = mt(D)), {
|
|
64
64
|
success: !0,
|
|
65
65
|
updatedDashboardConfig: D
|
|
66
66
|
};
|
|
67
67
|
} else {
|
|
68
|
-
const
|
|
69
|
-
(
|
|
70
|
-
),
|
|
71
|
-
(
|
|
68
|
+
const c = (e.widgets || []).filter(
|
|
69
|
+
(D) => `${D}`.trim().toLowerCase() !== r
|
|
70
|
+
), g = e.childWidgetsConfig.filter(
|
|
71
|
+
(D) => `${D.parentWidgetKey}`.trim().toLowerCase() !== r
|
|
72
72
|
);
|
|
73
73
|
return {
|
|
74
74
|
success: !0,
|
|
75
75
|
updatedDashboardConfig: {
|
|
76
76
|
...e,
|
|
77
|
-
widgets:
|
|
78
|
-
childWidgetsConfig:
|
|
77
|
+
widgets: c,
|
|
78
|
+
childWidgetsConfig: g
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}, Nt = (e, i, t,
|
|
83
|
-
const s = `${t}`.trim().toLowerCase(),
|
|
84
|
-
if (
|
|
82
|
+
}, Nt = (e, i, t, r) => {
|
|
83
|
+
const s = `${t || ""}`.trim().toLowerCase(), o = `${r || ""}`.trim().toLowerCase();
|
|
84
|
+
if (o.length > 0) {
|
|
85
85
|
const c = e.childWidgetsConfig.filter(
|
|
86
|
-
(p) => `${p.parentWidgetKey}`.trim().toLowerCase() !==
|
|
86
|
+
(p) => `${p.parentWidgetKey}`.trim().toLowerCase() !== o
|
|
87
87
|
);
|
|
88
|
-
let
|
|
89
|
-
(p) => `${p.parentWidgetKey}`.trim().toLowerCase() ===
|
|
88
|
+
let g = e.childWidgetsConfig.filter(
|
|
89
|
+
(p) => `${p.parentWidgetKey}`.trim().toLowerCase() === o
|
|
90
90
|
);
|
|
91
|
-
const D =
|
|
91
|
+
const D = g.find(
|
|
92
92
|
(p) => `${p.widgetKey}`.trim().toLowerCase() === s
|
|
93
|
-
), v =
|
|
93
|
+
), v = g.indexOf(D);
|
|
94
94
|
let m = v + i;
|
|
95
|
-
if (m = Math.max(0, m), m = Math.min(
|
|
95
|
+
if (m = Math.max(0, m), m = Math.min(g.length - 1, m), m === v)
|
|
96
96
|
return {
|
|
97
97
|
success: !1,
|
|
98
98
|
message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
|
|
99
99
|
updatedDashboardConfig: e
|
|
100
100
|
};
|
|
101
|
-
const d = [...
|
|
101
|
+
const d = [...g], [y] = d.splice(v, 1);
|
|
102
102
|
return d.splice(m, 0, y), {
|
|
103
103
|
success: !0,
|
|
104
104
|
updatedDashboardConfig: {
|
|
@@ -107,7 +107,7 @@ const wt = (e) => {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
} else {
|
|
110
|
-
const c = e.widgets || [],
|
|
110
|
+
const c = e.widgets || [], D = c.map((y) => `${y}`.trim().toLowerCase()).indexOf(s);
|
|
111
111
|
let v = D + i;
|
|
112
112
|
if (v = Math.max(0, v), v = Math.min(c.length - 1, v), v === D)
|
|
113
113
|
return {
|
|
@@ -133,108 +133,108 @@ const wt = (e) => {
|
|
|
133
133
|
getNextContainerKey: (t) => St(i().currentDashboardConfig, t),
|
|
134
134
|
setIsLoading: (t) => (e(() => ({ isLoading: t })), t),
|
|
135
135
|
setIsEditing: (t) => {
|
|
136
|
-
let
|
|
137
|
-
return t || (
|
|
136
|
+
let r = i().targetContainerKey;
|
|
137
|
+
return t || (r = void 0), e(() => ({ isEditing: t, targetContainerKey: r })), t;
|
|
138
138
|
},
|
|
139
139
|
setTargetContainerKey: (t) => (e(() => ({ targetContainerKey: t })), t),
|
|
140
140
|
setAllDashboardConfigs: (t) => (e(() => ({ allDashboardConfigs: t })), i().allDashboardConfigs),
|
|
141
141
|
setCurrentDashboardConfig: (t) => {
|
|
142
|
-
const
|
|
143
|
-
...
|
|
142
|
+
const r = i(), s = [
|
|
143
|
+
...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
|
|
144
144
|
t
|
|
145
145
|
];
|
|
146
146
|
return e(() => ({
|
|
147
|
-
...
|
|
147
|
+
...r,
|
|
148
148
|
allDashboardConfigs: s,
|
|
149
149
|
currentDashboardConfig: t
|
|
150
150
|
})), s;
|
|
151
151
|
},
|
|
152
152
|
addDashboardConfig: (t) => {
|
|
153
|
-
const
|
|
154
|
-
...
|
|
153
|
+
const r = i(), s = [
|
|
154
|
+
...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
|
|
155
155
|
t
|
|
156
156
|
];
|
|
157
157
|
return e(() => ({
|
|
158
|
-
...
|
|
158
|
+
...r,
|
|
159
159
|
allDashboardConfigs: s,
|
|
160
160
|
currentDashboardConfig: t
|
|
161
161
|
})), s;
|
|
162
162
|
},
|
|
163
163
|
deleteDashboardConfigById: (t) => {
|
|
164
|
-
const
|
|
164
|
+
const r = i(), s = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
|
|
165
165
|
return e(() => ({
|
|
166
|
-
...
|
|
166
|
+
...r,
|
|
167
167
|
allDashboardConfigs: s,
|
|
168
168
|
currentDashboardConfig: s[0] || xe
|
|
169
169
|
})), s;
|
|
170
170
|
},
|
|
171
171
|
selectDashboardById: (t) => (e(() => {
|
|
172
|
-
const
|
|
172
|
+
const r = i(), s = r.allDashboardConfigs.find((o) => o.dashboardId === t);
|
|
173
173
|
return s ? {
|
|
174
174
|
currentDashboardConfig: s
|
|
175
175
|
} : {
|
|
176
|
-
...
|
|
176
|
+
...r
|
|
177
177
|
};
|
|
178
178
|
}), i().currentDashboardConfig),
|
|
179
179
|
addWidget: (t) => {
|
|
180
|
-
const
|
|
181
|
-
dashboardConfig:
|
|
180
|
+
const r = i(), s = Dt({
|
|
181
|
+
dashboardConfig: r.currentDashboardConfig,
|
|
182
182
|
...t
|
|
183
|
-
}),
|
|
184
|
-
...
|
|
183
|
+
}), o = [
|
|
184
|
+
...r.allDashboardConfigs.filter(
|
|
185
185
|
(c) => c.dashboardId !== s.updatedDashboardConfig.dashboardId
|
|
186
186
|
),
|
|
187
187
|
s.updatedDashboardConfig
|
|
188
188
|
];
|
|
189
189
|
return s.success && e(() => ({
|
|
190
|
-
allDashboardConfigs:
|
|
190
|
+
allDashboardConfigs: o,
|
|
191
191
|
currentDashboardConfig: s.updatedDashboardConfig
|
|
192
192
|
})), {
|
|
193
193
|
...s,
|
|
194
|
-
allUpdatedDashboardConfigs:
|
|
194
|
+
allUpdatedDashboardConfigs: o
|
|
195
195
|
};
|
|
196
196
|
},
|
|
197
|
-
removeWidget: (t,
|
|
198
|
-
const s = i(),
|
|
197
|
+
removeWidget: (t, r) => {
|
|
198
|
+
const s = i(), o = Tt(s.currentDashboardConfig, t, r), c = [
|
|
199
199
|
...s.allDashboardConfigs.filter(
|
|
200
|
-
(
|
|
200
|
+
(g) => g.dashboardId !== o.updatedDashboardConfig.dashboardId
|
|
201
201
|
),
|
|
202
|
-
|
|
202
|
+
o.updatedDashboardConfig
|
|
203
203
|
];
|
|
204
|
-
return
|
|
204
|
+
return o.success && e(() => ({
|
|
205
205
|
allDashboardConfigs: c,
|
|
206
|
-
currentDashboardConfig:
|
|
206
|
+
currentDashboardConfig: o.updatedDashboardConfig
|
|
207
207
|
})), {
|
|
208
|
-
...
|
|
208
|
+
...o,
|
|
209
209
|
allUpdatedDashboardConfigs: c
|
|
210
210
|
};
|
|
211
211
|
},
|
|
212
|
-
moveWidget: (t,
|
|
213
|
-
const
|
|
214
|
-
...
|
|
212
|
+
moveWidget: (t, r, s) => {
|
|
213
|
+
const o = i(), c = Nt(o.currentDashboardConfig, t, r, s), g = [
|
|
214
|
+
...o.allDashboardConfigs.filter(
|
|
215
215
|
(D) => D.dashboardId !== c.updatedDashboardConfig.dashboardId
|
|
216
216
|
),
|
|
217
217
|
c.updatedDashboardConfig
|
|
218
218
|
];
|
|
219
219
|
return c.success && e(() => ({
|
|
220
|
-
allDashboardConfigs:
|
|
220
|
+
allDashboardConfigs: g,
|
|
221
221
|
currentDashboardConfig: c.updatedDashboardConfig
|
|
222
222
|
})), {
|
|
223
223
|
...c,
|
|
224
|
-
allUpdatedDashboardConfigs:
|
|
224
|
+
allUpdatedDashboardConfigs: g
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
}), un = gt()((...e) => ({
|
|
228
228
|
...Et(...e)
|
|
229
229
|
})), fn = () => {
|
|
230
|
-
const [e, i] = ae({}), [t,
|
|
230
|
+
const [e, i] = ae({}), [t, r] = ae({}), s = ce((m) => {
|
|
231
231
|
const d = m.dashboardId;
|
|
232
232
|
i((y) => {
|
|
233
233
|
const p = {
|
|
234
234
|
undoIndex: 0,
|
|
235
235
|
config: m
|
|
236
236
|
};
|
|
237
|
-
return
|
|
237
|
+
return r((T) => ({
|
|
238
238
|
...T,
|
|
239
239
|
[d]: 0
|
|
240
240
|
})), {
|
|
@@ -243,15 +243,15 @@ const wt = (e) => {
|
|
|
243
243
|
// Forces a reset to just this one entry
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
}, []),
|
|
246
|
+
}, []), o = ce(
|
|
247
247
|
(m) => {
|
|
248
248
|
i((d) => {
|
|
249
|
-
const y = m.dashboardId, p = d[y] || [], T = t[y] ?? -1,
|
|
250
|
-
undoIndex:
|
|
249
|
+
const y = m.dashboardId, p = d[y] || [], T = t[y] ?? -1, h = p.slice(0, T + 1), b = {
|
|
250
|
+
undoIndex: h.length,
|
|
251
251
|
// New index based on trimmed length
|
|
252
252
|
config: m
|
|
253
|
-
}, C = [...
|
|
254
|
-
return
|
|
253
|
+
}, C = [...h, b];
|
|
254
|
+
return r((N) => ({
|
|
255
255
|
...N,
|
|
256
256
|
[y]: C.length - 1
|
|
257
257
|
// Index is now the last element's index
|
|
@@ -268,13 +268,13 @@ const wt = (e) => {
|
|
|
268
268
|
return d;
|
|
269
269
|
const { [m]: y, ...p } = d;
|
|
270
270
|
return p;
|
|
271
|
-
}),
|
|
271
|
+
}), r((d) => {
|
|
272
272
|
const { [m]: y, ...p } = d;
|
|
273
273
|
return p;
|
|
274
274
|
});
|
|
275
|
-
}, []),
|
|
275
|
+
}, []), g = ce(
|
|
276
276
|
(m) => {
|
|
277
|
-
|
|
277
|
+
r((d) => {
|
|
278
278
|
const y = d[m] ?? -1, p = Math.max(0, y - 1);
|
|
279
279
|
return p !== y ? { ...d, [m]: p } : d;
|
|
280
280
|
});
|
|
@@ -284,7 +284,7 @@ const wt = (e) => {
|
|
|
284
284
|
]
|
|
285
285
|
), D = ce(
|
|
286
286
|
(m) => {
|
|
287
|
-
|
|
287
|
+
r((d) => {
|
|
288
288
|
const y = e[m]?.length || 0, p = d[m] ?? -1, T = Math.min(y - 1, p + 1);
|
|
289
289
|
return T !== p ? { ...d, [m]: T } : d;
|
|
290
290
|
});
|
|
@@ -297,9 +297,9 @@ const wt = (e) => {
|
|
|
297
297
|
return {
|
|
298
298
|
initializeHistoryForDashboard: s,
|
|
299
299
|
resetAllHistory: () => i({}),
|
|
300
|
-
addUndoEntry:
|
|
300
|
+
addUndoEntry: o,
|
|
301
301
|
removeUndoHistoryForDashboard: c,
|
|
302
|
-
undo:
|
|
302
|
+
undo: g,
|
|
303
303
|
redo: D,
|
|
304
304
|
getUndoStatus: (m) => {
|
|
305
305
|
const d = t[m] ?? -1, y = e[m]?.length || 0, p = d <= 0, T = d >= y - 1;
|
|
@@ -478,7 +478,7 @@ function Rt({ className: e }) {
|
|
|
478
478
|
/* @__PURE__ */ n("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
|
|
479
479
|
] });
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Wt({ className: e }) {
|
|
482
482
|
return /* @__PURE__ */ $(B, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
|
|
483
483
|
/* @__PURE__ */ n("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
|
|
484
484
|
/* @__PURE__ */ n("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
@@ -487,7 +487,7 @@ function It({ className: e }) {
|
|
|
487
487
|
/* @__PURE__ */ n("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
|
|
488
488
|
] });
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function It({ className: e }) {
|
|
491
491
|
return /* @__PURE__ */ $(B, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
|
|
492
492
|
/* @__PURE__ */ n("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
|
|
493
493
|
/* @__PURE__ */ n("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
|
|
@@ -519,18 +519,18 @@ const lt = ({
|
|
|
519
519
|
label: e,
|
|
520
520
|
className: i,
|
|
521
521
|
size: t = "medium",
|
|
522
|
-
value:
|
|
522
|
+
value: r,
|
|
523
523
|
onChange: s,
|
|
524
|
-
onKeyDown:
|
|
524
|
+
onKeyDown: o,
|
|
525
525
|
placeholder: c = ""
|
|
526
526
|
}) => {
|
|
527
|
-
const
|
|
527
|
+
const g = rt(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), D = G("flex flex-col mb-4", i || ""), m = `${G(`
|
|
528
528
|
block w-full rounded-md px-3 py-1.5 text-base
|
|
529
529
|
bg-formfield content-formfield
|
|
530
530
|
outline-1 -outline-offset-1 outline-primary
|
|
531
531
|
placeholder:text-disabled
|
|
532
532
|
focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
|
|
533
|
-
`)} ${
|
|
533
|
+
`)} ${g}`;
|
|
534
534
|
return /* @__PURE__ */ $("div", { className: D, children: [
|
|
535
535
|
/* @__PURE__ */ n("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
|
|
536
536
|
/* @__PURE__ */ n(
|
|
@@ -538,9 +538,9 @@ const lt = ({
|
|
|
538
538
|
{
|
|
539
539
|
id: e,
|
|
540
540
|
type: "text",
|
|
541
|
-
value:
|
|
541
|
+
value: r,
|
|
542
542
|
onChange: s,
|
|
543
|
-
onKeyDown: (d) =>
|
|
543
|
+
onKeyDown: (d) => o && o(d),
|
|
544
544
|
placeholder: c,
|
|
545
545
|
className: m,
|
|
546
546
|
"aria-label": e
|
|
@@ -561,16 +561,16 @@ function J(e) {
|
|
|
561
561
|
const {
|
|
562
562
|
tooltip: i,
|
|
563
563
|
disabled: t,
|
|
564
|
-
isIconButton:
|
|
564
|
+
isIconButton: r,
|
|
565
565
|
className: s,
|
|
566
|
-
buttonType:
|
|
566
|
+
buttonType: o,
|
|
567
567
|
category: c,
|
|
568
|
-
px:
|
|
568
|
+
px: g,
|
|
569
569
|
py: D,
|
|
570
570
|
children: v,
|
|
571
571
|
...m
|
|
572
572
|
} = e, d = () => {
|
|
573
|
-
const p = e.isIconButton || !1, T = e.category || "primary",
|
|
573
|
+
const p = e.isIconButton || !1, T = e.category || "primary", h = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", N = e.font || "semibold", w = Number((e.border || 0) > 0 ? e.border : 0);
|
|
574
574
|
let S = (e.borderColor || "").trim();
|
|
575
575
|
S = S.length > 0 ? S : "";
|
|
576
576
|
const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), M = e.shadow || "sm", a = e.shadowHover || "md", f = (e.addCss || "").trim(), u = e.justifyCss || "justify-center";
|
|
@@ -588,11 +588,11 @@ function J(e) {
|
|
|
588
588
|
`font-${N}`
|
|
589
589
|
];
|
|
590
590
|
if (b)
|
|
591
|
-
|
|
591
|
+
h === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
|
|
592
592
|
else {
|
|
593
593
|
_.push("cursor-pointer");
|
|
594
594
|
let R = "";
|
|
595
|
-
Ce.has(
|
|
595
|
+
Ce.has(h) ? R = `${Ce.get(h)}` : R = `${Ce.get("normal")}`, w < 1 && (R = R.replace("border-[category]", ""));
|
|
596
596
|
const z = R.replace(/\[category\]/g, T).trim();
|
|
597
597
|
_.push(z);
|
|
598
598
|
}
|
|
@@ -600,24 +600,24 @@ function J(e) {
|
|
|
600
600
|
}, y = () => {
|
|
601
601
|
const p = e.px || 0.7, T = e.py || 0.25;
|
|
602
602
|
return {
|
|
603
|
-
padding:
|
|
603
|
+
padding: r ? 0 : `${T}rem ${p}rem `
|
|
604
604
|
};
|
|
605
605
|
};
|
|
606
606
|
return /* @__PURE__ */ n("button", { type: "button", disabled: t, className: d(), style: y(), ...m, children: v });
|
|
607
607
|
}
|
|
608
608
|
const kt = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
|
|
609
609
|
function jt(e) {
|
|
610
|
-
const { children: i, testId: t, classNames:
|
|
611
|
-
return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...
|
|
610
|
+
const { children: i, testId: t, classNames: r, direction: s, ...o } = e, c = kt(e);
|
|
611
|
+
return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...o, children: i });
|
|
612
612
|
}
|
|
613
613
|
const Sn = se(
|
|
614
614
|
(e, i) => {
|
|
615
|
-
const { classNames: t, innerClass:
|
|
615
|
+
const { classNames: t, innerClass: r, ...s } = e, o = G(t || "", "w-full"), c = G(
|
|
616
616
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
617
617
|
rounded-md border`,
|
|
618
|
-
|
|
618
|
+
r || ""
|
|
619
619
|
);
|
|
620
|
-
return /* @__PURE__ */ n(jt, { direction: "row", classNames:
|
|
620
|
+
return /* @__PURE__ */ n(jt, { direction: "row", classNames: o, ...s, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
|
|
621
621
|
}
|
|
622
622
|
), Dn = se((e, i) => /* @__PURE__ */ n(
|
|
623
623
|
"div",
|
|
@@ -659,7 +659,7 @@ var ke;
|
|
|
659
659
|
function Lt() {
|
|
660
660
|
if (ke) return K;
|
|
661
661
|
ke = 1;
|
|
662
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106,
|
|
662
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, D = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, h = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
663
663
|
function w(l) {
|
|
664
664
|
if (typeof l == "object" && l !== null) {
|
|
665
665
|
var M = l.$$typeof;
|
|
@@ -668,14 +668,14 @@ function Lt() {
|
|
|
668
668
|
switch (l = l.type, l) {
|
|
669
669
|
case D:
|
|
670
670
|
case v:
|
|
671
|
-
case o:
|
|
672
671
|
case r:
|
|
672
|
+
case o:
|
|
673
673
|
case s:
|
|
674
674
|
case d:
|
|
675
675
|
return l;
|
|
676
676
|
default:
|
|
677
677
|
switch (l = l && l.$$typeof, l) {
|
|
678
|
-
case
|
|
678
|
+
case g:
|
|
679
679
|
case m:
|
|
680
680
|
case T:
|
|
681
681
|
case p:
|
|
@@ -693,10 +693,10 @@ function Lt() {
|
|
|
693
693
|
function S(l) {
|
|
694
694
|
return w(l) === v;
|
|
695
695
|
}
|
|
696
|
-
return K.AsyncMode = D, K.ConcurrentMode = v, K.ContextConsumer =
|
|
696
|
+
return K.AsyncMode = D, K.ConcurrentMode = v, K.ContextConsumer = g, K.ContextProvider = c, K.Element = i, K.ForwardRef = m, K.Fragment = r, K.Lazy = T, K.Memo = p, K.Portal = t, K.Profiler = o, K.StrictMode = s, K.Suspense = d, K.isAsyncMode = function(l) {
|
|
697
697
|
return S(l) || w(l) === D;
|
|
698
698
|
}, K.isConcurrentMode = S, K.isContextConsumer = function(l) {
|
|
699
|
-
return w(l) ===
|
|
699
|
+
return w(l) === g;
|
|
700
700
|
}, K.isContextProvider = function(l) {
|
|
701
701
|
return w(l) === c;
|
|
702
702
|
}, K.isElement = function(l) {
|
|
@@ -704,7 +704,7 @@ function Lt() {
|
|
|
704
704
|
}, K.isForwardRef = function(l) {
|
|
705
705
|
return w(l) === m;
|
|
706
706
|
}, K.isFragment = function(l) {
|
|
707
|
-
return w(l) ===
|
|
707
|
+
return w(l) === r;
|
|
708
708
|
}, K.isLazy = function(l) {
|
|
709
709
|
return w(l) === T;
|
|
710
710
|
}, K.isMemo = function(l) {
|
|
@@ -712,23 +712,23 @@ function Lt() {
|
|
|
712
712
|
}, K.isPortal = function(l) {
|
|
713
713
|
return w(l) === t;
|
|
714
714
|
}, K.isProfiler = function(l) {
|
|
715
|
-
return w(l) ===
|
|
715
|
+
return w(l) === o;
|
|
716
716
|
}, K.isStrictMode = function(l) {
|
|
717
717
|
return w(l) === s;
|
|
718
718
|
}, K.isSuspense = function(l) {
|
|
719
719
|
return w(l) === d;
|
|
720
720
|
}, K.isValidElementType = function(l) {
|
|
721
|
-
return typeof l == "string" || typeof l == "function" || l ===
|
|
721
|
+
return typeof l == "string" || typeof l == "function" || l === r || l === v || l === o || l === s || l === d || l === y || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === p || l.$$typeof === c || l.$$typeof === g || l.$$typeof === m || l.$$typeof === b || l.$$typeof === C || l.$$typeof === N || l.$$typeof === h);
|
|
722
722
|
}, K.typeOf = w, K;
|
|
723
723
|
}
|
|
724
724
|
var Y = {};
|
|
725
725
|
var je;
|
|
726
726
|
function qt() {
|
|
727
727
|
return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
728
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106,
|
|
728
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, D = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, h = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
729
729
|
function w(E) {
|
|
730
730
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
731
|
-
E ===
|
|
731
|
+
E === r || E === v || E === o || E === s || E === d || E === y || typeof E == "object" && E !== null && (E.$$typeof === T || E.$$typeof === p || E.$$typeof === c || E.$$typeof === g || E.$$typeof === m || E.$$typeof === b || E.$$typeof === C || E.$$typeof === N || E.$$typeof === h);
|
|
732
732
|
}
|
|
733
733
|
function S(E) {
|
|
734
734
|
if (typeof E == "object" && E !== null) {
|
|
@@ -739,15 +739,15 @@ function qt() {
|
|
|
739
739
|
switch (fe) {
|
|
740
740
|
case D:
|
|
741
741
|
case v:
|
|
742
|
-
case o:
|
|
743
742
|
case r:
|
|
743
|
+
case o:
|
|
744
744
|
case s:
|
|
745
745
|
case d:
|
|
746
746
|
return fe;
|
|
747
747
|
default:
|
|
748
748
|
var Oe = fe && fe.$$typeof;
|
|
749
749
|
switch (Oe) {
|
|
750
|
-
case
|
|
750
|
+
case g:
|
|
751
751
|
case m:
|
|
752
752
|
case T:
|
|
753
753
|
case p:
|
|
@@ -762,7 +762,7 @@ function qt() {
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
var l = D, M = v, a =
|
|
765
|
+
var l = D, M = v, a = g, f = c, u = i, _ = m, R = r, z = T, X = p, V = t, Q = o, H = s, ee = d, ie = !1;
|
|
766
766
|
function le(E) {
|
|
767
767
|
return ie || (ie = !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(E) || S(E) === D;
|
|
768
768
|
}
|
|
@@ -770,7 +770,7 @@ function qt() {
|
|
|
770
770
|
return S(E) === v;
|
|
771
771
|
}
|
|
772
772
|
function P(E) {
|
|
773
|
-
return S(E) ===
|
|
773
|
+
return S(E) === g;
|
|
774
774
|
}
|
|
775
775
|
function j(E) {
|
|
776
776
|
return S(E) === c;
|
|
@@ -778,13 +778,13 @@ function qt() {
|
|
|
778
778
|
function O(E) {
|
|
779
779
|
return typeof E == "object" && E !== null && E.$$typeof === i;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function W(E) {
|
|
782
782
|
return S(E) === m;
|
|
783
783
|
}
|
|
784
784
|
function A(E) {
|
|
785
|
-
return S(E) ===
|
|
785
|
+
return S(E) === r;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function I(E) {
|
|
788
788
|
return S(E) === T;
|
|
789
789
|
}
|
|
790
790
|
function k(E) {
|
|
@@ -794,7 +794,7 @@ function qt() {
|
|
|
794
794
|
return S(E) === t;
|
|
795
795
|
}
|
|
796
796
|
function U(E) {
|
|
797
|
-
return S(E) ===
|
|
797
|
+
return S(E) === o;
|
|
798
798
|
}
|
|
799
799
|
function q(E) {
|
|
800
800
|
return S(E) === s;
|
|
@@ -802,7 +802,7 @@ function qt() {
|
|
|
802
802
|
function Z(E) {
|
|
803
803
|
return S(E) === d;
|
|
804
804
|
}
|
|
805
|
-
Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = a, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = R, Y.Lazy = z, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef =
|
|
805
|
+
Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = a, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = R, Y.Lazy = z, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef = W, Y.isFragment = A, Y.isLazy = I, Y.isMemo = k, Y.isPortal = L, Y.isProfiler = U, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = w, Y.typeOf = S;
|
|
806
806
|
})()), Y;
|
|
807
807
|
}
|
|
808
808
|
var Ae;
|
|
@@ -814,20 +814,20 @@ function Kt() {
|
|
|
814
814
|
if (Le) return Se;
|
|
815
815
|
Le = 1;
|
|
816
816
|
var e = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
817
|
-
function o
|
|
818
|
-
if (
|
|
817
|
+
function r(o) {
|
|
818
|
+
if (o == null)
|
|
819
819
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
820
|
-
return Object(
|
|
820
|
+
return Object(o);
|
|
821
821
|
}
|
|
822
822
|
function s() {
|
|
823
823
|
try {
|
|
824
824
|
if (!Object.assign)
|
|
825
825
|
return !1;
|
|
826
|
-
var
|
|
827
|
-
if (
|
|
826
|
+
var o = new String("abc");
|
|
827
|
+
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
828
828
|
return !1;
|
|
829
|
-
for (var c = {},
|
|
830
|
-
c["_" + String.fromCharCode(
|
|
829
|
+
for (var c = {}, g = 0; g < 10; g++)
|
|
830
|
+
c["_" + String.fromCharCode(g)] = g;
|
|
831
831
|
var D = Object.getOwnPropertyNames(c).map(function(m) {
|
|
832
832
|
return c[m];
|
|
833
833
|
});
|
|
@@ -841,15 +841,15 @@ function Kt() {
|
|
|
841
841
|
return !1;
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
return Se = s() ? Object.assign : function(
|
|
845
|
-
for (var
|
|
846
|
-
|
|
847
|
-
for (var d in
|
|
848
|
-
i.call(
|
|
844
|
+
return Se = s() ? Object.assign : function(o, c) {
|
|
845
|
+
for (var g, D = r(o), v, m = 1; m < arguments.length; m++) {
|
|
846
|
+
g = Object(arguments[m]);
|
|
847
|
+
for (var d in g)
|
|
848
|
+
i.call(g, d) && (D[d] = g[d]);
|
|
849
849
|
if (e) {
|
|
850
|
-
v = e(
|
|
850
|
+
v = e(g);
|
|
851
851
|
for (var y = 0; y < v.length; y++)
|
|
852
|
-
t.call(
|
|
852
|
+
t.call(g, v[y]) && (D[v[y]] = g[v[y]]);
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
return D;
|
|
@@ -873,9 +873,9 @@ function Yt() {
|
|
|
873
873
|
var e = function() {
|
|
874
874
|
};
|
|
875
875
|
if (process.env.NODE_ENV !== "production") {
|
|
876
|
-
var i = /* @__PURE__ */ Re(), t = {},
|
|
877
|
-
e = function(
|
|
878
|
-
var c = "Warning: " +
|
|
876
|
+
var i = /* @__PURE__ */ Re(), t = {}, r = /* @__PURE__ */ dt();
|
|
877
|
+
e = function(o) {
|
|
878
|
+
var c = "Warning: " + o;
|
|
879
879
|
typeof console < "u" && console.error(c);
|
|
880
880
|
try {
|
|
881
881
|
throw new Error(c);
|
|
@@ -883,29 +883,29 @@ function Yt() {
|
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
function s(
|
|
886
|
+
function s(o, c, g, D, v) {
|
|
887
887
|
if (process.env.NODE_ENV !== "production") {
|
|
888
|
-
for (var m in
|
|
889
|
-
if (o
|
|
888
|
+
for (var m in o)
|
|
889
|
+
if (r(o, m)) {
|
|
890
890
|
var d;
|
|
891
891
|
try {
|
|
892
|
-
if (typeof
|
|
892
|
+
if (typeof o[m] != "function") {
|
|
893
893
|
var y = Error(
|
|
894
|
-
(D || "React class") + ": " +
|
|
894
|
+
(D || "React class") + ": " + g + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
895
895
|
);
|
|
896
896
|
throw y.name = "Invariant Violation", y;
|
|
897
897
|
}
|
|
898
|
-
d =
|
|
898
|
+
d = o[m](c, m, D, g, null, i);
|
|
899
899
|
} catch (T) {
|
|
900
900
|
d = T;
|
|
901
901
|
}
|
|
902
902
|
if (d && !(d instanceof Error) && e(
|
|
903
|
-
(D || "React class") + ": type specification of " +
|
|
903
|
+
(D || "React class") + ": type specification of " + g + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
904
904
|
), d instanceof Error && !(d.message in t)) {
|
|
905
905
|
t[d.message] = !0;
|
|
906
906
|
var p = v ? v() : "";
|
|
907
907
|
e(
|
|
908
|
-
"Failed " +
|
|
908
|
+
"Failed " + g + " type: " + d.message + (p ?? "")
|
|
909
909
|
);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
@@ -919,10 +919,10 @@ var Ee, Ue;
|
|
|
919
919
|
function Ut() {
|
|
920
920
|
if (Ue) return Ee;
|
|
921
921
|
Ue = 1;
|
|
922
|
-
var e = ct(), i = Kt(), t = /* @__PURE__ */ Re(),
|
|
922
|
+
var e = ct(), i = Kt(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ dt(), s = /* @__PURE__ */ Yt(), o = function() {
|
|
923
923
|
};
|
|
924
|
-
process.env.NODE_ENV !== "production" && (
|
|
925
|
-
var D = "Warning: " +
|
|
924
|
+
process.env.NODE_ENV !== "production" && (o = function(g) {
|
|
925
|
+
var D = "Warning: " + g;
|
|
926
926
|
typeof console < "u" && console.error(D);
|
|
927
927
|
try {
|
|
928
928
|
throw new Error(D);
|
|
@@ -932,7 +932,7 @@ function Ut() {
|
|
|
932
932
|
function c() {
|
|
933
933
|
return null;
|
|
934
934
|
}
|
|
935
|
-
return Ee = function(
|
|
935
|
+
return Ee = function(g, D) {
|
|
936
936
|
var v = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
937
937
|
function d(x) {
|
|
938
938
|
var P = x && (v && x[v] || x[m]);
|
|
@@ -963,14 +963,14 @@ function Ut() {
|
|
|
963
963
|
function T(x, P) {
|
|
964
964
|
return x === P ? x !== 0 || 1 / x === 1 / P : x !== x && P !== P;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function h(x, P) {
|
|
967
967
|
this.message = x, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
|
|
968
968
|
}
|
|
969
|
-
|
|
969
|
+
h.prototype = Error.prototype;
|
|
970
970
|
function b(x) {
|
|
971
971
|
if (process.env.NODE_ENV !== "production")
|
|
972
972
|
var P = {}, j = 0;
|
|
973
|
-
function O(A,
|
|
973
|
+
function O(A, I, k, L, U, q, Z) {
|
|
974
974
|
if (L = L || y, q = q || k, Z !== t) {
|
|
975
975
|
if (D) {
|
|
976
976
|
var E = new Error(
|
|
@@ -980,23 +980,23 @@ function Ut() {
|
|
|
980
980
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
981
981
|
var te = L + ":" + k;
|
|
982
982
|
!P[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
983
|
-
j < 3 && (
|
|
983
|
+
j < 3 && (o(
|
|
984
984
|
"You are manually calling a React.PropTypes validation function for the `" + q + "` 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."
|
|
985
985
|
), P[te] = !0, j++);
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
return
|
|
988
|
+
return I[k] == null ? A ? I[k] === null ? new h("The " + U + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new h("The " + U + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(I, k, L, U, q);
|
|
989
989
|
}
|
|
990
|
-
var
|
|
991
|
-
return
|
|
990
|
+
var W = O.bind(null, !1);
|
|
991
|
+
return W.isRequired = O.bind(null, !0), W;
|
|
992
992
|
}
|
|
993
993
|
function C(x) {
|
|
994
|
-
function P(j, O,
|
|
994
|
+
function P(j, O, W, A, I, k) {
|
|
995
995
|
var L = j[O], U = H(L);
|
|
996
996
|
if (U !== x) {
|
|
997
997
|
var q = ee(L);
|
|
998
|
-
return new
|
|
999
|
-
"Invalid " + A + " `" +
|
|
998
|
+
return new h(
|
|
999
|
+
"Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
|
|
1000
1000
|
{ expectedType: x }
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
@@ -1008,16 +1008,16 @@ function Ut() {
|
|
|
1008
1008
|
return b(c);
|
|
1009
1009
|
}
|
|
1010
1010
|
function w(x) {
|
|
1011
|
-
function P(j, O,
|
|
1011
|
+
function P(j, O, W, A, I) {
|
|
1012
1012
|
if (typeof x != "function")
|
|
1013
|
-
return new
|
|
1013
|
+
return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
1014
1014
|
var k = j[O];
|
|
1015
1015
|
if (!Array.isArray(k)) {
|
|
1016
1016
|
var L = H(k);
|
|
1017
|
-
return new
|
|
1017
|
+
return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
|
|
1018
1018
|
}
|
|
1019
1019
|
for (var U = 0; U < k.length; U++) {
|
|
1020
|
-
var q = x(k, U,
|
|
1020
|
+
var q = x(k, U, W, A, I + "[" + U + "]", t);
|
|
1021
1021
|
if (q instanceof Error)
|
|
1022
1022
|
return q;
|
|
1023
1023
|
}
|
|
@@ -1026,32 +1026,32 @@ function Ut() {
|
|
|
1026
1026
|
return b(P);
|
|
1027
1027
|
}
|
|
1028
1028
|
function S() {
|
|
1029
|
-
function x(P, j, O,
|
|
1030
|
-
var
|
|
1031
|
-
if (!
|
|
1032
|
-
var k = H(
|
|
1033
|
-
return new
|
|
1029
|
+
function x(P, j, O, W, A) {
|
|
1030
|
+
var I = P[j];
|
|
1031
|
+
if (!g(I)) {
|
|
1032
|
+
var k = H(I);
|
|
1033
|
+
return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1034
1034
|
}
|
|
1035
1035
|
return null;
|
|
1036
1036
|
}
|
|
1037
1037
|
return b(x);
|
|
1038
1038
|
}
|
|
1039
1039
|
function l() {
|
|
1040
|
-
function x(P, j, O,
|
|
1041
|
-
var
|
|
1042
|
-
if (!e.isValidElementType(
|
|
1043
|
-
var k = H(
|
|
1044
|
-
return new
|
|
1040
|
+
function x(P, j, O, W, A) {
|
|
1041
|
+
var I = P[j];
|
|
1042
|
+
if (!e.isValidElementType(I)) {
|
|
1043
|
+
var k = H(I);
|
|
1044
|
+
return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1045
1045
|
}
|
|
1046
1046
|
return null;
|
|
1047
1047
|
}
|
|
1048
1048
|
return b(x);
|
|
1049
1049
|
}
|
|
1050
1050
|
function M(x) {
|
|
1051
|
-
function P(j, O,
|
|
1051
|
+
function P(j, O, W, A, I) {
|
|
1052
1052
|
if (!(j[O] instanceof x)) {
|
|
1053
1053
|
var k = x.name || y, L = le(j[O]);
|
|
1054
|
-
return new
|
|
1054
|
+
return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + k + "`."));
|
|
1055
1055
|
}
|
|
1056
1056
|
return null;
|
|
1057
1057
|
}
|
|
@@ -1059,10 +1059,10 @@ function Ut() {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function a(x) {
|
|
1061
1061
|
if (!Array.isArray(x))
|
|
1062
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
1062
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1063
1063
|
"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])."
|
|
1064
|
-
) :
|
|
1065
|
-
function P(j, O,
|
|
1064
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
1065
|
+
function P(j, O, W, A, I) {
|
|
1066
1066
|
for (var k = j[O], L = 0; L < x.length; L++)
|
|
1067
1067
|
if (T(k, x[L]))
|
|
1068
1068
|
return null;
|
|
@@ -1070,20 +1070,20 @@ function Ut() {
|
|
|
1070
1070
|
var te = ee(E);
|
|
1071
1071
|
return te === "symbol" ? String(E) : E;
|
|
1072
1072
|
});
|
|
1073
|
-
return new
|
|
1073
|
+
return new h("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + U + "."));
|
|
1074
1074
|
}
|
|
1075
1075
|
return b(P);
|
|
1076
1076
|
}
|
|
1077
1077
|
function f(x) {
|
|
1078
|
-
function P(j, O,
|
|
1078
|
+
function P(j, O, W, A, I) {
|
|
1079
1079
|
if (typeof x != "function")
|
|
1080
|
-
return new
|
|
1080
|
+
return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
1081
1081
|
var k = j[O], L = H(k);
|
|
1082
1082
|
if (L !== "object")
|
|
1083
|
-
return new
|
|
1083
|
+
return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
|
|
1084
1084
|
for (var U in k)
|
|
1085
|
-
if (
|
|
1086
|
-
var q = x(k, U,
|
|
1085
|
+
if (r(k, U)) {
|
|
1086
|
+
var q = x(k, U, W, A, I + "." + U, t);
|
|
1087
1087
|
if (q instanceof Error)
|
|
1088
1088
|
return q;
|
|
1089
1089
|
}
|
|
@@ -1093,47 +1093,47 @@ function Ut() {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
function u(x) {
|
|
1095
1095
|
if (!Array.isArray(x))
|
|
1096
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1096
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
1097
1097
|
for (var P = 0; P < x.length; P++) {
|
|
1098
1098
|
var j = x[P];
|
|
1099
1099
|
if (typeof j != "function")
|
|
1100
|
-
return
|
|
1100
|
+
return o(
|
|
1101
1101
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + P + "."
|
|
1102
1102
|
), c;
|
|
1103
1103
|
}
|
|
1104
|
-
function O(
|
|
1104
|
+
function O(W, A, I, k, L) {
|
|
1105
1105
|
for (var U = [], q = 0; q < x.length; q++) {
|
|
1106
|
-
var Z = x[q], E = Z(
|
|
1106
|
+
var Z = x[q], E = Z(W, A, I, k, L, t);
|
|
1107
1107
|
if (E == null)
|
|
1108
1108
|
return null;
|
|
1109
|
-
E.data &&
|
|
1109
|
+
E.data && r(E.data, "expectedType") && U.push(E.data.expectedType);
|
|
1110
1110
|
}
|
|
1111
1111
|
var te = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
1112
|
-
return new
|
|
1112
|
+
return new h("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
|
|
1113
1113
|
}
|
|
1114
1114
|
return b(O);
|
|
1115
1115
|
}
|
|
1116
1116
|
function _() {
|
|
1117
|
-
function x(P, j, O,
|
|
1118
|
-
return V(P[j]) ? null : new
|
|
1117
|
+
function x(P, j, O, W, A) {
|
|
1118
|
+
return V(P[j]) ? null : new h("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1119
1119
|
}
|
|
1120
1120
|
return b(x);
|
|
1121
1121
|
}
|
|
1122
|
-
function R(x, P, j, O,
|
|
1123
|
-
return new
|
|
1124
|
-
(x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1122
|
+
function R(x, P, j, O, W) {
|
|
1123
|
+
return new h(
|
|
1124
|
+
(x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
1125
1125
|
);
|
|
1126
1126
|
}
|
|
1127
1127
|
function z(x) {
|
|
1128
|
-
function P(j, O,
|
|
1128
|
+
function P(j, O, W, A, I) {
|
|
1129
1129
|
var k = j[O], L = H(k);
|
|
1130
1130
|
if (L !== "object")
|
|
1131
|
-
return new
|
|
1131
|
+
return new h("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1132
1132
|
for (var U in x) {
|
|
1133
1133
|
var q = x[U];
|
|
1134
1134
|
if (typeof q != "function")
|
|
1135
|
-
return R(
|
|
1136
|
-
var Z = q(k, U,
|
|
1135
|
+
return R(W, A, I, U, ee(q));
|
|
1136
|
+
var Z = q(k, U, W, A, I + "." + U, t);
|
|
1137
1137
|
if (Z)
|
|
1138
1138
|
return Z;
|
|
1139
1139
|
}
|
|
@@ -1142,21 +1142,21 @@ function Ut() {
|
|
|
1142
1142
|
return b(P);
|
|
1143
1143
|
}
|
|
1144
1144
|
function X(x) {
|
|
1145
|
-
function P(j, O,
|
|
1145
|
+
function P(j, O, W, A, I) {
|
|
1146
1146
|
var k = j[O], L = H(k);
|
|
1147
1147
|
if (L !== "object")
|
|
1148
|
-
return new
|
|
1148
|
+
return new h("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1149
1149
|
var U = i({}, j[O], x);
|
|
1150
1150
|
for (var q in U) {
|
|
1151
1151
|
var Z = x[q];
|
|
1152
|
-
if (
|
|
1153
|
-
return R(
|
|
1152
|
+
if (r(x, q) && typeof Z != "function")
|
|
1153
|
+
return R(W, A, I, q, ee(Z));
|
|
1154
1154
|
if (!Z)
|
|
1155
|
-
return new
|
|
1156
|
-
"Invalid " + A + " `" +
|
|
1155
|
+
return new h(
|
|
1156
|
+
"Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
|
|
1157
1157
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1158
1158
|
);
|
|
1159
|
-
var E = Z(k, q,
|
|
1159
|
+
var E = Z(k, q, W, A, I + "." + q, t);
|
|
1160
1160
|
if (E)
|
|
1161
1161
|
return E;
|
|
1162
1162
|
}
|
|
@@ -1175,7 +1175,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1175
1175
|
case "object":
|
|
1176
1176
|
if (Array.isArray(x))
|
|
1177
1177
|
return x.every(V);
|
|
1178
|
-
if (x === null ||
|
|
1178
|
+
if (x === null || g(x))
|
|
1179
1179
|
return !0;
|
|
1180
1180
|
var P = d(x);
|
|
1181
1181
|
if (P) {
|
|
@@ -1186,8 +1186,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1186
1186
|
return !1;
|
|
1187
1187
|
} else
|
|
1188
1188
|
for (; !(O = j.next()).done; ) {
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1189
|
+
var W = O.value;
|
|
1190
|
+
if (W && !V(W[1]))
|
|
1191
1191
|
return !1;
|
|
1192
1192
|
}
|
|
1193
1193
|
} else
|
|
@@ -1246,7 +1246,7 @@ function Ft() {
|
|
|
1246
1246
|
function t() {
|
|
1247
1247
|
}
|
|
1248
1248
|
return t.resetWarningCache = i, _e = function() {
|
|
1249
|
-
function
|
|
1249
|
+
function r(c, g, D, v, m, d) {
|
|
1250
1250
|
if (d !== e) {
|
|
1251
1251
|
var y = new Error(
|
|
1252
1252
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1254,25 +1254,25 @@ function Ft() {
|
|
|
1254
1254
|
throw y.name = "Invariant Violation", y;
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
|
|
1257
|
+
r.isRequired = r;
|
|
1258
1258
|
function s() {
|
|
1259
|
-
return
|
|
1260
|
-
}
|
|
1261
|
-
var
|
|
1262
|
-
array:
|
|
1263
|
-
bigint:
|
|
1264
|
-
bool:
|
|
1265
|
-
func:
|
|
1266
|
-
number:
|
|
1267
|
-
object:
|
|
1268
|
-
string:
|
|
1269
|
-
symbol:
|
|
1270
|
-
any:
|
|
1259
|
+
return r;
|
|
1260
|
+
}
|
|
1261
|
+
var o = {
|
|
1262
|
+
array: r,
|
|
1263
|
+
bigint: r,
|
|
1264
|
+
bool: r,
|
|
1265
|
+
func: r,
|
|
1266
|
+
number: r,
|
|
1267
|
+
object: r,
|
|
1268
|
+
string: r,
|
|
1269
|
+
symbol: r,
|
|
1270
|
+
any: r,
|
|
1271
1271
|
arrayOf: s,
|
|
1272
|
-
element:
|
|
1273
|
-
elementType:
|
|
1272
|
+
element: r,
|
|
1273
|
+
elementType: r,
|
|
1274
1274
|
instanceOf: s,
|
|
1275
|
-
node:
|
|
1275
|
+
node: r,
|
|
1276
1276
|
objectOf: s,
|
|
1277
1277
|
oneOf: s,
|
|
1278
1278
|
oneOfType: s,
|
|
@@ -1281,7 +1281,7 @@ function Ft() {
|
|
|
1281
1281
|
checkPropTypes: t,
|
|
1282
1282
|
resetWarningCache: i
|
|
1283
1283
|
};
|
|
1284
|
-
return
|
|
1284
|
+
return o.PropTypes = o, o;
|
|
1285
1285
|
}, _e;
|
|
1286
1286
|
}
|
|
1287
1287
|
var Be;
|
|
@@ -1299,17 +1299,17 @@ function Bt() {
|
|
|
1299
1299
|
if (He) return me.exports;
|
|
1300
1300
|
He = 1;
|
|
1301
1301
|
function e(t) {
|
|
1302
|
-
var
|
|
1303
|
-
if (typeof t == "string" || typeof t == "number")
|
|
1302
|
+
var r, s, o = "";
|
|
1303
|
+
if (typeof t == "string" || typeof t == "number") o += t;
|
|
1304
1304
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1305
1305
|
var c = t.length;
|
|
1306
|
-
for (
|
|
1307
|
-
} else for (s in t) t[s] && (
|
|
1308
|
-
return
|
|
1306
|
+
for (r = 0; r < c; r++) t[r] && (s = e(t[r])) && (o && (o += " "), o += s);
|
|
1307
|
+
} else for (s in t) t[s] && (o && (o += " "), o += s);
|
|
1308
|
+
return o;
|
|
1309
1309
|
}
|
|
1310
1310
|
function i() {
|
|
1311
|
-
for (var t,
|
|
1312
|
-
return
|
|
1311
|
+
for (var t, r, s = 0, o = "", c = arguments.length; s < c; s++) (t = arguments[s]) && (r = e(t)) && (o && (o += " "), o += r);
|
|
1312
|
+
return o;
|
|
1313
1313
|
}
|
|
1314
1314
|
return me.exports = i, me.exports.clsx = i, me.exports;
|
|
1315
1315
|
}
|
|
@@ -1318,23 +1318,23 @@ function ve() {
|
|
|
1318
1318
|
if (ze) return re;
|
|
1319
1319
|
ze = 1, Object.defineProperty(re, "__esModule", {
|
|
1320
1320
|
value: !0
|
|
1321
|
-
}), re.dontSetMe = s, re.findInArray = e, re.int =
|
|
1322
|
-
function e(
|
|
1323
|
-
for (let
|
|
1324
|
-
if (c.apply(c, [
|
|
1321
|
+
}), re.dontSetMe = s, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
|
|
1322
|
+
function e(o, c) {
|
|
1323
|
+
for (let g = 0, D = o.length; g < D; g++)
|
|
1324
|
+
if (c.apply(c, [o[g], g, o])) return o[g];
|
|
1325
1325
|
}
|
|
1326
|
-
function i(
|
|
1327
|
-
return typeof
|
|
1326
|
+
function i(o) {
|
|
1327
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
|
|
1328
1328
|
}
|
|
1329
|
-
function t(
|
|
1330
|
-
return typeof
|
|
1329
|
+
function t(o) {
|
|
1330
|
+
return typeof o == "number" && !isNaN(o);
|
|
1331
1331
|
}
|
|
1332
|
-
function o
|
|
1333
|
-
return parseInt(
|
|
1332
|
+
function r(o) {
|
|
1333
|
+
return parseInt(o, 10);
|
|
1334
1334
|
}
|
|
1335
|
-
function s(
|
|
1336
|
-
if (
|
|
1337
|
-
return new Error(`Invalid prop ${c} passed to ${
|
|
1335
|
+
function s(o, c, g) {
|
|
1336
|
+
if (o[c])
|
|
1337
|
+
return new Error(`Invalid prop ${c} passed to ${g} - do not set this, set it on the child.`);
|
|
1338
1338
|
}
|
|
1339
1339
|
return re;
|
|
1340
1340
|
}
|
|
@@ -1343,37 +1343,37 @@ function Ht() {
|
|
|
1343
1343
|
if (Xe) return oe;
|
|
1344
1344
|
Xe = 1, Object.defineProperty(oe, "__esModule", {
|
|
1345
1345
|
value: !0
|
|
1346
|
-
}), oe.browserPrefixToKey = t, oe.browserPrefixToStyle =
|
|
1346
|
+
}), oe.browserPrefixToKey = t, oe.browserPrefixToStyle = r, oe.default = void 0, oe.getPrefix = i;
|
|
1347
1347
|
const e = ["Moz", "Webkit", "O", "ms"];
|
|
1348
1348
|
function i() {
|
|
1349
|
-
let
|
|
1349
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
1350
1350
|
if (typeof window > "u") return "";
|
|
1351
1351
|
const c = window.document?.documentElement?.style;
|
|
1352
|
-
if (!c ||
|
|
1353
|
-
for (let
|
|
1354
|
-
if (t(
|
|
1352
|
+
if (!c || o in c) return "";
|
|
1353
|
+
for (let g = 0; g < e.length; g++)
|
|
1354
|
+
if (t(o, e[g]) in c) return e[g];
|
|
1355
1355
|
return "";
|
|
1356
1356
|
}
|
|
1357
|
-
function t(
|
|
1358
|
-
return c ? `${c}${s(
|
|
1357
|
+
function t(o, c) {
|
|
1358
|
+
return c ? `${c}${s(o)}` : o;
|
|
1359
1359
|
}
|
|
1360
|
-
function o
|
|
1361
|
-
return c ? `-${c.toLowerCase()}-${
|
|
1360
|
+
function r(o, c) {
|
|
1361
|
+
return c ? `-${c.toLowerCase()}-${o}` : o;
|
|
1362
1362
|
}
|
|
1363
|
-
function s(
|
|
1364
|
-
let c = "",
|
|
1365
|
-
for (let D = 0; D <
|
|
1366
|
-
|
|
1363
|
+
function s(o) {
|
|
1364
|
+
let c = "", g = !0;
|
|
1365
|
+
for (let D = 0; D < o.length; D++)
|
|
1366
|
+
g ? (c += o[D].toUpperCase(), g = !1) : o[D] === "-" ? g = !0 : c += o[D];
|
|
1367
1367
|
return c;
|
|
1368
1368
|
}
|
|
1369
1369
|
return oe.default = i(), oe;
|
|
1370
1370
|
}
|
|
1371
1371
|
var Ve;
|
|
1372
|
-
function
|
|
1372
|
+
function We() {
|
|
1373
1373
|
if (Ve) return F;
|
|
1374
1374
|
Ve = 1, Object.defineProperty(F, "__esModule", {
|
|
1375
1375
|
value: !0
|
|
1376
|
-
}), F.addClassName = l, F.addEvent = c, F.addUserSelectStyles = N, F.createCSSTransform = p, F.createSVGTransform = T, F.getTouch = b, F.getTouchIdentifier = C, F.getTranslation =
|
|
1376
|
+
}), F.addClassName = l, F.addEvent = c, F.addUserSelectStyles = N, F.createCSSTransform = p, F.createSVGTransform = T, F.getTouch = b, F.getTouchIdentifier = C, F.getTranslation = h, F.innerHeight = m, F.innerWidth = d, F.matchesSelector = s, F.matchesSelectorAndParentsTo = o, F.offsetXYFromParent = y, F.outerHeight = D, F.outerWidth = v, F.removeClassName = M, F.removeEvent = g, F.scheduleRemoveUserSelectStyles = w;
|
|
1377
1377
|
var e = ve(), i = t(Ht());
|
|
1378
1378
|
function t(a, f) {
|
|
1379
1379
|
if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
@@ -1389,13 +1389,13 @@ function Ie() {
|
|
|
1389
1389
|
return Q;
|
|
1390
1390
|
})(a, f);
|
|
1391
1391
|
}
|
|
1392
|
-
let
|
|
1392
|
+
let r = "";
|
|
1393
1393
|
function s(a, f) {
|
|
1394
|
-
return
|
|
1394
|
+
return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(u) {
|
|
1395
1395
|
return (0, e.isFunction)(a[u]);
|
|
1396
|
-
})), (0, e.isFunction)(a[
|
|
1396
|
+
})), (0, e.isFunction)(a[r]) ? a[r](f) : !1;
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function o(a, f, u) {
|
|
1399
1399
|
let _ = a;
|
|
1400
1400
|
do {
|
|
1401
1401
|
if (s(_, f)) return !0;
|
|
@@ -1412,7 +1412,7 @@ function Ie() {
|
|
|
1412
1412
|
};
|
|
1413
1413
|
a.addEventListener ? a.addEventListener(f, u, R) : a.attachEvent ? a.attachEvent("on" + f, u) : a["on" + f] = u;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function g(a, f, u, _) {
|
|
1416
1416
|
if (!a) return;
|
|
1417
1417
|
const R = {
|
|
1418
1418
|
capture: !0,
|
|
@@ -1451,15 +1451,15 @@ function Ie() {
|
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
1453
|
function p(a, f) {
|
|
1454
|
-
const u =
|
|
1454
|
+
const u = h(a, f, "px");
|
|
1455
1455
|
return {
|
|
1456
1456
|
[(0, i.browserPrefixToKey)("transform", i.default)]: u
|
|
1457
1457
|
};
|
|
1458
1458
|
}
|
|
1459
1459
|
function T(a, f) {
|
|
1460
|
-
return
|
|
1460
|
+
return h(a, f, "");
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function h(a, f, u) {
|
|
1463
1463
|
let {
|
|
1464
1464
|
x: _,
|
|
1465
1465
|
y: R
|
|
@@ -1514,52 +1514,52 @@ function ft() {
|
|
|
1514
1514
|
if (Ge) return ne;
|
|
1515
1515
|
Ge = 1, Object.defineProperty(ne, "__esModule", {
|
|
1516
1516
|
value: !0
|
|
1517
|
-
}), ne.canDragX = s, ne.canDragY =
|
|
1518
|
-
var e = ve(), i =
|
|
1517
|
+
}), ne.canDragX = s, ne.canDragY = o, ne.createCoreData = g, ne.createDraggableData = D, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
|
|
1518
|
+
var e = ve(), i = We();
|
|
1519
1519
|
function t(d, y, p) {
|
|
1520
1520
|
if (!d.props.bounds) return [y, p];
|
|
1521
1521
|
let {
|
|
1522
1522
|
bounds: T
|
|
1523
1523
|
} = d.props;
|
|
1524
1524
|
T = typeof T == "string" ? T : v(T);
|
|
1525
|
-
const
|
|
1525
|
+
const h = m(d);
|
|
1526
1526
|
if (typeof T == "string") {
|
|
1527
1527
|
const {
|
|
1528
1528
|
ownerDocument: b
|
|
1529
|
-
} =
|
|
1529
|
+
} = h, C = b.defaultView;
|
|
1530
1530
|
let N;
|
|
1531
|
-
if (T === "parent" ? N =
|
|
1531
|
+
if (T === "parent" ? N = h.parentNode : N = h.getRootNode().querySelector(T), !(N instanceof C.HTMLElement))
|
|
1532
1532
|
throw new Error('Bounds selector "' + T + '" could not find an element.');
|
|
1533
|
-
const w = N, S = C.getComputedStyle(
|
|
1533
|
+
const w = N, S = C.getComputedStyle(h), l = C.getComputedStyle(w);
|
|
1534
1534
|
T = {
|
|
1535
|
-
left: -
|
|
1536
|
-
top: -
|
|
1537
|
-
right: (0, i.innerWidth)(w) - (0, i.outerWidth)(
|
|
1538
|
-
bottom: (0, i.innerHeight)(w) - (0, i.outerHeight)(
|
|
1535
|
+
left: -h.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(S.marginLeft),
|
|
1536
|
+
top: -h.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(S.marginTop),
|
|
1537
|
+
right: (0, i.innerWidth)(w) - (0, i.outerWidth)(h) - h.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(S.marginRight),
|
|
1538
|
+
bottom: (0, i.innerHeight)(w) - (0, i.outerHeight)(h) - h.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(S.marginBottom)
|
|
1539
1539
|
};
|
|
1540
1540
|
}
|
|
1541
1541
|
return (0, e.isNum)(T.right) && (y = Math.min(y, T.right)), (0, e.isNum)(T.bottom) && (p = Math.min(p, T.bottom)), (0, e.isNum)(T.left) && (y = Math.max(y, T.left)), (0, e.isNum)(T.top) && (p = Math.max(p, T.top)), [y, p];
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
const T = Math.round(y / d[0]) * d[0],
|
|
1545
|
-
return [T,
|
|
1543
|
+
function r(d, y, p) {
|
|
1544
|
+
const T = Math.round(y / d[0]) * d[0], h = Math.round(p / d[1]) * d[1];
|
|
1545
|
+
return [T, h];
|
|
1546
1546
|
}
|
|
1547
1547
|
function s(d) {
|
|
1548
1548
|
return d.props.axis === "both" || d.props.axis === "x";
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function o(d) {
|
|
1551
1551
|
return d.props.axis === "both" || d.props.axis === "y";
|
|
1552
1552
|
}
|
|
1553
1553
|
function c(d, y, p) {
|
|
1554
1554
|
const T = typeof y == "number" ? (0, i.getTouch)(d, y) : null;
|
|
1555
1555
|
if (typeof y == "number" && !T) return null;
|
|
1556
|
-
const
|
|
1556
|
+
const h = m(p), b = p.props.offsetParent || h.offsetParent || h.ownerDocument.body;
|
|
1557
1557
|
return (0, i.offsetXYFromParent)(T || d, b, p.props.scale);
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const T = !(0, e.isNum)(d.lastX),
|
|
1559
|
+
function g(d, y, p) {
|
|
1560
|
+
const T = !(0, e.isNum)(d.lastX), h = m(d);
|
|
1561
1561
|
return T ? {
|
|
1562
|
-
node:
|
|
1562
|
+
node: h,
|
|
1563
1563
|
deltaX: 0,
|
|
1564
1564
|
deltaY: 0,
|
|
1565
1565
|
lastX: y,
|
|
@@ -1567,7 +1567,7 @@ function ft() {
|
|
|
1567
1567
|
x: y,
|
|
1568
1568
|
y: p
|
|
1569
1569
|
} : {
|
|
1570
|
-
node:
|
|
1570
|
+
node: h,
|
|
1571
1571
|
deltaX: y - d.lastX,
|
|
1572
1572
|
deltaY: p - d.lastY,
|
|
1573
1573
|
lastX: d.lastX,
|
|
@@ -1620,11 +1620,11 @@ function zt() {
|
|
|
1620
1620
|
Je = 1, Object.defineProperty(ue, "__esModule", {
|
|
1621
1621
|
value: !0
|
|
1622
1622
|
}), ue.default = void 0;
|
|
1623
|
-
var e = D(be), i =
|
|
1624
|
-
function h
|
|
1625
|
-
return
|
|
1623
|
+
var e = D(be), i = g(/* @__PURE__ */ ut()), t = g(ot), r = We(), s = ft(), o = ve(), c = g(ht());
|
|
1624
|
+
function g(h) {
|
|
1625
|
+
return h && h.__esModule ? h : { default: h };
|
|
1626
1626
|
}
|
|
1627
|
-
function D(
|
|
1627
|
+
function D(h, b) {
|
|
1628
1628
|
if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
1629
1629
|
return (D = function(w, S) {
|
|
1630
1630
|
if (!S && w && w.__esModule) return w;
|
|
@@ -1636,24 +1636,24 @@ function zt() {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
for (const f in w) f !== "default" && {}.hasOwnProperty.call(w, f) && ((M = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(w, f)) && (M.get || M.set) ? l(a, f, M) : a[f] = w[f]);
|
|
1638
1638
|
return a;
|
|
1639
|
-
})(
|
|
1639
|
+
})(h, b);
|
|
1640
1640
|
}
|
|
1641
|
-
function v(
|
|
1642
|
-
return (b = m(b)) in
|
|
1641
|
+
function v(h, b, C) {
|
|
1642
|
+
return (b = m(b)) in h ? Object.defineProperty(h, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : h[b] = C, h;
|
|
1643
1643
|
}
|
|
1644
|
-
function m(
|
|
1645
|
-
var b = d(
|
|
1644
|
+
function m(h) {
|
|
1645
|
+
var b = d(h, "string");
|
|
1646
1646
|
return typeof b == "symbol" ? b : b + "";
|
|
1647
1647
|
}
|
|
1648
|
-
function d(
|
|
1649
|
-
if (typeof
|
|
1650
|
-
var C =
|
|
1648
|
+
function d(h, b) {
|
|
1649
|
+
if (typeof h != "object" || !h) return h;
|
|
1650
|
+
var C = h[Symbol.toPrimitive];
|
|
1651
1651
|
if (C !== void 0) {
|
|
1652
|
-
var N = C.call(
|
|
1652
|
+
var N = C.call(h, b);
|
|
1653
1653
|
if (typeof N != "object") return N;
|
|
1654
1654
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1655
1655
|
}
|
|
1656
|
-
return (b === "string" ? String : Number)(
|
|
1656
|
+
return (b === "string" ? String : Number)(h);
|
|
1657
1657
|
}
|
|
1658
1658
|
const y = {
|
|
1659
1659
|
touch: {
|
|
@@ -1677,10 +1677,10 @@ function zt() {
|
|
|
1677
1677
|
const {
|
|
1678
1678
|
ownerDocument: N
|
|
1679
1679
|
} = C;
|
|
1680
|
-
if (this.props.disabled || !(b.target instanceof N.defaultView.Node) || this.props.handle && !(0,
|
|
1680
|
+
if (this.props.disabled || !(b.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, C))
|
|
1681
1681
|
return;
|
|
1682
1682
|
b.type === "touchstart" && !this.props.allowMobileScroll && b.preventDefault();
|
|
1683
|
-
const w = (0,
|
|
1683
|
+
const w = (0, r.getTouchIdentifier)(b);
|
|
1684
1684
|
this.touchIdentifier = w;
|
|
1685
1685
|
const S = (0, s.getControlPosition)(b, w, this);
|
|
1686
1686
|
if (S == null) return;
|
|
@@ -1688,7 +1688,7 @@ function zt() {
|
|
|
1688
1688
|
x: l,
|
|
1689
1689
|
y: M
|
|
1690
1690
|
} = S, a = (0, s.createCoreData)(this, l, M);
|
|
1691
|
-
(0, c.default)("DraggableCore: handleDragStart: %j", a), (0, c.default)("calling", this.props.onStart), !(this.props.onStart(b, a) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0,
|
|
1691
|
+
(0, c.default)("DraggableCore: handleDragStart: %j", a), (0, c.default)("calling", this.props.onStart), !(this.props.onStart(b, a) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = l, this.lastY = M, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
|
|
1692
1692
|
}), v(this, "handleDrag", (b) => {
|
|
1693
1693
|
const C = (0, s.getControlPosition)(b, this.touchIdentifier, this);
|
|
1694
1694
|
if (C == null) return;
|
|
@@ -1727,13 +1727,13 @@ function zt() {
|
|
|
1727
1727
|
const S = (0, s.createCoreData)(this, N, w);
|
|
1728
1728
|
if (this.props.onStop(b, S) === !1 || this.mounted === !1) return !1;
|
|
1729
1729
|
const M = this.findDOMNode();
|
|
1730
|
-
M && this.props.enableUserSelectHack && (0,
|
|
1730
|
+
M && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(M.ownerDocument), (0, c.default)("DraggableCore: handleDragStop: %j", S), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, M && ((0, c.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(M.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(M.ownerDocument, p.stop, this.handleDragStop));
|
|
1731
1731
|
}), v(this, "onMouseDown", (b) => (p = y.mouse, this.handleDragStart(b))), v(this, "onMouseUp", (b) => (p = y.mouse, this.handleDragStop(b))), v(this, "onTouchStart", (b) => (p = y.touch, this.handleDragStart(b))), v(this, "onTouchEnd", (b) => (p = y.touch, this.handleDragStop(b)));
|
|
1732
1732
|
}
|
|
1733
1733
|
componentDidMount() {
|
|
1734
1734
|
this.mounted = !0;
|
|
1735
1735
|
const b = this.findDOMNode();
|
|
1736
|
-
b && (0,
|
|
1736
|
+
b && (0, r.addEvent)(b, y.touch.start, this.onTouchStart, {
|
|
1737
1737
|
passive: !1
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
@@ -1744,9 +1744,9 @@ function zt() {
|
|
|
1744
1744
|
const {
|
|
1745
1745
|
ownerDocument: C
|
|
1746
1746
|
} = b;
|
|
1747
|
-
(0,
|
|
1747
|
+
(0, r.removeEvent)(C, y.mouse.move, this.handleDrag), (0, r.removeEvent)(C, y.touch.move, this.handleDrag), (0, r.removeEvent)(C, y.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, y.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, y.touch.start, this.onTouchStart, {
|
|
1748
1748
|
passive: !1
|
|
1749
|
-
}), this.props.enableUserSelectHack && (0,
|
|
1749
|
+
}), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
@@ -1799,8 +1799,8 @@ function zt() {
|
|
|
1799
1799
|
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
1800
1800
|
* instead of using the parent node.
|
|
1801
1801
|
*/
|
|
1802
|
-
offsetParent: function(
|
|
1803
|
-
if (
|
|
1802
|
+
offsetParent: function(h, b) {
|
|
1803
|
+
if (h[b] && h[b].nodeType !== 1)
|
|
1804
1804
|
throw new Error("Draggable's offsetParent must be a DOM Node.");
|
|
1805
1805
|
},
|
|
1806
1806
|
/**
|
|
@@ -1894,9 +1894,9 @@ function zt() {
|
|
|
1894
1894
|
/**
|
|
1895
1895
|
* These properties should be defined on the child, not here.
|
|
1896
1896
|
*/
|
|
1897
|
-
className:
|
|
1898
|
-
style:
|
|
1899
|
-
transform:
|
|
1897
|
+
className: o.dontSetMe,
|
|
1898
|
+
style: o.dontSetMe,
|
|
1899
|
+
transform: o.dontSetMe
|
|
1900
1900
|
}), v(T, "defaultProps", {
|
|
1901
1901
|
allowAnyClick: !1,
|
|
1902
1902
|
// by default only accept left click
|
|
@@ -1925,7 +1925,7 @@ function Xt() {
|
|
|
1925
1925
|
return D.default;
|
|
1926
1926
|
}
|
|
1927
1927
|
}), e.default = void 0;
|
|
1928
|
-
var i = d(be), t = m(/* @__PURE__ */ ut()),
|
|
1928
|
+
var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), s = Bt(), o = We(), c = ft(), g = ve(), D = m(zt()), v = m(ht());
|
|
1929
1929
|
function m(C) {
|
|
1930
1930
|
return C && C.__esModule ? C : { default: C };
|
|
1931
1931
|
}
|
|
@@ -1956,10 +1956,10 @@ function Xt() {
|
|
|
1956
1956
|
return (N = T(N)) in C ? Object.defineProperty(C, N, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : C[N] = w, C;
|
|
1957
1957
|
}
|
|
1958
1958
|
function T(C) {
|
|
1959
|
-
var N =
|
|
1959
|
+
var N = h(C, "string");
|
|
1960
1960
|
return typeof N == "symbol" ? N : N + "";
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function h(C, N) {
|
|
1963
1963
|
if (typeof C != "object" || !C) return C;
|
|
1964
1964
|
var w = C[Symbol.toPrimitive];
|
|
1965
1965
|
if (w !== void 0) {
|
|
@@ -2063,7 +2063,7 @@ function Xt() {
|
|
|
2063
2063
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
2064
2064
|
// the underlying DOM node ourselves. See the README for more information.
|
|
2065
2065
|
findDOMNode() {
|
|
2066
|
-
return this.props?.nodeRef?.current ??
|
|
2066
|
+
return this.props?.nodeRef?.current ?? r.default.findDOMNode(this);
|
|
2067
2067
|
}
|
|
2068
2068
|
render() {
|
|
2069
2069
|
const {
|
|
@@ -2086,7 +2086,7 @@ function Xt() {
|
|
|
2086
2086
|
// Set top if vertical drag is enabled
|
|
2087
2087
|
y: (0, c.canDragY)(this) && H ? this.state.y : ee.y
|
|
2088
2088
|
};
|
|
2089
|
-
this.state.isElementSVG ? V = (0,
|
|
2089
|
+
this.state.isElementSVG ? V = (0, o.createSVGTransform)(ie, _) : X = (0, o.createCSSTransform)(ie, _);
|
|
2090
2090
|
const le = (0, s.clsx)(S.props.className || "", M, {
|
|
2091
2091
|
[a]: this.state.dragging,
|
|
2092
2092
|
[f]: this.state.dragged
|
|
@@ -2209,9 +2209,9 @@ function Xt() {
|
|
|
2209
2209
|
/**
|
|
2210
2210
|
* These properties should be defined on the child, not here.
|
|
2211
2211
|
*/
|
|
2212
|
-
className:
|
|
2213
|
-
style:
|
|
2214
|
-
transform:
|
|
2212
|
+
className: g.dontSetMe,
|
|
2213
|
+
style: g.dontSetMe,
|
|
2214
|
+
transform: g.dontSetMe
|
|
2215
2215
|
}), p(b, "defaultProps", {
|
|
2216
2216
|
...D.default.defaultProps,
|
|
2217
2217
|
axis: "both",
|
|
@@ -2239,7 +2239,7 @@ function Vt() {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
var Gt = Vt();
|
|
2241
2241
|
const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
|
|
2242
|
-
const
|
|
2242
|
+
const r = {
|
|
2243
2243
|
...{
|
|
2244
2244
|
// 1. Take it out of the document flow
|
|
2245
2245
|
position: "fixed",
|
|
@@ -2256,7 +2256,7 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
|
|
|
2256
2256
|
boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
|
|
2257
2257
|
},
|
|
2258
2258
|
...e.style || {}
|
|
2259
|
-
}, s = e.testId || "not-set",
|
|
2259
|
+
}, s = e.testId || "not-set", o = e.className || "panel", c = vt(null);
|
|
2260
2260
|
return (
|
|
2261
2261
|
// 3. Pass the internal ref to the Draggable component via 'nodeRef'
|
|
2262
2262
|
/* @__PURE__ */ n(
|
|
@@ -2274,7 +2274,7 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
|
|
|
2274
2274
|
e.onDraggingChange?.(!1);
|
|
2275
2275
|
}, 100);
|
|
2276
2276
|
},
|
|
2277
|
-
children: /* @__PURE__ */ n("div", { ref: c, className:
|
|
2277
|
+
children: /* @__PURE__ */ n("div", { ref: c, className: o, style: r, children: e.children })
|
|
2278
2278
|
}
|
|
2279
2279
|
)
|
|
2280
2280
|
);
|
|
@@ -2306,31 +2306,31 @@ const Pn = (e) => {
|
|
|
2306
2306
|
console.warn("showToast TODO", e);
|
|
2307
2307
|
}, Qt = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, $n = se((e, i) => {
|
|
2308
2308
|
let t = pt(Number(e.zoomScale || 0));
|
|
2309
|
-
const
|
|
2309
|
+
const r = e.responsiveGrid || !1, s = e.isEditing || !1, o = {
|
|
2310
2310
|
"--bwj-dashboard-transform-scale": t,
|
|
2311
2311
|
"--bwj-dashboard-add-cols": Qt(t)
|
|
2312
2312
|
}, c = G(
|
|
2313
2313
|
"dashboard-main-grid w-full",
|
|
2314
2314
|
s ? "editing" : "",
|
|
2315
|
-
|
|
2315
|
+
r ? "responsive-grid" : "",
|
|
2316
2316
|
`border border-dashed ${s ? "border-primary border-opacity-50" : "border-transparent"}`
|
|
2317
2317
|
);
|
|
2318
|
-
return /* @__PURE__ */ n("div", { className: c, style:
|
|
2318
|
+
return /* @__PURE__ */ n("div", { className: c, style: o, children: e.children });
|
|
2319
2319
|
}), Me = "size-5", en = (e, i) => {
|
|
2320
|
-
const t = e.hideTitle && !e.isEditing,
|
|
2320
|
+
const t = e.hideTitle && !e.isEditing, r = e.noBorder;
|
|
2321
2321
|
let s = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
|
|
2322
|
-
|
|
2323
|
-
const
|
|
2322
|
+
r ? s = `${s} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? s = `${s} ${e.borderCssClasses}` : s = `${s} border-card-invert border-opacity-20`, e.noShadow && (s = `${s} no-shadow`), e.noPadding && (s = `${s} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? s = `${s} ${e.backgroundCssClasses}` : s = `${s} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (s = `${s} ${e.size}-widget`);
|
|
2323
|
+
const o = () => {
|
|
2324
2324
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
|
|
2325
2325
|
}, c = (D) => {
|
|
2326
2326
|
e.onMoveClick && e.widgetKey && e.onMoveClick(D, e.widgetKey, e.parentWidgetKey);
|
|
2327
|
-
},
|
|
2327
|
+
}, g = G(
|
|
2328
2328
|
"widget-header",
|
|
2329
2329
|
t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
|
|
2330
2330
|
t ? "border-opacity-0" : "border-opacity-20"
|
|
2331
2331
|
);
|
|
2332
2332
|
return /* @__PURE__ */ $("div", { className: s, children: [
|
|
2333
|
-
/* @__PURE__ */ $("div", { className:
|
|
2333
|
+
/* @__PURE__ */ $("div", { className: g, children: [
|
|
2334
2334
|
/* @__PURE__ */ $("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
|
|
2335
2335
|
/* @__PURE__ */ $("h2", { className: "widget-title", children: [
|
|
2336
2336
|
e.title,
|
|
@@ -2378,7 +2378,7 @@ const Pn = (e) => {
|
|
|
2378
2378
|
placement: "top",
|
|
2379
2379
|
title: "Remove Widget"
|
|
2380
2380
|
},
|
|
2381
|
-
onClick: () =>
|
|
2381
|
+
onClick: () => o(),
|
|
2382
2382
|
children: /* @__PURE__ */ n(st, { className: Me })
|
|
2383
2383
|
}
|
|
2384
2384
|
)
|
|
@@ -2388,8 +2388,8 @@ const Pn = (e) => {
|
|
|
2388
2388
|
/* @__PURE__ */ n("div", { className: "widget-inner", children: e.children })
|
|
2389
2389
|
] });
|
|
2390
2390
|
}, tt = se(en), tn = (e, i) => {
|
|
2391
|
-
const t = (
|
|
2392
|
-
return !(
|
|
2391
|
+
const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), s = t(i).split(".").map(Number);
|
|
2392
|
+
return !(r[0] !== s[0] || r[1] < s[1]);
|
|
2393
2393
|
};
|
|
2394
2394
|
function nn(e) {
|
|
2395
2395
|
return /* @__PURE__ */ n("div", { className: "dashboard-widget", children: /* @__PURE__ */ $("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
|
|
@@ -2401,38 +2401,38 @@ function rn({
|
|
|
2401
2401
|
index: e,
|
|
2402
2402
|
maxIndex: i,
|
|
2403
2403
|
widgetKey: t,
|
|
2404
|
-
parentWidgetKey:
|
|
2404
|
+
parentWidgetKey: r,
|
|
2405
2405
|
targetContainerKey: s,
|
|
2406
|
-
childWidgetsConfig:
|
|
2406
|
+
childWidgetsConfig: o,
|
|
2407
2407
|
widgetCatalog: c,
|
|
2408
|
-
isEditing:
|
|
2408
|
+
isEditing: g,
|
|
2409
2409
|
// for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
|
|
2410
2410
|
extraProps: D,
|
|
2411
2411
|
onRemoveClick: v,
|
|
2412
2412
|
onMoveClick: m,
|
|
2413
2413
|
selectContainer: d
|
|
2414
2414
|
}) {
|
|
2415
|
-
const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t,
|
|
2416
|
-
if (!
|
|
2415
|
+
const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, h = c.get(T);
|
|
2416
|
+
if (!h)
|
|
2417
2417
|
return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
|
|
2418
2418
|
"Widget not found in catalog: ",
|
|
2419
2419
|
T
|
|
2420
2420
|
] }) });
|
|
2421
2421
|
let b = null, C = !1;
|
|
2422
|
-
const N = !!
|
|
2422
|
+
const N = !!h.isContainer, w = p ? nt(t) : "", S = N ? (o || []).filter((a) => a.parentWidgetKey === t) : [], l = {
|
|
2423
2423
|
index: e,
|
|
2424
2424
|
maxIndex: i,
|
|
2425
2425
|
widgetKey: t,
|
|
2426
|
-
parentWidgetKey:
|
|
2427
|
-
isEditing:
|
|
2426
|
+
parentWidgetKey: r,
|
|
2427
|
+
isEditing: g,
|
|
2428
2428
|
extraProps: D,
|
|
2429
|
-
title: p ? w :
|
|
2429
|
+
title: p ? w : h.title,
|
|
2430
2430
|
onRemoveClick: v,
|
|
2431
2431
|
onMoveClick: m
|
|
2432
2432
|
};
|
|
2433
|
-
if (
|
|
2434
|
-
if (!
|
|
2435
|
-
const a = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f =
|
|
2433
|
+
if (h.component ? (b = h.component, C = !1) : h.loader && (C = !0, b = rt(() => {
|
|
2434
|
+
if (!h) return null;
|
|
2435
|
+
const a = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = h.meta?.externalDependencies || [], u = f.find((_) => _.startsWith("react@"));
|
|
2436
2436
|
if (u) {
|
|
2437
2437
|
const _ = u.split("@")[1];
|
|
2438
2438
|
if (!tn(a, _))
|
|
@@ -2471,12 +2471,12 @@ function rn({
|
|
|
2471
2471
|
] }) })
|
|
2472
2472
|
}));
|
|
2473
2473
|
}
|
|
2474
|
-
if (
|
|
2475
|
-
return
|
|
2476
|
-
if (
|
|
2474
|
+
if (h.component)
|
|
2475
|
+
return h.component;
|
|
2476
|
+
if (h.loader) {
|
|
2477
2477
|
const _ = async () => {
|
|
2478
2478
|
try {
|
|
2479
|
-
return await
|
|
2479
|
+
return await h.loader();
|
|
2480
2480
|
} catch (R) {
|
|
2481
2481
|
return console.error(`CDN Load Failure for ${t}:`, R), {
|
|
2482
2482
|
default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
@@ -2486,7 +2486,7 @@ function rn({
|
|
|
2486
2486
|
'"'
|
|
2487
2487
|
] }),
|
|
2488
2488
|
/* @__PURE__ */ n("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
|
|
2489
|
-
/* @__PURE__ */ n("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(
|
|
2489
|
+
/* @__PURE__ */ n("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(h.meta || {}, null, 2) })
|
|
2490
2490
|
] }) })
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
@@ -2494,7 +2494,7 @@ function rn({
|
|
|
2494
2494
|
return be.lazy(_);
|
|
2495
2495
|
}
|
|
2496
2496
|
return null;
|
|
2497
|
-
}, [
|
|
2497
|
+
}, [h, t])), !b)
|
|
2498
2498
|
return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
|
|
2499
2499
|
"Widget definition incomplete: ",
|
|
2500
2500
|
T
|
|
@@ -2511,7 +2511,7 @@ function rn({
|
|
|
2511
2511
|
widgetKey: a.widgetKey,
|
|
2512
2512
|
parentWidgetKey: a.parentWidgetKey,
|
|
2513
2513
|
widgetCatalog: c,
|
|
2514
|
-
isEditing:
|
|
2514
|
+
isEditing: g,
|
|
2515
2515
|
extraProps: D,
|
|
2516
2516
|
onRemoveClick: v,
|
|
2517
2517
|
onMoveClick: m
|
|
@@ -2519,33 +2519,33 @@ function rn({
|
|
|
2519
2519
|
`${a.widgetKey}_${f}`
|
|
2520
2520
|
))
|
|
2521
2521
|
} : {};
|
|
2522
|
-
return C ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(nn, { title: `Loading ${
|
|
2522
|
+
return C ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(nn, { title: `Loading ${h.title}` }), children: /* @__PURE__ */ n(b, { ...l, ...M }) }) : /* @__PURE__ */ n(b, { ...l, ...M });
|
|
2523
2523
|
}
|
|
2524
2524
|
const ye = "size-5";
|
|
2525
|
-
function
|
|
2526
|
-
const i = e.highlight || !1, t = e.direction || "column",
|
|
2527
|
-
let
|
|
2525
|
+
function Ie(e) {
|
|
2526
|
+
const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, s = e.isEditing || !1;
|
|
2527
|
+
let g = i ? "border-transparent" : s && !r ? "border-card-invert" : "border-transparent";
|
|
2528
2528
|
const D = ["large", "xlarge"].includes(e.size || "");
|
|
2529
2529
|
let v = "";
|
|
2530
2530
|
["large", "xlarge"].indexOf(e.size || "") > -1 && (v = `${e.size}-widget`);
|
|
2531
2531
|
let m = "";
|
|
2532
|
-
t === "row" && !
|
|
2532
|
+
t === "row" && !r ? m = "min-h-48" : t === "column" && !r && (m = "min-h-96");
|
|
2533
2533
|
let d = G(
|
|
2534
2534
|
"dashboard-widget-container relative ",
|
|
2535
|
-
|
|
2535
|
+
r ? "" : "has-no-children",
|
|
2536
2536
|
s ? "editing" : "",
|
|
2537
2537
|
m,
|
|
2538
2538
|
v,
|
|
2539
2539
|
D ? "widget-container-grid" : "widget-container-flex",
|
|
2540
2540
|
`direction-${t}`,
|
|
2541
|
-
`border ${
|
|
2542
|
-
`${i ? "highlight-container" : ""} ${
|
|
2543
|
-
), y = `widget-container-header direction-${t} flex items-center border-1 ${
|
|
2541
|
+
`border ${g}`,
|
|
2542
|
+
`${i ? "highlight-container" : ""} ${g}`
|
|
2543
|
+
), y = `widget-container-header direction-${t} flex items-center border-1 ${g}`;
|
|
2544
2544
|
const p = () => {
|
|
2545
2545
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
|
|
2546
2546
|
}, T = (b) => {
|
|
2547
2547
|
e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
|
|
2548
|
-
},
|
|
2548
|
+
}, h = () => {
|
|
2549
2549
|
e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
|
|
2550
2550
|
};
|
|
2551
2551
|
return /* @__PURE__ */ $("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
|
|
@@ -2554,7 +2554,7 @@ function We(e) {
|
|
|
2554
2554
|
"div",
|
|
2555
2555
|
{
|
|
2556
2556
|
className: "widget-title-wrapper w-full flex whitespace-nowrap",
|
|
2557
|
-
onClick:
|
|
2557
|
+
onClick: h,
|
|
2558
2558
|
children: /* @__PURE__ */ n("span", { className: "text-sm font-semibold capitalize", children: e.title })
|
|
2559
2559
|
}
|
|
2560
2560
|
),
|
|
@@ -2569,9 +2569,9 @@ function We(e) {
|
|
|
2569
2569
|
placement: "top",
|
|
2570
2570
|
title: "Target this Container"
|
|
2571
2571
|
},
|
|
2572
|
-
onClick:
|
|
2572
|
+
onClick: h,
|
|
2573
2573
|
children: /* @__PURE__ */ n(
|
|
2574
|
-
|
|
2574
|
+
It,
|
|
2575
2575
|
{
|
|
2576
2576
|
className: `${ye} ${i ? "text-success" : "text-disabled"}`
|
|
2577
2577
|
}
|
|
@@ -2626,15 +2626,15 @@ function We(e) {
|
|
|
2626
2626
|
}
|
|
2627
2627
|
function Rn(e) {
|
|
2628
2628
|
const { direction: i, ...t } = e;
|
|
2629
|
-
return /* @__PURE__ */ n(
|
|
2629
|
+
return /* @__PURE__ */ n(Ie, { direction: "column", ...t });
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function Wn(e) {
|
|
2632
2632
|
const { size: i, ...t } = e;
|
|
2633
|
-
return /* @__PURE__ */ n(
|
|
2633
|
+
return /* @__PURE__ */ n(Ie, { size: "large", ...t });
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2635
|
+
function In(e) {
|
|
2636
2636
|
const { direction: i, ...t } = e;
|
|
2637
|
-
return /* @__PURE__ */ n(
|
|
2637
|
+
return /* @__PURE__ */ n(Ie, { direction: "row", ...t });
|
|
2638
2638
|
}
|
|
2639
2639
|
function Pe({
|
|
2640
2640
|
// widgetKey,
|
|
@@ -2642,25 +2642,25 @@ function Pe({
|
|
|
2642
2642
|
alreadyAdded: i,
|
|
2643
2643
|
addWidget: t
|
|
2644
2644
|
}) {
|
|
2645
|
-
const [
|
|
2645
|
+
const [r, s] = ae(!1), o = e.icon || Ot, c = e.name || "Unknown", g = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
|
|
2646
2646
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2647
2647
|
${v ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
|
|
2648
2648
|
`);
|
|
2649
2649
|
return /* @__PURE__ */ $("div", { className: m, style: { width: "calc(100% - 1rem)" }, onClick: () => {
|
|
2650
2650
|
v || t();
|
|
2651
2651
|
}, children: [
|
|
2652
|
-
/* @__PURE__ */ n(
|
|
2652
|
+
/* @__PURE__ */ n(o, { className: "" }),
|
|
2653
2653
|
/* @__PURE__ */ $("div", { className: "w-full", children: [
|
|
2654
2654
|
/* @__PURE__ */ $("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
|
|
2655
2655
|
/* @__PURE__ */ n("span", { className: "font-bold", children: c }),
|
|
2656
2656
|
/* @__PURE__ */ n("div", { className: "text-xs", children: v ? "(Added)" : "" })
|
|
2657
2657
|
] }),
|
|
2658
2658
|
/* @__PURE__ */ $("div", { className: "flex flex-col text-xs", children: [
|
|
2659
|
-
/* @__PURE__ */ n("div", { children:
|
|
2659
|
+
/* @__PURE__ */ n("div", { children: g }),
|
|
2660
2660
|
/* @__PURE__ */ n("div", { className: "mt-3 cursor-pointer", onClick: (p) => {
|
|
2661
|
-
p.stopPropagation(), p.preventDefault(), s(!
|
|
2661
|
+
p.stopPropagation(), p.preventDefault(), s(!r);
|
|
2662
2662
|
}, children: "Externals:" }),
|
|
2663
|
-
|
|
2663
|
+
r && /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((p, T) => /* @__PURE__ */ $("dd", { children: [
|
|
2664
2664
|
"- ",
|
|
2665
2665
|
p
|
|
2666
2666
|
] }, T)) })
|
|
@@ -2669,27 +2669,27 @@ function Pe({
|
|
|
2669
2669
|
] });
|
|
2670
2670
|
}
|
|
2671
2671
|
function on({ item: e, onSettingItemChanged: i }) {
|
|
2672
|
-
const t = e.name || "Unknown",
|
|
2672
|
+
const t = e.name || "Unknown", r = e.description || "---", s = G(`
|
|
2673
2673
|
flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
|
|
2674
|
-
`),
|
|
2675
|
-
const D =
|
|
2674
|
+
`), o = (g) => {
|
|
2675
|
+
const D = g.key;
|
|
2676
2676
|
if (["ArrowUp", "ArrowDown"].includes(D)) {
|
|
2677
|
-
|
|
2677
|
+
g.preventDefault();
|
|
2678
2678
|
const v = bt.incrementOrDecrementValue(
|
|
2679
2679
|
e,
|
|
2680
2680
|
D === "ArrowUp" ? 1 : -1
|
|
2681
2681
|
);
|
|
2682
2682
|
i(v);
|
|
2683
2683
|
}
|
|
2684
|
-
}, c = (
|
|
2684
|
+
}, c = (g) => {
|
|
2685
2685
|
i({
|
|
2686
2686
|
...e,
|
|
2687
|
-
value:
|
|
2687
|
+
value: g.target.value || ""
|
|
2688
2688
|
});
|
|
2689
2689
|
};
|
|
2690
2690
|
return /* @__PURE__ */ n("div", { className: s, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
|
|
2691
2691
|
/* @__PURE__ */ n("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ n("span", { className: "font-bold", children: t }) }),
|
|
2692
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ n("div", { children:
|
|
2692
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ n("div", { children: r }) }),
|
|
2693
2693
|
/* @__PURE__ */ $("div", { children: [
|
|
2694
2694
|
"Value:",
|
|
2695
2695
|
/* @__PURE__ */ n(
|
|
@@ -2700,28 +2700,28 @@ function on({ item: e, onSettingItemChanged: i }) {
|
|
|
2700
2700
|
className: "w-full",
|
|
2701
2701
|
value: e.value,
|
|
2702
2702
|
onChange: c,
|
|
2703
|
-
onKeyDown:
|
|
2703
|
+
onKeyDown: o
|
|
2704
2704
|
}
|
|
2705
2705
|
)
|
|
2706
2706
|
] })
|
|
2707
2707
|
] }) });
|
|
2708
2708
|
}
|
|
2709
2709
|
const $e = (e, i) => [
|
|
2710
|
-
...i.widgets.filter((
|
|
2711
|
-
...i.childWidgetsConfig.map((
|
|
2710
|
+
...i.widgets.filter((r) => r.indexOf("Container") === -1),
|
|
2711
|
+
...i.childWidgetsConfig.map((r) => r.widgetKey)
|
|
2712
2712
|
].includes(e);
|
|
2713
2713
|
function On(e) {
|
|
2714
2714
|
const {
|
|
2715
2715
|
currentDashboardConfig: i,
|
|
2716
2716
|
undoStatus: t,
|
|
2717
|
-
addContainer:
|
|
2717
|
+
addContainer: r,
|
|
2718
2718
|
onResetToDefaultDashboardClick: s,
|
|
2719
|
-
onUndoOrRedo:
|
|
2719
|
+
onUndoOrRedo: o,
|
|
2720
2720
|
onDoneClick: c
|
|
2721
|
-
} = e, [
|
|
2721
|
+
} = e, [g, D] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
|
|
2722
2722
|
widgetKey: u,
|
|
2723
2723
|
metaData: yt(u, e.widgetsCatalog)
|
|
2724
|
-
})),
|
|
2724
|
+
})), h = !!e.targetContainerKey, b = (u) => {
|
|
2725
2725
|
y(u.target.value);
|
|
2726
2726
|
}, C = (u) => {
|
|
2727
2727
|
const _ = d.trim().toLowerCase();
|
|
@@ -2733,7 +2733,7 @@ function On(e) {
|
|
|
2733
2733
|
"px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
|
|
2734
2734
|
u === v ? "text-primary border-primary" : ""
|
|
2735
2735
|
), S = (u) => {
|
|
2736
|
-
|
|
2736
|
+
h ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
|
|
2737
2737
|
}, l = (u) => {
|
|
2738
2738
|
const _ = (e.currentDashboardConfig.cssSettings || []).map((R) => R.key === u.key ? u : R);
|
|
2739
2739
|
e.onSettingItemsUpdated(_);
|
|
@@ -2763,13 +2763,13 @@ function On(e) {
|
|
|
2763
2763
|
children: /* @__PURE__ */ $("div", { className: "flex flex-col gap-2 p-2", children: [
|
|
2764
2764
|
/* @__PURE__ */ $("div", { className: "flex flex-row gap-2 justify-between", children: [
|
|
2765
2765
|
/* @__PURE__ */ $("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
|
|
2766
|
-
M ? /* @__PURE__ */ n(
|
|
2766
|
+
M ? /* @__PURE__ */ n(Wt, { className: "size-5" }) : /* @__PURE__ */ n(Rt, { className: "size-5" }),
|
|
2767
2767
|
/* @__PURE__ */ n(
|
|
2768
2768
|
"h2",
|
|
2769
2769
|
{
|
|
2770
2770
|
className: "flex-1 text-base margin-0 capitalize",
|
|
2771
|
-
title:
|
|
2772
|
-
children:
|
|
2771
|
+
title: h ? g : `Editing dashboard: ${i.dashboardName}`,
|
|
2772
|
+
children: g
|
|
2773
2773
|
}
|
|
2774
2774
|
)
|
|
2775
2775
|
] }),
|
|
@@ -2784,7 +2784,7 @@ function On(e) {
|
|
|
2784
2784
|
title: "Undo"
|
|
2785
2785
|
},
|
|
2786
2786
|
disabled: t.isUndoDisabled,
|
|
2787
|
-
onClick: () =>
|
|
2787
|
+
onClick: () => o("Undo"),
|
|
2788
2788
|
children: /* @__PURE__ */ n(Pt, { className: "size-5" })
|
|
2789
2789
|
}
|
|
2790
2790
|
),
|
|
@@ -2798,7 +2798,7 @@ function On(e) {
|
|
|
2798
2798
|
title: "Redo"
|
|
2799
2799
|
},
|
|
2800
2800
|
disabled: t.isRedoDisabled,
|
|
2801
|
-
onClick: () =>
|
|
2801
|
+
onClick: () => o("Redo"),
|
|
2802
2802
|
children: /* @__PURE__ */ n($t, { className: "size-5" })
|
|
2803
2803
|
}
|
|
2804
2804
|
),
|
|
@@ -2820,8 +2820,8 @@ function On(e) {
|
|
|
2820
2820
|
/* @__PURE__ */ $("div", { className: "flex border-b border-gray-200", children: [
|
|
2821
2821
|
/* @__PURE__ */ n("button", { onClick: () => m(0), className: w(0), children: "Widgets" }),
|
|
2822
2822
|
/* @__PURE__ */ n("button", { onClick: () => m(1), className: w(1), children: "Charts" }),
|
|
2823
|
-
!
|
|
2824
|
-
!
|
|
2823
|
+
!h && /* @__PURE__ */ n("button", { onClick: () => m(2), className: w(2), children: "Containers" }),
|
|
2824
|
+
!h && /* @__PURE__ */ n("button", { onClick: () => m(3), className: w(3), children: /* @__PURE__ */ n(_t, {}) })
|
|
2825
2825
|
] }),
|
|
2826
2826
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ n(
|
|
2827
2827
|
lt,
|
|
@@ -2865,17 +2865,17 @@ function On(e) {
|
|
|
2865
2865
|
},
|
|
2866
2866
|
u.widgetKey
|
|
2867
2867
|
)),
|
|
2868
|
-
!
|
|
2868
|
+
!h && v === 2 && T.filter((u) => u.metaData.categories.includes("Container")).map((u) => /* @__PURE__ */ n(
|
|
2869
2869
|
Pe,
|
|
2870
2870
|
{
|
|
2871
2871
|
widgetKey: u.widgetKey,
|
|
2872
2872
|
metaData: u.metaData,
|
|
2873
2873
|
alreadyAdded: $e(u.widgetKey, i),
|
|
2874
|
-
addWidget: () =>
|
|
2874
|
+
addWidget: () => r(u.widgetKey)
|
|
2875
2875
|
},
|
|
2876
2876
|
u.widgetKey
|
|
2877
2877
|
)),
|
|
2878
|
-
!
|
|
2878
|
+
!h && v === 3 && (i.cssSettings || []).filter(N).map((u) => /* @__PURE__ */ n(
|
|
2879
2879
|
on,
|
|
2880
2880
|
{
|
|
2881
2881
|
item: u,
|
|
@@ -2906,7 +2906,7 @@ export {
|
|
|
2906
2906
|
hn as AddIcon,
|
|
2907
2907
|
J as Button,
|
|
2908
2908
|
Ot as CircleQuestionMark,
|
|
2909
|
-
|
|
2909
|
+
It as CrosshairIcon,
|
|
2910
2910
|
$n as DashboardGrid,
|
|
2911
2911
|
tt as DashboardWidgetBase,
|
|
2912
2912
|
gn as DeleteIcon,
|
|
@@ -2914,7 +2914,7 @@ export {
|
|
|
2914
2914
|
rn as DynamicWidgetLoader,
|
|
2915
2915
|
mn as EditIcon,
|
|
2916
2916
|
pn as GridIcon,
|
|
2917
|
-
|
|
2917
|
+
Wt as HandGrabIcon,
|
|
2918
2918
|
Rt as HandIcon,
|
|
2919
2919
|
Sn as ListItem,
|
|
2920
2920
|
Dn as ListItemLeftChild,
|
|
@@ -2934,8 +2934,8 @@ export {
|
|
|
2934
2934
|
Mt as TimerResetIcon,
|
|
2935
2935
|
Pt as UndoIcon,
|
|
2936
2936
|
Rn as WidgetContainerColumn,
|
|
2937
|
-
|
|
2938
|
-
|
|
2937
|
+
Wn as WidgetContainerLarge,
|
|
2938
|
+
In as WidgetContainerRow,
|
|
2939
2939
|
On as WidgetsCatalogFlyout,
|
|
2940
2940
|
_n as WrapperColumnContent,
|
|
2941
2941
|
Mn as WrapperColumnContentListItem,
|