@factorialco/f0-react 1.201.6 → 1.201.7

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 v, L as me, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as V, H as je, I as ee, J as Ve, K as ze, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe } from "./hooks-DmNAjFCl.js";
2
- import { ay as Ua, _ as Ga, aA as Wa, aJ as Ya, $ as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a8 as rs, a9 as ts, aa as ls, ab as os, aF as ns, ad as is, ae as cs, af as ds, ag as us, aj as fs, ak as hs, al as ps, am as ms, ao as vs, ac as gs, an as bs, ai as xs, aG as Cs, az as ys, at as ws, aw as Ns, as as Ls, aK as Ps, ar as Ss, aq as Fs, a7 as ks, ah as Ds, ap as Ms, au as Ts, aB as Bs, aC as Is, aD as Rs, aL as Os, av as $s, aE as Es, aI as _s, ax as js, aH as Vs } from "./hooks-DmNAjFCl.js";
3
- import { jsx as e, jsxs as d, Fragment as $ } from "react/jsx-runtime";
1
+ import { C as g, L as me, c as ge, P as H, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe, _ as Ke } from "./hooks-Bg3-9LHc.js";
2
+ import { az as Ga, $ as Wa, aB as Ya, aK as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a7 as rs, a9 as ts, aa as ls, ab as os, ac as ns, aG as is, ae as ds, af as cs, ag as us, ah as fs, ak as hs, al as ps, am as ms, an as gs, ap as vs, ad as bs, ao as xs, aj as Cs, aH as ys, aA as ws, au as Ns, ax as Ls, at as Ps, aL as Ss, as as Fs, ar as ks, a8 as Ds, ai as Ms, aq as Ts, av as Bs, aC as Is, aD as Rs, aE as Os, aM as $s, aw as Es, aF as _s, aJ as js, ay as zs, aI as Vs } from "./hooks-Bg3-9LHc.js";
3
+ import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
- import Ke, { useState as g, forwardRef as B, useRef as ae, useImperativeHandle as Qe, Children as Ze, useEffect as se, createContext as ea } from "react";
6
- const Pa = {
5
+ import Qe, { useState as v, forwardRef as B, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as se, createContext as aa } from "react";
6
+ const Sa = {
7
7
  approvals: {
8
8
  history: "Approval history",
9
9
  statuses: {
@@ -78,7 +78,8 @@ const Pa = {
78
78
  kanban: "Kanban view",
79
79
  pagination: {
80
80
  of: "of"
81
- }
81
+ },
82
+ settings: "{%visualizationName} settings"
82
83
  },
83
84
  itemsCount: "items",
84
85
  emptyStates: {
@@ -192,27 +193,27 @@ const Pa = {
192
193
  noResults: "No results found",
193
194
  loadingMore: "Loading..."
194
195
  }
195
- }, Sa = v(
196
+ }, Fa = g(
196
197
  {
197
198
  name: "Link",
198
199
  type: "info"
199
200
  },
200
201
  me
201
- ), Fa = ["person", "team", "company", "file"];
202
- var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardRef(
202
+ ), ka = ["person", "team", "company", "file"];
203
+ var _ = "Progress", j = 100, [sa, Da] = ge(_), [ra, ta] = sa(_), re = E.forwardRef(
203
204
  (a, s) => {
204
205
  const {
205
206
  __scopeProgress: r,
206
207
  value: t = null,
207
208
  max: l,
208
- getValueLabel: c = ta,
209
+ getValueLabel: d = la,
209
210
  ...n
210
211
  } = a;
211
- (l || l === 0) && !z(l) && console.error(la(`${l}`, "Progress"));
212
- const i = z(l) ? l : j;
213
- t !== null && !q(t, i) && console.error(oa(`${t}`, "Progress"));
214
- const o = q(t, i) ? t : null, f = T(o) ? c(o, i) : void 0;
215
- return /* @__PURE__ */ e(sa, { scope: r, value: o, max: i, children: /* @__PURE__ */ e(
212
+ (l || l === 0) && !V(l) && console.error(oa(`${l}`, "Progress"));
213
+ const i = V(l) ? l : j;
214
+ t !== null && !q(t, i) && console.error(na(`${t}`, "Progress"));
215
+ const o = q(t, i) ? t : null, f = T(o) ? d(o, i) : void 0;
216
+ return /* @__PURE__ */ e(ra, { scope: r, value: o, max: i, children: /* @__PURE__ */ e(
216
217
  H.div,
217
218
  {
218
219
  "aria-valuemax": i,
@@ -232,7 +233,7 @@ var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardR
232
233
  re.displayName = _;
233
234
  var te = "ProgressIndicator", le = E.forwardRef(
234
235
  (a, s) => {
235
- const { __scopeProgress: r, ...t } = a, l = ra(te, r);
236
+ const { __scopeProgress: r, ...t } = a, l = ta(te, r);
236
237
  return /* @__PURE__ */ e(
237
238
  H.div,
238
239
  {
@@ -246,7 +247,7 @@ var te = "ProgressIndicator", le = E.forwardRef(
246
247
  }
247
248
  );
248
249
  le.displayName = te;
249
- function ta(a, s) {
250
+ function la(a, s) {
250
251
  return `${Math.round(a / s * 100)}%`;
251
252
  }
252
253
  function oe(a, s) {
@@ -255,16 +256,16 @@ function oe(a, s) {
255
256
  function T(a) {
256
257
  return typeof a == "number";
257
258
  }
258
- function z(a) {
259
+ function V(a) {
259
260
  return T(a) && !isNaN(a) && a > 0;
260
261
  }
261
262
  function q(a, s) {
262
263
  return T(a) && !isNaN(a) && a <= s && a >= 0;
263
264
  }
264
- function la(a, s) {
265
+ function oa(a, s) {
265
266
  return `Invalid prop \`max\` of value \`${a}\` supplied to \`${s}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
266
267
  }
267
- function oa(a, s) {
268
+ function na(a, s) {
268
269
  return `Invalid prop \`value\` of value \`${a}\` supplied to \`${s}\`. The \`value\` prop must be:
269
270
  - a positive number
270
271
  - less than the value passed to \`max\` (or ${j} if no \`max\` prop is set)
@@ -272,7 +273,7 @@ function oa(a, s) {
272
273
 
273
274
  Defaulting to \`null\`.`;
274
275
  }
275
- var ne = re, na = le;
276
+ var ne = re, ia = le;
276
277
  const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */ e(
277
278
  ne,
278
279
  {
@@ -283,7 +284,7 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
283
284
  ),
284
285
  ...r,
285
286
  children: /* @__PURE__ */ e(
286
- na,
287
+ ia,
287
288
  {
288
289
  className: "h-full w-full flex-1 transition-all",
289
290
  style: {
@@ -295,13 +296,13 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
295
296
  }
296
297
  ));
297
298
  ie.displayName = ne.displayName;
298
- const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
299
- const c = t || be(0), n = a / s * 100;
300
- return /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", "aria-live": "polite", children: [
299
+ const da = ({ value: a, max: s = 100, label: r, color: t }, l) => {
300
+ const d = t || be(0), n = a / s * 100;
301
+ return /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", "aria-live": "polite", children: [
301
302
  /* @__PURE__ */ e("div", { className: "flex-grow", children: /* @__PURE__ */ e(
302
303
  ie,
303
304
  {
304
- color: c,
305
+ color: d,
305
306
  value: n,
306
307
  className: "w-full",
307
308
  "aria-valuemin": 0,
@@ -312,63 +313,63 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
312
313
  ) }),
313
314
  r && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sm font-medium", children: r })
314
315
  ] });
315
- }, ca = ge(ia), Da = v(
316
+ }, ca = ve(da), Ma = g(
316
317
  {
317
318
  name: "AreaChart",
318
319
  type: "info"
319
320
  },
320
321
  xe
321
- ), Ma = v(
322
+ ), Ta = g(
322
323
  {
323
324
  name: "BarChart",
324
325
  type: "info"
325
326
  },
326
327
  Ce
327
- ), Ta = v(
328
+ ), Ba = g(
328
329
  {
329
330
  name: "CategoryBarChart",
330
331
  type: "info"
331
332
  },
332
333
  ye
333
- ), Ba = v(
334
+ ), Ia = g(
334
335
  {
335
336
  name: "LineChart",
336
337
  type: "info"
337
338
  },
338
339
  we
339
- ), Ia = v(
340
+ ), Ra = g(
340
341
  {
341
342
  name: "PieChart",
342
343
  type: "info"
343
344
  },
344
345
  Ne
345
- ), Ra = v(
346
+ ), Oa = g(
346
347
  {
347
348
  name: "VerticalBarChart",
348
349
  type: "info"
349
350
  },
350
351
  Le
351
- ), Oa = v(
352
+ ), $a = g(
352
353
  {
353
354
  name: "ProgressBarChart",
354
355
  type: "info"
355
356
  },
356
357
  ca
357
358
  ), O = ({ count: a, list: s }) => {
358
- const [r, t] = g(!1), l = /* @__PURE__ */ e(M, { label: `+${a}` });
359
- return s != null && s.length ? /* @__PURE__ */ d(U, { open: r, onOpenChange: t, children: [
359
+ const [r, t] = v(!1), l = /* @__PURE__ */ e(M, { label: `+${a}` });
360
+ return s != null && s.length ? /* @__PURE__ */ c(U, { open: r, onOpenChange: t, children: [
360
361
  /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
361
362
  /* @__PURE__ */ e(
362
363
  W,
363
364
  {
364
365
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
365
366
  align: "end",
366
- children: /* @__PURE__ */ d(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col", children: [
367
- s.map((c, n) => /* @__PURE__ */ e(
367
+ children: /* @__PURE__ */ c(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col", children: [
368
+ s.map((d, n) => /* @__PURE__ */ e(
368
369
  "div",
369
370
  {
370
371
  className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
371
- children: /* @__PURE__ */ e(M, { ...c })
372
+ children: /* @__PURE__ */ e(M, { ...d })
372
373
  },
373
374
  n
374
375
  )),
@@ -385,7 +386,7 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
385
386
  ] }) : l;
386
387
  };
387
388
  O.displayName = "ChipCounter";
388
- const ce = ({
389
+ const de = ({
389
390
  chips: a,
390
391
  max: s = 4,
391
392
  remainingCount: r,
@@ -410,45 +411,45 @@ const ce = ({
410
411
  className: "flex-1"
411
412
  }
412
413
  );
413
- const l = a.slice(0, s), c = a.slice(s), n = r ?? a.length - s, i = n > 0;
414
- return /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
414
+ const l = a.slice(0, s), d = a.slice(s), n = r ?? a.length - s, i = n > 0;
415
+ return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
415
416
  l.map((o, f) => /* @__PURE__ */ e(M, { ...o }, f)),
416
417
  i && /* @__PURE__ */ e(
417
418
  O,
418
419
  {
419
420
  count: n,
420
- list: r ? void 0 : c
421
+ list: r ? void 0 : d
421
422
  }
422
423
  )
423
424
  ] });
424
425
  };
425
- ce.displayName = "F0ChipList";
426
- const $a = Se(
426
+ de.displayName = "F0ChipList";
427
+ const Ea = Se(
427
428
  "F0ChipList",
428
- ce
429
- ), da = {
429
+ de
430
+ ), ua = {
430
431
  xs: 1,
431
432
  sm: 2,
432
433
  md: 2,
433
434
  lg: 2
434
- }, ua = B(function({ widgets: s, children: r }, t) {
435
+ }, fa = B(function({ widgets: s, children: r }, t) {
435
436
  const l = ae(null);
436
- Qe(t, () => l.current);
437
- const c = Ze.toArray(s).filter((n) => !!n).map((n, i) => /* @__PURE__ */ e("div", { className: "h-full @5xl:h-auto [&>div]:h-full", children: n }, i));
438
- return /* @__PURE__ */ e(X, { layout: "home", children: /* @__PURE__ */ d("div", { ref: l, className: "@container", children: [
439
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden", children: [
440
- /* @__PURE__ */ e(ke, { columns: da, showArrows: !1, children: c }),
437
+ Ze(t, () => l.current);
438
+ const d = ea.toArray(s).filter((n) => !!n).map((n, i) => /* @__PURE__ */ e("div", { className: "h-full @5xl:h-auto [&>div]:h-full", children: n }, i));
439
+ return /* @__PURE__ */ e(X, { layout: "home", children: /* @__PURE__ */ c("div", { ref: l, className: "@container", children: [
440
+ /* @__PURE__ */ c("div", { className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden", children: [
441
+ /* @__PURE__ */ e(ke, { columns: ua, showArrows: !1, children: d }),
441
442
  /* @__PURE__ */ e("main", { children: r })
442
443
  ] }),
443
- /* @__PURE__ */ d("div", { className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid", children: [
444
- /* @__PURE__ */ e("div", { className: "col-span-3 flex flex-row gap-5 *:flex-1", children: c.slice(0, 3) }),
444
+ /* @__PURE__ */ c("div", { className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid", children: [
445
+ /* @__PURE__ */ e("div", { className: "col-span-3 flex flex-row gap-5 *:flex-1", children: d.slice(0, 3) }),
445
446
  /* @__PURE__ */ e("main", { className: "col-span-2", children: r }),
446
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-5", children: c.slice(3) })
447
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-5", children: d.slice(3) })
447
448
  ] })
448
449
  ] }) });
449
- }), fa = B(
450
+ }), ha = B(
450
451
  function({ children: s, sideContent: r, mainColumnPosition: t = "left" }, l) {
451
- return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */ d(
452
+ return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */ c(
452
453
  "div",
453
454
  {
454
455
  className: b(
@@ -472,42 +473,42 @@ const $a = Se(
472
473
  }
473
474
  ) });
474
475
  }
475
- ), A = ({ children: a }) => /* @__PURE__ */ e("aside", { className: "py-5 pl-2 pr-4 sm:basis-1/4 sm:pb-6", children: a }), ha = De({
476
+ ), A = ({ children: a }) => /* @__PURE__ */ e("aside", { className: "py-5 pl-2 pr-4 sm:basis-1/4 sm:pb-6", children: a }), pa = De({
476
477
  base: "relative flex min-h-full w-full flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
477
478
  variants: {
478
479
  variant: {
479
480
  narrow: "max-w-screen-lg"
480
481
  }
481
482
  }
482
- }), de = Ke.forwardRef(({ children: a, variant: s, className: r, ...t }, l) => /* @__PURE__ */ e(X, { layout: "standard", children: /* @__PURE__ */ e(
483
+ }), ce = Qe.forwardRef(({ children: a, variant: s, className: r, ...t }, l) => /* @__PURE__ */ e(X, { layout: "standard", children: /* @__PURE__ */ e(
483
484
  "section",
484
485
  {
485
486
  ref: l,
486
487
  className: b("relative flex-1 overflow-auto", r),
487
488
  ...t,
488
- children: /* @__PURE__ */ e("div", { className: b(ha({ variant: s })), children: a })
489
+ children: /* @__PURE__ */ e("div", { className: b(pa({ variant: s })), children: a })
489
490
  }
490
491
  ) }));
491
- de.displayName = "StandardLayout";
492
- const Ea = v(
492
+ ce.displayName = "StandardLayout";
493
+ const _a = g(
493
494
  {
494
495
  name: "StandardLayout",
495
496
  type: "layout"
496
497
  },
497
- de
498
- ), _a = v(
498
+ ce
499
+ ), ja = g(
499
500
  {
500
501
  name: "TwoColumnLayout",
501
502
  type: "layout"
502
503
  },
503
- fa
504
- ), ja = v(
504
+ ha
505
+ ), za = g(
505
506
  {
506
507
  name: "HomeLayout",
507
508
  type: "layout"
508
509
  },
509
- ua
510
- ), pa = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(ma, { text: s }, r)) }), ma = ({ text: a }) => /* @__PURE__ */ d("div", { className: "flex flex-row items-start gap-2", children: [
510
+ fa
511
+ ), ma = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(ga, { text: s }, r)) }), ga = ({ text: a }) => /* @__PURE__ */ c("div", { className: "flex flex-row items-start gap-2", children: [
511
512
  /* @__PURE__ */ e(Te, { icon: Be, size: "md", className: "text-f1-icon-positive" }),
512
513
  /* @__PURE__ */ e("span", { children: a })
513
514
  ] }), ue = B(
@@ -517,10 +518,10 @@ const Ea = v(
517
518
  benefits: r,
518
519
  actions: t,
519
520
  withShadow: l = !0,
520
- module: c,
521
+ module: d,
521
522
  moduleName: n,
522
523
  tag: i
523
- }, o) => /* @__PURE__ */ d(
524
+ }, o) => /* @__PURE__ */ c(
524
525
  "div",
525
526
  {
526
527
  ref: o,
@@ -537,17 +538,17 @@ const Ea = v(
537
538
  className: "h-full w-full rounded-lg object-cover"
538
539
  }
539
540
  ) }),
540
- /* @__PURE__ */ d("div", { className: "flex flex-col justify-center gap-8 px-8 py-5", children: [
541
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-5", children: [
542
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
543
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center gap-2", children: [
544
- c && /* @__PURE__ */ e(K, { module: c }),
541
+ /* @__PURE__ */ c("div", { className: "flex flex-col justify-center gap-8 px-8 py-5", children: [
542
+ /* @__PURE__ */ c("div", { className: "flex flex-col gap-5", children: [
543
+ /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
544
+ /* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-2", children: [
545
+ d && /* @__PURE__ */ e(K, { module: d }),
545
546
  n && /* @__PURE__ */ e("p", { className: "text-base font-medium text-f1-foreground", children: n })
546
547
  ] }),
547
548
  i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(Me, { icon: i.icon, text: i.label }) }),
548
549
  /* @__PURE__ */ e("h2", { className: "font-bold text-xl text-f1-foreground", children: a })
549
550
  ] }),
550
- /* @__PURE__ */ e(pa, { benefits: r })
551
+ /* @__PURE__ */ e(ma, { benefits: r })
551
552
  ] }),
552
553
  t && /* @__PURE__ */ e("div", { className: "flex gap-3", children: t })
553
554
  ] })
@@ -562,21 +563,21 @@ function va({
562
563
  title: r,
563
564
  children: t,
564
565
  module: l,
565
- portalContainer: c
566
+ portalContainer: d
566
567
  }) {
567
- const [n, i] = g(a);
568
+ const [n, i] = v(a);
568
569
  return se(() => {
569
570
  i(a);
570
571
  }, [a]), /* @__PURE__ */ e(Ie, { open: n, onOpenChange: (f) => {
571
572
  i(f), f || s();
572
- }, modal: !0, children: /* @__PURE__ */ d(
573
+ }, modal: !0, children: /* @__PURE__ */ c(
573
574
  Re,
574
575
  {
575
576
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
576
- container: c,
577
+ container: d,
577
578
  children: [
578
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
579
- /* @__PURE__ */ d(Oe, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
579
+ /* @__PURE__ */ c("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
580
+ /* @__PURE__ */ c(Oe, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
580
581
  l && /* @__PURE__ */ e(K, { module: l, size: "lg" }),
581
582
  r
582
583
  ] }),
@@ -591,7 +592,7 @@ function va({
591
592
  }
592
593
  )
593
594
  ] }),
594
- /* @__PURE__ */ d(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col", children: [
595
+ /* @__PURE__ */ c(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col", children: [
595
596
  t,
596
597
  /* @__PURE__ */ e(
597
598
  J,
@@ -611,7 +612,7 @@ function Va({
611
612
  title: r,
612
613
  image: t,
613
614
  benefits: l,
614
- errorMessage: c,
615
+ errorMessage: d,
615
616
  successMessage: n,
616
617
  loadingState: i,
617
618
  nextSteps: o,
@@ -623,7 +624,7 @@ function Va({
623
624
  portalContainer: x,
624
625
  tag: S
625
626
  }) {
626
- const [I, F] = g(a), [C, y] = g(null), [P, p] = g(!1), k = async () => {
627
+ const [I, F] = v(a), [C, y] = v(null), [P, p] = v(!1), k = async () => {
627
628
  if (h != null && h.onClick) {
628
629
  p(!0);
629
630
  try {
@@ -637,7 +638,7 @@ function Va({
637
638
  }, D = () => {
638
639
  F(!1), s == null || s();
639
640
  }, R = P;
640
- return /* @__PURE__ */ d($, { children: [
641
+ return /* @__PURE__ */ c($, { children: [
641
642
  /* @__PURE__ */ e(
642
643
  va,
643
644
  {
@@ -654,7 +655,7 @@ function Va({
654
655
  benefits: l,
655
656
  withShadow: !1,
656
657
  tag: S,
657
- actions: /* @__PURE__ */ d("div", { className: "flex gap-3", children: [
658
+ actions: /* @__PURE__ */ c("div", { className: "flex gap-3", children: [
658
659
  h && /* @__PURE__ */ e(
659
660
  w,
660
661
  {
@@ -689,7 +690,7 @@ function Va({
689
690
  D(), y(null);
690
691
  },
691
692
  success: C === "success",
692
- errorMessage: c,
693
+ errorMessage: d,
693
694
  successMessage: n,
694
695
  nextSteps: o,
695
696
  closeLabel: f,
@@ -698,26 +699,26 @@ function Va({
698
699
  )
699
700
  ] });
700
701
  }
701
- function ga({
702
+ function ba({
702
703
  mediaUrl: a,
703
704
  title: s,
704
705
  description: r,
705
706
  onClose: t,
706
707
  dismissible: l,
707
- width: c,
708
+ width: d,
708
709
  trackVisibility: n,
709
710
  actions: i,
710
711
  showConfirmation: o = !0
711
712
  }) {
712
- const [f, h] = g(!1), N = () => {
713
+ const [f, h] = v(!1), N = () => {
713
714
  h(!0), t && t();
714
715
  };
715
716
  se(() => {
716
717
  n && n(!f);
717
718
  }, [n, f]);
718
719
  const L = a == null ? void 0 : a.includes(".mp4");
719
- return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */ d(Ee, { style: { width: c }, className: "relative bg-f1-background p-1", children: [
720
- /* @__PURE__ */ d(_e, { children: [
720
+ return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */ c(Ee, { style: { width: d }, className: "relative bg-f1-background p-1", children: [
721
+ /* @__PURE__ */ c(_e, { children: [
721
722
  l && /* @__PURE__ */ e("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ e(
722
723
  w,
723
724
  {
@@ -729,7 +730,7 @@ function ga({
729
730
  label: "Close"
730
731
  }
731
732
  ) }),
732
- /* @__PURE__ */ d("div", { children: [
733
+ /* @__PURE__ */ c("div", { children: [
733
734
  /* @__PURE__ */ e("div", { children: a && (L ? /* @__PURE__ */ e(
734
735
  "video",
735
736
  {
@@ -748,9 +749,9 @@ function ga({
748
749
  className: "h-full w-full rounded-md"
749
750
  }
750
751
  )) }),
751
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-[2px] p-3", children: [
752
- /* @__PURE__ */ e(V, { className: "text-lg font-medium", children: s }),
753
- /* @__PURE__ */ e(V, { className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary", children: r })
752
+ /* @__PURE__ */ c("div", { className: "flex flex-col gap-[2px] p-3", children: [
753
+ /* @__PURE__ */ e(z, { className: "text-lg font-medium", children: s }),
754
+ /* @__PURE__ */ e(z, { className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary", children: r })
754
755
  ] })
755
756
  ] })
756
757
  ] }),
@@ -781,9 +782,9 @@ function ga({
781
782
  ) })
782
783
  ] }) });
783
784
  }
784
- const ba = B(
785
+ const xa = B(
785
786
  function({ primaryAction: s, secondaryAction: r, ...t }, l) {
786
- const c = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
787
+ const d = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
787
788
  ee,
788
789
  {
789
790
  label: o.label,
@@ -809,32 +810,32 @@ const ba = B(
809
810
  icon: o.icon
810
811
  }
811
812
  ), n = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0, i = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0;
812
- return /* @__PURE__ */ d(
813
- Ve,
813
+ return /* @__PURE__ */ c(
814
+ ze,
814
815
  {
815
816
  ref: l,
816
817
  ...t,
817
818
  primaryAction: n,
818
819
  secondaryAction: i,
819
820
  children: [
820
- (s == null ? void 0 : s.variant) === "promote" && c(s),
821
- (r == null ? void 0 : r.variant) === "promote" && c(r)
821
+ (s == null ? void 0 : s.variant) === "promote" && d(s),
822
+ (r == null ? void 0 : r.variant) === "promote" && d(r)
822
823
  ]
823
824
  }
824
825
  );
825
826
  }
826
827
  );
827
- ba.displayName = "UpsellingBanner";
828
- function za({
828
+ xa.displayName = "UpsellingBanner";
829
+ function qa({
829
830
  isOpen: a,
830
831
  setIsOpen: s,
831
832
  label: r,
832
833
  variant: t = "promote",
833
834
  size: l = "md",
834
- showIcon: c = !0,
835
+ showIcon: d = !0,
835
836
  side: n = "right",
836
837
  align: i = "center",
837
- icon: o = ze,
838
+ icon: o = Ve,
838
839
  mediaUrl: f,
839
840
  title: h,
840
841
  description: N,
@@ -844,7 +845,7 @@ function za({
844
845
  onClick: S,
845
846
  hideLabel: I = !1
846
847
  }) {
847
- const [F, C] = g(!1), [y, P] = g(null), [p, k] = g(null), D = (m) => {
848
+ const [F, C] = v(!1), [y, P] = v(null), [p, k] = v(null), D = (m) => {
848
849
  s(m), S && S();
849
850
  }, R = async (m) => {
850
851
  if (m.type === "upsell") {
@@ -861,15 +862,15 @@ function za({
861
862
  ...m,
862
863
  onClick: () => R(m)
863
864
  } : m);
864
- return /* @__PURE__ */ d($, { children: [
865
- /* @__PURE__ */ d(U, { open: he, onOpenChange: D, children: [
865
+ return /* @__PURE__ */ c($, { children: [
866
+ /* @__PURE__ */ c(U, { open: he, onOpenChange: D, children: [
866
867
  /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
867
868
  w,
868
869
  {
869
870
  variant: t,
870
871
  label: r,
871
872
  size: l,
872
- icon: c ? o : void 0,
873
+ icon: d ? o : void 0,
873
874
  onClick: () => s(a),
874
875
  hideLabel: I
875
876
  }
@@ -881,7 +882,7 @@ function za({
881
882
  align: i,
882
883
  className: "w-fit border-none bg-transparent p-2 shadow-none",
883
884
  children: /* @__PURE__ */ e(
884
- ga,
885
+ ba,
885
886
  {
886
887
  mediaUrl: f,
887
888
  title: h,
@@ -912,13 +913,13 @@ function za({
912
913
  )
913
914
  ] });
914
915
  }
915
- const xa = ea(
916
+ const Ca = aa(
916
917
  null
917
- ), Ca = ({ children: a, fullScreen: s = !0 }) => {
918
- const r = ae(null), [t, l] = g(r.current);
919
- return Xe(() => {
918
+ ), ya = ({ children: a, fullScreen: s = !0 }) => {
919
+ const r = ae(null), [t, l] = v(r.current);
920
+ return Ke(() => {
920
921
  l(r.current);
921
- }, []), /* @__PURE__ */ e(xa.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
922
+ }, []), /* @__PURE__ */ e(Ca.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
922
923
  "div",
923
924
  {
924
925
  ref: r,
@@ -929,109 +930,116 @@ const xa = ea(
929
930
  children: a
930
931
  }
931
932
  ) });
932
- }, ya = ({
933
+ }, wa = ({
933
934
  children: a
934
- }) => /* @__PURE__ */ e(Je, { reducedMotion: "user", children: a }), qa = ({
935
+ }) => /* @__PURE__ */ e(Xe, { reducedMotion: "user", children: a }), Aa = ({
935
936
  children: a,
936
937
  layout: s,
937
938
  link: r,
938
939
  privacyModeInitiallyEnabled: t,
939
940
  image: l,
940
- i18n: c,
941
+ i18n: d,
941
942
  l10n: n,
942
943
  isDev: i = !1,
943
- showExperimentalWarnings: o = !1
944
- }) => /* @__PURE__ */ e(ya, { children: /* @__PURE__ */ e(
944
+ dataCollectionStorageHandler: o,
945
+ showExperimentalWarnings: f = !1
946
+ }) => /* @__PURE__ */ e(wa, { children: /* @__PURE__ */ e(
945
947
  qe,
946
948
  {
947
949
  isDev: i,
948
- showExperimentalWarnings: o,
949
- children: /* @__PURE__ */ e(Ae, { ...n, children: /* @__PURE__ */ e(He, { ...c, children: /* @__PURE__ */ e(Ue, { ...r, children: /* @__PURE__ */ e(Ca, { ...s, children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
950
+ showExperimentalWarnings: f,
951
+ children: /* @__PURE__ */ e(Ae, { ...n, children: /* @__PURE__ */ e(He, { ...d, children: /* @__PURE__ */ e(Ue, { ...r, children: /* @__PURE__ */ e(ya, { ...s, children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
950
952
  We,
951
953
  {
952
954
  initiallyEnabled: t,
953
- children: /* @__PURE__ */ e(Ye, { ...l, children: a })
955
+ children: /* @__PURE__ */ e(Ye, { ...l, children: /* @__PURE__ */ e(
956
+ Je,
957
+ {
958
+ handler: o,
959
+ children: a
960
+ }
961
+ ) })
954
962
  }
955
963
  ) }) }) }) }) })
956
964
  }
957
965
  ) });
958
966
  export {
959
- Da as AreaChart,
960
- Ua as Await,
961
- Ma as BarChart,
967
+ Ma as AreaChart,
968
+ Ga as Await,
969
+ Ta as BarChart,
962
970
  w as Button,
963
- Ta as CategoryBarChart,
964
- Ga as CopyButton,
965
- Wa as DndProvider,
966
- Ya as EmojiImage,
967
- Ja as F0Avatar,
968
- Xa as F0AvatarAlert,
969
- Ka as F0AvatarCompany,
970
- Qa as F0AvatarDate,
971
- Za as F0AvatarEmoji,
972
- es as F0AvatarFile,
973
- as as F0AvatarIcon,
974
- ss as F0AvatarList,
971
+ Ba as CategoryBarChart,
972
+ Wa as CopyButton,
973
+ Ya as DndProvider,
974
+ Ja as EmojiImage,
975
+ Xa as F0Avatar,
976
+ Ka as F0AvatarAlert,
977
+ Qa as F0AvatarCompany,
978
+ Za as F0AvatarDate,
979
+ es as F0AvatarEmoji,
980
+ as as F0AvatarFile,
981
+ ss as F0AvatarIcon,
982
+ rs as F0AvatarList,
975
983
  K as F0AvatarModule,
976
- rs as F0AvatarPerson,
977
- ts as F0AvatarTeam,
978
- ls as F0Card,
979
- os as F0Checkbox,
980
- $a as F0ChipList,
981
- ns as F0EventCatcherProvider,
984
+ ts as F0AvatarPerson,
985
+ ls as F0AvatarTeam,
986
+ os as F0Card,
987
+ ns as F0Checkbox,
988
+ Ea as F0ChipList,
989
+ is as F0EventCatcherProvider,
982
990
  Te as F0Icon,
983
- is as F0TagAlert,
991
+ Aa as F0Provider,
992
+ ds as F0TagAlert,
984
993
  cs as F0TagBalance,
985
- ds as F0TagCompany,
986
- us as F0TagDot,
987
- fs as F0TagList,
988
- hs as F0TagPerson,
994
+ us as F0TagCompany,
995
+ fs as F0TagDot,
996
+ hs as F0TagList,
997
+ ps as F0TagPerson,
989
998
  Me as F0TagRaw,
990
- ps as F0TagStatus,
991
- ms as F0TagTeam,
992
- qa as FactorialOneProvider,
999
+ ms as F0TagStatus,
1000
+ gs as F0TagTeam,
993
1001
  vs as GROUP_ID_SYMBOL,
994
- ja as HomeLayout,
995
- Ba as LineChart,
996
- Sa as Link,
997
- gs as OneFilterPicker,
998
- Ia as PieChart,
1002
+ za as HomeLayout,
1003
+ Ia as LineChart,
1004
+ Fa as Link,
1005
+ bs as OneFilterPicker,
1006
+ Ra as PieChart,
999
1007
  We as PrivacyModeProvider,
1000
1008
  ue as ProductBlankslate,
1001
- bs as ProductCard,
1009
+ xs as ProductCard,
1002
1010
  Va as ProductModal,
1003
- ga as ProductWidget,
1004
- Oa as ProgressBarChart,
1005
- Ea as StandardLayout,
1006
- xs as TagCounter,
1007
- _a as TwoColumnLayout,
1011
+ ba as ProductWidget,
1012
+ $a as ProgressBarChart,
1013
+ _a as StandardLayout,
1014
+ Cs as TagCounter,
1015
+ ja as TwoColumnLayout,
1008
1016
  Z as UpsellRequestResponseDialog,
1009
- ba as UpsellingBanner,
1017
+ xa as UpsellingBanner,
1010
1018
  ee as UpsellingButton,
1011
- za as UpsellingPopover,
1012
- Ra as VerticalBarChart,
1013
- Fa as avatarVariants,
1014
- Cs as buildTranslations,
1015
- ys as createAtlaskitDriver,
1016
- ws as createDataSourceDefinition,
1017
- Pa as defaultTranslations,
1019
+ qa as UpsellingPopover,
1020
+ Oa as VerticalBarChart,
1021
+ ka as avatarVariants,
1022
+ ys as buildTranslations,
1023
+ ws as createAtlaskitDriver,
1024
+ Ns as createDataSourceDefinition,
1025
+ Sa as defaultTranslations,
1018
1026
  Se as experimental,
1019
- Ns as getAnimationVariants,
1020
- Ls as getDataSourcePaginationType,
1021
- Ps as getEmojiLabel,
1022
- Ss as isInfiniteScrollPagination,
1023
- Fs as isPageBasedPagination,
1024
- ks as modules,
1025
- Ds as tagDotColors,
1026
- Ms as useData,
1027
- Ts as useDataSource,
1028
- Bs as useDndEvents,
1029
- Is as useDraggable,
1030
- Rs as useDroppableList,
1031
- Os as useEmojiConfetti,
1032
- $s as useGroups,
1033
- Es as usePrivacyMode,
1034
- _s as useReducedMotion,
1035
- js as useSelectable,
1027
+ Ls as getAnimationVariants,
1028
+ Ps as getDataSourcePaginationType,
1029
+ Ss as getEmojiLabel,
1030
+ Fs as isInfiniteScrollPagination,
1031
+ ks as isPageBasedPagination,
1032
+ Ds as modules,
1033
+ Ms as tagDotColors,
1034
+ Ts as useData,
1035
+ Bs as useDataSource,
1036
+ Is as useDndEvents,
1037
+ Rs as useDraggable,
1038
+ Os as useDroppableList,
1039
+ $s as useEmojiConfetti,
1040
+ Es as useGroups,
1041
+ _s as usePrivacyMode,
1042
+ js as useReducedMotion,
1043
+ zs as useSelectable,
1036
1044
  Vs as useXRay
1037
1045
  };