@factorialco/f0-react 1.241.2 → 1.242.1

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