@factorialco/f0-react 1.264.0 → 1.264.1

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.
@@ -2151,6 +2151,7 @@ declare const defaultTranslations: {
2151
2151
  readonly sendMessage: "Send message";
2152
2152
  readonly thoughtsGroupTitle: "Reflection";
2153
2153
  readonly resourcesGroupTitle: "Resources";
2154
+ readonly thinking: "Thinking...";
2154
2155
  readonly feedbackModal: {
2155
2156
  readonly positive: {
2156
2157
  readonly title: "What did you like about this response?";
@@ -5394,7 +5394,7 @@ const o4 = [{
5394
5394
  })]
5395
5395
  })
5396
5396
  });
5397
- }, jy = O(iD), rD = ({ title: t, status: e, inGroup: n }) => k("div", {
5397
+ }, rD = O(iD), jy = ({ title: t, status: e, inGroup: n }) => k("div", {
5398
5398
  className: "flex w-full items-start gap-1 text-f1-foreground-secondary",
5399
5399
  children: [e === "inProgress" && d("div", {
5400
5400
  className: "-mt-[2px] *:block",
@@ -5405,7 +5405,7 @@ const o4 = [{
5405
5405
  })
5406
5406
  }), e === "executing" && d("div", {
5407
5407
  className: "-mt-[2px] grid h-6 w-6 shrink-0 items-center justify-items-center",
5408
- children: d(jy, {})
5408
+ children: d(rD, {})
5409
5409
  }), e === "completed" && d("div", {
5410
5410
  className: "-mt-[2px] *:block",
5411
5411
  children: d(_e, {
@@ -5414,22 +5414,10 @@ const o4 = [{
5414
5414
  size: n ? "md" : "lg",
5415
5415
  icon: Vy
5416
5416
  })
5417
- }), d(ne.p, {
5418
- initial: {
5419
- opacity: 0,
5420
- x: 100
5421
- },
5422
- animate: {
5423
- opacity: 1,
5424
- x: 0
5425
- },
5426
- transition: {
5427
- ease: "easeOut",
5428
- duration: 0.3
5429
- },
5417
+ }), d("p", {
5430
5418
  className: "text-pretty",
5431
5419
  children: t
5432
- }, t)]
5420
+ })]
5433
5421
  });
