@tenorlab/react-dashboard 1.3.2 → 1.3.5

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