@factorialco/f0-react 1.270.0 → 1.271.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/experimental.css +1 -1
- package/dist/experimental.d.ts +15 -8
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +15 -8
- package/dist/f0.js +290 -283
- package/dist/{hooks-BrQJlUnU.js → hooks-DhSyBRGu.js} +1538 -1526
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as
|
|
2
|
-
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as
|
|
1
|
+
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as St, k as $, l as Fe, u as Pt, G as Ct, m as Nt, n as we, o as Ot, p as Ie, q as At, B as Ee, X as _e, Y as le, r as kt, s as je, t as Lt, v as Tt, w as Dt, x as Ft, y as It, z as Et, D as _t, F as jt, H as Se, I as $t, J as q, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as qt, W as Wt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as qe, a9 as We, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Pe, ag as se, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as sa, aq as ia, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Sa, aL as Pa, aM as Ca, aN as Na, aO as Oa } from "./hooks-DhSyBRGu.js";
|
|
2
|
+
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Sn, b7 as Pn, b8 as Cn, bb as Nn, bc as On, bd as An, bf as kn, b4 as Ln, be as Tn, ba as Dn, bx as Fn, bq as In, bk as En, bn as _n, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as qn, bl as Wn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-DhSyBRGu.js";
|
|
3
3
|
import { jsx as n, jsxs as C, Fragment as ae } from "react/jsx-runtime";
|
|
4
4
|
import * as fe from "react";
|
|
5
|
-
import k, { PureComponent as
|
|
6
|
-
const
|
|
5
|
+
import k, { PureComponent as Aa, useState as T, forwardRef as V, useEffect as B, useMemo as ie, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Ta } from "react";
|
|
6
|
+
const Or = {
|
|
7
7
|
approvals: {
|
|
8
8
|
history: "Approval history",
|
|
9
9
|
statuses: {
|
|
@@ -71,11 +71,18 @@ const Ar = {
|
|
|
71
71
|
cancel: "Cancel",
|
|
72
72
|
failedToLoadOptions: "Failed to load options",
|
|
73
73
|
retry: "Retry",
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
number: {
|
|
75
|
+
value: "Value",
|
|
76
|
+
equal: "Equal to",
|
|
77
|
+
equalTo: "Equal to {{value}}",
|
|
78
|
+
lessOrEqual: "Less or equal to",
|
|
79
|
+
greaterOrEqual: "Greater or equal to",
|
|
80
|
+
equalShort: "= {{value}}",
|
|
81
|
+
greaterThanOrEqualShort: ">= {{value}}",
|
|
82
|
+
lessThanOrEqualShort: "<= {{value}}",
|
|
83
|
+
rangeTitle: "Use range",
|
|
84
|
+
range: "Between {{min}} and {{max}}"
|
|
85
|
+
}
|
|
79
86
|
},
|
|
80
87
|
toc: {
|
|
81
88
|
search: "Search..."
|
|
@@ -238,11 +245,11 @@ const Ar = {
|
|
|
238
245
|
loadingMore: "Loading..."
|
|
239
246
|
},
|
|
240
247
|
numberInput: {
|
|
241
|
-
between: "
|
|
242
|
-
greaterThan: "
|
|
243
|
-
lessThan: "
|
|
248
|
+
between: "It should be between {{min}} and {{max}}",
|
|
249
|
+
greaterThan: "It should be greater than {{min}}",
|
|
250
|
+
lessThan: "It should be less than {{max}}"
|
|
244
251
|
}
|
|
245
|
-
},
|
|
252
|
+
}, Ar = [
|
|
246
253
|
"person",
|
|
247
254
|
"team",
|
|
248
255
|
"company",
|
|
@@ -270,10 +277,10 @@ function Fa(e, t) {
|
|
|
270
277
|
function Ia(e, t, r) {
|
|
271
278
|
return t && Fa(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
272
279
|
}
|
|
273
|
-
function
|
|
274
|
-
return t = Q(t),
|
|
280
|
+
function Ea(e, t, r) {
|
|
281
|
+
return t = Q(t), _a(e, Xe() ? Reflect.construct(t, r || [], Q(e).constructor) : t.apply(e, r));
|
|
275
282
|
}
|
|
276
|
-
function
|
|
283
|
+
function _a(e, t) {
|
|
277
284
|
if (t && (R(t) === "object" || typeof t == "function"))
|
|
278
285
|
return t;
|
|
279
286
|
if (t !== void 0)
|
|
@@ -329,7 +336,7 @@ function Ba(e, t) {
|
|
|
329
336
|
}
|
|
330
337
|
var re = /* @__PURE__ */ function(e) {
|
|
331
338
|
function t() {
|
|
332
|
-
return Da(this, t),
|
|
339
|
+
return Da(this, t), Ea(this, t, arguments);
|
|
333
340
|
}
|
|
334
341
|
return $a(t, e), Ia(t, [{
|
|
335
342
|
key: "render",
|
|
@@ -346,23 +353,23 @@ Ze(re, "defaultProps", {
|
|
|
346
353
|
type: "number"
|
|
347
354
|
});
|
|
348
355
|
var Ma = ["option", "isActive"];
|
|
349
|
-
function
|
|
350
|
-
return
|
|
356
|
+
function W() {
|
|
357
|
+
return W = Object.assign ? Object.assign.bind() : function(e) {
|
|
351
358
|
for (var t = 1; t < arguments.length; t++) {
|
|
352
359
|
var r = arguments[t];
|
|
353
360
|
for (var a in r)
|
|
354
361
|
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
355
362
|
}
|
|
356
363
|
return e;
|
|
357
|
-
},
|
|
364
|
+
}, W.apply(this, arguments);
|
|
358
365
|
}
|
|
359
366
|
function Ra(e, t) {
|
|
360
367
|
if (e == null) return {};
|
|
361
368
|
var r = za(e, t), a, o;
|
|
362
369
|
if (Object.getOwnPropertySymbols) {
|
|
363
|
-
var
|
|
364
|
-
for (o = 0; o <
|
|
365
|
-
a =
|
|
370
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
371
|
+
for (o = 0; o < i.length; o++)
|
|
372
|
+
a = i[o], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
|
|
366
373
|
}
|
|
367
374
|
return r;
|
|
368
375
|
}
|
|
@@ -378,13 +385,13 @@ function za(e, t) {
|
|
|
378
385
|
}
|
|
379
386
|
function Ka(e) {
|
|
380
387
|
var t = e.option, r = e.isActive, a = Ra(e, Ma);
|
|
381
|
-
return typeof t == "string" ? /* @__PURE__ */ k.createElement(xe,
|
|
382
|
-
option: /* @__PURE__ */ k.createElement(mt,
|
|
388
|
+
return typeof t == "string" ? /* @__PURE__ */ k.createElement(xe, W({
|
|
389
|
+
option: /* @__PURE__ */ k.createElement(mt, W({
|
|
383
390
|
type: t
|
|
384
391
|
}, a)),
|
|
385
392
|
isActive: r,
|
|
386
393
|
shapeType: "symbols"
|
|
387
|
-
}, a)) : /* @__PURE__ */ k.createElement(xe,
|
|
394
|
+
}, a)) : /* @__PURE__ */ k.createElement(xe, W({
|
|
388
395
|
option: t,
|
|
389
396
|
isActive: r,
|
|
390
397
|
shapeType: "symbols"
|
|
@@ -408,7 +415,7 @@ function G() {
|
|
|
408
415
|
return e;
|
|
409
416
|
}, G.apply(this, arguments);
|
|
410
417
|
}
|
|
411
|
-
function
|
|
418
|
+
function Oe(e, t) {
|
|
412
419
|
var r = Object.keys(e);
|
|
413
420
|
if (Object.getOwnPropertySymbols) {
|
|
414
421
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -421,26 +428,26 @@ function Ae(e, t) {
|
|
|
421
428
|
function F(e) {
|
|
422
429
|
for (var t = 1; t < arguments.length; t++) {
|
|
423
430
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
424
|
-
t % 2 ?
|
|
431
|
+
t % 2 ? Oe(Object(r), !0).forEach(function(a) {
|
|
425
432
|
j(e, a, r[a]);
|
|
426
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
433
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Oe(Object(r)).forEach(function(a) {
|
|
427
434
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
428
435
|
});
|
|
429
436
|
}
|
|
430
437
|
return e;
|
|
431
438
|
}
|
|
432
|
-
function
|
|
439
|
+
function qa(e, t) {
|
|
433
440
|
if (!(e instanceof t))
|
|
434
441
|
throw new TypeError("Cannot call a class as a function");
|
|
435
442
|
}
|
|
436
|
-
function
|
|
443
|
+
function Ae(e, t) {
|
|
437
444
|
for (var r = 0; r < t.length; r++) {
|
|
438
445
|
var a = t[r];
|
|
439
446
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, tt(a.key), a);
|
|
440
447
|
}
|
|
441
448
|
}
|
|
442
|
-
function
|
|
443
|
-
return t &&
|
|
449
|
+
function Wa(e, t, r) {
|
|
450
|
+
return t && Ae(e.prototype, t), r && Ae(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
444
451
|
}
|
|
445
452
|
function Ga(e, t, r) {
|
|
446
453
|
return t = ee(t), Va(e, et() ? Reflect.construct(t, r || [], ee(e).constructor) : t.apply(e, r));
|
|
@@ -502,9 +509,9 @@ function Ua(e, t) {
|
|
|
502
509
|
var Y = /* @__PURE__ */ function(e) {
|
|
503
510
|
function t() {
|
|
504
511
|
var r;
|
|
505
|
-
|
|
506
|
-
for (var a = arguments.length, o = new Array(a),
|
|
507
|
-
o[
|
|
512
|
+
qa(this, t);
|
|
513
|
+
for (var a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
514
|
+
o[i] = arguments[i];
|
|
508
515
|
return r = Ga(this, t, [].concat(o)), j(r, "state", {
|
|
509
516
|
isAnimationFinished: !1
|
|
510
517
|
}), j(r, "handleAnimationEnd", function() {
|
|
@@ -515,14 +522,14 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
515
522
|
r.setState({
|
|
516
523
|
isAnimationFinished: !1
|
|
517
524
|
});
|
|
518
|
-
}), j(r, "id",
|
|
525
|
+
}), j(r, "id", Pt("recharts-scatter-")), r;
|
|
519
526
|
}
|
|
520
|
-
return Ha(t, e),
|
|
527
|
+
return Ha(t, e), Wa(t, [{
|
|
521
528
|
key: "renderSymbolsStatically",
|
|
522
529
|
value: function(a) {
|
|
523
|
-
var o = this,
|
|
530
|
+
var o = this, i = this.props, l = i.shape, d = i.activeShape, s = i.activeIndex, m = ne(this.props, !1);
|
|
524
531
|
return a.map(function(c, f) {
|
|
525
|
-
var h =
|
|
532
|
+
var h = s === f, u = h ? d : l, g = F(F({}, m), c);
|
|
526
533
|
return /* @__PURE__ */ k.createElement(K, G({
|
|
527
534
|
className: "recharts-scatter-symbol",
|
|
528
535
|
key: "symbol-".concat(c == null ? void 0 : c.cx, "-").concat(c == null ? void 0 : c.cy, "-").concat(c == null ? void 0 : c.size, "-").concat(f)
|
|
@@ -538,10 +545,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
538
545
|
}, {
|
|
539
546
|
key: "renderSymbolsWithAnimation",
|
|
540
547
|
value: function() {
|
|
541
|
-
var a = this, o = this.props,
|
|
548
|
+
var a = this, o = this.props, i = o.points, l = o.isAnimationActive, d = o.animationBegin, s = o.animationDuration, m = o.animationEasing, c = o.animationId, f = this.state.prevPoints;
|
|
542
549
|
return /* @__PURE__ */ k.createElement(vt, {
|
|
543
550
|
begin: d,
|
|
544
|
-
duration:
|
|
551
|
+
duration: s,
|
|
545
552
|
isActive: l,
|
|
546
553
|
easing: m,
|
|
547
554
|
from: {
|
|
@@ -554,19 +561,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
554
561
|
onAnimationEnd: this.handleAnimationEnd,
|
|
555
562
|
onAnimationStart: this.handleAnimationStart
|
|
556
563
|
}, function(h) {
|
|
557
|
-
var u = h.t, g =
|
|
558
|
-
var
|
|
559
|
-
if (
|
|
560
|
-
var x = J(
|
|
564
|
+
var u = h.t, g = i.map(function(N, O) {
|
|
565
|
+
var A = f && f[O];
|
|
566
|
+
if (A) {
|
|
567
|
+
var x = J(A.cx, N.cx), b = J(A.cy, N.cy), w = J(A.size, N.size);
|
|
561
568
|
return F(F({}, N), {}, {
|
|
562
569
|
cx: x(u),
|
|
563
570
|
cy: b(u),
|
|
564
571
|
size: w(u)
|
|
565
572
|
});
|
|
566
573
|
}
|
|
567
|
-
var
|
|
574
|
+
var S = J(0, N.size);
|
|
568
575
|
return F(F({}, N), {}, {
|
|
569
|
-
size:
|
|
576
|
+
size: S(u)
|
|
570
577
|
});
|
|
571
578
|
});
|
|
572
579
|
return /* @__PURE__ */ k.createElement(K, null, a.renderSymbolsStatically(g));
|
|
@@ -575,8 +582,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
575
582
|
}, {
|
|
576
583
|
key: "renderSymbols",
|
|
577
584
|
value: function() {
|
|
578
|
-
var a = this.props, o = a.points,
|
|
579
|
-
return
|
|
585
|
+
var a = this.props, o = a.points, i = a.isAnimationActive, l = this.state.prevPoints;
|
|
586
|
+
return i && o && o.length && (!l || !yt(l, o)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(o);
|
|
580
587
|
}
|
|
581
588
|
}, {
|
|
582
589
|
key: "renderErrorBar",
|
|
@@ -584,21 +591,21 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
584
591
|
var a = this.props.isAnimationActive;
|
|
585
592
|
if (a && !this.state.isAnimationFinished)
|
|
586
593
|
return null;
|
|
587
|
-
var o = this.props,
|
|
594
|
+
var o = this.props, i = o.points, l = o.xAxis, d = o.yAxis, s = o.children, m = De(s, bt);
|
|
588
595
|
return m ? m.map(function(c, f) {
|
|
589
596
|
var h = c.props, u = h.direction, g = h.dataKey;
|
|
590
597
|
return /* @__PURE__ */ k.cloneElement(c, {
|
|
591
|
-
key: "".concat(u, "-").concat(g, "-").concat(
|
|
592
|
-
data:
|
|
598
|
+
key: "".concat(u, "-").concat(g, "-").concat(i[f]),
|
|
599
|
+
data: i,
|
|
593
600
|
xAxis: l,
|
|
594
601
|
yAxis: d,
|
|
595
602
|
layout: u === "x" ? "vertical" : "horizontal",
|
|
596
|
-
dataPointFormatter: function(
|
|
603
|
+
dataPointFormatter: function(O, A) {
|
|
597
604
|
return {
|
|
598
|
-
x:
|
|
599
|
-
y:
|
|
600
|
-
value: u === "x" ? +
|
|
601
|
-
errorVal: X(
|
|
605
|
+
x: O.cx,
|
|
606
|
+
y: O.cy,
|
|
607
|
+
value: u === "x" ? +O.node.x : +O.node.y,
|
|
608
|
+
errorVal: X(O, A)
|
|
602
609
|
};
|
|
603
610
|
}
|
|
604
611
|
});
|
|
@@ -607,7 +614,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
607
614
|
}, {
|
|
608
615
|
key: "renderLine",
|
|
609
616
|
value: function() {
|
|
610
|
-
var a = this.props, o = a.points,
|
|
617
|
+
var a = this.props, o = a.points, i = a.line, l = a.lineType, d = a.lineJointType, s = ne(this.props, !1), m = ne(i, !1), c, f;
|
|
611
618
|
if (l === "joint")
|
|
612
619
|
c = o.map(function(b) {
|
|
613
620
|
return {
|
|
@@ -616,24 +623,24 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
616
623
|
};
|
|
617
624
|
});
|
|
618
625
|
else if (l === "fitting") {
|
|
619
|
-
var h = gt(o), u = h.xmin, g = h.xmax, N = h.a,
|
|
620
|
-
return N * w +
|
|
626
|
+
var h = gt(o), u = h.xmin, g = h.xmax, N = h.a, O = h.b, A = function(w) {
|
|
627
|
+
return N * w + O;
|
|
621
628
|
};
|
|
622
629
|
c = [{
|
|
623
630
|
x: u,
|
|
624
|
-
y:
|
|
631
|
+
y: A(u)
|
|
625
632
|
}, {
|
|
626
633
|
x: g,
|
|
627
|
-
y:
|
|
634
|
+
y: A(g)
|
|
628
635
|
}];
|
|
629
636
|
}
|
|
630
|
-
var x = F(F(F({},
|
|
637
|
+
var x = F(F(F({}, s), {}, {
|
|
631
638
|
fill: "none",
|
|
632
|
-
stroke:
|
|
639
|
+
stroke: s && s.fill
|
|
633
640
|
}, m), {}, {
|
|
634
641
|
points: c
|
|
635
642
|
});
|
|
636
|
-
return /* @__PURE__ */ k.isValidElement(
|
|
643
|
+
return /* @__PURE__ */ k.isValidElement(i) ? f = /* @__PURE__ */ k.cloneElement(i, x) : xt(i) ? f = i(x) : f = /* @__PURE__ */ k.createElement(wt, G({}, x, {
|
|
637
644
|
type: d
|
|
638
645
|
})), /* @__PURE__ */ k.createElement(K, {
|
|
639
646
|
className: "recharts-scatter-line",
|
|
@@ -643,15 +650,15 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
643
650
|
}, {
|
|
644
651
|
key: "render",
|
|
645
652
|
value: function() {
|
|
646
|
-
var a = this.props, o = a.hide,
|
|
647
|
-
if (o || !
|
|
653
|
+
var a = this.props, o = a.hide, i = a.points, l = a.line, d = a.className, s = a.xAxis, m = a.yAxis, c = a.left, f = a.top, h = a.width, u = a.height, g = a.id, N = a.isAnimationActive;
|
|
654
|
+
if (o || !i || !i.length)
|
|
648
655
|
return null;
|
|
649
|
-
var
|
|
656
|
+
var O = this.state.isAnimationFinished, A = St("recharts-scatter", d), x = s && s.allowDataOverflow, b = m && m.allowDataOverflow, w = x || b, S = $(g) ? this.id : g;
|
|
650
657
|
return /* @__PURE__ */ k.createElement(K, {
|
|
651
|
-
className:
|
|
652
|
-
clipPath: w ? "url(#clipPath-".concat(
|
|
658
|
+
className: A,
|
|
659
|
+
clipPath: w ? "url(#clipPath-".concat(S, ")") : null
|
|
653
660
|
}, x || b ? /* @__PURE__ */ k.createElement("defs", null, /* @__PURE__ */ k.createElement("clipPath", {
|
|
654
|
-
id: "clipPath-".concat(
|
|
661
|
+
id: "clipPath-".concat(S)
|
|
655
662
|
}, /* @__PURE__ */ k.createElement("rect", {
|
|
656
663
|
x: x ? c : c - h / 2,
|
|
657
664
|
y: b ? f : f - u / 2,
|
|
@@ -659,7 +666,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
659
666
|
height: b ? u : u * 2
|
|
660
667
|
}))) : null, l && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ k.createElement(K, {
|
|
661
668
|
key: "recharts-scatter-symbols"
|
|
662
|
-
}, this.renderSymbols()), (!N ||
|
|
669
|
+
}, this.renderSymbols()), (!N || O) && Fe.renderCallByParent(this.props, i));
|
|
663
670
|
}
|
|
664
671
|
}], [{
|
|
665
672
|
key: "getDerivedStateFromProps",
|
|
@@ -673,7 +680,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
673
680
|
} : null;
|
|
674
681
|
}
|
|
675
682
|
}]);
|
|
676
|
-
}(
|
|
683
|
+
}(Aa);
|
|
677
684
|
j(Y, "displayName", "Scatter");
|
|
678
685
|
j(Y, "defaultProps", {
|
|
679
686
|
xAxisId: 0,
|
|
@@ -691,11 +698,11 @@ j(Y, "defaultProps", {
|
|
|
691
698
|
animationEasing: "linear"
|
|
692
699
|
});
|
|
693
700
|
j(Y, "getComposedData", function(e) {
|
|
694
|
-
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item,
|
|
695
|
-
var
|
|
701
|
+
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, i = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, s = e.offset, m = o.props.tooltipType, c = De(o.props.children, Nt), f = $(t.dataKey) ? o.props.dataKey : t.dataKey, h = $(r.dataKey) ? o.props.dataKey : r.dataKey, u = a && a.dataKey, g = a ? a.range : re.defaultProps.range, N = g && g[0], O = t.scale.bandwidth ? t.scale.bandwidth() : 0, A = r.scale.bandwidth ? r.scale.bandwidth() : 0, x = i.map(function(b, w) {
|
|
702
|
+
var S = X(b, f), y = X(b, h), v = !$(u) && X(b, u) || "-", L = [{
|
|
696
703
|
name: $(t.dataKey) ? o.props.name : t.name || t.dataKey,
|
|
697
704
|
unit: t.unit || "",
|
|
698
|
-
value:
|
|
705
|
+
value: S,
|
|
699
706
|
payload: b,
|
|
700
707
|
dataKey: f,
|
|
701
708
|
type: m
|
|
@@ -718,52 +725,52 @@ j(Y, "getComposedData", function(e) {
|
|
|
718
725
|
var D = we({
|
|
719
726
|
axis: t,
|
|
720
727
|
ticks: l,
|
|
721
|
-
bandSize:
|
|
728
|
+
bandSize: O,
|
|
722
729
|
entry: b,
|
|
723
730
|
index: w,
|
|
724
731
|
dataKey: f
|
|
725
|
-
}),
|
|
732
|
+
}), E = we({
|
|
726
733
|
axis: r,
|
|
727
734
|
ticks: d,
|
|
728
|
-
bandSize:
|
|
735
|
+
bandSize: A,
|
|
729
736
|
entry: b,
|
|
730
737
|
index: w,
|
|
731
738
|
dataKey: h
|
|
732
|
-
}), p = v !== "-" ? a.scale(v) : N,
|
|
739
|
+
}), p = v !== "-" ? a.scale(v) : N, P = Math.sqrt(Math.max(p, 0) / Math.PI);
|
|
733
740
|
return F(F({}, b), {}, {
|
|
734
741
|
cx: D,
|
|
735
|
-
cy:
|
|
736
|
-
x: D -
|
|
737
|
-
y:
|
|
742
|
+
cy: E,
|
|
743
|
+
x: D - P,
|
|
744
|
+
y: E - P,
|
|
738
745
|
xAxis: t,
|
|
739
746
|
yAxis: r,
|
|
740
747
|
zAxis: a,
|
|
741
|
-
width: 2 *
|
|
742
|
-
height: 2 *
|
|
748
|
+
width: 2 * P,
|
|
749
|
+
height: 2 * P,
|
|
743
750
|
size: p,
|
|
744
751
|
node: {
|
|
745
|
-
x:
|
|
752
|
+
x: S,
|
|
746
753
|
y,
|
|
747
754
|
z: v
|
|
748
755
|
},
|
|
749
756
|
tooltipPayload: L,
|
|
750
757
|
tooltipPosition: {
|
|
751
758
|
x: D,
|
|
752
|
-
y:
|
|
759
|
+
y: E
|
|
753
760
|
},
|
|
754
761
|
payload: b
|
|
755
762
|
}, c && c[w] && c[w].props);
|
|
756
763
|
});
|
|
757
764
|
return F({
|
|
758
765
|
points: x
|
|
759
|
-
},
|
|
766
|
+
}, s);
|
|
760
767
|
});
|
|
761
|
-
var Ja =
|
|
768
|
+
var Ja = Ot({
|
|
762
769
|
chartName: "ComposedChart",
|
|
763
|
-
GraphicalChild: [Ie,
|
|
770
|
+
GraphicalChild: [Ie, At, Ee, Y],
|
|
764
771
|
axisComponents: [{
|
|
765
772
|
axisType: "xAxis",
|
|
766
|
-
AxisComp:
|
|
773
|
+
AxisComp: _e
|
|
767
774
|
}, {
|
|
768
775
|
axisType: "yAxis",
|
|
769
776
|
AxisComp: le
|
|
@@ -775,12 +782,12 @@ var Ja = At({
|
|
|
775
782
|
});
|
|
776
783
|
const Xa = (e) => {
|
|
777
784
|
const t = (r) => {
|
|
778
|
-
const { cx: a, cy: o, fill:
|
|
785
|
+
const { cx: a, cy: o, fill: i, payload: l } = r, d = () => {
|
|
779
786
|
if (!l) return "-";
|
|
780
787
|
if (l[e] !== void 0)
|
|
781
788
|
return l[e];
|
|
782
|
-
for (const [
|
|
783
|
-
if (typeof m == "number" &&
|
|
789
|
+
for (const [s, m] of Object.entries(l))
|
|
790
|
+
if (typeof m == "number" && s !== "x")
|
|
784
791
|
return m;
|
|
785
792
|
return "-";
|
|
786
793
|
};
|
|
@@ -788,20 +795,20 @@ const Xa = (e) => {
|
|
|
788
795
|
cx: a,
|
|
789
796
|
cy: o,
|
|
790
797
|
r: 4,
|
|
791
|
-
fill:
|
|
798
|
+
fill: i,
|
|
792
799
|
stroke: "white",
|
|
793
800
|
strokeWidth: 2,
|
|
794
|
-
ref: (
|
|
795
|
-
|
|
801
|
+
ref: (s) => {
|
|
802
|
+
s != null && s.parentElement && s.parentElement.setAttribute("aria-label", `Data point: ${d()}`);
|
|
796
803
|
}
|
|
797
804
|
});
|
|
798
805
|
};
|
|
799
806
|
return t.displayName = `Scatter-${e}`, t;
|
|
800
807
|
}, Za = ({ dataConfig: e, data: t, xAxis: r, yAxis: a = {
|
|
801
808
|
hide: !0
|
|
802
|
-
}, label: o = !1, hideTooltip:
|
|
803
|
-
var v, L, D,
|
|
804
|
-
const N = Lt(t),
|
|
809
|
+
}, label: o = !1, hideTooltip: i = !1, hideGrid: l = !1, aspect: d, legend: s, showValueUnderLabel: m = !1, bar: c, line: f, scatter: h, onClick: u }, g) => {
|
|
810
|
+
var v, L, D, E;
|
|
811
|
+
const N = Lt(t), O = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], A = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], x = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], b = [...O, ...A, ...x], w = Math.max(...N.flatMap((p) => b.map((P) => Tt(a != null && a.tickFormatter ? a.tickFormatter(`${p[P]}`) : `${p[P]}`)))), S = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "left"), y = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "right");
|
|
805
812
|
return n(Dt, {
|
|
806
813
|
config: e,
|
|
807
814
|
ref: g,
|
|
@@ -819,51 +826,51 @@ const Xa = (e) => {
|
|
|
819
826
|
onClick: (p) => {
|
|
820
827
|
if (!u || !p.activeLabel || !p.activePayload)
|
|
821
828
|
return;
|
|
822
|
-
const
|
|
829
|
+
const P = {
|
|
823
830
|
label: p.activeLabel,
|
|
824
831
|
values: {}
|
|
825
832
|
};
|
|
826
833
|
for (const H of p.activePayload)
|
|
827
|
-
|
|
828
|
-
u(
|
|
834
|
+
P.values[H.name] = H.value;
|
|
835
|
+
u(P);
|
|
829
836
|
},
|
|
830
|
-
children: [!
|
|
837
|
+
children: [!i && n(Ft, {
|
|
831
838
|
...It(),
|
|
832
|
-
content: n(
|
|
839
|
+
content: n(Et, {
|
|
833
840
|
yAxisFormatter: a.tickFormatter
|
|
834
841
|
})
|
|
835
|
-
}), !l && n(
|
|
842
|
+
}), !l && n(_t, {
|
|
836
843
|
...jt()
|
|
837
|
-
}),
|
|
838
|
-
...
|
|
844
|
+
}), S.length > 0 && n(le, {
|
|
845
|
+
...Se(a),
|
|
839
846
|
tick: !0,
|
|
840
|
-
width: a.width ?? w + 20 + (y.length > 0 && ((v =
|
|
841
|
-
hide: a.hide ||
|
|
842
|
-
label: (L =
|
|
843
|
-
value:
|
|
847
|
+
width: a.width ?? w + 20 + (y.length > 0 && ((v = S[0]) != null && v.axisLabel) ? 20 : 0),
|
|
848
|
+
hide: a.hide || S.some((p) => p == null ? void 0 : p.hideAxis),
|
|
849
|
+
label: (L = S[0]) != null && L.axisLabel ? {
|
|
850
|
+
value: S[0].axisLabel,
|
|
844
851
|
angle: -90,
|
|
845
852
|
position: "insideLeft"
|
|
846
853
|
} : void 0
|
|
847
854
|
}), y.length > 0 && n(le, {
|
|
848
|
-
...
|
|
855
|
+
...Se(a),
|
|
849
856
|
yAxisId: "right",
|
|
850
857
|
orientation: "right",
|
|
851
858
|
tick: !0,
|
|
852
|
-
width: a.width ?? w + 20 + (
|
|
859
|
+
width: a.width ?? w + 20 + (S.length > 0 && ((D = y[0]) != null && D.axisLabel) ? 20 : 0),
|
|
853
860
|
hide: a.hide || y.some((p) => p == null ? void 0 : p.hideAxis),
|
|
854
|
-
label: (
|
|
861
|
+
label: (E = y[0]) != null && E.axisLabel ? {
|
|
855
862
|
value: y[0].axisLabel,
|
|
856
863
|
angle: 90,
|
|
857
864
|
position: "insideRight"
|
|
858
865
|
} : void 0
|
|
859
|
-
}), n(
|
|
866
|
+
}), n(_e, {
|
|
860
867
|
...$t(r),
|
|
861
868
|
hide: r == null ? void 0 : r.hide,
|
|
862
869
|
tick: m ? (p) => {
|
|
863
870
|
var be, ge;
|
|
864
|
-
const { x:
|
|
871
|
+
const { x: P, y: H, payload: ve } = p, ye = ((be = t.find((pt) => pt.label === ve.value)) == null ? void 0 : be.values) || "", U = Object.keys(ye).length === 1 ? (ge = Object.values(ye)) == null ? void 0 : ge[0] : void 0, ft = U !== void 0 && a.tickFormatter ? a.tickFormatter(`${U}`) : U.toLocaleString();
|
|
865
872
|
return C("g", {
|
|
866
|
-
transform: `translate(${
|
|
873
|
+
transform: `translate(${P},${H})`,
|
|
867
874
|
children: [n("text", {
|
|
868
875
|
x: 0,
|
|
869
876
|
y: 0,
|
|
@@ -881,10 +888,10 @@ const Xa = (e) => {
|
|
|
881
888
|
})]
|
|
882
889
|
});
|
|
883
890
|
} : void 0
|
|
884
|
-
}),
|
|
891
|
+
}), O.map((p, P) => n(Ee, {
|
|
885
892
|
isAnimationActive: !1,
|
|
886
893
|
dataKey: String(p),
|
|
887
|
-
fill: e[p].color ?
|
|
894
|
+
fill: e[p].color ? q(e[p].color) : oe(P),
|
|
888
895
|
radius: 4,
|
|
889
896
|
maxBarSize: 32,
|
|
890
897
|
children: o && n(Fe, {
|
|
@@ -893,22 +900,22 @@ const Xa = (e) => {
|
|
|
893
900
|
className: "fill-f1-foreground",
|
|
894
901
|
fontSize: 12
|
|
895
902
|
}, `label-${String(p)}`)
|
|
896
|
-
}, `bar-${String(p)}`)),
|
|
903
|
+
}, `bar-${String(p)}`)), A.map((p, P) => n(Ie, {
|
|
897
904
|
type: (f == null ? void 0 : f.lineType) ?? "natural",
|
|
898
905
|
dataKey: String(p),
|
|
899
|
-
stroke: e[p].color ?
|
|
906
|
+
stroke: e[p].color ? q(e[p].color) : oe(O.length + P),
|
|
900
907
|
strokeWidth: 2,
|
|
901
908
|
dot: (f == null ? void 0 : f.dot) ?? !1,
|
|
902
909
|
isAnimationActive: !1,
|
|
903
910
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0
|
|
904
|
-
}, `line-${String(p)}`)), x.map((p,
|
|
911
|
+
}, `line-${String(p)}`)), x.map((p, P) => n(Y, {
|
|
905
912
|
dataKey: String(p),
|
|
906
|
-
fill: e[p].color ?
|
|
913
|
+
fill: e[p].color ? q(e[p].color) : oe(O.length + A.length + P),
|
|
907
914
|
r: 4,
|
|
908
915
|
isAnimationActive: !1,
|
|
909
916
|
yAxisId: (h == null ? void 0 : h.axisPosition) === "right" ? "right" : void 0,
|
|
910
917
|
shape: Xa(String(p))
|
|
911
|
-
}, `scatter-${String(p)}`)),
|
|
918
|
+
}, `scatter-${String(p)}`)), s && n(Bt, {
|
|
912
919
|
content: n(Mt, {
|
|
913
920
|
nameKey: "label"
|
|
914
921
|
}),
|
|
@@ -926,23 +933,23 @@ var me = "Progress", he = 100, [er, kr] = Rt(me), [tr, ar] = er(me), at = fe.for
|
|
|
926
933
|
__scopeProgress: r,
|
|
927
934
|
value: a = null,
|
|
928
935
|
max: o,
|
|
929
|
-
getValueLabel:
|
|
936
|
+
getValueLabel: i = rr,
|
|
930
937
|
...l
|
|
931
938
|
} = e;
|
|
932
939
|
(o || o === 0) && !ke(o) && console.error(nr(`${o}`, "Progress"));
|
|
933
940
|
const d = ke(o) ? o : he;
|
|
934
941
|
a !== null && !Le(a, d) && console.error(or(`${a}`, "Progress"));
|
|
935
|
-
const
|
|
936
|
-
return /* @__PURE__ */ n(tr, { scope: r, value:
|
|
942
|
+
const s = Le(a, d) ? a : null, m = te(s) ? i(s, d) : void 0;
|
|
943
|
+
return /* @__PURE__ */ n(tr, { scope: r, value: s, max: d, children: /* @__PURE__ */ n(
|
|
937
944
|
$e.div,
|
|
938
945
|
{
|
|
939
946
|
"aria-valuemax": d,
|
|
940
947
|
"aria-valuemin": 0,
|
|
941
|
-
"aria-valuenow": te(
|
|
948
|
+
"aria-valuenow": te(s) ? s : void 0,
|
|
942
949
|
"aria-valuetext": m,
|
|
943
950
|
role: "progressbar",
|
|
944
|
-
"data-state": ot(
|
|
945
|
-
"data-value":
|
|
951
|
+
"data-state": ot(s, d),
|
|
952
|
+
"data-value": s ?? void 0,
|
|
946
953
|
"data-max": d,
|
|
947
954
|
...l,
|
|
948
955
|
ref: t
|
|
@@ -993,12 +1000,12 @@ function or(e, t) {
|
|
|
993
1000
|
|
|
994
1001
|
Defaulting to \`null\`.`;
|
|
995
1002
|
}
|
|
996
|
-
var
|
|
997
|
-
const
|
|
1003
|
+
var st = at, sr = nt;
|
|
1004
|
+
const it = fe.forwardRef(({ className: e, value: t, ...r }, a) => n(st, {
|
|
998
1005
|
ref: a,
|
|
999
|
-
className:
|
|
1006
|
+
className: _("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", e),
|
|
1000
1007
|
...r,
|
|
1001
|
-
children: n(
|
|
1008
|
+
children: n(sr, {
|
|
1002
1009
|
className: "h-full w-full flex-1 transition-all",
|
|
1003
1010
|
style: {
|
|
1004
1011
|
backgroundColor: r.color,
|
|
@@ -1006,16 +1013,16 @@ const st = fe.forwardRef(({ className: e, value: t, ...r }, a) => n(it, {
|
|
|
1006
1013
|
}
|
|
1007
1014
|
})
|
|
1008
1015
|
}));
|
|
1009
|
-
|
|
1010
|
-
const
|
|
1011
|
-
const
|
|
1016
|
+
it.displayName = st.displayName;
|
|
1017
|
+
const ir = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
1018
|
+
const i = a ? q(a) : q("categorical-1"), l = e / t * 100;
|
|
1012
1019
|
return C("div", {
|
|
1013
1020
|
className: "flex items-center space-x-2",
|
|
1014
1021
|
"aria-live": "polite",
|
|
1015
1022
|
children: [n("div", {
|
|
1016
1023
|
className: "flex-grow",
|
|
1017
|
-
children: n(
|
|
1018
|
-
color:
|
|
1024
|
+
children: n(it, {
|
|
1025
|
+
color: i,
|
|
1019
1026
|
value: l,
|
|
1020
1027
|
className: "w-full",
|
|
1021
1028
|
"aria-valuemin": 0,
|
|
@@ -1028,7 +1035,7 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1028
1035
|
children: r
|
|
1029
1036
|
})]
|
|
1030
1037
|
});
|
|
1031
|
-
}, lr = je(
|
|
1038
|
+
}, lr = je(ir), Lr = I(
|
|
1032
1039
|
{
|
|
1033
1040
|
name: "AreaChart",
|
|
1034
1041
|
type: "info"
|
|
@@ -1051,20 +1058,20 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1051
1058
|
name: "LineChart",
|
|
1052
1059
|
type: "info"
|
|
1053
1060
|
},
|
|
1054
|
-
|
|
1061
|
+
qt
|
|
1055
1062
|
), Ir = I(
|
|
1056
1063
|
{
|
|
1057
1064
|
name: "PieChart",
|
|
1058
1065
|
type: "info"
|
|
1059
1066
|
},
|
|
1060
|
-
|
|
1061
|
-
),
|
|
1067
|
+
Wt
|
|
1068
|
+
), Er = I(
|
|
1062
1069
|
{
|
|
1063
1070
|
name: "VerticalBarChart",
|
|
1064
1071
|
type: "info"
|
|
1065
1072
|
},
|
|
1066
1073
|
Gt
|
|
1067
|
-
),
|
|
1074
|
+
), _r = I(
|
|
1068
1075
|
{
|
|
1069
1076
|
name: "ProgressBarChart",
|
|
1070
1077
|
type: "info"
|
|
@@ -1094,12 +1101,12 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1094
1101
|
align: "end",
|
|
1095
1102
|
children: C(Ke, {
|
|
1096
1103
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
1097
|
-
children: [t.map((
|
|
1104
|
+
children: [t.map((i, l) => n("div", {
|
|
1098
1105
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
1099
1106
|
children: n(Z, {
|
|
1100
|
-
...
|
|
1107
|
+
...i
|
|
1101
1108
|
})
|
|
1102
|
-
}, l)), n(
|
|
1109
|
+
}, l)), n(qe, {
|
|
1103
1110
|
orientation: "vertical",
|
|
1104
1111
|
className: "[&_div]:bg-f1-background"
|
|
1105
1112
|
})]
|
|
@@ -1112,38 +1119,38 @@ const lt = ({ chips: e, max: t = 4, remainingCount: r, layout: a = "compact" })
|
|
|
1112
1119
|
if (a === "fill")
|
|
1113
1120
|
return n(Jt, {
|
|
1114
1121
|
items: e,
|
|
1115
|
-
renderListItem: (
|
|
1116
|
-
...
|
|
1122
|
+
renderListItem: (s) => n(Z, {
|
|
1123
|
+
...s
|
|
1117
1124
|
}),
|
|
1118
1125
|
renderDropdownItem: () => null,
|
|
1119
1126
|
forceShowingOverflowIndicator: r !== void 0,
|
|
1120
|
-
renderOverflowIndicator: (
|
|
1121
|
-
count: (r ?? 0) +
|
|
1122
|
-
list: r ? void 0 : e.slice(e.length -
|
|
1127
|
+
renderOverflowIndicator: (s) => n(de, {
|
|
1128
|
+
count: (r ?? 0) + s,
|
|
1129
|
+
list: r ? void 0 : e.slice(e.length - s)
|
|
1123
1130
|
}),
|
|
1124
1131
|
overflowIndicatorWithPopover: !1,
|
|
1125
1132
|
className: "flex-1"
|
|
1126
1133
|
});
|
|
1127
|
-
const o = e.slice(0, t),
|
|
1134
|
+
const o = e.slice(0, t), i = e.slice(t), l = r ?? e.length - t, d = l > 0;
|
|
1128
1135
|
return C("div", {
|
|
1129
1136
|
className: "flex items-center gap-2",
|
|
1130
|
-
children: [o.map((
|
|
1131
|
-
...
|
|
1137
|
+
children: [o.map((s, m) => n(Z, {
|
|
1138
|
+
...s
|
|
1132
1139
|
}, m)), d && n(de, {
|
|
1133
1140
|
count: l,
|
|
1134
|
-
list: r ? void 0 :
|
|
1141
|
+
list: r ? void 0 : i
|
|
1135
1142
|
})]
|
|
1136
1143
|
});
|
|
1137
1144
|
};
|
|
1138
1145
|
lt.displayName = "F0ChipList";
|
|
1139
|
-
const
|
|
1146
|
+
const qr = We("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularity: r, onOpenChange: a, minDate: o, maxDate: i, onClear: l, ...d }, s) => {
|
|
1140
1147
|
const [m, c] = T(""), [f, h] = T(!1), u = Ge();
|
|
1141
1148
|
B(() => {
|
|
1142
1149
|
c(r.toString(e == null ? void 0 : e.value, u));
|
|
1143
1150
|
}, [e, r, u]);
|
|
1144
1151
|
const g = (x) => Qt(x, r, {
|
|
1145
1152
|
minDate: o,
|
|
1146
|
-
maxDate:
|
|
1153
|
+
maxDate: i
|
|
1147
1154
|
}), N = (x, b) => {
|
|
1148
1155
|
if (x === "") {
|
|
1149
1156
|
t == null || t({
|
|
@@ -1157,44 +1164,44 @@ const Wr = qe("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularit
|
|
|
1157
1164
|
value: w,
|
|
1158
1165
|
granularity: b.key
|
|
1159
1166
|
}), h(!1)) : h(!0);
|
|
1160
|
-
},
|
|
1167
|
+
}, O = () => {
|
|
1161
1168
|
N(m, r);
|
|
1162
1169
|
};
|
|
1163
1170
|
return n(ae, {
|
|
1164
1171
|
children: n(Xt, {
|
|
1165
1172
|
...d,
|
|
1166
1173
|
icon: Zt,
|
|
1167
|
-
ref:
|
|
1174
|
+
ref: s,
|
|
1168
1175
|
onFocus: () => a == null ? void 0 : a(!0),
|
|
1169
1176
|
onClear: () => {
|
|
1170
1177
|
l == null || l(), c(""), N("", r);
|
|
1171
1178
|
},
|
|
1172
1179
|
onKeyDown: (x) => {
|
|
1173
|
-
x.key === "Enter" &&
|
|
1180
|
+
x.key === "Enter" && O();
|
|
1174
1181
|
},
|
|
1175
1182
|
type: "text",
|
|
1176
1183
|
onChange: (x) => {
|
|
1177
1184
|
c(x);
|
|
1178
1185
|
},
|
|
1179
1186
|
error: f || d.error,
|
|
1180
|
-
onBlur:
|
|
1187
|
+
onBlur: O,
|
|
1181
1188
|
value: m,
|
|
1182
1189
|
onClickContent: () => a == null ? void 0 : a(!0)
|
|
1183
1190
|
})
|
|
1184
1191
|
});
|
|
1185
1192
|
});
|
|
1186
1193
|
ct.displayName = "DateInput";
|
|
1187
|
-
function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"], minDate: o, maxDate:
|
|
1188
|
-
const [
|
|
1194
|
+
function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"], minDate: o, maxDate: i, open: l = !1, ...d }) {
|
|
1195
|
+
const [s, m] = T(), [c, f] = T(l);
|
|
1189
1196
|
B(() => {
|
|
1190
1197
|
f(l);
|
|
1191
1198
|
}, [l]);
|
|
1192
|
-
const h = Ge(), u =
|
|
1199
|
+
const h = Ge(), u = ie(() => a[0] ?? "day", [a]), g = Ne((y) => {
|
|
1193
1200
|
const v = y || u;
|
|
1194
|
-
if (!
|
|
1201
|
+
if (!Pe[v])
|
|
1195
1202
|
throw new Error(`Invalid granularity ${v}`);
|
|
1196
1203
|
return {
|
|
1197
|
-
...
|
|
1204
|
+
...Pe[v],
|
|
1198
1205
|
key: v
|
|
1199
1206
|
};
|
|
1200
1207
|
}, [u]), N = Ne((y) => {
|
|
@@ -1206,50 +1213,50 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1206
1213
|
value: v.toRange(v.calendarMode === "range" ? y.value : ((L = y.value) == null ? void 0 : L.from) ?? void 0),
|
|
1207
1214
|
granularity: y.granularity
|
|
1208
1215
|
} : void 0;
|
|
1209
|
-
}, [g]),
|
|
1216
|
+
}, [g]), O = ie(() => g(s == null ? void 0 : s.granularity), [s == null ? void 0 : s.granularity, g]);
|
|
1210
1217
|
B(() => {
|
|
1211
1218
|
const y = N(t);
|
|
1212
|
-
|
|
1219
|
+
se(s, y) || m(y);
|
|
1213
1220
|
}, [t]);
|
|
1214
|
-
const
|
|
1215
|
-
const v = N(y), D = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (
|
|
1221
|
+
const A = (y) => {
|
|
1222
|
+
const v = N(y), D = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (s == null ? void 0 : s.granularity) && !se(v, s);
|
|
1216
1223
|
x(v), D && f(!1);
|
|
1217
1224
|
}, x = (y) => {
|
|
1218
1225
|
const v = N(y);
|
|
1219
|
-
if (m(v), !
|
|
1226
|
+
if (m(v), !se(v, s)) {
|
|
1220
1227
|
const L = g(v == null ? void 0 : v.granularity);
|
|
1221
1228
|
e == null || e(v, L.toString(v == null ? void 0 : v.value, h));
|
|
1222
1229
|
}
|
|
1223
1230
|
}, b = (y) => {
|
|
1224
1231
|
var v;
|
|
1225
1232
|
f(y), (v = d.onOpenChange) == null || v.call(d, y);
|
|
1226
|
-
}, w =
|
|
1233
|
+
}, w = ie(() => r.filter((y) => a.includes(y.granularity)), [r, a]), S = pe(null);
|
|
1227
1234
|
return B(() => {
|
|
1228
|
-
c &&
|
|
1235
|
+
c && S.current && requestAnimationFrame(() => {
|
|
1229
1236
|
var y;
|
|
1230
|
-
(y =
|
|
1237
|
+
(y = S.current) == null || y.focus();
|
|
1231
1238
|
});
|
|
1232
1239
|
}, [c]), n(ea, {
|
|
1233
1240
|
hideCalendarInput: !0,
|
|
1234
|
-
onSelect:
|
|
1235
|
-
value:
|
|
1241
|
+
onSelect: A,
|
|
1242
|
+
value: s,
|
|
1236
1243
|
presets: w,
|
|
1237
1244
|
granularities: a,
|
|
1238
1245
|
minDate: o,
|
|
1239
|
-
maxDate:
|
|
1246
|
+
maxDate: i,
|
|
1240
1247
|
open: c,
|
|
1241
1248
|
onOpenChange: b,
|
|
1242
1249
|
asChild: !0,
|
|
1243
1250
|
children: n(ct, {
|
|
1244
|
-
ref:
|
|
1251
|
+
ref: S,
|
|
1245
1252
|
...d,
|
|
1246
|
-
value:
|
|
1247
|
-
granularity:
|
|
1253
|
+
value: s,
|
|
1254
|
+
granularity: O,
|
|
1248
1255
|
onDateChange: x
|
|
1249
1256
|
})
|
|
1250
1257
|
});
|
|
1251
1258
|
}
|
|
1252
|
-
const
|
|
1259
|
+
const Wr = ta, Gr = We(
|
|
1253
1260
|
"F0DatePicker",
|
|
1254
1261
|
cr
|
|
1255
1262
|
), ur = {
|
|
@@ -1260,7 +1267,7 @@ const qr = ta, Gr = qe(
|
|
|
1260
1267
|
}, dr = V(function({ widgets: t, children: r }, a) {
|
|
1261
1268
|
const o = pe(null);
|
|
1262
1269
|
ka(a, () => o.current);
|
|
1263
|
-
const
|
|
1270
|
+
const i = La.toArray(t).filter((l) => !!l).map((l, d) => n("div", {
|
|
1264
1271
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
1265
1272
|
children: l
|
|
1266
1273
|
}, d));
|
|
@@ -1274,7 +1281,7 @@ const qr = ta, Gr = qe(
|
|
|
1274
1281
|
children: [n(aa, {
|
|
1275
1282
|
columns: ur,
|
|
1276
1283
|
showArrows: !1,
|
|
1277
|
-
children:
|
|
1284
|
+
children: i
|
|
1278
1285
|
}), n("main", {
|
|
1279
1286
|
children: r
|
|
1280
1287
|
})]
|
|
@@ -1282,35 +1289,35 @@ const qr = ta, Gr = qe(
|
|
|
1282
1289
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
1283
1290
|
children: [n("div", {
|
|
1284
1291
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
1285
|
-
children:
|
|
1292
|
+
children: i.slice(0, 3)
|
|
1286
1293
|
}), n("main", {
|
|
1287
1294
|
className: "col-span-2",
|
|
1288
1295
|
children: r
|
|
1289
1296
|
}), n("div", {
|
|
1290
1297
|
className: "flex flex-1 flex-col gap-5",
|
|
1291
|
-
children:
|
|
1298
|
+
children: i.slice(3)
|
|
1292
1299
|
})]
|
|
1293
1300
|
})]
|
|
1294
1301
|
})
|
|
1295
1302
|
});
|
|
1296
|
-
}), fr = V(function({ children: t, sideContent: r, mainColumnPosition: a = "left", sticky: o = !1 },
|
|
1303
|
+
}), fr = V(function({ children: t, sideContent: r, mainColumnPosition: a = "left", sticky: o = !1 }, i) {
|
|
1297
1304
|
return n("div", {
|
|
1298
|
-
ref:
|
|
1305
|
+
ref: i,
|
|
1299
1306
|
className: "h-full",
|
|
1300
1307
|
children: C("div", {
|
|
1301
|
-
className:
|
|
1308
|
+
className: _("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", o && "md:sticky md:top-0 md:max-h-full"),
|
|
1302
1309
|
children: [n("main", {
|
|
1303
|
-
className:
|
|
1310
|
+
className: _("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", o ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", a === "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"),
|
|
1304
1311
|
children: t
|
|
1305
1312
|
}), n(pr, {
|
|
1306
1313
|
sticky: o,
|
|
1307
|
-
className:
|
|
1314
|
+
className: _("order-1", a === "right" ? "md:order-1" : "md:order-3"),
|
|
1308
1315
|
children: r
|
|
1309
1316
|
})]
|
|
1310
1317
|
})
|
|
1311
1318
|
});
|
|
1312
1319
|
}), pr = ({ children: e, className: t }) => n("aside", {
|
|
1313
|
-
className:
|
|
1320
|
+
className: _("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", t),
|
|
1314
1321
|
children: e
|
|
1315
1322
|
}), mr = ra({
|
|
1316
1323
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
@@ -1323,10 +1330,10 @@ const qr = ta, Gr = qe(
|
|
|
1323
1330
|
layout: "standard",
|
|
1324
1331
|
children: n("section", {
|
|
1325
1332
|
ref: o,
|
|
1326
|
-
className:
|
|
1333
|
+
className: _("relative flex-1 overflow-auto", r),
|
|
1327
1334
|
...a,
|
|
1328
1335
|
children: n("div", {
|
|
1329
|
-
className:
|
|
1336
|
+
className: _(mr({
|
|
1330
1337
|
variant: t
|
|
1331
1338
|
})),
|
|
1332
1339
|
children: e
|
|
@@ -1350,16 +1357,16 @@ const Vr = I({
|
|
|
1350
1357
|
}, r))
|
|
1351
1358
|
}), vr = ({ text: e }) => C("div", {
|
|
1352
1359
|
className: "flex flex-row items-start gap-2",
|
|
1353
|
-
children: [n(
|
|
1354
|
-
icon:
|
|
1360
|
+
children: [n(sa, {
|
|
1361
|
+
icon: ia,
|
|
1355
1362
|
size: "md",
|
|
1356
1363
|
className: "text-f1-icon-positive"
|
|
1357
1364
|
}), n("span", {
|
|
1358
1365
|
children: e
|
|
1359
1366
|
})]
|
|
1360
|
-
}), dt = V(({ title: e, image: t, benefits: r, actions: a, withShadow: o = !0, module:
|
|
1367
|
+
}), dt = V(({ title: e, image: t, benefits: r, actions: a, withShadow: o = !0, module: i, moduleName: l, tag: d, promoTag: s }, m) => C("div", {
|
|
1361
1368
|
ref: m,
|
|
1362
|
-
className:
|
|
1369
|
+
className: _("bg-white flex flex-row rounded-xl border border-f1-border-secondary", o && "shadow-md"),
|
|
1363
1370
|
children: [n("div", {
|
|
1364
1371
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
1365
1372
|
children: n("img", {
|
|
@@ -1375,20 +1382,20 @@ const Vr = I({
|
|
|
1375
1382
|
className: "flex flex-col gap-2",
|
|
1376
1383
|
children: [C("div", {
|
|
1377
1384
|
className: "flex flex-row items-center gap-2",
|
|
1378
|
-
children: [
|
|
1379
|
-
module:
|
|
1385
|
+
children: [i && n(Ye, {
|
|
1386
|
+
module: i
|
|
1380
1387
|
}), l && n("p", {
|
|
1381
1388
|
className: "text-base font-medium text-f1-foreground",
|
|
1382
1389
|
children: l
|
|
1383
1390
|
})]
|
|
1384
|
-
}), (d ||
|
|
1391
|
+
}), (d || s) && C("div", {
|
|
1385
1392
|
className: "flex justify-start gap-2",
|
|
1386
1393
|
children: [d && n(na, {
|
|
1387
1394
|
icon: d.icon,
|
|
1388
1395
|
text: d.label
|
|
1389
|
-
}),
|
|
1390
|
-
variant:
|
|
1391
|
-
text:
|
|
1396
|
+
}), s && n(oa, {
|
|
1397
|
+
variant: s.variant || "positive",
|
|
1398
|
+
text: s.label
|
|
1392
1399
|
})]
|
|
1393
1400
|
}), n("h2", {
|
|
1394
1401
|
className: "font-bold text-xl text-f1-foreground",
|
|
@@ -1404,7 +1411,7 @@ const Vr = I({
|
|
|
1404
1411
|
})]
|
|
1405
1412
|
}));
|
|
1406
1413
|
dt.displayName = "ProductBlankslate";
|
|
1407
|
-
function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalContainer:
|
|
1414
|
+
function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalContainer: i }) {
|
|
1408
1415
|
const [l, d] = T(e);
|
|
1409
1416
|
return B(() => {
|
|
1410
1417
|
d(e);
|
|
@@ -1416,7 +1423,7 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1416
1423
|
modal: !0,
|
|
1417
1424
|
children: C(ca, {
|
|
1418
1425
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
1419
|
-
container:
|
|
1426
|
+
container: i,
|
|
1420
1427
|
children: [C("div", {
|
|
1421
1428
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
1422
1429
|
children: [C(ua, {
|
|
@@ -1434,7 +1441,7 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1434
1441
|
})]
|
|
1435
1442
|
}), C(Ke, {
|
|
1436
1443
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
1437
|
-
children: [a, n(
|
|
1444
|
+
children: [a, n(qe, {
|
|
1438
1445
|
orientation: "vertical",
|
|
1439
1446
|
className: "[&_div]:bg-f1-background"
|
|
1440
1447
|
})]
|
|
@@ -1442,21 +1449,21 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1442
1449
|
})
|
|
1443
1450
|
});
|
|
1444
1451
|
}
|
|
1445
|
-
function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage:
|
|
1446
|
-
const [x, b] = T(e), [w,
|
|
1452
|
+
function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: i, successMessage: l, loadingState: d, nextSteps: s, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag: N, promoTag: O, showResponseDialog: A = !0 }) {
|
|
1453
|
+
const [x, b] = T(e), [w, S] = T(null), [y, v] = T(!1), L = async () => {
|
|
1447
1454
|
if (c != null && c.onClick) {
|
|
1448
1455
|
v(!0);
|
|
1449
1456
|
try {
|
|
1450
|
-
await c.onClick(), b(!1),
|
|
1457
|
+
await c.onClick(), b(!1), A && S("success");
|
|
1451
1458
|
} catch {
|
|
1452
|
-
|
|
1459
|
+
A && S("error");
|
|
1453
1460
|
} finally {
|
|
1454
1461
|
v(!1);
|
|
1455
1462
|
}
|
|
1456
1463
|
}
|
|
1457
1464
|
}, D = () => {
|
|
1458
1465
|
b(!1), t == null || t();
|
|
1459
|
-
},
|
|
1466
|
+
}, E = y;
|
|
1460
1467
|
return C(ae, {
|
|
1461
1468
|
children: [n(yr, {
|
|
1462
1469
|
isOpen: x,
|
|
@@ -1472,12 +1479,12 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1472
1479
|
benefits: o,
|
|
1473
1480
|
withShadow: !1,
|
|
1474
1481
|
tag: N,
|
|
1475
|
-
promoTag:
|
|
1482
|
+
promoTag: O,
|
|
1476
1483
|
actions: C("div", {
|
|
1477
1484
|
className: "flex gap-3",
|
|
1478
1485
|
children: [c && n(M, {
|
|
1479
1486
|
variant: c.variant,
|
|
1480
|
-
label:
|
|
1487
|
+
label: E ? d.label : c.label,
|
|
1481
1488
|
icon: c.icon || void 0,
|
|
1482
1489
|
onClick: L,
|
|
1483
1490
|
loading: c.loading,
|
|
@@ -1492,21 +1499,21 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1492
1499
|
})
|
|
1493
1500
|
})
|
|
1494
1501
|
})
|
|
1495
|
-
}), w &&
|
|
1502
|
+
}), w && A && n(Ue, {
|
|
1496
1503
|
open: !0,
|
|
1497
1504
|
onClose: () => {
|
|
1498
|
-
D(),
|
|
1505
|
+
D(), S(null);
|
|
1499
1506
|
},
|
|
1500
1507
|
success: w === "success",
|
|
1501
|
-
errorMessage:
|
|
1508
|
+
errorMessage: i,
|
|
1502
1509
|
successMessage: l,
|
|
1503
|
-
nextSteps:
|
|
1510
|
+
nextSteps: s,
|
|
1504
1511
|
closeLabel: m,
|
|
1505
1512
|
portalContainer: g
|
|
1506
1513
|
})]
|
|
1507
1514
|
});
|
|
1508
1515
|
}
|
|
1509
|
-
function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o, width:
|
|
1516
|
+
function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o, width: i, trackVisibility: l, actions: d, showConfirmation: s = !0 }) {
|
|
1510
1517
|
const [m, c] = T(!1), f = () => {
|
|
1511
1518
|
c(!0), a && a();
|
|
1512
1519
|
};
|
|
@@ -1517,7 +1524,7 @@ function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1517
1524
|
return n(ae, {
|
|
1518
1525
|
children: m ? null : C(fa, {
|
|
1519
1526
|
style: {
|
|
1520
|
-
width:
|
|
1527
|
+
width: i
|
|
1521
1528
|
},
|
|
1522
1529
|
className: "relative bg-f1-background p-1",
|
|
1523
1530
|
children: [C(pa, {
|
|
@@ -1566,7 +1573,7 @@ function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1566
1573
|
loadingState: u.loadingState,
|
|
1567
1574
|
nextSteps: u.nextSteps,
|
|
1568
1575
|
closeLabel: u.closeLabel,
|
|
1569
|
-
showConfirmation:
|
|
1576
|
+
showConfirmation: s && u.showConfirmation,
|
|
1570
1577
|
variant: u.variant
|
|
1571
1578
|
}, u.label) : n(M, {
|
|
1572
1579
|
label: u.label,
|
|
@@ -1578,56 +1585,56 @@ function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1578
1585
|
});
|
|
1579
1586
|
}
|
|
1580
1587
|
const gr = V(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
|
|
1581
|
-
const
|
|
1582
|
-
label:
|
|
1588
|
+
const i = (s) => s.variant === "promote" ? n(Je, {
|
|
1589
|
+
label: s.label,
|
|
1583
1590
|
onRequest: async () => {
|
|
1584
|
-
await
|
|
1591
|
+
await s.onClick();
|
|
1585
1592
|
},
|
|
1586
|
-
errorMessage:
|
|
1587
|
-
successMessage:
|
|
1588
|
-
loadingState:
|
|
1589
|
-
nextSteps:
|
|
1590
|
-
closeLabel:
|
|
1591
|
-
showIcon:
|
|
1592
|
-
showConfirmation:
|
|
1593
|
-
variant:
|
|
1593
|
+
errorMessage: s.errorMessage,
|
|
1594
|
+
successMessage: s.successMessage,
|
|
1595
|
+
loadingState: s.loadingState,
|
|
1596
|
+
nextSteps: s.nextSteps,
|
|
1597
|
+
closeLabel: s.closeLabel,
|
|
1598
|
+
showIcon: s.showIcon,
|
|
1599
|
+
showConfirmation: s.showConfirmation,
|
|
1600
|
+
variant: s.variant
|
|
1594
1601
|
}) : n(M, {
|
|
1595
|
-
onClick:
|
|
1596
|
-
label:
|
|
1597
|
-
variant:
|
|
1602
|
+
onClick: s.onClick,
|
|
1603
|
+
label: s.label,
|
|
1604
|
+
variant: s.variant || "default",
|
|
1598
1605
|
size: "md",
|
|
1599
|
-
icon:
|
|
1606
|
+
icon: s.icon
|
|
1600
1607
|
}), l = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0, d = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0;
|
|
1601
1608
|
return C(ha, {
|
|
1602
1609
|
ref: o,
|
|
1603
1610
|
...a,
|
|
1604
1611
|
primaryAction: l,
|
|
1605
1612
|
secondaryAction: d,
|
|
1606
|
-
children: [(t == null ? void 0 : t.variant) === "promote" &&
|
|
1613
|
+
children: [(t == null ? void 0 : t.variant) === "promote" && i(t), (r == null ? void 0 : r.variant) === "promote" && i(r)]
|
|
1607
1614
|
});
|
|
1608
1615
|
});
|
|
1609
1616
|
gr.displayName = "UpsellingBanner";
|
|
1610
|
-
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon:
|
|
1611
|
-
const [
|
|
1612
|
-
t(
|
|
1613
|
-
}, L = async (
|
|
1614
|
-
if (
|
|
1615
|
-
y(
|
|
1617
|
+
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: i = !0, side: l = "right", align: d = "center", icon: s = va, mediaUrl: m, title: c, description: f, width: h = "300px", trackVisibility: u, actions: g, onClick: N, hideLabel: O = !1 }) {
|
|
1618
|
+
const [A, x] = T(!1), [b, w] = T(null), [S, y] = T(null), v = (P) => {
|
|
1619
|
+
t(P), N && N();
|
|
1620
|
+
}, L = async (P) => {
|
|
1621
|
+
if (P.type === "upsell") {
|
|
1622
|
+
y(P);
|
|
1616
1623
|
try {
|
|
1617
|
-
await
|
|
1624
|
+
await P.onClick(), P.showConfirmation && (x(!0), w("success"));
|
|
1618
1625
|
} catch {
|
|
1619
1626
|
x(!0), w("error");
|
|
1620
1627
|
}
|
|
1621
1628
|
}
|
|
1622
1629
|
}, D = () => {
|
|
1623
1630
|
w(null), x(!1), y(null), t(!1);
|
|
1624
|
-
},
|
|
1625
|
-
...
|
|
1626
|
-
onClick: () => L(
|
|
1627
|
-
} :
|
|
1631
|
+
}, E = e && !A, p = g == null ? void 0 : g.map((P) => P.type === "upsell" ? {
|
|
1632
|
+
...P,
|
|
1633
|
+
onClick: () => L(P)
|
|
1634
|
+
} : P);
|
|
1628
1635
|
return C(ae, {
|
|
1629
1636
|
children: [C(Me, {
|
|
1630
|
-
open:
|
|
1637
|
+
open: E,
|
|
1631
1638
|
onOpenChange: v,
|
|
1632
1639
|
children: [n(Re, {
|
|
1633
1640
|
asChild: !0,
|
|
@@ -1635,9 +1642,9 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1635
1642
|
variant: a,
|
|
1636
1643
|
label: r,
|
|
1637
1644
|
size: o,
|
|
1638
|
-
icon:
|
|
1645
|
+
icon: i ? s : void 0,
|
|
1639
1646
|
onClick: () => t(e),
|
|
1640
|
-
hideLabel:
|
|
1647
|
+
hideLabel: O
|
|
1641
1648
|
})
|
|
1642
1649
|
}), n(ze, {
|
|
1643
1650
|
side: l,
|
|
@@ -1655,21 +1662,21 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1655
1662
|
showConfirmation: !1
|
|
1656
1663
|
})
|
|
1657
1664
|
})]
|
|
1658
|
-
}), (
|
|
1665
|
+
}), (S == null ? void 0 : S.type) === "upsell" && S.showConfirmation && b && n(Ue, {
|
|
1659
1666
|
open: !0,
|
|
1660
1667
|
onClose: D,
|
|
1661
1668
|
success: b === "success",
|
|
1662
|
-
errorMessage:
|
|
1663
|
-
successMessage:
|
|
1664
|
-
nextSteps:
|
|
1665
|
-
closeLabel:
|
|
1669
|
+
errorMessage: S.errorMessage,
|
|
1670
|
+
successMessage: S.successMessage,
|
|
1671
|
+
nextSteps: S.nextSteps,
|
|
1672
|
+
closeLabel: S.closeLabel,
|
|
1666
1673
|
portalContainer: null
|
|
1667
1674
|
})]
|
|
1668
1675
|
});
|
|
1669
1676
|
}
|
|
1670
1677
|
const xr = Ta(null), wr = ({ children: e, fullScreen: t = !0 }) => {
|
|
1671
1678
|
const r = pe(null), [a, o] = T(r.current);
|
|
1672
|
-
return
|
|
1679
|
+
return Oa(() => {
|
|
1673
1680
|
o(r.current);
|
|
1674
1681
|
}, []), n(xr.Provider, {
|
|
1675
1682
|
value: {
|
|
@@ -1678,34 +1685,34 @@ const xr = Ta(null), wr = ({ children: e, fullScreen: t = !0 }) => {
|
|
|
1678
1685
|
children: n("div", {
|
|
1679
1686
|
ref: r,
|
|
1680
1687
|
id: "f0-layout",
|
|
1681
|
-
className:
|
|
1688
|
+
className: _({
|
|
1682
1689
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": t
|
|
1683
1690
|
}),
|
|
1684
1691
|
children: e
|
|
1685
1692
|
})
|
|
1686
1693
|
});
|
|
1687
|
-
},
|
|
1694
|
+
}, Sr = ({ children: e }) => n(Na, {
|
|
1688
1695
|
reducedMotion: "user",
|
|
1689
1696
|
children: e
|
|
1690
|
-
}), Xr = ({ children: e, layout: t, link: r, privacyModeInitiallyEnabled: a, image: o, i18n:
|
|
1697
|
+
}), Xr = ({ children: e, layout: t, link: r, privacyModeInitiallyEnabled: a, image: o, i18n: i, l10n: l, isDev: d = !1, dataCollectionStorageHandler: s, showExperimentalWarnings: m = !1 }) => n(Sr, {
|
|
1691
1698
|
children: n(ya, {
|
|
1692
1699
|
isDev: d,
|
|
1693
1700
|
showExperimentalWarnings: m,
|
|
1694
1701
|
children: n(ba, {
|
|
1695
1702
|
...l,
|
|
1696
1703
|
children: n(ga, {
|
|
1697
|
-
...
|
|
1704
|
+
...i,
|
|
1698
1705
|
children: n(xa, {
|
|
1699
1706
|
...r,
|
|
1700
1707
|
children: n(wr, {
|
|
1701
1708
|
...t,
|
|
1702
1709
|
children: n(wa, {
|
|
1703
|
-
children: n(
|
|
1710
|
+
children: n(Sa, {
|
|
1704
1711
|
initiallyEnabled: a,
|
|
1705
|
-
children: n(
|
|
1712
|
+
children: n(Pa, {
|
|
1706
1713
|
...o,
|
|
1707
1714
|
children: n(Ca, {
|
|
1708
|
-
handler:
|
|
1715
|
+
handler: s,
|
|
1709
1716
|
children: e
|
|
1710
1717
|
})
|
|
1711
1718
|
})
|
|
@@ -1748,32 +1755,32 @@ export {
|
|
|
1748
1755
|
vn as F0ButtonToggle,
|
|
1749
1756
|
yn as F0Card,
|
|
1750
1757
|
bn as F0Checkbox,
|
|
1751
|
-
|
|
1758
|
+
qr as F0ChipList,
|
|
1752
1759
|
Gr as F0DatePicker,
|
|
1753
1760
|
gn as F0EventCatcherProvider,
|
|
1754
|
-
|
|
1761
|
+
sa as F0Icon,
|
|
1755
1762
|
xn as F0Link,
|
|
1756
1763
|
Xr as F0Provider,
|
|
1757
1764
|
wn as F0TagAlert,
|
|
1758
|
-
|
|
1759
|
-
|
|
1765
|
+
Sn as F0TagBalance,
|
|
1766
|
+
Pn as F0TagCompany,
|
|
1760
1767
|
Cn as F0TagDot,
|
|
1761
1768
|
Nn as F0TagList,
|
|
1762
|
-
|
|
1769
|
+
On as F0TagPerson,
|
|
1763
1770
|
na as F0TagRaw,
|
|
1764
1771
|
oa as F0TagStatus,
|
|
1765
|
-
|
|
1772
|
+
An as F0TagTeam,
|
|
1766
1773
|
kn as GROUP_ID_SYMBOL,
|
|
1767
1774
|
Hr as HomeLayout,
|
|
1768
1775
|
Fr as LineChart,
|
|
1769
1776
|
Ln as OneFilterPicker,
|
|
1770
1777
|
Ir as PieChart,
|
|
1771
|
-
|
|
1778
|
+
Sa as PrivacyModeProvider,
|
|
1772
1779
|
dt as ProductBlankslate,
|
|
1773
1780
|
Tn as ProductCard,
|
|
1774
1781
|
Ur as ProductModal,
|
|
1775
1782
|
br as ProductWidget,
|
|
1776
|
-
|
|
1783
|
+
_r as ProgressBarChart,
|
|
1777
1784
|
Vr as StandardLayout,
|
|
1778
1785
|
Dn as TagCounter,
|
|
1779
1786
|
Yr as TwoColumnLayout,
|
|
@@ -1781,8 +1788,8 @@ export {
|
|
|
1781
1788
|
gr as UpsellingBanner,
|
|
1782
1789
|
Je as UpsellingButton,
|
|
1783
1790
|
Jr as UpsellingPopover,
|
|
1784
|
-
|
|
1785
|
-
|
|
1791
|
+
Er as VerticalBarChart,
|
|
1792
|
+
Ar as avatarVariants,
|
|
1786
1793
|
Fn as buildTranslations,
|
|
1787
1794
|
Rr as buttonDropdownSizes,
|
|
1788
1795
|
Mr as buttonDropdownVariants,
|
|
@@ -1790,12 +1797,12 @@ export {
|
|
|
1790
1797
|
zr as buttonToggleSizes,
|
|
1791
1798
|
$r as buttonVariants,
|
|
1792
1799
|
In as createAtlaskitDriver,
|
|
1793
|
-
|
|
1800
|
+
En as createDataSourceDefinition,
|
|
1794
1801
|
Zr as dataCollectionLocalStorageHandler,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1802
|
+
Wr as datepickerSizes,
|
|
1803
|
+
Or as defaultTranslations,
|
|
1804
|
+
We as experimental,
|
|
1805
|
+
_n as getAnimationVariants,
|
|
1799
1806
|
jn as getDataSourcePaginationType,
|
|
1800
1807
|
$n as getEmojiLabel,
|
|
1801
1808
|
Bn as isInfiniteScrollPagination,
|
|
@@ -1804,8 +1811,8 @@ export {
|
|
|
1804
1811
|
Rn as modules,
|
|
1805
1812
|
zn as predefinedPresets,
|
|
1806
1813
|
Kn as tagDotColors,
|
|
1807
|
-
|
|
1808
|
-
|
|
1814
|
+
qn as useData,
|
|
1815
|
+
Wn as useDataSource,
|
|
1809
1816
|
Gn as useDndEvents,
|
|
1810
1817
|
Vn as useDraggable,
|
|
1811
1818
|
Yn as useDroppableList,
|