@factorialco/f0-react 1.297.0 → 1.298.0

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/f0.js CHANGED
@@ -1,60 +1,59 @@
1
- import { S as Ge, a as Kt, f as Ce, L as J, b as Vt, A as qt, i as ae, c as tt, d as it, E as Xt, g as he, e as Yt, h as Jt, C as Zt, j as Qt, k as V, l as st, u as ei, G as ti, m as ii, n as $e, o as si, p as rt, q as ri, B as nt, X as ot, Y as ze, r as ni, s as at, t as oi, v as ai, w as li, x as hi, y as di, z as ci, D as ui, F as fi, H as Ue, I as gi, J as Z, K as Ne, M as pi, N as mi, O as vi, P as lt, Q as L, R as F, T as yi, U as bi, V as xi, W as _i, Z as wi, _ as Ei, $ as Ci, a0 as ht, a1 as Ni, a2 as de, a3 as dt, a4 as ct, a5 as Ri, a6 as ut, a7 as ft, a8 as gt, a9 as pt, aa as zi, ab as Di, ac as mt, ad as Pi, ae as Si, af as vt, ag as ki, ah as yt, ai as Oi, aj as Ai, ak as Ti, al as Li, am as Mi, an as Hi, ao as Bi, ap as Fi, aq as bt, ar as q, as as xt, at as Ii, au as Wi, av as je, aw as Gi, ax as _t, ay as $i, az as Ui, aA as ji, aB as Ki, aC as Vi, aD as qi, aE as Xi, aF as Yi, aG as Ji, aH as Zi, aI as Qi, aJ as es } from "./hooks-BspXl5nS.js";
2
- import { bc as Fr, bp as Ir, by as Wr, aK as Gr, aL as $r, aM as Ur, aN as jr, aO as Kr, aP as Vr, aQ as qr, aR as Xr, aT as Yr, aU as Jr, aV as Zr, aW as Qr, aX as en, aY as tn, aZ as sn, bu as rn, a$ as nn, b0 as on, b3 as an, b4 as ln, b5 as hn, b6 as dn, b9 as cn, ba as un, bb as fn, be as gn, b2 as pn, bd as mn, b8 as vn, bv as yn, bo as bn, bj as xn, bm as _n, bi as wn, bz as En, bh as Cn, bg as Nn, aS as Rn, a_ as zn, b1 as Dn, b7 as Pn, bf as Sn, bk as kn, bq as On, br as An, bs as Tn, bA as Ln, bl as Mn, bt as Hn, bx as Bn, bn as Fn, bw as In } from "./hooks-BspXl5nS.js";
3
- import { jsx as g, jsxs as R, Fragment as xe } from "react/jsx-runtime";
4
- import * as ke from "react";
5
- import P, { PureComponent as ts, useState as M, forwardRef as U, createElement as Ke, useRef as Q, useImperativeHandle as wt, Children as is, createContext as _e, useContext as Et, useCallback as K, useEffect as ce, useLayoutEffect as Ve, useMemo as Ct } from "react";
6
- import { createPortal as ss } from "react-dom";
7
- import { defaultTranslations as Gn } from "./i18n-provider-defaults.js";
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-D-lZODNt.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-D-lZODNt.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 X(a) {
14
+ function Y(a) {
16
15
  "@babel/helpers - typeof";
17
- return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
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
- }, X(a);
20
+ }, Y(a);
22
21
  }
