@factorialco/f0-react 1.297.0 → 1.298.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimental.d.ts +6 -1
- package/dist/experimental.js +7564 -7516
- package/dist/f0.d.ts +4 -0
- package/dist/f0.js +567 -656
- package/dist/{hooks-BspXl5nS.js → hooks-DhglcA_W.js} +19282 -19189
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as g, jsxs as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import './f0.css';const cr = [
|
|
1
|
+
import { S as Be, a as At, f as Ee, L as J, b as Tt, A as Lt, i as ae, c as Ye, d as Xe, E as Mt, g as he, e as Ht, h as Bt, C as Ft, j as Wt, k as V, l as Je, u as It, G as Gt, m as Ut, n as Fe, o as $t, p as Ze, q as jt, B as Qe, X as et, Y as Ne, r as Kt, s as tt, t as Vt, v as qt, w as Yt, x as Xt, y as Jt, z as Zt, D as Qt, F as ei, H as We, I as ti, J as Z, K as Ce, M as ii, N as si, P as ri, O as F, Q as ni, R as oi, T as ai, U as li, V as hi, W as di, Z as ci, _ as it, $ as ui, a0 as de, a1 as st, a2 as rt, a3 as fi, a4 as nt, a5 as ot, a6 as at, a7 as lt, a8 as gi, a9 as pi, aa as ht, ab as mi, ac as B, ad as vi, ae as dt, af as yi, ag as ct, ah as bi, ai as _i, aj as xi, ak as wi, al as Ei, am as Ci, an as Ri, ao as Ni, ap as ut, aq as q, ar as ft, as as zi, at as Di, au as Ie, av as Si, aw as gt, ax as Pi, ay as ki, az as Oi, aA as Ai, aB as Ti, aC as Li, aD as Mi, aE as Hi, aF as Bi, aG as Fi, aH as Wi, aI as Ii } from "./hooks-DhglcA_W.js";
|
|
2
|
+
import { bb as yr, bo as br, bx as _r, aJ as xr, aK as wr, aL as Er, aM as Cr, aN as Rr, aO as Nr, aP as zr, aQ as Dr, aS as Sr, aT as Pr, aU as kr, aV as Or, aW as Ar, aX as Tr, aY as Lr, bt as Mr, a_ as Hr, a$ as Br, b2 as Fr, b3 as Wr, b4 as Ir, b5 as Gr, b8 as Ur, b9 as $r, ba as jr, bd as Kr, b1 as Vr, bc as qr, b7 as Yr, bu as Xr, bn as Jr, bi as Zr, bl as Qr, bh as en, by as tn, bg as sn, bf as rn, aR as nn, aZ as on, b0 as an, b6 as ln, be as hn, bj as dn, bp as cn, bq as un, br as fn, bz as gn, bk as pn, bs as mn, bw as vn, bm as yn, bv as bn } from "./hooks-DhglcA_W.js";
|
|
3
|
+
import { jsx as g, jsxs as N, Fragment as be } from "react/jsx-runtime";
|
|
4
|
+
import S, { PureComponent as Gi, useState as L, forwardRef as $, createElement as Ge, useRef as Q, useImperativeHandle as pt, Children as Ui, createContext as _e, useContext as mt, useCallback as K, useEffect as ce, useLayoutEffect as Ue, useMemo as vt } from "react";
|
|
5
|
+
import { createPortal as $i } from "react-dom";
|
|
6
|
+
import { defaultTranslations as xn } from "./i18n-provider-defaults.js";
|
|
7
|
+
import './f0.css';const js = [
|
|
9
8
|
"person",
|
|
10
9
|
"team",
|
|
11
10
|
"company",
|
|
12
11
|
"file",
|
|
13
12
|
"flag"
|
|
14
13
|
];
|
|
15
|
-
function
|
|
14
|
+
function Y(a) {
|
|
16
15
|
"@babel/helpers - typeof";
|
|
17
|
-
return
|
|
16
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
18
17
|
return typeof e;
|
|
19
18
|
} : function(e) {
|
|
20
19
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
21
|
-
},
|
|
20
|
+
}, Y(a);
|
|
22
21
|
}
|
|
23
|
-
function
|
|
22
|
+
function ji(a, e) {
|
|
24
23
|
if (!(a instanceof e))
|
|
25
24
|
throw new TypeError("Cannot call a class as a function");
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function Ki(a, e) {
|
|
28
27
|
for (var t = 0; t < e.length; t++) {
|
|
29
28
|
var i = e[t];
|
|
30
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
29
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, _t(i.key), i);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
|
-
function
|
|
34
|
-
return e &&
|
|
32
|
+
function Vi(a, e, t) {
|
|
33
|
+
return e && Ki(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
35
34
|
}
|
|
36
|
-
function
|
|
37
|
-
return e = ue(e),
|
|
35
|
+
function qi(a, e, t) {
|
|
36
|
+
return e = ue(e), Yi(a, yt() ? Reflect.construct(e, t || [], ue(a).constructor) : e.apply(a, t));
|
|
38
37
|
}
|
|
39
|
-
function
|
|
40
|
-
if (e && (
|
|
38
|
+
function Yi(a, e) {
|
|
39
|
+
if (e && (Y(e) === "object" || typeof e == "function"))
|
|
41
40
|
return e;
|
|
42
41
|
if (e !== void 0)
|
|
43
42
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
44
|
-
return
|
|
43
|
+
return Xi(a);
|
|
45
44
|
}
|
|
46
|
-
function
|
|
45
|
+
function Xi(a) {
|
|
47
46
|
if (a === void 0)
|
|
48
47
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
49
48
|
return a;
|
|
50
49
|
}
|
|
51
|
-
function
|
|
50
|
+
function yt() {
|
|
52
51
|
try {
|
|
53
52
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
54
53
|
}));
|
|
55
54
|
} catch {
|
|
56
55
|
}
|
|
57
|
-
return (
|
|
56
|
+
return (yt = function() {
|
|
58
57
|
return !!a;
|
|
59
58
|
})();
|
|
60
59
|
}
|
|
@@ -63,52 +62,52 @@ function ue(a) {
|
|
|
63
62
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
64
63
|
}, ue(a);
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function Ji(a, e) {
|
|
67
66
|
if (typeof e != "function" && e !== null)
|
|
68
67
|
throw new TypeError("Super expression must either be null or a function");
|
|
69
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
68
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ze(a, e);
|
|
70
69
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
70
|
+
function ze(a, e) {
|
|
71
|
+
return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
73
72
|
return i.__proto__ = s, i;
|
|
74
|
-
},
|
|
73
|
+
}, ze(a, e);
|
|
75
74
|
}
|
|
76
|
-
function
|
|
77
|
-
return e =
|
|
75
|
+
function bt(a, e, t) {
|
|
76
|
+
return e = _t(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
var e =
|
|
81
|
-
return
|
|
78
|
+
function _t(a) {
|
|
79
|
+
var e = Zi(a, "string");
|
|
80
|
+
return Y(e) == "symbol" ? e : e + "";
|
|
82
81
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
82
|
+
function Zi(a, e) {
|
|
83
|
+
if (Y(a) != "object" || !a) return a;
|
|
85
84
|
var t = a[Symbol.toPrimitive];
|
|
86
85
|
if (t !== void 0) {
|
|
87
86
|
var i = t.call(a, e);
|
|
88
|
-
if (
|
|
87
|
+
if (Y(i) != "object") return i;
|
|
89
88
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
90
89
|
}
|
|
91
90
|
return String(a);
|
|
92
91
|
}
|
|
93
|
-
var
|
|
92
|
+
var xe = /* @__PURE__ */ function(a) {
|
|
94
93
|
function e() {
|
|
95
|
-
return
|
|
94
|
+
return ji(this, e), qi(this, e, arguments);
|
|
96
95
|
}
|
|
97
|
-
return
|
|
96
|
+
return Ji(e, a), Vi(e, [{
|
|
98
97
|
key: "render",
|
|
99
98
|
value: function() {
|
|
100
99
|
return null;
|
|
101
100
|
}
|
|
102
101
|
}]);
|
|
103
|
-
}(
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
}(S.Component);
|
|
103
|
+
bt(xe, "displayName", "ZAxis");
|
|
104
|
+
bt(xe, "defaultProps", {
|
|
106
105
|
zAxisId: 0,
|
|
107
106
|
range: [64, 64],
|
|
108
107
|
scale: "auto",
|
|
109
108
|
type: "number"
|
|
110
109
|
});
|
|
111
|
-
var
|
|
110
|
+
var Qi = ["option", "isActive"];
|
|
112
111
|
function ee() {
|
|
113
112
|
return ee = Object.assign ? Object.assign.bind() : function(a) {
|
|
114
113
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -119,9 +118,9 @@ function ee() {
|
|
|
119
118
|
return a;
|
|
120
119
|
}, ee.apply(this, arguments);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function es(a, e) {
|
|
123
122
|
if (a == null) return {};
|
|
124
|
-
var t =
|
|
123
|
+
var t = ts(a, e), i, s;
|
|
125
124
|
if (Object.getOwnPropertySymbols) {
|
|
126
125
|
var r = Object.getOwnPropertySymbols(a);
|
|
127
126
|
for (s = 0; s < r.length; s++)
|
|
@@ -129,7 +128,7 @@ function fs(a, e) {
|
|
|
129
128
|
}
|
|
130
129
|
return t;
|
|
131
130
|
}
|
|
132
|
-
function
|
|
131
|
+
function ts(a, e) {
|
|
133
132
|
if (a == null) return {};
|
|
134
133
|
var t = {};
|
|
135
134
|
for (var i in a)
|
|
@@ -139,27 +138,27 @@ function gs(a, e) {
|
|
|
139
138
|
}
|
|
140
139
|
return t;
|
|
141
140
|
}
|
|
142
|
-
function
|
|
143
|
-
var e = a.option, t = a.isActive, i =
|
|
144
|
-
return typeof e == "string" ? /* @__PURE__ */
|
|
145
|
-
option: /* @__PURE__ */
|
|
141
|
+
function is(a) {
|
|
142
|
+
var e = a.option, t = a.isActive, i = es(a, Qi);
|
|
143
|
+
return typeof e == "string" ? /* @__PURE__ */ S.createElement(Be, ee({
|
|
144
|
+
option: /* @__PURE__ */ S.createElement(At, ee({
|
|
146
145
|
type: e
|
|
147
146
|
}, i)),
|
|
148
147
|
isActive: t,
|
|
149
148
|
shapeType: "symbols"
|
|
150
|
-
}, i)) : /* @__PURE__ */
|
|
149
|
+
}, i)) : /* @__PURE__ */ S.createElement(Be, ee({
|
|
151
150
|
option: e,
|
|
152
151
|
isActive: t,
|
|
153
152
|
shapeType: "symbols"
|
|
154
153
|
}, i));
|
|
155
154
|
}
|
|
156
|
-
function
|
|
155
|
+
function X(a) {
|
|
157
156
|
"@babel/helpers - typeof";
|
|
158
|
-
return
|
|
157
|
+
return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
159
158
|
return typeof e;
|
|
160
159
|
} : function(e) {
|
|
161
160
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
162
|
-
},
|
|
161
|
+
}, X(a);
|
|
163
162
|
}
|
|
164
163
|
function te() {
|
|
165
164
|
return te = Object.assign ? Object.assign.bind() : function(a) {
|
|
@@ -171,7 +170,7 @@ function te() {
|
|
|
171
170
|
return a;
|
|
172
171
|
}, te.apply(this, arguments);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function $e(a, e) {
|
|
175
174
|
var t = Object.keys(a);
|
|
176
175
|
if (Object.getOwnPropertySymbols) {
|
|
177
176
|
var i = Object.getOwnPropertySymbols(a);
|
|
@@ -184,49 +183,49 @@ function qe(a, e) {
|
|
|
184
183
|
function T(a) {
|
|
185
184
|
for (var e = 1; e < arguments.length; e++) {
|
|
186
185
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
187
|
-
e % 2 ?
|
|
186
|
+
e % 2 ? $e(Object(t), !0).forEach(function(i) {
|
|
188
187
|
j(a, i, t[i]);
|
|
189
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
188
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : $e(Object(t)).forEach(function(i) {
|
|
190
189
|
Object.defineProperty(a, i, Object.getOwnPropertyDescriptor(t, i));
|
|
191
190
|
});
|
|
192
191
|
}
|
|
193
192
|
return a;
|
|
194
193
|
}
|
|
195
|
-
function
|
|
194
|
+
function ss(a, e) {
|
|
196
195
|
if (!(a instanceof e))
|
|
197
196
|
throw new TypeError("Cannot call a class as a function");
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function je(a, e) {
|
|
200
199
|
for (var t = 0; t < e.length; t++) {
|
|
201
200
|
var i = e[t];
|
|
202
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
201
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, wt(i.key), i);
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
|
-
function
|
|
206
|
-
return e &&
|
|
204
|
+
function rs(a, e, t) {
|
|
205
|
+
return e && je(a.prototype, e), t && je(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
207
206
|
}
|
|
208
|
-
function
|
|
209
|
-
return e = fe(e),
|
|
207
|
+
function ns(a, e, t) {
|
|
208
|
+
return e = fe(e), os(a, xt() ? Reflect.construct(e, t || [], fe(a).constructor) : e.apply(a, t));
|
|
210
209
|
}
|
|
211
|
-
function
|
|
212
|
-
if (e && (
|
|
210
|
+
function os(a, e) {
|
|
211
|
+
if (e && (X(e) === "object" || typeof e == "function"))
|
|
213
212
|
return e;
|
|
214
213
|
if (e !== void 0)
|
|
215
214
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
216
|
-
return
|
|
215
|
+
return as(a);
|
|
217
216
|
}
|
|
218
|
-
function
|
|
217
|
+
function as(a) {
|
|
219
218
|
if (a === void 0)
|
|
220
219
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
221
220
|
return a;
|
|
222
221
|
}
|
|
223
|
-
function
|
|
222
|
+
function xt() {
|
|
224
223
|
try {
|
|
225
224
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
226
225
|
}));
|
|
227
226
|
} catch {
|
|
228
227
|
}
|
|
229
|
-
return (
|
|
228
|
+
return (xt = function() {
|
|
230
229
|
return !!a;
|
|
231
230
|
})();
|
|
232
231
|
}
|
|
@@ -235,29 +234,29 @@ function fe(a) {
|
|
|
235
234
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
236
235
|
}, fe(a);
|
|
237
236
|
}
|
|
238
|
-
function
|
|
237
|
+
function ls(a, e) {
|
|
239
238
|
if (typeof e != "function" && e !== null)
|
|
240
239
|
throw new TypeError("Super expression must either be null or a function");
|
|
241
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
240
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && De(a, e);
|
|
242
241
|
}
|
|
243
|
-
function
|
|
244
|
-
return
|
|
242
|
+
function De(a, e) {
|
|
243
|
+
return De = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
245
244
|
return i.__proto__ = s, i;
|
|
246
|
-
},
|
|
245
|
+
}, De(a, e);
|
|
247
246
|
}
|
|
248
247
|
function j(a, e, t) {
|
|
249
|
-
return e =
|
|
248
|
+
return e = wt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
250
249
|
}
|
|
251
|
-
function
|
|
252
|
-
var e =
|
|
253
|
-
return
|
|
250
|
+
function wt(a) {
|
|
251
|
+
var e = hs(a, "string");
|
|
252
|
+
return X(e) == "symbol" ? e : e + "";
|
|
254
253
|
}
|
|
255
|
-
function
|
|
256
|
-
if (
|
|
254
|
+
function hs(a, e) {
|
|
255
|
+
if (X(a) != "object" || !a) return a;
|
|
257
256
|
var t = a[Symbol.toPrimitive];
|
|
258
257
|
if (t !== void 0) {
|
|
259
258
|
var i = t.call(a, e);
|
|
260
|
-
if (
|
|
259
|
+
if (X(i) != "object") return i;
|
|
261
260
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
262
261
|
}
|
|
263
262
|
return String(a);
|
|
@@ -265,10 +264,10 @@ function ws(a, e) {
|
|
|
265
264
|
var re = /* @__PURE__ */ function(a) {
|
|
266
265
|
function e() {
|
|
267
266
|
var t;
|
|
268
|
-
|
|
267
|
+
ss(this, e);
|
|
269
268
|
for (var i = arguments.length, s = new Array(i), r = 0; r < i; r++)
|
|
270
269
|
s[r] = arguments[r];
|
|
271
|
-
return t =
|
|
270
|
+
return t = ns(this, e, [].concat(s)), j(t, "state", {
|
|
272
271
|
isAnimationFinished: !1
|
|
273
272
|
}), j(t, "handleAnimationEnd", function() {
|
|
274
273
|
t.setState({
|
|
@@ -278,20 +277,20 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
278
277
|
t.setState({
|
|
279
278
|
isAnimationFinished: !1
|
|
280
279
|
});
|
|
281
|
-
}), j(t, "id",
|
|
280
|
+
}), j(t, "id", It("recharts-scatter-")), t;
|
|
282
281
|
}
|
|
283
|
-
return
|
|
282
|
+
return ls(e, a), rs(e, [{
|
|
284
283
|
key: "renderSymbolsStatically",
|
|
285
284
|
value: function(i) {
|
|
286
|
-
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c =
|
|
285
|
+
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Ee(this.props, !1);
|
|
287
286
|
return i.map(function(l, d) {
|
|
288
287
|
var f = h === d, p = f ? o : n, m = T(T({}, c), l);
|
|
289
|
-
return /* @__PURE__ */
|
|
288
|
+
return /* @__PURE__ */ S.createElement(J, te({
|
|
290
289
|
className: "recharts-scatter-symbol",
|
|
291
290
|
key: "symbol-".concat(l == null ? void 0 : l.cx, "-").concat(l == null ? void 0 : l.cy, "-").concat(l == null ? void 0 : l.size, "-").concat(d)
|
|
292
|
-
},
|
|
291
|
+
}, Tt(s.props, l, d), {
|
|
293
292
|
role: "img"
|
|
294
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ S.createElement(is, te({
|
|
295
294
|
option: p,
|
|
296
295
|
isActive: f,
|
|
297
296
|
key: "symbol-".concat(d)
|
|
@@ -302,7 +301,7 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
302
301
|
key: "renderSymbolsWithAnimation",
|
|
303
302
|
value: function() {
|
|
304
303
|
var i = this, s = this.props, r = s.points, n = s.isAnimationActive, o = s.animationBegin, h = s.animationDuration, c = s.animationEasing, l = s.animationId, d = this.state.prevPoints;
|
|
305
|
-
return /* @__PURE__ */
|
|
304
|
+
return /* @__PURE__ */ S.createElement(Lt, {
|
|
306
305
|
begin: o,
|
|
307
306
|
duration: h,
|
|
308
307
|
isActive: n,
|
|
@@ -327,19 +326,19 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
327
326
|
size: D(p)
|
|
328
327
|
});
|
|
329
328
|
}
|
|
330
|
-
var
|
|
329
|
+
var R = ae(0, v.size);
|
|
331
330
|
return T(T({}, v), {}, {
|
|
332
|
-
size:
|
|
331
|
+
size: R(p)
|
|
333
332
|
});
|
|
334
333
|
});
|
|
335
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ S.createElement(J, null, i.renderSymbolsStatically(m));
|
|
336
335
|
});
|
|
337
336
|
}
|
|
338
337
|
}, {
|
|
339
338
|
key: "renderSymbols",
|
|
340
339
|
value: function() {
|
|
341
340
|
var i = this.props, s = i.points, r = i.isAnimationActive, n = this.state.prevPoints;
|
|
342
|
-
return r && s && s.length && (!n || !
|
|
341
|
+
return r && s && s.length && (!n || !Ye(n, s)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(s);
|
|
343
342
|
}
|
|
344
343
|
}, {
|
|
345
344
|
key: "renderErrorBar",
|
|
@@ -347,10 +346,10 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
347
346
|
var i = this.props.isAnimationActive;
|
|
348
347
|
if (i && !this.state.isAnimationFinished)
|
|
349
348
|
return null;
|
|
350
|
-
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c =
|
|
349
|
+
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = Xe(h, Mt);
|
|
351
350
|
return c ? c.map(function(l, d) {
|
|
352
351
|
var f = l.props, p = f.direction, m = f.dataKey;
|
|
353
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ S.cloneElement(l, {
|
|
354
353
|
key: "".concat(p, "-").concat(m, "-").concat(r[d]),
|
|
355
354
|
data: r,
|
|
356
355
|
xAxis: n,
|
|
@@ -370,7 +369,7 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
370
369
|
}, {
|
|
371
370
|
key: "renderLine",
|
|
372
371
|
value: function() {
|
|
373
|
-
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h =
|
|
372
|
+
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h = Ee(this.props, !1), c = Ee(r, !1), l, d;
|
|
374
373
|
if (n === "joint")
|
|
375
374
|
l = s.map(function(E) {
|
|
376
375
|
return {
|
|
@@ -379,7 +378,7 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
379
378
|
};
|
|
380
379
|
});
|
|
381
380
|
else if (n === "fitting") {
|
|
382
|
-
var f =
|
|
381
|
+
var f = Ht(s), p = f.xmin, m = f.xmax, v = f.a, b = f.b, w = function(D) {
|
|
383
382
|
return v * D + b;
|
|
384
383
|
};
|
|
385
384
|
l = [{
|
|
@@ -396,9 +395,9 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
396
395
|
}, c), {}, {
|
|
397
396
|
points: l
|
|
398
397
|
});
|
|
399
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ S.isValidElement(r) ? d = /* @__PURE__ */ S.cloneElement(r, C) : Bt(r) ? d = r(C) : d = /* @__PURE__ */ S.createElement(Ft, te({}, C, {
|
|
400
399
|
type: o
|
|
401
|
-
})), /* @__PURE__ */
|
|
400
|
+
})), /* @__PURE__ */ S.createElement(J, {
|
|
402
401
|
className: "recharts-scatter-line",
|
|
403
402
|
key: "recharts-scatter-line"
|
|
404
403
|
}, d);
|
|
@@ -409,20 +408,20 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
409
408
|
var i = this.props, s = i.hide, r = i.points, n = i.line, o = i.className, h = i.xAxis, c = i.yAxis, l = i.left, d = i.top, f = i.width, p = i.height, m = i.id, v = i.isAnimationActive;
|
|
410
409
|
if (s || !r || !r.length)
|
|
411
410
|
return null;
|
|
412
|
-
var b = this.state.isAnimationFinished, w =
|
|
413
|
-
return /* @__PURE__ */
|
|
411
|
+
var b = this.state.isAnimationFinished, w = Wt("recharts-scatter", o), C = h && h.allowDataOverflow, E = c && c.allowDataOverflow, D = C || E, R = V(m) ? this.id : m;
|
|
412
|
+
return /* @__PURE__ */ S.createElement(J, {
|
|
414
413
|
className: w,
|
|
415
|
-
clipPath: D ? "url(#clipPath-".concat(
|
|
416
|
-
}, C || E ? /* @__PURE__ */
|
|
417
|
-
id: "clipPath-".concat(
|
|
418
|
-
}, /* @__PURE__ */
|
|
414
|
+
clipPath: D ? "url(#clipPath-".concat(R, ")") : null
|
|
415
|
+
}, C || E ? /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", {
|
|
416
|
+
id: "clipPath-".concat(R)
|
|
417
|
+
}, /* @__PURE__ */ S.createElement("rect", {
|
|
419
418
|
x: C ? l : l - f / 2,
|
|
420
419
|
y: E ? d : d - p / 2,
|
|
421
420
|
width: C ? f : f * 2,
|
|
422
421
|
height: E ? p : p * 2
|
|
423
|
-
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */
|
|
422
|
+
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ S.createElement(J, {
|
|
424
423
|
key: "recharts-scatter-symbols"
|
|
425
|
-
}, this.renderSymbols()), (!v || b) &&
|
|
424
|
+
}, this.renderSymbols()), (!v || b) && Je.renderCallByParent(this.props, r));
|
|
426
425
|
}
|
|
427
426
|
}], [{
|
|
428
427
|
key: "getDerivedStateFromProps",
|
|
@@ -436,7 +435,7 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
436
435
|
} : null;
|
|
437
436
|
}
|
|
438
437
|
}]);
|
|
439
|
-
}(
|
|
438
|
+
}(Gi);
|
|
440
439
|
j(re, "displayName", "Scatter");
|
|
441
440
|
j(re, "defaultProps", {
|
|
442
441
|
xAxisId: 0,
|
|
@@ -448,17 +447,17 @@ j(re, "defaultProps", {
|
|
|
448
447
|
data: [],
|
|
449
448
|
shape: "circle",
|
|
450
449
|
hide: !1,
|
|
451
|
-
isAnimationActive: !
|
|
450
|
+
isAnimationActive: !Gt.isSsr,
|
|
452
451
|
animationBegin: 0,
|
|
453
452
|
animationDuration: 400,
|
|
454
453
|
animationEasing: "linear"
|
|
455
454
|
});
|
|
456
455
|
j(re, "getComposedData", function(a) {
|
|
457
|
-
var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, h = a.offset, c = s.props.tooltipType, l =
|
|
458
|
-
var
|
|
456
|
+
var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, h = a.offset, c = s.props.tooltipType, l = Xe(s.props.children, Ut), d = V(e.dataKey) ? s.props.dataKey : e.dataKey, f = V(t.dataKey) ? s.props.dataKey : t.dataKey, p = i && i.dataKey, m = i ? i.range : xe.defaultProps.range, v = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, w = t.scale.bandwidth ? t.scale.bandwidth() : 0, C = r.map(function(E, D) {
|
|
457
|
+
var R = he(E, d), k = he(E, f), O = !V(p) && he(E, p) || "-", G = [{
|
|
459
458
|
name: V(e.dataKey) ? s.props.name : e.name || e.dataKey,
|
|
460
459
|
unit: e.unit || "",
|
|
461
|
-
value:
|
|
460
|
+
value: R,
|
|
462
461
|
payload: E,
|
|
463
462
|
dataKey: d,
|
|
464
463
|
type: c
|
|
@@ -478,41 +477,41 @@ j(re, "getComposedData", function(a) {
|
|
|
478
477
|
dataKey: p,
|
|
479
478
|
type: c
|
|
480
479
|
});
|
|
481
|
-
var
|
|
480
|
+
var M = Fe({
|
|
482
481
|
axis: e,
|
|
483
482
|
ticks: n,
|
|
484
483
|
bandSize: b,
|
|
485
484
|
entry: E,
|
|
486
485
|
index: D,
|
|
487
486
|
dataKey: d
|
|
488
|
-
}),
|
|
487
|
+
}), W = Fe({
|
|
489
488
|
axis: t,
|
|
490
489
|
ticks: o,
|
|
491
490
|
bandSize: w,
|
|
492
491
|
entry: E,
|
|
493
492
|
index: D,
|
|
494
493
|
dataKey: f
|
|
495
|
-
}),
|
|
494
|
+
}), x = O !== "-" ? i.scale(O) : v, z = Math.sqrt(Math.max(x, 0) / Math.PI);
|
|
496
495
|
return T(T({}, E), {}, {
|
|
497
|
-
cx:
|
|
498
|
-
cy:
|
|
499
|
-
x:
|
|
500
|
-
y:
|
|
496
|
+
cx: M,
|
|
497
|
+
cy: W,
|
|
498
|
+
x: M - z,
|
|
499
|
+
y: W - z,
|
|
501
500
|
xAxis: e,
|
|
502
501
|
yAxis: t,
|
|
503
502
|
zAxis: i,
|
|
504
503
|
width: 2 * z,
|
|
505
504
|
height: 2 * z,
|
|
506
|
-
size:
|
|
505
|
+
size: x,
|
|
507
506
|
node: {
|
|
508
|
-
x:
|
|
507
|
+
x: R,
|
|
509
508
|
y: k,
|
|
510
509
|
z: O
|
|
511
510
|
},
|
|
512
511
|
tooltipPayload: G,
|
|
513
512
|
tooltipPosition: {
|
|
514
|
-
x:
|
|
515
|
-
y:
|
|
513
|
+
x: M,
|
|
514
|
+
y: W
|
|
516
515
|
},
|
|
517
516
|
payload: E
|
|
518
517
|
}, l && l[D] && l[D].props);
|
|
@@ -521,22 +520,22 @@ j(re, "getComposedData", function(a) {
|
|
|
521
520
|
points: C
|
|
522
521
|
}, h);
|
|
523
522
|
});
|
|
524
|
-
var
|
|
523
|
+
var ds = $t({
|
|
525
524
|
chartName: "ComposedChart",
|
|
526
|
-
GraphicalChild: [
|
|
525
|
+
GraphicalChild: [Ze, jt, Qe, re],
|
|
527
526
|
axisComponents: [{
|
|
528
527
|
axisType: "xAxis",
|
|
529
|
-
AxisComp:
|
|
528
|
+
AxisComp: et
|
|
530
529
|
}, {
|
|
531
530
|
axisType: "yAxis",
|
|
532
|
-
AxisComp:
|
|
531
|
+
AxisComp: Ne
|
|
533
532
|
}, {
|
|
534
533
|
axisType: "zAxis",
|
|
535
|
-
AxisComp:
|
|
534
|
+
AxisComp: xe
|
|
536
535
|
}],
|
|
537
|
-
formatAxisMap:
|
|
536
|
+
formatAxisMap: Kt
|
|
538
537
|
});
|
|
539
|
-
const
|
|
538
|
+
const cs = (a) => {
|
|
540
539
|
const e = (t) => {
|
|
541
540
|
const { cx: i, cy: s, fill: r, payload: n } = t, o = () => {
|
|
542
541
|
if (!n) return "-";
|
|
@@ -560,16 +559,16 @@ const Cs = (a) => {
|
|
|
560
559
|
});
|
|
561
560
|
};
|
|
562
561
|
return e.displayName = `Scatter-${a}`, e;
|
|
563
|
-
},
|
|
562
|
+
}, us = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
|
|
564
563
|
hide: !0
|
|
565
564
|
}, label: s = !1, hideTooltip: r = !1, hideGrid: n = !1, aspect: o, legend: h, showValueUnderLabel: c = !1, bar: l, line: d, scatter: f, onClick: p }, m) => {
|
|
566
|
-
var O, G,
|
|
567
|
-
const v =
|
|
568
|
-
return g(
|
|
565
|
+
var O, G, M, W;
|
|
566
|
+
const v = Vt(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], w = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], C = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], E = [...b, ...w, ...C], D = Math.max(...v.flatMap((x) => E.map((z) => qt(i != null && i.tickFormatter ? i.tickFormatter(`${x[z]}`) : `${x[z]}`)))), R = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "left"), k = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "right");
|
|
567
|
+
return g(Yt, {
|
|
569
568
|
config: a,
|
|
570
569
|
ref: m,
|
|
571
570
|
aspect: o,
|
|
572
|
-
children:
|
|
571
|
+
children: N(ds, {
|
|
573
572
|
accessibilityLayer: !0,
|
|
574
573
|
data: v,
|
|
575
574
|
margin: {
|
|
@@ -579,53 +578,53 @@ const Cs = (a) => {
|
|
|
579
578
|
bottom: c ? 24 : 12
|
|
580
579
|
},
|
|
581
580
|
stackOffset: void 0,
|
|
582
|
-
onClick: (
|
|
583
|
-
if (!p || !
|
|
581
|
+
onClick: (x) => {
|
|
582
|
+
if (!p || !x.activeLabel || !x.activePayload)
|
|
584
583
|
return;
|
|
585
584
|
const z = {
|
|
586
|
-
label:
|
|
585
|
+
label: x.activeLabel,
|
|
587
586
|
values: {}
|
|
588
587
|
};
|
|
589
|
-
for (const ne of
|
|
588
|
+
for (const ne of x.activePayload)
|
|
590
589
|
z.values[ne.name] = ne.value;
|
|
591
590
|
p(z);
|
|
592
591
|
},
|
|
593
|
-
children: [!r && g(
|
|
594
|
-
...
|
|
595
|
-
content: g(
|
|
592
|
+
children: [!r && g(Xt, {
|
|
593
|
+
...Jt(),
|
|
594
|
+
content: g(Zt, {
|
|
596
595
|
yAxisFormatter: i.tickFormatter
|
|
597
596
|
})
|
|
598
|
-
}), !n && g(
|
|
599
|
-
...
|
|
600
|
-
}),
|
|
601
|
-
...
|
|
597
|
+
}), !n && g(Qt, {
|
|
598
|
+
...ei()
|
|
599
|
+
}), R.length > 0 && g(Ne, {
|
|
600
|
+
...We(i),
|
|
602
601
|
tick: !0,
|
|
603
|
-
width: i.width ?? D + 20 + (k.length > 0 && ((O =
|
|
604
|
-
hide: i.hide ||
|
|
605
|
-
label: (G =
|
|
606
|
-
value:
|
|
602
|
+
width: i.width ?? D + 20 + (k.length > 0 && ((O = R[0]) != null && O.axisLabel) ? 20 : 0),
|
|
603
|
+
hide: i.hide || R.some((x) => x == null ? void 0 : x.hideAxis),
|
|
604
|
+
label: (G = R[0]) != null && G.axisLabel ? {
|
|
605
|
+
value: R[0].axisLabel,
|
|
607
606
|
angle: -90,
|
|
608
607
|
position: "insideLeft"
|
|
609
608
|
} : void 0
|
|
610
|
-
}), k.length > 0 && g(
|
|
611
|
-
...
|
|
609
|
+
}), k.length > 0 && g(Ne, {
|
|
610
|
+
...We(i),
|
|
612
611
|
yAxisId: "right",
|
|
613
612
|
orientation: "right",
|
|
614
613
|
tick: !0,
|
|
615
|
-
width: i.width ?? D + 20 + (
|
|
616
|
-
hide: i.hide || k.some((
|
|
617
|
-
label: (
|
|
614
|
+
width: i.width ?? D + 20 + (R.length > 0 && ((M = k[0]) != null && M.axisLabel) ? 20 : 0),
|
|
615
|
+
hide: i.hide || k.some((x) => x == null ? void 0 : x.hideAxis),
|
|
616
|
+
label: (W = k[0]) != null && W.axisLabel ? {
|
|
618
617
|
value: k[0].axisLabel,
|
|
619
618
|
angle: 90,
|
|
620
619
|
position: "insideRight"
|
|
621
620
|
} : void 0
|
|
622
|
-
}), g(
|
|
623
|
-
...
|
|
621
|
+
}), g(et, {
|
|
622
|
+
...ti(t),
|
|
624
623
|
hide: t == null ? void 0 : t.hide,
|
|
625
|
-
tick: c ? (
|
|
626
|
-
var
|
|
627
|
-
const { x: z, y: ne, payload:
|
|
628
|
-
return
|
|
624
|
+
tick: c ? (x) => {
|
|
625
|
+
var Me, He;
|
|
626
|
+
const { x: z, y: ne, payload: Te } = x, Le = ((Me = e.find((Ot) => Ot.label === Te.value)) == null ? void 0 : Me.values) || "", oe = Object.keys(Le).length === 1 ? (He = Object.values(Le)) == null ? void 0 : He[0] : void 0, kt = oe !== void 0 && i.tickFormatter ? i.tickFormatter(`${oe}`) : oe.toLocaleString();
|
|
627
|
+
return N("g", {
|
|
629
628
|
transform: `translate(${z},${ne})`,
|
|
630
629
|
children: [g("text", {
|
|
631
630
|
x: 0,
|
|
@@ -633,46 +632,46 @@ const Cs = (a) => {
|
|
|
633
632
|
dy: 12,
|
|
634
633
|
textAnchor: "middle",
|
|
635
634
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
636
|
-
children:
|
|
635
|
+
children: Te.value
|
|
637
636
|
}), !!oe && g("text", {
|
|
638
637
|
x: 0,
|
|
639
638
|
y: 0,
|
|
640
639
|
dy: 28,
|
|
641
640
|
textAnchor: "middle",
|
|
642
641
|
className: "!fill-f1-foreground text-sm font-medium",
|
|
643
|
-
children:
|
|
642
|
+
children: kt
|
|
644
643
|
})]
|
|
645
644
|
});
|
|
646
645
|
} : void 0
|
|
647
|
-
}), b.map((
|
|
646
|
+
}), b.map((x, z) => g(Qe, {
|
|
648
647
|
isAnimationActive: !1,
|
|
649
|
-
dataKey: String(
|
|
650
|
-
fill: a[
|
|
648
|
+
dataKey: String(x),
|
|
649
|
+
fill: a[x].color ? Z(a[x].color) : Ce(z),
|
|
651
650
|
radius: 4,
|
|
652
651
|
maxBarSize: 32,
|
|
653
|
-
children: s && g(
|
|
652
|
+
children: s && g(Je, {
|
|
654
653
|
position: "top",
|
|
655
654
|
offset: 10,
|
|
656
655
|
className: "fill-f1-foreground",
|
|
657
656
|
fontSize: 12
|
|
658
|
-
}, `label-${String(
|
|
659
|
-
}, `bar-${String(
|
|
657
|
+
}, `label-${String(x)}`)
|
|
658
|
+
}, `bar-${String(x)}`)), w.map((x, z) => g(Ze, {
|
|
660
659
|
type: (d == null ? void 0 : d.lineType) ?? "natural",
|
|
661
|
-
dataKey: String(
|
|
662
|
-
stroke: a[
|
|
660
|
+
dataKey: String(x),
|
|
661
|
+
stroke: a[x].color ? Z(a[x].color) : Ce(b.length + z),
|
|
663
662
|
strokeWidth: 2,
|
|
664
663
|
dot: (d == null ? void 0 : d.dot) ?? !1,
|
|
665
664
|
isAnimationActive: !1,
|
|
666
665
|
yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
|
|
667
|
-
}, `line-${String(
|
|
668
|
-
dataKey: String(
|
|
669
|
-
fill: a[
|
|
666
|
+
}, `line-${String(x)}`)), C.map((x, z) => g(re, {
|
|
667
|
+
dataKey: String(x),
|
|
668
|
+
fill: a[x].color ? Z(a[x].color) : Ce(b.length + w.length + z),
|
|
670
669
|
r: 4,
|
|
671
670
|
isAnimationActive: !1,
|
|
672
671
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0,
|
|
673
|
-
shape:
|
|
674
|
-
}, `scatter-${String(
|
|
675
|
-
content: g(
|
|
672
|
+
shape: cs(String(x))
|
|
673
|
+
}, `scatter-${String(x)}`)), h && g(ii, {
|
|
674
|
+
content: g(si, {
|
|
676
675
|
nameKey: "label"
|
|
677
676
|
}),
|
|
678
677
|
align: "center",
|
|
@@ -682,102 +681,14 @@ const Cs = (a) => {
|
|
|
682
681
|
})]
|
|
683
682
|
})
|
|
684
683
|
});
|
|
685
|
-
},
|
|
686
|
-
var Oe = "Progress", Ae = 100, [zs, ur] = vi(Oe), [Ds, Ps] = zs(Oe), St = ke.forwardRef(
|
|
687
|
-
(a, e) => {
|
|
688
|
-
const {
|
|
689
|
-
__scopeProgress: t,
|
|
690
|
-
value: i = null,
|
|
691
|
-
max: s,
|
|
692
|
-
getValueLabel: r = Ss,
|
|
693
|
-
...n
|
|
694
|
-
} = a;
|
|
695
|
-
(s || s === 0) && !Ye(s) && console.error(ks(`${s}`, "Progress"));
|
|
696
|
-
const o = Ye(s) ? s : Ae;
|
|
697
|
-
i !== null && !Je(i, o) && console.error(Os(`${i}`, "Progress"));
|
|
698
|
-
const h = Je(i, o) ? i : null, c = ge(h) ? r(h, o) : void 0;
|
|
699
|
-
return /* @__PURE__ */ g(Ds, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
|
|
700
|
-
lt.div,
|
|
701
|
-
{
|
|
702
|
-
"aria-valuemax": o,
|
|
703
|
-
"aria-valuemin": 0,
|
|
704
|
-
"aria-valuenow": ge(h) ? h : void 0,
|
|
705
|
-
"aria-valuetext": c,
|
|
706
|
-
role: "progressbar",
|
|
707
|
-
"data-state": At(h, o),
|
|
708
|
-
"data-value": h ?? void 0,
|
|
709
|
-
"data-max": o,
|
|
710
|
-
...n,
|
|
711
|
-
ref: e
|
|
712
|
-
}
|
|
713
|
-
) });
|
|
714
|
-
}
|
|
715
|
-
);
|
|
716
|
-
St.displayName = Oe;
|
|
717
|
-
var kt = "ProgressIndicator", Ot = ke.forwardRef(
|
|
718
|
-
(a, e) => {
|
|
719
|
-
const { __scopeProgress: t, ...i } = a, s = Ps(kt, t);
|
|
720
|
-
return /* @__PURE__ */ g(
|
|
721
|
-
lt.div,
|
|
722
|
-
{
|
|
723
|
-
"data-state": At(s.value, s.max),
|
|
724
|
-
"data-value": s.value ?? void 0,
|
|
725
|
-
"data-max": s.max,
|
|
726
|
-
...i,
|
|
727
|
-
ref: e
|
|
728
|
-
}
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
);
|
|
732
|
-
Ot.displayName = kt;
|
|
733
|
-
function Ss(a, e) {
|
|
734
|
-
return `${Math.round(a / e * 100)}%`;
|
|
735
|
-
}
|
|
736
|
-
function At(a, e) {
|
|
737
|
-
return a == null ? "indeterminate" : a === e ? "complete" : "loading";
|
|
738
|
-
}
|
|
739
|
-
function ge(a) {
|
|
740
|
-
return typeof a == "number";
|
|
741
|
-
}
|
|
742
|
-
function Ye(a) {
|
|
743
|
-
return ge(a) && !isNaN(a) && a > 0;
|
|
744
|
-
}
|
|
745
|
-
function Je(a, e) {
|
|
746
|
-
return ge(a) && !isNaN(a) && a <= e && a >= 0;
|
|
747
|
-
}
|
|
748
|
-
function ks(a, e) {
|
|
749
|
-
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ae}\`.`;
|
|
750
|
-
}
|
|
751
|
-
function Os(a, e) {
|
|
752
|
-
return `Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
753
|
-
- a positive number
|
|
754
|
-
- less than the value passed to \`max\` (or ${Ae} if no \`max\` prop is set)
|
|
755
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
756
|
-
|
|
757
|
-
Defaulting to \`null\`.`;
|
|
758
|
-
}
|
|
759
|
-
var Tt = St, As = Ot;
|
|
760
|
-
const Lt = ke.forwardRef(({ className: a, value: e, ...t }, i) => g(Tt, {
|
|
761
|
-
ref: i,
|
|
762
|
-
className: L("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
|
|
763
|
-
...t,
|
|
764
|
-
children: g(As, {
|
|
765
|
-
className: "h-full w-full flex-1 transition-all",
|
|
766
|
-
style: {
|
|
767
|
-
backgroundColor: t.color,
|
|
768
|
-
transform: `translateX(-${100 - (e || 0)}%)`
|
|
769
|
-
}
|
|
770
|
-
})
|
|
771
|
-
}));
|
|
772
|
-
Lt.displayName = Tt.displayName;
|
|
773
|
-
const Ts = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
684
|
+
}, fs = tt(us), gs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
774
685
|
const r = i ? Z(i) : Z("categorical-1"), n = a / e * 100;
|
|
775
|
-
return
|
|
686
|
+
return N("div", {
|
|
776
687
|
className: "flex items-center space-x-2",
|
|
777
688
|
"aria-live": "polite",
|
|
778
689
|
children: [g("div", {
|
|
779
690
|
className: "flex-grow",
|
|
780
|
-
children: g(
|
|
691
|
+
children: g(ri, {
|
|
781
692
|
color: r,
|
|
782
693
|
value: n,
|
|
783
694
|
className: "w-full",
|
|
@@ -791,80 +702,80 @@ const Ts = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
791
702
|
children: t
|
|
792
703
|
})]
|
|
793
704
|
});
|
|
794
|
-
},
|
|
705
|
+
}, ps = tt(gs), Ks = F(
|
|
795
706
|
{
|
|
796
707
|
name: "AreaChart",
|
|
797
708
|
type: "info"
|
|
798
709
|
},
|
|
799
|
-
|
|
800
|
-
),
|
|
710
|
+
di
|
|
711
|
+
), Vs = F(
|
|
801
712
|
{
|
|
802
713
|
name: "BarChart",
|
|
803
714
|
type: "info"
|
|
804
715
|
},
|
|
805
|
-
|
|
806
|
-
),
|
|
716
|
+
ni
|
|
717
|
+
), qs = F(
|
|
807
718
|
{
|
|
808
719
|
name: "CategoryBarChart",
|
|
809
720
|
type: "info"
|
|
810
721
|
},
|
|
811
|
-
|
|
812
|
-
),
|
|
722
|
+
oi
|
|
723
|
+
), Ys = F(
|
|
813
724
|
{
|
|
814
725
|
name: "LineChart",
|
|
815
726
|
type: "info"
|
|
816
727
|
},
|
|
817
|
-
|
|
818
|
-
),
|
|
728
|
+
ai
|
|
729
|
+
), Xs = F(
|
|
819
730
|
{
|
|
820
731
|
name: "PieChart",
|
|
821
732
|
type: "info"
|
|
822
733
|
},
|
|
823
|
-
|
|
824
|
-
),
|
|
734
|
+
li
|
|
735
|
+
), Js = F(
|
|
825
736
|
{
|
|
826
737
|
name: "VerticalBarChart",
|
|
827
738
|
type: "info"
|
|
828
739
|
},
|
|
829
|
-
|
|
830
|
-
),
|
|
740
|
+
hi
|
|
741
|
+
), Zs = F(
|
|
831
742
|
{
|
|
832
743
|
name: "ProgressBarChart",
|
|
833
744
|
type: "info"
|
|
834
745
|
},
|
|
835
|
-
|
|
836
|
-
),
|
|
746
|
+
ps
|
|
747
|
+
), Qs = F(
|
|
837
748
|
{
|
|
838
749
|
name: "ComboChart",
|
|
839
750
|
type: "info"
|
|
840
751
|
},
|
|
841
|
-
|
|
842
|
-
),
|
|
752
|
+
fs
|
|
753
|
+
), er = ci.filter(
|
|
843
754
|
(a) => a !== "ai"
|
|
844
|
-
),
|
|
845
|
-
const [t, i] =
|
|
755
|
+
), tr = it, ir = ["default", "outline", "neutral"], sr = it, rr = ["sm", "md", "lg"], nr = ui, Se = ({ count: a, list: e }) => {
|
|
756
|
+
const [t, i] = L(!1), s = g(de, {
|
|
846
757
|
label: `+${a}`
|
|
847
758
|
});
|
|
848
|
-
return e != null && e.length ?
|
|
759
|
+
return e != null && e.length ? N(st, {
|
|
849
760
|
open: t,
|
|
850
761
|
onOpenChange: i,
|
|
851
|
-
children: [g(
|
|
762
|
+
children: [g(rt, {
|
|
852
763
|
asChild: !0,
|
|
853
764
|
children: g("button", {
|
|
854
|
-
className:
|
|
765
|
+
className: fi("inline-flex flex-shrink-0 items-center"),
|
|
855
766
|
children: s
|
|
856
767
|
})
|
|
857
|
-
}), g(
|
|
768
|
+
}), g(nt, {
|
|
858
769
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
859
770
|
align: "end",
|
|
860
|
-
children:
|
|
771
|
+
children: N(ot, {
|
|
861
772
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
862
773
|
children: [e.map((r, n) => g("div", {
|
|
863
774
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
864
775
|
children: g(de, {
|
|
865
776
|
...r
|
|
866
777
|
})
|
|
867
|
-
}, n)), g(
|
|
778
|
+
}, n)), g(at, {
|
|
868
779
|
orientation: "vertical",
|
|
869
780
|
className: "[&_div]:bg-f1-background"
|
|
870
781
|
})]
|
|
@@ -873,9 +784,9 @@ const Ts = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
873
784
|
}) : s;
|
|
874
785
|
};
|
|
875
786
|
Se.displayName = "ChipCounter";
|
|
876
|
-
const
|
|
787
|
+
const Et = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
877
788
|
if (i === "fill")
|
|
878
|
-
return g(
|
|
789
|
+
return g(gi, {
|
|
879
790
|
items: a,
|
|
880
791
|
renderListItem: (h) => g(de, {
|
|
881
792
|
...h
|
|
@@ -890,7 +801,7 @@ const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
890
801
|
className: "flex-1"
|
|
891
802
|
});
|
|
892
803
|
const s = a.slice(0, e), r = a.slice(e), n = t ?? a.length - e, o = n > 0;
|
|
893
|
-
return
|
|
804
|
+
return N("div", {
|
|
894
805
|
className: "flex items-center gap-2",
|
|
895
806
|
children: [s.map((h, c) => g(de, {
|
|
896
807
|
...h
|
|
@@ -900,8 +811,8 @@ const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
900
811
|
})]
|
|
901
812
|
});
|
|
902
813
|
};
|
|
903
|
-
|
|
904
|
-
const
|
|
814
|
+
Et.displayName = "F0ChipList";
|
|
815
|
+
const or = lt("F0ChipList", Et), ar = pi, Re = ht({
|
|
905
816
|
base: "text-base text-f1-foreground",
|
|
906
817
|
variants: {
|
|
907
818
|
variant: {
|
|
@@ -942,7 +853,7 @@ const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
|
|
|
942
853
|
variant: "body",
|
|
943
854
|
align: "left"
|
|
944
855
|
}
|
|
945
|
-
}),
|
|
856
|
+
}), ms = {
|
|
946
857
|
"heading-large": "h1",
|
|
947
858
|
heading: "h2",
|
|
948
859
|
body: "p",
|
|
@@ -961,15 +872,15 @@ const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
|
|
|
961
872
|
"positive-strong": "p",
|
|
962
873
|
"info-strong": "p",
|
|
963
874
|
code: "code"
|
|
964
|
-
},
|
|
965
|
-
const l = s ??
|
|
875
|
+
}, Pe = $(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...h }, c) => {
|
|
876
|
+
const l = s ?? ms[e ?? "body"];
|
|
966
877
|
if (r !== void 0)
|
|
967
|
-
return g(
|
|
878
|
+
return g(mi, {
|
|
968
879
|
ref: c,
|
|
969
880
|
lines: typeof r == "number" ? r : 1,
|
|
970
881
|
noTooltip: n,
|
|
971
882
|
tag: l,
|
|
972
|
-
className:
|
|
883
|
+
className: B(Re({
|
|
973
884
|
variant: e,
|
|
974
885
|
align: t
|
|
975
886
|
}), i),
|
|
@@ -978,10 +889,10 @@ const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
|
|
|
978
889
|
children: a
|
|
979
890
|
});
|
|
980
891
|
if (o) {
|
|
981
|
-
const d =
|
|
982
|
-
return
|
|
892
|
+
const d = vi(a);
|
|
893
|
+
return Ge(l, {
|
|
983
894
|
...h,
|
|
984
|
-
className:
|
|
895
|
+
className: B(Re({
|
|
985
896
|
variant: e,
|
|
986
897
|
align: t
|
|
987
898
|
}), i),
|
|
@@ -991,55 +902,55 @@ const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
|
|
|
991
902
|
}
|
|
992
903
|
});
|
|
993
904
|
}
|
|
994
|
-
return
|
|
905
|
+
return Ge(l, {
|
|
995
906
|
...h,
|
|
996
|
-
className:
|
|
907
|
+
className: B(Re({
|
|
997
908
|
variant: e,
|
|
998
909
|
align: t
|
|
999
910
|
}), i),
|
|
1000
911
|
ref: c
|
|
1001
912
|
}, a);
|
|
1002
913
|
});
|
|
1003
|
-
|
|
1004
|
-
const
|
|
914
|
+
Pe.displayName = "Text";
|
|
915
|
+
const vs = $((a, e) => g(Pe, {
|
|
1005
916
|
ref: e,
|
|
1006
917
|
variant: "heading",
|
|
1007
918
|
...a
|
|
1008
919
|
}));
|
|
1009
|
-
|
|
1010
|
-
const
|
|
920
|
+
vs.displayName = "F0Heading";
|
|
921
|
+
const ys = $((a, e) => g(Pe, {
|
|
1011
922
|
ref: e,
|
|
1012
923
|
markdown: a.markdown ?? !0,
|
|
1013
924
|
...a
|
|
1014
925
|
}));
|
|
1015
|
-
|
|
1016
|
-
const
|
|
926
|
+
ys.displayName = "F0Text";
|
|
927
|
+
const bs = {
|
|
1017
928
|
xs: 1,
|
|
1018
929
|
sm: 2,
|
|
1019
930
|
md: 2,
|
|
1020
931
|
lg: 2
|
|
1021
|
-
},
|
|
932
|
+
}, _s = $(function({ widgets: e, children: t }, i) {
|
|
1022
933
|
const s = Q(null);
|
|
1023
|
-
|
|
1024
|
-
const r =
|
|
934
|
+
pt(i, () => s.current);
|
|
935
|
+
const r = Ui.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
|
|
1025
936
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
1026
937
|
children: n
|
|
1027
938
|
}, o));
|
|
1028
|
-
return g(
|
|
939
|
+
return g(dt, {
|
|
1029
940
|
layout: "home",
|
|
1030
|
-
children:
|
|
941
|
+
children: N("div", {
|
|
1031
942
|
ref: s,
|
|
1032
943
|
className: "@container",
|
|
1033
|
-
children: [
|
|
944
|
+
children: [N("div", {
|
|
1034
945
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
1035
|
-
children: [g(
|
|
1036
|
-
columns:
|
|
946
|
+
children: [g(yi, {
|
|
947
|
+
columns: bs,
|
|
1037
948
|
showArrows: !1,
|
|
1038
949
|
children: r
|
|
1039
950
|
}), g("main", {
|
|
1040
951
|
children: t
|
|
1041
952
|
})]
|
|
1042
|
-
}),
|
|
953
|
+
}), N("div", {
|
|
1043
954
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
1044
955
|
children: [g("div", {
|
|
1045
956
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
@@ -1054,67 +965,67 @@ const Fs = {
|
|
|
1054
965
|
})]
|
|
1055
966
|
})
|
|
1056
967
|
});
|
|
1057
|
-
}),
|
|
968
|
+
}), xs = $(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
|
|
1058
969
|
return g("div", {
|
|
1059
970
|
ref: r,
|
|
1060
971
|
className: "h-full",
|
|
1061
|
-
children:
|
|
1062
|
-
className:
|
|
972
|
+
children: N("div", {
|
|
973
|
+
className: B("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", s && "md:sticky md:top-0 md:max-h-full"),
|
|
1063
974
|
children: [g("main", {
|
|
1064
|
-
className:
|
|
975
|
+
className: B("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", s ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", i === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
|
|
1065
976
|
children: e
|
|
1066
|
-
}), g(
|
|
977
|
+
}), g(ws, {
|
|
1067
978
|
sticky: s,
|
|
1068
|
-
className:
|
|
979
|
+
className: B("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
1069
980
|
children: t
|
|
1070
981
|
})]
|
|
1071
982
|
})
|
|
1072
983
|
});
|
|
1073
|
-
}),
|
|
1074
|
-
className:
|
|
984
|
+
}), ws = ({ children: a, className: e }) => g("aside", {
|
|
985
|
+
className: B("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
|
|
1075
986
|
children: a
|
|
1076
|
-
}),
|
|
987
|
+
}), Es = ht({
|
|
1077
988
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
1078
989
|
variants: {
|
|
1079
990
|
variant: {
|
|
1080
991
|
narrow: "max-w-screen-lg"
|
|
1081
992
|
}
|
|
1082
993
|
}
|
|
1083
|
-
}),
|
|
994
|
+
}), Ct = S.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(dt, {
|
|
1084
995
|
layout: "standard",
|
|
1085
996
|
children: g("section", {
|
|
1086
997
|
ref: s,
|
|
1087
|
-
className:
|
|
998
|
+
className: B("relative flex-1 overflow-auto", t),
|
|
1088
999
|
...i,
|
|
1089
1000
|
children: g("div", {
|
|
1090
|
-
className:
|
|
1001
|
+
className: B(Es({
|
|
1091
1002
|
variant: e
|
|
1092
1003
|
})),
|
|
1093
1004
|
children: a
|
|
1094
1005
|
})
|
|
1095
1006
|
})
|
|
1096
1007
|
}));
|
|
1097
|
-
|
|
1098
|
-
const
|
|
1008
|
+
Ct.displayName = "StandardLayout";
|
|
1009
|
+
const lr = F({
|
|
1099
1010
|
name: "StandardLayout",
|
|
1100
1011
|
type: "layout"
|
|
1101
|
-
},
|
|
1012
|
+
}, Ct), hr = F({
|
|
1102
1013
|
name: "TwoColumnLayout",
|
|
1103
1014
|
type: "layout"
|
|
1104
|
-
},
|
|
1015
|
+
}, xs), dr = F({
|
|
1105
1016
|
name: "HomeLayout",
|
|
1106
1017
|
type: "layout"
|
|
1107
|
-
},
|
|
1108
|
-
function
|
|
1109
|
-
const a =
|
|
1018
|
+
}, _s), Rt = _e(null);
|
|
1019
|
+
function ke() {
|
|
1020
|
+
const a = mt(Rt);
|
|
1110
1021
|
if (!a)
|
|
1111
1022
|
throw new Error(
|
|
1112
1023
|
"useGridStackContext must be used within a GridStackProvider"
|
|
1113
1024
|
);
|
|
1114
1025
|
return a;
|
|
1115
1026
|
}
|
|
1116
|
-
function
|
|
1117
|
-
const [s, r] =
|
|
1027
|
+
function Cs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
1028
|
+
const [s, r] = L(null), [n, o] = L(() => {
|
|
1118
1029
|
var v;
|
|
1119
1030
|
const p = /* @__PURE__ */ new Map(), m = (b) => {
|
|
1120
1031
|
var w, C;
|
|
@@ -1171,7 +1082,7 @@ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1171
1082
|
}, [s]), f = K(() => {
|
|
1172
1083
|
s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
|
|
1173
1084
|
}, [s]);
|
|
1174
|
-
return g(
|
|
1085
|
+
return g(Rt.Provider, {
|
|
1175
1086
|
value: {
|
|
1176
1087
|
initialOptions: e,
|
|
1177
1088
|
gridStack: s,
|
|
@@ -1191,34 +1102,34 @@ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1191
1102
|
children: a
|
|
1192
1103
|
});
|
|
1193
1104
|
}
|
|
1194
|
-
const
|
|
1195
|
-
function
|
|
1196
|
-
const a =
|
|
1105
|
+
const Nt = _e(null);
|
|
1106
|
+
function Rs() {
|
|
1107
|
+
const a = mt(Nt);
|
|
1197
1108
|
if (!a)
|
|
1198
1109
|
throw new Error(
|
|
1199
1110
|
"useGridStackRenderContext must be used within a GridStackProvider"
|
|
1200
1111
|
);
|
|
1201
1112
|
return a;
|
|
1202
1113
|
}
|
|
1203
|
-
const
|
|
1204
|
-
function
|
|
1205
|
-
const { _rawWidgetMetaMap: a } =
|
|
1206
|
-
return g(
|
|
1114
|
+
const Ns = _e(null);
|
|
1115
|
+
function zs() {
|
|
1116
|
+
const { _rawWidgetMetaMap: a } = ke(), { getWidgetContainer: e } = Rs();
|
|
1117
|
+
return g(be, {
|
|
1207
1118
|
children: Array.from(a.value.entries()).map(([t, i]) => {
|
|
1208
1119
|
var r;
|
|
1209
1120
|
const s = e(t);
|
|
1210
|
-
return s ? g(
|
|
1121
|
+
return s ? g(Ns.Provider, {
|
|
1211
1122
|
value: {
|
|
1212
1123
|
widget: {
|
|
1213
1124
|
id: t
|
|
1214
1125
|
}
|
|
1215
1126
|
},
|
|
1216
|
-
children:
|
|
1127
|
+
children: $i((r = i.renderFn) == null ? void 0 : r.call(i), s)
|
|
1217
1128
|
}, t) : null;
|
|
1218
1129
|
})
|
|
1219
1130
|
});
|
|
1220
1131
|
}
|
|
1221
|
-
function
|
|
1132
|
+
function Ds(a, e, t, i, s) {
|
|
1222
1133
|
const r = (...n) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(a, n));
|
|
1223
1134
|
return r.prototype = e.prototype, r;
|
|
1224
1135
|
}
|
|
@@ -1721,7 +1632,7 @@ class u {
|
|
|
1721
1632
|
return !(!e || e.w === e.h || e.locked || e.noResize || (t = e.grid) != null && t.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
|
|
1722
1633
|
}
|
|
1723
1634
|
}
|
|
1724
|
-
class
|
|
1635
|
+
class U {
|
|
1725
1636
|
constructor(e = {}) {
|
|
1726
1637
|
this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow, this._float = e.float, this.nodes = e.nodes || [], this.onChange = e.onChange;
|
|
1727
1638
|
}
|
|
@@ -2033,7 +1944,7 @@ class $ {
|
|
|
2033
1944
|
* console.log('Node prepared at:', prepared.x, prepared.y);
|
|
2034
1945
|
*/
|
|
2035
1946
|
prepareNode(e, t) {
|
|
2036
|
-
e._id = e._id ??
|
|
1947
|
+
e._id = e._id ?? U._idSeq++;
|
|
2037
1948
|
const i = e.id;
|
|
2038
1949
|
if (i) {
|
|
2039
1950
|
let r = 1;
|
|
@@ -2233,7 +2144,7 @@ class $ {
|
|
|
2233
2144
|
if (t.pack = !0, !this.maxRow)
|
|
2234
2145
|
return this.moveNode(e, t);
|
|
2235
2146
|
let i;
|
|
2236
|
-
const s = new
|
|
2147
|
+
const s = new U({
|
|
2237
2148
|
column: this.column,
|
|
2238
2149
|
float: this.float,
|
|
2239
2150
|
nodes: this.nodes.map((n) => n._id === e._id ? (i = { ...n }, i) : { ...n })
|
|
@@ -2255,7 +2166,7 @@ class $ {
|
|
|
2255
2166
|
willItFit(e) {
|
|
2256
2167
|
if (delete e._willFitPos, !this.maxRow)
|
|
2257
2168
|
return !0;
|
|
2258
|
-
const t = new
|
|
2169
|
+
const t = new U({
|
|
2259
2170
|
column: this.column,
|
|
2260
2171
|
float: this.float,
|
|
2261
2172
|
nodes: this.nodes.map((s) => ({ ...s }))
|
|
@@ -2399,7 +2310,7 @@ class $ {
|
|
|
2399
2310
|
return e.forEach((r, n) => {
|
|
2400
2311
|
if (r._id === void 0) {
|
|
2401
2312
|
const o = r.id ? this.nodes.find((h) => h.id === r.id) : void 0;
|
|
2402
|
-
r._id = (o == null ? void 0 : o._id) ??
|
|
2313
|
+
r._id = (o == null ? void 0 : o._id) ?? U._idSeq++;
|
|
2403
2314
|
}
|
|
2404
2315
|
s[n] = { x: r.x, y: r.y, w: r.w, _id: r._id };
|
|
2405
2316
|
}), this._layouts = i ? [] : this._layouts || [], this._layouts[t] = s, this;
|
|
@@ -2410,7 +2321,7 @@ class $ {
|
|
|
2410
2321
|
* @param column corresponding column index to save it under
|
|
2411
2322
|
*/
|
|
2412
2323
|
cacheOneLayout(e, t) {
|
|
2413
|
-
e._id = e._id ??
|
|
2324
|
+
e._id = e._id ?? U._idSeq++;
|
|
2414
2325
|
const i = { x: e.x, y: e.y, w: e.w, _id: e._id };
|
|
2415
2326
|
(e.autoPosition || e.x === void 0) && (delete i.x, delete i.y, e.autoPosition && (i.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[t] = this._layouts[t] || [];
|
|
2416
2327
|
const s = this.findCacheLayout(e, t);
|
|
@@ -2434,7 +2345,7 @@ class $ {
|
|
|
2434
2345
|
return this;
|
|
2435
2346
|
}
|
|
2436
2347
|
}
|
|
2437
|
-
|
|
2348
|
+
U._idSeq = 0;
|
|
2438
2349
|
const A = {
|
|
2439
2350
|
alwaysShowResizeHandle: "mobile",
|
|
2440
2351
|
animate: !0,
|
|
@@ -2464,57 +2375,57 @@ const A = {
|
|
|
2464
2375
|
// staticGrid: false,
|
|
2465
2376
|
//removable
|
|
2466
2377
|
};
|
|
2467
|
-
class
|
|
2378
|
+
class _ {
|
|
2468
2379
|
}
|
|
2469
|
-
const
|
|
2470
|
-
class
|
|
2380
|
+
const H = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
|
|
2381
|
+
class I {
|
|
2471
2382
|
}
|
|
2472
|
-
function
|
|
2383
|
+
function ge(a, e) {
|
|
2473
2384
|
a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
|
|
2474
2385
|
}
|
|
2475
|
-
function
|
|
2386
|
+
function zt(a, e) {
|
|
2476
2387
|
a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
|
|
2477
2388
|
}
|
|
2389
|
+
function pe(a) {
|
|
2390
|
+
I.touchHandled || (I.touchHandled = !0, ge(a, "mousedown"));
|
|
2391
|
+
}
|
|
2478
2392
|
function me(a) {
|
|
2479
|
-
|
|
2393
|
+
I.touchHandled && ge(a, "mousemove");
|
|
2480
2394
|
}
|
|
2481
2395
|
function ve(a) {
|
|
2482
|
-
|
|
2483
|
-
}
|
|
2484
|
-
function ye(a) {
|
|
2485
|
-
if (!W.touchHandled)
|
|
2396
|
+
if (!I.touchHandled)
|
|
2486
2397
|
return;
|
|
2487
|
-
|
|
2488
|
-
const e = !!
|
|
2489
|
-
|
|
2398
|
+
I.pointerLeaveTimeout && (window.clearTimeout(I.pointerLeaveTimeout), delete I.pointerLeaveTimeout);
|
|
2399
|
+
const e = !!_.dragElement;
|
|
2400
|
+
ge(a, "mouseup"), e || ge(a, "click"), I.touchHandled = !1;
|
|
2490
2401
|
}
|
|
2491
|
-
function
|
|
2402
|
+
function ye(a) {
|
|
2492
2403
|
a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
|
|
2493
2404
|
}
|
|
2494
|
-
function
|
|
2495
|
-
|
|
2405
|
+
function Ke(a) {
|
|
2406
|
+
_.dragElement && a.pointerType !== "mouse" && zt(a, "mouseenter");
|
|
2496
2407
|
}
|
|
2497
|
-
function
|
|
2498
|
-
|
|
2499
|
-
delete
|
|
2408
|
+
function Ve(a) {
|
|
2409
|
+
_.dragElement && a.pointerType !== "mouse" && (I.pointerLeaveTimeout = window.setTimeout(() => {
|
|
2410
|
+
delete I.pointerLeaveTimeout, zt(a, "mouseleave");
|
|
2500
2411
|
}, 10));
|
|
2501
2412
|
}
|
|
2502
|
-
class
|
|
2413
|
+
class we {
|
|
2503
2414
|
constructor(e, t, i) {
|
|
2504
2415
|
this.host = e, this.dir = t, this.option = i, this.moving = !1, this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this._init();
|
|
2505
2416
|
}
|
|
2506
2417
|
/** @internal */
|
|
2507
2418
|
_init() {
|
|
2508
2419
|
const e = this.el = document.createElement("div");
|
|
2509
|
-
return e.classList.add("ui-resizable-handle"), e.classList.add(`${
|
|
2420
|
+
return e.classList.add("ui-resizable-handle"), e.classList.add(`${we.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), H && (this.el.addEventListener("touchstart", pe), this.el.addEventListener("pointerdown", ye)), this;
|
|
2510
2421
|
}
|
|
2511
2422
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
2512
2423
|
destroy() {
|
|
2513
|
-
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown),
|
|
2424
|
+
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), H && (this.el.removeEventListener("touchstart", pe), this.el.removeEventListener("pointerdown", ye)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
|
|
2514
2425
|
}
|
|
2515
2426
|
/** @internal called on mouse down on us: capture move on the entire document (mouse might not stay on us) until we release the mouse */
|
|
2516
2427
|
_mouseDown(e) {
|
|
2517
|
-
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0),
|
|
2428
|
+
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), H && (this.el.addEventListener("touchmove", me), this.el.addEventListener("touchend", ve)), e.stopPropagation(), e.preventDefault();
|
|
2518
2429
|
}
|
|
2519
2430
|
/** @internal */
|
|
2520
2431
|
_mouseMove(e) {
|
|
@@ -2523,7 +2434,7 @@ class Ee {
|
|
|
2523
2434
|
}
|
|
2524
2435
|
/** @internal */
|
|
2525
2436
|
_mouseUp(e) {
|
|
2526
|
-
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0),
|
|
2437
|
+
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), H && (this.el.removeEventListener("touchmove", me), this.el.removeEventListener("touchend", ve)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
|
|
2527
2438
|
}
|
|
2528
2439
|
/** @internal call when keys are being pressed - use Esc to cancel */
|
|
2529
2440
|
_keyEvent(e) {
|
|
@@ -2535,8 +2446,8 @@ class Ee {
|
|
|
2535
2446
|
return this.option[e] && this.option[e](t), this;
|
|
2536
2447
|
}
|
|
2537
2448
|
}
|
|
2538
|
-
|
|
2539
|
-
class
|
|
2449
|
+
we.prefix = "ui-resizable-";
|
|
2450
|
+
class Oe {
|
|
2540
2451
|
constructor() {
|
|
2541
2452
|
this._eventRegister = {};
|
|
2542
2453
|
}
|
|
@@ -2597,7 +2508,7 @@ class Me {
|
|
|
2597
2508
|
return this._eventRegister[e](t);
|
|
2598
2509
|
}
|
|
2599
2510
|
}
|
|
2600
|
-
class ie extends
|
|
2511
|
+
class ie extends Oe {
|
|
2601
2512
|
// have to be public else complains for HTMLElementExtendOpt ?
|
|
2602
2513
|
constructor(e, t = {}) {
|
|
2603
2514
|
super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
|
|
@@ -2653,21 +2564,21 @@ class ie extends Me {
|
|
|
2653
2564
|
}
|
|
2654
2565
|
/** @internal turns auto hide on/off */
|
|
2655
2566
|
_setupAutoHide(e) {
|
|
2656
|
-
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut),
|
|
2567
|
+
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), _.overResizeElement === this && delete _.overResizeElement), this;
|
|
2657
2568
|
}
|
|
2658
2569
|
/** @internal */
|
|
2659
2570
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2660
2571
|
_mouseOver(e) {
|
|
2661
|
-
|
|
2572
|
+
_.overResizeElement || _.dragElement || (_.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
|
|
2662
2573
|
}
|
|
2663
2574
|
/** @internal */
|
|
2664
2575
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2665
2576
|
_mouseOut(e) {
|
|
2666
|
-
|
|
2577
|
+
_.overResizeElement === this && (delete _.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
|
|
2667
2578
|
}
|
|
2668
2579
|
/** @internal */
|
|
2669
2580
|
_setupHandlers() {
|
|
2670
|
-
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new
|
|
2581
|
+
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new we(this.el, e, {
|
|
2671
2582
|
start: (t) => {
|
|
2672
2583
|
this._resizeStart(t);
|
|
2673
2584
|
},
|
|
@@ -2747,8 +2658,8 @@ class ie extends Me {
|
|
|
2747
2658
|
}
|
|
2748
2659
|
}
|
|
2749
2660
|
ie._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
|
|
2750
|
-
const
|
|
2751
|
-
class se extends
|
|
2661
|
+
const Ss = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
|
|
2662
|
+
class se extends Oe {
|
|
2752
2663
|
constructor(e, t = {}) {
|
|
2753
2664
|
var r;
|
|
2754
2665
|
super(), this.el = e, this.option = t, this.dragTransform = {
|
|
@@ -2768,12 +2679,12 @@ class se extends Me {
|
|
|
2768
2679
|
}
|
|
2769
2680
|
enable() {
|
|
2770
2681
|
this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
|
|
2771
|
-
e.addEventListener("mousedown", this._mouseDown),
|
|
2682
|
+
e.addEventListener("mousedown", this._mouseDown), H && (e.addEventListener("touchstart", pe), e.addEventListener("pointerdown", ye));
|
|
2772
2683
|
}), this.el.classList.remove("ui-draggable-disabled"));
|
|
2773
2684
|
}
|
|
2774
2685
|
disable(e = !1) {
|
|
2775
2686
|
this.disabled !== !0 && (super.disable(), this.dragEls.forEach((t) => {
|
|
2776
|
-
t.removeEventListener("mousedown", this._mouseDown),
|
|
2687
|
+
t.removeEventListener("mousedown", this._mouseDown), H && (t.removeEventListener("touchstart", pe), t.removeEventListener("pointerdown", ye));
|
|
2777
2688
|
}), e || this.el.classList.add("ui-draggable-disabled"));
|
|
2778
2689
|
}
|
|
2779
2690
|
destroy() {
|
|
@@ -2784,8 +2695,8 @@ class se extends Me {
|
|
|
2784
2695
|
}
|
|
2785
2696
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
2786
2697
|
_mouseDown(e) {
|
|
2787
|
-
if (!
|
|
2788
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(
|
|
2698
|
+
if (!_.mouseHandled)
|
|
2699
|
+
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Ss) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete _.dragElement, delete _.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), H && (e.currentTarget.addEventListener("touchmove", me), e.currentTarget.addEventListener("touchend", ve)), e.preventDefault(), document.activeElement && document.activeElement.blur(), _.mouseHandled = !0), !0;
|
|
2789
2700
|
}
|
|
2790
2701
|
/** @internal method to call actual drag event */
|
|
2791
2702
|
_callDrag(e) {
|
|
@@ -2799,15 +2710,15 @@ class se extends Me {
|
|
|
2799
2710
|
var i;
|
|
2800
2711
|
const t = this.mouseDownEvent;
|
|
2801
2712
|
if (this.lastDrag = e, this.dragging)
|
|
2802
|
-
if (this._dragFollow(e),
|
|
2803
|
-
const s = Number.isInteger(
|
|
2713
|
+
if (this._dragFollow(e), _.pauseDrag) {
|
|
2714
|
+
const s = Number.isInteger(_.pauseDrag) ? _.pauseDrag : 100;
|
|
2804
2715
|
this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), s);
|
|
2805
2716
|
} else
|
|
2806
2717
|
this._callDrag(e);
|
|
2807
2718
|
else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
|
|
2808
|
-
this.dragging = !0,
|
|
2719
|
+
this.dragging = !0, _.dragElement = this;
|
|
2809
2720
|
const s = (i = this.el.gridstackNode) == null ? void 0 : i.grid;
|
|
2810
|
-
s ?
|
|
2721
|
+
s ? _.dropElement = s.el.ddElement.ddDroppable : delete _.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = u.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
|
|
2811
2722
|
const r = u.initEvent(e, { target: this.el, type: "dragstart" });
|
|
2812
2723
|
this.option.start && this.option.start(r, this.ui()), this.triggerEvent("dragstart", r), document.addEventListener("keydown", this._keyEvent);
|
|
2813
2724
|
}
|
|
@@ -2816,17 +2727,17 @@ class se extends Me {
|
|
|
2816
2727
|
/** @internal call when the mouse gets released to drop the item at current location */
|
|
2817
2728
|
_mouseUp(e) {
|
|
2818
2729
|
var t, i;
|
|
2819
|
-
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0),
|
|
2820
|
-
delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i =
|
|
2730
|
+
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), H && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", me, !0), e.currentTarget.removeEventListener("touchend", ve, !0)), this.dragging) {
|
|
2731
|
+
delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i = _.dropElement) == null ? void 0 : i.el) === this.el.parentElement && delete _.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
|
|
2821
2732
|
const s = u.initEvent(e, { target: this.el, type: "dragstop" });
|
|
2822
|
-
this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s),
|
|
2733
|
+
this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s), _.dropElement && _.dropElement.drop(e);
|
|
2823
2734
|
}
|
|
2824
|
-
delete this.helper, delete this.mouseDownEvent, delete
|
|
2735
|
+
delete this.helper, delete this.mouseDownEvent, delete _.dragElement, delete _.dropElement, delete _.mouseHandled, e.preventDefault();
|
|
2825
2736
|
}
|
|
2826
2737
|
/** @internal call when keys are being pressed - use Esc to cancel, R to rotate */
|
|
2827
2738
|
_keyEvent(e) {
|
|
2828
2739
|
var s, r;
|
|
2829
|
-
const t = this.el.gridstackNode, i = (t == null ? void 0 : t.grid) || ((r = (s =
|
|
2740
|
+
const t = this.el.gridstackNode, i = (t == null ? void 0 : t.grid) || ((r = (s = _.dropElement) == null ? void 0 : s.el) == null ? void 0 : r.gridstack);
|
|
2830
2741
|
if (e.key === "Escape")
|
|
2831
2742
|
t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), i == null || i.cancelDrag(), this._mouseUp(this.mouseDownEvent);
|
|
2832
2743
|
else if (t && i && (e.key === "r" || e.key === "R")) {
|
|
@@ -2899,7 +2810,7 @@ class se extends Me {
|
|
|
2899
2810
|
}
|
|
2900
2811
|
}
|
|
2901
2812
|
se.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
2902
|
-
class
|
|
2813
|
+
class Ps extends Oe {
|
|
2903
2814
|
constructor(e, t = {}) {
|
|
2904
2815
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
2905
2816
|
}
|
|
@@ -2910,10 +2821,10 @@ class Ys extends Me {
|
|
|
2910
2821
|
super.off(e);
|
|
2911
2822
|
}
|
|
2912
2823
|
enable() {
|
|
2913
|
-
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave),
|
|
2824
|
+
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), H && (this.el.addEventListener("pointerenter", Ke), this.el.addEventListener("pointerleave", Ve)));
|
|
2914
2825
|
}
|
|
2915
2826
|
disable(e = !1) {
|
|
2916
|
-
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave),
|
|
2827
|
+
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), H && (this.el.removeEventListener("pointerenter", Ke), this.el.removeEventListener("pointerleave", Ve)));
|
|
2917
2828
|
}
|
|
2918
2829
|
destroy() {
|
|
2919
2830
|
this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
|
|
@@ -2923,20 +2834,20 @@ class Ys extends Me {
|
|
|
2923
2834
|
}
|
|
2924
2835
|
/** @internal called when the cursor enters our area - prepare for a possible drop and track leaving */
|
|
2925
2836
|
_mouseEnter(e) {
|
|
2926
|
-
if (!
|
|
2837
|
+
if (!_.dragElement || !this._canDrop(_.dragElement.el))
|
|
2927
2838
|
return;
|
|
2928
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2839
|
+
e.preventDefault(), e.stopPropagation(), _.dropElement && _.dropElement !== this && _.dropElement._mouseLeave(e, !0), _.dropElement = this;
|
|
2929
2840
|
const t = u.initEvent(e, { target: this.el, type: "dropover" });
|
|
2930
|
-
this.option.over && this.option.over(t, this._ui(
|
|
2841
|
+
this.option.over && this.option.over(t, this._ui(_.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
|
|
2931
2842
|
}
|
|
2932
2843
|
/** @internal called when the item is leaving our area, stop tracking if we had moving item */
|
|
2933
2844
|
_mouseLeave(e, t = !1) {
|
|
2934
2845
|
var s;
|
|
2935
|
-
if (!
|
|
2846
|
+
if (!_.dragElement || _.dropElement !== this)
|
|
2936
2847
|
return;
|
|
2937
2848
|
e.preventDefault(), e.stopPropagation();
|
|
2938
2849
|
const i = u.initEvent(e, { target: this.el, type: "dropout" });
|
|
2939
|
-
if (this.option.out && this.option.out(i, this._ui(
|
|
2850
|
+
if (this.option.out && this.option.out(i, this._ui(_.dragElement)), this.triggerEvent("dropout", i), _.dropElement === this && (delete _.dropElement, !t)) {
|
|
2940
2851
|
let r, n = this.el.parentElement;
|
|
2941
2852
|
for (; !r && n; )
|
|
2942
2853
|
r = (s = n.ddElement) == null ? void 0 : s.ddDroppable, n = n.parentElement;
|
|
@@ -2947,7 +2858,7 @@ class Ys extends Me {
|
|
|
2947
2858
|
drop(e) {
|
|
2948
2859
|
e.preventDefault();
|
|
2949
2860
|
const t = u.initEvent(e, { target: this.el, type: "drop" });
|
|
2950
|
-
this.option.drop && this.option.drop(t, this._ui(
|
|
2861
|
+
this.option.drop && this.option.drop(t, this._ui(_.dragElement)), this.triggerEvent("drop", t);
|
|
2951
2862
|
}
|
|
2952
2863
|
/** @internal true if element matches the string/method accept option */
|
|
2953
2864
|
_canDrop(e) {
|
|
@@ -2965,9 +2876,9 @@ class Ys extends Me {
|
|
|
2965
2876
|
};
|
|
2966
2877
|
}
|
|
2967
2878
|
}
|
|
2968
|
-
class
|
|
2879
|
+
class Ae {
|
|
2969
2880
|
static init(e) {
|
|
2970
|
-
return e.ddElement || (e.ddElement = new
|
|
2881
|
+
return e.ddElement || (e.ddElement = new Ae(e)), e.ddElement;
|
|
2971
2882
|
}
|
|
2972
2883
|
constructor(e) {
|
|
2973
2884
|
this.el = e;
|
|
@@ -2991,13 +2902,13 @@ class He {
|
|
|
2991
2902
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
2992
2903
|
}
|
|
2993
2904
|
setupDroppable(e) {
|
|
2994
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
2905
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Ps(this.el, e), this;
|
|
2995
2906
|
}
|
|
2996
2907
|
cleanDroppable() {
|
|
2997
2908
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
2998
2909
|
}
|
|
2999
2910
|
}
|
|
3000
|
-
class
|
|
2911
|
+
class ks {
|
|
3001
2912
|
/**
|
|
3002
2913
|
* Enable/disable/configure resizing for grid elements.
|
|
3003
2914
|
*
|
|
@@ -3093,7 +3004,7 @@ class Js {
|
|
|
3093
3004
|
}
|
|
3094
3005
|
on(e, t, i) {
|
|
3095
3006
|
return this._getDDElements(e).forEach((s) => s.on(t, (r) => {
|
|
3096
|
-
i(r,
|
|
3007
|
+
i(r, _.dragElement ? _.dragElement.el : r.target, _.dragElement ? _.dragElement.helper : null);
|
|
3097
3008
|
})), this;
|
|
3098
3009
|
}
|
|
3099
3010
|
off(e, t) {
|
|
@@ -3102,7 +3013,7 @@ class Js {
|
|
|
3102
3013
|
/** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
|
|
3103
3014
|
_getDDElements(e, t) {
|
|
3104
3015
|
const i = e.gridstack || t !== "destroy" && t !== "disable", s = u.getElements(e);
|
|
3105
|
-
return s.length ? s.map((n) => n.ddElement || (i ?
|
|
3016
|
+
return s.length ? s.map((n) => n.ddElement || (i ? Ae.init(n) : null)).filter((n) => n) : [];
|
|
3106
3017
|
}
|
|
3107
3018
|
}
|
|
3108
3019
|
/*!
|
|
@@ -3112,7 +3023,7 @@ class Js {
|
|
|
3112
3023
|
* Copyright (c) 2021-2025 Alain Dumesny
|
|
3113
3024
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
3114
3025
|
*/
|
|
3115
|
-
const
|
|
3026
|
+
const P = new ks();
|
|
3116
3027
|
class y {
|
|
3117
3028
|
/**
|
|
3118
3029
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
@@ -3225,8 +3136,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3225
3136
|
const l = t.cellHeight;
|
|
3226
3137
|
delete t.cellHeight, this.cellHeight(l);
|
|
3227
3138
|
}
|
|
3228
|
-
t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle =
|
|
3229
|
-
const h = t.engineClass || y.engineClass ||
|
|
3139
|
+
t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = H), this._setStaticClass();
|
|
3140
|
+
const h = t.engineClass || y.engineClass || U;
|
|
3230
3141
|
if (this.engine = new h({
|
|
3231
3142
|
column: this.getColumn(),
|
|
3232
3143
|
float: t.float,
|
|
@@ -3241,7 +3152,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3241
3152
|
const l = t.children;
|
|
3242
3153
|
delete t.children, l.length && this.load(l);
|
|
3243
3154
|
}
|
|
3244
|
-
this.setAnimation(), t.subGridDynamic && !
|
|
3155
|
+
this.setAnimation(), t.subGridDynamic && !_.pauseDrag && (_.pauseDrag = !0), ((c = t.draggable) == null ? void 0 : c.pause) !== void 0 && (_.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
|
|
3245
3156
|
}
|
|
3246
3157
|
_updateColumnVar(e = this.opts) {
|
|
3247
3158
|
this.el.classList.add("gs-" + e.column), typeof e.column == "number" && this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`);
|
|
@@ -4242,7 +4153,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4242
4153
|
* // Access drag & drop functionality
|
|
4243
4154
|
*/
|
|
4244
4155
|
static getDD() {
|
|
4245
|
-
return
|
|
4156
|
+
return P;
|
|
4246
4157
|
}
|
|
4247
4158
|
/**
|
|
4248
4159
|
* call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
|
|
@@ -4254,8 +4165,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4254
4165
|
* @param root optional root which defaults to document (for shadow dom pass the parent HTMLDocument)
|
|
4255
4166
|
*/
|
|
4256
4167
|
static setupDragIn(e, t, i, s = document) {
|
|
4257
|
-
(t == null ? void 0 : t.pause) !== void 0 && (
|
|
4258
|
-
|
|
4168
|
+
(t == null ? void 0 : t.pause) !== void 0 && (_.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? u.getElements(e, s) : e).forEach((n, o) => {
|
|
4169
|
+
P.isDraggable(n) || P.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
|
|
4259
4170
|
});
|
|
4260
4171
|
}
|
|
4261
4172
|
/**
|
|
@@ -4407,12 +4318,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4407
4318
|
}
|
|
4408
4319
|
/** @internal removes any drag&drop present (called during destroy) */
|
|
4409
4320
|
_removeDD(e) {
|
|
4410
|
-
return
|
|
4321
|
+
return P.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
|
|
4411
4322
|
}
|
|
4412
4323
|
/** @internal called to add drag over to support widgets being added externally */
|
|
4413
4324
|
_setupAcceptWidget() {
|
|
4414
4325
|
if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
|
|
4415
|
-
return
|
|
4326
|
+
return P.droppable(this.el, "destroy"), this;
|
|
4416
4327
|
let e, t;
|
|
4417
4328
|
const i = (s, r, n) => {
|
|
4418
4329
|
var f;
|
|
@@ -4437,7 +4348,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4437
4348
|
if (o._temporaryRemoved) {
|
|
4438
4349
|
if (o.x = Math.max(0, Math.round(c / t)), o.y = Math.max(0, Math.round(h / e)), delete o.autoPosition, this.engine.nodeBoundFix(o), !this.engine.willItFit(o)) {
|
|
4439
4350
|
if (o.autoPosition = !0, !this.engine.willItFit(o)) {
|
|
4440
|
-
|
|
4351
|
+
P.off(r, "drag");
|
|
4441
4352
|
return;
|
|
4442
4353
|
}
|
|
4443
4354
|
o._willFitPos && (u.copyPos(o, o._willFitPos), delete o._willFitPos);
|
|
@@ -4446,7 +4357,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4446
4357
|
} else
|
|
4447
4358
|
this._dragOrResize(n, s, d, o, t, e);
|
|
4448
4359
|
};
|
|
4449
|
-
return
|
|
4360
|
+
return P.droppable(this.el, {
|
|
4450
4361
|
accept: (s) => {
|
|
4451
4362
|
const r = s.gridstackNode || this._readAttr(s, !1);
|
|
4452
4363
|
if ((r == null ? void 0 : r.grid) === this)
|
|
@@ -4485,7 +4396,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4485
4396
|
o.grid || (o.el || (o = { ...o }), o._isExternal = !0, n.gridstackNode = o);
|
|
4486
4397
|
const h = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
|
|
4487
4398
|
return o.grid && o.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = o), r.gridstackNode = o = { ...o, w: h, h: c, grid: this }, delete o.x, delete o.y, this.engine.cleanupNode(o).nodeBoundFix(o), o._initDD = o._isExternal = // DOM needs to be re-parented on a drop
|
|
4488
|
-
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1),
|
|
4399
|
+
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1), P.on(r, "drag", i), i(s, r, n), !1;
|
|
4489
4400
|
}).on(this.el, "dropout", (s, r, n) => {
|
|
4490
4401
|
const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
|
|
4491
4402
|
return o && (!o.grid || o.grid === this) && (this._leave(r, n), this._isTemp && this.removeAsSubGrid(o)), !1;
|
|
@@ -4501,7 +4412,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4501
4412
|
const v = l.grid;
|
|
4502
4413
|
v.engine.removeNodeFromLayoutCache(l), v.engine.removedNodes.push(l), v._triggerRemoveEvent()._triggerChangeEvent(), v.parentGridNode && !v.engine.nodes.length && v.opts.subGridDynamic && v.removeAsSubGrid();
|
|
4503
4414
|
}
|
|
4504
|
-
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp,
|
|
4415
|
+
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, P.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
|
|
4505
4416
|
return !1;
|
|
4506
4417
|
const d = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
|
|
4507
4418
|
return u.copyPos(o, this._readAttr(this.placeholder)), u.removePositioningStyles(r), c && (o.content || o.subGridOpts || y.addRemoveCB) ? (delete o.el, r = this.addWidget(o)) : (this._prepareElement(r, !0, o), this.el.appendChild(r), this.resizeToContentCheck(!1, o), d && (d.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, l && l.grid ? l : void 0, o), !1;
|
|
@@ -4519,7 +4430,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4519
4430
|
if (typeof this.opts.removable != "string")
|
|
4520
4431
|
return this;
|
|
4521
4432
|
const e = document.querySelector(this.opts.removable);
|
|
4522
|
-
return e ? (!this.opts.staticGrid && !
|
|
4433
|
+
return e ? (!this.opts.staticGrid && !P.isDroppable(e) && P.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => y._itemRemoving(i, !0)).on(e, "dropout", (t, i) => y._itemRemoving(i, !1)), this) : this;
|
|
4523
4434
|
}
|
|
4524
4435
|
/**
|
|
4525
4436
|
* prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
|
|
@@ -4551,7 +4462,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4551
4462
|
this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), f.type === "resizestop" && (Number.isInteger(i.sizeToContent) && (i.sizeToContent = i.h), this.resizeToContentCheck(p, i));
|
|
4552
4463
|
}
|
|
4553
4464
|
};
|
|
4554
|
-
|
|
4465
|
+
P.draggable(e, {
|
|
4555
4466
|
start: c,
|
|
4556
4467
|
stop: d,
|
|
4557
4468
|
drag: l
|
|
@@ -4561,7 +4472,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4561
4472
|
resize: l
|
|
4562
4473
|
}), i._initDD = !0;
|
|
4563
4474
|
}
|
|
4564
|
-
return
|
|
4475
|
+
return P.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
|
|
4565
4476
|
}
|
|
4566
4477
|
/** @internal handles actual drag/resize start */
|
|
4567
4478
|
_onStartMoving(e, t, i, s, r, n) {
|
|
@@ -4580,7 +4491,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4580
4491
|
};
|
|
4581
4492
|
if (s.el = this.placeholder, s._lastUiPosition = i.position, s._prevYPix = i.position.top, s._moving = t.type === "dragstart", s._resizing = t.type === "resizestart", delete s._lastTried, t.type === "dropover" && s._temporaryRemoved && (this.engine.addNode(s), s._moving = !0), this.engine.cacheRects(r, n, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
|
|
4582
4493
|
const h = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
|
|
4583
|
-
|
|
4494
|
+
P.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, h)).resizable(e, "option", "minHeight", n * Math.min(s.minH || 1, c)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, h)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, c)).resizable(e, "option", "maxHeightMoveUp", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
|
|
4584
4495
|
}
|
|
4585
4496
|
}
|
|
4586
4497
|
/** @internal handles actual drag/resize */
|
|
@@ -4598,8 +4509,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4598
4509
|
const E = this._extraDragRow;
|
|
4599
4510
|
if (this.engine.collide(s, o)) {
|
|
4600
4511
|
const D = this.getRow();
|
|
4601
|
-
let
|
|
4602
|
-
this.opts.maxRow && D +
|
|
4512
|
+
let R = Math.max(0, o.y + s.h - D);
|
|
4513
|
+
this.opts.maxRow && D + R > this.opts.maxRow && (R = Math.max(0, this.opts.maxRow - D)), this._extraDragRow = R;
|
|
4603
4514
|
} else
|
|
4604
4515
|
this._extraDragRow = 0;
|
|
4605
4516
|
if (this._extraDragRow !== E && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
|
|
@@ -4637,7 +4548,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4637
4548
|
_leave(e, t) {
|
|
4638
4549
|
t = t || e;
|
|
4639
4550
|
const i = t.gridstackNode;
|
|
4640
|
-
if (!i || (t.style.transform = t.style.transformOrigin = null,
|
|
4551
|
+
if (!i || (t.style.transform = t.style.transformOrigin = null, P.off(e, "drag"), i._temporaryRemoved))
|
|
4641
4552
|
return;
|
|
4642
4553
|
i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
|
|
4643
4554
|
const s = i._sidebarOrig;
|
|
@@ -4645,7 +4556,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4645
4556
|
}
|
|
4646
4557
|
// legacy method removed
|
|
4647
4558
|
commit() {
|
|
4648
|
-
return
|
|
4559
|
+
return Ds(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
4649
4560
|
}
|
|
4650
4561
|
}
|
|
4651
4562
|
y.renderCB = (a, e) => {
|
|
@@ -4653,32 +4564,32 @@ y.renderCB = (a, e) => {
|
|
|
4653
4564
|
};
|
|
4654
4565
|
y.resizeToContentParent = ".grid-stack-item-content";
|
|
4655
4566
|
y.Utils = u;
|
|
4656
|
-
y.Engine =
|
|
4567
|
+
y.Engine = U;
|
|
4657
4568
|
y.GDRev = "12.3.2";
|
|
4658
4569
|
const le = /* @__PURE__ */ new WeakMap();
|
|
4659
|
-
function
|
|
4660
|
-
const { _gridStack: { value: e, set: t }, initialOptions: i } =
|
|
4570
|
+
function Os({ children: a }) {
|
|
4571
|
+
const { _gridStack: { value: e, set: t }, initialOptions: i } = ke(), s = Q(/* @__PURE__ */ new Map()), r = Q(null), n = Q(i), o = K((c, l) => {
|
|
4661
4572
|
if (l.id && l.grid) {
|
|
4662
4573
|
let d = le.get(l.grid);
|
|
4663
4574
|
d || (d = /* @__PURE__ */ new Map(), le.set(l.grid, d)), d.set(l.id, c), s.current.set(l.id, c);
|
|
4664
4575
|
}
|
|
4665
4576
|
}, []), h = K(() => r.current ? (y.renderCB = o, y.init(n.current, r.current)) : null, [o]);
|
|
4666
|
-
return
|
|
4667
|
-
if (!
|
|
4577
|
+
return Ue(() => {
|
|
4578
|
+
if (!Ye(i, n.current) && e)
|
|
4668
4579
|
try {
|
|
4669
4580
|
e.removeAll(!1), e.destroy(!1), s.current.clear(), le.delete(e), n.current = i, t(h());
|
|
4670
4581
|
} catch (c) {
|
|
4671
4582
|
console.error("Error reinitializing gridstack", c);
|
|
4672
4583
|
}
|
|
4673
|
-
}, [i, e, h, t]),
|
|
4584
|
+
}, [i, e, h, t]), Ue(() => {
|
|
4674
4585
|
if (!e)
|
|
4675
4586
|
try {
|
|
4676
4587
|
t(h());
|
|
4677
4588
|
} catch (c) {
|
|
4678
4589
|
console.error("Error initializing gridstack", c);
|
|
4679
4590
|
}
|
|
4680
|
-
}, [e, h, t]), g(
|
|
4681
|
-
value:
|
|
4591
|
+
}, [e, h, t]), g(Nt.Provider, {
|
|
4592
|
+
value: vt(() => ({
|
|
4682
4593
|
getWidgetContainer: (c) => {
|
|
4683
4594
|
if (e) {
|
|
4684
4595
|
const l = le.get(e);
|
|
@@ -4694,18 +4605,18 @@ function Zs({ children: a }) {
|
|
|
4694
4605
|
})
|
|
4695
4606
|
});
|
|
4696
4607
|
}
|
|
4697
|
-
const
|
|
4698
|
-
const t =
|
|
4699
|
-
return
|
|
4608
|
+
const Dt = $((a, e) => {
|
|
4609
|
+
const t = ke();
|
|
4610
|
+
return pt(e, () => ({
|
|
4700
4611
|
addWidget: t.addWidget,
|
|
4701
4612
|
removeWidget: t.removeWidget,
|
|
4702
4613
|
addSubGrid: t.addSubGrid,
|
|
4703
4614
|
removeAll: t.removeAll
|
|
4704
4615
|
}), [t]), null;
|
|
4705
4616
|
});
|
|
4706
|
-
|
|
4707
|
-
const
|
|
4708
|
-
const s =
|
|
4617
|
+
Dt.displayName = "RefHandler";
|
|
4618
|
+
const St = $(({ options: a, widgets: e, onChange: t }, i) => {
|
|
4619
|
+
const s = vt(() => ({
|
|
4709
4620
|
...a,
|
|
4710
4621
|
children: e
|
|
4711
4622
|
}), [e]), r = (o, h, c) => {
|
|
@@ -4716,7 +4627,7 @@ const Gt = U(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
4716
4627
|
}
|
|
4717
4628
|
return l;
|
|
4718
4629
|
};
|
|
4719
|
-
return
|
|
4630
|
+
return N(Cs, {
|
|
4720
4631
|
initialOptions: s,
|
|
4721
4632
|
onResizeStop: (o, h) => {
|
|
4722
4633
|
var f, p;
|
|
@@ -4732,34 +4643,34 @@ const Gt = U(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
4732
4643
|
}));
|
|
4733
4644
|
},
|
|
4734
4645
|
onChange: t,
|
|
4735
|
-
children: [g(
|
|
4646
|
+
children: [g(Dt, {
|
|
4736
4647
|
ref: i
|
|
4737
|
-
}), g(
|
|
4738
|
-
children: g(
|
|
4648
|
+
}), g(Os, {
|
|
4649
|
+
children: g(zs, {})
|
|
4739
4650
|
})]
|
|
4740
4651
|
});
|
|
4741
4652
|
});
|
|
4742
|
-
|
|
4743
|
-
const
|
|
4653
|
+
St.displayName = "F0GridStack";
|
|
4654
|
+
const cr = lt(
|
|
4744
4655
|
"F0GridStack",
|
|
4745
|
-
|
|
4746
|
-
),
|
|
4656
|
+
St
|
|
4657
|
+
), As = ({ benefits: a }) => g("div", {
|
|
4747
4658
|
className: "flex flex-col gap-2",
|
|
4748
|
-
children: a.map((e, t) => g(
|
|
4659
|
+
children: a.map((e, t) => g(Ts, {
|
|
4749
4660
|
text: e
|
|
4750
4661
|
}, t))
|
|
4751
|
-
}),
|
|
4662
|
+
}), Ts = ({ text: a }) => N("div", {
|
|
4752
4663
|
className: "flex flex-row items-start gap-2",
|
|
4753
|
-
children: [g(
|
|
4754
|
-
icon:
|
|
4664
|
+
children: [g(xi, {
|
|
4665
|
+
icon: wi,
|
|
4755
4666
|
size: "md",
|
|
4756
4667
|
className: "text-f1-icon-positive"
|
|
4757
4668
|
}), g("span", {
|
|
4758
4669
|
children: a
|
|
4759
4670
|
})]
|
|
4760
|
-
}),
|
|
4671
|
+
}), Pt = $(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => N("div", {
|
|
4761
4672
|
ref: c,
|
|
4762
|
-
className:
|
|
4673
|
+
className: B("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
|
|
4763
4674
|
children: [g("div", {
|
|
4764
4675
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
4765
4676
|
children: g("img", {
|
|
@@ -4767,26 +4678,26 @@ const Or = pt(
|
|
|
4767
4678
|
alt: "",
|
|
4768
4679
|
className: "h-full w-full rounded-lg object-cover"
|
|
4769
4680
|
})
|
|
4770
|
-
}),
|
|
4681
|
+
}), N("div", {
|
|
4771
4682
|
className: "flex flex-col justify-center gap-8 px-8 py-5",
|
|
4772
|
-
children: [
|
|
4683
|
+
children: [N("div", {
|
|
4773
4684
|
className: "flex flex-col gap-5",
|
|
4774
|
-
children: [
|
|
4685
|
+
children: [N("div", {
|
|
4775
4686
|
className: "flex flex-col gap-2",
|
|
4776
|
-
children: [
|
|
4687
|
+
children: [N("div", {
|
|
4777
4688
|
className: "flex flex-row items-center gap-2",
|
|
4778
|
-
children: [r && g(
|
|
4689
|
+
children: [r && g(ct, {
|
|
4779
4690
|
module: r
|
|
4780
4691
|
}), n && g("p", {
|
|
4781
4692
|
className: "text-base font-medium text-f1-foreground",
|
|
4782
4693
|
children: n
|
|
4783
4694
|
})]
|
|
4784
|
-
}), (o || h) &&
|
|
4695
|
+
}), (o || h) && N("div", {
|
|
4785
4696
|
className: "flex justify-start gap-2",
|
|
4786
|
-
children: [o && g(
|
|
4697
|
+
children: [o && g(bi, {
|
|
4787
4698
|
icon: o.icon,
|
|
4788
4699
|
text: o.label
|
|
4789
|
-
}), h && g(
|
|
4700
|
+
}), h && g(_i, {
|
|
4790
4701
|
variant: h.variant || "positive",
|
|
4791
4702
|
text: h.label
|
|
4792
4703
|
})]
|
|
@@ -4794,7 +4705,7 @@ const Or = pt(
|
|
|
4794
4705
|
className: "font-bold text-xl text-f1-foreground",
|
|
4795
4706
|
children: a
|
|
4796
4707
|
})]
|
|
4797
|
-
}), g(
|
|
4708
|
+
}), g(As, {
|
|
4798
4709
|
benefits: t
|
|
4799
4710
|
})]
|
|
4800
4711
|
}), i && g("div", {
|
|
@@ -4803,38 +4714,38 @@ const Or = pt(
|
|
|
4803
4714
|
})]
|
|
4804
4715
|
})]
|
|
4805
4716
|
}));
|
|
4806
|
-
|
|
4807
|
-
function
|
|
4808
|
-
const [n, o] =
|
|
4717
|
+
Pt.displayName = "ProductBlankslate";
|
|
4718
|
+
function Ls({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
|
|
4719
|
+
const [n, o] = L(a);
|
|
4809
4720
|
return ce(() => {
|
|
4810
4721
|
o(a);
|
|
4811
|
-
}, [a]), g(
|
|
4722
|
+
}, [a]), g(Ei, {
|
|
4812
4723
|
open: n,
|
|
4813
4724
|
onOpenChange: (c) => {
|
|
4814
4725
|
o(c), c || e();
|
|
4815
4726
|
},
|
|
4816
4727
|
modal: !0,
|
|
4817
|
-
children:
|
|
4728
|
+
children: N(Ci, {
|
|
4818
4729
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
4819
4730
|
container: r,
|
|
4820
|
-
children: [
|
|
4731
|
+
children: [N("div", {
|
|
4821
4732
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
4822
|
-
children: [
|
|
4733
|
+
children: [N(Ri, {
|
|
4823
4734
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
4824
|
-
children: [s && g(
|
|
4735
|
+
children: [s && g(ct, {
|
|
4825
4736
|
module: s,
|
|
4826
4737
|
size: "lg"
|
|
4827
4738
|
}), t]
|
|
4828
|
-
}), g(
|
|
4739
|
+
}), g(Ni, {
|
|
4829
4740
|
variant: "outline",
|
|
4830
|
-
icon:
|
|
4741
|
+
icon: ut,
|
|
4831
4742
|
onClick: e,
|
|
4832
4743
|
label: "Close modal",
|
|
4833
4744
|
hideLabel: !0
|
|
4834
4745
|
})]
|
|
4835
|
-
}),
|
|
4746
|
+
}), N(ot, {
|
|
4836
4747
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
4837
|
-
children: [i, g(
|
|
4748
|
+
children: [i, g(at, {
|
|
4838
4749
|
orientation: "vertical",
|
|
4839
4750
|
className: "[&_div]:bg-f1-background"
|
|
4840
4751
|
})]
|
|
@@ -4842,42 +4753,42 @@ function tr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
4842
4753
|
})
|
|
4843
4754
|
});
|
|
4844
4755
|
}
|
|
4845
|
-
function
|
|
4846
|
-
const [C, E] =
|
|
4756
|
+
function ur({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessage: r, successMessage: n, loadingState: o, nextSteps: h, closeLabel: c, primaryAction: l, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: v, promoTag: b, showResponseDialog: w = !0 }) {
|
|
4757
|
+
const [C, E] = L(a), [D, R] = L(null), [k, O] = L(!1), G = async () => {
|
|
4847
4758
|
if (l != null && l.onClick) {
|
|
4848
4759
|
O(!0);
|
|
4849
4760
|
try {
|
|
4850
|
-
await l.onClick(), E(!1), w &&
|
|
4761
|
+
await l.onClick(), E(!1), w && R("success");
|
|
4851
4762
|
} catch {
|
|
4852
|
-
w &&
|
|
4763
|
+
w && R("error");
|
|
4853
4764
|
} finally {
|
|
4854
4765
|
O(!1);
|
|
4855
4766
|
}
|
|
4856
4767
|
}
|
|
4857
|
-
},
|
|
4768
|
+
}, M = () => {
|
|
4858
4769
|
E(!1), e == null || e();
|
|
4859
|
-
},
|
|
4860
|
-
return
|
|
4861
|
-
children: [g(
|
|
4770
|
+
}, W = k;
|
|
4771
|
+
return N(be, {
|
|
4772
|
+
children: [g(Ls, {
|
|
4862
4773
|
isOpen: C,
|
|
4863
|
-
onClose:
|
|
4774
|
+
onClose: M,
|
|
4864
4775
|
title: d,
|
|
4865
4776
|
module: f,
|
|
4866
4777
|
portalContainer: m,
|
|
4867
4778
|
children: g("div", {
|
|
4868
4779
|
className: "pb-4 pl-4",
|
|
4869
|
-
children: g(
|
|
4780
|
+
children: g(Pt, {
|
|
4870
4781
|
title: t,
|
|
4871
4782
|
image: i,
|
|
4872
4783
|
benefits: s,
|
|
4873
4784
|
withShadow: !1,
|
|
4874
4785
|
tag: v,
|
|
4875
4786
|
promoTag: b,
|
|
4876
|
-
actions:
|
|
4787
|
+
actions: N("div", {
|
|
4877
4788
|
className: "flex gap-3",
|
|
4878
4789
|
children: [l && g(q, {
|
|
4879
4790
|
variant: l.variant,
|
|
4880
|
-
label:
|
|
4791
|
+
label: W ? o.label : l.label,
|
|
4881
4792
|
icon: l.icon || void 0,
|
|
4882
4793
|
onClick: G,
|
|
4883
4794
|
loading: l.loading,
|
|
@@ -4892,10 +4803,10 @@ function Ar({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
4892
4803
|
})
|
|
4893
4804
|
})
|
|
4894
4805
|
})
|
|
4895
|
-
}), D && w && g(
|
|
4806
|
+
}), D && w && g(ft, {
|
|
4896
4807
|
open: !0,
|
|
4897
4808
|
onClose: () => {
|
|
4898
|
-
|
|
4809
|
+
M(), R(null);
|
|
4899
4810
|
},
|
|
4900
4811
|
success: D === "success",
|
|
4901
4812
|
errorMessage: r,
|
|
@@ -4906,32 +4817,32 @@ function Ar({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
4906
4817
|
})]
|
|
4907
4818
|
});
|
|
4908
4819
|
}
|
|
4909
|
-
function
|
|
4910
|
-
const [c, l] =
|
|
4820
|
+
function Ms({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
|
|
4821
|
+
const [c, l] = L(!1), d = () => {
|
|
4911
4822
|
l(!0), i && i();
|
|
4912
4823
|
};
|
|
4913
4824
|
ce(() => {
|
|
4914
4825
|
n && n(!c);
|
|
4915
4826
|
}, [n, c]);
|
|
4916
4827
|
const f = a == null ? void 0 : a.includes(".mp4");
|
|
4917
|
-
return g(
|
|
4918
|
-
children: c ? null :
|
|
4828
|
+
return g(be, {
|
|
4829
|
+
children: c ? null : N(zi, {
|
|
4919
4830
|
style: {
|
|
4920
4831
|
width: r
|
|
4921
4832
|
},
|
|
4922
4833
|
className: "relative bg-f1-background p-1",
|
|
4923
|
-
children: [
|
|
4834
|
+
children: [N(Di, {
|
|
4924
4835
|
children: [s && g("div", {
|
|
4925
4836
|
className: "absolute right-2 top-2 z-10",
|
|
4926
4837
|
children: g(q, {
|
|
4927
4838
|
variant: "ghost",
|
|
4928
|
-
icon:
|
|
4839
|
+
icon: ut,
|
|
4929
4840
|
size: "sm",
|
|
4930
4841
|
hideLabel: !0,
|
|
4931
4842
|
onClick: d,
|
|
4932
4843
|
label: "Close"
|
|
4933
4844
|
})
|
|
4934
|
-
}),
|
|
4845
|
+
}), N("div", {
|
|
4935
4846
|
children: [g("div", {
|
|
4936
4847
|
children: a && (f ? g("video", {
|
|
4937
4848
|
src: a,
|
|
@@ -4945,20 +4856,20 @@ function ir({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
4945
4856
|
alt: e,
|
|
4946
4857
|
className: "h-full w-full rounded-md"
|
|
4947
4858
|
}))
|
|
4948
|
-
}),
|
|
4859
|
+
}), N("div", {
|
|
4949
4860
|
className: "flex flex-col gap-[2px] p-3",
|
|
4950
|
-
children: [g(
|
|
4861
|
+
children: [g(Ie, {
|
|
4951
4862
|
className: "text-lg font-medium",
|
|
4952
4863
|
children: e
|
|
4953
|
-
}), g(
|
|
4864
|
+
}), g(Ie, {
|
|
4954
4865
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
4955
4866
|
children: t
|
|
4956
4867
|
})]
|
|
4957
4868
|
})]
|
|
4958
4869
|
})]
|
|
4959
|
-
}), o && g(
|
|
4870
|
+
}), o && g(Si, {
|
|
4960
4871
|
className: "p-3",
|
|
4961
|
-
children: o.map((p) => p.type === "upsell" ? g(
|
|
4872
|
+
children: o.map((p) => p.type === "upsell" ? g(gt, {
|
|
4962
4873
|
label: p.label,
|
|
4963
4874
|
onRequest: p.onClick,
|
|
4964
4875
|
errorMessage: p.errorMessage,
|
|
@@ -4977,8 +4888,8 @@ function ir({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
4977
4888
|
})
|
|
4978
4889
|
});
|
|
4979
4890
|
}
|
|
4980
|
-
const
|
|
4981
|
-
const r = (h) => h.variant === "promote" ? g(
|
|
4891
|
+
const Hs = $(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
4892
|
+
const r = (h) => h.variant === "promote" ? g(gt, {
|
|
4982
4893
|
label: h.label,
|
|
4983
4894
|
onRequest: async () => {
|
|
4984
4895
|
await h.onClick();
|
|
@@ -4998,7 +4909,7 @@ const sr = U(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
4998
4909
|
size: "md",
|
|
4999
4910
|
icon: h.icon
|
|
5000
4911
|
}), n = (e == null ? void 0 : e.variant) !== "promote" ? e : void 0, o = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0;
|
|
5001
|
-
return
|
|
4912
|
+
return N(Pi, {
|
|
5002
4913
|
ref: s,
|
|
5003
4914
|
...i,
|
|
5004
4915
|
primaryAction: n,
|
|
@@ -5006,9 +4917,9 @@ const sr = U(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5006
4917
|
children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
|
|
5007
4918
|
});
|
|
5008
4919
|
});
|
|
5009
|
-
|
|
5010
|
-
function
|
|
5011
|
-
const [w, C] =
|
|
4920
|
+
Hs.displayName = "UpsellingBanner";
|
|
4921
|
+
function fr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = ki, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: v, hideLabel: b = !1 }) {
|
|
4922
|
+
const [w, C] = L(!1), [E, D] = L(null), [R, k] = L(null), O = (z) => {
|
|
5012
4923
|
e(z), v && v();
|
|
5013
4924
|
}, G = async (z) => {
|
|
5014
4925
|
if (z.type === "upsell") {
|
|
@@ -5019,17 +4930,17 @@ function Tr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5019
4930
|
C(!0), D("error");
|
|
5020
4931
|
}
|
|
5021
4932
|
}
|
|
5022
|
-
},
|
|
4933
|
+
}, M = () => {
|
|
5023
4934
|
D(null), C(!1), k(null), e(!1);
|
|
5024
|
-
},
|
|
4935
|
+
}, W = a && !w, x = m == null ? void 0 : m.map((z) => z.type === "upsell" ? {
|
|
5025
4936
|
...z,
|
|
5026
4937
|
onClick: () => G(z)
|
|
5027
4938
|
} : z);
|
|
5028
|
-
return
|
|
5029
|
-
children: [
|
|
5030
|
-
open:
|
|
4939
|
+
return N(be, {
|
|
4940
|
+
children: [N(st, {
|
|
4941
|
+
open: W,
|
|
5031
4942
|
onOpenChange: O,
|
|
5032
|
-
children: [g(
|
|
4943
|
+
children: [g(rt, {
|
|
5033
4944
|
asChild: !0,
|
|
5034
4945
|
children: g(q, {
|
|
5035
4946
|
variant: i,
|
|
@@ -5039,11 +4950,11 @@ function Tr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5039
4950
|
onClick: () => e(a),
|
|
5040
4951
|
hideLabel: b
|
|
5041
4952
|
})
|
|
5042
|
-
}), g(
|
|
4953
|
+
}), g(nt, {
|
|
5043
4954
|
side: n,
|
|
5044
4955
|
align: o,
|
|
5045
4956
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
5046
|
-
children: g(
|
|
4957
|
+
children: g(Ms, {
|
|
5047
4958
|
mediaUrl: c,
|
|
5048
4959
|
title: l,
|
|
5049
4960
|
description: d,
|
|
@@ -5051,60 +4962,60 @@ function Tr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5051
4962
|
dismissible: !1,
|
|
5052
4963
|
width: f,
|
|
5053
4964
|
trackVisibility: p,
|
|
5054
|
-
actions:
|
|
4965
|
+
actions: x,
|
|
5055
4966
|
showConfirmation: !1
|
|
5056
4967
|
})
|
|
5057
4968
|
})]
|
|
5058
|
-
}), (
|
|
4969
|
+
}), (R == null ? void 0 : R.type) === "upsell" && R.showConfirmation && E && g(ft, {
|
|
5059
4970
|
open: !0,
|
|
5060
|
-
onClose:
|
|
4971
|
+
onClose: M,
|
|
5061
4972
|
success: E === "success",
|
|
5062
|
-
errorMessage:
|
|
5063
|
-
successMessage:
|
|
5064
|
-
nextSteps:
|
|
5065
|
-
closeLabel:
|
|
4973
|
+
errorMessage: R.errorMessage,
|
|
4974
|
+
successMessage: R.successMessage,
|
|
4975
|
+
nextSteps: R.nextSteps,
|
|
4976
|
+
closeLabel: R.closeLabel,
|
|
5066
4977
|
portalContainer: null
|
|
5067
4978
|
})]
|
|
5068
4979
|
});
|
|
5069
4980
|
}
|
|
5070
|
-
const
|
|
5071
|
-
const t = Q(null), [i, s] =
|
|
5072
|
-
return
|
|
4981
|
+
const Bs = _e(null), Fs = ({ children: a, fullScreen: e = !0 }) => {
|
|
4982
|
+
const t = Q(null), [i, s] = L(t.current);
|
|
4983
|
+
return Ii(() => {
|
|
5073
4984
|
s(t.current);
|
|
5074
|
-
}, []), g(
|
|
4985
|
+
}, []), g(Bs.Provider, {
|
|
5075
4986
|
value: {
|
|
5076
4987
|
element: i
|
|
5077
4988
|
},
|
|
5078
4989
|
children: g("div", {
|
|
5079
4990
|
ref: t,
|
|
5080
4991
|
id: "f0-layout",
|
|
5081
|
-
className:
|
|
4992
|
+
className: B({
|
|
5082
4993
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
|
|
5083
4994
|
}),
|
|
5084
4995
|
children: a
|
|
5085
4996
|
})
|
|
5086
4997
|
});
|
|
5087
|
-
},
|
|
4998
|
+
}, Ws = ({ children: a }) => g(Wi, {
|
|
5088
4999
|
reducedMotion: "user",
|
|
5089
5000
|
children: a
|
|
5090
|
-
}),
|
|
5091
|
-
children: g(
|
|
5001
|
+
}), gr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(Ws, {
|
|
5002
|
+
children: g(Oi, {
|
|
5092
5003
|
isDev: o,
|
|
5093
5004
|
showExperimentalWarnings: c,
|
|
5094
|
-
children: g(
|
|
5005
|
+
children: g(Ai, {
|
|
5095
5006
|
...n,
|
|
5096
|
-
children: g(
|
|
5007
|
+
children: g(Ti, {
|
|
5097
5008
|
...r,
|
|
5098
|
-
children: g(
|
|
5009
|
+
children: g(Li, {
|
|
5099
5010
|
...t,
|
|
5100
|
-
children: g(
|
|
5011
|
+
children: g(Fs, {
|
|
5101
5012
|
...e,
|
|
5102
|
-
children: g(
|
|
5103
|
-
children: g(
|
|
5013
|
+
children: g(Mi, {
|
|
5014
|
+
children: g(Hi, {
|
|
5104
5015
|
initiallyEnabled: i,
|
|
5105
|
-
children: g(
|
|
5016
|
+
children: g(Bi, {
|
|
5106
5017
|
...s,
|
|
5107
|
-
children: g(
|
|
5018
|
+
children: g(Fi, {
|
|
5108
5019
|
handler: h,
|
|
5109
5020
|
children: a
|
|
5110
5021
|
})
|
|
@@ -5116,108 +5027,108 @@ const rr = _e(null), nr = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5116
5027
|
})
|
|
5117
5028
|
})
|
|
5118
5029
|
})
|
|
5119
|
-
}),
|
|
5030
|
+
}), qe = (a) => `datacollection-${a}`, pr = {
|
|
5120
5031
|
get: async (a) => JSON.parse(
|
|
5121
|
-
localStorage.getItem(
|
|
5032
|
+
localStorage.getItem(qe(a)) ?? "{}"
|
|
5122
5033
|
),
|
|
5123
5034
|
set: async (a, e) => {
|
|
5124
|
-
localStorage.setItem(
|
|
5035
|
+
localStorage.setItem(qe(a), JSON.stringify(e));
|
|
5125
5036
|
}
|
|
5126
5037
|
};
|
|
5127
5038
|
export {
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5039
|
+
Ks as AreaChart,
|
|
5040
|
+
yr as Await,
|
|
5041
|
+
Vs as BarChart,
|
|
5042
|
+
qs as CategoryBarChart,
|
|
5043
|
+
Qs as ComboChart,
|
|
5044
|
+
br as DndProvider,
|
|
5045
|
+
_r as EmojiImage,
|
|
5046
|
+
xr as F0Avatar,
|
|
5047
|
+
wr as F0AvatarAlert,
|
|
5048
|
+
Er as F0AvatarCompany,
|
|
5049
|
+
Cr as F0AvatarDate,
|
|
5050
|
+
Rr as F0AvatarEmoji,
|
|
5051
|
+
Nr as F0AvatarFile,
|
|
5052
|
+
zr as F0AvatarIcon,
|
|
5053
|
+
Dr as F0AvatarList,
|
|
5054
|
+
ct as F0AvatarModule,
|
|
5055
|
+
Sr as F0AvatarPerson,
|
|
5056
|
+
Pr as F0AvatarTeam,
|
|
5146
5057
|
q as F0Button,
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5058
|
+
kr as F0ButtonDropdown,
|
|
5059
|
+
Or as F0ButtonToggle,
|
|
5060
|
+
Ar as F0Card,
|
|
5061
|
+
Tr as F0Checkbox,
|
|
5062
|
+
or as F0ChipList,
|
|
5063
|
+
Lr as F0DatePicker,
|
|
5064
|
+
Mr as F0EventCatcherProvider,
|
|
5065
|
+
cr as F0GridStack,
|
|
5066
|
+
vs as F0Heading,
|
|
5067
|
+
xi as F0Icon,
|
|
5068
|
+
Hr as F0Link,
|
|
5069
|
+
gr as F0Provider,
|
|
5070
|
+
Br as F0Select,
|
|
5071
|
+
Fr as F0TagAlert,
|
|
5072
|
+
Wr as F0TagBalance,
|
|
5073
|
+
Ir as F0TagCompany,
|
|
5074
|
+
Gr as F0TagDot,
|
|
5075
|
+
Ur as F0TagList,
|
|
5076
|
+
$r as F0TagPerson,
|
|
5077
|
+
bi as F0TagRaw,
|
|
5078
|
+
_i as F0TagStatus,
|
|
5079
|
+
jr as F0TagTeam,
|
|
5080
|
+
ys as F0Text,
|
|
5081
|
+
Kr as GROUP_ID_SYMBOL,
|
|
5082
|
+
dr as HomeLayout,
|
|
5083
|
+
Ys as LineChart,
|
|
5084
|
+
Vr as OneFilterPicker,
|
|
5085
|
+
Xs as PieChart,
|
|
5086
|
+
Hi as PrivacyModeProvider,
|
|
5087
|
+
Pt as ProductBlankslate,
|
|
5088
|
+
qr as ProductCard,
|
|
5089
|
+
ur as ProductModal,
|
|
5090
|
+
Ms as ProductWidget,
|
|
5091
|
+
Zs as ProgressBarChart,
|
|
5092
|
+
lr as StandardLayout,
|
|
5093
|
+
Yr as TagCounter,
|
|
5094
|
+
hr as TwoColumnLayout,
|
|
5095
|
+
ft as UpsellRequestResponseDialog,
|
|
5096
|
+
Hs as UpsellingBanner,
|
|
5097
|
+
gt as UpsellingButton,
|
|
5098
|
+
fr as UpsellingPopover,
|
|
5099
|
+
Js as VerticalBarChart,
|
|
5100
|
+
js as avatarVariants,
|
|
5101
|
+
Xr as buildTranslations,
|
|
5102
|
+
sr as buttonDropdownSizes,
|
|
5103
|
+
ir as buttonDropdownVariants,
|
|
5104
|
+
tr as buttonSizes,
|
|
5105
|
+
rr as buttonToggleSizes,
|
|
5106
|
+
er as buttonVariants,
|
|
5107
|
+
Jr as createAtlaskitDriver,
|
|
5108
|
+
Zr as createDataSourceDefinition,
|
|
5109
|
+
pr as dataCollectionLocalStorageHandler,
|
|
5110
|
+
ar as datepickerSizes,
|
|
5111
|
+
xn as defaultTranslations,
|
|
5112
|
+
lt as experimental,
|
|
5113
|
+
Qr as getAnimationVariants,
|
|
5114
|
+
en as getDataSourcePaginationType,
|
|
5115
|
+
tn as getEmojiLabel,
|
|
5116
|
+
sn as isInfiniteScrollPagination,
|
|
5117
|
+
rn as isPageBasedPagination,
|
|
5118
|
+
nr as linkVariants,
|
|
5119
|
+
nn as modules,
|
|
5120
|
+
on as predefinedPresets,
|
|
5121
|
+
an as selectSizes,
|
|
5122
|
+
ln as tagDotColors,
|
|
5123
|
+
hn as useData,
|
|
5124
|
+
dn as useDataSource,
|
|
5125
|
+
cn as useDndEvents,
|
|
5126
|
+
un as useDraggable,
|
|
5127
|
+
fn as useDroppableList,
|
|
5128
|
+
gn as useEmojiConfetti,
|
|
5129
|
+
pn as useGroups,
|
|
5130
|
+
mn as usePrivacyMode,
|
|
5131
|
+
vn as useReducedMotion,
|
|
5132
|
+
yn as useSelectable,
|
|
5133
|
+
bn as useXRay
|
|
5223
5134
|
};
|