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