@factorialco/f0-react 1.231.0 → 1.233.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/f0.d.ts CHANGED
@@ -3381,8 +3381,8 @@ declare global {
3381
3381
 
3382
3382
  declare module "@tiptap/core" {
3383
3383
  interface Commands<ReturnType> {
3384
- aiBlock: {
3385
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3384
+ liveCompanion: {
3385
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3386
3386
  };
3387
3387
  }
3388
3388
  }
@@ -3390,8 +3390,8 @@ declare module "@tiptap/core" {
3390
3390
 
3391
3391
  declare module "@tiptap/core" {
3392
3392
  interface Commands<ReturnType> {
3393
- liveCompanion: {
3394
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3393
+ aiBlock: {
3394
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3395
3395
  };
3396
3396
  }
3397
3397
  }
package/dist/f0.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as g, L as pe, c as ge, P as W, 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 Pe, h as M, i as G, j as H, k as Le, l as U, S as J, m as Y, 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 Ie, D as Re, u as Be, 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 Ae, 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-ibWgov6e.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 Dr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-ibWgov6e.js";
1
+ import { C as g, L as ge, c as ve, P as G, a as b, f as be, g as z, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as M, i as H, j as U, k as Le, l as J, S as Y, m as X, n as Se, O as Fe, o as K, p as ke, q as De, F as Q, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Z, y as w, U as ee, z as Ee, E as _e, G as V, H as je, I as ae, J as ze, K as Ve, M as Ae, 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-DQfZZiUS.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 Dr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-DQfZZiUS.js";
3
3
  import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
- import Qe, { useState as v, forwardRef as I, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as re, createContext as aa } from "react";
5
+ import Qe, { useState as v, forwardRef as I, useRef as re, useImperativeHandle as Ze, Children as ea, useEffect as se, createContext as aa } from "react";
6
6
  const Fa = {
7
7
  approvals: {
8
8
  history: "Approval history",
@@ -206,36 +206,36 @@ const Fa = {
206
206
  }, ka = g({
207
207
  name: "Link",
208
208
  type: "info"
209
- }, pe), Da = [
209
+ }, ge), Da = [
210
210
  "person",
211
211
  "team",
212
212
  "company",
213
213
  "file",
214
214
  "flag"
215
215
  ];
216
- var _ = "Progress", j = 100, [ra, Ma] = ge(_), [sa, ta] = ra(_), se = E.forwardRef(
216
+ var _ = "Progress", j = 100, [ra, Ma] = ve(_), [sa, ta] = ra(_), te = E.forwardRef(
217
217
  (a, r) => {
218
218
  const {
219
219
  __scopeProgress: s,
220
- value: o = null,
220
+ value: l = null,
221
221
  max: t,
222
222
  getValueLabel: i = la,
223
223
  ...n
224
224
  } = a;
225
- (t || t === 0) && !V(t) && console.error(oa(`${t}`, "Progress"));
226
- const d = V(t) ? t : j;
227
- o !== null && !A(o, d) && console.error(na(`${o}`, "Progress"));
228
- const l = A(o, d) ? o : null, f = T(l) ? i(l, d) : void 0;
229
- return /* @__PURE__ */ e(sa, { scope: s, value: l, max: d, children: /* @__PURE__ */ e(
230
- W.div,
225
+ (t || t === 0) && !A(t) && console.error(oa(`${t}`, "Progress"));
226
+ const d = A(t) ? t : j;
227
+ l !== null && !q(l, d) && console.error(na(`${l}`, "Progress"));
228
+ const o = q(l, d) ? l : null, f = T(o) ? i(o, d) : void 0;
229
+ return /* @__PURE__ */ e(sa, { scope: s, value: o, max: d, children: /* @__PURE__ */ e(
230
+ G.div,
231
231
  {
232
232
  "aria-valuemax": d,
233
233
  "aria-valuemin": 0,
234
- "aria-valuenow": T(l) ? l : void 0,
234
+ "aria-valuenow": T(o) ? o : void 0,
235
235
  "aria-valuetext": f,
236
236
  role: "progressbar",
237
- "data-state": oe(l, d),
238
- "data-value": l ?? void 0,
237
+ "data-state": ne(o, d),
238
+ "data-value": o ?? void 0,
239
239
  "data-max": d,
240
240
  ...n,
241
241
  ref: r
@@ -243,36 +243,36 @@ var _ = "Progress", j = 100, [ra, Ma] = ge(_), [sa, ta] = ra(_), se = E.forwardR
243
243
  ) });
244
244
  }
245
245
  );
246
- se.displayName = _;
247
- var te = "ProgressIndicator", le = E.forwardRef(
246
+ te.displayName = _;
247
+ var le = "ProgressIndicator", oe = E.forwardRef(
248
248
  (a, r) => {
249
- const { __scopeProgress: s, ...o } = a, t = ta(te, s);
249
+ const { __scopeProgress: s, ...l } = a, t = ta(le, s);
250
250
  return /* @__PURE__ */ e(
251
- W.div,
251
+ G.div,
252
252
  {
253
- "data-state": oe(t.value, t.max),
253
+ "data-state": ne(t.value, t.max),
254
254
  "data-value": t.value ?? void 0,
255
255
  "data-max": t.max,
256
- ...o,
256
+ ...l,
257
257
  ref: r
258
258
  }
259
259
  );
260
260
  }
261
261
  );
262
- le.displayName = te;
262
+ oe.displayName = le;
263
263
  function la(a, r) {
264
264
  return `${Math.round(a / r * 100)}%`;
265
265
  }
266
- function oe(a, r) {
266
+ function ne(a, r) {
267
267
  return a == null ? "indeterminate" : a === r ? "complete" : "loading";
268
268
  }
269
269
  function T(a) {
270
270
  return typeof a == "number";
271
271
  }
272
- function V(a) {
272
+ function A(a) {
273
273
  return T(a) && !isNaN(a) && a > 0;
274
274
  }
275
- function A(a, r) {
275
+ function q(a, r) {
276
276
  return T(a) && !isNaN(a) && a <= r && a >= 0;
277
277
  }
278
278
  function oa(a, r) {
@@ -286,9 +286,9 @@ function na(a, r) {
286
286
 
287
287
  Defaulting to \`null\`.`;
288
288
  }
289
- var ne = se, ia = le;
290
- const ie = E.forwardRef(({ className: a, value: r, ...s }, o) => e(ne, {
291
- ref: o,
289
+ var ie = te, ia = oe;
290
+ const de = E.forwardRef(({ className: a, value: r, ...s }, l) => e(ie, {
291
+ ref: l,
292
292
  className: b("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
293
293
  ...s,
294
294
  children: e(ia, {
@@ -299,15 +299,15 @@ const ie = E.forwardRef(({ className: a, value: r, ...s }, o) => e(ne, {
299
299
  }
300
300
  })
301
301
  }));
302
- ie.displayName = ne.displayName;
303
- const da = ({ value: a, max: r = 100, label: s, color: o }, t) => {
304
- const i = o || be(0), n = a / r * 100;
302
+ de.displayName = ie.displayName;
303
+ const da = ({ value: a, max: r = 100, label: s, color: l }, t) => {
304
+ const i = l ? z(l) : z("categorical-1"), n = a / r * 100;
305
305
  return c("div", {
306
306
  className: "flex items-center space-x-2",
307
307
  "aria-live": "polite",
308
308
  children: [e("div", {
309
309
  className: "flex-grow",
310
- children: e(ie, {
310
+ children: e(de, {
311
311
  color: i,
312
312
  value: n,
313
313
  className: "w-full",
@@ -321,7 +321,7 @@ const da = ({ value: a, max: r = 100, label: s, color: o }, t) => {
321
321
  children: s
322
322
  })]
323
323
  });
324
- }, ca = ve(da), Ta = g(
324
+ }, ca = be(da), Ta = g(
325
325
  {
326
326
  name: "AreaChart",
327
327
  type: "info"
@@ -364,29 +364,29 @@ const da = ({ value: a, max: r = 100, label: s, color: o }, t) => {
364
364
  },
365
365
  ca
366
366
  ), O = ({ count: a, list: r }) => {
367
- const [s, o] = v(!1), t = e(M, {
367
+ const [s, l] = v(!1), t = e(M, {
368
368
  label: `+${a}`
369
369
  });
370
- return r != null && r.length ? c(G, {
370
+ return r != null && r.length ? c(H, {
371
371
  open: s,
372
- onOpenChange: o,
373
- children: [e(H, {
372
+ onOpenChange: l,
373
+ children: [e(U, {
374
374
  asChild: !0,
375
375
  children: e("button", {
376
376
  className: Le("inline-flex flex-shrink-0 items-center"),
377
377
  children: t
378
378
  })
379
- }), e(U, {
379
+ }), e(J, {
380
380
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
381
381
  align: "end",
382
- children: c(J, {
382
+ children: c(Y, {
383
383
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
384
384
  children: [r.map((i, n) => e("div", {
385
385
  className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
386
386
  children: e(M, {
387
387
  ...i
388
388
  })
389
- }, n)), e(Y, {
389
+ }, n)), e(X, {
390
390
  orientation: "vertical",
391
391
  className: "[&_div]:bg-f1-background"
392
392
  })]
@@ -395,18 +395,18 @@ const da = ({ value: a, max: r = 100, label: s, color: o }, t) => {
395
395
  }) : t;
396
396
  };
397
397
  O.displayName = "ChipCounter";
398
- const de = ({ chips: a, max: r = 4, remainingCount: s, layout: o = "compact" }) => {
399
- if (o === "fill")
398
+ const ce = ({ chips: a, max: r = 4, remainingCount: s, layout: l = "compact" }) => {
399
+ if (l === "fill")
400
400
  return e(Fe, {
401
401
  items: a,
402
- renderListItem: (l) => e(M, {
403
- ...l
402
+ renderListItem: (o) => e(M, {
403
+ ...o
404
404
  }),
405
405
  renderDropdownItem: () => null,
406
406
  forceShowingOverflowIndicator: s !== void 0,
407
- renderOverflowIndicator: (l) => e(O, {
408
- count: (s ?? 0) + l,
409
- list: s ? void 0 : a.slice(a.length - l)
407
+ renderOverflowIndicator: (o) => e(O, {
408
+ count: (s ?? 0) + o,
409
+ list: s ? void 0 : a.slice(a.length - o)
410
410
  }),
411
411
  overflowIndicatorWithPopover: !1,
412
412
  className: "flex-1"
@@ -414,28 +414,28 @@ const de = ({ chips: a, max: r = 4, remainingCount: s, layout: o = "compact" })
414
414
  const t = a.slice(0, r), i = a.slice(r), n = s ?? a.length - r, d = n > 0;
415
415
  return c("div", {
416
416
  className: "flex items-center gap-2",
417
- children: [t.map((l, f) => e(M, {
418
- ...l
417
+ children: [t.map((o, f) => e(M, {
418
+ ...o
419
419
  }, f)), d && e(O, {
420
420
  count: n,
421
421
  list: s ? void 0 : i
422
422
  })]
423
423
  });
424
424
  };
425
- de.displayName = "F0ChipList";
426
- const _a = Se("F0ChipList", de), ua = {
425
+ ce.displayName = "F0ChipList";
426
+ const _a = Se("F0ChipList", ce), ua = {
427
427
  xs: 1,
428
428
  sm: 2,
429
429
  md: 2,
430
430
  lg: 2
431
- }, fa = I(function({ widgets: r, children: s }, o) {
432
- const t = ae(null);
433
- Ze(o, () => t.current);
431
+ }, fa = I(function({ widgets: r, children: s }, l) {
432
+ const t = re(null);
433
+ Ze(l, () => t.current);
434
434
  const i = ea.toArray(r).filter((n) => !!n).map((n, d) => e("div", {
435
435
  className: "h-full @5xl:h-auto [&>div]:h-full",
436
436
  children: n
437
437
  }, d));
438
- return e(X, {
438
+ return e(K, {
439
439
  layout: "home",
440
440
  children: c("div", {
441
441
  ref: t,
@@ -464,18 +464,18 @@ const _a = Se("F0ChipList", de), ua = {
464
464
  })]
465
465
  })
466
466
  });
467
- }), ma = I(function({ children: r, sideContent: s, mainColumnPosition: o = "left", sticky: t = !1 }, i) {
467
+ }), ma = I(function({ children: r, sideContent: s, mainColumnPosition: l = "left", sticky: t = !1 }, i) {
468
468
  return e("div", {
469
469
  ref: i,
470
470
  className: "h-full",
471
471
  children: c("div", {
472
472
  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"),
473
473
  children: [e("main", {
474
- 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", o === "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"),
474
+ 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"),
475
475
  children: r
476
476
  }), e(ha, {
477
477
  sticky: t,
478
- className: b("order-1", o === "right" ? "md:order-1" : "md:order-3"),
478
+ className: b("order-1", l === "right" ? "md:order-1" : "md:order-3"),
479
479
  children: s
480
480
  })]
481
481
  })
@@ -490,12 +490,12 @@ const _a = Se("F0ChipList", de), ua = {
490
490
  narrow: "max-w-screen-lg"
491
491
  }
492
492
  }
493
- }), ce = Qe.forwardRef(({ children: a, variant: r, className: s, ...o }, t) => e(X, {
493
+ }), ue = Qe.forwardRef(({ children: a, variant: r, className: s, ...l }, t) => e(K, {
494
494
  layout: "standard",
495
495
  children: e("section", {
496
496
  ref: t,
497
497
  className: b("relative flex-1 overflow-auto", s),
498
- ...o,
498
+ ...l,
499
499
  children: e("div", {
500
500
  className: b(pa({
501
501
  variant: r
@@ -504,11 +504,11 @@ const _a = Se("F0ChipList", de), ua = {
504
504
  })
505
505
  })
506
506
  }));
507
- ce.displayName = "StandardLayout";
507
+ ue.displayName = "StandardLayout";
508
508
  const ja = g({
509
509
  name: "StandardLayout",
510
510
  type: "layout"
511
- }, ce), za = g({
511
+ }, ue), za = g({
512
512
  name: "TwoColumnLayout",
513
513
  type: "layout"
514
514
  }, ma), Va = g({
@@ -528,8 +528,8 @@ const ja = g({
528
528
  }), e("span", {
529
529
  children: a
530
530
  })]
531
- }), ue = I(({ title: a, image: r, benefits: s, actions: o, withShadow: t = !0, module: i, moduleName: n, tag: d }, l) => c("div", {
532
- ref: l,
531
+ }), fe = I(({ title: a, image: r, benefits: s, actions: l, withShadow: t = !0, module: i, moduleName: n, tag: d }, o) => c("div", {
532
+ ref: o,
533
533
  className: b("bg-white flex flex-row rounded-xl border border-f1-border-secondary", t && "shadow-md"),
534
534
  children: [e("div", {
535
535
  className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
@@ -546,7 +546,7 @@ const ja = g({
546
546
  className: "flex flex-col gap-2",
547
547
  children: [c("div", {
548
548
  className: "flex flex-row items-center gap-2",
549
- children: [i && e(K, {
549
+ children: [i && e(Q, {
550
550
  module: i
551
551
  }), n && e("p", {
552
552
  className: "text-base font-medium text-f1-foreground",
@@ -565,16 +565,16 @@ const ja = g({
565
565
  }), e(ga, {
566
566
  benefits: s
567
567
  })]
568
- }), o && e("div", {
568
+ }), l && e("div", {
569
569
  className: "flex gap-3",
570
- children: o
570
+ children: l
571
571
  })]
572
572
  })]
573
573
  }));
574
- ue.displayName = "ProductBlankslate";
575
- function ba({ isOpen: a, onClose: r, title: s, children: o, module: t, portalContainer: i }) {
574
+ fe.displayName = "ProductBlankslate";
575
+ function ba({ isOpen: a, onClose: r, title: s, children: l, module: t, portalContainer: i }) {
576
576
  const [n, d] = v(a);
577
- return re(() => {
577
+ return se(() => {
578
578
  d(a);
579
579
  }, [a]), e(Re, {
580
580
  open: n,
@@ -589,20 +589,20 @@ function ba({ isOpen: a, onClose: r, title: s, children: o, module: t, portalCon
589
589
  className: "flex flex-row items-center justify-between px-4 py-4",
590
590
  children: [c(Oe, {
591
591
  className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
592
- children: [t && e(K, {
592
+ children: [t && e(Q, {
593
593
  module: t,
594
594
  size: "lg"
595
595
  }), s]
596
596
  }), e($e, {
597
597
  variant: "outline",
598
- icon: Q,
598
+ icon: Z,
599
599
  onClick: r,
600
600
  label: "Close modal",
601
601
  hideLabel: !0
602
602
  })]
603
- }), c(J, {
603
+ }), c(Y, {
604
604
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
605
- children: [o, e(Y, {
605
+ children: [l, e(X, {
606
606
  orientation: "vertical",
607
607
  className: "[&_div]:bg-f1-background"
608
608
  })]
@@ -610,7 +610,7 @@ function ba({ isOpen: a, onClose: r, title: s, children: o, module: t, portalCon
610
610
  })
611
611
  });
612
612
  }
613
- function Aa({ isOpen: a, onClose: r, title: s, image: o, benefits: t, errorMessage: i, successMessage: n, loadingState: d, nextSteps: l, closeLabel: f, primaryAction: m, modalTitle: N, modalModule: P, secondaryAction: u, portalContainer: x, tag: S }) {
613
+ function Aa({ 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: x, tag: S }) {
614
614
  const [R, F] = v(a), [C, y] = v(null), [L, h] = v(!1), k = async () => {
615
615
  if (m != null && m.onClick) {
616
616
  h(!0);
@@ -634,9 +634,9 @@ function Aa({ isOpen: a, onClose: r, title: s, image: o, benefits: t, errorMessa
634
634
  portalContainer: x,
635
635
  children: e("div", {
636
636
  className: "pb-4 pl-4",
637
- children: e(ue, {
637
+ children: e(fe, {
638
638
  title: s,
639
- image: o,
639
+ image: l,
640
640
  benefits: t,
641
641
  withShadow: !1,
642
642
  tag: S,
@@ -659,7 +659,7 @@ function Aa({ isOpen: a, onClose: r, title: s, image: o, benefits: t, errorMessa
659
659
  })
660
660
  })
661
661
  })
662
- }), C && e(Z, {
662
+ }), C && e(ee, {
663
663
  open: !0,
664
664
  onClose: () => {
665
665
  D(), y(null);
@@ -667,17 +667,17 @@ function Aa({ isOpen: a, onClose: r, title: s, image: o, benefits: t, errorMessa
667
667
  success: C === "success",
668
668
  errorMessage: i,
669
669
  successMessage: n,
670
- nextSteps: l,
670
+ nextSteps: o,
671
671
  closeLabel: f,
672
672
  portalContainer: x
673
673
  })]
674
674
  });
675
675
  }
676
- function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t, width: i, trackVisibility: n, actions: d, showConfirmation: l = !0 }) {
676
+ function xa({ mediaUrl: a, title: r, description: s, onClose: l, dismissible: t, width: i, trackVisibility: n, actions: d, showConfirmation: o = !0 }) {
677
677
  const [f, m] = v(!1), N = () => {
678
- m(!0), o && o();
678
+ m(!0), l && l();
679
679
  };
680
- re(() => {
680
+ se(() => {
681
681
  n && n(!f);
682
682
  }, [n, f]);
683
683
  const P = a == null ? void 0 : a.includes(".mp4");
@@ -692,7 +692,7 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t,
692
692
  className: "absolute right-2 top-2 z-10",
693
693
  children: e(w, {
694
694
  variant: "ghost",
695
- icon: Q,
695
+ icon: Z,
696
696
  size: "sm",
697
697
  hideLabel: !0,
698
698
  onClick: N,
@@ -714,10 +714,10 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t,
714
714
  }))
715
715
  }), c("div", {
716
716
  className: "flex flex-col gap-[2px] p-3",
717
- children: [e(z, {
717
+ children: [e(V, {
718
718
  className: "text-lg font-medium",
719
719
  children: r
720
- }), e(z, {
720
+ }), e(V, {
721
721
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
722
722
  children: s
723
723
  })]
@@ -725,7 +725,7 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t,
725
725
  })]
726
726
  }), d && e(je, {
727
727
  className: "p-3",
728
- children: d.map((u) => u.type === "upsell" ? e(ee, {
728
+ children: d.map((u) => u.type === "upsell" ? e(ae, {
729
729
  label: u.label,
730
730
  onRequest: u.onClick,
731
731
  errorMessage: u.errorMessage,
@@ -733,7 +733,7 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t,
733
733
  loadingState: u.loadingState,
734
734
  nextSteps: u.nextSteps,
735
735
  closeLabel: u.closeLabel,
736
- showConfirmation: l && u.showConfirmation,
736
+ showConfirmation: o && u.showConfirmation,
737
737
  variant: u.variant
738
738
  }, u.label) : e(w, {
739
739
  label: u.label,
@@ -744,37 +744,37 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t,
744
744
  })
745
745
  });
746
746
  }
747
- const Ca = I(function({ primaryAction: r, secondaryAction: s, ...o }, t) {
748
- const i = (l) => l.variant === "promote" ? e(ee, {
749
- label: l.label,
747
+ const Ca = I(function({ primaryAction: r, secondaryAction: s, ...l }, t) {
748
+ const i = (o) => o.variant === "promote" ? e(ae, {
749
+ label: o.label,
750
750
  onRequest: async () => {
751
- await l.onClick();
751
+ await o.onClick();
752
752
  },
753
- errorMessage: l.errorMessage,
754
- successMessage: l.successMessage,
755
- loadingState: l.loadingState,
756
- nextSteps: l.nextSteps,
757
- closeLabel: l.closeLabel,
758
- showIcon: l.showIcon,
759
- showConfirmation: l.showConfirmation,
760
- variant: l.variant
753
+ errorMessage: o.errorMessage,
754
+ successMessage: o.successMessage,
755
+ loadingState: o.loadingState,
756
+ nextSteps: o.nextSteps,
757
+ closeLabel: o.closeLabel,
758
+ showIcon: o.showIcon,
759
+ showConfirmation: o.showConfirmation,
760
+ variant: o.variant
761
761
  }) : e(w, {
762
- onClick: l.onClick,
763
- label: l.label,
764
- variant: l.variant || "default",
762
+ onClick: o.onClick,
763
+ label: o.label,
764
+ variant: o.variant || "default",
765
765
  size: "md",
766
- icon: l.icon
766
+ icon: o.icon
767
767
  }), n = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0, d = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0;
768
768
  return c(ze, {
769
769
  ref: t,
770
- ...o,
770
+ ...l,
771
771
  primaryAction: n,
772
772
  secondaryAction: d,
773
773
  children: [(r == null ? void 0 : r.variant) === "promote" && i(r), (s == null ? void 0 : s.variant) === "promote" && i(s)]
774
774
  });
775
775
  });
776
776
  Ca.displayName = "UpsellingBanner";
777
- function qa({ isOpen: a, setIsOpen: r, label: s, variant: o = "promote", size: t = "md", showIcon: i = !0, side: n = "right", align: d = "center", icon: l = Ve, mediaUrl: f, title: m, description: N, width: P = "300px", trackVisibility: u, actions: x, onClick: S, hideLabel: R = !1 }) {
777
+ 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 = Ve, mediaUrl: f, title: m, description: N, width: P = "300px", trackVisibility: u, actions: x, onClick: S, hideLabel: R = !1 }) {
778
778
  const [F, C] = v(!1), [y, L] = v(null), [h, k] = v(null), D = (p) => {
779
779
  r(p), S && S();
780
780
  }, B = async (p) => {
@@ -786,27 +786,27 @@ function qa({ isOpen: a, setIsOpen: r, label: s, variant: o = "promote", size: t
786
786
  C(!0), L("error");
787
787
  }
788
788
  }
789
- }, fe = () => {
789
+ }, me = () => {
790
790
  L(null), C(!1), k(null), r(!1);
791
- }, me = a && !F, he = x == null ? void 0 : x.map((p) => p.type === "upsell" ? {
791
+ }, he = a && !F, pe = x == null ? void 0 : x.map((p) => p.type === "upsell" ? {
792
792
  ...p,
793
793
  onClick: () => B(p)
794
794
  } : p);
795
795
  return c($, {
796
- children: [c(G, {
797
- open: me,
796
+ children: [c(H, {
797
+ open: he,
798
798
  onOpenChange: D,
799
- children: [e(H, {
799
+ children: [e(U, {
800
800
  asChild: !0,
801
801
  children: e(w, {
802
- variant: o,
802
+ variant: l,
803
803
  label: s,
804
804
  size: t,
805
- icon: i ? l : void 0,
805
+ icon: i ? o : void 0,
806
806
  onClick: () => r(a),
807
807
  hideLabel: R
808
808
  })
809
- }), e(U, {
809
+ }), e(J, {
810
810
  side: n,
811
811
  align: d,
812
812
  className: "w-fit border-none bg-transparent p-2 shadow-none",
@@ -818,13 +818,13 @@ function qa({ isOpen: a, setIsOpen: r, label: s, variant: o = "promote", size: t
818
818
  dismissible: !1,
819
819
  width: P,
820
820
  trackVisibility: u,
821
- actions: he,
821
+ actions: pe,
822
822
  showConfirmation: !1
823
823
  })
824
824
  })]
825
- }), (h == null ? void 0 : h.type) === "upsell" && h.showConfirmation && y && e(Z, {
825
+ }), (h == null ? void 0 : h.type) === "upsell" && h.showConfirmation && y && e(ee, {
826
826
  open: !0,
827
- onClose: fe,
827
+ onClose: me,
828
828
  success: y === "success",
829
829
  errorMessage: h.errorMessage,
830
830
  successMessage: h.successMessage,
@@ -835,12 +835,12 @@ function qa({ isOpen: a, setIsOpen: r, label: s, variant: o = "promote", size: t
835
835
  });
836
836
  }
837
837
  const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
838
- const s = ae(null), [o, t] = v(s.current);
838
+ const s = re(null), [l, t] = v(s.current);
839
839
  return Ke(() => {
840
840
  t(s.current);
841
841
  }, []), e(ya.Provider, {
842
842
  value: {
843
- element: o
843
+ element: l
844
844
  },
845
845
  children: e("div", {
846
846
  ref: s,
@@ -854,7 +854,7 @@ const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
854
854
  }, Na = ({ children: a }) => e(Xe, {
855
855
  reducedMotion: "user",
856
856
  children: a
857
- }), Wa = ({ children: a, layout: r, link: s, privacyModeInitiallyEnabled: o, image: t, i18n: i, l10n: n, isDev: d = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: f = !1 }) => e(Na, {
857
+ }), 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, {
858
858
  children: e(Ae, {
859
859
  isDev: d,
860
860
  showExperimentalWarnings: f,
@@ -868,11 +868,11 @@ const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
868
868
  ...r,
869
869
  children: e(He, {
870
870
  children: e(Ue, {
871
- initiallyEnabled: o,
871
+ initiallyEnabled: l,
872
872
  children: e(Je, {
873
873
  ...t,
874
874
  children: e(Ye, {
875
- handler: l,
875
+ handler: o,
876
876
  children: a
877
877
  })
878
878
  })
@@ -883,12 +883,12 @@ const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
883
883
  })
884
884
  })
885
885
  })
886
- }), q = (a) => `datacollection-${a}`, Ga = {
886
+ }), W = (a) => `datacollection-${a}`, Ga = {
887
887
  get: async (a) => JSON.parse(
888
- localStorage.getItem(q(a)) ?? "{}"
888
+ localStorage.getItem(W(a)) ?? "{}"
889
889
  ),
890
890
  set: async (a, r) => {
891
- localStorage.setItem(q(a), JSON.stringify(r));
891
+ localStorage.setItem(W(a), JSON.stringify(r));
892
892
  }
893
893
  };
894
894
  export {
@@ -908,7 +908,7 @@ export {
908
908
  sr as F0AvatarFile,
909
909
  tr as F0AvatarIcon,
910
910
  lr as F0AvatarList,
911
- K as F0AvatarModule,
911
+ Q as F0AvatarModule,
912
912
  or as F0AvatarPerson,
913
913
  nr as F0AvatarTeam,
914
914
  ir as F0Card,
@@ -933,7 +933,7 @@ export {
933
933
  Cr as OneFilterPicker,
934
934
  Oa as PieChart,
935
935
  Ue as PrivacyModeProvider,
936
- ue as ProductBlankslate,
936
+ fe as ProductBlankslate,
937
937
  yr as ProductCard,
938
938
  Aa as ProductModal,
939
939
  xa as ProductWidget,
@@ -941,9 +941,9 @@ export {
941
941
  ja as StandardLayout,
942
942
  wr as TagCounter,
943
943
  za as TwoColumnLayout,
944
- Z as UpsellRequestResponseDialog,
944
+ ee as UpsellRequestResponseDialog,
945
945
  Ca as UpsellingBanner,
946
- ee as UpsellingButton,
946
+ ae as UpsellingButton,
947
947
  qa as UpsellingPopover,
948
948
  $a as VerticalBarChart,
949
949
  Da as avatarVariants,