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