23
- function rs(a, e) {
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 ns(a, e) {
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, zt(i.key), i);
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 os(a, e, t) {
34
- return e && ns(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
32
+ function Vi(a, e, t) {
33
+ return e && Ki(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
35
34
  }
36
- function as(a, e, t) {
37
- return e = ue(e), ls(a, Nt() ? Reflect.construct(e, t || [], ue(a).constructor) : e.apply(a, t));
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 ls(a, e) {
40
- if (e && (X(e) === "object" || typeof e == "function"))
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 hs(a);
43
+ return Xi(a);
45
44
  }
46
- function hs(a) {
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 Nt() {
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 (Nt = function() {
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 ds(a, e) {
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 && De(a, 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 De(a, e) {
72
- return De = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
70
+ function ze(a, e) {
71
+ return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
73
72
  return i.__proto__ = s, i;
74
- }, De(a, e);
73
+ }, ze(a, e);
75
74
  }
76
- function Rt(a, e, t) {
77
- return e = zt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
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 zt(a) {
80
- var e = cs(a, "string");
81
- return X(e) == "symbol" ? e : e + "";
78
+ function _t(a) {
79
+ var e = Zi(a, "string");
80
+ return Y(e) == "symbol" ? e : e + "";
82
81
  }
83
- function cs(a, e) {
84
- if (X(a) != "object" || !a) return a;
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 (X(i) != "object") return i;
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 we = /* @__PURE__ */ function(a) {
92
+ var xe = /* @__PURE__ */ function(a) {
94
93
  function e() {
95
- return rs(this, e), as(this, e, arguments);
94
+ return ji(this, e), qi(this, e, arguments);
96
95
  }
97
- return ds(e, a), os(e, [{
96
+ return Ji(e, a), Vi(e, [{
98
97
  key: "render",
99
98
  value: function() {
100
99
  return null;
101
100
  }
102
101
  }]);
103
- }(P.Component);
104
- Rt(we, "displayName", "ZAxis");
105
- Rt(we, "defaultProps", {
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 us = ["option", "isActive"];
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 fs(a, e) {
121
+ function es(a, e) {
123
122
  if (a == null) return {};
124
- var t = gs(a, e), i, s;
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 gs(a, e) {
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 ps(a) {
143
- var e = a.option, t = a.isActive, i = fs(a, us);
144
- return typeof e == "string" ? /* @__PURE__ */ P.createElement(Ge, ee({
145
- option: /* @__PURE__ */ P.createElement(Kt, ee({
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__ */ P.createElement(Ge, ee({
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 Y(a) {
155
+ function X(a) {
157
156
  "@babel/helpers - typeof";
158
- return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
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
- }, Y(a);
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 qe(a, e) {
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 ? qe(Object(t), !0).forEach(function(i) {
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)) : qe(Object(t)).forEach(function(i) {
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 ms(a, e) {
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 Xe(a, e) {
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, Pt(i.key), i);
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 vs(a, e, t) {
206
- return e && Xe(a.prototype, e), t && Xe(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
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 ys(a, e, t) {
209
- return e = fe(e), bs(a, Dt() ? Reflect.construct(e, t || [], fe(a).constructor) : e.apply(a, t));
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 bs(a, e) {
212
- if (e && (Y(e) === "object" || typeof e == "function"))
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 xs(a);
215
+ return as(a);
217
216
  }
218
- function xs(a) {
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 Dt() {
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 (Dt = function() {
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 _s(a, e) {
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 && Pe(a, 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 Pe(a, e) {
244
- return Pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
242
+ function De(a, e) {
243
+ return De = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
245
244
  return i.__proto__ = s, i;
246
- }, Pe(a, e);
245
+ }, De(a, e);
247
246
  }
248
247
  function j(a, e, t) {
249
- return e = Pt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
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 Pt(a) {
252
- var e = ws(a, "string");
253
- return Y(e) == "symbol" ? e : e + "";
250
+ function wt(a) {
251
+ var e = hs(a, "string");
252
+ return X(e) == "symbol" ? e : e + "";
254
253
  }
255
- function ws(a, e) {
256
- if (Y(a) != "object" || !a) return a;
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 (Y(i) != "object") return i;
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
- ms(this, e);
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 = ys(this, e, [].concat(s)), j(t, "state", {
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", ei("recharts-scatter-")), t;
280
+ }), j(t, "id", It("recharts-scatter-")), t;
282
281
  }
283
- return _s(e, a), vs(e, [{
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 = Ce(this.props, !1);
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__ */ P.createElement(J, te({
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
- }, Vt(s.props, l, d), {
291
+ }, Tt(s.props, l, d), {
293
292
  role: "img"
294
- }), /* @__PURE__ */ P.createElement(ps, te({
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__ */ P.createElement(qt, {
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 N = ae(0, v.size);
329
+ var R = ae(0, v.size);
331
330
  return T(T({}, v), {}, {
332
- size: N(p)
331
+ size: R(p)
333
332
  });
334
333
  });
335
- return /* @__PURE__ */ P.createElement(J, null, i.renderSymbolsStatically(m));
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 || !tt(n, s)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(s);
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 = it(h, Xt);
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__ */ P.cloneElement(l, {
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 = Ce(this.props, !1), c = Ce(r, !1), l, d;
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 = Yt(s), p = f.xmin, m = f.xmax, v = f.a, b = f.b, w = function(D) {
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__ */ P.isValidElement(r) ? d = /* @__PURE__ */ P.cloneElement(r, C) : Jt(r) ? d = r(C) : d = /* @__PURE__ */ P.createElement(Zt, te({}, C, {
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__ */ P.createElement(J, {
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 = Qt("recharts-scatter", o), C = h && h.allowDataOverflow, E = c && c.allowDataOverflow, D = C || E, N = V(m) ? this.id : m;
413
- return /* @__PURE__ */ P.createElement(J, {
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(N, ")") : null
416
- }, C || E ? /* @__PURE__ */ P.createElement("defs", null, /* @__PURE__ */ P.createElement("clipPath", {
417
- id: "clipPath-".concat(N)
418
- }, /* @__PURE__ */ P.createElement("rect", {
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__ */ P.createElement(J, {
422
+ }))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ S.createElement(J, {
424
423
  key: "recharts-scatter-symbols"
425
- }, this.renderSymbols()), (!v || b) && st.renderCallByParent(this.props, r));
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
- }(ts);
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: !ti.isSsr,
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 = it(s.props.children, ii), 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 : we.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) {
458
- var N = he(E, d), k = he(E, f), O = !V(p) && he(E, p) || "-", G = [{
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: N,
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 H = $e({
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
- }), I = $e({
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
- }), _ = O !== "-" ? i.scale(O) : v, z = Math.sqrt(Math.max(_, 0) / Math.PI);
494
+ }), x = O !== "-" ? i.scale(O) : v, z = Math.sqrt(Math.max(x, 0) / Math.PI);
496
495
  return T(T({}, E), {}, {
497
- cx: H,
498
- cy: I,
499
- x: H - z,
500
- y: I - z,
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: N,
507
+ x: R,
509
508
  y: k,
510
509
  z: O
511
510
  },
512
511
  tooltipPayload: G,
513
512
  tooltipPosition: {
514
- x: H,
515
- y: I
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 Es = si({
523
+ var ds = $t({
525
524
  chartName: "ComposedChart",
526
- GraphicalChild: [rt, ri, nt, re],
525
+ GraphicalChild: [Ze, jt, Qe, re],
527
526
  axisComponents: [{
528
527
  axisType: "xAxis",
529
- AxisComp: ot
528
+ AxisComp: et
530
529
  }, {
531
530
  axisType: "yAxis",
532
- AxisComp: ze
531
+ AxisComp: Ne
533
532
  }, {
534
533
  axisType: "zAxis",
535
- AxisComp: we
534
+ AxisComp: xe
536
535
  }],
537
- formatAxisMap: ni
536
+ formatAxisMap: Kt
538
537
  });
539
- const Cs = (a) => {
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
- }, Ns = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
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, H, I;
567
- const v = oi(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((_) => E.map((z) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${_[z]}`) : `${_[z]}`)))), N = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "left"), k = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "right");
568
- return g(li, {
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: R(Es, {
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 || !_.activeLabel || !_.activePayload)
581
+ onClick: (x) => {
582
+ if (!p || !x.activeLabel || !x.activePayload)
584
583
  return;
585
584
  const z = {
586
- label: _.activeLabel,
585
+ label: x.activeLabel,
587
586
  values: {}
588
587
  };
589
- for (const ne of _.activePayload)
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(hi, {
594
- ...di(),
595
- content: g(ci, {
592
+ children: [!r && g(Xt, {
593
+ ...Jt(),
594
+ content: g(Zt, {
596
595
  yAxisFormatter: i.tickFormatter
597
596
  })
598
- }), !n && g(ui, {
599
- ...fi()
600
- }), N.length > 0 && g(ze, {
601
- ...Ue(i),
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 = N[0]) != null && O.axisLabel) ? 20 : 0),
604
- hide: i.hide || N.some((_) => _ == null ? void 0 : _.hideAxis),
605
- label: (G = N[0]) != null && G.axisLabel ? {
606
- value: N[0].axisLabel,
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(ze, {
611
- ...Ue(i),
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 + (N.length > 0 && ((H = k[0]) != null && H.axisLabel) ? 20 : 0),
616
- hide: i.hide || k.some((_) => _ == null ? void 0 : _.hideAxis),
617
- label: (I = k[0]) != null && I.axisLabel ? {
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(ot, {
623
- ...gi(t),
621
+ }), g(et, {
622
+ ...ti(t),
624
623
  hide: t == null ? void 0 : t.hide,
625
- tick: c ? (_) => {
626
- var Ie, We;
627
- const { x: z, y: ne, payload: Be } = _, Fe = ((Ie = e.find((jt) => jt.label === Be.value)) == null ? void 0 : Ie.values) || "", oe = Object.keys(Fe).length === 1 ? (We = Object.values(Fe)) == null ? void 0 : We[0] : void 0, Ut = oe !== void 0 && i.tickFormatter ? i.tickFormatter(`${oe}`) : oe.toLocaleString();
628
- return R("g", {
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: Be.value
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: Ut
642
+ children: kt
644
643
  })]
645
644
  });
646
645
  } : void 0
647
- }), b.map((_, z) => g(nt, {
646
+ }), b.map((x, z) => g(Qe, {
648
647
  isAnimationActive: !1,
649
- dataKey: String(_),
650
- fill: a[_].color ? Z(a[_].color) : Ne(z),
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(st, {
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(_)}`)), w.map((_, z) => g(rt, {
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[_].color ? Z(a[_].color) : Ne(b.length + z),
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(_)}`)), C.map((_, z) => g(re, {
668
- dataKey: String(_),
669
- fill: a[_].color ? Z(a[_].color) : Ne(b.length + w.length + z),
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: Cs(String(_))
674
- }, `scatter-${String(_)}`)), h && g(pi, {
675
- content: g(mi, {
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
- }, Rs = at(Ns);
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 R("div", {
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(Lt, {
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
- }, Ls = at(Ts), fr = F(
705
+ }, ps = tt(gs), Ks = F(
795
706
  {
796
707
  name: "AreaChart",
797
708
  type: "info"
798
709
  },
799
- Ei
800
- ), gr = F(
710
+ di
711
+ ), Vs = F(
801
712
  {
802
713
  name: "BarChart",
803
714
  type: "info"
804
715
  },
805
- yi
806
- ), pr = F(
716
+ ni
717
+ ), qs = F(
807
718
  {
808
719
  name: "CategoryBarChart",
809
720
  type: "info"
810
721
  },
811
- bi
812
- ), mr = F(
722
+ oi
723
+ ), Ys = F(
813
724
  {
814
725
  name: "LineChart",
815
726
  type: "info"
816
727
  },
817
- xi
818
- ), vr = F(
728
+ ai
729
+ ), Xs = F(
819
730
  {
820
731
  name: "PieChart",
821
732
  type: "info"
822
733
  },
823
- _i
824
- ), yr = F(
734
+ li
735
+ ), Js = F(
825
736
  {
826
737
  name: "VerticalBarChart",
827
738
  type: "info"
828
739
  },
829
- wi
830
- ), br = F(
740
+ hi
741
+ ), Zs = F(
831
742
  {
832
743
  name: "ProgressBarChart",
833
744
  type: "info"
834
745
  },
835
- Ls
836
- ), xr = F(
746
+ ps
747
+ ), Qs = F(
837
748
  {
838
749
  name: "ComboChart",
839
750
  type: "info"
840
751
  },
841
- Rs
842
- ), _r = Ci.filter(
752
+ fs
753
+ ), er = ci.filter(
843
754
  (a) => a !== "ai"
844
- ), wr = ht, Er = ["default", "outline", "neutral"], Cr = ht, Nr = ["sm", "md", "lg"], Rr = Ni, Se = ({ count: a, list: e }) => {
845
- const [t, i] = M(!1), s = g(de, {
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 ? R(dt, {
759
+ return e != null && e.length ? N(st, {
849
760
  open: t,
850
761
  onOpenChange: i,
851
- children: [g(ct, {
762
+ children: [g(rt, {
852
763
  asChild: !0,
853
764
  children: g("button", {
854
- className: Ri("inline-flex flex-shrink-0 items-center"),
765
+ className: fi("inline-flex flex-shrink-0 items-center"),
855
766
  children: s
856
767
  })
857
- }), g(ut, {
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: R(ft, {
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(gt, {
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 Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
787
+ const Et = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
877
788
  if (i === "fill")
878
- return g(zi, {
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 R("div", {
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
- Mt.displayName = "F0ChipList";
904
- const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
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
- }), Ms = {
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
- }, Te = U(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...h }, c) => {
965
- const l = s ?? Ms[e ?? "body"];
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(Pi, {
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: L(Re({
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 = Si(a);
982
- return Ke(l, {
892
+ const d = vi(a);
893
+ return Ge(l, {
983
894
  ...h,
984
- className: L(Re({
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 Ke(l, {
905
+ return Ge(l, {
995
906
  ...h,
996
- className: L(Re({
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
- Te.displayName = "Text";
1004
- const Hs = U((a, e) => g(Te, {
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
- Hs.displayName = "F0Heading";
1010
- const Bs = U((a, e) => g(Te, {
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
- Bs.displayName = "F0Text";
1016
- const Fs = {
926
+ ys.displayName = "F0Text";
927
+ const bs = {
1017
928
  xs: 1,
1018
929
  sm: 2,
1019
930
  md: 2,
1020
931
  lg: 2
1021
- }, Is = U(function({ widgets: e, children: t }, i) {
932
+ }, _s = $(function({ widgets: e, children: t }, i) {
1022
933
  const s = Q(null);
1023
- wt(i, () => s.current);
1024
- const r = is.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
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(vt, {
939
+ return g(dt, {
1029
940
  layout: "home",
1030
- children: R("div", {
941
+ children: N("div", {
1031
942
  ref: s,
1032
943
  className: "@container",
1033
- children: [R("div", {
944
+ children: [N("div", {
1034
945
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
1035
- children: [g(ki, {
1036
- columns: Fs,
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
- }), R("div", {
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
- }), Ws = U(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
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: R("div", {
1062
- className: L("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"),
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: L("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"),
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(Gs, {
977
+ }), g(ws, {
1067
978
  sticky: s,
1068
- className: L("order-1", i === "right" ? "md:order-1" : "md:order-3"),
979
+ className: B("order-1", i === "right" ? "md:order-1" : "md:order-3"),
1069
980
  children: t
1070
981
  })]
1071
982
  })
1072
983
  });
1073
- }), Gs = ({ children: a, className: e }) => g("aside", {
1074
- className: L("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
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
- }), $s = mt({
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
- }), Ht = P.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(vt, {
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: L("relative flex-1 overflow-auto", t),
998
+ className: B("relative flex-1 overflow-auto", t),
1088
999
  ...i,
1089
1000
  children: g("div", {
1090
- className: L($s({
1001
+ className: B(Es({
1091
1002
  variant: e
1092
1003
  })),
1093
1004
  children: a
1094
1005
  })
1095
1006
  })
1096
1007
  }));
1097
- Ht.displayName = "StandardLayout";
1098
- const Pr = F({
1008
+ Ct.displayName = "StandardLayout";
1009
+ const lr = F({
1099
1010
  name: "StandardLayout",
1100
1011
  type: "layout"
1101
- }, Ht), Sr = F({
1012
+ }, Ct), hr = F({
1102
1013
  name: "TwoColumnLayout",
1103
1014
  type: "layout"
1104
- }, Ws), kr = F({
1015
+ }, xs), dr = F({
1105
1016
  name: "HomeLayout",
1106
1017
  type: "layout"
1107
- }, Is), Bt = _e(null);
1108
- function Le() {
1109
- const a = Et(Bt);
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 Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
1117
- const [s, r] = M(null), [n, o] = M(() => {
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(Bt.Provider, {
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 Ft = _e(null);
1195
- function js() {
1196
- const a = Et(Ft);
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 Ks = _e(null);
1204
- function Vs() {
1205
- const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } = js();
1206
- return g(xe, {
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(Ks.Provider, {
1121
+ return s ? g(Ns.Provider, {
1211
1122
  value: {
1212
1123
  widget: {
1213
1124
  id: t
1214
1125
  }
1215
1126
  },
1216
- children: ss((r = i.renderFn) == null ? void 0 : r.call(i), s)
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 qs(a, e, t, i, s) {
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 ?? $._idSeq++;
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) ?? $._idSeq++;
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 ?? $._idSeq++;
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
- $._idSeq = 0;
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 x {
2378
+ class _ {
2468
2379
  }
2469
- const B = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
2470
- class W {
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 pe(a, e) {
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 It(a, e) {
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
- W.touchHandled || (W.touchHandled = !0, pe(a, "mousedown"));
2393
+ I.touchHandled && ge(a, "mousemove");
2480
2394
  }
2481
2395
  function ve(a) {
2482
- W.touchHandled && pe(a, "mousemove");
2483
- }
2484
- function ye(a) {
2485
- if (!W.touchHandled)
2396
+ if (!I.touchHandled)
2486
2397
  return;
2487
- W.pointerLeaveTimeout && (window.clearTimeout(W.pointerLeaveTimeout), delete W.pointerLeaveTimeout);
2488
- const e = !!x.dragElement;
2489
- pe(a, "mouseup"), e || pe(a, "click"), W.touchHandled = !1;
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 be(a) {
2402
+ function ye(a) {
2492
2403
  a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
2493
2404
  }
2494
- function Ze(a) {
2495
- x.dragElement && a.pointerType !== "mouse" && It(a, "mouseenter");
2405
+ function Ke(a) {
2406
+ _.dragElement && a.pointerType !== "mouse" && zt(a, "mouseenter");
2496
2407
  }
2497
- function Qe(a) {
2498
- x.dragElement && a.pointerType !== "mouse" && (W.pointerLeaveTimeout = window.setTimeout(() => {
2499
- delete W.pointerLeaveTimeout, It(a, "mouseleave");
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 Ee {
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(`${Ee.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), B && (this.el.addEventListener("touchstart", me), this.el.addEventListener("pointerdown", be)), this;
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), B && (this.el.removeEventListener("touchstart", me), this.el.removeEventListener("pointerdown", be)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
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), B && (this.el.addEventListener("touchmove", ve), this.el.addEventListener("touchend", ye)), e.stopPropagation(), e.preventDefault();
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), B && (this.el.removeEventListener("touchmove", ve), this.el.removeEventListener("touchend", ye)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
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
- Ee.prefix = "ui-resizable-";
2539
- class Me {
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 Me {
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), x.overResizeElement === this && delete x.overResizeElement), this;
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
- x.overResizeElement || x.dragElement || (x.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
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
- x.overResizeElement === this && (delete x.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
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 Ee(this.el, e, {
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 Xs = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
2751
- class se extends Me {
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), B && (e.addEventListener("touchstart", me), e.addEventListener("pointerdown", be));
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), B && (t.removeEventListener("touchstart", me), t.removeEventListener("pointerdown", be));
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 (!x.mouseHandled)
2788
- return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Xs) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete x.dragElement, delete x.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (e.currentTarget.addEventListener("touchmove", ve), e.currentTarget.addEventListener("touchend", ye)), e.preventDefault(), document.activeElement && document.activeElement.blur(), x.mouseHandled = !0), !0;
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), x.pauseDrag) {
2803
- const s = Number.isInteger(x.pauseDrag) ? x.pauseDrag : 100;
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, x.dragElement = this;
2719
+ this.dragging = !0, _.dragElement = this;
2809
2720
  const s = (i = this.el.gridstackNode) == null ? void 0 : i.grid;
2810
- s ? x.dropElement = s.el.ddElement.ddDroppable : delete x.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);
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), B && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", ve, !0), e.currentTarget.removeEventListener("touchend", ye, !0)), this.dragging) {
2820
- delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i = x.dropElement) == null ? void 0 : i.el) === this.el.parentElement && delete x.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
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), x.dropElement && x.dropElement.drop(e);
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 x.dragElement, delete x.dropElement, delete x.mouseHandled, e.preventDefault();
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 = x.dropElement) == null ? void 0 : s.el) == null ? void 0 : r.gridstack);
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 Ys extends Me {
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), B && (this.el.addEventListener("pointerenter", Ze), this.el.addEventListener("pointerleave", Qe)));
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), B && (this.el.removeEventListener("pointerenter", Ze), this.el.removeEventListener("pointerleave", Qe)));
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 (!x.dragElement || !this._canDrop(x.dragElement.el))
2837
+ if (!_.dragElement || !this._canDrop(_.dragElement.el))
2927
2838
  return;
2928
- e.preventDefault(), e.stopPropagation(), x.dropElement && x.dropElement !== this && x.dropElement._mouseLeave(e, !0), x.dropElement = this;
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(x.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
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 (!x.dragElement || x.dropElement !== this)
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(x.dragElement)), this.triggerEvent("dropout", i), x.dropElement === this && (delete x.dropElement, !t)) {
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(x.dragElement)), this.triggerEvent("drop", t);
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 He {
2879
+ class Ae {
2969
2880
  static init(e) {
2970
- return e.ddElement || (e.ddElement = new He(e)), e.ddElement;
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 Ys(this.el, e), this;
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 Js {
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, x.dragElement ? x.dragElement.el : r.target, x.dragElement ? x.dragElement.helper : null);
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 ? He.init(n) : null)).filter((n) => n) : [];
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 S = new Js();
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 = B), this._setStaticClass();
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 && !x.pauseDrag && (x.pauseDrag = !0), ((c = t.draggable) == null ? void 0 : c.pause) !== void 0 && (x.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
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 S;
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 && (x.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? u.getElements(e, s) : e).forEach((n, o) => {
4258
- S.isDraggable(n) || S.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
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 S.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
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 S.droppable(this.el, "destroy"), this;
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
- S.off(r, "drag");
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 S.droppable(this.el, {
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), S.on(r, "drag", i), i(s, r, n), !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, S.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
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 && !S.isDroppable(e) && S.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;
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
- S.draggable(e, {
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 S.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
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
- S.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));
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 N = Math.max(0, o.y + s.h - D);
4602
- this.opts.maxRow && D + N > this.opts.maxRow && (N = Math.max(0, this.opts.maxRow - D)), this._extraDragRow = N;
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, S.off(e, "drag"), i._temporaryRemoved))
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 qs(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
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 Zs({ children: a }) {
4660
- const { _gridStack: { value: e, set: t }, initialOptions: i } = Le(), s = Q(/* @__PURE__ */ new Map()), r = Q(null), n = Q(i), o = K((c, l) => {
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 Ve(() => {
4667
- if (!tt(i, n.current) && e)
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]), Ve(() => {
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(Ft.Provider, {
4681
- value: Ct(() => ({
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 Wt = U((a, e) => {
4698
- const t = Le();
4699
- return wt(e, () => ({
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
- Wt.displayName = "RefHandler";
4707
- const Gt = U(({ options: a, widgets: e, onChange: t }, i) => {
4708
- const s = Ct(() => ({
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 R(Us, {
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(Wt, {
4646
+ children: [g(Dt, {
4736
4647
  ref: i
4737
- }), g(Zs, {
4738
- children: g(Vs, {})
4648
+ }), g(Os, {
4649
+ children: g(zs, {})
4739
4650
  })]
4740
4651
  });
4741
4652
  });
4742
- Gt.displayName = "F0GridStack";
4743
- const Or = pt(
4653
+ St.displayName = "F0GridStack";
4654
+ const cr = lt(
4744
4655
  "F0GridStack",
4745
- Gt
4746
- ), Qs = ({ benefits: a }) => g("div", {
4656
+ St
4657
+ ), As = ({ benefits: a }) => g("div", {
4747
4658
  className: "flex flex-col gap-2",
4748
- children: a.map((e, t) => g(er, {
4659
+ children: a.map((e, t) => g(Ts, {
4749
4660
  text: e
4750
4661
  }, t))
4751
- }), er = ({ text: a }) => R("div", {
4662
+ }), Ts = ({ text: a }) => N("div", {
4752
4663
  className: "flex flex-row items-start gap-2",
4753
- children: [g(Ti, {
4754
- icon: Li,
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
- }), $t = U(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => R("div", {
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: L("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
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
- }), R("div", {
4681
+ }), N("div", {
4771
4682
  className: "flex flex-col justify-center gap-8 px-8 py-5",
4772
- children: [R("div", {
4683
+ children: [N("div", {
4773
4684
  className: "flex flex-col gap-5",
4774
- children: [R("div", {
4685
+ children: [N("div", {
4775
4686
  className: "flex flex-col gap-2",
4776
- children: [R("div", {
4687
+ children: [N("div", {
4777
4688
  className: "flex flex-row items-center gap-2",
4778
- children: [r && g(yt, {
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) && R("div", {
4695
+ }), (o || h) && N("div", {
4785
4696
  className: "flex justify-start gap-2",
4786
- children: [o && g(Oi, {
4697
+ children: [o && g(bi, {
4787
4698
  icon: o.icon,
4788
4699
  text: o.label
4789
- }), h && g(Ai, {
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(Qs, {
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
- $t.displayName = "ProductBlankslate";
4807
- function tr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
4808
- const [n, o] = M(a);
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(Mi, {
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: R(Hi, {
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: [R("div", {
4731
+ children: [N("div", {
4821
4732
  className: "flex flex-row items-center justify-between px-4 py-4",
4822
- children: [R(Bi, {
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(yt, {
4735
+ children: [s && g(ct, {
4825
4736
  module: s,
4826
4737
  size: "lg"
4827
4738
  }), t]
4828
- }), g(Fi, {
4739
+ }), g(Ni, {
4829
4740
  variant: "outline",
4830
- icon: bt,
4741
+ icon: ut,
4831
4742
  onClick: e,
4832
4743
  label: "Close modal",
4833
4744
  hideLabel: !0
4834
4745
  })]
4835
- }), R(ft, {
4746
+ }), N(ot, {
4836
4747
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
4837
- children: [i, g(gt, {
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 Ar({ 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 }) {
4846
- const [C, E] = M(a), [D, N] = M(null), [k, O] = M(!1), G = async () => {
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 && N("success");
4761
+ await l.onClick(), E(!1), w && R("success");
4851
4762
  } catch {
4852
- w && N("error");
4763
+ w && R("error");
4853
4764
  } finally {
4854
4765
  O(!1);
4855
4766
  }
4856
4767
  }
4857
- }, H = () => {
4768
+ }, M = () => {
4858
4769
  E(!1), e == null || e();
4859
- }, I = k;
4860
- return R(xe, {
4861
- children: [g(tr, {
4770
+ }, W = k;
4771
+ return N(be, {
4772
+ children: [g(Ls, {
4862
4773
  isOpen: C,
4863
- onClose: H,
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($t, {
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: R("div", {
4787
+ actions: N("div", {
4877
4788
  className: "flex gap-3",
4878
4789
  children: [l && g(q, {
4879
4790
  variant: l.variant,
4880
- label: I ? o.label : l.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(xt, {
4806
+ }), D && w && g(ft, {
4896
4807
  open: !0,
4897
4808
  onClose: () => {
4898
- H(), N(null);
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 ir({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
4910
- const [c, l] = M(!1), d = () => {
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(xe, {
4918
- children: c ? null : R(Ii, {
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: [R(Wi, {
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: bt,
4839
+ icon: ut,
4929
4840
  size: "sm",
4930
4841
  hideLabel: !0,
4931
4842
  onClick: d,
4932
4843
  label: "Close"
4933
4844
  })
4934
- }), R("div", {
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
- }), R("div", {
4859
+ }), N("div", {
4949
4860
  className: "flex flex-col gap-[2px] p-3",
4950
- children: [g(je, {
4861
+ children: [g(Ie, {
4951
4862
  className: "text-lg font-medium",
4952
4863
  children: e
4953
- }), g(je, {
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(Gi, {
4870
+ }), o && g(Si, {
4960
4871
  className: "p-3",
4961
- children: o.map((p) => p.type === "upsell" ? g(_t, {
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 sr = U(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
4981
- const r = (h) => h.variant === "promote" ? g(_t, {
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 R($i, {
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
- sr.displayName = "UpsellingBanner";
5010
- function Tr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = Ui, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: v, hideLabel: b = !1 }) {
5011
- const [w, C] = M(!1), [E, D] = M(null), [N, k] = M(null), O = (z) => {
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
- }, H = () => {
4933
+ }, M = () => {
5023
4934
  D(null), C(!1), k(null), e(!1);
5024
- }, I = a && !w, _ = m == null ? void 0 : m.map((z) => z.type === "upsell" ? {
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 R(xe, {
5029
- children: [R(dt, {
5030
- open: I,
4939
+ return N(be, {
4940
+ children: [N(st, {
4941
+ open: W,
5031
4942
  onOpenChange: O,
5032
- children: [g(ct, {
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(ut, {
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(ir, {
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
- }), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation && E && g(xt, {
4969
+ }), (R == null ? void 0 : R.type) === "upsell" && R.showConfirmation && E && g(ft, {
5059
4970
  open: !0,
5060
- onClose: H,
4971
+ onClose: M,
5061
4972
  success: E === "success",
5062
- errorMessage: N.errorMessage,
5063
- successMessage: N.successMessage,
5064
- nextSteps: N.nextSteps,
5065
- closeLabel: N.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 rr = _e(null), nr = ({ children: a, fullScreen: e = !0 }) => {
5071
- const t = Q(null), [i, s] = M(t.current);
5072
- return es(() => {
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(rr.Provider, {
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: L({
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
- }, or = ({ children: a }) => g(Qi, {
4998
+ }, Ws = ({ children: a }) => g(Wi, {
5088
4999
  reducedMotion: "user",
5089
5000
  children: a
5090
- }), Lr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(or, {
5091
- children: g(ji, {
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(Ki, {
5005
+ children: g(Ai, {
5095
5006
  ...n,
5096
- children: g(Vi, {
5007
+ children: g(Ti, {
5097
5008
  ...r,
5098
- children: g(qi, {
5009
+ children: g(Li, {
5099
5010
  ...t,
5100
- children: g(nr, {
5011
+ children: g(Fs, {
5101
5012
  ...e,
5102
- children: g(Xi, {
5103
- children: g(Yi, {
5013
+ children: g(Mi, {
5014
+ children: g(Hi, {
5104
5015
  initiallyEnabled: i,
5105
- children: g(Ji, {
5016
+ children: g(Bi, {
5106
5017
  ...s,
5107
- children: g(Zi, {
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
- }), et = (a) => `datacollection-${a}`, Mr = {
5030
+ }), qe = (a) => `datacollection-${a}`, pr = {
5120
5031
  get: async (a) => JSON.parse(
5121
- localStorage.getItem(et(a)) ?? "{}"
5032
+ localStorage.getItem(qe(a)) ?? "{}"
5122
5033
  ),
5123
5034
  set: async (a, e) => {
5124
- localStorage.setItem(et(a), JSON.stringify(e));
5035
+ localStorage.setItem(qe(a), JSON.stringify(e));
5125
5036
  }
5126
5037
  };
5127
5038
  export {
5128
- fr as AreaChart,
5129
- Fr as Await,
5130
- gr as BarChart,
5131
- pr as CategoryBarChart,
5132
- xr as ComboChart,
5133
- Ir as DndProvider,
5134
- Wr as EmojiImage,
5135
- Gr as F0Avatar,
5136
- $r as F0AvatarAlert,
5137
- Ur as F0AvatarCompany,
5138
- jr as F0AvatarDate,
5139
- Kr as F0AvatarEmoji,
5140
- Vr as F0AvatarFile,
5141
- qr as F0AvatarIcon,
5142
- Xr as F0AvatarList,
5143
- yt as F0AvatarModule,
5144
- Yr as F0AvatarPerson,
5145
- Jr as F0AvatarTeam,
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
- Zr as F0ButtonDropdown,
5148
- Qr as F0ButtonToggle,
5149
- en as F0Card,
5150
- tn as F0Checkbox,
5151
- zr as F0ChipList,
5152
- sn as F0DatePicker,
5153
- rn as F0EventCatcherProvider,
5154
- Or as F0GridStack,
5155
- Hs as F0Heading,
5156
- Ti as F0Icon,
5157
- nn as F0Link,
5158
- Lr as F0Provider,
5159
- on as F0Select,
5160
- an as F0TagAlert,
5161
- ln as F0TagBalance,
5162
- hn as F0TagCompany,
5163
- dn as F0TagDot,
5164
- cn as F0TagList,
5165
- un as F0TagPerson,
5166
- Oi as F0TagRaw,
5167
- Ai as F0TagStatus,
5168
- fn as F0TagTeam,
5169
- Bs as F0Text,
5170
- gn as GROUP_ID_SYMBOL,
5171
- kr as HomeLayout,
5172
- mr as LineChart,
5173
- pn as OneFilterPicker,
5174
- vr as PieChart,
5175
- Yi as PrivacyModeProvider,
5176
- $t as ProductBlankslate,
5177
- mn as ProductCard,
5178
- Ar as ProductModal,
5179
- ir as ProductWidget,
5180
- br as ProgressBarChart,
5181
- Pr as StandardLayout,
5182
- vn as TagCounter,
5183
- Sr as TwoColumnLayout,
5184
- xt as UpsellRequestResponseDialog,
5185
- sr as UpsellingBanner,
5186
- _t as UpsellingButton,
5187
- Tr as UpsellingPopover,
5188
- yr as VerticalBarChart,
5189
- cr as avatarVariants,
5190
- yn as buildTranslations,
5191
- Cr as buttonDropdownSizes,
5192
- Er as buttonDropdownVariants,
5193
- wr as buttonSizes,
5194
- Nr as buttonToggleSizes,
5195
- _r as buttonVariants,
5196
- bn as createAtlaskitDriver,
5197
- xn as createDataSourceDefinition,
5198
- Mr as dataCollectionLocalStorageHandler,
5199
- Dr as datepickerSizes,
5200
- Gn as defaultTranslations,
5201
- pt as experimental,
5202
- _n as getAnimationVariants,
5203
- wn as getDataSourcePaginationType,
5204
- En as getEmojiLabel,
5205
- Cn as isInfiniteScrollPagination,
5206
- Nn as isPageBasedPagination,
5207
- Rr as linkVariants,
5208
- Rn as modules,
5209
- zn as predefinedPresets,
5210
- Dn as selectSizes,
5211
- Pn as tagDotColors,
5212
- Sn as useData,
5213
- kn as useDataSource,
5214
- On as useDndEvents,
5215
- An as useDraggable,
5216
- Tn as useDroppableList,
5217
- Ln as useEmojiConfetti,
5218
- Mn as useGroups,
5219
- Hn as usePrivacyMode,
5220
- Bn as useReducedMotion,
5221
- Fn as useSelectable,
5222
- In as useXRay
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
  };