5434
5422
  var vm = "Collapsible", [oD, mde] = Tp(vm), [sD, km] = oD(vm), Wy = ie.forwardRef(
5435
5423
  (t, e) => {
@@ -5784,9 +5772,9 @@ const uD = {
5784
5772
  className: "relative isolate flex w-full flex-col items-start justify-center",
5785
5773
  onMouseEnter: y,
5786
5774
  onMouseLeave: v,
5787
- children: [e && !a && d("div", {
5788
- className: "min-h-[20px]",
5789
- children: d(jy, {})
5775
+ children: [e && !a && d(jy, {
5776
+ title: c.ai.thinking,
5777
+ status: "executing"
5790
5778
  }), i && k(Ie, {
5791
5779
  children: [d("div", {
5792
5780
  className: "w-fit max-w-[min(90%,330px)] [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
@@ -8774,7 +8762,7 @@ const VR = (t) => {
8774
8762
  "aria-label": n.title,
8775
8763
  href: n.link,
8776
8764
  size: "md",
8777
- target: "_blank",
8765
+ target: n.targetBlank ? "_blank" : "_self",
8778
8766
  variant: "ghost",
8779
8767
  className: "justify-start truncate hover:bg-f1-background-hover",
8780
8768
  compact: !0,
@@ -8858,7 +8846,7 @@ const VR = (t) => {
8858
8846
  var r;
8859
8847
  return d("div", {
8860
8848
  className: i.status ? "-ml-1" : void 0,
8861
- children: d(rD, {
8849
+ children: d(jy, {
8862
8850
  title: i.args.message ?? "thinking",
8863
8851
  status: i.status === "complete" ? "completed" : i.status,
8864
8852
  inGroup: (r = i.result) == null ? void 0 : r.inGroup
@@ -8883,6 +8871,17 @@ const VR = (t) => {
8883
8871
  type: "string",
8884
8872
  description: "The URL link to the source",
8885
8873
  required: !0
8874
+ }, {
8875
+ name: "icon",
8876
+ type: "string",
8877
+ description: "The icon name to display for the source",
8878
+ required: !1
8879
+ }, {
8880
+ name: "targetBlank",
8881
+ type: "boolean",
8882
+ description: "Whether to open the link in a new tab",
8883
+ required: !1,
8884
+ default: !1
8886
8885
  }]
8887
8886
  }],
8888
8887
  available: "disabled",
@@ -63909,7 +63908,7 @@ const Efe = qn(
63909
63908
  ai
63910
63909
  );
63911
63910
  export {
63912
- rD as ActionItem,
63911
+ jy as ActionItem,
63913
63912
  Mde as ActivityItemList,
63914
63913
  tW as ActivityItemListSkeleton,
63915
63914
  JR as AiChat,
package/dist/f0.d.ts CHANGED
@@ -1578,6 +1578,7 @@ export declare const defaultTranslations: {
1578
1578
  readonly sendMessage: "Send message";
1579
1579
  readonly thoughtsGroupTitle: "Reflection";
1580
1580
  readonly resourcesGroupTitle: "Resources";
1581
+ readonly thinking: "Thinking...";
1581
1582
  readonly feedbackModal: {
1582
1583
  readonly positive: {
1583
1584
  readonly title: "What did you like about this response?";
package/dist/f0.js CHANGED
@@ -1,8 +1,8 @@
1
- import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-DibdSL-S.js";
2
- import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Dn, ba as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-DibdSL-S.js";
1
+ import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Tt, w as Dt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-DibdSL-S.js";
2
+ import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Tn, ba as Dn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-DibdSL-S.js";
3
3
  import { jsx as n, jsxs as C, Fragment as ae } from "react/jsx-runtime";
4
4
  import * as fe from "react";
5
- import k, { PureComponent as Oa, useState as D, forwardRef as V, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Da } from "react";
5
+ import k, { PureComponent as Oa, useState as T, forwardRef as V, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Ta } from "react";
6
6
  const Ar = {
7
7
  approvals: {
8
8
  history: "Approval history",
@@ -219,6 +219,7 @@ const Ar = {
219
219
  sendMessage: "Send message",
220
220
  thoughtsGroupTitle: "Reflection",
221
221
  resourcesGroupTitle: "Resources",
222
+ thinking: "Thinking...",
222
223
  feedbackModal: {
223
224
  positive: {
224
225
  title: "What did you like about this response?",
@@ -256,7 +257,7 @@ function R(e) {
256
257
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
257
258
  }, R(e);
258
259
  }
259
- function Ta(e, t) {
260
+ function Da(e, t) {
260
261
  if (!(e instanceof t))
261
262
  throw new TypeError("Cannot call a class as a function");
262
263
  }
@@ -328,7 +329,7 @@ function Ba(e, t) {
328
329
  }
329
330
  var re = /* @__PURE__ */ function(e) {
330
331
  function t() {
331
- return Ta(this, t), _a(this, t, arguments);
332
+ return Da(this, t), _a(this, t, arguments);
332
333
  }
333
334
  return $a(t, e), Ia(t, [{
334
335
  key: "render",
@@ -583,7 +584,7 @@ var Y = /* @__PURE__ */ function(e) {
583
584
  var a = this.props.isAnimationActive;
584
585
  if (a && !this.state.isAnimationFinished)
585
586
  return null;
586
- var o = this.props, s = o.points, l = o.xAxis, d = o.yAxis, i = o.children, m = Te(i, bt);
587
+ var o = this.props, s = o.points, l = o.xAxis, d = o.yAxis, i = o.children, m = De(i, bt);
587
588
  return m ? m.map(function(c, f) {
588
589
  var h = c.props, u = h.direction, g = h.dataKey;
589
590
  return /* @__PURE__ */ k.cloneElement(c, {
@@ -690,7 +691,7 @@ j(Y, "defaultProps", {
690
691
  animationEasing: "linear"
691
692
  });
692
693
  j(Y, "getComposedData", function(e) {
693
- var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, s = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, i = e.offset, m = o.props.tooltipType, c = Te(o.props.children, Nt), f = $(t.dataKey) ? o.props.dataKey : t.dataKey, h = $(r.dataKey) ? o.props.dataKey : r.dataKey, u = a && a.dataKey, g = a ? a.range : re.defaultProps.range, N = g && g[0], A = t.scale.bandwidth ? t.scale.bandwidth() : 0, O = r.scale.bandwidth ? r.scale.bandwidth() : 0, x = s.map(function(b, w) {
694
+ var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, s = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, i = e.offset, m = o.props.tooltipType, c = De(o.props.children, Nt), f = $(t.dataKey) ? o.props.dataKey : t.dataKey, h = $(r.dataKey) ? o.props.dataKey : r.dataKey, u = a && a.dataKey, g = a ? a.range : re.defaultProps.range, N = g && g[0], A = t.scale.bandwidth ? t.scale.bandwidth() : 0, O = r.scale.bandwidth ? r.scale.bandwidth() : 0, x = s.map(function(b, w) {
694
695
  var P = X(b, f), y = X(b, h), v = !$(u) && X(b, u) || "-", L = [{
695
696
  name: $(t.dataKey) ? o.props.name : t.name || t.dataKey,
696
697
  unit: t.unit || "",
@@ -714,7 +715,7 @@ j(Y, "getComposedData", function(e) {
714
715
  dataKey: u,
715
716
  type: m
716
717
  });
717
- var T = we({
718
+ var D = we({
718
719
  axis: t,
719
720
  ticks: l,
720
721
  bandSize: A,
@@ -730,9 +731,9 @@ j(Y, "getComposedData", function(e) {
730
731
  dataKey: h
731
732
  }), p = v !== "-" ? a.scale(v) : N, S = Math.sqrt(Math.max(p, 0) / Math.PI);
732
733
  return F(F({}, b), {}, {
733
- cx: T,
734
+ cx: D,
734
735
  cy: _,
735
- x: T - S,
736
+ x: D - S,
736
737
  y: _ - S,
737
738
  xAxis: t,
738
739
  yAxis: r,
@@ -747,7 +748,7 @@ j(Y, "getComposedData", function(e) {
747
748
  },
748
749
  tooltipPayload: L,
749
750
  tooltipPosition: {
750
- x: T,
751
+ x: D,
751
752
  y: _
752
753
  },
753
754
  payload: b
@@ -799,9 +800,9 @@ const Xa = (e) => {
799
800
  }, Za = ({ dataConfig: e, data: t, xAxis: r, yAxis: a = {
800
801
  hide: !0
801
802
  }, label: o = !1, hideTooltip: s = !1, hideGrid: l = !1, aspect: d, legend: i, showValueUnderLabel: m = !1, bar: c, line: f, scatter: h, onClick: u }, g) => {
802
- var v, L, T, _;
803
- const N = Lt(t), A = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], O = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], x = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], b = [...A, ...O, ...x], w = Math.max(...N.flatMap((p) => b.map((S) => Dt(a != null && a.tickFormatter ? a.tickFormatter(`${p[S]}`) : `${p[S]}`)))), P = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "left"), y = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "right");
804
- return n(Tt, {
803
+ var v, L, D, _;
804
+ const N = Lt(t), A = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], O = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], x = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], b = [...A, ...O, ...x], w = Math.max(...N.flatMap((p) => b.map((S) => Tt(a != null && a.tickFormatter ? a.tickFormatter(`${p[S]}`) : `${p[S]}`)))), P = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "left"), y = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "right");
805
+ return n(Dt, {
805
806
  config: e,
806
807
  ref: g,
807
808
  aspect: d,
@@ -848,7 +849,7 @@ const Xa = (e) => {
848
849
  yAxisId: "right",
849
850
  orientation: "right",
850
851
  tick: !0,
851
- width: a.width ?? w + 20 + (P.length > 0 && ((T = y[0]) != null && T.axisLabel) ? 20 : 0),
852
+ width: a.width ?? w + 20 + (P.length > 0 && ((D = y[0]) != null && D.axisLabel) ? 20 : 0),
852
853
  hide: a.hide || y.some((p) => p == null ? void 0 : p.hideAxis),
853
854
  label: (_ = y[0]) != null && _.axisLabel ? {
854
855
  value: y[0].axisLabel,
@@ -1033,13 +1034,13 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
1033
1034
  type: "info"
1034
1035
  },
1035
1036
  Vt
1036
- ), Dr = I(
1037
+ ), Tr = I(
1037
1038
  {
1038
1039
  name: "BarChart",
1039
1040
  type: "info"
1040
1041
  },
1041
1042
  zt
1042
- ), Tr = I(
1043
+ ), Dr = I(
1043
1044
  {
1044
1045
  name: "CategoryBarChart",
1045
1046
  type: "info"
@@ -1076,7 +1077,7 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
1076
1077
  },
1077
1078
  Qa
1078
1079
  ), $r = Yt, Br = Be, Mr = ["default", "outline", "neutral"], Rr = Be, zr = ["sm", "md", "lg"], Kr = Ht, de = ({ count: e, list: t }) => {
1079
- const [r, a] = D(!1), o = n(Z, {
1080
+ const [r, a] = T(!1), o = n(Z, {
1080
1081
  label: `+${e}`
1081
1082
  });
1082
1083
  return t != null && t.length ? C(Me, {
@@ -1136,7 +1137,7 @@ const lt = ({ chips: e, max: t = 4, remainingCount: r, layout: a = "compact" })
1136
1137
  };
1137
1138
  lt.displayName = "F0ChipList";
1138
1139
  const Wr = qe("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularity: r, onOpenChange: a, minDate: o, maxDate: s, onClear: l, ...d }, i) => {
1139
- const [m, c] = D(""), [f, h] = D(!1), u = Ge();
1140
+ const [m, c] = T(""), [f, h] = T(!1), u = Ge();
1140
1141
  B(() => {
1141
1142
  c(r.toString(e == null ? void 0 : e.value, u));
1142
1143
  }, [e, r, u]);
@@ -1184,7 +1185,7 @@ const Wr = qe("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularit
1184
1185
  });
1185
1186
  ct.displayName = "DateInput";
1186
1187
  function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"], minDate: o, maxDate: s, open: l = !1, ...d }) {
1187
- const [i, m] = D(), [c, f] = D(l);
1188
+ const [i, m] = T(), [c, f] = T(l);
1188
1189
  B(() => {
1189
1190
  f(l);
1190
1191
  }, [l]);
@@ -1211,8 +1212,8 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
1211
1212
  ie(i, y) || m(y);
1212
1213
  }, [t]);
1213
1214
  const O = (y) => {
1214
- const v = N(y), T = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (i == null ? void 0 : i.granularity) && !ie(v, i);
1215
- x(v), T && f(!1);
1215
+ const v = N(y), D = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (i == null ? void 0 : i.granularity) && !ie(v, i);
1216
+ x(v), D && f(!1);
1216
1217
  }, x = (y) => {
1217
1218
  const v = N(y);
1218
1219
  if (m(v), !ie(v, i)) {
@@ -1404,7 +1405,7 @@ const Vr = I({
1404
1405
  }));
1405
1406
  dt.displayName = "ProductBlankslate";
1406
1407
  function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalContainer: s }) {
1407
- const [l, d] = D(e);
1408
+ const [l, d] = T(e);
1408
1409
  return B(() => {
1409
1410
  d(e);
1410
1411
  }, [e]), n(la, {
@@ -1442,7 +1443,7 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
1442
1443
  });
1443
1444
  }
1444
1445
  function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: s, successMessage: l, loadingState: d, nextSteps: i, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag: N, promoTag: A, showResponseDialog: O = !0 }) {
1445
- const [x, b] = D(e), [w, P] = D(null), [y, v] = D(!1), L = async () => {
1446
+ const [x, b] = T(e), [w, P] = T(null), [y, v] = T(!1), L = async () => {
1446
1447
  if (c != null && c.onClick) {
1447
1448
  v(!0);
1448
1449
  try {
@@ -1453,13 +1454,13 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
1453
1454
  v(!1);
1454
1455
  }
1455
1456
  }
1456
- }, T = () => {
1457
+ }, D = () => {
1457
1458
  b(!1), t == null || t();
1458
1459
  }, _ = y;
1459
1460
  return C(ae, {
1460
1461
  children: [n(yr, {
1461
1462
  isOpen: x,
1462
- onClose: T,
1463
+ onClose: D,
1463
1464
  title: f,
1464
1465
  module: h,
1465
1466
  portalContainer: g,
@@ -1494,7 +1495,7 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
1494
1495
  }), w && O && n(Ue, {
1495
1496
  open: !0,
1496
1497
  onClose: () => {
1497
- T(), P(null);
1498
+ D(), P(null);
1498
1499
  },
1499
1500
  success: w === "success",
1500
1501
  errorMessage: s,
@@ -1506,7 +1507,7 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
1506
1507
  });
1507
1508
  }
1508
1509
  function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o, width: s, trackVisibility: l, actions: d, showConfirmation: i = !0 }) {
1509
- const [m, c] = D(!1), f = () => {
1510
+ const [m, c] = T(!1), f = () => {
1510
1511
  c(!0), a && a();
1511
1512
  };
1512
1513
  B(() => {
@@ -1607,7 +1608,7 @@ const gr = V(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
1607
1608
  });
1608
1609
  gr.displayName = "UpsellingBanner";
1609
1610
  function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: s = !0, side: l = "right", align: d = "center", icon: i = va, mediaUrl: m, title: c, description: f, width: h = "300px", trackVisibility: u, actions: g, onClick: N, hideLabel: A = !1 }) {
1610
- const [O, x] = D(!1), [b, w] = D(null), [P, y] = D(null), v = (S) => {
1611
+ const [O, x] = T(!1), [b, w] = T(null), [P, y] = T(null), v = (S) => {
1611
1612
  t(S), N && N();
1612
1613
  }, L = async (S) => {
1613
1614
  if (S.type === "upsell") {
@@ -1618,7 +1619,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
1618
1619
  x(!0), w("error");
1619
1620
  }
1620
1621
  }
1621
- }, T = () => {
1622
+ }, D = () => {
1622
1623
  w(null), x(!1), y(null), t(!1);
1623
1624
  }, _ = e && !O, p = g == null ? void 0 : g.map((S) => S.type === "upsell" ? {
1624
1625
  ...S,
@@ -1656,7 +1657,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
1656
1657
  })]
1657
1658
  }), (P == null ? void 0 : P.type) === "upsell" && P.showConfirmation && b && n(Ue, {
1658
1659
  open: !0,
1659
- onClose: T,
1660
+ onClose: D,
1660
1661
  success: b === "success",
1661
1662
  errorMessage: P.errorMessage,
1662
1663
  successMessage: P.successMessage,
@@ -1666,8 +1667,8 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
1666
1667
  })]
1667
1668
  });
1668
1669
  }
1669
- const xr = Da(null), wr = ({ children: e, fullScreen: t = !0 }) => {
1670
- const r = pe(null), [a, o] = D(r.current);
1670
+ const xr = Ta(null), wr = ({ children: e, fullScreen: t = !0 }) => {
1671
+ const r = pe(null), [a, o] = T(r.current);
1671
1672
  return Aa(() => {
1672
1673
  o(r.current);
1673
1674
  }, []), n(xr.Provider, {
@@ -1715,19 +1716,19 @@ const xr = Da(null), wr = ({ children: e, fullScreen: t = !0 }) => {
1715
1716
  })
1716
1717
  })
1717
1718
  })
1718
- }), De = (e) => `datacollection-${e}`, Zr = {
1719
+ }), Te = (e) => `datacollection-${e}`, Zr = {
1719
1720
  get: async (e) => JSON.parse(
1720
- localStorage.getItem(De(e)) ?? "{}"
1721
+ localStorage.getItem(Te(e)) ?? "{}"
1721
1722
  ),
1722
1723
  set: async (e, t) => {
1723
- localStorage.setItem(De(e), JSON.stringify(t));
1724
+ localStorage.setItem(Te(e), JSON.stringify(t));
1724
1725
  }
1725
1726
  };
1726
1727
  export {
1727
1728
  Lr as AreaChart,
1728
1729
  tn as Await,
1729
- Dr as BarChart,
1730
- Tr as CategoryBarChart,
1730
+ Tr as BarChart,
1731
+ Dr as CategoryBarChart,
1731
1732
  jr as ComboChart,
1732
1733
  an as DndProvider,
1733
1734
  rn as EmojiImage,
@@ -1769,12 +1770,12 @@ export {
1769
1770
  Ir as PieChart,
1770
1771
  Pa as PrivacyModeProvider,
1771
1772
  dt as ProductBlankslate,
1772
- Dn as ProductCard,
1773
+ Tn as ProductCard,
1773
1774
  Ur as ProductModal,
1774
1775
  br as ProductWidget,
1775
1776
  Er as ProgressBarChart,
1776
1777
  Vr as StandardLayout,
1777
- Tn as TagCounter,
1778
+ Dn as TagCounter,
1778
1779
  Yr as TwoColumnLayout,
1779
1780
  Ue as UpsellRequestResponseDialog,
1780
1781
  gr as UpsellingBanner,