@factorialco/f0-react 1.276.3 → 1.277.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimental.d.ts +152 -44
- package/dist/experimental.js +51 -50
- package/dist/f0.d.ts +152 -44
- package/dist/f0.js +464 -361
- package/dist/{hooks-D4s6Agu-.js → hooks-BPLedtdk.js} +9290 -9269
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,10 +1,113 @@
|
|
|
1
|
-
import { S as $e, a as qt, f as Re, L as Q, b as Kt, A as
|
|
2
|
-
import { be as
|
|
1
|
+
import { S as $e, a as qt, f as Re, L as Q, b as Kt, A as Vt, i as de, c as it, d as st, E as Yt, g as ue, e as Xt, h as Jt, C as Zt, j as Qt, k as V, l as rt, u as ei, G as ti, m as ii, n as je, o as si, p as nt, q as ri, B as ot, X as at, Y as Se, r as ni, s as lt, 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 ee, K as Ne, M as pi, N as mi, O as yi, P as ht, Q as j, R as I, T as vi, U as bi, V as wi, W as _i, Z as xi, _ as Ei, $ as Ci, a0 as dt, a1 as Ri, a2 as fe, a3 as ct, a4 as ut, a5 as Ni, a6 as ft, a7 as gt, a8 as pt, a9 as Ae, aa as Di, ab as mt, ac as Si, ad as zi, ae as ki, af as qe, ag as De, ah as Pi, ai as Ai, aj as yt, ak as Oi, al as Ti, am as vt, an as Li, ao as Mi, ap as Hi, aq as Bi, ar as Ii, as as Fi, at as Gi, au as Wi, av as bt, aw as X, ax as wt, ay as $i, az as ji, aA as Ke, aB as Ui, aC as _t, aD as qi, aE as Ki, aF as Vi, aG as Yi, aH as Xi, aI as Ji, aJ as Zi, aK as Qi, aL as es, aM as ts, aN as is, aO as ss } from "./hooks-BPLedtdk.js";
|
|
2
|
+
import { be as $r, br as jr, bA as Ur, aP as qr, aQ as Kr, aR as Vr, aS as Yr, aT as Xr, aU as Jr, aV as Zr, aW as Qr, aY as en, aZ as tn, a_ as sn, a$ as rn, b0 as nn, b1 as on, bw as an, b3 as ln, b5 as hn, b6 as dn, b7 as cn, b8 as un, bb as fn, bc as gn, bd as pn, bg as mn, b4 as yn, bf as vn, ba as bn, bx as wn, bq as _n, bl as xn, bo as En, bk as Cn, bB as Rn, bj as Nn, bi as Dn, aX as Sn, b2 as zn, b9 as kn, bh as Pn, bm as An, bs as On, bt as Tn, bu as Ln, bC as Mn, bn as Hn, bv as Bn, bz as In, bp as Fn, by as Gn } from "./hooks-BPLedtdk.js";
|
|
3
3
|
import { jsx as g, jsxs as z, Fragment as oe } from "react/jsx-runtime";
|
|
4
4
|
import * as Oe from "react";
|
|
5
|
-
import
|
|
5
|
+
import P, { PureComponent as rs, useState as A, forwardRef as K, useEffect as q, useMemo as te, useCallback as W, useRef as Y, useImperativeHandle as xt, Children as ns, createContext as xe, useContext as Et, useLayoutEffect as Ve } from "react";
|
|
6
6
|
import { createPortal as os } from "react-dom";
|
|
7
|
-
import './f0.css';const
|
|
7
|
+
import './f0.css';const as = {
|
|
8
|
+
ad: "Andorra",
|
|
9
|
+
ae: "United Arab Emirates",
|
|
10
|
+
af: "Afghanistan",
|
|
11
|
+
ag: "Antigua and Barbuda",
|
|
12
|
+
ai: "Anguilla",
|
|
13
|
+
al: "Albania",
|
|
14
|
+
am: "Armenia",
|
|
15
|
+
ao: "Angola",
|
|
16
|
+
ar: "Argentina",
|
|
17
|
+
as: "American Samoa",
|
|
18
|
+
at: "Austria",
|
|
19
|
+
au: "Australia",
|
|
20
|
+
aw: "Aruba",
|
|
21
|
+
ax: "Åland Islands",
|
|
22
|
+
az: "Azerbaijan",
|
|
23
|
+
ba: "Bosnia and Herzegovina",
|
|
24
|
+
bb: "Barbados",
|
|
25
|
+
bd: "Bangladesh",
|
|
26
|
+
be: "Belgium",
|
|
27
|
+
bf: "Burkina Faso",
|
|
28
|
+
bg: "Bulgaria",
|
|
29
|
+
bh: "Bahrain",
|
|
30
|
+
bi: "Burundi",
|
|
31
|
+
bj: "Benin",
|
|
32
|
+
bm: "Bermuda",
|
|
33
|
+
bo: "Bolivia",
|
|
34
|
+
br: "Brazil",
|
|
35
|
+
bt: "Bhutan",
|
|
36
|
+
bw: "Botswana",
|
|
37
|
+
by: "Belarus",
|
|
38
|
+
bz: "Belize",
|
|
39
|
+
ca: "Canada",
|
|
40
|
+
cd: "Democratic Republic of the Congo",
|
|
41
|
+
cf: "Central African Republic",
|
|
42
|
+
cg: "Republic of the Congo",
|
|
43
|
+
ch: "Switzerland",
|
|
44
|
+
ci: "Côte d'Ivoire",
|
|
45
|
+
ck: "Cook Islands",
|
|
46
|
+
cl: "Chile",
|
|
47
|
+
cm: "Cameroon",
|
|
48
|
+
cn: "China",
|
|
49
|
+
co: "Colombia",
|
|
50
|
+
cr: "Costa Rica",
|
|
51
|
+
cu: "Cuba",
|
|
52
|
+
cv: "Cape Verde",
|
|
53
|
+
cw: "Curaçao",
|
|
54
|
+
cy: "Cyprus",
|
|
55
|
+
cz: "Czech Republic",
|
|
56
|
+
de: "Germany",
|
|
57
|
+
dj: "Djibouti",
|
|
58
|
+
dk: "Denmark",
|
|
59
|
+
dm: "Dominica",
|
|
60
|
+
do: "Dominican Republic",
|
|
61
|
+
dz: "Algeria",
|
|
62
|
+
ec: "Ecuador",
|
|
63
|
+
ee: "Estonia",
|
|
64
|
+
eg: "Egypt",
|
|
65
|
+
er: "Eritrea",
|
|
66
|
+
es: "Spain",
|
|
67
|
+
et: "Ethiopia",
|
|
68
|
+
fi: "Finland",
|
|
69
|
+
fj: "Fiji",
|
|
70
|
+
fk: "Falkland Islands",
|
|
71
|
+
fm: "Micronesia",
|
|
72
|
+
fo: "Faroe Islands",
|
|
73
|
+
fr: "France",
|
|
74
|
+
ga: "Gabon",
|
|
75
|
+
gb: "United Kingdom",
|
|
76
|
+
gd: "Grenada",
|
|
77
|
+
ge: "Georgia",
|
|
78
|
+
gg: "Guernsey",
|
|
79
|
+
gh: "Ghana",
|
|
80
|
+
gi: "Gibraltar",
|
|
81
|
+
gl: "Greenland",
|
|
82
|
+
gm: "Gambia",
|
|
83
|
+
gn: "Guinea",
|
|
84
|
+
gq: "Equatorial Guinea",
|
|
85
|
+
gr: "Greece",
|
|
86
|
+
gt: "Guatemala",
|
|
87
|
+
gu: "Guam",
|
|
88
|
+
gw: "Guinea-Bissau",
|
|
89
|
+
hk: "Hong Kong",
|
|
90
|
+
hn: "Honduras",
|
|
91
|
+
hr: "Croatia",
|
|
92
|
+
ht: "Haiti",
|
|
93
|
+
hu: "Hungary",
|
|
94
|
+
id: "Indonesia",
|
|
95
|
+
ie: "Ireland",
|
|
96
|
+
il: "Israel",
|
|
97
|
+
im: "Isle of Man",
|
|
98
|
+
in: "India",
|
|
99
|
+
io: "British Indian Ocean Territory",
|
|
100
|
+
iq: "Iraq",
|
|
101
|
+
ir: "Iran",
|
|
102
|
+
is: "Iceland",
|
|
103
|
+
it: "Italy",
|
|
104
|
+
je: "Jersey",
|
|
105
|
+
jm: "Jamaica",
|
|
106
|
+
jo: "Jordan",
|
|
107
|
+
jp: "Japan",
|
|
108
|
+
ke: "Kenya"
|
|
109
|
+
}, fr = {
|
|
110
|
+
countries: as,
|
|
8
111
|
approvals: {
|
|
9
112
|
history: "Approval history",
|
|
10
113
|
statuses: {
|
|
@@ -258,7 +361,7 @@ import './f0.css';const ur = {
|
|
|
258
361
|
greaterThan: "It should be greater than {{min}}",
|
|
259
362
|
lessThan: "It should be less than {{max}}"
|
|
260
363
|
}
|
|
261
|
-
},
|
|
364
|
+
}, gr = [
|
|
262
365
|
"person",
|
|
263
366
|
"team",
|
|
264
367
|
"company",
|
|
@@ -273,30 +376,30 @@ function J(a) {
|
|
|
273
376
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
274
377
|
}, J(a);
|
|
275
378
|
}
|
|
276
|
-
function
|
|
379
|
+
function ls(a, e) {
|
|
277
380
|
if (!(a instanceof e))
|
|
278
381
|
throw new TypeError("Cannot call a class as a function");
|
|
279
382
|
}
|
|
280
|
-
function
|
|
383
|
+
function hs(a, e) {
|
|
281
384
|
for (var t = 0; t < e.length; t++) {
|
|
282
385
|
var i = e[t];
|
|
283
386
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, Nt(i.key), i);
|
|
284
387
|
}
|
|
285
388
|
}
|
|
286
|
-
function hs(a, e, t) {
|
|
287
|
-
return e && ls(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
288
|
-
}
|
|
289
389
|
function ds(a, e, t) {
|
|
290
|
-
return e
|
|
390
|
+
return e && hs(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
291
391
|
}
|
|
292
|
-
function cs(a, e) {
|
|
392
|
+
function cs(a, e, t) {
|
|
393
|
+
return e = ge(e), us(a, Ct() ? Reflect.construct(e, t || [], ge(a).constructor) : e.apply(a, t));
|
|
394
|
+
}
|
|
395
|
+
function us(a, e) {
|
|
293
396
|
if (e && (J(e) === "object" || typeof e == "function"))
|
|
294
397
|
return e;
|
|
295
398
|
if (e !== void 0)
|
|
296
399
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
297
|
-
return
|
|
400
|
+
return fs(a);
|
|
298
401
|
}
|
|
299
|
-
function
|
|
402
|
+
function fs(a) {
|
|
300
403
|
if (a === void 0)
|
|
301
404
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
302
405
|
return a;
|
|
@@ -316,7 +419,7 @@ function ge(a) {
|
|
|
316
419
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
317
420
|
}, ge(a);
|
|
318
421
|
}
|
|
319
|
-
function
|
|
422
|
+
function gs(a, e) {
|
|
320
423
|
if (typeof e != "function" && e !== null)
|
|
321
424
|
throw new TypeError("Super expression must either be null or a function");
|
|
322
425
|
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ze(a, e);
|
|
@@ -330,10 +433,10 @@ function Rt(a, e, t) {
|
|
|
330
433
|
return e = Nt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
331
434
|
}
|
|
332
435
|
function Nt(a) {
|
|
333
|
-
var e =
|
|
436
|
+
var e = ps(a, "string");
|
|
334
437
|
return J(e) == "symbol" ? e : e + "";
|
|
335
438
|
}
|
|
336
|
-
function
|
|
439
|
+
function ps(a, e) {
|
|
337
440
|
if (J(a) != "object" || !a) return a;
|
|
338
441
|
var t = a[Symbol.toPrimitive];
|
|
339
442
|
if (t !== void 0) {
|
|
@@ -345,15 +448,15 @@ function gs(a, e) {
|
|
|
345
448
|
}
|
|
346
449
|
var Ee = /* @__PURE__ */ function(a) {
|
|
347
450
|
function e() {
|
|
348
|
-
return
|
|
451
|
+
return ls(this, e), cs(this, e, arguments);
|
|
349
452
|
}
|
|
350
|
-
return
|
|
453
|
+
return gs(e, a), ds(e, [{
|
|
351
454
|
key: "render",
|
|
352
455
|
value: function() {
|
|
353
456
|
return null;
|
|
354
457
|
}
|
|
355
458
|
}]);
|
|
356
|
-
}(
|
|
459
|
+
}(P.Component);
|
|
357
460
|
Rt(Ee, "displayName", "ZAxis");
|
|
358
461
|
Rt(Ee, "defaultProps", {
|
|
359
462
|
zAxisId: 0,
|
|
@@ -361,7 +464,7 @@ Rt(Ee, "defaultProps", {
|
|
|
361
464
|
scale: "auto",
|
|
362
465
|
type: "number"
|
|
363
466
|
});
|
|
364
|
-
var
|
|
467
|
+
var ms = ["option", "isActive"];
|
|
365
468
|
function ie() {
|
|
366
469
|
return ie = Object.assign ? Object.assign.bind() : function(a) {
|
|
367
470
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -372,9 +475,9 @@ function ie() {
|
|
|
372
475
|
return a;
|
|
373
476
|
}, ie.apply(this, arguments);
|
|
374
477
|
}
|
|
375
|
-
function
|
|
478
|
+
function ys(a, e) {
|
|
376
479
|
if (a == null) return {};
|
|
377
|
-
var t =
|
|
480
|
+
var t = vs(a, e), i, s;
|
|
378
481
|
if (Object.getOwnPropertySymbols) {
|
|
379
482
|
var r = Object.getOwnPropertySymbols(a);
|
|
380
483
|
for (s = 0; s < r.length; s++)
|
|
@@ -382,7 +485,7 @@ function ms(a, e) {
|
|
|
382
485
|
}
|
|
383
486
|
return t;
|
|
384
487
|
}
|
|
385
|
-
function
|
|
488
|
+
function vs(a, e) {
|
|
386
489
|
if (a == null) return {};
|
|
387
490
|
var t = {};
|
|
388
491
|
for (var i in a)
|
|
@@ -392,15 +495,15 @@ function ys(a, e) {
|
|
|
392
495
|
}
|
|
393
496
|
return t;
|
|
394
497
|
}
|
|
395
|
-
function
|
|
396
|
-
var e = a.option, t = a.isActive, i =
|
|
397
|
-
return typeof e == "string" ? /* @__PURE__ */
|
|
398
|
-
option: /* @__PURE__ */
|
|
498
|
+
function bs(a) {
|
|
499
|
+
var e = a.option, t = a.isActive, i = ys(a, ms);
|
|
500
|
+
return typeof e == "string" ? /* @__PURE__ */ P.createElement($e, ie({
|
|
501
|
+
option: /* @__PURE__ */ P.createElement(qt, ie({
|
|
399
502
|
type: e
|
|
400
503
|
}, i)),
|
|
401
504
|
isActive: t,
|
|
402
505
|
shapeType: "symbols"
|
|
403
|
-
}, i)) : /* @__PURE__ */
|
|
506
|
+
}, i)) : /* @__PURE__ */ P.createElement($e, ie({
|
|
404
507
|
option: e,
|
|
405
508
|
isActive: t,
|
|
406
509
|
shapeType: "symbols"
|
|
@@ -424,7 +527,7 @@ function se() {
|
|
|
424
527
|
return a;
|
|
425
528
|
}, se.apply(this, arguments);
|
|
426
529
|
}
|
|
427
|
-
function
|
|
530
|
+
function Ye(a, e) {
|
|
428
531
|
var t = Object.keys(a);
|
|
429
532
|
if (Object.getOwnPropertySymbols) {
|
|
430
533
|
var i = Object.getOwnPropertySymbols(a);
|
|
@@ -437,49 +540,49 @@ function Ve(a, e) {
|
|
|
437
540
|
function H(a) {
|
|
438
541
|
for (var e = 1; e < arguments.length; e++) {
|
|
439
542
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
440
|
-
e % 2 ?
|
|
441
|
-
|
|
442
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
543
|
+
e % 2 ? Ye(Object(t), !0).forEach(function(i) {
|
|
544
|
+
U(a, i, t[i]);
|
|
545
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ye(Object(t)).forEach(function(i) {
|
|
443
546
|
Object.defineProperty(a, i, Object.getOwnPropertyDescriptor(t, i));
|
|
444
547
|
});
|
|
445
548
|
}
|
|
446
549
|
return a;
|
|
447
550
|
}
|
|
448
|
-
function
|
|
551
|
+
function ws(a, e) {
|
|
449
552
|
if (!(a instanceof e))
|
|
450
553
|
throw new TypeError("Cannot call a class as a function");
|
|
451
554
|
}
|
|
452
555
|
function Xe(a, e) {
|
|
453
556
|
for (var t = 0; t < e.length; t++) {
|
|
454
557
|
var i = e[t];
|
|
455
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
558
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, St(i.key), i);
|
|
456
559
|
}
|
|
457
560
|
}
|
|
458
|
-
function
|
|
561
|
+
function _s(a, e, t) {
|
|
459
562
|
return e && Xe(a.prototype, e), t && Xe(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
460
563
|
}
|
|
461
|
-
function
|
|
462
|
-
return e = pe(e),
|
|
564
|
+
function xs(a, e, t) {
|
|
565
|
+
return e = pe(e), Es(a, Dt() ? Reflect.construct(e, t || [], pe(a).constructor) : e.apply(a, t));
|
|
463
566
|
}
|
|
464
|
-
function
|
|
567
|
+
function Es(a, e) {
|
|
465
568
|
if (e && (Z(e) === "object" || typeof e == "function"))
|
|
466
569
|
return e;
|
|
467
570
|
if (e !== void 0)
|
|
468
571
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
469
|
-
return
|
|
572
|
+
return Cs(a);
|
|
470
573
|
}
|
|
471
|
-
function
|
|
574
|
+
function Cs(a) {
|
|
472
575
|
if (a === void 0)
|
|
473
576
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
474
577
|
return a;
|
|
475
578
|
}
|
|
476
|
-
function
|
|
579
|
+
function Dt() {
|
|
477
580
|
try {
|
|
478
581
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
479
582
|
}));
|
|
480
583
|
} catch {
|
|
481
584
|
}
|
|
482
|
-
return (
|
|
585
|
+
return (Dt = function() {
|
|
483
586
|
return !!a;
|
|
484
587
|
})();
|
|
485
588
|
}
|
|
@@ -488,24 +591,24 @@ function pe(a) {
|
|
|
488
591
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
489
592
|
}, pe(a);
|
|
490
593
|
}
|
|
491
|
-
function
|
|
594
|
+
function Rs(a, e) {
|
|
492
595
|
if (typeof e != "function" && e !== null)
|
|
493
596
|
throw new TypeError("Super expression must either be null or a function");
|
|
494
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
597
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ke(a, e);
|
|
495
598
|
}
|
|
496
|
-
function
|
|
497
|
-
return
|
|
599
|
+
function ke(a, e) {
|
|
600
|
+
return ke = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
498
601
|
return i.__proto__ = s, i;
|
|
499
|
-
},
|
|
602
|
+
}, ke(a, e);
|
|
500
603
|
}
|
|
501
|
-
function
|
|
502
|
-
return e =
|
|
604
|
+
function U(a, e, t) {
|
|
605
|
+
return e = St(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
503
606
|
}
|
|
504
|
-
function
|
|
505
|
-
var e =
|
|
607
|
+
function St(a) {
|
|
608
|
+
var e = Ns(a, "string");
|
|
506
609
|
return Z(e) == "symbol" ? e : e + "";
|
|
507
610
|
}
|
|
508
|
-
function
|
|
611
|
+
function Ns(a, e) {
|
|
509
612
|
if (Z(a) != "object" || !a) return a;
|
|
510
613
|
var t = a[Symbol.toPrimitive];
|
|
511
614
|
if (t !== void 0) {
|
|
@@ -518,33 +621,33 @@ function Rs(a, e) {
|
|
|
518
621
|
var ae = /* @__PURE__ */ function(a) {
|
|
519
622
|
function e() {
|
|
520
623
|
var t;
|
|
521
|
-
|
|
624
|
+
ws(this, e);
|
|
522
625
|
for (var i = arguments.length, s = new Array(i), r = 0; r < i; r++)
|
|
523
626
|
s[r] = arguments[r];
|
|
524
|
-
return t =
|
|
627
|
+
return t = xs(this, e, [].concat(s)), U(t, "state", {
|
|
525
628
|
isAnimationFinished: !1
|
|
526
|
-
}),
|
|
629
|
+
}), U(t, "handleAnimationEnd", function() {
|
|
527
630
|
t.setState({
|
|
528
631
|
isAnimationFinished: !0
|
|
529
632
|
});
|
|
530
|
-
}),
|
|
633
|
+
}), U(t, "handleAnimationStart", function() {
|
|
531
634
|
t.setState({
|
|
532
635
|
isAnimationFinished: !1
|
|
533
636
|
});
|
|
534
|
-
}),
|
|
637
|
+
}), U(t, "id", ei("recharts-scatter-")), t;
|
|
535
638
|
}
|
|
536
|
-
return
|
|
639
|
+
return Rs(e, a), _s(e, [{
|
|
537
640
|
key: "renderSymbolsStatically",
|
|
538
641
|
value: function(i) {
|
|
539
642
|
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Re(this.props, !1);
|
|
540
643
|
return i.map(function(l, d) {
|
|
541
644
|
var f = h === d, p = f ? o : n, m = H(H({}, c), l);
|
|
542
|
-
return /* @__PURE__ */
|
|
645
|
+
return /* @__PURE__ */ P.createElement(Q, se({
|
|
543
646
|
className: "recharts-scatter-symbol",
|
|
544
647
|
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)
|
|
545
648
|
}, Kt(s.props, l, d), {
|
|
546
649
|
role: "img"
|
|
547
|
-
}), /* @__PURE__ */
|
|
650
|
+
}), /* @__PURE__ */ P.createElement(bs, se({
|
|
548
651
|
option: p,
|
|
549
652
|
isActive: f,
|
|
550
653
|
key: "symbol-".concat(d)
|
|
@@ -555,7 +658,7 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
555
658
|
key: "renderSymbolsWithAnimation",
|
|
556
659
|
value: function() {
|
|
557
660
|
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;
|
|
558
|
-
return /* @__PURE__ */
|
|
661
|
+
return /* @__PURE__ */ P.createElement(Vt, {
|
|
559
662
|
begin: o,
|
|
560
663
|
duration: h,
|
|
561
664
|
isActive: n,
|
|
@@ -573,19 +676,19 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
573
676
|
var p = f.t, m = r.map(function(y, b) {
|
|
574
677
|
var N = d && d[b];
|
|
575
678
|
if (N) {
|
|
576
|
-
var x = de(N.cx, y.cx), C = de(N.cy, y.cy),
|
|
679
|
+
var x = de(N.cx, y.cx), C = de(N.cy, y.cy), D = de(N.size, y.size);
|
|
577
680
|
return H(H({}, y), {}, {
|
|
578
681
|
cx: x(p),
|
|
579
682
|
cy: C(p),
|
|
580
|
-
size:
|
|
683
|
+
size: D(p)
|
|
581
684
|
});
|
|
582
685
|
}
|
|
583
|
-
var
|
|
686
|
+
var S = de(0, y.size);
|
|
584
687
|
return H(H({}, y), {}, {
|
|
585
|
-
size:
|
|
688
|
+
size: S(p)
|
|
586
689
|
});
|
|
587
690
|
});
|
|
588
|
-
return /* @__PURE__ */
|
|
691
|
+
return /* @__PURE__ */ P.createElement(Q, null, i.renderSymbolsStatically(m));
|
|
589
692
|
});
|
|
590
693
|
}
|
|
591
694
|
}, {
|
|
@@ -600,10 +703,10 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
600
703
|
var i = this.props.isAnimationActive;
|
|
601
704
|
if (i && !this.state.isAnimationFinished)
|
|
602
705
|
return null;
|
|
603
|
-
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = st(h,
|
|
706
|
+
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = st(h, Yt);
|
|
604
707
|
return c ? c.map(function(l, d) {
|
|
605
708
|
var f = l.props, p = f.direction, m = f.dataKey;
|
|
606
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ P.cloneElement(l, {
|
|
607
710
|
key: "".concat(p, "-").concat(m, "-").concat(r[d]),
|
|
608
711
|
data: r,
|
|
609
712
|
xAxis: n,
|
|
@@ -632,8 +735,8 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
632
735
|
};
|
|
633
736
|
});
|
|
634
737
|
else if (n === "fitting") {
|
|
635
|
-
var f = Xt(s), p = f.xmin, m = f.xmax, y = f.a, b = f.b, N = function(
|
|
636
|
-
return y *
|
|
738
|
+
var f = Xt(s), p = f.xmin, m = f.xmax, y = f.a, b = f.b, N = function(D) {
|
|
739
|
+
return y * D + b;
|
|
637
740
|
};
|
|
638
741
|
l = [{
|
|
639
742
|
x: p,
|
|
@@ -649,9 +752,9 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
649
752
|
}, c), {}, {
|
|
650
753
|
points: l
|
|
651
754
|
});
|
|
652
|
-
return /* @__PURE__ */
|
|
755
|
+
return /* @__PURE__ */ P.isValidElement(r) ? d = /* @__PURE__ */ P.cloneElement(r, x) : Jt(r) ? d = r(x) : d = /* @__PURE__ */ P.createElement(Zt, se({}, x, {
|
|
653
756
|
type: o
|
|
654
|
-
})), /* @__PURE__ */
|
|
757
|
+
})), /* @__PURE__ */ P.createElement(Q, {
|
|
655
758
|
className: "recharts-scatter-line",
|
|
656
759
|
key: "recharts-scatter-line"
|
|
657
760
|
}, d);
|
|
@@ -662,18 +765,18 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
662
765
|
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, y = i.isAnimationActive;
|
|
663
766
|
if (s || !r || !r.length)
|
|
664
767
|
return null;
|
|
665
|
-
var b = this.state.isAnimationFinished, N = Qt("recharts-scatter", o), x = h && h.allowDataOverflow, C = c && c.allowDataOverflow,
|
|
666
|
-
return /* @__PURE__ */
|
|
768
|
+
var b = this.state.isAnimationFinished, N = Qt("recharts-scatter", o), x = h && h.allowDataOverflow, C = c && c.allowDataOverflow, D = x || C, S = V(m) ? this.id : m;
|
|
769
|
+
return /* @__PURE__ */ P.createElement(Q, {
|
|
667
770
|
className: N,
|
|
668
|
-
clipPath:
|
|
669
|
-
}, x || C ? /* @__PURE__ */
|
|
670
|
-
id: "clipPath-".concat(
|
|
671
|
-
}, /* @__PURE__ */
|
|
771
|
+
clipPath: D ? "url(#clipPath-".concat(S, ")") : null
|
|
772
|
+
}, x || C ? /* @__PURE__ */ P.createElement("defs", null, /* @__PURE__ */ P.createElement("clipPath", {
|
|
773
|
+
id: "clipPath-".concat(S)
|
|
774
|
+
}, /* @__PURE__ */ P.createElement("rect", {
|
|
672
775
|
x: x ? l : l - f / 2,
|
|
673
776
|
y: C ? d : d - p / 2,
|
|
674
777
|
width: x ? f : f * 2,
|
|
675
778
|
height: C ? p : p * 2
|
|
676
|
-
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */
|
|
779
|
+
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ P.createElement(Q, {
|
|
677
780
|
key: "recharts-scatter-symbols"
|
|
678
781
|
}, this.renderSymbols()), (!y || b) && rt.renderCallByParent(this.props, r));
|
|
679
782
|
}
|
|
@@ -690,8 +793,8 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
690
793
|
}
|
|
691
794
|
}]);
|
|
692
795
|
}(rs);
|
|
693
|
-
|
|
694
|
-
|
|
796
|
+
U(ae, "displayName", "Scatter");
|
|
797
|
+
U(ae, "defaultProps", {
|
|
695
798
|
xAxisId: 0,
|
|
696
799
|
yAxisId: 0,
|
|
697
800
|
zAxisId: 0,
|
|
@@ -706,17 +809,17 @@ j(ae, "defaultProps", {
|
|
|
706
809
|
animationDuration: 400,
|
|
707
810
|
animationEasing: "linear"
|
|
708
811
|
});
|
|
709
|
-
|
|
710
|
-
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 = st(s.props.children, ii), d =
|
|
711
|
-
var
|
|
712
|
-
name:
|
|
812
|
+
U(ae, "getComposedData", function(a) {
|
|
813
|
+
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 = st(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 : Ee.defaultProps.range, y = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, N = t.scale.bandwidth ? t.scale.bandwidth() : 0, x = r.map(function(C, D) {
|
|
814
|
+
var S = ue(C, d), R = ue(C, f), E = !V(p) && ue(C, p) || "-", O = [{
|
|
815
|
+
name: V(e.dataKey) ? s.props.name : e.name || e.dataKey,
|
|
713
816
|
unit: e.unit || "",
|
|
714
|
-
value:
|
|
817
|
+
value: S,
|
|
715
818
|
payload: C,
|
|
716
819
|
dataKey: d,
|
|
717
820
|
type: c
|
|
718
821
|
}, {
|
|
719
|
-
name:
|
|
822
|
+
name: V(t.dataKey) ? s.props.name : t.name || t.dataKey,
|
|
720
823
|
unit: t.unit || "",
|
|
721
824
|
value: R,
|
|
722
825
|
payload: C,
|
|
@@ -731,34 +834,34 @@ j(ae, "getComposedData", function(a) {
|
|
|
731
834
|
dataKey: p,
|
|
732
835
|
type: c
|
|
733
836
|
});
|
|
734
|
-
var L =
|
|
837
|
+
var L = je({
|
|
735
838
|
axis: e,
|
|
736
839
|
ticks: n,
|
|
737
840
|
bandSize: b,
|
|
738
841
|
entry: C,
|
|
739
|
-
index:
|
|
842
|
+
index: D,
|
|
740
843
|
dataKey: d
|
|
741
|
-
}), F =
|
|
844
|
+
}), F = je({
|
|
742
845
|
axis: t,
|
|
743
846
|
ticks: o,
|
|
744
847
|
bandSize: N,
|
|
745
848
|
entry: C,
|
|
746
|
-
index:
|
|
849
|
+
index: D,
|
|
747
850
|
dataKey: f
|
|
748
|
-
}), _ = E !== "-" ? i.scale(E) : y,
|
|
851
|
+
}), _ = E !== "-" ? i.scale(E) : y, k = Math.sqrt(Math.max(_, 0) / Math.PI);
|
|
749
852
|
return H(H({}, C), {}, {
|
|
750
853
|
cx: L,
|
|
751
854
|
cy: F,
|
|
752
|
-
x: L -
|
|
753
|
-
y: F -
|
|
855
|
+
x: L - k,
|
|
856
|
+
y: F - k,
|
|
754
857
|
xAxis: e,
|
|
755
858
|
yAxis: t,
|
|
756
859
|
zAxis: i,
|
|
757
|
-
width: 2 *
|
|
758
|
-
height: 2 *
|
|
860
|
+
width: 2 * k,
|
|
861
|
+
height: 2 * k,
|
|
759
862
|
size: _,
|
|
760
863
|
node: {
|
|
761
|
-
x:
|
|
864
|
+
x: S,
|
|
762
865
|
y: R,
|
|
763
866
|
z: E
|
|
764
867
|
},
|
|
@@ -768,13 +871,13 @@ j(ae, "getComposedData", function(a) {
|
|
|
768
871
|
y: F
|
|
769
872
|
},
|
|
770
873
|
payload: C
|
|
771
|
-
}, l && l[
|
|
874
|
+
}, l && l[D] && l[D].props);
|
|
772
875
|
});
|
|
773
876
|
return H({
|
|
774
877
|
points: x
|
|
775
878
|
}, h);
|
|
776
879
|
});
|
|
777
|
-
var
|
|
880
|
+
var Ds = si({
|
|
778
881
|
chartName: "ComposedChart",
|
|
779
882
|
GraphicalChild: [nt, ri, ot, ae],
|
|
780
883
|
axisComponents: [{
|
|
@@ -782,7 +885,7 @@ var Ns = si({
|
|
|
782
885
|
AxisComp: at
|
|
783
886
|
}, {
|
|
784
887
|
axisType: "yAxis",
|
|
785
|
-
AxisComp:
|
|
888
|
+
AxisComp: Se
|
|
786
889
|
}, {
|
|
787
890
|
axisType: "zAxis",
|
|
788
891
|
AxisComp: Ee
|
|
@@ -813,16 +916,16 @@ const Ss = (a) => {
|
|
|
813
916
|
});
|
|
814
917
|
};
|
|
815
918
|
return e.displayName = `Scatter-${a}`, e;
|
|
816
|
-
},
|
|
919
|
+
}, zs = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
|
|
817
920
|
hide: !0
|
|
818
921
|
}, 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) => {
|
|
819
922
|
var E, O, L, F;
|
|
820
|
-
const y = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], N = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], x = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ...N, ...x],
|
|
923
|
+
const y = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], N = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], x = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ...N, ...x], D = Math.max(...y.flatMap((_) => C.map((k) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${_[k]}`) : `${_[k]}`)))), S = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "left"), R = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "right");
|
|
821
924
|
return g(li, {
|
|
822
925
|
config: a,
|
|
823
926
|
ref: m,
|
|
824
927
|
aspect: o,
|
|
825
|
-
children: z(
|
|
928
|
+
children: z(Ds, {
|
|
826
929
|
accessibilityLayer: !0,
|
|
827
930
|
data: y,
|
|
828
931
|
margin: {
|
|
@@ -835,13 +938,13 @@ const Ss = (a) => {
|
|
|
835
938
|
onClick: (_) => {
|
|
836
939
|
if (!p || !_.activeLabel || !_.activePayload)
|
|
837
940
|
return;
|
|
838
|
-
const
|
|
941
|
+
const k = {
|
|
839
942
|
label: _.activeLabel,
|
|
840
943
|
values: {}
|
|
841
944
|
};
|
|
842
945
|
for (const le of _.activePayload)
|
|
843
|
-
|
|
844
|
-
p(
|
|
946
|
+
k.values[le.name] = le.value;
|
|
947
|
+
p(k);
|
|
845
948
|
},
|
|
846
949
|
children: [!r && g(hi, {
|
|
847
950
|
...di(),
|
|
@@ -850,22 +953,22 @@ const Ss = (a) => {
|
|
|
850
953
|
})
|
|
851
954
|
}), !n && g(ui, {
|
|
852
955
|
...fi()
|
|
853
|
-
}),
|
|
854
|
-
...
|
|
956
|
+
}), S.length > 0 && g(Se, {
|
|
957
|
+
...Ue(i),
|
|
855
958
|
tick: !0,
|
|
856
|
-
width: i.width ??
|
|
857
|
-
hide: i.hide ||
|
|
858
|
-
label: (O =
|
|
859
|
-
value:
|
|
959
|
+
width: i.width ?? D + 20 + (R.length > 0 && ((E = S[0]) != null && E.axisLabel) ? 20 : 0),
|
|
960
|
+
hide: i.hide || S.some((_) => _ == null ? void 0 : _.hideAxis),
|
|
961
|
+
label: (O = S[0]) != null && O.axisLabel ? {
|
|
962
|
+
value: S[0].axisLabel,
|
|
860
963
|
angle: -90,
|
|
861
964
|
position: "insideLeft"
|
|
862
965
|
} : void 0
|
|
863
|
-
}), R.length > 0 && g(
|
|
864
|
-
...
|
|
966
|
+
}), R.length > 0 && g(Se, {
|
|
967
|
+
...Ue(i),
|
|
865
968
|
yAxisId: "right",
|
|
866
969
|
orientation: "right",
|
|
867
970
|
tick: !0,
|
|
868
|
-
width: i.width ??
|
|
971
|
+
width: i.width ?? D + 20 + (S.length > 0 && ((L = R[0]) != null && L.axisLabel) ? 20 : 0),
|
|
869
972
|
hide: i.hide || R.some((_) => _ == null ? void 0 : _.hideAxis),
|
|
870
973
|
label: (F = R[0]) != null && F.axisLabel ? {
|
|
871
974
|
value: R[0].axisLabel,
|
|
@@ -876,10 +979,10 @@ const Ss = (a) => {
|
|
|
876
979
|
...gi(t),
|
|
877
980
|
hide: t == null ? void 0 : t.hide,
|
|
878
981
|
tick: c ? (_) => {
|
|
879
|
-
var
|
|
880
|
-
const { x:
|
|
982
|
+
var Ge, We;
|
|
983
|
+
const { x: k, y: le, payload: Ie } = _, Fe = ((Ge = e.find((Ut) => Ut.label === Ie.value)) == null ? void 0 : Ge.values) || "", he = Object.keys(Fe).length === 1 ? (We = Object.values(Fe)) == null ? void 0 : We[0] : void 0, jt = he !== void 0 && i.tickFormatter ? i.tickFormatter(`${he}`) : he.toLocaleString();
|
|
881
984
|
return z("g", {
|
|
882
|
-
transform: `translate(${
|
|
985
|
+
transform: `translate(${k},${le})`,
|
|
883
986
|
children: [g("text", {
|
|
884
987
|
x: 0,
|
|
885
988
|
y: 0,
|
|
@@ -893,14 +996,14 @@ const Ss = (a) => {
|
|
|
893
996
|
dy: 28,
|
|
894
997
|
textAnchor: "middle",
|
|
895
998
|
className: "!fill-f1-foreground text-sm font-medium",
|
|
896
|
-
children:
|
|
999
|
+
children: jt
|
|
897
1000
|
})]
|
|
898
1001
|
});
|
|
899
1002
|
} : void 0
|
|
900
|
-
}), b.map((_,
|
|
1003
|
+
}), b.map((_, k) => g(ot, {
|
|
901
1004
|
isAnimationActive: !1,
|
|
902
1005
|
dataKey: String(_),
|
|
903
|
-
fill: a[_].color ? ee(a[_].color) : Ne(
|
|
1006
|
+
fill: a[_].color ? ee(a[_].color) : Ne(k),
|
|
904
1007
|
radius: 4,
|
|
905
1008
|
maxBarSize: 32,
|
|
906
1009
|
children: s && g(rt, {
|
|
@@ -909,17 +1012,17 @@ const Ss = (a) => {
|
|
|
909
1012
|
className: "fill-f1-foreground",
|
|
910
1013
|
fontSize: 12
|
|
911
1014
|
}, `label-${String(_)}`)
|
|
912
|
-
}, `bar-${String(_)}`)), N.map((_,
|
|
1015
|
+
}, `bar-${String(_)}`)), N.map((_, k) => g(nt, {
|
|
913
1016
|
type: (d == null ? void 0 : d.lineType) ?? "natural",
|
|
914
1017
|
dataKey: String(_),
|
|
915
|
-
stroke: a[_].color ? ee(a[_].color) : Ne(b.length +
|
|
1018
|
+
stroke: a[_].color ? ee(a[_].color) : Ne(b.length + k),
|
|
916
1019
|
strokeWidth: 2,
|
|
917
1020
|
dot: (d == null ? void 0 : d.dot) ?? !1,
|
|
918
1021
|
isAnimationActive: !1,
|
|
919
1022
|
yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
|
|
920
|
-
}, `line-${String(_)}`)), x.map((_,
|
|
1023
|
+
}, `line-${String(_)}`)), x.map((_, k) => g(ae, {
|
|
921
1024
|
dataKey: String(_),
|
|
922
|
-
fill: a[_].color ? ee(a[_].color) : Ne(b.length + N.length +
|
|
1025
|
+
fill: a[_].color ? ee(a[_].color) : Ne(b.length + N.length + k),
|
|
923
1026
|
r: 4,
|
|
924
1027
|
isAnimationActive: !1,
|
|
925
1028
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0,
|
|
@@ -935,21 +1038,21 @@ const Ss = (a) => {
|
|
|
935
1038
|
})]
|
|
936
1039
|
})
|
|
937
1040
|
});
|
|
938
|
-
},
|
|
939
|
-
var Te = "Progress", Le = 100, [Ps,
|
|
1041
|
+
}, ks = lt(zs);
|
|
1042
|
+
var Te = "Progress", Le = 100, [Ps, pr] = yi(Te), [As, Os] = Ps(Te), zt = Oe.forwardRef(
|
|
940
1043
|
(a, e) => {
|
|
941
1044
|
const {
|
|
942
1045
|
__scopeProgress: t,
|
|
943
1046
|
value: i = null,
|
|
944
1047
|
max: s,
|
|
945
|
-
getValueLabel: r =
|
|
1048
|
+
getValueLabel: r = Ts,
|
|
946
1049
|
...n
|
|
947
1050
|
} = a;
|
|
948
|
-
(s || s === 0) && !Je(s) && console.error(
|
|
1051
|
+
(s || s === 0) && !Je(s) && console.error(Ls(`${s}`, "Progress"));
|
|
949
1052
|
const o = Je(s) ? s : Le;
|
|
950
|
-
i !== null && !Ze(i, o) && console.error(
|
|
1053
|
+
i !== null && !Ze(i, o) && console.error(Ms(`${i}`, "Progress"));
|
|
951
1054
|
const h = Ze(i, o) ? i : null, c = me(h) ? r(h, o) : void 0;
|
|
952
|
-
return /* @__PURE__ */ g(
|
|
1055
|
+
return /* @__PURE__ */ g(As, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
|
|
953
1056
|
ht.div,
|
|
954
1057
|
{
|
|
955
1058
|
"aria-valuemax": o,
|
|
@@ -967,9 +1070,9 @@ var Te = "Progress", Le = 100, [Ps, gr] = yi(Te), [ks, As] = Ps(Te), zt = Oe.for
|
|
|
967
1070
|
}
|
|
968
1071
|
);
|
|
969
1072
|
zt.displayName = Te;
|
|
970
|
-
var
|
|
1073
|
+
var kt = "ProgressIndicator", Pt = Oe.forwardRef(
|
|
971
1074
|
(a, e) => {
|
|
972
|
-
const { __scopeProgress: t, ...i } = a, s =
|
|
1075
|
+
const { __scopeProgress: t, ...i } = a, s = Os(kt, t);
|
|
973
1076
|
return /* @__PURE__ */ g(
|
|
974
1077
|
ht.div,
|
|
975
1078
|
{
|
|
@@ -982,8 +1085,8 @@ var Pt = "ProgressIndicator", kt = Oe.forwardRef(
|
|
|
982
1085
|
);
|
|
983
1086
|
}
|
|
984
1087
|
);
|
|
985
|
-
|
|
986
|
-
function
|
|
1088
|
+
Pt.displayName = kt;
|
|
1089
|
+
function Ts(a, e) {
|
|
987
1090
|
return `${Math.round(a / e * 100)}%`;
|
|
988
1091
|
}
|
|
989
1092
|
function At(a, e) {
|
|
@@ -998,10 +1101,10 @@ function Je(a) {
|
|
|
998
1101
|
function Ze(a, e) {
|
|
999
1102
|
return me(a) && !isNaN(a) && a <= e && a >= 0;
|
|
1000
1103
|
}
|
|
1001
|
-
function
|
|
1104
|
+
function Ls(a, e) {
|
|
1002
1105
|
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Le}\`.`;
|
|
1003
1106
|
}
|
|
1004
|
-
function
|
|
1107
|
+
function Ms(a, e) {
|
|
1005
1108
|
return `Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
1006
1109
|
- a positive number
|
|
1007
1110
|
- less than the value passed to \`max\` (or ${Le} if no \`max\` prop is set)
|
|
@@ -1009,12 +1112,12 @@ function Ls(a, e) {
|
|
|
1009
1112
|
|
|
1010
1113
|
Defaulting to \`null\`.`;
|
|
1011
1114
|
}
|
|
1012
|
-
var Ot = zt,
|
|
1115
|
+
var Ot = zt, Hs = Pt;
|
|
1013
1116
|
const Tt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
|
|
1014
1117
|
ref: i,
|
|
1015
|
-
className:
|
|
1118
|
+
className: j("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
|
|
1016
1119
|
...t,
|
|
1017
|
-
children: g(
|
|
1120
|
+
children: g(Hs, {
|
|
1018
1121
|
className: "h-full w-full flex-1 transition-all",
|
|
1019
1122
|
style: {
|
|
1020
1123
|
backgroundColor: t.color,
|
|
@@ -1023,7 +1126,7 @@ const Tt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
|
|
|
1023
1126
|
})
|
|
1024
1127
|
}));
|
|
1025
1128
|
Tt.displayName = Ot.displayName;
|
|
1026
|
-
const
|
|
1129
|
+
const Bs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
1027
1130
|
const r = i ? ee(i) : ee("categorical-1"), n = a / e * 100;
|
|
1028
1131
|
return z("div", {
|
|
1029
1132
|
className: "flex items-center space-x-2",
|
|
@@ -1044,55 +1147,55 @@ const Hs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1044
1147
|
children: t
|
|
1045
1148
|
})]
|
|
1046
1149
|
});
|
|
1047
|
-
},
|
|
1150
|
+
}, Is = lt(Bs), mr = I(
|
|
1048
1151
|
{
|
|
1049
1152
|
name: "AreaChart",
|
|
1050
1153
|
type: "info"
|
|
1051
1154
|
},
|
|
1052
1155
|
Ei
|
|
1053
|
-
),
|
|
1156
|
+
), yr = I(
|
|
1054
1157
|
{
|
|
1055
1158
|
name: "BarChart",
|
|
1056
1159
|
type: "info"
|
|
1057
1160
|
},
|
|
1058
1161
|
vi
|
|
1059
|
-
),
|
|
1162
|
+
), vr = I(
|
|
1060
1163
|
{
|
|
1061
1164
|
name: "CategoryBarChart",
|
|
1062
1165
|
type: "info"
|
|
1063
1166
|
},
|
|
1064
1167
|
bi
|
|
1065
|
-
),
|
|
1168
|
+
), br = I(
|
|
1066
1169
|
{
|
|
1067
1170
|
name: "LineChart",
|
|
1068
1171
|
type: "info"
|
|
1069
1172
|
},
|
|
1070
1173
|
wi
|
|
1071
|
-
),
|
|
1174
|
+
), wr = I(
|
|
1072
1175
|
{
|
|
1073
1176
|
name: "PieChart",
|
|
1074
1177
|
type: "info"
|
|
1075
1178
|
},
|
|
1076
1179
|
_i
|
|
1077
|
-
),
|
|
1180
|
+
), _r = I(
|
|
1078
1181
|
{
|
|
1079
1182
|
name: "VerticalBarChart",
|
|
1080
1183
|
type: "info"
|
|
1081
1184
|
},
|
|
1082
1185
|
xi
|
|
1083
|
-
),
|
|
1186
|
+
), xr = I(
|
|
1084
1187
|
{
|
|
1085
1188
|
name: "ProgressBarChart",
|
|
1086
1189
|
type: "info"
|
|
1087
1190
|
},
|
|
1088
|
-
|
|
1089
|
-
),
|
|
1191
|
+
Is
|
|
1192
|
+
), Er = I(
|
|
1090
1193
|
{
|
|
1091
1194
|
name: "ComboChart",
|
|
1092
1195
|
type: "info"
|
|
1093
1196
|
},
|
|
1094
|
-
|
|
1095
|
-
),
|
|
1197
|
+
ks
|
|
1198
|
+
), Cr = Ci, Rr = dt, Nr = ["default", "outline", "neutral"], Dr = dt, Sr = ["sm", "md", "lg"], zr = Ri, Pe = ({ count: a, list: e }) => {
|
|
1096
1199
|
const [t, i] = A(!1), s = g(fe, {
|
|
1097
1200
|
label: `+${a}`
|
|
1098
1201
|
});
|
|
@@ -1123,17 +1226,17 @@ const Hs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1123
1226
|
})]
|
|
1124
1227
|
}) : s;
|
|
1125
1228
|
};
|
|
1126
|
-
|
|
1229
|
+
Pe.displayName = "ChipCounter";
|
|
1127
1230
|
const Lt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
1128
1231
|
if (i === "fill")
|
|
1129
|
-
return g(
|
|
1232
|
+
return g(Di, {
|
|
1130
1233
|
items: a,
|
|
1131
1234
|
renderListItem: (h) => g(fe, {
|
|
1132
1235
|
...h
|
|
1133
1236
|
}),
|
|
1134
1237
|
renderDropdownItem: () => null,
|
|
1135
1238
|
forceShowingOverflowIndicator: t !== void 0,
|
|
1136
|
-
renderOverflowIndicator: (h) => g(
|
|
1239
|
+
renderOverflowIndicator: (h) => g(Pe, {
|
|
1137
1240
|
count: (t ?? 0) + h,
|
|
1138
1241
|
list: t ? void 0 : a.slice(a.length - h)
|
|
1139
1242
|
}),
|
|
@@ -1145,19 +1248,19 @@ const Lt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
1145
1248
|
className: "flex items-center gap-2",
|
|
1146
1249
|
children: [s.map((h, c) => g(fe, {
|
|
1147
1250
|
...h
|
|
1148
|
-
}, c)), o && g(
|
|
1251
|
+
}, c)), o && g(Pe, {
|
|
1149
1252
|
count: n,
|
|
1150
1253
|
list: t ? void 0 : r
|
|
1151
1254
|
})]
|
|
1152
1255
|
});
|
|
1153
1256
|
};
|
|
1154
1257
|
Lt.displayName = "F0ChipList";
|
|
1155
|
-
const
|
|
1258
|
+
const kr = Ae("F0ChipList", Lt), Mt = K(({ value: a, onDateChange: e, granularity: t, onOpenChange: i, minDate: s, maxDate: r, onClear: n, ...o }, h) => {
|
|
1156
1259
|
const [c, l] = A(""), [d, f] = A(!1), p = mt();
|
|
1157
1260
|
q(() => {
|
|
1158
1261
|
l(t.toString(a == null ? void 0 : a.value, p));
|
|
1159
1262
|
}, [a, t, p]);
|
|
1160
|
-
const m = (x) =>
|
|
1263
|
+
const m = (x) => ki(x, t, {
|
|
1161
1264
|
minDate: s,
|
|
1162
1265
|
maxDate: r
|
|
1163
1266
|
}), y = (x, C) => {
|
|
@@ -1168,16 +1271,16 @@ const zr = Ae("F0ChipList", Lt), Mt = K(({ value: a, onDateChange: e, granularit
|
|
|
1168
1271
|
}), f(o.required ?? !1);
|
|
1169
1272
|
return;
|
|
1170
1273
|
}
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1173
|
-
value:
|
|
1274
|
+
const D = C.toRange(C.fromString(x, p));
|
|
1275
|
+
D && m(D == null ? void 0 : D.from) && m(D == null ? void 0 : D.to) ? (e == null || e({
|
|
1276
|
+
value: D,
|
|
1174
1277
|
granularity: C.key
|
|
1175
1278
|
}), f(!1)) : f(!0);
|
|
1176
1279
|
}, b = () => {
|
|
1177
1280
|
y(c, t);
|
|
1178
1281
|
};
|
|
1179
1282
|
return g(oe, {
|
|
1180
|
-
children: g(
|
|
1283
|
+
children: g(Si, {
|
|
1181
1284
|
...o,
|
|
1182
1285
|
icon: zi,
|
|
1183
1286
|
ref: h,
|
|
@@ -1200,12 +1303,12 @@ const zr = Ae("F0ChipList", Lt), Mt = K(({ value: a, onDateChange: e, granularit
|
|
|
1200
1303
|
});
|
|
1201
1304
|
});
|
|
1202
1305
|
Mt.displayName = "DateInput";
|
|
1203
|
-
function
|
|
1306
|
+
function Fs({ onChange: a, value: e, presets: t = [], granularities: i = ["day"], minDate: s, maxDate: r, open: n = !1, ...o }) {
|
|
1204
1307
|
const [h, c] = A(), [l, d] = A(n);
|
|
1205
1308
|
q(() => {
|
|
1206
1309
|
d(n);
|
|
1207
1310
|
}, [n]);
|
|
1208
|
-
const f = mt(), p = te(() => i[0] ?? "day", [i]), m =
|
|
1311
|
+
const f = mt(), p = te(() => i[0] ?? "day", [i]), m = W((R) => {
|
|
1209
1312
|
const E = R || p;
|
|
1210
1313
|
if (!qe[E])
|
|
1211
1314
|
throw new Error(`Invalid granularity ${E}`);
|
|
@@ -1213,7 +1316,7 @@ function Is({ onChange: a, value: e, presets: t = [], granularities: i = ["day"]
|
|
|
1213
1316
|
...qe[E],
|
|
1214
1317
|
key: E
|
|
1215
1318
|
};
|
|
1216
|
-
}, [p]), y =
|
|
1319
|
+
}, [p]), y = W((R) => {
|
|
1217
1320
|
var O;
|
|
1218
1321
|
if (!R)
|
|
1219
1322
|
return;
|
|
@@ -1225,31 +1328,31 @@ function Is({ onChange: a, value: e, presets: t = [], granularities: i = ["day"]
|
|
|
1225
1328
|
}, [m]), b = te(() => m(h == null ? void 0 : h.granularity), [h == null ? void 0 : h.granularity, m]);
|
|
1226
1329
|
q(() => {
|
|
1227
1330
|
const R = y(e);
|
|
1228
|
-
|
|
1331
|
+
De(h, R) || c(R);
|
|
1229
1332
|
}, [e]);
|
|
1230
1333
|
const N = (R) => {
|
|
1231
|
-
const E = y(R), L = m(E == null ? void 0 : E.granularity).calendarMode !== "range" && (E == null ? void 0 : E.granularity) === (h == null ? void 0 : h.granularity) && !
|
|
1334
|
+
const E = y(R), L = m(E == null ? void 0 : E.granularity).calendarMode !== "range" && (E == null ? void 0 : E.granularity) === (h == null ? void 0 : h.granularity) && !De(E, h);
|
|
1232
1335
|
x(E), L && d(!1);
|
|
1233
1336
|
}, x = (R) => {
|
|
1234
1337
|
const E = y(R);
|
|
1235
|
-
if (c(E), !
|
|
1338
|
+
if (c(E), !De(E, h)) {
|
|
1236
1339
|
const O = m(E == null ? void 0 : E.granularity);
|
|
1237
1340
|
a == null || a(E, O.toString(E == null ? void 0 : E.value, f));
|
|
1238
1341
|
}
|
|
1239
1342
|
}, C = (R) => {
|
|
1240
1343
|
var E;
|
|
1241
1344
|
d(R), (E = o.onOpenChange) == null || E.call(o, R);
|
|
1242
|
-
},
|
|
1345
|
+
}, D = te(() => t.filter((R) => i.includes(R.granularity)), [t, i]), S = Y(null);
|
|
1243
1346
|
return q(() => {
|
|
1244
|
-
l &&
|
|
1347
|
+
l && S.current && requestAnimationFrame(() => {
|
|
1245
1348
|
var R;
|
|
1246
|
-
(R =
|
|
1349
|
+
(R = S.current) == null || R.focus();
|
|
1247
1350
|
});
|
|
1248
|
-
}, [l]), g(
|
|
1351
|
+
}, [l]), g(Pi, {
|
|
1249
1352
|
hideCalendarInput: !0,
|
|
1250
1353
|
onSelect: N,
|
|
1251
1354
|
value: h,
|
|
1252
|
-
presets:
|
|
1355
|
+
presets: D,
|
|
1253
1356
|
granularities: i,
|
|
1254
1357
|
minDate: s,
|
|
1255
1358
|
maxDate: r,
|
|
@@ -1257,7 +1360,7 @@ function Is({ onChange: a, value: e, presets: t = [], granularities: i = ["day"]
|
|
|
1257
1360
|
onOpenChange: C,
|
|
1258
1361
|
asChild: !0,
|
|
1259
1362
|
children: g(Mt, {
|
|
1260
|
-
ref:
|
|
1363
|
+
ref: S,
|
|
1261
1364
|
...o,
|
|
1262
1365
|
value: h,
|
|
1263
1366
|
granularity: b,
|
|
@@ -1265,16 +1368,16 @@ function Is({ onChange: a, value: e, presets: t = [], granularities: i = ["day"]
|
|
|
1265
1368
|
})
|
|
1266
1369
|
});
|
|
1267
1370
|
}
|
|
1268
|
-
const Pr = Ai,
|
|
1371
|
+
const Pr = Ai, Ar = Ae(
|
|
1269
1372
|
"F0DatePicker",
|
|
1270
|
-
|
|
1271
|
-
),
|
|
1373
|
+
Fs
|
|
1374
|
+
), Gs = {
|
|
1272
1375
|
xs: 1,
|
|
1273
1376
|
sm: 2,
|
|
1274
1377
|
md: 2,
|
|
1275
1378
|
lg: 2
|
|
1276
1379
|
}, Ws = K(function({ widgets: e, children: t }, i) {
|
|
1277
|
-
const s =
|
|
1380
|
+
const s = Y(null);
|
|
1278
1381
|
xt(i, () => s.current);
|
|
1279
1382
|
const r = ns.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
|
|
1280
1383
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
@@ -1288,7 +1391,7 @@ const Pr = Ai, kr = Ae(
|
|
|
1288
1391
|
children: [z("div", {
|
|
1289
1392
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
1290
1393
|
children: [g(Oi, {
|
|
1291
|
-
columns:
|
|
1394
|
+
columns: Gs,
|
|
1292
1395
|
showArrows: !1,
|
|
1293
1396
|
children: r
|
|
1294
1397
|
}), g("main", {
|
|
@@ -1309,24 +1412,24 @@ const Pr = Ai, kr = Ae(
|
|
|
1309
1412
|
})]
|
|
1310
1413
|
})
|
|
1311
1414
|
});
|
|
1312
|
-
}),
|
|
1415
|
+
}), $s = K(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
|
|
1313
1416
|
return g("div", {
|
|
1314
1417
|
ref: r,
|
|
1315
1418
|
className: "h-full",
|
|
1316
1419
|
children: z("div", {
|
|
1317
|
-
className:
|
|
1420
|
+
className: j("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"),
|
|
1318
1421
|
children: [g("main", {
|
|
1319
|
-
className:
|
|
1422
|
+
className: j("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"),
|
|
1320
1423
|
children: e
|
|
1321
|
-
}), g(
|
|
1424
|
+
}), g(js, {
|
|
1322
1425
|
sticky: s,
|
|
1323
|
-
className:
|
|
1426
|
+
className: j("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
1324
1427
|
children: t
|
|
1325
1428
|
})]
|
|
1326
1429
|
})
|
|
1327
1430
|
});
|
|
1328
|
-
}),
|
|
1329
|
-
className:
|
|
1431
|
+
}), js = ({ children: a, className: e }) => g("aside", {
|
|
1432
|
+
className: j("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
|
|
1330
1433
|
children: a
|
|
1331
1434
|
}), Us = Ti({
|
|
1332
1435
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
@@ -1335,14 +1438,14 @@ const Pr = Ai, kr = Ae(
|
|
|
1335
1438
|
narrow: "max-w-screen-lg"
|
|
1336
1439
|
}
|
|
1337
1440
|
}
|
|
1338
|
-
}), Ht =
|
|
1441
|
+
}), Ht = P.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(yt, {
|
|
1339
1442
|
layout: "standard",
|
|
1340
1443
|
children: g("section", {
|
|
1341
1444
|
ref: s,
|
|
1342
|
-
className:
|
|
1445
|
+
className: j("relative flex-1 overflow-auto", t),
|
|
1343
1446
|
...i,
|
|
1344
1447
|
children: g("div", {
|
|
1345
|
-
className:
|
|
1448
|
+
className: j(Us({
|
|
1346
1449
|
variant: e
|
|
1347
1450
|
})),
|
|
1348
1451
|
children: a
|
|
@@ -1350,13 +1453,13 @@ const Pr = Ai, kr = Ae(
|
|
|
1350
1453
|
})
|
|
1351
1454
|
}));
|
|
1352
1455
|
Ht.displayName = "StandardLayout";
|
|
1353
|
-
const
|
|
1456
|
+
const Or = I({
|
|
1354
1457
|
name: "StandardLayout",
|
|
1355
1458
|
type: "layout"
|
|
1356
|
-
}, Ht),
|
|
1459
|
+
}, Ht), Tr = I({
|
|
1357
1460
|
name: "TwoColumnLayout",
|
|
1358
1461
|
type: "layout"
|
|
1359
|
-
},
|
|
1462
|
+
}, $s), Lr = I({
|
|
1360
1463
|
name: "HomeLayout",
|
|
1361
1464
|
type: "layout"
|
|
1362
1465
|
}, Ws), Bt = xe(null);
|
|
@@ -1368,7 +1471,7 @@ function Me() {
|
|
|
1368
1471
|
);
|
|
1369
1472
|
return a;
|
|
1370
1473
|
}
|
|
1371
|
-
function
|
|
1474
|
+
function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
1372
1475
|
const [s, r] = A(null), [n, o] = A(() => {
|
|
1373
1476
|
var y;
|
|
1374
1477
|
const p = /* @__PURE__ */ new Map(), m = (b) => {
|
|
@@ -1380,7 +1483,7 @@ function js({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1380
1483
|
return (y = e.children) == null || y.forEach((b) => {
|
|
1381
1484
|
m(b);
|
|
1382
1485
|
}), p;
|
|
1383
|
-
}), h =
|
|
1486
|
+
}), h = W(() => {
|
|
1384
1487
|
if (!s)
|
|
1385
1488
|
return;
|
|
1386
1489
|
const p = s.save();
|
|
@@ -1404,12 +1507,12 @@ function js({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1404
1507
|
}, [s, t, h]), q(() => {
|
|
1405
1508
|
s && h();
|
|
1406
1509
|
}, [s]);
|
|
1407
|
-
const c =
|
|
1510
|
+
const c = W((p) => {
|
|
1408
1511
|
s == null || s.addWidget(p), o((m) => {
|
|
1409
1512
|
const y = new Map(m);
|
|
1410
1513
|
return y.set(p.id, p), y;
|
|
1411
1514
|
});
|
|
1412
|
-
}, [s]), l =
|
|
1515
|
+
}, [s]), l = W((p) => {
|
|
1413
1516
|
s == null || s.addWidget(p), o((m) => {
|
|
1414
1517
|
var b, N;
|
|
1415
1518
|
const y = new Map(m);
|
|
@@ -1417,13 +1520,13 @@ function js({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1417
1520
|
y.set(x.id, x);
|
|
1418
1521
|
}), y;
|
|
1419
1522
|
});
|
|
1420
|
-
}, [s]), d =
|
|
1523
|
+
}, [s]), d = W((p) => {
|
|
1421
1524
|
const m = document.body.querySelector(`[gs-id="${p}"]`);
|
|
1422
1525
|
m && (s == null || s.removeWidget(m)), o((y) => {
|
|
1423
1526
|
const b = new Map(y);
|
|
1424
1527
|
return b.delete(p), b;
|
|
1425
1528
|
});
|
|
1426
|
-
}, [s]), f =
|
|
1529
|
+
}, [s]), f = W(() => {
|
|
1427
1530
|
s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
|
|
1428
1531
|
}, [s]);
|
|
1429
1532
|
return g(Bt.Provider, {
|
|
@@ -1447,7 +1550,7 @@ function js({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1447
1550
|
});
|
|
1448
1551
|
}
|
|
1449
1552
|
const It = xe(null);
|
|
1450
|
-
function
|
|
1553
|
+
function Ks() {
|
|
1451
1554
|
const a = Et(It);
|
|
1452
1555
|
if (!a)
|
|
1453
1556
|
throw new Error(
|
|
@@ -1455,14 +1558,14 @@ function qs() {
|
|
|
1455
1558
|
);
|
|
1456
1559
|
return a;
|
|
1457
1560
|
}
|
|
1458
|
-
const
|
|
1561
|
+
const Vs = xe(null);
|
|
1459
1562
|
function Ys() {
|
|
1460
|
-
const { _rawWidgetMetaMap: a } = Me(), { getWidgetContainer: e } =
|
|
1563
|
+
const { _rawWidgetMetaMap: a } = Me(), { getWidgetContainer: e } = Ks();
|
|
1461
1564
|
return g(oe, {
|
|
1462
1565
|
children: Array.from(a.value.entries()).map(([t, i]) => {
|
|
1463
1566
|
var r;
|
|
1464
1567
|
const s = e(t);
|
|
1465
|
-
return s ? g(
|
|
1568
|
+
return s ? g(Vs.Provider, {
|
|
1466
1569
|
value: {
|
|
1467
1570
|
widget: {
|
|
1468
1571
|
id: t
|
|
@@ -1473,7 +1576,7 @@ function Ys() {
|
|
|
1473
1576
|
})
|
|
1474
1577
|
});
|
|
1475
1578
|
}
|
|
1476
|
-
function
|
|
1579
|
+
function Xs(a, e, t, i, s) {
|
|
1477
1580
|
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));
|
|
1478
1581
|
return r.prototype = e.prototype, r;
|
|
1479
1582
|
}
|
|
@@ -2722,7 +2825,7 @@ const M = {
|
|
|
2722
2825
|
class w {
|
|
2723
2826
|
}
|
|
2724
2827
|
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);
|
|
2725
|
-
class
|
|
2828
|
+
class G {
|
|
2726
2829
|
}
|
|
2727
2830
|
function ye(a, e) {
|
|
2728
2831
|
a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
|
|
@@ -2731,17 +2834,17 @@ function Ft(a, e) {
|
|
|
2731
2834
|
a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
|
|
2732
2835
|
}
|
|
2733
2836
|
function ve(a) {
|
|
2734
|
-
|
|
2837
|
+
G.touchHandled || (G.touchHandled = !0, ye(a, "mousedown"));
|
|
2735
2838
|
}
|
|
2736
2839
|
function be(a) {
|
|
2737
|
-
|
|
2840
|
+
G.touchHandled && ye(a, "mousemove");
|
|
2738
2841
|
}
|
|
2739
2842
|
function we(a) {
|
|
2740
|
-
if (!
|
|
2843
|
+
if (!G.touchHandled)
|
|
2741
2844
|
return;
|
|
2742
|
-
|
|
2845
|
+
G.pointerLeaveTimeout && (window.clearTimeout(G.pointerLeaveTimeout), delete G.pointerLeaveTimeout);
|
|
2743
2846
|
const e = !!w.dragElement;
|
|
2744
|
-
ye(a, "mouseup"), e || ye(a, "click"),
|
|
2847
|
+
ye(a, "mouseup"), e || ye(a, "click"), G.touchHandled = !1;
|
|
2745
2848
|
}
|
|
2746
2849
|
function _e(a) {
|
|
2747
2850
|
a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
|
|
@@ -2750,8 +2853,8 @@ function Qe(a) {
|
|
|
2750
2853
|
w.dragElement && a.pointerType !== "mouse" && Ft(a, "mouseenter");
|
|
2751
2854
|
}
|
|
2752
2855
|
function et(a) {
|
|
2753
|
-
w.dragElement && a.pointerType !== "mouse" && (
|
|
2754
|
-
delete
|
|
2856
|
+
w.dragElement && a.pointerType !== "mouse" && (G.pointerLeaveTimeout = window.setTimeout(() => {
|
|
2857
|
+
delete G.pointerLeaveTimeout, Ft(a, "mouseleave");
|
|
2755
2858
|
}, 10));
|
|
2756
2859
|
}
|
|
2757
2860
|
class Ce {
|
|
@@ -3002,7 +3105,7 @@ class re extends He {
|
|
|
3002
3105
|
}
|
|
3003
3106
|
}
|
|
3004
3107
|
re._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
|
|
3005
|
-
const
|
|
3108
|
+
const Js = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
|
|
3006
3109
|
class ne extends He {
|
|
3007
3110
|
constructor(e, t = {}) {
|
|
3008
3111
|
var r;
|
|
@@ -3040,7 +3143,7 @@ class ne extends He {
|
|
|
3040
3143
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
3041
3144
|
_mouseDown(e) {
|
|
3042
3145
|
if (!w.mouseHandled)
|
|
3043
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(
|
|
3146
|
+
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Js) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete w.dragElement, delete w.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (e.currentTarget.addEventListener("touchmove", be), e.currentTarget.addEventListener("touchend", we)), e.preventDefault(), document.activeElement && document.activeElement.blur(), w.mouseHandled = !0), !0;
|
|
3044
3147
|
}
|
|
3045
3148
|
/** @internal method to call actual drag event */
|
|
3046
3149
|
_callDrag(e) {
|
|
@@ -3154,7 +3257,7 @@ class ne extends He {
|
|
|
3154
3257
|
}
|
|
3155
3258
|
}
|
|
3156
3259
|
ne.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
3157
|
-
class
|
|
3260
|
+
class Zs extends He {
|
|
3158
3261
|
constructor(e, t = {}) {
|
|
3159
3262
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
3160
3263
|
}
|
|
@@ -3246,13 +3349,13 @@ class Be {
|
|
|
3246
3349
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
3247
3350
|
}
|
|
3248
3351
|
setupDroppable(e) {
|
|
3249
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
3352
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Zs(this.el, e), this;
|
|
3250
3353
|
}
|
|
3251
3354
|
cleanDroppable() {
|
|
3252
3355
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
3253
3356
|
}
|
|
3254
3357
|
}
|
|
3255
|
-
class
|
|
3358
|
+
class Qs {
|
|
3256
3359
|
/**
|
|
3257
3360
|
* Enable/disable/configure resizing for grid elements.
|
|
3258
3361
|
*
|
|
@@ -3367,7 +3470,7 @@ class Zs {
|
|
|
3367
3470
|
* Copyright (c) 2021-2025 Alain Dumesny
|
|
3368
3471
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
3369
3472
|
*/
|
|
3370
|
-
const T = new
|
|
3473
|
+
const T = new Qs();
|
|
3371
3474
|
class v {
|
|
3372
3475
|
/**
|
|
3373
3476
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
@@ -4852,9 +4955,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4852
4955
|
o.x = Math.round(N / r), o.y = Math.round(x / n);
|
|
4853
4956
|
const C = this._extraDragRow;
|
|
4854
4957
|
if (this.engine.collide(s, o)) {
|
|
4855
|
-
const
|
|
4856
|
-
let
|
|
4857
|
-
this.opts.maxRow &&
|
|
4958
|
+
const D = this.getRow();
|
|
4959
|
+
let S = Math.max(0, o.y + s.h - D);
|
|
4960
|
+
this.opts.maxRow && D + S > this.opts.maxRow && (S = Math.max(0, this.opts.maxRow - D)), this._extraDragRow = S;
|
|
4858
4961
|
} else
|
|
4859
4962
|
this._extraDragRow = 0;
|
|
4860
4963
|
if (this._extraDragRow !== C && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
|
|
@@ -4900,7 +5003,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4900
5003
|
}
|
|
4901
5004
|
// legacy method removed
|
|
4902
5005
|
commit() {
|
|
4903
|
-
return
|
|
5006
|
+
return Xs(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
4904
5007
|
}
|
|
4905
5008
|
}
|
|
4906
5009
|
v.renderCB = (a, e) => {
|
|
@@ -4911,21 +5014,21 @@ v.Utils = u;
|
|
|
4911
5014
|
v.Engine = $;
|
|
4912
5015
|
v.GDRev = "12.3.2";
|
|
4913
5016
|
const ce = /* @__PURE__ */ new WeakMap();
|
|
4914
|
-
function
|
|
4915
|
-
const { _gridStack: { value: e, set: t }, initialOptions: i } = Me(), s =
|
|
5017
|
+
function er({ children: a }) {
|
|
5018
|
+
const { _gridStack: { value: e, set: t }, initialOptions: i } = Me(), s = Y(/* @__PURE__ */ new Map()), r = Y(null), n = Y(i), o = W((c, l) => {
|
|
4916
5019
|
if (l.id && l.grid) {
|
|
4917
5020
|
let d = ce.get(l.grid);
|
|
4918
5021
|
d || (d = /* @__PURE__ */ new Map(), ce.set(l.grid, d)), d.set(l.id, c), s.current.set(l.id, c);
|
|
4919
5022
|
}
|
|
4920
|
-
}, []), h =
|
|
4921
|
-
return
|
|
5023
|
+
}, []), h = W(() => r.current ? (v.renderCB = o, v.init(n.current, r.current)) : null, [o]);
|
|
5024
|
+
return Ve(() => {
|
|
4922
5025
|
if (!it(i, n.current) && e)
|
|
4923
5026
|
try {
|
|
4924
5027
|
e.removeAll(!1), e.destroy(!1), s.current.clear(), ce.delete(e), n.current = i, t(h());
|
|
4925
5028
|
} catch (c) {
|
|
4926
5029
|
console.error("Error reinitializing gridstack", c);
|
|
4927
5030
|
}
|
|
4928
|
-
}, [i, e, h, t]),
|
|
5031
|
+
}, [i, e, h, t]), Ve(() => {
|
|
4929
5032
|
if (!e)
|
|
4930
5033
|
try {
|
|
4931
5034
|
t(h());
|
|
@@ -4949,7 +5052,7 @@ function Qs({ children: a }) {
|
|
|
4949
5052
|
})
|
|
4950
5053
|
});
|
|
4951
5054
|
}
|
|
4952
|
-
const
|
|
5055
|
+
const Gt = K((a, e) => {
|
|
4953
5056
|
const t = Me();
|
|
4954
5057
|
return xt(e, () => ({
|
|
4955
5058
|
addWidget: t.addWidget,
|
|
@@ -4958,8 +5061,8 @@ const Wt = K((a, e) => {
|
|
|
4958
5061
|
removeAll: t.removeAll
|
|
4959
5062
|
}), [t]), null;
|
|
4960
5063
|
});
|
|
4961
|
-
|
|
4962
|
-
const
|
|
5064
|
+
Gt.displayName = "RefHandler";
|
|
5065
|
+
const Wt = K(({ options: a, widgets: e, onChange: t }, i) => {
|
|
4963
5066
|
const s = te(() => ({
|
|
4964
5067
|
...a,
|
|
4965
5068
|
children: e
|
|
@@ -4971,7 +5074,7 @@ const Gt = K(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
4971
5074
|
}
|
|
4972
5075
|
return l;
|
|
4973
5076
|
};
|
|
4974
|
-
return z(
|
|
5077
|
+
return z(qs, {
|
|
4975
5078
|
initialOptions: s,
|
|
4976
5079
|
onResizeStop: (o, h) => {
|
|
4977
5080
|
var f, p;
|
|
@@ -4987,23 +5090,23 @@ const Gt = K(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
4987
5090
|
}));
|
|
4988
5091
|
},
|
|
4989
5092
|
onChange: t,
|
|
4990
|
-
children: [g(
|
|
5093
|
+
children: [g(Gt, {
|
|
4991
5094
|
ref: i
|
|
4992
|
-
}), g(
|
|
5095
|
+
}), g(er, {
|
|
4993
5096
|
children: g(Ys, {})
|
|
4994
5097
|
})]
|
|
4995
5098
|
});
|
|
4996
5099
|
});
|
|
4997
|
-
|
|
4998
|
-
const
|
|
5100
|
+
Wt.displayName = "F0GridStack";
|
|
5101
|
+
const Mr = Ae(
|
|
4999
5102
|
"F0GridStack",
|
|
5000
|
-
|
|
5001
|
-
),
|
|
5103
|
+
Wt
|
|
5104
|
+
), tr = ({ benefits: a }) => g("div", {
|
|
5002
5105
|
className: "flex flex-col gap-2",
|
|
5003
|
-
children: a.map((e, t) => g(
|
|
5106
|
+
children: a.map((e, t) => g(ir, {
|
|
5004
5107
|
text: e
|
|
5005
5108
|
}, t))
|
|
5006
|
-
}),
|
|
5109
|
+
}), ir = ({ text: a }) => z("div", {
|
|
5007
5110
|
className: "flex flex-row items-start gap-2",
|
|
5008
5111
|
children: [g(Hi, {
|
|
5009
5112
|
icon: Bi,
|
|
@@ -5014,7 +5117,7 @@ const Lr = Ae(
|
|
|
5014
5117
|
})]
|
|
5015
5118
|
}), $t = K(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => z("div", {
|
|
5016
5119
|
ref: c,
|
|
5017
|
-
className:
|
|
5120
|
+
className: j("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
|
|
5018
5121
|
children: [g("div", {
|
|
5019
5122
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
5020
5123
|
children: g("img", {
|
|
@@ -5049,7 +5152,7 @@ const Lr = Ae(
|
|
|
5049
5152
|
className: "font-bold text-xl text-f1-foreground",
|
|
5050
5153
|
children: a
|
|
5051
5154
|
})]
|
|
5052
|
-
}), g(
|
|
5155
|
+
}), g(tr, {
|
|
5053
5156
|
benefits: t
|
|
5054
5157
|
})]
|
|
5055
5158
|
}), i && g("div", {
|
|
@@ -5059,7 +5162,7 @@ const Lr = Ae(
|
|
|
5059
5162
|
})]
|
|
5060
5163
|
}));
|
|
5061
5164
|
$t.displayName = "ProductBlankslate";
|
|
5062
|
-
function
|
|
5165
|
+
function sr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
|
|
5063
5166
|
const [n, o] = A(a);
|
|
5064
5167
|
return q(() => {
|
|
5065
5168
|
o(a);
|
|
@@ -5074,13 +5177,13 @@ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
5074
5177
|
container: r,
|
|
5075
5178
|
children: [z("div", {
|
|
5076
5179
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
5077
|
-
children: [z(
|
|
5180
|
+
children: [z(Gi, {
|
|
5078
5181
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
5079
5182
|
children: [s && g(vt, {
|
|
5080
5183
|
module: s,
|
|
5081
5184
|
size: "lg"
|
|
5082
5185
|
}), t]
|
|
5083
|
-
}), g(
|
|
5186
|
+
}), g(Wi, {
|
|
5084
5187
|
variant: "outline",
|
|
5085
5188
|
icon: bt,
|
|
5086
5189
|
onClick: e,
|
|
@@ -5097,14 +5200,14 @@ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
5097
5200
|
})
|
|
5098
5201
|
});
|
|
5099
5202
|
}
|
|
5100
|
-
function
|
|
5101
|
-
const [x, C] = A(a), [
|
|
5203
|
+
function Hr({ 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: y, promoTag: b, showResponseDialog: N = !0 }) {
|
|
5204
|
+
const [x, C] = A(a), [D, S] = A(null), [R, E] = A(!1), O = async () => {
|
|
5102
5205
|
if (l != null && l.onClick) {
|
|
5103
5206
|
E(!0);
|
|
5104
5207
|
try {
|
|
5105
|
-
await l.onClick(), C(!1), N &&
|
|
5208
|
+
await l.onClick(), C(!1), N && S("success");
|
|
5106
5209
|
} catch {
|
|
5107
|
-
N &&
|
|
5210
|
+
N && S("error");
|
|
5108
5211
|
} finally {
|
|
5109
5212
|
E(!1);
|
|
5110
5213
|
}
|
|
@@ -5113,7 +5216,7 @@ function Mr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5113
5216
|
C(!1), e == null || e();
|
|
5114
5217
|
}, F = R;
|
|
5115
5218
|
return z(oe, {
|
|
5116
|
-
children: [g(
|
|
5219
|
+
children: [g(sr, {
|
|
5117
5220
|
isOpen: x,
|
|
5118
5221
|
onClose: L,
|
|
5119
5222
|
title: d,
|
|
@@ -5147,12 +5250,12 @@ function Mr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5147
5250
|
})
|
|
5148
5251
|
})
|
|
5149
5252
|
})
|
|
5150
|
-
}),
|
|
5253
|
+
}), D && N && g(wt, {
|
|
5151
5254
|
open: !0,
|
|
5152
5255
|
onClose: () => {
|
|
5153
|
-
L(),
|
|
5256
|
+
L(), S(null);
|
|
5154
5257
|
},
|
|
5155
|
-
success:
|
|
5258
|
+
success: D === "success",
|
|
5156
5259
|
errorMessage: r,
|
|
5157
5260
|
successMessage: n,
|
|
5158
5261
|
nextSteps: h,
|
|
@@ -5161,7 +5264,7 @@ function Mr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5161
5264
|
})]
|
|
5162
5265
|
});
|
|
5163
5266
|
}
|
|
5164
|
-
function
|
|
5267
|
+
function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
|
|
5165
5268
|
const [c, l] = A(!1), d = () => {
|
|
5166
5269
|
l(!0), i && i();
|
|
5167
5270
|
};
|
|
@@ -5175,7 +5278,7 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5175
5278
|
width: r
|
|
5176
5279
|
},
|
|
5177
5280
|
className: "relative bg-f1-background p-1",
|
|
5178
|
-
children: [z(
|
|
5281
|
+
children: [z(ji, {
|
|
5179
5282
|
children: [s && g("div", {
|
|
5180
5283
|
className: "absolute right-2 top-2 z-10",
|
|
5181
5284
|
children: g(X, {
|
|
@@ -5211,7 +5314,7 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5211
5314
|
})]
|
|
5212
5315
|
})]
|
|
5213
5316
|
})]
|
|
5214
|
-
}), o && g(
|
|
5317
|
+
}), o && g(Ui, {
|
|
5215
5318
|
className: "p-3",
|
|
5216
5319
|
children: o.map((p) => p.type === "upsell" ? g(_t, {
|
|
5217
5320
|
label: p.label,
|
|
@@ -5232,7 +5335,7 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5232
5335
|
})
|
|
5233
5336
|
});
|
|
5234
5337
|
}
|
|
5235
|
-
const
|
|
5338
|
+
const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
5236
5339
|
const r = (h) => h.variant === "promote" ? g(_t, {
|
|
5237
5340
|
label: h.label,
|
|
5238
5341
|
onRequest: async () => {
|
|
@@ -5261,25 +5364,25 @@ const rr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5261
5364
|
children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
|
|
5262
5365
|
});
|
|
5263
5366
|
});
|
|
5264
|
-
|
|
5265
|
-
function
|
|
5266
|
-
const [N, x] = A(!1), [C,
|
|
5267
|
-
e(
|
|
5268
|
-
}, O = async (
|
|
5269
|
-
if (
|
|
5270
|
-
R(
|
|
5367
|
+
nr.displayName = "UpsellingBanner";
|
|
5368
|
+
function Br({ 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: y, hideLabel: b = !1 }) {
|
|
5369
|
+
const [N, x] = A(!1), [C, D] = A(null), [S, R] = A(null), E = (k) => {
|
|
5370
|
+
e(k), y && y();
|
|
5371
|
+
}, O = async (k) => {
|
|
5372
|
+
if (k.type === "upsell") {
|
|
5373
|
+
R(k);
|
|
5271
5374
|
try {
|
|
5272
|
-
await
|
|
5375
|
+
await k.onClick(), k.showConfirmation && (x(!0), D("success"));
|
|
5273
5376
|
} catch {
|
|
5274
|
-
x(!0),
|
|
5377
|
+
x(!0), D("error");
|
|
5275
5378
|
}
|
|
5276
5379
|
}
|
|
5277
5380
|
}, L = () => {
|
|
5278
|
-
|
|
5279
|
-
}, F = a && !N, _ = m == null ? void 0 : m.map((
|
|
5280
|
-
...
|
|
5281
|
-
onClick: () => O(
|
|
5282
|
-
} :
|
|
5381
|
+
D(null), x(!1), R(null), e(!1);
|
|
5382
|
+
}, F = a && !N, _ = m == null ? void 0 : m.map((k) => k.type === "upsell" ? {
|
|
5383
|
+
...k,
|
|
5384
|
+
onClick: () => O(k)
|
|
5385
|
+
} : k);
|
|
5283
5386
|
return z(oe, {
|
|
5284
5387
|
children: [z(ct, {
|
|
5285
5388
|
open: F,
|
|
@@ -5298,7 +5401,7 @@ function Hr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5298
5401
|
side: n,
|
|
5299
5402
|
align: o,
|
|
5300
5403
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
5301
|
-
children: g(
|
|
5404
|
+
children: g(rr, {
|
|
5302
5405
|
mediaUrl: c,
|
|
5303
5406
|
title: l,
|
|
5304
5407
|
description: d,
|
|
@@ -5310,49 +5413,49 @@ function Hr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5310
5413
|
showConfirmation: !1
|
|
5311
5414
|
})
|
|
5312
5415
|
})]
|
|
5313
|
-
}), (
|
|
5416
|
+
}), (S == null ? void 0 : S.type) === "upsell" && S.showConfirmation && C && g(wt, {
|
|
5314
5417
|
open: !0,
|
|
5315
5418
|
onClose: L,
|
|
5316
5419
|
success: C === "success",
|
|
5317
|
-
errorMessage:
|
|
5318
|
-
successMessage:
|
|
5319
|
-
nextSteps:
|
|
5320
|
-
closeLabel:
|
|
5420
|
+
errorMessage: S.errorMessage,
|
|
5421
|
+
successMessage: S.successMessage,
|
|
5422
|
+
nextSteps: S.nextSteps,
|
|
5423
|
+
closeLabel: S.closeLabel,
|
|
5321
5424
|
portalContainer: null
|
|
5322
5425
|
})]
|
|
5323
5426
|
});
|
|
5324
5427
|
}
|
|
5325
|
-
const
|
|
5326
|
-
const t =
|
|
5428
|
+
const or = xe(null), ar = ({ children: a, fullScreen: e = !0 }) => {
|
|
5429
|
+
const t = Y(null), [i, s] = A(t.current);
|
|
5327
5430
|
return ss(() => {
|
|
5328
5431
|
s(t.current);
|
|
5329
|
-
}, []), g(
|
|
5432
|
+
}, []), g(or.Provider, {
|
|
5330
5433
|
value: {
|
|
5331
5434
|
element: i
|
|
5332
5435
|
},
|
|
5333
5436
|
children: g("div", {
|
|
5334
5437
|
ref: t,
|
|
5335
5438
|
id: "f0-layout",
|
|
5336
|
-
className:
|
|
5439
|
+
className: j({
|
|
5337
5440
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
|
|
5338
5441
|
}),
|
|
5339
5442
|
children: a
|
|
5340
5443
|
})
|
|
5341
5444
|
});
|
|
5342
|
-
},
|
|
5445
|
+
}, lr = ({ children: a }) => g(is, {
|
|
5343
5446
|
reducedMotion: "user",
|
|
5344
5447
|
children: a
|
|
5345
|
-
}),
|
|
5346
|
-
children: g(
|
|
5448
|
+
}), Ir = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(lr, {
|
|
5449
|
+
children: g(Vi, {
|
|
5347
5450
|
isDev: o,
|
|
5348
5451
|
showExperimentalWarnings: c,
|
|
5349
|
-
children: g(
|
|
5452
|
+
children: g(Yi, {
|
|
5350
5453
|
...n,
|
|
5351
5454
|
children: g(Xi, {
|
|
5352
5455
|
...r,
|
|
5353
5456
|
children: g(Ji, {
|
|
5354
5457
|
...t,
|
|
5355
|
-
children: g(
|
|
5458
|
+
children: g(ar, {
|
|
5356
5459
|
...e,
|
|
5357
5460
|
children: g(Zi, {
|
|
5358
5461
|
children: g(Qi, {
|
|
@@ -5371,7 +5474,7 @@ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5371
5474
|
})
|
|
5372
5475
|
})
|
|
5373
5476
|
})
|
|
5374
|
-
}), tt = (a) => `datacollection-${a}`,
|
|
5477
|
+
}), tt = (a) => `datacollection-${a}`, Fr = {
|
|
5375
5478
|
get: async (a) => JSON.parse(
|
|
5376
5479
|
localStorage.getItem(tt(a)) ?? "{}"
|
|
5377
5480
|
),
|
|
@@ -5380,95 +5483,95 @@ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5380
5483
|
}
|
|
5381
5484
|
};
|
|
5382
5485
|
export {
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5486
|
+
mr as AreaChart,
|
|
5487
|
+
$r as Await,
|
|
5488
|
+
yr as BarChart,
|
|
5489
|
+
vr as CategoryBarChart,
|
|
5490
|
+
Er as ComboChart,
|
|
5491
|
+
jr as DndProvider,
|
|
5389
5492
|
Ur as EmojiImage,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5493
|
+
qr as F0Avatar,
|
|
5494
|
+
Kr as F0AvatarAlert,
|
|
5495
|
+
Vr as F0AvatarCompany,
|
|
5393
5496
|
Yr as F0AvatarDate,
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5497
|
+
Xr as F0AvatarEmoji,
|
|
5498
|
+
Jr as F0AvatarFile,
|
|
5499
|
+
Zr as F0AvatarIcon,
|
|
5500
|
+
Qr as F0AvatarList,
|
|
5398
5501
|
vt as F0AvatarModule,
|
|
5399
|
-
|
|
5400
|
-
|
|
5502
|
+
en as F0AvatarPerson,
|
|
5503
|
+
tn as F0AvatarTeam,
|
|
5401
5504
|
X as F0Button,
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5505
|
+
sn as F0ButtonDropdown,
|
|
5506
|
+
rn as F0ButtonToggle,
|
|
5507
|
+
nn as F0Card,
|
|
5508
|
+
on as F0Checkbox,
|
|
5509
|
+
kr as F0ChipList,
|
|
5510
|
+
Ar as F0DatePicker,
|
|
5511
|
+
an as F0EventCatcherProvider,
|
|
5512
|
+
Mr as F0GridStack,
|
|
5410
5513
|
Hi as F0Icon,
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5514
|
+
ln as F0Link,
|
|
5515
|
+
Ir as F0Provider,
|
|
5516
|
+
hn as F0TagAlert,
|
|
5517
|
+
dn as F0TagBalance,
|
|
5518
|
+
cn as F0TagCompany,
|
|
5519
|
+
un as F0TagDot,
|
|
5520
|
+
fn as F0TagList,
|
|
5521
|
+
gn as F0TagPerson,
|
|
5419
5522
|
Li as F0TagRaw,
|
|
5420
5523
|
Mi as F0TagStatus,
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5524
|
+
pn as F0TagTeam,
|
|
5525
|
+
mn as GROUP_ID_SYMBOL,
|
|
5526
|
+
Lr as HomeLayout,
|
|
5527
|
+
br as LineChart,
|
|
5528
|
+
yn as OneFilterPicker,
|
|
5529
|
+
wr as PieChart,
|
|
5427
5530
|
Qi as PrivacyModeProvider,
|
|
5428
5531
|
$t as ProductBlankslate,
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5532
|
+
vn as ProductCard,
|
|
5533
|
+
Hr as ProductModal,
|
|
5534
|
+
rr as ProductWidget,
|
|
5535
|
+
xr as ProgressBarChart,
|
|
5536
|
+
Or as StandardLayout,
|
|
5537
|
+
bn as TagCounter,
|
|
5538
|
+
Tr as TwoColumnLayout,
|
|
5436
5539
|
wt as UpsellRequestResponseDialog,
|
|
5437
|
-
|
|
5540
|
+
nr as UpsellingBanner,
|
|
5438
5541
|
_t as UpsellingButton,
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5542
|
+
Br as UpsellingPopover,
|
|
5543
|
+
_r as VerticalBarChart,
|
|
5544
|
+
gr as avatarVariants,
|
|
5545
|
+
wn as buildTranslations,
|
|
5546
|
+
Dr as buttonDropdownSizes,
|
|
5547
|
+
Nr as buttonDropdownVariants,
|
|
5548
|
+
Rr as buttonSizes,
|
|
5446
5549
|
Sr as buttonToggleSizes,
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5550
|
+
Cr as buttonVariants,
|
|
5551
|
+
_n as createAtlaskitDriver,
|
|
5552
|
+
xn as createDataSourceDefinition,
|
|
5553
|
+
Fr as dataCollectionLocalStorageHandler,
|
|
5451
5554
|
Pr as datepickerSizes,
|
|
5452
|
-
|
|
5555
|
+
fr as defaultTranslations,
|
|
5453
5556
|
Ae as experimental,
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5557
|
+
En as getAnimationVariants,
|
|
5558
|
+
Cn as getDataSourcePaginationType,
|
|
5559
|
+
Rn as getEmojiLabel,
|
|
5560
|
+
Nn as isInfiniteScrollPagination,
|
|
5561
|
+
Dn as isPageBasedPagination,
|
|
5562
|
+
zr as linkVariants,
|
|
5460
5563
|
Sn as modules,
|
|
5461
|
-
|
|
5462
|
-
|
|
5564
|
+
zn as predefinedPresets,
|
|
5565
|
+
kn as tagDotColors,
|
|
5463
5566
|
Pn as useData,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5567
|
+
An as useDataSource,
|
|
5568
|
+
On as useDndEvents,
|
|
5569
|
+
Tn as useDraggable,
|
|
5570
|
+
Ln as useDroppableList,
|
|
5571
|
+
Mn as useEmojiConfetti,
|
|
5572
|
+
Hn as useGroups,
|
|
5573
|
+
Bn as usePrivacyMode,
|
|
5574
|
+
In as useReducedMotion,
|
|
5575
|
+
Fn as useSelectable,
|
|
5576
|
+
Gn as useXRay
|
|
5474
5577
|
};
|