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