@factorialco/f0-react 1.189.3 → 1.191.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.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as v, L as pe, 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 W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, 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 We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-CuzFhqUo.js";
2
- import { ao as Ua, _ as Wa, aq as Ya, az as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, av as nr, ad as ir, ae as dr, af as cr, ag as ur, aj as fr, ak as hr, al as mr, am as pr, ac as vr, an as gr, ai as br, aw as xr, ap as Cr, aA as yr, a7 as wr, ah as Nr, ar as Lr, as as Pr, at as kr, aB as Fr, au as Sr, ay as Mr, ax as Dr } from "./hooks-CuzFhqUo.js";
3
- import { jsx as e, jsxs as c, Fragment as O } from "react/jsx-runtime";
1
+ import { C as v, L as pe, 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-B95P16Lw.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 ms, am as ps, 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-B95P16Lw.js";
3
+ import { jsx as e, jsxs as d, 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 re, createContext as ea } 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
6
  const Pa = {
7
7
  approvals: {
8
8
  history: "Approval history",
@@ -182,35 +182,33 @@ const Pa = {
182
182
  },
183
183
  notifications: "Notifications",
184
184
  ai: {
185
- description: "Chat with AI",
186
- expandChat: "Expand chat",
187
- minimizeChat: "Minimize chat window",
188
- openChat: "Open Chat",
185
+ openChat: "Open Chat with One AI",
186
+ closeChat: "Close Chat with One AI",
189
187
  scrollToBottom: "Scroll to bottom",
190
188
  welcome: "I'm One. Ask or make anything.",
191
189
  initialMessage: "How can I help you today?"
192
190
  }
193
- }, ka = v(
191
+ }, Sa = v(
194
192
  {
195
193
  name: "Link",
196
194
  type: "info"
197
195
  },
198
196
  pe
199
197
  ), Fa = ["person", "team", "company", "file"];
200
- var _ = "Progress", j = 100, [aa, Sa] = ve(_), [ra, sa] = aa(_), se = E.forwardRef(
201
- (a, r) => {
198
+ var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardRef(
199
+ (a, s) => {
202
200
  const {
203
- __scopeProgress: s,
201
+ __scopeProgress: r,
204
202
  value: t = null,
205
203
  max: l,
206
- getValueLabel: d = ta,
204
+ getValueLabel: c = ta,
207
205
  ...n
208
206
  } = a;
209
- (l || l === 0) && !V(l) && console.error(la(`${l}`, "Progress"));
210
- const i = V(l) ? l : j;
207
+ (l || l === 0) && !z(l) && console.error(la(`${l}`, "Progress"));
208
+ const i = z(l) ? l : j;
211
209
  t !== null && !q(t, i) && console.error(oa(`${t}`, "Progress"));
212
- const o = q(t, i) ? t : null, f = T(o) ? d(o, i) : void 0;
213
- return /* @__PURE__ */ e(ra, { scope: s, value: o, max: i, children: /* @__PURE__ */ e(
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(
214
212
  H.div,
215
213
  {
216
214
  "aria-valuemax": i,
@@ -222,15 +220,15 @@ var _ = "Progress", j = 100, [aa, Sa] = ve(_), [ra, sa] = aa(_), se = E.forwardR
222
220
  "data-value": o ?? void 0,
223
221
  "data-max": i,
224
222
  ...n,
225
- ref: r
223
+ ref: s
226
224
  }
227
225
  ) });
228
226
  }
229
227
  );
230
- se.displayName = _;
228
+ re.displayName = _;
231
229
  var te = "ProgressIndicator", le = E.forwardRef(
232
- (a, r) => {
233
- const { __scopeProgress: s, ...t } = a, l = sa(te, s);
230
+ (a, s) => {
231
+ const { __scopeProgress: r, ...t } = a, l = ra(te, r);
234
232
  return /* @__PURE__ */ e(
235
233
  H.div,
236
234
  {
@@ -238,40 +236,40 @@ var te = "ProgressIndicator", le = E.forwardRef(
238
236
  "data-value": l.value ?? void 0,
239
237
  "data-max": l.max,
240
238
  ...t,
241
- ref: r
239
+ ref: s
242
240
  }
243
241
  );
244
242
  }
245
243
  );
246
244
  le.displayName = te;
247
- function ta(a, r) {
248
- return `${Math.round(a / r * 100)}%`;
245
+ function ta(a, s) {
246
+ return `${Math.round(a / s * 100)}%`;
249
247
  }
250
- function oe(a, r) {
251
- return a == null ? "indeterminate" : a === r ? "complete" : "loading";
248
+ function oe(a, s) {
249
+ return a == null ? "indeterminate" : a === s ? "complete" : "loading";
252
250
  }
253
251
  function T(a) {
254
252
  return typeof a == "number";
255
253
  }
256
- function V(a) {
254
+ function z(a) {
257
255
  return T(a) && !isNaN(a) && a > 0;
258
256
  }
259
- function q(a, r) {
260
- return T(a) && !isNaN(a) && a <= r && a >= 0;
257
+ function q(a, s) {
258
+ return T(a) && !isNaN(a) && a <= s && a >= 0;
261
259
  }
262
- function la(a, r) {
263
- return `Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
260
+ function la(a, s) {
261
+ return `Invalid prop \`max\` of value \`${a}\` supplied to \`${s}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
264
262
  }
265
- function oa(a, r) {
266
- return `Invalid prop \`value\` of value \`${a}\` supplied to \`${r}\`. The \`value\` prop must be:
263
+ function oa(a, s) {
264
+ return `Invalid prop \`value\` of value \`${a}\` supplied to \`${s}\`. The \`value\` prop must be:
267
265
  - a positive number
268
266
  - less than the value passed to \`max\` (or ${j} if no \`max\` prop is set)
269
267
  - \`null\` or \`undefined\` if the progress is indeterminate.
270
268
 
271
269
  Defaulting to \`null\`.`;
272
270
  }
273
- var ne = se, na = le;
274
- const ie = E.forwardRef(({ className: a, value: r, ...s }, t) => /* @__PURE__ */ e(
271
+ var ne = re, na = le;
272
+ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */ e(
275
273
  ne,
276
274
  {
277
275
  ref: t,
@@ -279,44 +277,44 @@ const ie = E.forwardRef(({ className: a, value: r, ...s }, t) => /* @__PURE__ */
279
277
  "relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary",
280
278
  a
281
279
  ),
282
- ...s,
280
+ ...r,
283
281
  children: /* @__PURE__ */ e(
284
282
  na,
285
283
  {
286
284
  className: "h-full w-full flex-1 transition-all",
287
285
  style: {
288
- backgroundColor: s.color,
289
- transform: `translateX(-${100 - (r || 0)}%)`
286
+ backgroundColor: r.color,
287
+ transform: `translateX(-${100 - (s || 0)}%)`
290
288
  }
291
289
  }
292
290
  )
293
291
  }
294
292
  ));
295
293
  ie.displayName = ne.displayName;
296
- const ia = ({ value: a, max: r = 100, label: s, color: t }, l) => {
297
- const d = t || be(0), n = a / r * 100;
298
- return /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", "aria-live": "polite", children: [
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
297
  /* @__PURE__ */ e("div", { className: "flex-grow", children: /* @__PURE__ */ e(
300
298
  ie,
301
299
  {
302
- color: d,
300
+ color: c,
303
301
  value: n,
304
302
  className: "w-full",
305
303
  "aria-valuemin": 0,
306
- "aria-valuemax": r,
304
+ "aria-valuemax": s,
307
305
  "aria-valuenow": a,
308
306
  "aria-label": `${n.toFixed(1)}%`
309
307
  }
310
308
  ) }),
311
- s && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sm font-medium", children: s })
309
+ r && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sm font-medium", children: r })
312
310
  ] });
313
- }, da = ge(ia), Ma = v(
311
+ }, ca = ge(ia), Da = v(
314
312
  {
315
313
  name: "AreaChart",
316
314
  type: "info"
317
315
  },
318
316
  xe
319
- ), Da = v(
317
+ ), Ma = v(
320
318
  {
321
319
  name: "BarChart",
322
320
  type: "info"
@@ -334,44 +332,44 @@ const ia = ({ value: a, max: r = 100, label: s, color: t }, l) => {
334
332
  type: "info"
335
333
  },
336
334
  we
337
- ), Ra = v(
335
+ ), Ia = v(
338
336
  {
339
337
  name: "PieChart",
340
338
  type: "info"
341
339
  },
342
340
  Ne
343
- ), Ia = v(
341
+ ), Ra = v(
344
342
  {
345
343
  name: "VerticalBarChart",
346
344
  type: "info"
347
345
  },
348
346
  Le
349
- ), $a = v(
347
+ ), Oa = v(
350
348
  {
351
349
  name: "ProgressBarChart",
352
350
  type: "info"
353
351
  },
354
- da
355
- ), $ = ({ count: a, list: r }) => {
356
- const [s, t] = g(!1), l = /* @__PURE__ */ e(D, { label: `+${a}` });
357
- return r != null && r.length ? /* @__PURE__ */ c(U, { open: s, onOpenChange: t, children: [
358
- /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
352
+ ca
353
+ ), 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: [
356
+ /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
359
357
  /* @__PURE__ */ e(
360
- Y,
358
+ W,
361
359
  {
362
360
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
363
361
  align: "end",
364
- children: /* @__PURE__ */ c(G, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col", children: [
365
- r.map((d, n) => /* @__PURE__ */ e(
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(
366
364
  "div",
367
365
  {
368
366
  className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
369
- children: /* @__PURE__ */ e(D, { ...d })
367
+ children: /* @__PURE__ */ e(M, { ...c })
370
368
  },
371
369
  n
372
370
  )),
373
371
  /* @__PURE__ */ e(
374
- X,
372
+ J,
375
373
  {
376
374
  orientation: "vertical",
377
375
  className: "[&_div]:bg-f1-background"
@@ -382,11 +380,11 @@ const ia = ({ value: a, max: r = 100, label: s, color: t }, l) => {
382
380
  )
383
381
  ] }) : l;
384
382
  };
385
- $.displayName = "ChipCounter";
386
- const de = ({
383
+ O.displayName = "ChipCounter";
384
+ const ce = ({
387
385
  chips: a,
388
- max: r = 4,
389
- remainingCount: s,
386
+ max: s = 4,
387
+ remainingCount: r,
390
388
  layout: t = "compact"
391
389
  }) => {
392
390
  if (t === "fill")
@@ -394,59 +392,59 @@ const de = ({
394
392
  Fe,
395
393
  {
396
394
  items: a,
397
- renderListItem: (o) => /* @__PURE__ */ e(D, { ...o }),
395
+ renderListItem: (o) => /* @__PURE__ */ e(M, { ...o }),
398
396
  renderDropdownItem: () => null,
399
- forceShowingOverflowIndicator: s !== void 0,
397
+ forceShowingOverflowIndicator: r !== void 0,
400
398
  renderOverflowIndicator: (o) => /* @__PURE__ */ e(
401
- $,
399
+ O,
402
400
  {
403
- count: (s ?? 0) + o,
404
- list: s ? void 0 : a.slice(a.length - o)
401
+ count: (r ?? 0) + o,
402
+ list: r ? void 0 : a.slice(a.length - o)
405
403
  }
406
404
  ),
407
405
  overflowIndicatorWithPopover: !1,
408
406
  className: "flex-1"
409
407
  }
410
408
  );
411
- const l = a.slice(0, r), d = a.slice(r), n = s ?? a.length - r, i = n > 0;
412
- return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
413
- l.map((o, f) => /* @__PURE__ */ e(D, { ...o }, f)),
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: [
411
+ l.map((o, f) => /* @__PURE__ */ e(M, { ...o }, f)),
414
412
  i && /* @__PURE__ */ e(
415
- $,
413
+ O,
416
414
  {
417
415
  count: n,
418
- list: s ? void 0 : d
416
+ list: r ? void 0 : c
419
417
  }
420
418
  )
421
419
  ] });
422
420
  };
423
- de.displayName = "F0ChipList";
424
- const Oa = ke(
421
+ ce.displayName = "F0ChipList";
422
+ const $a = Se(
425
423
  "F0ChipList",
426
- de
427
- ), ca = {
424
+ ce
425
+ ), da = {
428
426
  xs: 1,
429
427
  sm: 2,
430
428
  md: 2,
431
429
  lg: 2
432
- }, ua = B(function({ widgets: r, children: s }, t) {
430
+ }, ua = B(function({ widgets: s, children: r }, t) {
433
431
  const l = ae(null);
434
432
  Qe(t, () => l.current);
435
- const d = Ze.toArray(r).filter((n) => !!n).map((n, i) => /* @__PURE__ */ e("div", { className: "h-full @5xl:h-auto [&>div]:h-full", children: n }, i));
436
- return /* @__PURE__ */ e(J, { layout: "home", children: /* @__PURE__ */ c("div", { ref: l, className: "@container", children: [
437
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden", children: [
438
- /* @__PURE__ */ e(Se, { columns: ca, showArrows: !1, children: d }),
439
- /* @__PURE__ */ e("main", { children: s })
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
+ /* @__PURE__ */ e("main", { children: r })
440
438
  ] }),
441
- /* @__PURE__ */ c("div", { className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid", children: [
442
- /* @__PURE__ */ e("div", { className: "col-span-3 flex flex-row gap-5 *:flex-1", children: d.slice(0, 3) }),
443
- /* @__PURE__ */ e("main", { className: "col-span-2", children: s }),
444
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-5", children: d.slice(3) })
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) }),
441
+ /* @__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) })
445
443
  ] })
446
444
  ] }) });
447
445
  }), fa = B(
448
- function({ children: r, sideContent: s, mainColumnPosition: t = "left" }, l) {
449
- return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */ c(
446
+ function({ children: s, sideContent: r, mainColumnPosition: t = "left" }, l) {
447
+ return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */ d(
450
448
  "div",
451
449
  {
452
450
  className: b(
@@ -454,7 +452,7 @@ const Oa = ke(
454
452
  t === "right" ? "flex-col" : "flex-col-reverse"
455
453
  ),
456
454
  children: [
457
- t === "right" && /* @__PURE__ */ e(A, { children: s }),
455
+ t === "right" && /* @__PURE__ */ e(A, { children: r }),
458
456
  /* @__PURE__ */ e(
459
457
  "main",
460
458
  {
@@ -462,37 +460,37 @@ const Oa = ke(
462
460
  "h-fit min-h-full border-0 px-6 py-5 sm:basis-3/4 sm:border-solid",
463
461
  t === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary"
464
462
  ),
465
- children: r
463
+ children: s
466
464
  }
467
465
  ),
468
- t === "left" && /* @__PURE__ */ e(A, { children: s })
466
+ t === "left" && /* @__PURE__ */ e(A, { children: r })
469
467
  ]
470
468
  }
471
469
  ) });
472
470
  }
473
- ), A = ({ children: a }) => /* @__PURE__ */ e("aside", { className: "py-5 pl-2 pr-4 sm:basis-1/4 sm:pb-6", children: a }), ha = Me({
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({
474
472
  base: "relative flex min-h-full w-full flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
475
473
  variants: {
476
474
  variant: {
477
475
  narrow: "max-w-screen-lg"
478
476
  }
479
477
  }
480
- }), ce = Ke.forwardRef(({ children: a, variant: r, className: s, ...t }, l) => /* @__PURE__ */ e(J, { layout: "standard", children: /* @__PURE__ */ e(
478
+ }), de = Ke.forwardRef(({ children: a, variant: s, className: r, ...t }, l) => /* @__PURE__ */ e(X, { layout: "standard", children: /* @__PURE__ */ e(
481
479
  "section",
482
480
  {
483
481
  ref: l,
484
- className: b("relative flex-1 overflow-auto", s),
482
+ className: b("relative flex-1 overflow-auto", r),
485
483
  ...t,
486
- children: /* @__PURE__ */ e("div", { className: b(ha({ variant: r })), children: a })
484
+ children: /* @__PURE__ */ e("div", { className: b(ha({ variant: s })), children: a })
487
485
  }
488
486
  ) }));
489
- ce.displayName = "StandardLayout";
487
+ de.displayName = "StandardLayout";
490
488
  const Ea = v(
491
489
  {
492
490
  name: "StandardLayout",
493
491
  type: "layout"
494
492
  },
495
- ce
493
+ de
496
494
  ), _a = v(
497
495
  {
498
496
  name: "TwoColumnLayout",
@@ -505,20 +503,20 @@ const Ea = v(
505
503
  type: "layout"
506
504
  },
507
505
  ua
508
- ), ma = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((r, s) => /* @__PURE__ */ e(pa, { text: r }, s)) }), pa = ({ text: a }) => /* @__PURE__ */ c("div", { className: "flex flex-row items-start gap-2", children: [
506
+ ), ma = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(pa, { text: s }, r)) }), pa = ({ text: a }) => /* @__PURE__ */ d("div", { className: "flex flex-row items-start gap-2", children: [
509
507
  /* @__PURE__ */ e(Te, { icon: Be, size: "md", className: "text-f1-icon-positive" }),
510
508
  /* @__PURE__ */ e("span", { children: a })
511
509
  ] }), ue = B(
512
510
  ({
513
511
  title: a,
514
- image: r,
515
- benefits: s,
512
+ image: s,
513
+ benefits: r,
516
514
  actions: t,
517
515
  withShadow: l = !0,
518
- module: d,
516
+ module: c,
519
517
  moduleName: n,
520
518
  tag: i
521
- }, o) => /* @__PURE__ */ c(
519
+ }, o) => /* @__PURE__ */ d(
522
520
  "div",
523
521
  {
524
522
  ref: o,
@@ -530,22 +528,22 @@ const Ea = v(
530
528
  /* @__PURE__ */ e("div", { className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1", children: /* @__PURE__ */ e(
531
529
  "img",
532
530
  {
533
- src: r,
531
+ src: s,
534
532
  alt: "",
535
533
  className: "h-full w-full rounded-lg object-cover"
536
534
  }
537
535
  ) }),
538
- /* @__PURE__ */ c("div", { className: "flex flex-col justify-center gap-8 px-8 py-5", children: [
539
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-5", children: [
540
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
541
- /* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-2", children: [
542
- d && /* @__PURE__ */ e(K, { module: d }),
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 }),
543
541
  n && /* @__PURE__ */ e("p", { className: "text-base font-medium text-f1-foreground", children: n })
544
542
  ] }),
545
- i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(De, { icon: i.icon, text: i.label }) }),
543
+ i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(Me, { icon: i.icon, text: i.label }) }),
546
544
  /* @__PURE__ */ e("h2", { className: "font-bold text-xl text-f1-foreground", children: a })
547
545
  ] }),
548
- /* @__PURE__ */ e(ma, { benefits: s })
546
+ /* @__PURE__ */ e(ma, { benefits: r })
549
547
  ] }),
550
548
  t && /* @__PURE__ */ e("div", { className: "flex gap-3", children: t })
551
549
  ] })
@@ -556,43 +554,43 @@ const Ea = v(
556
554
  ue.displayName = "ProductBlankslate";
557
555
  function va({
558
556
  isOpen: a,
559
- onClose: r,
560
- title: s,
557
+ onClose: s,
558
+ title: r,
561
559
  children: t,
562
560
  module: l,
563
- portalContainer: d
561
+ portalContainer: c
564
562
  }) {
565
563
  const [n, i] = g(a);
566
- return re(() => {
564
+ return se(() => {
567
565
  i(a);
568
- }, [a]), /* @__PURE__ */ e(Re, { open: n, onOpenChange: (f) => {
569
- i(f), f || r();
570
- }, modal: !0, children: /* @__PURE__ */ c(
571
- Ie,
566
+ }, [a]), /* @__PURE__ */ e(Ie, { open: n, onOpenChange: (f) => {
567
+ i(f), f || s();
568
+ }, modal: !0, children: /* @__PURE__ */ d(
569
+ Re,
572
570
  {
573
571
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
574
- container: d,
572
+ container: c,
575
573
  children: [
576
- /* @__PURE__ */ c("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
577
- /* @__PURE__ */ c($e, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", 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: [
578
576
  l && /* @__PURE__ */ e(K, { module: l, size: "lg" }),
579
- s
577
+ r
580
578
  ] }),
581
579
  /* @__PURE__ */ e(
582
- Oe,
580
+ $e,
583
581
  {
584
582
  variant: "outline",
585
583
  icon: Q,
586
- onClick: r,
584
+ onClick: s,
587
585
  label: "Close modal",
588
586
  hideLabel: !0
589
587
  }
590
588
  )
591
589
  ] }),
592
- /* @__PURE__ */ c(G, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col", children: [
590
+ /* @__PURE__ */ d(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col", children: [
593
591
  t,
594
592
  /* @__PURE__ */ e(
595
- X,
593
+ J,
596
594
  {
597
595
  orientation: "vertical",
598
596
  className: "[&_div]:bg-f1-background"
@@ -603,13 +601,13 @@ function va({
603
601
  }
604
602
  ) });
605
603
  }
606
- function za({
604
+ function Va({
607
605
  isOpen: a,
608
- onClose: r,
609
- title: s,
606
+ onClose: s,
607
+ title: r,
610
608
  image: t,
611
609
  benefits: l,
612
- errorMessage: d,
610
+ errorMessage: c,
613
611
  successMessage: n,
614
612
  loadingState: i,
615
613
  nextSteps: o,
@@ -619,9 +617,9 @@ function za({
619
617
  modalModule: L,
620
618
  secondaryAction: u,
621
619
  portalContainer: x,
622
- tag: k
620
+ tag: S
623
621
  }) {
624
- const [R, F] = g(a), [C, y] = g(null), [P, m] = g(!1), S = async () => {
622
+ const [I, F] = g(a), [C, y] = g(null), [P, m] = g(!1), k = async () => {
625
623
  if (h != null && h.onClick) {
626
624
  m(!0);
627
625
  try {
@@ -632,34 +630,34 @@ function za({
632
630
  m(!1);
633
631
  }
634
632
  }
635
- }, M = () => {
636
- F(!1), r == null || r();
637
- }, I = P;
638
- return /* @__PURE__ */ c(O, { children: [
633
+ }, D = () => {
634
+ F(!1), s == null || s();
635
+ }, R = P;
636
+ return /* @__PURE__ */ d($, { children: [
639
637
  /* @__PURE__ */ e(
640
638
  va,
641
639
  {
642
- isOpen: R,
643
- onClose: M,
640
+ isOpen: I,
641
+ onClose: D,
644
642
  title: N,
645
643
  module: L,
646
644
  portalContainer: x,
647
645
  children: /* @__PURE__ */ e("div", { className: "pb-4 pl-4", children: /* @__PURE__ */ e(
648
646
  ue,
649
647
  {
650
- title: s,
648
+ title: r,
651
649
  image: t,
652
650
  benefits: l,
653
651
  withShadow: !1,
654
- tag: k,
655
- actions: /* @__PURE__ */ c("div", { className: "flex gap-3", children: [
652
+ tag: S,
653
+ actions: /* @__PURE__ */ d("div", { className: "flex gap-3", children: [
656
654
  h && /* @__PURE__ */ e(
657
655
  w,
658
656
  {
659
657
  variant: h.variant,
660
- label: I ? i.label : h.label,
658
+ label: R ? i.label : h.label,
661
659
  icon: h.icon || void 0,
662
- onClick: S,
660
+ onClick: k,
663
661
  loading: h.loading,
664
662
  size: h.size
665
663
  }
@@ -684,10 +682,10 @@ function za({
684
682
  {
685
683
  open: !0,
686
684
  onClose: () => {
687
- M(), y(null);
685
+ D(), y(null);
688
686
  },
689
687
  success: C === "success",
690
- errorMessage: d,
688
+ errorMessage: c,
691
689
  successMessage: n,
692
690
  nextSteps: o,
693
691
  closeLabel: f,
@@ -698,11 +696,11 @@ function za({
698
696
  }
699
697
  function ga({
700
698
  mediaUrl: a,
701
- title: r,
702
- description: s,
699
+ title: s,
700
+ description: r,
703
701
  onClose: t,
704
702
  dismissible: l,
705
- width: d,
703
+ width: c,
706
704
  trackVisibility: n,
707
705
  actions: i,
708
706
  showConfirmation: o = !0
@@ -710,12 +708,12 @@ function ga({
710
708
  const [f, h] = g(!1), N = () => {
711
709
  h(!0), t && t();
712
710
  };
713
- re(() => {
711
+ se(() => {
714
712
  n && n(!f);
715
713
  }, [n, f]);
716
714
  const L = a == null ? void 0 : a.includes(".mp4");
717
- return /* @__PURE__ */ e(O, { children: f ? null : /* @__PURE__ */ c(Ee, { style: { width: d }, className: "relative bg-f1-background p-1", children: [
718
- /* @__PURE__ */ c(_e, { children: [
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: [
719
717
  l && /* @__PURE__ */ e("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ e(
720
718
  w,
721
719
  {
@@ -727,7 +725,7 @@ function ga({
727
725
  label: "Close"
728
726
  }
729
727
  ) }),
730
- /* @__PURE__ */ c("div", { children: [
728
+ /* @__PURE__ */ d("div", { children: [
731
729
  /* @__PURE__ */ e("div", { children: a && (L ? /* @__PURE__ */ e(
732
730
  "video",
733
731
  {
@@ -742,13 +740,13 @@ function ga({
742
740
  "img",
743
741
  {
744
742
  src: a,
745
- alt: r,
743
+ alt: s,
746
744
  className: "h-full w-full rounded-md"
747
745
  }
748
746
  )) }),
749
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-[2px] p-3", children: [
750
- /* @__PURE__ */ e(z, { className: "text-lg font-medium", children: r }),
751
- /* @__PURE__ */ e(z, { className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary", children: s })
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
750
  ] })
753
751
  ] })
754
752
  ] }),
@@ -780,8 +778,8 @@ function ga({
780
778
  ] }) });
781
779
  }
782
780
  const ba = B(
783
- function({ primaryAction: r, secondaryAction: s, ...t }, l) {
784
- const d = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
781
+ function({ primaryAction: s, secondaryAction: r, ...t }, l) {
782
+ const c = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
785
783
  ee,
786
784
  {
787
785
  label: o.label,
@@ -806,47 +804,47 @@ const ba = B(
806
804
  size: "md",
807
805
  icon: o.icon
808
806
  }
809
- ), n = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0, i = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0;
810
- return /* @__PURE__ */ c(
811
- ze,
807
+ ), 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,
812
810
  {
813
811
  ref: l,
814
812
  ...t,
815
813
  primaryAction: n,
816
814
  secondaryAction: i,
817
815
  children: [
818
- (r == null ? void 0 : r.variant) === "promote" && d(r),
819
- (s == null ? void 0 : s.variant) === "promote" && d(s)
816
+ (s == null ? void 0 : s.variant) === "promote" && c(s),
817
+ (r == null ? void 0 : r.variant) === "promote" && c(r)
820
818
  ]
821
819
  }
822
820
  );
823
821
  }
824
822
  );
825
823
  ba.displayName = "UpsellingBanner";
826
- function Va({
824
+ function za({
827
825
  isOpen: a,
828
- setIsOpen: r,
829
- label: s,
826
+ setIsOpen: s,
827
+ label: r,
830
828
  variant: t = "promote",
831
829
  size: l = "md",
832
- showIcon: d = !0,
830
+ showIcon: c = !0,
833
831
  side: n = "right",
834
832
  align: i = "center",
835
- icon: o = Ve,
833
+ icon: o = ze,
836
834
  mediaUrl: f,
837
835
  title: h,
838
836
  description: N,
839
837
  width: L = "300px",
840
838
  trackVisibility: u,
841
839
  actions: x,
842
- onClick: k,
843
- hideLabel: R = !1
840
+ onClick: S,
841
+ hideLabel: I = !1
844
842
  }) {
845
- const [F, C] = g(!1), [y, P] = g(null), [m, S] = g(null), M = (p) => {
846
- r(p), k && k();
847
- }, I = async (p) => {
843
+ const [F, C] = g(!1), [y, P] = g(null), [m, k] = g(null), D = (p) => {
844
+ s(p), S && S();
845
+ }, R = async (p) => {
848
846
  if (p.type === "upsell") {
849
- S(p);
847
+ k(p);
850
848
  try {
851
849
  await p.onClick(), p.showConfirmation && (C(!0), P("success"));
852
850
  } catch {
@@ -854,26 +852,26 @@ function Va({
854
852
  }
855
853
  }
856
854
  }, fe = () => {
857
- P(null), C(!1), S(null), r(!1);
855
+ P(null), C(!1), k(null), s(!1);
858
856
  }, he = a && !F, me = x == null ? void 0 : x.map((p) => p.type === "upsell" ? {
859
857
  ...p,
860
- onClick: () => I(p)
858
+ onClick: () => R(p)
861
859
  } : p);
862
- return /* @__PURE__ */ c(O, { children: [
863
- /* @__PURE__ */ c(U, { open: he, onOpenChange: M, children: [
864
- /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e(
860
+ return /* @__PURE__ */ d($, { children: [
861
+ /* @__PURE__ */ d(U, { open: he, onOpenChange: D, children: [
862
+ /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
865
863
  w,
866
864
  {
867
865
  variant: t,
868
- label: s,
866
+ label: r,
869
867
  size: l,
870
- icon: d ? o : void 0,
871
- onClick: () => r(a),
872
- hideLabel: R
868
+ icon: c ? o : void 0,
869
+ onClick: () => s(a),
870
+ hideLabel: I
873
871
  }
874
872
  ) }),
875
873
  /* @__PURE__ */ e(
876
- Y,
874
+ W,
877
875
  {
878
876
  side: n,
879
877
  align: i,
@@ -884,7 +882,7 @@ function Va({
884
882
  mediaUrl: f,
885
883
  title: h,
886
884
  description: N,
887
- onClose: () => r(!1),
885
+ onClose: () => s(!1),
888
886
  dismissible: !1,
889
887
  width: L,
890
888
  trackVisibility: u,
@@ -912,30 +910,30 @@ function Va({
912
910
  }
913
911
  const xa = ea(
914
912
  null
915
- ), Ca = ({ children: a, fullScreen: r = !0 }) => {
916
- const s = ae(null), [t, l] = g(s.current);
917
- return Je(() => {
918
- l(s.current);
913
+ ), Ca = ({ children: a, fullScreen: s = !0 }) => {
914
+ const r = ae(null), [t, l] = g(r.current);
915
+ return Xe(() => {
916
+ l(r.current);
919
917
  }, []), /* @__PURE__ */ e(xa.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
920
918
  "div",
921
919
  {
922
- ref: s,
920
+ ref: r,
923
921
  id: "f0-layout",
924
922
  className: b({
925
- "flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": r
923
+ "flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": s
926
924
  }),
927
925
  children: a
928
926
  }
929
927
  ) });
930
928
  }, ya = ({
931
929
  children: a
932
- }) => /* @__PURE__ */ e(Xe, { reducedMotion: "user", children: a }), qa = ({
930
+ }) => /* @__PURE__ */ e(Je, { reducedMotion: "user", children: a }), qa = ({
933
931
  children: a,
934
- layout: r,
935
- link: s,
932
+ layout: s,
933
+ link: r,
936
934
  privacyModeInitiallyEnabled: t,
937
935
  image: l,
938
- i18n: d,
936
+ i18n: c,
939
937
  l10n: n,
940
938
  isDev: i = !1,
941
939
  showExperimentalWarnings: o = !1
@@ -944,82 +942,92 @@ const xa = ea(
944
942
  {
945
943
  isDev: i,
946
944
  showExperimentalWarnings: o,
947
- children: /* @__PURE__ */ e(Ae, { ...n, children: /* @__PURE__ */ e(He, { ...d, children: /* @__PURE__ */ e(Ue, { ...s, children: /* @__PURE__ */ e(Ca, { ...r, children: /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(
948
- Ye,
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(
946
+ We,
949
947
  {
950
948
  initiallyEnabled: t,
951
- children: /* @__PURE__ */ e(Ge, { ...l, children: a })
949
+ children: /* @__PURE__ */ e(Ye, { ...l, children: a })
952
950
  }
953
951
  ) }) }) }) }) })
954
952
  }
955
953
  ) });
956
954
  export {
957
- Ma as AreaChart,
955
+ Da as AreaChart,
958
956
  Ua as Await,
959
- Da as BarChart,
957
+ Ma as BarChart,
960
958
  w as Button,
961
959
  Ta as CategoryBarChart,
962
- Wa as CopyButton,
963
- Ya as DndProvider,
964
- Ga as EmojiImage,
965
- Xa as F0Avatar,
966
- Ja as F0AvatarAlert,
960
+ Ga as CopyButton,
961
+ Wa as DndProvider,
962
+ Ya as EmojiImage,
963
+ Ja as F0Avatar,
964
+ Xa as F0AvatarAlert,
967
965
  Ka as F0AvatarCompany,
968
966
  Qa as F0AvatarDate,
969
967
  Za as F0AvatarEmoji,
970
- er as F0AvatarFile,
971
- ar as F0AvatarIcon,
972
- rr as F0AvatarList,
968
+ es as F0AvatarFile,
969
+ as as F0AvatarIcon,
970
+ ss as F0AvatarList,
973
971
  K as F0AvatarModule,
974
- sr as F0AvatarPerson,
975
- tr as F0AvatarTeam,
976
- lr as F0Card,
977
- or as F0Checkbox,
978
- Oa as F0ChipList,
979
- nr as F0EventCatcherProvider,
972
+ rs as F0AvatarPerson,
973
+ ts as F0AvatarTeam,
974
+ ls as F0Card,
975
+ os as F0Checkbox,
976
+ $a as F0ChipList,
977
+ ns as F0EventCatcherProvider,
980
978
  Te as F0Icon,
981
- ir as F0TagAlert,
982
- dr as F0TagBalance,
983
- cr as F0TagCompany,
984
- ur as F0TagDot,
985
- fr as F0TagList,
986
- hr as F0TagPerson,
987
- De as F0TagRaw,
988
- mr as F0TagStatus,
989
- pr as F0TagTeam,
979
+ is as F0TagAlert,
980
+ cs as F0TagBalance,
981
+ ds as F0TagCompany,
982
+ us as F0TagDot,
983
+ fs as F0TagList,
984
+ hs as F0TagPerson,
985
+ Me as F0TagRaw,
986
+ ms as F0TagStatus,
987
+ ps as F0TagTeam,
990
988
  qa as FactorialOneProvider,
989
+ vs as GROUP_ID_SYMBOL,
991
990
  ja as HomeLayout,
992
991
  Ba as LineChart,
993
- ka as Link,
994
- vr as OneFilterPicker,
995
- Ra as PieChart,
996
- Ye as PrivacyModeProvider,
992
+ Sa as Link,
993
+ gs as OneFilterPicker,
994
+ Ia as PieChart,
995
+ We as PrivacyModeProvider,
997
996
  ue as ProductBlankslate,
998
- gr as ProductCard,
999
- za as ProductModal,
997
+ bs as ProductCard,
998
+ Va as ProductModal,
1000
999
  ga as ProductWidget,
1001
- $a as ProgressBarChart,
1000
+ Oa as ProgressBarChart,
1002
1001
  Ea as StandardLayout,
1003
- br as TagCounter,
1002
+ xs as TagCounter,
1004
1003
  _a as TwoColumnLayout,
1005
1004
  Z as UpsellRequestResponseDialog,
1006
1005
  ba as UpsellingBanner,
1007
1006
  ee as UpsellingButton,
1008
- Va as UpsellingPopover,
1009
- Ia as VerticalBarChart,
1007
+ za as UpsellingPopover,
1008
+ Ra as VerticalBarChart,
1010
1009
  Fa as avatarVariants,
1011
- xr as buildTranslations,
1012
- Cr as createAtlaskitDriver,
1010
+ Cs as buildTranslations,
1011
+ ys as createAtlaskitDriver,
1012
+ ws as createDataSourceDefinition,
1013
1013
  Pa as defaultTranslations,
1014
- ke as experimental,
1015
- yr as getEmojiLabel,
1016
- wr as modules,
1017
- Nr as tagDotColors,
1018
- Lr as useDndEvents,
1019
- Pr as useDraggable,
1020
- kr as useDroppableList,
1021
- Fr as useEmojiConfetti,
1022
- Sr as usePrivacyMode,
1023
- Mr as useReducedMotion,
1024
- Dr as useXRay
1014
+ 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,
1032
+ Vs as useXRay
1025
1033
  };