@factorialco/f0-react 1.249.1 → 1.251.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.d.ts +39 -3
- package/dist/experimental.js +9950 -10173
- package/dist/f0.d.ts +48 -4
- package/dist/f0.js +386 -372
- package/dist/{hooks-MY9wJB8E.js → hooks-BhFdTHFP.js} +18784 -18431
- package/dist/styles.css +1 -1
- 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
|
|
2
|
-
import { bp as
|
|
3
|
-
import { jsx as n, jsxs 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 Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ut, a2 as Z, a3 as Me, a4 as Re, a5 as Ht, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, 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 ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as Ue, aw as M, ax as He, 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 Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-BhFdTHFP.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 Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Dn, ba as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Un, bm as Hn, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-BhFdTHFP.js";
|
|
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 Oa, useState as D, forwardRef as V, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Da } from "react";
|
|
6
|
+
const Ar = {
|
|
7
7
|
approvals: {
|
|
8
8
|
history: "Approval history",
|
|
9
9
|
statuses: {
|
|
@@ -58,7 +58,12 @@ const Nr = {
|
|
|
58
58
|
applySelection: "Apply selection",
|
|
59
59
|
cancel: "Cancel",
|
|
60
60
|
failedToLoadOptions: "Failed to load options",
|
|
61
|
-
retry: "Retry"
|
|
61
|
+
retry: "Retry",
|
|
62
|
+
aboveOrEqual: "Above or equal to",
|
|
63
|
+
value: "Value",
|
|
64
|
+
belowOrEqual: "Below or equal to",
|
|
65
|
+
range_title: "Use range",
|
|
66
|
+
range: "Between {{min}} and {{max}}"
|
|
62
67
|
},
|
|
63
68
|
toc: {
|
|
64
69
|
search: "Search..."
|
|
@@ -217,8 +222,13 @@ const Nr = {
|
|
|
217
222
|
select: {
|
|
218
223
|
noResults: "No results found",
|
|
219
224
|
loadingMore: "Loading..."
|
|
225
|
+
},
|
|
226
|
+
numberInput: {
|
|
227
|
+
between: "Between {{min}} and {{max}}",
|
|
228
|
+
greaterThan: "Greater than {{min}}",
|
|
229
|
+
lessThan: "Less than {{max}}"
|
|
220
230
|
}
|
|
221
|
-
},
|
|
231
|
+
}, Or = [
|
|
222
232
|
"person",
|
|
223
233
|
"team",
|
|
224
234
|
"company",
|
|
@@ -233,30 +243,30 @@ function R(e) {
|
|
|
233
243
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
234
244
|
}, R(e);
|
|
235
245
|
}
|
|
236
|
-
function
|
|
246
|
+
function Ta(e, t) {
|
|
237
247
|
if (!(e instanceof t))
|
|
238
248
|
throw new TypeError("Cannot call a class as a function");
|
|
239
249
|
}
|
|
240
|
-
function
|
|
250
|
+
function Fa(e, t) {
|
|
241
251
|
for (var r = 0; r < t.length; r++) {
|
|
242
252
|
var a = t[r];
|
|
243
253
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, Qe(a.key), a);
|
|
244
254
|
}
|
|
245
255
|
}
|
|
246
|
-
function Fa(e, t, r) {
|
|
247
|
-
return t && Ta(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
248
|
-
}
|
|
249
256
|
function Ia(e, t, r) {
|
|
250
|
-
return t
|
|
257
|
+
return t && Fa(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
258
|
+
}
|
|
259
|
+
function _a(e, t, r) {
|
|
260
|
+
return t = Q(t), Ea(e, Xe() ? Reflect.construct(t, r || [], Q(e).constructor) : t.apply(e, r));
|
|
251
261
|
}
|
|
252
|
-
function
|
|
262
|
+
function Ea(e, t) {
|
|
253
263
|
if (t && (R(t) === "object" || typeof t == "function"))
|
|
254
264
|
return t;
|
|
255
265
|
if (t !== void 0)
|
|
256
266
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
257
|
-
return
|
|
267
|
+
return ja(e);
|
|
258
268
|
}
|
|
259
|
-
function
|
|
269
|
+
function ja(e) {
|
|
260
270
|
if (e === void 0)
|
|
261
271
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
262
272
|
return e;
|
|
@@ -276,7 +286,7 @@ function Q(e) {
|
|
|
276
286
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
277
287
|
}, Q(e);
|
|
278
288
|
}
|
|
279
|
-
function
|
|
289
|
+
function $a(e, t) {
|
|
280
290
|
if (typeof t != "function" && t !== null)
|
|
281
291
|
throw new TypeError("Super expression must either be null or a function");
|
|
282
292
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ce(e, t);
|
|
@@ -290,10 +300,10 @@ function Ze(e, t, r) {
|
|
|
290
300
|
return t = Qe(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
291
301
|
}
|
|
292
302
|
function Qe(e) {
|
|
293
|
-
var t =
|
|
303
|
+
var t = Ba(e, "string");
|
|
294
304
|
return R(t) == "symbol" ? t : t + "";
|
|
295
305
|
}
|
|
296
|
-
function
|
|
306
|
+
function Ba(e, t) {
|
|
297
307
|
if (R(e) != "object" || !e) return e;
|
|
298
308
|
var r = e[Symbol.toPrimitive];
|
|
299
309
|
if (r !== void 0) {
|
|
@@ -305,9 +315,9 @@ function $a(e, t) {
|
|
|
305
315
|
}
|
|
306
316
|
var re = /* @__PURE__ */ function(e) {
|
|
307
317
|
function t() {
|
|
308
|
-
return
|
|
318
|
+
return Ta(this, t), _a(this, t, arguments);
|
|
309
319
|
}
|
|
310
|
-
return
|
|
320
|
+
return $a(t, e), Ia(t, [{
|
|
311
321
|
key: "render",
|
|
312
322
|
value: function() {
|
|
313
323
|
return null;
|
|
@@ -321,20 +331,20 @@ Ze(re, "defaultProps", {
|
|
|
321
331
|
scale: "auto",
|
|
322
332
|
type: "number"
|
|
323
333
|
});
|
|
324
|
-
var
|
|
325
|
-
function
|
|
326
|
-
return
|
|
334
|
+
var Ma = ["option", "isActive"];
|
|
335
|
+
function q() {
|
|
336
|
+
return q = Object.assign ? Object.assign.bind() : function(e) {
|
|
327
337
|
for (var t = 1; t < arguments.length; t++) {
|
|
328
338
|
var r = arguments[t];
|
|
329
339
|
for (var a in r)
|
|
330
340
|
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
331
341
|
}
|
|
332
342
|
return e;
|
|
333
|
-
},
|
|
343
|
+
}, q.apply(this, arguments);
|
|
334
344
|
}
|
|
335
|
-
function
|
|
345
|
+
function Ra(e, t) {
|
|
336
346
|
if (e == null) return {};
|
|
337
|
-
var r =
|
|
347
|
+
var r = za(e, t), a, o;
|
|
338
348
|
if (Object.getOwnPropertySymbols) {
|
|
339
349
|
var s = Object.getOwnPropertySymbols(e);
|
|
340
350
|
for (o = 0; o < s.length; o++)
|
|
@@ -342,7 +352,7 @@ function Ma(e, t) {
|
|
|
342
352
|
}
|
|
343
353
|
return r;
|
|
344
354
|
}
|
|
345
|
-
function
|
|
355
|
+
function za(e, t) {
|
|
346
356
|
if (e == null) return {};
|
|
347
357
|
var r = {};
|
|
348
358
|
for (var a in e)
|
|
@@ -352,15 +362,15 @@ function Ra(e, t) {
|
|
|
352
362
|
}
|
|
353
363
|
return r;
|
|
354
364
|
}
|
|
355
|
-
function
|
|
356
|
-
var t = e.option, r = e.isActive, a =
|
|
357
|
-
return typeof t == "string" ? /* @__PURE__ */ k.createElement(xe,
|
|
358
|
-
option: /* @__PURE__ */ k.createElement(mt,
|
|
365
|
+
function Ka(e) {
|
|
366
|
+
var t = e.option, r = e.isActive, a = Ra(e, Ma);
|
|
367
|
+
return typeof t == "string" ? /* @__PURE__ */ k.createElement(xe, q({
|
|
368
|
+
option: /* @__PURE__ */ k.createElement(mt, q({
|
|
359
369
|
type: t
|
|
360
370
|
}, a)),
|
|
361
371
|
isActive: r,
|
|
362
372
|
shapeType: "symbols"
|
|
363
|
-
}, a)) : /* @__PURE__ */ k.createElement(xe,
|
|
373
|
+
}, a)) : /* @__PURE__ */ k.createElement(xe, q({
|
|
364
374
|
option: t,
|
|
365
375
|
isActive: r,
|
|
366
376
|
shapeType: "symbols"
|
|
@@ -374,15 +384,15 @@ function z(e) {
|
|
|
374
384
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
375
385
|
}, z(e);
|
|
376
386
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
387
|
+
function G() {
|
|
388
|
+
return G = Object.assign ? Object.assign.bind() : function(e) {
|
|
379
389
|
for (var t = 1; t < arguments.length; t++) {
|
|
380
390
|
var r = arguments[t];
|
|
381
391
|
for (var a in r)
|
|
382
392
|
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
383
393
|
}
|
|
384
394
|
return e;
|
|
385
|
-
},
|
|
395
|
+
}, G.apply(this, arguments);
|
|
386
396
|
}
|
|
387
397
|
function Ae(e, t) {
|
|
388
398
|
var r = Object.keys(e);
|
|
@@ -405,7 +415,7 @@ function F(e) {
|
|
|
405
415
|
}
|
|
406
416
|
return e;
|
|
407
417
|
}
|
|
408
|
-
function
|
|
418
|
+
function Wa(e, t) {
|
|
409
419
|
if (!(e instanceof t))
|
|
410
420
|
throw new TypeError("Cannot call a class as a function");
|
|
411
421
|
}
|
|
@@ -415,7 +425,7 @@ function Oe(e, t) {
|
|
|
415
425
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, tt(a.key), a);
|
|
416
426
|
}
|
|
417
427
|
}
|
|
418
|
-
function
|
|
428
|
+
function qa(e, t, r) {
|
|
419
429
|
return t && Oe(e.prototype, t), r && Oe(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
420
430
|
}
|
|
421
431
|
function Ga(e, t, r) {
|
|
@@ -426,9 +436,9 @@ function Va(e, t) {
|
|
|
426
436
|
return t;
|
|
427
437
|
if (t !== void 0)
|
|
428
438
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
429
|
-
return
|
|
439
|
+
return Ya(e);
|
|
430
440
|
}
|
|
431
|
-
function
|
|
441
|
+
function Ya(e) {
|
|
432
442
|
if (e === void 0)
|
|
433
443
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
434
444
|
return e;
|
|
@@ -448,7 +458,7 @@ function ee(e) {
|
|
|
448
458
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
449
459
|
}, ee(e);
|
|
450
460
|
}
|
|
451
|
-
function
|
|
461
|
+
function Ua(e, t) {
|
|
452
462
|
if (typeof t != "function" && t !== null)
|
|
453
463
|
throw new TypeError("Super expression must either be null or a function");
|
|
454
464
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ue(e, t);
|
|
@@ -478,7 +488,7 @@ function Ha(e, t) {
|
|
|
478
488
|
var Y = /* @__PURE__ */ function(e) {
|
|
479
489
|
function t() {
|
|
480
490
|
var r;
|
|
481
|
-
|
|
491
|
+
Wa(this, t);
|
|
482
492
|
for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++)
|
|
483
493
|
o[s] = arguments[s];
|
|
484
494
|
return r = Ga(this, t, [].concat(o)), j(r, "state", {
|
|
@@ -493,22 +503,22 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
493
503
|
});
|
|
494
504
|
}), j(r, "id", St("recharts-scatter-")), r;
|
|
495
505
|
}
|
|
496
|
-
return
|
|
506
|
+
return Ua(t, e), qa(t, [{
|
|
497
507
|
key: "renderSymbolsStatically",
|
|
498
508
|
value: function(a) {
|
|
499
509
|
var o = this, s = this.props, l = s.shape, d = s.activeShape, i = s.activeIndex, m = ne(this.props, !1);
|
|
500
510
|
return a.map(function(c, f) {
|
|
501
|
-
var h = i === f, u = h ? d : l,
|
|
502
|
-
return /* @__PURE__ */ k.createElement(K,
|
|
511
|
+
var h = i === f, u = h ? d : l, g = F(F({}, m), c);
|
|
512
|
+
return /* @__PURE__ */ k.createElement(K, G({
|
|
503
513
|
className: "recharts-scatter-symbol",
|
|
504
514
|
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)
|
|
505
515
|
}, ht(o.props, c, f), {
|
|
506
516
|
role: "img"
|
|
507
|
-
}), /* @__PURE__ */ k.createElement(
|
|
517
|
+
}), /* @__PURE__ */ k.createElement(Ka, G({
|
|
508
518
|
option: u,
|
|
509
519
|
isActive: h,
|
|
510
520
|
key: "symbol-".concat(f)
|
|
511
|
-
},
|
|
521
|
+
}, g)));
|
|
512
522
|
});
|
|
513
523
|
}
|
|
514
524
|
}, {
|
|
@@ -530,22 +540,22 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
530
540
|
onAnimationEnd: this.handleAnimationEnd,
|
|
531
541
|
onAnimationStart: this.handleAnimationStart
|
|
532
542
|
}, function(h) {
|
|
533
|
-
var u = h.t,
|
|
534
|
-
var O = f && f[
|
|
543
|
+
var u = h.t, g = s.map(function(N, A) {
|
|
544
|
+
var O = f && f[A];
|
|
535
545
|
if (O) {
|
|
536
|
-
var
|
|
537
|
-
return F(F({},
|
|
538
|
-
cx:
|
|
546
|
+
var x = J(O.cx, N.cx), b = J(O.cy, N.cy), w = J(O.size, N.size);
|
|
547
|
+
return F(F({}, N), {}, {
|
|
548
|
+
cx: x(u),
|
|
539
549
|
cy: b(u),
|
|
540
550
|
size: w(u)
|
|
541
551
|
});
|
|
542
552
|
}
|
|
543
|
-
var
|
|
544
|
-
return F(F({},
|
|
545
|
-
size:
|
|
553
|
+
var P = J(0, N.size);
|
|
554
|
+
return F(F({}, N), {}, {
|
|
555
|
+
size: P(u)
|
|
546
556
|
});
|
|
547
557
|
});
|
|
548
|
-
return /* @__PURE__ */ k.createElement(K, null, a.renderSymbolsStatically(
|
|
558
|
+
return /* @__PURE__ */ k.createElement(K, null, a.renderSymbolsStatically(g));
|
|
549
559
|
});
|
|
550
560
|
}
|
|
551
561
|
}, {
|
|
@@ -562,19 +572,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
562
572
|
return null;
|
|
563
573
|
var o = this.props, s = o.points, l = o.xAxis, d = o.yAxis, i = o.children, m = Te(i, bt);
|
|
564
574
|
return m ? m.map(function(c, f) {
|
|
565
|
-
var h = c.props, u = h.direction,
|
|
575
|
+
var h = c.props, u = h.direction, g = h.dataKey;
|
|
566
576
|
return /* @__PURE__ */ k.cloneElement(c, {
|
|
567
|
-
key: "".concat(u, "-").concat(
|
|
577
|
+
key: "".concat(u, "-").concat(g, "-").concat(s[f]),
|
|
568
578
|
data: s,
|
|
569
579
|
xAxis: l,
|
|
570
580
|
yAxis: d,
|
|
571
581
|
layout: u === "x" ? "vertical" : "horizontal",
|
|
572
|
-
dataPointFormatter: function(
|
|
582
|
+
dataPointFormatter: function(A, O) {
|
|
573
583
|
return {
|
|
574
|
-
x:
|
|
575
|
-
y:
|
|
576
|
-
value: u === "x" ? +
|
|
577
|
-
errorVal: X(
|
|
584
|
+
x: A.cx,
|
|
585
|
+
y: A.cy,
|
|
586
|
+
value: u === "x" ? +A.node.x : +A.node.y,
|
|
587
|
+
errorVal: X(A, O)
|
|
578
588
|
};
|
|
579
589
|
}
|
|
580
590
|
});
|
|
@@ -592,24 +602,24 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
592
602
|
};
|
|
593
603
|
});
|
|
594
604
|
else if (l === "fitting") {
|
|
595
|
-
var h = gt(o), u = h.xmin,
|
|
596
|
-
return
|
|
605
|
+
var h = gt(o), u = h.xmin, g = h.xmax, N = h.a, A = h.b, O = function(w) {
|
|
606
|
+
return N * w + A;
|
|
597
607
|
};
|
|
598
608
|
c = [{
|
|
599
609
|
x: u,
|
|
600
610
|
y: O(u)
|
|
601
611
|
}, {
|
|
602
|
-
x,
|
|
603
|
-
y: O(
|
|
612
|
+
x: g,
|
|
613
|
+
y: O(g)
|
|
604
614
|
}];
|
|
605
615
|
}
|
|
606
|
-
var
|
|
616
|
+
var x = F(F(F({}, i), {}, {
|
|
607
617
|
fill: "none",
|
|
608
618
|
stroke: i && i.fill
|
|
609
619
|
}, m), {}, {
|
|
610
620
|
points: c
|
|
611
621
|
});
|
|
612
|
-
return /* @__PURE__ */ k.isValidElement(s) ? f = /* @__PURE__ */ k.cloneElement(s,
|
|
622
|
+
return /* @__PURE__ */ k.isValidElement(s) ? f = /* @__PURE__ */ k.cloneElement(s, x) : xt(s) ? f = s(x) : f = /* @__PURE__ */ k.createElement(wt, G({}, x, {
|
|
613
623
|
type: d
|
|
614
624
|
})), /* @__PURE__ */ k.createElement(K, {
|
|
615
625
|
className: "recharts-scatter-line",
|
|
@@ -619,23 +629,23 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
619
629
|
}, {
|
|
620
630
|
key: "render",
|
|
621
631
|
value: function() {
|
|
622
|
-
var a = this.props, o = a.hide, s = a.points, l = a.line, d = a.className, i = a.xAxis, m = a.yAxis, c = a.left, f = a.top, h = a.width, u = a.height,
|
|
632
|
+
var a = this.props, o = a.hide, s = a.points, l = a.line, d = a.className, i = a.xAxis, m = a.yAxis, c = a.left, f = a.top, h = a.width, u = a.height, g = a.id, N = a.isAnimationActive;
|
|
623
633
|
if (o || !s || !s.length)
|
|
624
634
|
return null;
|
|
625
|
-
var
|
|
635
|
+
var A = this.state.isAnimationFinished, O = Pt("recharts-scatter", d), x = i && i.allowDataOverflow, b = m && m.allowDataOverflow, w = x || b, P = $(g) ? this.id : g;
|
|
626
636
|
return /* @__PURE__ */ k.createElement(K, {
|
|
627
637
|
className: O,
|
|
628
|
-
clipPath: w ? "url(#clipPath-".concat(
|
|
629
|
-
},
|
|
630
|
-
id: "clipPath-".concat(
|
|
638
|
+
clipPath: w ? "url(#clipPath-".concat(P, ")") : null
|
|
639
|
+
}, x || b ? /* @__PURE__ */ k.createElement("defs", null, /* @__PURE__ */ k.createElement("clipPath", {
|
|
640
|
+
id: "clipPath-".concat(P)
|
|
631
641
|
}, /* @__PURE__ */ k.createElement("rect", {
|
|
632
|
-
x:
|
|
642
|
+
x: x ? c : c - h / 2,
|
|
633
643
|
y: b ? f : f - u / 2,
|
|
634
|
-
width:
|
|
644
|
+
width: x ? h : h * 2,
|
|
635
645
|
height: b ? u : u * 2
|
|
636
646
|
}))) : null, l && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ k.createElement(K, {
|
|
637
647
|
key: "recharts-scatter-symbols"
|
|
638
|
-
}, this.renderSymbols()), (!
|
|
648
|
+
}, this.renderSymbols()), (!N || A) && Fe.renderCallByParent(this.props, s));
|
|
639
649
|
}
|
|
640
650
|
}], [{
|
|
641
651
|
key: "getDerivedStateFromProps",
|
|
@@ -649,7 +659,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
649
659
|
} : null;
|
|
650
660
|
}
|
|
651
661
|
}]);
|
|
652
|
-
}(
|
|
662
|
+
}(Oa);
|
|
653
663
|
j(Y, "displayName", "Scatter");
|
|
654
664
|
j(Y, "defaultProps", {
|
|
655
665
|
xAxisId: 0,
|
|
@@ -667,11 +677,11 @@ j(Y, "defaultProps", {
|
|
|
667
677
|
animationEasing: "linear"
|
|
668
678
|
});
|
|
669
679
|
j(Y, "getComposedData", function(e) {
|
|
670
|
-
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, s = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, i = e.offset, m = o.props.tooltipType, c = Te(o.props.children, Nt), f = $(t.dataKey) ? o.props.dataKey : t.dataKey, h = $(r.dataKey) ? o.props.dataKey : r.dataKey, u = a && a.dataKey,
|
|
671
|
-
var
|
|
680
|
+
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, s = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, i = e.offset, m = o.props.tooltipType, c = Te(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], A = t.scale.bandwidth ? t.scale.bandwidth() : 0, O = r.scale.bandwidth ? r.scale.bandwidth() : 0, x = s.map(function(b, w) {
|
|
681
|
+
var P = X(b, f), y = X(b, h), v = !$(u) && X(b, u) || "-", L = [{
|
|
672
682
|
name: $(t.dataKey) ? o.props.name : t.name || t.dataKey,
|
|
673
683
|
unit: t.unit || "",
|
|
674
|
-
value:
|
|
684
|
+
value: P,
|
|
675
685
|
payload: b,
|
|
676
686
|
dataKey: f,
|
|
677
687
|
type: m
|
|
@@ -694,44 +704,44 @@ j(Y, "getComposedData", function(e) {
|
|
|
694
704
|
var T = we({
|
|
695
705
|
axis: t,
|
|
696
706
|
ticks: l,
|
|
697
|
-
bandSize:
|
|
707
|
+
bandSize: A,
|
|
698
708
|
entry: b,
|
|
699
709
|
index: w,
|
|
700
710
|
dataKey: f
|
|
701
|
-
}),
|
|
711
|
+
}), _ = we({
|
|
702
712
|
axis: r,
|
|
703
713
|
ticks: d,
|
|
704
714
|
bandSize: O,
|
|
705
715
|
entry: b,
|
|
706
716
|
index: w,
|
|
707
717
|
dataKey: h
|
|
708
|
-
}), p = v !== "-" ? a.scale(v) :
|
|
718
|
+
}), p = v !== "-" ? a.scale(v) : N, S = Math.sqrt(Math.max(p, 0) / Math.PI);
|
|
709
719
|
return F(F({}, b), {}, {
|
|
710
720
|
cx: T,
|
|
711
|
-
cy:
|
|
712
|
-
x: T -
|
|
713
|
-
y:
|
|
721
|
+
cy: _,
|
|
722
|
+
x: T - S,
|
|
723
|
+
y: _ - S,
|
|
714
724
|
xAxis: t,
|
|
715
725
|
yAxis: r,
|
|
716
726
|
zAxis: a,
|
|
717
|
-
width: 2 *
|
|
718
|
-
height: 2 *
|
|
727
|
+
width: 2 * S,
|
|
728
|
+
height: 2 * S,
|
|
719
729
|
size: p,
|
|
720
730
|
node: {
|
|
721
|
-
x:
|
|
731
|
+
x: P,
|
|
722
732
|
y,
|
|
723
733
|
z: v
|
|
724
734
|
},
|
|
725
735
|
tooltipPayload: L,
|
|
726
736
|
tooltipPosition: {
|
|
727
737
|
x: T,
|
|
728
|
-
y:
|
|
738
|
+
y: _
|
|
729
739
|
},
|
|
730
740
|
payload: b
|
|
731
741
|
}, c && c[w] && c[w].props);
|
|
732
742
|
});
|
|
733
743
|
return F({
|
|
734
|
-
points:
|
|
744
|
+
points: x
|
|
735
745
|
}, i);
|
|
736
746
|
});
|
|
737
747
|
var Ja = At({
|
|
@@ -749,7 +759,7 @@ var Ja = At({
|
|
|
749
759
|
}],
|
|
750
760
|
formatAxisMap: kt
|
|
751
761
|
});
|
|
752
|
-
const
|
|
762
|
+
const Xa = (e) => {
|
|
753
763
|
const t = (r) => {
|
|
754
764
|
const { cx: a, cy: o, fill: s, payload: l } = r, d = () => {
|
|
755
765
|
if (!l) return "-";
|
|
@@ -773,18 +783,18 @@ const Ua = (e) => {
|
|
|
773
783
|
});
|
|
774
784
|
};
|
|
775
785
|
return t.displayName = `Scatter-${e}`, t;
|
|
776
|
-
},
|
|
786
|
+
}, Za = ({ dataConfig: e, data: t, xAxis: r, yAxis: a = {
|
|
777
787
|
hide: !0
|
|
778
|
-
}, label: o = !1, hideTooltip: s = !1, hideGrid: l = !1, aspect: d, legend: i, showValueUnderLabel: m = !1, bar: c, line: f, scatter: h, onClick: u },
|
|
779
|
-
var v, L, T,
|
|
780
|
-
const
|
|
788
|
+
}, label: o = !1, hideTooltip: s = !1, hideGrid: l = !1, aspect: d, legend: i, showValueUnderLabel: m = !1, bar: c, line: f, scatter: h, onClick: u }, g) => {
|
|
789
|
+
var v, L, T, _;
|
|
790
|
+
const N = Lt(t), A = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], O = 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 = [...A, ...O, ...x], w = Math.max(...N.flatMap((p) => b.map((S) => Dt(a != null && a.tickFormatter ? a.tickFormatter(`${p[S]}`) : `${p[S]}`)))), P = [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");
|
|
781
791
|
return n(Tt, {
|
|
782
792
|
config: e,
|
|
783
|
-
ref:
|
|
793
|
+
ref: g,
|
|
784
794
|
aspect: d,
|
|
785
|
-
children:
|
|
795
|
+
children: C(Ja, {
|
|
786
796
|
accessibilityLayer: !0,
|
|
787
|
-
data:
|
|
797
|
+
data: N,
|
|
788
798
|
margin: {
|
|
789
799
|
left: a && !a.hide ? 0 : 12,
|
|
790
800
|
right: 12,
|
|
@@ -795,13 +805,13 @@ const Ua = (e) => {
|
|
|
795
805
|
onClick: (p) => {
|
|
796
806
|
if (!u || !p.activeLabel || !p.activePayload)
|
|
797
807
|
return;
|
|
798
|
-
const
|
|
808
|
+
const S = {
|
|
799
809
|
label: p.activeLabel,
|
|
800
810
|
values: {}
|
|
801
811
|
};
|
|
802
|
-
for (const
|
|
803
|
-
|
|
804
|
-
u(
|
|
812
|
+
for (const U of p.activePayload)
|
|
813
|
+
S.values[U.name] = U.value;
|
|
814
|
+
u(S);
|
|
805
815
|
},
|
|
806
816
|
children: [!s && n(Ft, {
|
|
807
817
|
...It(),
|
|
@@ -810,13 +820,13 @@ const Ua = (e) => {
|
|
|
810
820
|
})
|
|
811
821
|
}), !l && n(Et, {
|
|
812
822
|
...jt()
|
|
813
|
-
}),
|
|
823
|
+
}), P.length > 0 && n(le, {
|
|
814
824
|
...Pe(a),
|
|
815
825
|
tick: !0,
|
|
816
|
-
width: a.width ?? w + 20 + (y.length > 0 && ((v =
|
|
817
|
-
hide: a.hide ||
|
|
818
|
-
label: (L =
|
|
819
|
-
value:
|
|
826
|
+
width: a.width ?? w + 20 + (y.length > 0 && ((v = P[0]) != null && v.axisLabel) ? 20 : 0),
|
|
827
|
+
hide: a.hide || P.some((p) => p == null ? void 0 : p.hideAxis),
|
|
828
|
+
label: (L = P[0]) != null && L.axisLabel ? {
|
|
829
|
+
value: P[0].axisLabel,
|
|
820
830
|
angle: -90,
|
|
821
831
|
position: "insideLeft"
|
|
822
832
|
} : void 0
|
|
@@ -825,9 +835,9 @@ const Ua = (e) => {
|
|
|
825
835
|
yAxisId: "right",
|
|
826
836
|
orientation: "right",
|
|
827
837
|
tick: !0,
|
|
828
|
-
width: a.width ?? w + 20 + (
|
|
838
|
+
width: a.width ?? w + 20 + (P.length > 0 && ((T = y[0]) != null && T.axisLabel) ? 20 : 0),
|
|
829
839
|
hide: a.hide || y.some((p) => p == null ? void 0 : p.hideAxis),
|
|
830
|
-
label: (
|
|
840
|
+
label: (_ = y[0]) != null && _.axisLabel ? {
|
|
831
841
|
value: y[0].axisLabel,
|
|
832
842
|
angle: 90,
|
|
833
843
|
position: "insideRight"
|
|
@@ -837,9 +847,9 @@ const Ua = (e) => {
|
|
|
837
847
|
hide: r == null ? void 0 : r.hide,
|
|
838
848
|
tick: m ? (p) => {
|
|
839
849
|
var be, ge;
|
|
840
|
-
const { x:
|
|
841
|
-
return
|
|
842
|
-
transform: `translate(${
|
|
850
|
+
const { x: S, y: U, payload: ve } = p, ye = ((be = t.find((pt) => pt.label === ve.value)) == null ? void 0 : be.values) || "", H = Object.keys(ye).length === 1 ? (ge = Object.values(ye)) == null ? void 0 : ge[0] : void 0, ft = H !== void 0 && a.tickFormatter ? a.tickFormatter(`${H}`) : H.toLocaleString();
|
|
851
|
+
return C("g", {
|
|
852
|
+
transform: `translate(${S},${U})`,
|
|
843
853
|
children: [n("text", {
|
|
844
854
|
x: 0,
|
|
845
855
|
y: 0,
|
|
@@ -847,7 +857,7 @@ const Ua = (e) => {
|
|
|
847
857
|
textAnchor: "middle",
|
|
848
858
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
849
859
|
children: ve.value
|
|
850
|
-
}), !!
|
|
860
|
+
}), !!H && n("text", {
|
|
851
861
|
x: 0,
|
|
852
862
|
y: 0,
|
|
853
863
|
dy: 28,
|
|
@@ -857,10 +867,10 @@ const Ua = (e) => {
|
|
|
857
867
|
})]
|
|
858
868
|
});
|
|
859
869
|
} : void 0
|
|
860
|
-
}),
|
|
870
|
+
}), A.map((p, S) => n(_e, {
|
|
861
871
|
isAnimationActive: !1,
|
|
862
872
|
dataKey: String(p),
|
|
863
|
-
fill: e[p].color ? W(e[p].color) : oe(
|
|
873
|
+
fill: e[p].color ? W(e[p].color) : oe(S),
|
|
864
874
|
radius: 4,
|
|
865
875
|
maxBarSize: 32,
|
|
866
876
|
children: o && n(Fe, {
|
|
@@ -869,21 +879,21 @@ const Ua = (e) => {
|
|
|
869
879
|
className: "fill-f1-foreground",
|
|
870
880
|
fontSize: 12
|
|
871
881
|
}, `label-${String(p)}`)
|
|
872
|
-
}, `bar-${String(p)}`)), O.map((p,
|
|
882
|
+
}, `bar-${String(p)}`)), O.map((p, S) => n(Ie, {
|
|
873
883
|
type: (f == null ? void 0 : f.lineType) ?? "natural",
|
|
874
884
|
dataKey: String(p),
|
|
875
|
-
stroke: e[p].color ? W(e[p].color) : oe(
|
|
885
|
+
stroke: e[p].color ? W(e[p].color) : oe(A.length + S),
|
|
876
886
|
strokeWidth: 2,
|
|
877
887
|
dot: (f == null ? void 0 : f.dot) ?? !1,
|
|
878
888
|
isAnimationActive: !1,
|
|
879
889
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0
|
|
880
|
-
}, `line-${String(p)}`)),
|
|
890
|
+
}, `line-${String(p)}`)), x.map((p, S) => n(Y, {
|
|
881
891
|
dataKey: String(p),
|
|
882
|
-
fill: e[p].color ? W(e[p].color) : oe(
|
|
892
|
+
fill: e[p].color ? W(e[p].color) : oe(A.length + O.length + S),
|
|
883
893
|
r: 4,
|
|
884
894
|
isAnimationActive: !1,
|
|
885
895
|
yAxisId: (h == null ? void 0 : h.axisPosition) === "right" ? "right" : void 0,
|
|
886
|
-
shape:
|
|
896
|
+
shape: Xa(String(p))
|
|
887
897
|
}, `scatter-${String(p)}`)), i && n(Bt, {
|
|
888
898
|
content: n(Mt, {
|
|
889
899
|
nameKey: "label"
|
|
@@ -895,21 +905,21 @@ const Ua = (e) => {
|
|
|
895
905
|
})]
|
|
896
906
|
})
|
|
897
907
|
});
|
|
898
|
-
},
|
|
899
|
-
var me = "Progress", he = 100, [
|
|
908
|
+
}, Qa = je(Za);
|
|
909
|
+
var me = "Progress", he = 100, [er, kr] = Rt(me), [tr, ar] = er(me), at = fe.forwardRef(
|
|
900
910
|
(e, t) => {
|
|
901
911
|
const {
|
|
902
912
|
__scopeProgress: r,
|
|
903
913
|
value: a = null,
|
|
904
914
|
max: o,
|
|
905
|
-
getValueLabel: s =
|
|
915
|
+
getValueLabel: s = rr,
|
|
906
916
|
...l
|
|
907
917
|
} = e;
|
|
908
|
-
(o || o === 0) && !ke(o) && console.error(
|
|
918
|
+
(o || o === 0) && !ke(o) && console.error(nr(`${o}`, "Progress"));
|
|
909
919
|
const d = ke(o) ? o : he;
|
|
910
|
-
a !== null && !Le(a, d) && console.error(
|
|
920
|
+
a !== null && !Le(a, d) && console.error(or(`${a}`, "Progress"));
|
|
911
921
|
const i = Le(a, d) ? a : null, m = te(i) ? s(i, d) : void 0;
|
|
912
|
-
return /* @__PURE__ */ n(
|
|
922
|
+
return /* @__PURE__ */ n(tr, { scope: r, value: i, max: d, children: /* @__PURE__ */ n(
|
|
913
923
|
$e.div,
|
|
914
924
|
{
|
|
915
925
|
"aria-valuemax": d,
|
|
@@ -929,7 +939,7 @@ var me = "Progress", he = 100, [Qa, Or] = Rt(me), [er, tr] = Qa(me), at = fe.for
|
|
|
929
939
|
at.displayName = me;
|
|
930
940
|
var rt = "ProgressIndicator", nt = fe.forwardRef(
|
|
931
941
|
(e, t) => {
|
|
932
|
-
const { __scopeProgress: r, ...a } = e, o =
|
|
942
|
+
const { __scopeProgress: r, ...a } = e, o = ar(rt, r);
|
|
933
943
|
return /* @__PURE__ */ n(
|
|
934
944
|
$e.div,
|
|
935
945
|
{
|
|
@@ -943,7 +953,7 @@ var rt = "ProgressIndicator", nt = fe.forwardRef(
|
|
|
943
953
|
}
|
|
944
954
|
);
|
|
945
955
|
nt.displayName = rt;
|
|
946
|
-
function
|
|
956
|
+
function rr(e, t) {
|
|
947
957
|
return `${Math.round(e / t * 100)}%`;
|
|
948
958
|
}
|
|
949
959
|
function ot(e, t) {
|
|
@@ -958,10 +968,10 @@ function ke(e) {
|
|
|
958
968
|
function Le(e, t) {
|
|
959
969
|
return te(e) && !isNaN(e) && e <= t && e >= 0;
|
|
960
970
|
}
|
|
961
|
-
function
|
|
971
|
+
function nr(e, t) {
|
|
962
972
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${he}\`.`;
|
|
963
973
|
}
|
|
964
|
-
function
|
|
974
|
+
function or(e, t) {
|
|
965
975
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
966
976
|
- a positive number
|
|
967
977
|
- less than the value passed to \`max\` (or ${he} if no \`max\` prop is set)
|
|
@@ -969,12 +979,12 @@ function nr(e, t) {
|
|
|
969
979
|
|
|
970
980
|
Defaulting to \`null\`.`;
|
|
971
981
|
}
|
|
972
|
-
var it = at,
|
|
982
|
+
var it = at, ir = nt;
|
|
973
983
|
const st = fe.forwardRef(({ className: e, value: t, ...r }, a) => n(it, {
|
|
974
984
|
ref: a,
|
|
975
|
-
className:
|
|
985
|
+
className: E("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", e),
|
|
976
986
|
...r,
|
|
977
|
-
children: n(
|
|
987
|
+
children: n(ir, {
|
|
978
988
|
className: "h-full w-full flex-1 transition-all",
|
|
979
989
|
style: {
|
|
980
990
|
backgroundColor: r.color,
|
|
@@ -983,9 +993,9 @@ const st = fe.forwardRef(({ className: e, value: t, ...r }, a) => n(it, {
|
|
|
983
993
|
})
|
|
984
994
|
}));
|
|
985
995
|
st.displayName = it.displayName;
|
|
986
|
-
const
|
|
996
|
+
const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
987
997
|
const s = a ? W(a) : W("categorical-1"), l = e / t * 100;
|
|
988
|
-
return
|
|
998
|
+
return C("div", {
|
|
989
999
|
className: "flex items-center space-x-2",
|
|
990
1000
|
"aria-live": "polite",
|
|
991
1001
|
children: [n("div", {
|
|
@@ -1004,71 +1014,71 @@ const ir = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1004
1014
|
children: r
|
|
1005
1015
|
})]
|
|
1006
1016
|
});
|
|
1007
|
-
},
|
|
1017
|
+
}, lr = je(sr), Lr = I(
|
|
1008
1018
|
{
|
|
1009
1019
|
name: "AreaChart",
|
|
1010
1020
|
type: "info"
|
|
1011
1021
|
},
|
|
1012
|
-
|
|
1013
|
-
),
|
|
1022
|
+
Vt
|
|
1023
|
+
), Dr = I(
|
|
1014
1024
|
{
|
|
1015
1025
|
name: "BarChart",
|
|
1016
1026
|
type: "info"
|
|
1017
1027
|
},
|
|
1018
1028
|
zt
|
|
1019
|
-
),
|
|
1029
|
+
), Tr = I(
|
|
1020
1030
|
{
|
|
1021
1031
|
name: "CategoryBarChart",
|
|
1022
1032
|
type: "info"
|
|
1023
1033
|
},
|
|
1024
1034
|
Kt
|
|
1025
|
-
),
|
|
1035
|
+
), Fr = I(
|
|
1026
1036
|
{
|
|
1027
1037
|
name: "LineChart",
|
|
1028
1038
|
type: "info"
|
|
1029
1039
|
},
|
|
1030
1040
|
Wt
|
|
1031
|
-
),
|
|
1041
|
+
), Ir = I(
|
|
1032
1042
|
{
|
|
1033
1043
|
name: "PieChart",
|
|
1034
1044
|
type: "info"
|
|
1035
1045
|
},
|
|
1036
|
-
|
|
1037
|
-
),
|
|
1046
|
+
qt
|
|
1047
|
+
), _r = I(
|
|
1038
1048
|
{
|
|
1039
1049
|
name: "VerticalBarChart",
|
|
1040
1050
|
type: "info"
|
|
1041
1051
|
},
|
|
1042
|
-
|
|
1043
|
-
),
|
|
1052
|
+
Gt
|
|
1053
|
+
), Er = I(
|
|
1044
1054
|
{
|
|
1045
1055
|
name: "ProgressBarChart",
|
|
1046
1056
|
type: "info"
|
|
1047
1057
|
},
|
|
1048
|
-
|
|
1049
|
-
),
|
|
1058
|
+
lr
|
|
1059
|
+
), jr = I(
|
|
1050
1060
|
{
|
|
1051
1061
|
name: "ComboChart",
|
|
1052
1062
|
type: "info"
|
|
1053
1063
|
},
|
|
1054
|
-
|
|
1055
|
-
),
|
|
1064
|
+
Qa
|
|
1065
|
+
), $r = Yt, Br = Be, Mr = ["default", "outline", "neutral"], Rr = Be, zr = ["sm", "md", "lg"], Kr = Ut, de = ({ count: e, list: t }) => {
|
|
1056
1066
|
const [r, a] = D(!1), o = n(Z, {
|
|
1057
1067
|
label: `+${e}`
|
|
1058
1068
|
});
|
|
1059
|
-
return t != null && t.length ?
|
|
1069
|
+
return t != null && t.length ? C(Me, {
|
|
1060
1070
|
open: r,
|
|
1061
1071
|
onOpenChange: a,
|
|
1062
1072
|
children: [n(Re, {
|
|
1063
1073
|
asChild: !0,
|
|
1064
1074
|
children: n("button", {
|
|
1065
|
-
className:
|
|
1075
|
+
className: Ht("inline-flex flex-shrink-0 items-center"),
|
|
1066
1076
|
children: o
|
|
1067
1077
|
})
|
|
1068
1078
|
}), n(ze, {
|
|
1069
1079
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
1070
1080
|
align: "end",
|
|
1071
|
-
children:
|
|
1081
|
+
children: C(Ke, {
|
|
1072
1082
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
1073
1083
|
children: [t.map((s, l) => n("div", {
|
|
1074
1084
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
@@ -1086,7 +1096,7 @@ const ir = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1086
1096
|
de.displayName = "ChipCounter";
|
|
1087
1097
|
const lt = ({ chips: e, max: t = 4, remainingCount: r, layout: a = "compact" }) => {
|
|
1088
1098
|
if (a === "fill")
|
|
1089
|
-
return n(
|
|
1099
|
+
return n(Jt, {
|
|
1090
1100
|
items: e,
|
|
1091
1101
|
renderListItem: (i) => n(Z, {
|
|
1092
1102
|
...i
|
|
@@ -1101,7 +1111,7 @@ const lt = ({ chips: e, max: t = 4, remainingCount: r, layout: a = "compact" })
|
|
|
1101
1111
|
className: "flex-1"
|
|
1102
1112
|
});
|
|
1103
1113
|
const o = e.slice(0, t), s = e.slice(t), l = r ?? e.length - t, d = l > 0;
|
|
1104
|
-
return
|
|
1114
|
+
return C("div", {
|
|
1105
1115
|
className: "flex items-center gap-2",
|
|
1106
1116
|
children: [o.map((i, m) => n(Z, {
|
|
1107
1117
|
...i
|
|
@@ -1112,29 +1122,29 @@ const lt = ({ chips: e, max: t = 4, remainingCount: r, layout: a = "compact" })
|
|
|
1112
1122
|
});
|
|
1113
1123
|
};
|
|
1114
1124
|
lt.displayName = "F0ChipList";
|
|
1115
|
-
const
|
|
1116
|
-
const [m, c] = D(""), [f, h] = D(!1), u =
|
|
1125
|
+
const Wr = qe("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularity: r, onOpenChange: a, minDate: o, maxDate: s, onClear: l, ...d }, i) => {
|
|
1126
|
+
const [m, c] = D(""), [f, h] = D(!1), u = Ge();
|
|
1117
1127
|
B(() => {
|
|
1118
1128
|
c(r.toString(e == null ? void 0 : e.value, u));
|
|
1119
1129
|
}, [e, r, u]);
|
|
1120
|
-
const
|
|
1130
|
+
const g = (x) => Qt(x, r, {
|
|
1121
1131
|
minDate: o,
|
|
1122
1132
|
maxDate: s
|
|
1123
|
-
}),
|
|
1124
|
-
if (
|
|
1133
|
+
}), N = (x, b) => {
|
|
1134
|
+
if (x === "") {
|
|
1125
1135
|
t == null || t({
|
|
1126
1136
|
value: void 0,
|
|
1127
1137
|
granularity: b.key
|
|
1128
1138
|
}), h(d.required ?? !1);
|
|
1129
1139
|
return;
|
|
1130
1140
|
}
|
|
1131
|
-
const w = b.toRange(b.fromString(
|
|
1132
|
-
w &&
|
|
1141
|
+
const w = b.toRange(b.fromString(x, u));
|
|
1142
|
+
w && g(w == null ? void 0 : w.from) && g(w == null ? void 0 : w.to) ? (t == null || t({
|
|
1133
1143
|
value: w,
|
|
1134
1144
|
granularity: b.key
|
|
1135
1145
|
}), h(!1)) : h(!0);
|
|
1136
|
-
},
|
|
1137
|
-
|
|
1146
|
+
}, A = () => {
|
|
1147
|
+
N(m, r);
|
|
1138
1148
|
};
|
|
1139
1149
|
return n(ae, {
|
|
1140
1150
|
children: n(Xt, {
|
|
@@ -1143,29 +1153,29 @@ const Kr = Ge("F0ChipList", lt), ct = q(({ value: e, onDateChange: t, granularit
|
|
|
1143
1153
|
ref: i,
|
|
1144
1154
|
onFocus: () => a == null ? void 0 : a(!0),
|
|
1145
1155
|
onClear: () => {
|
|
1146
|
-
l == null || l(), c(""),
|
|
1156
|
+
l == null || l(), c(""), N("", r);
|
|
1147
1157
|
},
|
|
1148
|
-
onKeyDown: (
|
|
1149
|
-
|
|
1158
|
+
onKeyDown: (x) => {
|
|
1159
|
+
x.key === "Enter" && A();
|
|
1150
1160
|
},
|
|
1151
1161
|
type: "text",
|
|
1152
|
-
onChange: (
|
|
1153
|
-
c(
|
|
1162
|
+
onChange: (x) => {
|
|
1163
|
+
c(x);
|
|
1154
1164
|
},
|
|
1155
1165
|
error: f || d.error,
|
|
1156
|
-
onBlur:
|
|
1166
|
+
onBlur: A,
|
|
1157
1167
|
value: m,
|
|
1158
1168
|
onClickContent: () => a == null ? void 0 : a(!0)
|
|
1159
1169
|
})
|
|
1160
1170
|
});
|
|
1161
1171
|
});
|
|
1162
1172
|
ct.displayName = "DateInput";
|
|
1163
|
-
function
|
|
1173
|
+
function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"], minDate: o, maxDate: s, open: l = !1, ...d }) {
|
|
1164
1174
|
const [i, m] = D(), [c, f] = D(l);
|
|
1165
1175
|
B(() => {
|
|
1166
1176
|
f(l);
|
|
1167
1177
|
}, [l]);
|
|
1168
|
-
const h =
|
|
1178
|
+
const h = Ge(), u = se(() => a[0] ?? "day", [a]), g = Ne((y) => {
|
|
1169
1179
|
const v = y || u;
|
|
1170
1180
|
if (!Se[v])
|
|
1171
1181
|
throw new Error(`Invalid granularity ${v}`);
|
|
@@ -1173,37 +1183,37 @@ function lr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1173
1183
|
...Se[v],
|
|
1174
1184
|
key: v
|
|
1175
1185
|
};
|
|
1176
|
-
}, [u]),
|
|
1186
|
+
}, [u]), N = Ne((y) => {
|
|
1177
1187
|
var L;
|
|
1178
1188
|
if (!y)
|
|
1179
1189
|
return;
|
|
1180
|
-
const v =
|
|
1190
|
+
const v = g(y == null ? void 0 : y.granularity);
|
|
1181
1191
|
return y ? {
|
|
1182
1192
|
value: v.toRange(v.calendarMode === "range" ? y.value : ((L = y.value) == null ? void 0 : L.from) ?? void 0),
|
|
1183
1193
|
granularity: y.granularity
|
|
1184
1194
|
} : void 0;
|
|
1185
|
-
}, [
|
|
1195
|
+
}, [g]), A = se(() => g(i == null ? void 0 : i.granularity), [i == null ? void 0 : i.granularity, g]);
|
|
1186
1196
|
B(() => {
|
|
1187
|
-
const y =
|
|
1197
|
+
const y = N(t);
|
|
1188
1198
|
ie(i, y) || m(y);
|
|
1189
1199
|
}, [t]);
|
|
1190
1200
|
const O = (y) => {
|
|
1191
|
-
const v =
|
|
1192
|
-
|
|
1193
|
-
},
|
|
1194
|
-
const v =
|
|
1201
|
+
const v = N(y), T = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (i == null ? void 0 : i.granularity) && !ie(v, i);
|
|
1202
|
+
x(v), T && f(!1);
|
|
1203
|
+
}, x = (y) => {
|
|
1204
|
+
const v = N(y);
|
|
1195
1205
|
if (m(v), !ie(v, i)) {
|
|
1196
|
-
const L =
|
|
1206
|
+
const L = g(v == null ? void 0 : v.granularity);
|
|
1197
1207
|
e == null || e(v, L.toString(v == null ? void 0 : v.value, h));
|
|
1198
1208
|
}
|
|
1199
1209
|
}, b = (y) => {
|
|
1200
1210
|
var v;
|
|
1201
1211
|
f(y), (v = d.onOpenChange) == null || v.call(d, y);
|
|
1202
|
-
}, w = se(() => r.filter((y) => a.includes(y.granularity)), [r, a]),
|
|
1212
|
+
}, w = se(() => r.filter((y) => a.includes(y.granularity)), [r, a]), P = pe(null);
|
|
1203
1213
|
return B(() => {
|
|
1204
|
-
c &&
|
|
1214
|
+
c && P.current && requestAnimationFrame(() => {
|
|
1205
1215
|
var y;
|
|
1206
|
-
(y =
|
|
1216
|
+
(y = P.current) == null || y.focus();
|
|
1207
1217
|
});
|
|
1208
1218
|
}, [c]), n(ea, {
|
|
1209
1219
|
hideCalendarInput: !0,
|
|
@@ -1217,44 +1227,44 @@ function lr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1217
1227
|
onOpenChange: b,
|
|
1218
1228
|
asChild: !0,
|
|
1219
1229
|
children: n(ct, {
|
|
1220
|
-
ref:
|
|
1230
|
+
ref: P,
|
|
1221
1231
|
...d,
|
|
1222
1232
|
value: i,
|
|
1223
|
-
granularity:
|
|
1224
|
-
onDateChange:
|
|
1233
|
+
granularity: A,
|
|
1234
|
+
onDateChange: x
|
|
1225
1235
|
})
|
|
1226
1236
|
});
|
|
1227
1237
|
}
|
|
1228
|
-
const
|
|
1238
|
+
const qr = ta, Gr = qe(
|
|
1229
1239
|
"F0DatePicker",
|
|
1230
|
-
|
|
1231
|
-
),
|
|
1240
|
+
cr
|
|
1241
|
+
), ur = {
|
|
1232
1242
|
xs: 1,
|
|
1233
1243
|
sm: 2,
|
|
1234
1244
|
md: 2,
|
|
1235
1245
|
lg: 2
|
|
1236
|
-
},
|
|
1246
|
+
}, dr = V(function({ widgets: t, children: r }, a) {
|
|
1237
1247
|
const o = pe(null);
|
|
1238
|
-
|
|
1239
|
-
const s =
|
|
1248
|
+
ka(a, () => o.current);
|
|
1249
|
+
const s = La.toArray(t).filter((l) => !!l).map((l, d) => n("div", {
|
|
1240
1250
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
1241
1251
|
children: l
|
|
1242
1252
|
}, d));
|
|
1243
|
-
return n(
|
|
1253
|
+
return n(Ve, {
|
|
1244
1254
|
layout: "home",
|
|
1245
|
-
children:
|
|
1255
|
+
children: C("div", {
|
|
1246
1256
|
ref: o,
|
|
1247
1257
|
className: "@container",
|
|
1248
|
-
children: [
|
|
1258
|
+
children: [C("div", {
|
|
1249
1259
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
1250
1260
|
children: [n(aa, {
|
|
1251
|
-
columns:
|
|
1261
|
+
columns: ur,
|
|
1252
1262
|
showArrows: !1,
|
|
1253
1263
|
children: s
|
|
1254
1264
|
}), n("main", {
|
|
1255
1265
|
children: r
|
|
1256
1266
|
})]
|
|
1257
|
-
}),
|
|
1267
|
+
}), C("div", {
|
|
1258
1268
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
1259
1269
|
children: [n("div", {
|
|
1260
1270
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
@@ -1269,40 +1279,40 @@ const Wr = ta, Gr = Ge(
|
|
|
1269
1279
|
})]
|
|
1270
1280
|
})
|
|
1271
1281
|
});
|
|
1272
|
-
}),
|
|
1282
|
+
}), fr = V(function({ children: t, sideContent: r, mainColumnPosition: a = "left", sticky: o = !1 }, s) {
|
|
1273
1283
|
return n("div", {
|
|
1274
1284
|
ref: s,
|
|
1275
1285
|
className: "h-full",
|
|
1276
|
-
children:
|
|
1277
|
-
className:
|
|
1286
|
+
children: C("div", {
|
|
1287
|
+
className: E("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"),
|
|
1278
1288
|
children: [n("main", {
|
|
1279
|
-
className:
|
|
1289
|
+
className: E("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"),
|
|
1280
1290
|
children: t
|
|
1281
|
-
}), n(
|
|
1291
|
+
}), n(pr, {
|
|
1282
1292
|
sticky: o,
|
|
1283
|
-
className:
|
|
1293
|
+
className: E("order-1", a === "right" ? "md:order-1" : "md:order-3"),
|
|
1284
1294
|
children: r
|
|
1285
1295
|
})]
|
|
1286
1296
|
})
|
|
1287
1297
|
});
|
|
1288
|
-
}),
|
|
1289
|
-
className:
|
|
1298
|
+
}), pr = ({ children: e, className: t }) => n("aside", {
|
|
1299
|
+
className: E("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", t),
|
|
1290
1300
|
children: e
|
|
1291
|
-
}),
|
|
1301
|
+
}), mr = ra({
|
|
1292
1302
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
1293
1303
|
variants: {
|
|
1294
1304
|
variant: {
|
|
1295
1305
|
narrow: "max-w-screen-lg"
|
|
1296
1306
|
}
|
|
1297
1307
|
}
|
|
1298
|
-
}), ut = k.forwardRef(({ children: e, variant: t, className: r, ...a }, o) => n(
|
|
1308
|
+
}), ut = k.forwardRef(({ children: e, variant: t, className: r, ...a }, o) => n(Ve, {
|
|
1299
1309
|
layout: "standard",
|
|
1300
1310
|
children: n("section", {
|
|
1301
1311
|
ref: o,
|
|
1302
|
-
className:
|
|
1312
|
+
className: E("relative flex-1 overflow-auto", r),
|
|
1303
1313
|
...a,
|
|
1304
1314
|
children: n("div", {
|
|
1305
|
-
className:
|
|
1315
|
+
className: E(mr({
|
|
1306
1316
|
variant: t
|
|
1307
1317
|
})),
|
|
1308
1318
|
children: e
|
|
@@ -1313,29 +1323,29 @@ ut.displayName = "StandardLayout";
|
|
|
1313
1323
|
const Vr = I({
|
|
1314
1324
|
name: "StandardLayout",
|
|
1315
1325
|
type: "layout"
|
|
1316
|
-
}, ut),
|
|
1326
|
+
}, ut), Yr = I({
|
|
1317
1327
|
name: "TwoColumnLayout",
|
|
1318
1328
|
type: "layout"
|
|
1319
|
-
},
|
|
1329
|
+
}, fr), Ur = I({
|
|
1320
1330
|
name: "HomeLayout",
|
|
1321
1331
|
type: "layout"
|
|
1322
|
-
},
|
|
1332
|
+
}, dr), hr = ({ benefits: e }) => n("div", {
|
|
1323
1333
|
className: "flex flex-col gap-2",
|
|
1324
|
-
children: e.map((t, r) => n(
|
|
1334
|
+
children: e.map((t, r) => n(vr, {
|
|
1325
1335
|
text: t
|
|
1326
1336
|
}, r))
|
|
1327
|
-
}),
|
|
1337
|
+
}), vr = ({ text: e }) => C("div", {
|
|
1328
1338
|
className: "flex flex-row items-start gap-2",
|
|
1329
|
-
children: [n(
|
|
1330
|
-
icon:
|
|
1339
|
+
children: [n(ia, {
|
|
1340
|
+
icon: sa,
|
|
1331
1341
|
size: "md",
|
|
1332
1342
|
className: "text-f1-icon-positive"
|
|
1333
1343
|
}), n("span", {
|
|
1334
1344
|
children: e
|
|
1335
1345
|
})]
|
|
1336
|
-
}), dt =
|
|
1337
|
-
ref:
|
|
1338
|
-
className:
|
|
1346
|
+
}), dt = V(({ title: e, image: t, benefits: r, actions: a, withShadow: o = !0, module: s, moduleName: l, tag: d, promoTag: i }, m) => C("div", {
|
|
1347
|
+
ref: m,
|
|
1348
|
+
className: E("bg-white flex flex-row rounded-xl border border-f1-border-secondary", o && "shadow-md"),
|
|
1339
1349
|
children: [n("div", {
|
|
1340
1350
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
1341
1351
|
children: n("img", {
|
|
@@ -1343,13 +1353,13 @@ const Vr = I({
|
|
|
1343
1353
|
alt: "",
|
|
1344
1354
|
className: "h-full w-full rounded-lg object-cover"
|
|
1345
1355
|
})
|
|
1346
|
-
}),
|
|
1356
|
+
}), C("div", {
|
|
1347
1357
|
className: "flex flex-col justify-center gap-8 px-8 py-5",
|
|
1348
|
-
children: [
|
|
1358
|
+
children: [C("div", {
|
|
1349
1359
|
className: "flex flex-col gap-5",
|
|
1350
|
-
children: [
|
|
1360
|
+
children: [C("div", {
|
|
1351
1361
|
className: "flex flex-col gap-2",
|
|
1352
|
-
children: [
|
|
1362
|
+
children: [C("div", {
|
|
1353
1363
|
className: "flex flex-row items-center gap-2",
|
|
1354
1364
|
children: [s && n(Ye, {
|
|
1355
1365
|
module: s
|
|
@@ -1357,17 +1367,20 @@ const Vr = I({
|
|
|
1357
1367
|
className: "text-base font-medium text-f1-foreground",
|
|
1358
1368
|
children: l
|
|
1359
1369
|
})]
|
|
1360
|
-
}), d &&
|
|
1361
|
-
className: "flex justify-start",
|
|
1362
|
-
children: n(na, {
|
|
1370
|
+
}), (d || i) && C("div", {
|
|
1371
|
+
className: "flex justify-start gap-2",
|
|
1372
|
+
children: [d && n(na, {
|
|
1363
1373
|
icon: d.icon,
|
|
1364
1374
|
text: d.label
|
|
1365
|
-
})
|
|
1375
|
+
}), i && n(oa, {
|
|
1376
|
+
variant: i.variant || "positive",
|
|
1377
|
+
text: i.label
|
|
1378
|
+
})]
|
|
1366
1379
|
}), n("h2", {
|
|
1367
1380
|
className: "font-bold text-xl text-f1-foreground",
|
|
1368
1381
|
children: e
|
|
1369
1382
|
})]
|
|
1370
|
-
}), n(
|
|
1383
|
+
}), n(hr, {
|
|
1371
1384
|
benefits: r
|
|
1372
1385
|
})]
|
|
1373
1386
|
}), a && n("div", {
|
|
@@ -1377,35 +1390,35 @@ const Vr = I({
|
|
|
1377
1390
|
})]
|
|
1378
1391
|
}));
|
|
1379
1392
|
dt.displayName = "ProductBlankslate";
|
|
1380
|
-
function
|
|
1393
|
+
function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalContainer: s }) {
|
|
1381
1394
|
const [l, d] = D(e);
|
|
1382
1395
|
return B(() => {
|
|
1383
1396
|
d(e);
|
|
1384
|
-
}, [e]), n(
|
|
1397
|
+
}, [e]), n(la, {
|
|
1385
1398
|
open: l,
|
|
1386
1399
|
onOpenChange: (m) => {
|
|
1387
1400
|
d(m), m || t();
|
|
1388
1401
|
},
|
|
1389
1402
|
modal: !0,
|
|
1390
|
-
children:
|
|
1403
|
+
children: C(ca, {
|
|
1391
1404
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
1392
1405
|
container: s,
|
|
1393
|
-
children: [
|
|
1406
|
+
children: [C("div", {
|
|
1394
1407
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
1395
|
-
children: [
|
|
1408
|
+
children: [C(ua, {
|
|
1396
1409
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
1397
1410
|
children: [o && n(Ye, {
|
|
1398
1411
|
module: o,
|
|
1399
1412
|
size: "lg"
|
|
1400
1413
|
}), r]
|
|
1401
|
-
}), n(
|
|
1414
|
+
}), n(da, {
|
|
1402
1415
|
variant: "outline",
|
|
1403
|
-
icon:
|
|
1416
|
+
icon: Ue,
|
|
1404
1417
|
onClick: t,
|
|
1405
1418
|
label: "Close modal",
|
|
1406
1419
|
hideLabel: !0
|
|
1407
1420
|
})]
|
|
1408
|
-
}),
|
|
1421
|
+
}), C(Ke, {
|
|
1409
1422
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
1410
1423
|
children: [a, n(We, {
|
|
1411
1424
|
orientation: "vertical",
|
|
@@ -1415,28 +1428,28 @@ function vr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1415
1428
|
})
|
|
1416
1429
|
});
|
|
1417
1430
|
}
|
|
1418
|
-
function Hr({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: s, successMessage: l, loadingState: d, nextSteps: i, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer:
|
|
1419
|
-
const [
|
|
1431
|
+
function Hr({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: s, successMessage: l, loadingState: d, nextSteps: i, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag: N, promoTag: A, showResponseDialog: O = !0 }) {
|
|
1432
|
+
const [x, b] = D(e), [w, P] = D(null), [y, v] = D(!1), L = async () => {
|
|
1420
1433
|
if (c != null && c.onClick) {
|
|
1421
|
-
|
|
1434
|
+
v(!0);
|
|
1422
1435
|
try {
|
|
1423
|
-
await c.onClick(),
|
|
1436
|
+
await c.onClick(), b(!1), O && P("success");
|
|
1424
1437
|
} catch {
|
|
1425
|
-
|
|
1438
|
+
O && P("error");
|
|
1426
1439
|
} finally {
|
|
1427
|
-
|
|
1440
|
+
v(!1);
|
|
1428
1441
|
}
|
|
1429
1442
|
}
|
|
1430
|
-
},
|
|
1431
|
-
|
|
1432
|
-
},
|
|
1433
|
-
return
|
|
1434
|
-
children: [n(
|
|
1435
|
-
isOpen:
|
|
1436
|
-
onClose:
|
|
1443
|
+
}, T = () => {
|
|
1444
|
+
b(!1), t == null || t();
|
|
1445
|
+
}, _ = y;
|
|
1446
|
+
return C(ae, {
|
|
1447
|
+
children: [n(yr, {
|
|
1448
|
+
isOpen: x,
|
|
1449
|
+
onClose: T,
|
|
1437
1450
|
title: f,
|
|
1438
1451
|
module: h,
|
|
1439
|
-
portalContainer:
|
|
1452
|
+
portalContainer: g,
|
|
1440
1453
|
children: n("div", {
|
|
1441
1454
|
className: "pb-4 pl-4",
|
|
1442
1455
|
children: n(dt, {
|
|
@@ -1444,14 +1457,15 @@ function Hr({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1444
1457
|
image: a,
|
|
1445
1458
|
benefits: o,
|
|
1446
1459
|
withShadow: !1,
|
|
1447
|
-
tag:
|
|
1448
|
-
|
|
1460
|
+
tag: N,
|
|
1461
|
+
promoTag: A,
|
|
1462
|
+
actions: C("div", {
|
|
1449
1463
|
className: "flex gap-3",
|
|
1450
1464
|
children: [c && n(M, {
|
|
1451
1465
|
variant: c.variant,
|
|
1452
|
-
label:
|
|
1466
|
+
label: _ ? d.label : c.label,
|
|
1453
1467
|
icon: c.icon || void 0,
|
|
1454
|
-
onClick:
|
|
1468
|
+
onClick: L,
|
|
1455
1469
|
loading: c.loading,
|
|
1456
1470
|
size: c.size
|
|
1457
1471
|
}), u && n(M, {
|
|
@@ -1464,21 +1478,21 @@ function Hr({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1464
1478
|
})
|
|
1465
1479
|
})
|
|
1466
1480
|
})
|
|
1467
|
-
}),
|
|
1481
|
+
}), w && O && n(He, {
|
|
1468
1482
|
open: !0,
|
|
1469
1483
|
onClose: () => {
|
|
1470
|
-
|
|
1484
|
+
T(), P(null);
|
|
1471
1485
|
},
|
|
1472
|
-
success:
|
|
1486
|
+
success: w === "success",
|
|
1473
1487
|
errorMessage: s,
|
|
1474
1488
|
successMessage: l,
|
|
1475
1489
|
nextSteps: i,
|
|
1476
1490
|
closeLabel: m,
|
|
1477
|
-
portalContainer:
|
|
1491
|
+
portalContainer: g
|
|
1478
1492
|
})]
|
|
1479
1493
|
});
|
|
1480
1494
|
}
|
|
1481
|
-
function
|
|
1495
|
+
function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o, width: s, trackVisibility: l, actions: d, showConfirmation: i = !0 }) {
|
|
1482
1496
|
const [m, c] = D(!1), f = () => {
|
|
1483
1497
|
c(!0), a && a();
|
|
1484
1498
|
};
|
|
@@ -1487,23 +1501,23 @@ function yr({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1487
1501
|
}, [l, m]);
|
|
1488
1502
|
const h = e == null ? void 0 : e.includes(".mp4");
|
|
1489
1503
|
return n(ae, {
|
|
1490
|
-
children: m ? null :
|
|
1504
|
+
children: m ? null : C(fa, {
|
|
1491
1505
|
style: {
|
|
1492
1506
|
width: s
|
|
1493
1507
|
},
|
|
1494
1508
|
className: "relative bg-f1-background p-1",
|
|
1495
|
-
children: [
|
|
1509
|
+
children: [C(pa, {
|
|
1496
1510
|
children: [o && n("div", {
|
|
1497
1511
|
className: "absolute right-2 top-2 z-10",
|
|
1498
1512
|
children: n(M, {
|
|
1499
1513
|
variant: "ghost",
|
|
1500
|
-
icon:
|
|
1514
|
+
icon: Ue,
|
|
1501
1515
|
size: "sm",
|
|
1502
1516
|
hideLabel: !0,
|
|
1503
1517
|
onClick: f,
|
|
1504
1518
|
label: "Close"
|
|
1505
1519
|
})
|
|
1506
|
-
}),
|
|
1520
|
+
}), C("div", {
|
|
1507
1521
|
children: [n("div", {
|
|
1508
1522
|
children: e && (h ? n("video", {
|
|
1509
1523
|
src: e,
|
|
@@ -1517,7 +1531,7 @@ function yr({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1517
1531
|
alt: t,
|
|
1518
1532
|
className: "h-full w-full rounded-md"
|
|
1519
1533
|
}))
|
|
1520
|
-
}),
|
|
1534
|
+
}), C("div", {
|
|
1521
1535
|
className: "flex flex-col gap-[2px] p-3",
|
|
1522
1536
|
children: [n(Ce, {
|
|
1523
1537
|
className: "text-lg font-medium",
|
|
@@ -1528,9 +1542,9 @@ function yr({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1528
1542
|
})]
|
|
1529
1543
|
})]
|
|
1530
1544
|
})]
|
|
1531
|
-
}), d && n(
|
|
1545
|
+
}), d && n(ma, {
|
|
1532
1546
|
className: "p-3",
|
|
1533
|
-
children: d.map((u) => u.type === "upsell" ? n(
|
|
1547
|
+
children: d.map((u) => u.type === "upsell" ? n(Je, {
|
|
1534
1548
|
label: u.label,
|
|
1535
1549
|
onRequest: u.onClick,
|
|
1536
1550
|
errorMessage: u.errorMessage,
|
|
@@ -1549,8 +1563,8 @@ function yr({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1549
1563
|
})
|
|
1550
1564
|
});
|
|
1551
1565
|
}
|
|
1552
|
-
const
|
|
1553
|
-
const s = (i) => i.variant === "promote" ? n(
|
|
1566
|
+
const gr = V(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
|
|
1567
|
+
const s = (i) => i.variant === "promote" ? n(Je, {
|
|
1554
1568
|
label: i.label,
|
|
1555
1569
|
onRequest: async () => {
|
|
1556
1570
|
await i.onClick();
|
|
@@ -1570,7 +1584,7 @@ const br = q(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
|
|
|
1570
1584
|
size: "md",
|
|
1571
1585
|
icon: i.icon
|
|
1572
1586
|
}), l = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0, d = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0;
|
|
1573
|
-
return
|
|
1587
|
+
return C(ha, {
|
|
1574
1588
|
ref: o,
|
|
1575
1589
|
...a,
|
|
1576
1590
|
primaryAction: l,
|
|
@@ -1578,28 +1592,28 @@ const br = q(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
|
|
|
1578
1592
|
children: [(t == null ? void 0 : t.variant) === "promote" && s(t), (r == null ? void 0 : r.variant) === "promote" && s(r)]
|
|
1579
1593
|
});
|
|
1580
1594
|
});
|
|
1581
|
-
|
|
1582
|
-
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: s = !0, side: l = "right", align: d = "center", icon: i =
|
|
1583
|
-
const [O,
|
|
1584
|
-
t(
|
|
1585
|
-
}, L = async (
|
|
1586
|
-
if (
|
|
1587
|
-
y(
|
|
1595
|
+
gr.displayName = "UpsellingBanner";
|
|
1596
|
+
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: s = !0, side: l = "right", align: d = "center", icon: i = va, mediaUrl: m, title: c, description: f, width: h = "300px", trackVisibility: u, actions: g, onClick: N, hideLabel: A = !1 }) {
|
|
1597
|
+
const [O, x] = D(!1), [b, w] = D(null), [P, y] = D(null), v = (S) => {
|
|
1598
|
+
t(S), N && N();
|
|
1599
|
+
}, L = async (S) => {
|
|
1600
|
+
if (S.type === "upsell") {
|
|
1601
|
+
y(S);
|
|
1588
1602
|
try {
|
|
1589
|
-
await
|
|
1603
|
+
await S.onClick(), S.showConfirmation && (x(!0), w("success"));
|
|
1590
1604
|
} catch {
|
|
1591
|
-
|
|
1605
|
+
x(!0), w("error");
|
|
1592
1606
|
}
|
|
1593
1607
|
}
|
|
1594
1608
|
}, T = () => {
|
|
1595
|
-
w(null),
|
|
1596
|
-
},
|
|
1597
|
-
...
|
|
1598
|
-
onClick: () => L(
|
|
1599
|
-
} :
|
|
1600
|
-
return
|
|
1601
|
-
children: [
|
|
1602
|
-
open:
|
|
1609
|
+
w(null), x(!1), y(null), t(!1);
|
|
1610
|
+
}, _ = e && !O, p = g == null ? void 0 : g.map((S) => S.type === "upsell" ? {
|
|
1611
|
+
...S,
|
|
1612
|
+
onClick: () => L(S)
|
|
1613
|
+
} : S);
|
|
1614
|
+
return C(ae, {
|
|
1615
|
+
children: [C(Me, {
|
|
1616
|
+
open: _,
|
|
1603
1617
|
onOpenChange: v,
|
|
1604
1618
|
children: [n(Re, {
|
|
1605
1619
|
asChild: !0,
|
|
@@ -1609,13 +1623,13 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1609
1623
|
size: o,
|
|
1610
1624
|
icon: s ? i : void 0,
|
|
1611
1625
|
onClick: () => t(e),
|
|
1612
|
-
hideLabel:
|
|
1626
|
+
hideLabel: A
|
|
1613
1627
|
})
|
|
1614
1628
|
}), n(ze, {
|
|
1615
1629
|
side: l,
|
|
1616
1630
|
align: d,
|
|
1617
1631
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
1618
|
-
children: n(
|
|
1632
|
+
children: n(br, {
|
|
1619
1633
|
mediaUrl: m,
|
|
1620
1634
|
title: c,
|
|
1621
1635
|
description: f,
|
|
@@ -1627,56 +1641,56 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1627
1641
|
showConfirmation: !1
|
|
1628
1642
|
})
|
|
1629
1643
|
})]
|
|
1630
|
-
}), (
|
|
1644
|
+
}), (P == null ? void 0 : P.type) === "upsell" && P.showConfirmation && b && n(He, {
|
|
1631
1645
|
open: !0,
|
|
1632
1646
|
onClose: T,
|
|
1633
1647
|
success: b === "success",
|
|
1634
|
-
errorMessage:
|
|
1635
|
-
successMessage:
|
|
1636
|
-
nextSteps:
|
|
1637
|
-
closeLabel:
|
|
1648
|
+
errorMessage: P.errorMessage,
|
|
1649
|
+
successMessage: P.successMessage,
|
|
1650
|
+
nextSteps: P.nextSteps,
|
|
1651
|
+
closeLabel: P.closeLabel,
|
|
1638
1652
|
portalContainer: null
|
|
1639
1653
|
})]
|
|
1640
1654
|
});
|
|
1641
1655
|
}
|
|
1642
|
-
const
|
|
1656
|
+
const xr = Da(null), wr = ({ children: e, fullScreen: t = !0 }) => {
|
|
1643
1657
|
const r = pe(null), [a, o] = D(r.current);
|
|
1644
|
-
return
|
|
1658
|
+
return Aa(() => {
|
|
1645
1659
|
o(r.current);
|
|
1646
|
-
}, []), n(
|
|
1660
|
+
}, []), n(xr.Provider, {
|
|
1647
1661
|
value: {
|
|
1648
1662
|
element: a
|
|
1649
1663
|
},
|
|
1650
1664
|
children: n("div", {
|
|
1651
1665
|
ref: r,
|
|
1652
1666
|
id: "f0-layout",
|
|
1653
|
-
className:
|
|
1667
|
+
className: E({
|
|
1654
1668
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": t
|
|
1655
1669
|
}),
|
|
1656
1670
|
children: e
|
|
1657
1671
|
})
|
|
1658
1672
|
});
|
|
1659
|
-
},
|
|
1673
|
+
}, Pr = ({ children: e }) => n(Na, {
|
|
1660
1674
|
reducedMotion: "user",
|
|
1661
1675
|
children: e
|
|
1662
|
-
}),
|
|
1663
|
-
children: n(
|
|
1676
|
+
}), Xr = ({ children: e, layout: t, link: r, privacyModeInitiallyEnabled: a, image: o, i18n: s, l10n: l, isDev: d = !1, dataCollectionStorageHandler: i, showExperimentalWarnings: m = !1 }) => n(Pr, {
|
|
1677
|
+
children: n(ya, {
|
|
1664
1678
|
isDev: d,
|
|
1665
1679
|
showExperimentalWarnings: m,
|
|
1666
|
-
children: n(
|
|
1680
|
+
children: n(ba, {
|
|
1667
1681
|
...l,
|
|
1668
|
-
children: n(
|
|
1682
|
+
children: n(ga, {
|
|
1669
1683
|
...s,
|
|
1670
|
-
children: n(
|
|
1684
|
+
children: n(xa, {
|
|
1671
1685
|
...r,
|
|
1672
|
-
children: n(
|
|
1686
|
+
children: n(wr, {
|
|
1673
1687
|
...t,
|
|
1674
|
-
children: n(
|
|
1675
|
-
children: n(
|
|
1688
|
+
children: n(wa, {
|
|
1689
|
+
children: n(Pa, {
|
|
1676
1690
|
initiallyEnabled: a,
|
|
1677
|
-
children: n(
|
|
1691
|
+
children: n(Sa, {
|
|
1678
1692
|
...o,
|
|
1679
|
-
children: n(
|
|
1693
|
+
children: n(Ca, {
|
|
1680
1694
|
handler: i,
|
|
1681
1695
|
children: e
|
|
1682
1696
|
})
|
|
@@ -1688,7 +1702,7 @@ const gr = La(null), xr = ({ children: e, fullScreen: t = !0 }) => {
|
|
|
1688
1702
|
})
|
|
1689
1703
|
})
|
|
1690
1704
|
})
|
|
1691
|
-
}), De = (e) => `datacollection-${e}`,
|
|
1705
|
+
}), De = (e) => `datacollection-${e}`, Zr = {
|
|
1692
1706
|
get: async (e) => JSON.parse(
|
|
1693
1707
|
localStorage.getItem(De(e)) ?? "{}"
|
|
1694
1708
|
),
|
|
@@ -1697,93 +1711,93 @@ const gr = La(null), xr = ({ children: e, fullScreen: t = !0 }) => {
|
|
|
1697
1711
|
}
|
|
1698
1712
|
};
|
|
1699
1713
|
export {
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1714
|
+
Lr as AreaChart,
|
|
1715
|
+
tn as Await,
|
|
1716
|
+
Dr as BarChart,
|
|
1717
|
+
Tr as CategoryBarChart,
|
|
1718
|
+
jr as ComboChart,
|
|
1719
|
+
an as DndProvider,
|
|
1720
|
+
rn as EmojiImage,
|
|
1721
|
+
nn as F0Avatar,
|
|
1722
|
+
on as F0AvatarAlert,
|
|
1723
|
+
sn as F0AvatarCompany,
|
|
1724
|
+
ln as F0AvatarDate,
|
|
1725
|
+
cn as F0AvatarEmoji,
|
|
1726
|
+
un as F0AvatarFile,
|
|
1727
|
+
dn as F0AvatarIcon,
|
|
1728
|
+
fn as F0AvatarList,
|
|
1715
1729
|
Ye as F0AvatarModule,
|
|
1716
|
-
|
|
1717
|
-
|
|
1730
|
+
pn as F0AvatarPerson,
|
|
1731
|
+
mn as F0AvatarTeam,
|
|
1718
1732
|
M as F0Button,
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1733
|
+
hn as F0ButtonDropdown,
|
|
1734
|
+
vn as F0ButtonToggle,
|
|
1735
|
+
yn as F0Card,
|
|
1736
|
+
bn as F0Checkbox,
|
|
1737
|
+
Wr as F0ChipList,
|
|
1724
1738
|
Gr as F0DatePicker,
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1739
|
+
gn as F0EventCatcherProvider,
|
|
1740
|
+
ia as F0Icon,
|
|
1741
|
+
xn as F0Link,
|
|
1742
|
+
Xr as F0Provider,
|
|
1743
|
+
wn as F0TagAlert,
|
|
1744
|
+
Pn as F0TagBalance,
|
|
1745
|
+
Sn as F0TagCompany,
|
|
1746
|
+
Cn as F0TagDot,
|
|
1747
|
+
Nn as F0TagList,
|
|
1748
|
+
An as F0TagPerson,
|
|
1735
1749
|
na as F0TagRaw,
|
|
1736
|
-
|
|
1750
|
+
oa as F0TagStatus,
|
|
1737
1751
|
On as F0TagTeam,
|
|
1738
1752
|
kn as GROUP_ID_SYMBOL,
|
|
1739
|
-
|
|
1740
|
-
|
|
1753
|
+
Ur as HomeLayout,
|
|
1754
|
+
Fr as LineChart,
|
|
1741
1755
|
Ln as OneFilterPicker,
|
|
1742
|
-
|
|
1743
|
-
|
|
1756
|
+
Ir as PieChart,
|
|
1757
|
+
Pa as PrivacyModeProvider,
|
|
1744
1758
|
dt as ProductBlankslate,
|
|
1745
1759
|
Dn as ProductCard,
|
|
1746
1760
|
Hr as ProductModal,
|
|
1747
|
-
|
|
1748
|
-
|
|
1761
|
+
br as ProductWidget,
|
|
1762
|
+
Er as ProgressBarChart,
|
|
1749
1763
|
Vr as StandardLayout,
|
|
1750
1764
|
Tn as TagCounter,
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1765
|
+
Yr as TwoColumnLayout,
|
|
1766
|
+
He as UpsellRequestResponseDialog,
|
|
1767
|
+
gr as UpsellingBanner,
|
|
1768
|
+
Je as UpsellingButton,
|
|
1755
1769
|
Jr as UpsellingPopover,
|
|
1756
|
-
|
|
1757
|
-
|
|
1770
|
+
_r as VerticalBarChart,
|
|
1771
|
+
Or as avatarVariants,
|
|
1758
1772
|
Fn as buildTranslations,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1773
|
+
Rr as buttonDropdownSizes,
|
|
1774
|
+
Mr as buttonDropdownVariants,
|
|
1775
|
+
Br as buttonSizes,
|
|
1776
|
+
zr as buttonToggleSizes,
|
|
1777
|
+
$r as buttonVariants,
|
|
1764
1778
|
In as createAtlaskitDriver,
|
|
1765
1779
|
_n as createDataSourceDefinition,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1780
|
+
Zr as dataCollectionLocalStorageHandler,
|
|
1781
|
+
qr as datepickerSizes,
|
|
1782
|
+
Ar as defaultTranslations,
|
|
1783
|
+
qe as experimental,
|
|
1770
1784
|
En as getAnimationVariants,
|
|
1771
1785
|
jn as getDataSourcePaginationType,
|
|
1772
1786
|
$n as getEmojiLabel,
|
|
1773
1787
|
Bn as isInfiniteScrollPagination,
|
|
1774
1788
|
Mn as isPageBasedPagination,
|
|
1775
|
-
|
|
1789
|
+
Kr as linkVariants,
|
|
1776
1790
|
Rn as modules,
|
|
1777
1791
|
zn as predefinedPresets,
|
|
1778
1792
|
Kn as tagDotColors,
|
|
1779
1793
|
Wn as useData,
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1794
|
+
qn as useDataSource,
|
|
1795
|
+
Gn as useDndEvents,
|
|
1796
|
+
Vn as useDraggable,
|
|
1783
1797
|
Yn as useDroppableList,
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1798
|
+
Un as useEmojiConfetti,
|
|
1799
|
+
Hn as useGroups,
|
|
1800
|
+
Jn as usePrivacyMode,
|
|
1787
1801
|
Xn as useReducedMotion,
|
|
1788
1802
|
Zn as useSelectable,
|
|
1789
1803
|
Qn as useXRay
|