@factorialco/f0-react 1.241.1 → 1.242.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,9 +1,9 @@
1
- import { C as p, L as ge, c as ve, P as H, a as b, f as be, g as A, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as D, i as U, j as J, k as Le, l as Y, S as X, m as K, n as Se, O as Fe, o as Q, p as ke, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as V, H as je, I as re, J as ze, K as Ae, M as Ve, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-BrsvJQsa.js";
2
- import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Mr, ar as Dr, a8 as Tr, ai as Ir, aq as Br, av as Rr, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Ar, ay as Vr, aI as qr } from "./hooks-BrsvJQsa.js";
1
+ import { C as p, L as ge, c as ve, P as G, a as b, f as be, g as W, A as xe, B as ye, b as Ce, d as we, e as Ne, V as Pe, h as D, i as U, j as Y, k as Le, l as J, S as X, m as K, n as Se, O as ke, o as Q, p as Fe, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as z, H as Ae, I as re, J as je, K as We, M as ze, N as Ve, Q as He, R as qe, X as Ge, T as Ue, W as Ye, Y as Je, Z as Xe, _ as Ke } from "./hooks-VZh3f1RF.js";
2
+ import { az as Ya, $ as Ja, 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 or, a9 as lr, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as hr, ah as mr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as yr, ao as Cr, aj as wr, aH as Nr, aA as Pr, au as Lr, ax as Sr, at as kr, aL as Fr, as as Mr, ar as Dr, a8 as Tr, ai as Ir, aq as Br, av as Rr, aC as Or, aD as $r, aE as Er, aM as _r, aw as Ar, aF as jr, aJ as Wr, ay as zr, aI as Vr } from "./hooks-VZh3f1RF.js";
3
3
  import { jsx as e, jsxs as c, Fragment as E } from "react/jsx-runtime";
4
4
  import * as _ from "react";
5
5
  import Qe, { useState as v, forwardRef as I, useRef as se, useImperativeHandle as Ze, Children as ea, useEffect as te, createContext as aa } from "react";
