@factorialco/f0-react 1.201.5 → 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-XMhoGznF.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-XMhoGznF.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: {
@@ -187,28 +188,32 @@ const Pa = {
187
188
  scrollToBottom: "Scroll to bottom",
188
189
  welcome: "Ask or create with One",
189
190
  initialMessage: "How can I help you today?"
191
+ },
192
+ select: {
193
+ noResults: "No results found",
194
+ loadingMore: "Loading..."
190
195
  }
191
- }, Sa = v(
196
+ }, Fa = g(
192
197
  {
193
198
  name: "Link",
194
199
  type: "info"
195
200
  },
196
201
  me
197
- ), Fa = ["person", "team", "company", "file"];
198
- 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(
199
204
  (a, s) => {
200
205
  const {
201
206
  __scopeProgress: r,
202
207
  value: t = null,
203
208
  max: l,
204
- getValueLabel: c = ta,
209
+ getValueLabel: d = la,
205
210
  ...n
206
211
  } = a;
207
- (l || l === 0) && !z(l) && console.error(la(`${l}`, "Progress"));
208
- const i = z(l) ? l : j;
209
- t !== null && !q(t, i) && console.error(oa(`${t}`, "Progress"));
210
- const o = q(t, i) ? t : null, f = T(o) ? c(o, i) : void 0;
211
- 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(
212
217
  H.div,
213
218
  {
214
219
  "aria-valuemax": i,
@@ -228,7 +233,7 @@ var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardR
228
233
  re.displayName = _;
229
234
  var te = "ProgressIndicator", le = E.forwardRef(
230
235
  (a, s) => {
231
- const { __scopeProgress: r, ...t } = a, l = ra(te, r);
236
+ const { __scopeProgress: r, ...t } = a, l = ta(te, r);
232
237
  return /* @__PURE__ */ e(
233
238
  H.div,
234
239
  {
@@ -242,7 +247,7 @@ var te = "ProgressIndicator", le = E.forwardRef(
242
247
  }
243
248
  );
244
249
  le.displayName = te;
245
- function ta(a, s) {
250
+ function la(a, s) {
246
251
  return `${Math.round(a / s * 100)}%`;
247
252
  }
248
253
  function oe(a, s) {
@@ -251,16 +256,16 @@ function oe(a, s) {
251
256
  function T(a) {
252
257
  return typeof a == "number";
253
258
  }
254
- function z(a) {
259
+ function V(a) {
255
260
  return T(a) && !isNaN(a) && a > 0;
256
261
  }
257
262
  function q(a, s) {
258
263
  return T(a) && !isNaN(a) && a <= s && a >= 0;
259
264
  }
260
- function la(a, s) {
265
+ function oa(a, s) {
261
266
  return `Invalid prop \`max\` of value \`${a}\` supplied to \`${s}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
262
267
  }
263
- function oa(a, s) {
268
+ function na(a, s) {
264
269
  return `Invalid prop \`value\` of value \`${a}\` supplied to \`${s}\`. The \`value\` prop must be:
265
270
  - a positive number
266
271
  - less than the value passed to \`max\` (or ${j} if no \`max\` prop is set)
@@ -268,7 +273,7 @@ function oa(a, s) {
268
273
 
269
274
  Defaulting to \`null\`.`;
270
275
  }
271
- var ne = re, na = le;
276
+ var ne = re, ia = le;
272
277
  const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */ e(
273
278
  ne,
274
279
  {
@@ -279,7 +284,7 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
279
284
  ),
280
285
  ...r,
281
286
  children: /* @__PURE__ */ e(
282
- na,
287
+ ia,
283
288
  {
284
289
  className: "h-full w-full flex-1 transition-all",
285
290
  style: {
@@ -291,13 +296,13 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
291
296
  }
292
297
  ));
293
298
  ie.displayName = ne.displayName;
294
- const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
295
- const c = t || be(0), n = a / s * 100;
296
- 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: [
297
302
  /* @__PURE__ */ e("div", { className: "flex-grow", children: /* @__PURE__ */ e(
298
303
  ie,
299
304
  {
300
- color: c,
305
+ color: d,
301
306
  value: n,
302
307
  className: "w-full",
303
308
  "aria-valuemin": 0,
@@ -308,63 +313,63 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
308
313
  ) }),
309
314
  r && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sm font-medium", children: r })
310
315
  ] });
311
- }, ca = ge(ia), Da = v(
316
+ }, ca = ve(da), Ma = g(
312
317
  {
313
318
  name: "AreaChart",
314
319
  type: "info"
315
320
  },
316
321
  xe
317
- ), Ma = v(
322
+ ), Ta = g(
318
323
  {
319
324
  name: "BarChart",
320
325
  type: "info"
321
326
  },
322
327
  Ce
323
- ), Ta = v(
328
+ ), Ba = g(
324
329
  {
325
330
  name: "CategoryBarChart",
326
331
  type: "info"
327
332
  },
328
333
  ye
329
- ), Ba = v(
334
+ ), Ia = g(
330
335
  {
331
336
  name: "LineChart",
332
337
  type: "info"
333
338
  },
334
339
  we
335
- ), Ia = v(
340
+ ), Ra = g(
336
341
  {
337
342
  name: "PieChart",
338
343
  type: "info"
339
344
  },
340
345
  Ne
341
- ), Ra = v(
346
+ ), Oa = g(
342
347
  {
343
348
  name: "VerticalBarChart",
344
349
  type: "info"
345
350
  },
346
351
  Le
347
- ), Oa = v(
352
+ ), $a = g(
348
353
  {
349
354
  name: "ProgressBarChart",
350
355
  type: "info"
351
356
  },
352
357
  ca
353
358
  ), O = ({ count: a, list: s }) => {
354
- const [r, t] = g(!1), l = /* @__PURE__ */ e(M, { label: `+${a}` });
355
- 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: [
356
361
  /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
357
362
  /* @__PURE__ */ e(
358
363
  W,
359
364
  {
360
365
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
361
366
  align: "end",
362
- children: /* @__PURE__ */ d(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col", children: [
363
- 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(
364
369
  "div",
365
370
  {
366
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",
367
- children: /* @__PURE__ */ e(M, { ...c })
372
+ children: /* @__PURE__ */ e(M, { ...d })
368
373
  },
369
374
  n
370
375
  )),
@@ -381,7 +386,7 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
381
386
  ] }) : l;
382
387
  };
383
388
  O.displayName = "ChipCounter";
384
- const ce = ({
389
+ const de = ({
385
390
  chips: a,
386
391
  max: s = 4,
387
392
  remainingCount: r,
@@ -406,45 +411,45 @@ const ce = ({
406
411
  className: "flex-1"
407
412
  }
408
413
  );
409
- const l = a.slice(0, s), c = a.slice(s), n = r ?? a.length - s, i = n > 0;
410
- 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: [
411
416
  l.map((o, f) => /* @__PURE__ */ e(M, { ...o }, f)),
412
417
  i && /* @__PURE__ */ e(
413
418
  O,
414
419
  {
415
420
  count: n,
416
- list: r ? void 0 : c
421
+ list: r ? void 0 : d
417
422
  }
418
423
  )
419
424
  ] });
420
425
  };
421
- ce.displayName = "F0ChipList";
422
- const $a = Se(
426
+ de.displayName = "F0ChipList";
427
+ const Ea = Se(
423
428
  "F0ChipList",
424
- ce
425
- ), da = {
429
+ de
430
+ ), ua = {
426
431
  xs: 1,
427
432
  sm: 2,
428
433
  md: 2,
429
434
  lg: 2
430
- }, ua = B(function({ widgets: s, children: r }, t) {
435
+ }, fa = B(function({ widgets: s, children: r }, t) {
431
436
  const l = ae(null);
432
- Qe(t, () => l.current);
433
- 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));
434
- return /* @__PURE__ */ e(X, { layout: "home", children: /* @__PURE__ */ d("div", { ref: l, className: "@container", children: [
435
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden", children: [
436
- /* @__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 }),
437
442
  /* @__PURE__ */ e("main", { children: r })
438
443
  ] }),
439
- /* @__PURE__ */ d("div", { className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid", children: [
440
- /* @__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) }),
441
446
  /* @__PURE__ */ e("main", { className: "col-span-2", children: r }),
442
- /* @__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) })
443
448
  ] })
444
449
  ] }) });
445
- }), fa = B(
450
+ }), ha = B(
446
451
  function({ children: s, sideContent: r, mainColumnPosition: t = "left" }, l) {
447
- 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(
448
453
  "div",
449
454
  {
450
455
  className: b(
@@ -468,42 +473,42 @@ const $a = Se(
468
473
  }
469
474
  ) });
470
475
  }
471
- ), 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({
472
477
  base: "relative flex min-h-full w-full flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
473
478
  variants: {
474
479
  variant: {
475
480
  narrow: "max-w-screen-lg"
476
481
  }
477
482
  }
478
- }), 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(
479
484
  "section",
480
485
  {
481
486
  ref: l,
482
487
  className: b("relative flex-1 overflow-auto", r),
483
488
  ...t,
484
- children: /* @__PURE__ */ e("div", { className: b(ha({ variant: s })), children: a })
489
+ children: /* @__PURE__ */ e("div", { className: b(pa({ variant: s })), children: a })
485
490
  }
486
491
  ) }));
487
- de.displayName = "StandardLayout";
488
- const Ea = v(
492
+ ce.displayName = "StandardLayout";
493
+ const _a = g(
489
494
  {
490
495
  name: "StandardLayout",
491
496
  type: "layout"
492
497
  },
493
- de
494
- ), _a = v(
498
+ ce
499
+ ), ja = g(
495
500
  {
496
501
  name: "TwoColumnLayout",
497
502
  type: "layout"
498
503
  },
499
- fa
500
- ), ja = v(
504
+ ha
505
+ ), za = g(
501
506
  {
502
507
  name: "HomeLayout",
503
508
  type: "layout"
504
509
  },
505
- ua
506
- ), 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: [
507
512
  /* @__PURE__ */ e(Te, { icon: Be, size: "md", className: "text-f1-icon-positive" }),
508
513
  /* @__PURE__ */ e("span", { children: a })
509
514
  ] }), ue = B(
@@ -513,10 +518,10 @@ const Ea = v(
513
518
  benefits: r,
514
519
  actions: t,
515
520
  withShadow: l = !0,
516
- module: c,
521
+ module: d,
517
522
  moduleName: n,
518
523
  tag: i
519
- }, o) => /* @__PURE__ */ d(
524
+ }, o) => /* @__PURE__ */ c(
520
525
  "div",
521
526
  {
522
527
  ref: o,
@@ -533,17 +538,17 @@ const Ea = v(
533
538
  className: "h-full w-full rounded-lg object-cover"
534
539
  }
535
540
  ) }),
536
- /* @__PURE__ */ d("div", { className: "flex flex-col justify-center gap-8 px-8 py-5", children: [
537
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-5", children: [
538
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
539
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center gap-2", children: [
540
- 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 }),
541
546
  n && /* @__PURE__ */ e("p", { className: "text-base font-medium text-f1-foreground", children: n })
542
547
  ] }),
543
548
  i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(Me, { icon: i.icon, text: i.label }) }),
544
549
  /* @__PURE__ */ e("h2", { className: "font-bold text-xl text-f1-foreground", children: a })
545
550
  ] }),
546
- /* @__PURE__ */ e(pa, { benefits: r })
551
+ /* @__PURE__ */ e(ma, { benefits: r })
547
552
  ] }),