6
- const Fa = {
6
+ const ka = {
7
7
  approvals: {
8
8
  history: "Approval history",
9
9
  statuses: {
@@ -26,6 +26,7 @@ const Fa = {
26
26
  add: "Add",
27
27
  edit: "Edit",
28
28
  save: "Save",
29
+ send: "Send",
29
30
  cancel: "Cancel",
30
31
  copy: "Copy",
31
32
  close: "Close",
@@ -195,16 +196,28 @@ const Fa = {
195
196
  scrollToBottom: "Scroll to bottom",
196
197
  welcome: "Ask or create with One",
197
198
  defaultInitialMessage: "How can I help you today?",
198
- inputPlaceholder: "Write something here...",
199
+ inputPlaceholder: "Ask about time, people, or company info…",
199
200
  stopAnswerGeneration: "Stop generating",
200
201
  sendMessage: "Send message",
201
- thoughtsGroupTitle: "Reflection"
202
+ thoughtsGroupTitle: "Reflection",
203
+ feedbackModal: {
204
+ positive: {
205
+ title: "What did you like about this response?",
206
+ placeholder: "What did you like about this response? How could it be even better?",
207
+ description: "Your feedback helps Factorial Al improve. The messages from your chat, the search results, and your feedback will be sent to Factorial to help improve Factorial Al."
208
+ },
209
+ negative: {
210
+ title: "What could have been better in this response?",
211
+ placeholder: "What could have been better in this response? How could it be even better?",
212
+ description: "Your feedback helps Factorial Al improve. The messages from your chat, the search results, and your feedback will be sent to Factorial to help improve Factorial Al."
213
+ }
214
+ }
202
215
  },
203
216
  select: {
204
217
  noResults: "No results found",
205
218
  loadingMore: "Loading..."
206
219
  }
207
- }, ka = p({
220
+ }, Fa = p({
208
221
  name: "Link",
209
222
  type: "info"
210
223
  }, ge), Ma = [
@@ -214,29 +227,29 @@ const Fa = {
214
227
  "file",
215
228
  "flag"
216
229
  ];
217
- var j = "Progress", z = 100, [ra, Da] = ve(j), [sa, ta] = ra(j), le = _.forwardRef(
230
+ var A = "Progress", j = 100, [ra, Da] = ve(A), [sa, ta] = ra(A), oe = _.forwardRef(
218
231
  (a, r) => {
219
232
  const {
220
233
  __scopeProgress: s,
221
- value: l = null,
234
+ value: o = null,
222
235
  max: t,
223
- getValueLabel: i = la,
236
+ getValueLabel: i = oa,
224
237
  ...n
225
238
  } = a;
226
- (t || t === 0) && !q(t) && console.error(oa(`${t}`, "Progress"));
227
- const d = q(t) ? t : z;
228
- l !== null && !W(l, d) && console.error(na(`${l}`, "Progress"));
229
- const o = W(l, d) ? l : null, f = T(o) ? i(o, d) : void 0;
230
- return /* @__PURE__ */ e(sa, { scope: s, value: o, max: d, children: /* @__PURE__ */ e(
231
- H.div,
239
+ (t || t === 0) && !V(t) && console.error(la(`${t}`, "Progress"));
240
+ const d = V(t) ? t : j;
241
+ o !== null && !H(o, d) && console.error(na(`${o}`, "Progress"));
242
+ const l = H(o, d) ? o : null, f = T(l) ? i(l, d) : void 0;
243
+ return /* @__PURE__ */ e(sa, { scope: s, value: l, max: d, children: /* @__PURE__ */ e(
244
+ G.div,
232
245
  {
233
246
  "aria-valuemax": d,
234
247
  "aria-valuemin": 0,
235
- "aria-valuenow": T(o) ? o : void 0,
248
+ "aria-valuenow": T(l) ? l : void 0,
236
249
  "aria-valuetext": f,
237
250
  role: "progressbar",
238
- "data-state": ie(o, d),
239
- "data-value": o ?? void 0,
251
+ "data-state": ie(l, d),
252
+ "data-value": l ?? void 0,
240
253
  "data-max": d,
241
254
  ...n,
242
255
  ref: r
@@ -244,24 +257,24 @@ var j = "Progress", z = 100, [ra, Da] = ve(j), [sa, ta] = ra(j), le = _.forwardR
244
257
  ) });
245
258
  }
246
259
  );
247
- le.displayName = j;
248
- var oe = "ProgressIndicator", ne = _.forwardRef(
260
+ oe.displayName = A;
261
+ var le = "ProgressIndicator", ne = _.forwardRef(
249
262
  (a, r) => {
250
- const { __scopeProgress: s, ...l } = a, t = ta(oe, s);
263
+ const { __scopeProgress: s, ...o } = a, t = ta(le, s);
251
264
  return /* @__PURE__ */ e(
252
- H.div,
265
+ G.div,
253
266
  {
254
267
  "data-state": ie(t.value, t.max),
255
268
  "data-value": t.value ?? void 0,
256
269
  "data-max": t.max,
257
- ...l,
270
+ ...o,
258
271
  ref: r
259
272
  }
260
273
  );
261
274
  }
262
275
  );
263
- ne.displayName = oe;
264
- function la(a, r) {
276
+ ne.displayName = le;
277
+ function oa(a, r) {
265
278
  return `${Math.round(a / r * 100)}%`;
266
279
  }
267
280
  function ie(a, r) {
@@ -270,26 +283,26 @@ function ie(a, r) {
270
283
  function T(a) {
271
284
  return typeof a == "number";
272
285
  }
273
- function q(a) {
286
+ function V(a) {
274
287
  return T(a) && !isNaN(a) && a > 0;
275
288
  }
276
- function W(a, r) {
289
+ function H(a, r) {
277
290
  return T(a) && !isNaN(a) && a <= r && a >= 0;
278
291
  }
279
- function oa(a, r) {
280
- return `Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${z}\`.`;
292
+ function la(a, r) {
293
+ return `Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
281
294
  }
282
295
  function na(a, r) {
283
296
  return `Invalid prop \`value\` of value \`${a}\` supplied to \`${r}\`. The \`value\` prop must be:
284
297
  - a positive number
285
- - less than the value passed to \`max\` (or ${z} if no \`max\` prop is set)
298
+ - less than the value passed to \`max\` (or ${j} if no \`max\` prop is set)
286
299
  - \`null\` or \`undefined\` if the progress is indeterminate.
287
300
 
288
301
  Defaulting to \`null\`.`;
289
302
  }
290
- var de = le, ia = ne;
291
- const ce = _.forwardRef(({ className: a, value: r, ...s }, l) => e(de, {
292
- ref: l,
303
+ var de = oe, ia = ne;
304
+ const ce = _.forwardRef(({ className: a, value: r, ...s }, o) => e(de, {
305
+ ref: o,
293
306
  className: b("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
294
307
  ...s,
295
308
  children: e(ia, {
@@ -301,8 +314,8 @@ const ce = _.forwardRef(({ className: a, value: r, ...s }, l) => e(de, {
301
314
  })
302
315
  }));
303
316
  ce.displayName = de.displayName;
304
- const da = ({ value: a, max: r = 100, label: s, color: l }, t) => {
305
- const i = l ? A(l) : A("categorical-1"), n = a / r * 100;
317
+ const da = ({ value: a, max: r = 100, label: s, color: o }, t) => {
318
+ const i = o ? W(o) : W("categorical-1"), n = a / r * 100;
306
319
  return c("div", {
307
320
  className: "flex items-center space-x-2",
308
321
  "aria-live": "polite",
@@ -333,13 +346,13 @@ const da = ({ value: a, max: r = 100, label: s, color: l }, t) => {
333
346
  name: "BarChart",
334
347
  type: "info"
335
348
  },
336
- Ce
349
+ ye
337
350
  ), Ba = p(
338
351
  {
339
352
  name: "CategoryBarChart",
340
353
  type: "info"
341
354
  },
342
- ye
355
+ Ce
343
356
  ), Ra = p(
344
357
  {
345
358
  name: "LineChart",
@@ -365,19 +378,19 @@ const da = ({ value: a, max: r = 100, label: s, color: l }, t) => {
365
378
  },
366
379
  ca
367
380
  ), $ = ({ count: a, list: r }) => {
368
- const [s, l] = v(!1), t = e(D, {
381
+ const [s, o] = v(!1), t = e(D, {
369
382
  label: `+${a}`
370
383
  });
371
384
  return r != null && r.length ? c(U, {
372
385
  open: s,
373
- onOpenChange: l,
374
- children: [e(J, {
386
+ onOpenChange: o,
387
+ children: [e(Y, {
375
388
  asChild: !0,
376
389
  children: e("button", {
377
390
  className: Le("inline-flex flex-shrink-0 items-center"),
378
391
  children: t
379
392
  })
380
- }), e(Y, {
393
+ }), e(J, {
381
394
  className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
382
395
  align: "end",
383
396
  children: c(X, {
@@ -396,18 +409,18 @@ const da = ({ value: a, max: r = 100, label: s, color: l }, t) => {
396
409
  }) : t;
397
410
  };
398
411
  $.displayName = "ChipCounter";
399
- const ue = ({ chips: a, max: r = 4, remainingCount: s, layout: l = "compact" }) => {
400
- if (l === "fill")
401
- return e(Fe, {
412
+ const ue = ({ chips: a, max: r = 4, remainingCount: s, layout: o = "compact" }) => {
413
+ if (o === "fill")
414
+ return e(ke, {
402
415
  items: a,
403
- renderListItem: (o) => e(D, {
404
- ...o
416
+ renderListItem: (l) => e(D, {
417
+ ...l
405
418
  }),
406
419
  renderDropdownItem: () => null,
407
420
  forceShowingOverflowIndicator: s !== void 0,
408
- renderOverflowIndicator: (o) => e($, {
409
- count: (s ?? 0) + o,
410
- list: s ? void 0 : a.slice(a.length - o)
421
+ renderOverflowIndicator: (l) => e($, {
422
+ count: (s ?? 0) + l,
423
+ list: s ? void 0 : a.slice(a.length - l)
411
424
  }),
412
425
  overflowIndicatorWithPopover: !1,
413
426
  className: "flex-1"
@@ -415,8 +428,8 @@ const ue = ({ chips: a, max: r = 4, remainingCount: s, layout: l = "compact" })
415
428
  const t = a.slice(0, r), i = a.slice(r), n = s ?? a.length - r, d = n > 0;
416
429
  return c("div", {
417
430
  className: "flex items-center gap-2",
418
- children: [t.map((o, f) => e(D, {
419
- ...o
431
+ children: [t.map((l, f) => e(D, {
432
+ ...l
420
433
  }, f)), d && e($, {
421
434
  count: n,
422
435
  list: s ? void 0 : i
@@ -429,9 +442,9 @@ const _a = Se("F0ChipList", ue), ua = {
429
442
  sm: 2,
430
443
  md: 2,
431
444
  lg: 2
432
- }, fa = I(function({ widgets: r, children: s }, l) {
445
+ }, fa = I(function({ widgets: r, children: s }, o) {
433
446
  const t = se(null);
434
- Ze(l, () => t.current);
447
+ Ze(o, () => t.current);
435
448
  const i = ea.toArray(r).filter((n) => !!n).map((n, d) => e("div", {
436
449
  className: "h-full @5xl:h-auto [&>div]:h-full",
437
450
  children: n
@@ -443,7 +456,7 @@ const _a = Se("F0ChipList", ue), ua = {
443
456
  className: "@container",
444
457
  children: [c("div", {
445
458
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
446
- children: [e(ke, {
459
+ children: [e(Fe, {
447
460
  columns: ua,
448
461
  showArrows: !1,
449
462
  children: i
@@ -465,23 +478,23 @@ const _a = Se("F0ChipList", ue), ua = {
465
478
  })]
466
479
  })
467
480
  });
468
- }), ma = I(function({ children: r, sideContent: s, mainColumnPosition: l = "left", sticky: t = !1 }, i) {
481
+ }), ha = I(function({ children: r, sideContent: s, mainColumnPosition: o = "left", sticky: t = !1 }, i) {
469
482
  return e("div", {
470
483
  ref: i,
471
484
  className: "h-full",
472
485
  children: c("div", {
473
486
  className: b("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", t && "md:sticky md:top-0 md:max-h-full"),
474
487
  children: [e("main", {
475
- className: b("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", t ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", l === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
488
+ 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"),
476
489
  children: r
477
- }), e(ha, {
490
+ }), e(ma, {
478
491
  sticky: t,
479
- className: b("order-1", l === "right" ? "md:order-1" : "md:order-3"),
492
+ className: b("order-1", o === "right" ? "md:order-1" : "md:order-3"),
480
493
  children: s
481
494
  })]
482
495
  })
483
496
  });
484
- }), ha = ({ children: a, className: r }) => e("aside", {
497
+ }), ma = ({ children: a, className: r }) => e("aside", {
485
498
  className: b("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", r),
486
499
  children: a
487
500
  }), pa = Me({
@@ -491,12 +504,12 @@ const _a = Se("F0ChipList", ue), ua = {
491
504
  narrow: "max-w-screen-lg"
492
505
  }
493
506
  }
494
- }), fe = Qe.forwardRef(({ children: a, variant: r, className: s, ...l }, t) => e(Q, {
507
+ }), fe = Qe.forwardRef(({ children: a, variant: r, className: s, ...o }, t) => e(Q, {
495
508
  layout: "standard",
496
509
  children: e("section", {
497
510
  ref: t,
498
511
  className: b("relative flex-1 overflow-auto", s),
499
- ...l,
512
+ ...o,
500
513
  children: e("div", {
501
514
  className: b(pa({
502
515
  variant: r
@@ -506,13 +519,13 @@ const _a = Se("F0ChipList", ue), ua = {
506
519
  })
507
520
  }));
508
521
  fe.displayName = "StandardLayout";
509
- const ja = p({
522
+ const Aa = p({
510
523
  name: "StandardLayout",
511
524
  type: "layout"
512
- }, fe), za = p({
525
+ }, fe), ja = p({
513
526
  name: "TwoColumnLayout",
514
527
  type: "layout"
515
- }, ma), Aa = p({
528
+ }, ha), Wa = p({
516
529
  name: "HomeLayout",
517
530
  type: "layout"
518
531
  }, fa), ga = ({ benefits: a }) => e("div", {
@@ -529,8 +542,8 @@ const ja = p({
529
542
  }), e("span", {
530
543
  children: a
531
544
  })]
532
- }), me = I(({ title: a, image: r, benefits: s, actions: l, withShadow: t = !0, module: i, moduleName: n, tag: d }, o) => c("div", {
533
- ref: o,
545
+ }), he = I(({ title: a, image: r, benefits: s, actions: o, withShadow: t = !0, module: i, moduleName: n, tag: d }, l) => c("div", {
546
+ ref: l,
534
547
  className: b("bg-white flex flex-row rounded-xl border border-f1-border-secondary", t && "shadow-md"),
535
548
  children: [e("div", {
536
549
  className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
@@ -566,14 +579,14 @@ const ja = p({
566
579
  }), e(ga, {
567
580
  benefits: s
568
581
  })]
569
- }), l && e("div", {
582
+ }), o && e("div", {
570
583
  className: "flex gap-3",
571
- children: l
584
+ children: o
572
585
  })]
573
586
  })]
574
587
  }));
575
- me.displayName = "ProductBlankslate";
576
- function ba({ isOpen: a, onClose: r, title: s, children: l, module: t, portalContainer: i }) {
588
+ he.displayName = "ProductBlankslate";
589
+ function ba({ isOpen: a, onClose: r, title: s, children: o, module: t, portalContainer: i }) {
577
590
  const [n, d] = v(a);
578
591
  return te(() => {
579
592
  d(a);
@@ -603,7 +616,7 @@ function ba({ isOpen: a, onClose: r, title: s, children: l, module: t, portalCon
603
616
  })]
604
617
  }), c(X, {
605
618
  className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
606
- children: [l, e(K, {
619
+ children: [o, e(K, {
607
620
  orientation: "vertical",
608
621
  className: "[&_div]:bg-f1-background"
609
622
  })]
@@ -611,20 +624,20 @@ function ba({ isOpen: a, onClose: r, title: s, children: l, module: t, portalCon
611
624
  })
612
625
  });
613
626
  }
614
- function Va({ isOpen: a, onClose: r, title: s, image: l, benefits: t, errorMessage: i, successMessage: n, loadingState: d, nextSteps: o, closeLabel: f, primaryAction: m, modalTitle: N, modalModule: P, secondaryAction: u, portalContainer: C, tag: k, showResponseDialog: L = !0 }) {
615
- const [B, y] = v(a), [S, x] = v(null), [g, F] = v(!1), R = async () => {
616
- if (m != null && m.onClick) {
617
- F(!0);
627
+ function za({ isOpen: a, onClose: r, title: s, image: o, benefits: t, errorMessage: i, successMessage: n, loadingState: d, nextSteps: l, closeLabel: f, primaryAction: h, modalTitle: N, modalModule: P, secondaryAction: u, portalContainer: y, tag: F, showResponseDialog: L = !0 }) {
628
+ const [B, C] = v(a), [S, x] = v(null), [g, k] = v(!1), R = async () => {
629
+ if (h != null && h.onClick) {
630
+ k(!0);
618
631
  try {
619
- await m.onClick(), y(!1), L && x("success");
632
+ await h.onClick(), C(!1), L && x("success");
620
633
  } catch {
621
634
  L && x("error");
622
635
  } finally {
623
- F(!1);
636
+ k(!1);
624
637
  }
625
638
  }
626
639
  }, M = () => {
627
- y(!1), r == null || r();
640
+ C(!1), r == null || r();
628
641
  }, O = g;
629
642
  return c(E, {
630
643
  children: [e(ba, {
@@ -632,24 +645,24 @@ function Va({ isOpen: a, onClose: r, title: s, image: l, benefits: t, errorMessa
632
645
  onClose: M,
633
646
  title: N,
634
647
  module: P,
635
- portalContainer: C,
648
+ portalContainer: y,
636
649
  children: e("div", {
637
650
  className: "pb-4 pl-4",
638
- children: e(me, {
651
+ children: e(he, {
639
652
  title: s,
640
- image: l,
653
+ image: o,
641
654
  benefits: t,
642
655
  withShadow: !1,
643
- tag: k,
656
+ tag: F,
644
657
  actions: c("div", {
645
658
  className: "flex gap-3",
646
- children: [m && e(w, {
647
- variant: m.variant,
648
- label: O ? d.label : m.label,
649
- icon: m.icon || void 0,
659
+ children: [h && e(w, {
660
+ variant: h.variant,
661
+ label: O ? d.label : h.label,
662
+ icon: h.icon || void 0,
650
663
  onClick: R,
651
- loading: m.loading,
652
- size: m.size
664
+ loading: h.loading,
665
+ size: h.size
653
666
  }), u && e(w, {
654
667
  onClick: u.onClick,
655
668
  label: u.label,
@@ -668,15 +681,15 @@ function Va({ isOpen: a, onClose: r, title: s, image: l, benefits: t, errorMessa
668
681
  success: S === "success",
669
682
  errorMessage: i,
670
683
  successMessage: n,
671
- nextSteps: o,
684
+ nextSteps: l,
672
685
  closeLabel: f,
673
- portalContainer: C
686
+ portalContainer: y
674
687
  })]
675
688
  });
676
689
  }
677
- function xa({ mediaUrl: a, title: r, description: s, onClose: l, dismissible: t, width: i, trackVisibility: n, actions: d, showConfirmation: o = !0 }) {
678
- const [f, m] = v(!1), N = () => {
679
- m(!0), l && l();
690
+ function xa({ mediaUrl: a, title: r, description: s, onClose: o, dismissible: t, width: i, trackVisibility: n, actions: d, showConfirmation: l = !0 }) {
691
+ const [f, h] = v(!1), N = () => {
692
+ h(!0), o && o();
680
693
  };
681
694
  te(() => {
682
695
  n && n(!f);
@@ -715,16 +728,16 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: l, dismissible: t,
715
728
  }))
716
729
  }), c("div", {
717
730
  className: "flex flex-col gap-[2px] p-3",
718
- children: [e(V, {
731
+ children: [e(z, {
719
732
  className: "text-lg font-medium",
720
733
  children: r
721
- }), e(V, {
734
+ }), e(z, {
722
735
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
723
736
  children: s
724
737
  })]
725
738
  })]
726
739
  })]
727
- }), d && e(je, {
740
+ }), d && e(Ae, {
728
741
  className: "p-3",
729
742
  children: d.map((u) => u.type === "upsell" ? e(re, {
730
743
  label: u.label,
@@ -734,7 +747,7 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: l, dismissible: t,
734
747
  loadingState: u.loadingState,
735
748
  nextSteps: u.nextSteps,
736
749
  closeLabel: u.closeLabel,
737
- showConfirmation: o && u.showConfirmation,
750
+ showConfirmation: l && u.showConfirmation,
738
751
  variant: u.variant
739
752
  }, u.label) : e(w, {
740
753
  label: u.label,
@@ -745,75 +758,75 @@ function xa({ mediaUrl: a, title: r, description: s, onClose: l, dismissible: t,
745
758
  })
746
759
  });
747
760
  }
748
- const Ca = I(function({ primaryAction: r, secondaryAction: s, ...l }, t) {
749
- const i = (o) => o.variant === "promote" ? e(re, {
750
- label: o.label,
761
+ const ya = I(function({ primaryAction: r, secondaryAction: s, ...o }, t) {
762
+ const i = (l) => l.variant === "promote" ? e(re, {
763
+ label: l.label,
751
764
  onRequest: async () => {
752
- await o.onClick();
765
+ await l.onClick();
753
766
  },
754
- errorMessage: o.errorMessage,
755
- successMessage: o.successMessage,
756
- loadingState: o.loadingState,
757
- nextSteps: o.nextSteps,
758
- closeLabel: o.closeLabel,
759
- showIcon: o.showIcon,
760
- showConfirmation: o.showConfirmation,
761
- variant: o.variant
767
+ errorMessage: l.errorMessage,
768
+ successMessage: l.successMessage,
769
+ loadingState: l.loadingState,
770
+ nextSteps: l.nextSteps,
771
+ closeLabel: l.closeLabel,
772
+ showIcon: l.showIcon,
773
+ showConfirmation: l.showConfirmation,
774
+ variant: l.variant
762
775
  }) : e(w, {
763
- onClick: o.onClick,
764
- label: o.label,
765
- variant: o.variant || "default",
776
+ onClick: l.onClick,
777
+ label: l.label,
778
+ variant: l.variant || "default",
766
779
  size: "md",
767
- icon: o.icon
780
+ icon: l.icon
768
781
  }), n = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0, d = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0;
769
- return c(ze, {
782
+ return c(je, {
770
783
  ref: t,
771
- ...l,
784
+ ...o,
772
785
  primaryAction: n,
773
786
  secondaryAction: d,
774
787
  children: [(r == null ? void 0 : r.variant) === "promote" && i(r), (s == null ? void 0 : s.variant) === "promote" && i(s)]
775
788
  });
776
789
  });
777
- Ca.displayName = "UpsellingBanner";
778
- function qa({ isOpen: a, setIsOpen: r, label: s, variant: l = "promote", size: t = "md", showIcon: i = !0, side: n = "right", align: d = "center", icon: o = Ae, mediaUrl: f, title: m, description: N, width: P = "300px", trackVisibility: u, actions: C, onClick: k, hideLabel: L = !1 }) {
779
- const [B, y] = v(!1), [S, x] = v(null), [g, F] = v(null), R = (h) => {
780
- r(h), k && k();
781
- }, M = async (h) => {
782
- if (h.type === "upsell") {
783
- F(h);
790
+ ya.displayName = "UpsellingBanner";
791
+ function Va({ isOpen: a, setIsOpen: r, label: s, variant: o = "promote", size: t = "md", showIcon: i = !0, side: n = "right", align: d = "center", icon: l = We, mediaUrl: f, title: h, description: N, width: P = "300px", trackVisibility: u, actions: y, onClick: F, hideLabel: L = !1 }) {
792
+ const [B, C] = v(!1), [S, x] = v(null), [g, k] = v(null), R = (m) => {
793
+ r(m), F && F();
794
+ }, M = async (m) => {
795
+ if (m.type === "upsell") {
796
+ k(m);
784
797
  try {
785
- await h.onClick(), h.showConfirmation && (y(!0), x("success"));
798
+ await m.onClick(), m.showConfirmation && (C(!0), x("success"));
786
799
  } catch {
787
- y(!0), x("error");
800
+ C(!0), x("error");
788
801
  }
789
802
  }
790
803
  }, O = () => {
791
- x(null), y(!1), F(null), r(!1);
792
- }, he = a && !B, pe = C == null ? void 0 : C.map((h) => h.type === "upsell" ? {
793
- ...h,
794
- onClick: () => M(h)
795
- } : h);
804
+ x(null), C(!1), k(null), r(!1);
805
+ }, me = a && !B, pe = y == null ? void 0 : y.map((m) => m.type === "upsell" ? {
806
+ ...m,
807
+ onClick: () => M(m)
808
+ } : m);
796
809
  return c(E, {
797
810
  children: [c(U, {
798
- open: he,
811
+ open: me,
799
812
  onOpenChange: R,
800
- children: [e(J, {
813
+ children: [e(Y, {
801
814
  asChild: !0,
802
815
  children: e(w, {
803
- variant: l,
816
+ variant: o,
804
817
  label: s,
805
818
  size: t,
806
- icon: i ? o : void 0,
819
+ icon: i ? l : void 0,
807
820
  onClick: () => r(a),
808
821
  hideLabel: L
809
822
  })
810
- }), e(Y, {
823
+ }), e(J, {
811
824
  side: n,
812
825
  align: d,
813
826
  className: "w-fit border-none bg-transparent p-2 shadow-none",
814
827
  children: e(xa, {
815
828
  mediaUrl: f,
816
- title: m,
829
+ title: h,
817
830
  description: N,
818
831
  onClose: () => r(!1),
819
832
  dismissible: !1,
@@ -835,13 +848,13 @@ function qa({ isOpen: a, setIsOpen: r, label: s, variant: l = "promote", size: t
835
848
  })]
836
849
  });
837
850
  }
838
- const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
839
- const s = se(null), [l, t] = v(s.current);
851
+ const Ca = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
852
+ const s = se(null), [o, t] = v(s.current);
840
853
  return Ke(() => {
841
854
  t(s.current);
842
- }, []), e(ya.Provider, {
855
+ }, []), e(Ca.Provider, {
843
856
  value: {
844
- element: l
857
+ element: o
845
858
  },
846
859
  children: e("div", {
847
860
  ref: s,
@@ -855,25 +868,25 @@ const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
855
868
  }, Na = ({ children: a }) => e(Xe, {
856
869
  reducedMotion: "user",
857
870
  children: a
858
- }), Wa = ({ children: a, layout: r, link: s, privacyModeInitiallyEnabled: l, image: t, i18n: i, l10n: n, isDev: d = !1, dataCollectionStorageHandler: o, showExperimentalWarnings: f = !1 }) => e(Na, {
859
- children: e(Ve, {
871
+ }), Ha = ({ children: a, layout: r, link: s, privacyModeInitiallyEnabled: o, image: t, i18n: i, l10n: n, isDev: d = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: f = !1 }) => e(Na, {
872
+ children: e(ze, {
860
873
  isDev: d,
861
874
  showExperimentalWarnings: f,
862
- children: e(qe, {
875
+ children: e(Ve, {
863
876
  ...n,
864
- children: e(We, {
877
+ children: e(He, {
865
878
  ...i,
866
- children: e(Ge, {
879
+ children: e(qe, {
867
880
  ...s,
868
881
  children: e(wa, {
869
882
  ...r,
870
- children: e(He, {
883
+ children: e(Ge, {
871
884
  children: e(Ue, {
872
- initiallyEnabled: l,
873
- children: e(Je, {
885
+ initiallyEnabled: o,
886
+ children: e(Ye, {
874
887
  ...t,
875
- children: e(Ye, {
876
- handler: o,
888
+ children: e(Je, {
889
+ handler: l,
877
890
  children: a
878
891
  })
879
892
  })
@@ -884,21 +897,21 @@ const ya = aa(null), wa = ({ children: a, fullScreen: r = !0 }) => {
884
897
  })
885
898
  })
886
899
  })
887
- }), G = (a) => `datacollection-${a}`, Ga = {
900
+ }), q = (a) => `datacollection-${a}`, qa = {
888
901
  get: async (a) => JSON.parse(
889
- localStorage.getItem(G(a)) ?? "{}"
902
+ localStorage.getItem(q(a)) ?? "{}"
890
903
  ),
891
904
  set: async (a, r) => {
892
- localStorage.setItem(G(a), JSON.stringify(r));
905
+ localStorage.setItem(q(a), JSON.stringify(r));
893
906
  }
894
907
  };
895
908
  export {
896
909
  Ta as AreaChart,
897
- Ja as Await,
910
+ Ya as Await,
898
911
  Ia as BarChart,
899
912
  w as Button,
900
913
  Ba as CategoryBarChart,
901
- Ya as CopyButton,
914
+ Ja as CopyButton,
902
915
  Xa as DndProvider,
903
916
  Ka as EmojiImage,
904
917
  Qa as F0Avatar,
@@ -908,55 +921,55 @@ export {
908
921
  rr as F0AvatarEmoji,
909
922
  sr as F0AvatarFile,
910
923
  tr as F0AvatarIcon,
911
- lr as F0AvatarList,
924
+ or as F0AvatarList,
912
925
  Z as F0AvatarModule,
913
- or as F0AvatarPerson,
926
+ lr as F0AvatarPerson,
914
927
  nr as F0AvatarTeam,
915
928
  ir as F0Card,
916
929
  dr as F0Checkbox,
917
930
  _a as F0ChipList,
918
931
  cr as F0EventCatcherProvider,
919
932
  Te as F0Icon,
920
- Wa as F0Provider,
933
+ Ha as F0Provider,
921
934
  ur as F0TagAlert,
922
935
  fr as F0TagBalance,
923
- mr as F0TagCompany,
924
- hr as F0TagDot,
936
+ hr as F0TagCompany,
937
+ mr as F0TagDot,
925
938
  pr as F0TagList,
926
939
  gr as F0TagPerson,
927
940
  De as F0TagRaw,
928
941
  vr as F0TagStatus,
929
942
  br as F0TagTeam,
930
943
  xr as GROUP_ID_SYMBOL,
931
- Aa as HomeLayout,
944
+ Wa as HomeLayout,
932
945
  Ra as LineChart,
933
- ka as Link,
934
- Cr as OneFilterPicker,
946
+ Fa as Link,
947
+ yr as OneFilterPicker,
935
948
  Oa as PieChart,
936
949
  Ue as PrivacyModeProvider,
937
- me as ProductBlankslate,
938
- yr as ProductCard,
939
- Va as ProductModal,
950
+ he as ProductBlankslate,
951
+ Cr as ProductCard,
952
+ za as ProductModal,
940
953
  xa as ProductWidget,
941
954
  Ea as ProgressBarChart,
942
- ja as StandardLayout,
955
+ Aa as StandardLayout,
943
956
  wr as TagCounter,
944
- za as TwoColumnLayout,
957
+ ja as TwoColumnLayout,
945
958
  ae as UpsellRequestResponseDialog,
946
- Ca as UpsellingBanner,
959
+ ya as UpsellingBanner,
947
960
  re as UpsellingButton,
948
- qa as UpsellingPopover,
961
+ Va as UpsellingPopover,
949
962
  $a as VerticalBarChart,
950
963
  Ma as avatarVariants,
951
964
  Nr as buildTranslations,
952
965
  Pr as createAtlaskitDriver,
953
966
  Lr as createDataSourceDefinition,
954
- Ga as dataCollectionLocalStorageHandler,
955
- Fa as defaultTranslations,
967
+ qa as dataCollectionLocalStorageHandler,
968
+ ka as defaultTranslations,
956
969
  Se as experimental,
957
970
  Sr as getAnimationVariants,
958
- Fr as getDataSourcePaginationType,
959
- kr as getEmojiLabel,
971
+ kr as getDataSourcePaginationType,
972
+ Fr as getEmojiLabel,
960
973
  Mr as isInfiniteScrollPagination,
961
974
  Dr as isPageBasedPagination,
962
975
  Tr as modules,
@@ -967,9 +980,9 @@ export {
967
980
  $r as useDraggable,
968
981
  Er as useDroppableList,
969
982
  _r as useEmojiConfetti,
970
- jr as useGroups,
971
- zr as usePrivacyMode,
972
- Ar as useReducedMotion,
973
- Vr as useSelectable,
974
- qr as useXRay
983
+ Ar as useGroups,
984
+ jr as usePrivacyMode,
985
+ Wr as useReducedMotion,
986
+ zr as useSelectable,
987
+ Vr as useXRay
975
988
  };