548
553
  t && /* @__PURE__ */ e("div", { className: "flex gap-3", children: t })
549
554
  ] })
@@ -558,21 +563,21 @@ function va({
558
563
  title: r,
559
564
  children: t,
560
565
  module: l,
561
- portalContainer: c
566
+ portalContainer: d
562
567
  }) {
563
- const [n, i] = g(a);
568
+ const [n, i] = v(a);
564
569
  return se(() => {
565
570
  i(a);
566
571
  }, [a]), /* @__PURE__ */ e(Ie, { open: n, onOpenChange: (f) => {
567
572
  i(f), f || s();
568
- }, modal: !0, children: /* @__PURE__ */ d(
573
+ }, modal: !0, children: /* @__PURE__ */ c(
569
574
  Re,
570
575
  {
571
576
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
572
- container: c,
577
+ container: d,
573
578
  children: [
574
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
575
- /* @__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: [
576
581
  l && /* @__PURE__ */ e(K, { module: l, size: "lg" }),
577
582
  r
578
583
  ] }),
@@ -587,7 +592,7 @@ function va({
587
592
  }
588
593
  )
589
594
  ] }),
590
- /* @__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: [
591
596
  t,
592
597
  /* @__PURE__ */ e(
593
598
  J,
@@ -607,7 +612,7 @@ function Va({
607
612
  title: r,
608
613
  image: t,
609
614
  benefits: l,
610
- errorMessage: c,
615
+ errorMessage: d,
611
616
  successMessage: n,
612
617
  loadingState: i,
613
618
  nextSteps: o,
@@ -619,7 +624,7 @@ function Va({
619
624
  portalContainer: x,
620
625
  tag: S
621
626
  }) {
622
- 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 () => {
623
628
  if (h != null && h.onClick) {
624
629
  p(!0);
625
630
  try {
@@ -633,7 +638,7 @@ function Va({
633
638
  }, D = () => {
634
639
  F(!1), s == null || s();
635
640
  }, R = P;
636
- return /* @__PURE__ */ d($, { children: [
641
+ return /* @__PURE__ */ c($, { children: [
637
642
  /* @__PURE__ */ e(
638
643
  va,
639
644
  {
@@ -650,7 +655,7 @@ function Va({
650
655
  benefits: l,
651
656
  withShadow: !1,
652
657
  tag: S,
653
- actions: /* @__PURE__ */ d("div", { className: "flex gap-3", children: [
658
+ actions: /* @__PURE__ */ c("div", { className: "flex gap-3", children: [
654
659
  h && /* @__PURE__ */ e(
655
660
  w,
656
661
  {
@@ -685,7 +690,7 @@ function Va({
685
690
  D(), y(null);
686
691
  },
687
692
  success: C === "success",
688
- errorMessage: c,
693
+ errorMessage: d,
689
694
  successMessage: n,
690
695
  nextSteps: o,
691
696
  closeLabel: f,
@@ -694,26 +699,26 @@ function Va({
694
699
  )
695
700
  ] });
696
701
  }
697
- function ga({
702
+ function ba({
698
703
  mediaUrl: a,
699
704
  title: s,
700
705
  description: r,
701
706
  onClose: t,
702
707
  dismissible: l,
703
- width: c,
708
+ width: d,
704
709
  trackVisibility: n,
705
710
  actions: i,
706
711
  showConfirmation: o = !0
707
712
  }) {
708
- const [f, h] = g(!1), N = () => {
713
+ const [f, h] = v(!1), N = () => {
709
714
  h(!0), t && t();
710
715
  };
711
716
  se(() => {
712
717
  n && n(!f);
713
718
  }, [n, f]);
714
719
  const L = a == null ? void 0 : a.includes(".mp4");
715
- return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */ d(Ee, { style: { width: c }, className: "relative bg-f1-background p-1", children: [
716
- /* @__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: [
717
722
  l && /* @__PURE__ */ e("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ e(
718
723
  w,
719
724
  {
@@ -725,7 +730,7 @@ function ga({
725
730
  label: "Close"
726
731
  }
727
732
  ) }),
728
- /* @__PURE__ */ d("div", { children: [
733
+ /* @__PURE__ */ c("div", { children: [
729
734
  /* @__PURE__ */ e("div", { children: a && (L ? /* @__PURE__ */ e(
730
735
  "video",
731
736
  {
@@ -744,9 +749,9 @@ function ga({
744
749
  className: "h-full w-full rounded-md"
745
750
  }
746
751
  )) }),
747
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-[2px] p-3", children: [
748
- /* @__PURE__ */ e(V, { className: "text-lg font-medium", children: s }),
749
- /* @__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 })
750
755
  ] })
751
756
  ] })
752
757
  ] }),
@@ -777,9 +782,9 @@ function ga({
777
782
  ) })
778
783
  ] }) });
779
784
  }
780
- const ba = B(
785
+ const xa = B(
781
786
  function({ primaryAction: s, secondaryAction: r, ...t }, l) {
782
- const c = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
787
+ const d = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
783
788
  ee,
784
789
  {
785
790
  label: o.label,
@@ -805,32 +810,32 @@ const ba = B(
805
810
  icon: o.icon
806
811
  }
807
812
  ), n = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0, i = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0;
808
- return /* @__PURE__ */ d(
809
- Ve,
813
+ return /* @__PURE__ */ c(
814
+ ze,
810
815
  {
811
816
  ref: l,
812
817
  ...t,
813
818
  primaryAction: n,
814
819
  secondaryAction: i,
815
820
  children: [
816
- (s == null ? void 0 : s.variant) === "promote" && c(s),
817
- (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)
818
823
  ]
819
824
  }
820
825
  );
821
826
  }
822
827
  );
823
- ba.displayName = "UpsellingBanner";
824
- function za({
828
+ xa.displayName = "UpsellingBanner";
829
+ function qa({
825
830
  isOpen: a,
826
831
  setIsOpen: s,
827
832
  label: r,
828
833
  variant: t = "promote",
829
834
  size: l = "md",
830
- showIcon: c = !0,
835
+ showIcon: d = !0,
831
836
  side: n = "right",
832
837
  align: i = "center",
833
- icon: o = ze,
838
+ icon: o = Ve,
834
839
  mediaUrl: f,
835
840
  title: h,
836
841
  description: N,
@@ -840,7 +845,7 @@ function za({
840
845
  onClick: S,
841
846
  hideLabel: I = !1
842
847
  }) {
843
- 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) => {
844
849
  s(m), S && S();
845
850
  }, R = async (m) => {
846
851
  if (m.type === "upsell") {
@@ -857,15 +862,15 @@ function za({
857
862
  ...m,
858
863
  onClick: () => R(m)
859
864
  } : m);
860
- return /* @__PURE__ */ d($, { children: [
861
- /* @__PURE__ */ d(U, { open: he, onOpenChange: D, children: [
865
+ return /* @__PURE__ */ c($, { children: [
866
+ /* @__PURE__ */ c(U, { open: he, onOpenChange: D, children: [
862
867
  /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
863
868
  w,
864
869
  {
865
870
  variant: t,
866
871
  label: r,
867
872
  size: l,
868
- icon: c ? o : void 0,
873
+ icon: d ? o : void 0,
869
874
  onClick: () => s(a),
870
875
  hideLabel: I
871
876
  }
@@ -877,7 +882,7 @@ function za({
877
882
  align: i,
878
883
  className: "w-fit border-none bg-transparent p-2 shadow-none",
879
884
  children: /* @__PURE__ */ e(
880
- ga,
885
+ ba,
881
886
  {
882
887
  mediaUrl: f,
883
888
  title: h,
@@ -908,13 +913,13 @@ function za({
908
913
  )
909
914
  ] });
910
915
  }
911
- const xa = ea(
916
+ const Ca = aa(
912
917
  null
913
- ), Ca = ({ children: a, fullScreen: s = !0 }) => {
914
- const r = ae(null), [t, l] = g(r.current);
915
- return Xe(() => {
918
+ ), ya = ({ children: a, fullScreen: s = !0 }) => {
919
+ const r = ae(null), [t, l] = v(r.current);
920
+ return Ke(() => {
916
921
  l(r.current);
917
- }, []), /* @__PURE__ */ e(xa.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
922
+ }, []), /* @__PURE__ */ e(Ca.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
918
923
  "div",
919
924
  {
920
925
  ref: r,
@@ -925,109 +930,116 @@ const xa = ea(
925
930
  children: a
926
931
  }
927
932
  ) });
928
- }, ya = ({
933
+ }, wa = ({
929
934
  children: a
930
- }) => /* @__PURE__ */ e(Je, { reducedMotion: "user", children: a }), qa = ({
935
+ }) => /* @__PURE__ */ e(Xe, { reducedMotion: "user", children: a }), Aa = ({
931
936
  children: a,
932
937
  layout: s,
933
938
  link: r,
934
939
  privacyModeInitiallyEnabled: t,
935
940
  image: l,
936
- i18n: c,
941
+ i18n: d,
937
942
  l10n: n,
938
943
  isDev: i = !1,
939
- showExperimentalWarnings: o = !1
940
- }) => /* @__PURE__ */ e(ya, { children: /* @__PURE__ */ e(
944
+ dataCollectionStorageHandler: o,
945
+ showExperimentalWarnings: f = !1
946
+ }) => /* @__PURE__ */ e(wa, { children: /* @__PURE__ */ e(
941
947
  qe,
942
948
  {
943
949
  isDev: i,
944
- showExperimentalWarnings: o,
945
- 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(
946
952
  We,
947
953
  {
948
954
  initiallyEnabled: t,
949
- 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
+ ) })
950
962
  }
951
963
  ) }) }) }) }) })
952
964
  }
953
965
  ) });
954
966
  export {
955
- Da as AreaChart,
956
- Ua as Await,
957
- Ma as BarChart,
967
+ Ma as AreaChart,
968
+ Ga as Await,
969
+ Ta as BarChart,
958
970
  w as Button,
959
- Ta as CategoryBarChart,
960
- Ga as CopyButton,
961
- Wa as DndProvider,
962
- Ya as EmojiImage,
963
- Ja as F0Avatar,
964
- Xa as F0AvatarAlert,
965
- Ka as F0AvatarCompany,
966
- Qa as F0AvatarDate,
967
- Za as F0AvatarEmoji,
968
- es as F0AvatarFile,
969
- as as F0AvatarIcon,
970
- 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,
971
983
  K as F0AvatarModule,
972
- rs as F0AvatarPerson,
973
- ts as F0AvatarTeam,
974
- ls as F0Card,
975
- os as F0Checkbox,
976
- $a as F0ChipList,
977
- 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,
978
990
  Te as F0Icon,
979
- is as F0TagAlert,
991
+ Aa as F0Provider,
992
+ ds as F0TagAlert,
980
993
  cs as F0TagBalance,
981
- ds as F0TagCompany,
982
- us as F0TagDot,
983
- fs as F0TagList,
984
- hs as F0TagPerson,
994
+ us as F0TagCompany,
995
+ fs as F0TagDot,
996
+ hs as F0TagList,
997
+ ps as F0TagPerson,
985
998
  Me as F0TagRaw,
986
- ps as F0TagStatus,
987
- ms as F0TagTeam,
988
- qa as FactorialOneProvider,
999
+ ms as F0TagStatus,
1000
+ gs as F0TagTeam,
989
1001
  vs as GROUP_ID_SYMBOL,
990
- ja as HomeLayout,
991
- Ba as LineChart,
992
- Sa as Link,
993
- gs as OneFilterPicker,
994
- Ia as PieChart,
1002
+ za as HomeLayout,
1003
+ Ia as LineChart,
1004
+ Fa as Link,
1005
+ bs as OneFilterPicker,
1006
+ Ra as PieChart,
995
1007
  We as PrivacyModeProvider,
996
1008
  ue as ProductBlankslate,
997
- bs as ProductCard,
1009
+ xs as ProductCard,
998
1010
  Va as ProductModal,
999
- ga as ProductWidget,
1000
- Oa as ProgressBarChart,
1001
- Ea as StandardLayout,
1002
- xs as TagCounter,
1003
- _a as TwoColumnLayout,
1011
+ ba as ProductWidget,
1012
+ $a as ProgressBarChart,
1013
+ _a as StandardLayout,
1014
+ Cs as TagCounter,
1015
+ ja as TwoColumnLayout,
1004
1016
  Z as UpsellRequestResponseDialog,
1005
- ba as UpsellingBanner,
1017
+ xa as UpsellingBanner,
1006
1018
  ee as UpsellingButton,
1007
- za as UpsellingPopover,
1008
- Ra as VerticalBarChart,
1009
- Fa as avatarVariants,
1010
- Cs as buildTranslations,
1011
- ys as createAtlaskitDriver,
1012
- ws as createDataSourceDefinition,
1013
- 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,
1014
1026
  Se as experimental,
1015
- Ns as getAnimationVariants,
1016
- Ls as getDataSourcePaginationType,
1017
- Ps as getEmojiLabel,
1018
- Ss as isInfiniteScrollPagination,
1019
- Fs as isPageBasedPagination,
1020
- ks as modules,
1021
- Ds as tagDotColors,
1022
- Ms as useData,
1023
- Ts as useDataSource,
1024
- Bs as useDndEvents,
1025
- Is as useDraggable,
1026
- Rs as useDroppableList,
1027
- Os as useEmojiConfetti,
1028
- $s as useGroups,
1029
- Es as usePrivacyMode,
1030
- _s as useReducedMotion,
1031
- 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,
1032
1044
  Vs as useXRay
1033
1045
  };