@factorialco/f0-react 14.31.0 → 14.31.2

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,7 +1,7 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
- import { $ as t, $n as n, $r as r, $t as i, A as a, An as o, Ar as s, Bn as c, Bt as l, C as u, Ci as d, Cn as f, Cr as p, D as m, Dn as h, Dr as g, Dt as _, E as v, En as y, Er as b, F as x, Fn as S, Ft as C, Gn as w, Gr as T, Gt as E, Hn as D, Ht as O, I as k, In as A, It as j, Jn as M, Jr as N, Jt as P, Kn as F, Kr as I, Kt as ee, Ln as te, Lt as L, M as ne, Mn as re, Mr as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Or as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qr as ge, Rn as _e, Rt as ve, S as ye, Sn as be, Sr as xe, T as Se, Tn as Ce, Tr as we, Un as Te, Ur as Ee, Ut as De, Vn as Oe, Vt as ke, Wn as Ae, Wt as je, Xn as Me, Xr as Ne, Xt as Pe, Yn as Fe, Zr as Ie, Zt as Le, _ as Re, _r as ze, _t as Be, an as Ve, ar as He, b as Ue, bi as We, bn as Ge, br as Ke, bt as qe, c as Je, cn as Ye, cr as Xe, ct as Ze, d as Qe, di as $e, dr as et, dt as tt, en as nt, er as rt, f as it, fi as at, fr as ot, gr as st, gt as ct, h as lt, hr as ut, ht as dt, i as ft, ii as pt, ir as mt, j as ht, jn as gt, jr as _t, k as vt, kn as yt, kr as bt, l as xt, ln as St, lr as Ct, m as wt, mr as Tt, mt as Et, ni as Dt, nn as Ot, nr as kt, on as At, or as jt, pr as Mt, pt as Nt, qn as Pt, qr as Ft, qt as It, ri as Lt, rr as Rt, s as zt, sn as Bt, sr as Vt, t as Ht, ti as Ut, tn as Wt, tr as Gt, u as Kt, ui as qt, ur as Jt, v as Yt, vi as Xt, vr as Zt, vt as Qt, w as $t, wn as en, wr as tn, x as nn, xn as rn, xr as an, y as on, yi as sn, yr as cn, yt as ln, zn as un } from "./CoachmarkProvider-DPSPgzFw.js";
3
- import { a as R, i as dn, n as fn, o as pn, r as z, t as mn } from "./i18n-provider-C0z4575b.js";
4
- import { n as hn, t as gn } from "./skeleton-DWdckpXm.js";
2
+ import { $ as t, $n as n, $r as r, $t as i, A as a, An as o, Ar as s, Bn as c, Bt as l, C as u, Ci as d, Cn as f, Cr as p, D as m, Dn as h, Dr as g, Dt as _, E as v, En as y, Er as b, F as x, Fn as S, Ft as C, Gn as w, Gr as T, Gt as E, Hn as D, Ht as O, I as k, In as A, It as j, Jn as M, Jr as N, Jt as P, Kn as F, Kr as I, Kt as ee, Ln as te, Lt as ne, M as re, Mn as ie, Mr as ae, N as oe, Nn as se, Nt as ce, O as le, On as ue, Or as de, P as fe, Pn as pe, Pt as me, Q as he, Qn as ge, Qr as _e, Rn as ve, Rt as ye, S as be, Sn as xe, Sr as Se, T as Ce, Tn as we, Tr as Te, Un as Ee, Ur as De, Ut as Oe, Vn as ke, Vt as Ae, Wn as je, Wt as Me, Xn as Ne, Xr as Pe, Xt as Fe, Yn as Ie, Zr as Le, Zt as Re, _ as ze, _r as Be, _t as Ve, an as He, ar as Ue, b as We, bi as Ge, bn as Ke, br as qe, bt as Je, c as Ye, cn as Xe, cr as Ze, ct as Qe, d as $e, di as et, dr as tt, dt as nt, en as rt, er as it, f as at, fi as ot, fr as st, gr as ct, gt as lt, h as ut, hr as dt, ht as ft, i as pt, ii as mt, ir as ht, j as gt, jn as _t, jr as vt, k as yt, kn as bt, kr as xt, l as St, ln as Ct, lr as wt, m as Tt, mr as Et, mt as Dt, ni as Ot, nn as kt, nr as At, on as jt, or as Mt, pr as Nt, pt as Pt, qn as Ft, qr as It, qt as Lt, ri as Rt, rr as zt, s as Bt, sn as Vt, sr as Ht, t as Ut, ti as Wt, tn as Gt, tr as Kt, u as qt, ui as Jt, ur as Yt, v as Xt, vi as Zt, vr as Qt, vt as $t, w as en, wn as tn, wr as nn, x as rn, xn as an, xr as on, y as sn, yi as cn, yr as ln, yt as un, zn as dn } from "./CoachmarkProvider-C78Xiefk.js";
3
+ import { a as L, i as fn, n as pn, o as mn, r as R, t as hn } from "./i18n-provider-C0z4575b.js";
4
+ import { n as gn, t as z } from "./skeleton-DWdckpXm.js";
5
5
  import { A as _n, C as vn, D as yn, F as bn, I as xn, L as B, M as Sn, N as Cn, O as wn, P as Tn, R as En, S as Dn, _ as On, b as kn, c as An, f as jn, g as Mn, h as Nn, j as Pn, k as Fn, l as In, m as Ln, p as Rn, v as zn, w as Bn, x as Vn, y as Hn } from "./tooltip-DFMOxXQO.js";
6
6
  import { A as Un, K as Wn, M as Gn, N as Kn, U as qn, b as Jn, f as Yn, h as Xn, j as Zn, m as Qn, n as $n, p as er, r as tr, t as V, w as nr, y as rr, z as ir } from "./F0Button-BfcH39fa.js";
7
7
  import { $a as ar, $c as or, $o as sr, $r as cr, Ai as lr, An as ur, Ar as dr, B as fr, Bi as pr, Br as mr, Ci as hr, Di as gr, Do as _r, Dr as vr, Er as yr, F as br, Fc as xr, Fi as Sr, Fn as Cr, Gs as wr, Hr as Tr, I as Er, Ic as Dr, Ii as Or, In as kr, Kc as Ar, L as jr, Lc as Mr, Li as Nr, Lr as Pr, M as Fr, Mi as Ir, Mn as Lr, Mr as Rr, Mt as zr, N as Br, Nc as Vr, Ni as Hr, Nn as Ur, No as Wr, Nr as Gr, Oi as Kr, Oo as qr, Or as Jr, Os as Yr, P as Xr, Pc as Zr, Pi as Qr, Pn as $r, Po as ei, Ps as ti, Qr as ni, Qs as ri, R as ii, Rc as ai, Ri as oi, Rr as si, Si as ci, Sn as li, Tc as ui, To as di, Tr as fi, Uo as pi, Vc as mi, Vi as hi, Vr as gi, Vs as _i, Wo as vi, Ws as yi, Zo as bi, Zs as xi, _i as Si, _n as Ci, ai as wi, bc as Ti, bi as Ei, bn as Di, fn as Oi, fs as ki, gi as Ai, gn as ji, hi as Mi, hn as Ni, ii as Pi, it as Fi, ji as Ii, jn as Li, ki as Ri, ko as zi, kr as Bi, li as Vi, lo as Hi, mn as Ui, n as Wi, nl as Gi, qs as Ki, rc as qi, ri as Ji, rs as Yi, si as Xi, t as Zi, uo as Qi, vn as $i, wc as ea, wi as ta, wr as na, xn as ra, xo as ia, yi as aa, z as oa, zc as sa, zi as ca, zr as la } from "./F0CanvasPanel-D7WW8pd6.js";
@@ -52,7 +52,7 @@ var jc = {
52
52
  className: "@container",
53
53
  children: [/* @__PURE__ */ Z("div", {
54
54
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
55
- children: [/* @__PURE__ */ X(at, {
55
+ children: [/* @__PURE__ */ X(ot, {
56
56
  columns: jc,
57
57
  showArrows: !1,
58
58
  children: i
@@ -92,7 +92,7 @@ var jc = {
92
92
  })
93
93
  }));
94
94
  Pc.displayName = "StandardLayout";
95
- var Fc = R(to({
95
+ var Fc = L(to({
96
96
  name: "StandardLayout",
97
97
  type: "layout"
98
98
  }, Pc)), Ic = bc(function({ children: e, sideContent: t, mainColumnPosition: n = "left", sticky: r = !1, responsiveStackOrder: i = "side" }, a) {
@@ -111,7 +111,7 @@ var Fc = R(to({
111
111
  })]
112
112
  })
113
113
  });
114
- }), Lc = R(to({
114
+ }), Lc = L(to({
115
115
  name: "TwoColumnLayout",
116
116
  type: "layout"
117
117
  }, Ic)), Rc = ({ children: e, className: t }) => /* @__PURE__ */ X("aside", {
@@ -2702,7 +2702,7 @@ var bl = ({ options: e, widgets: t, onChange: n, className: r, static: i, forceP
2702
2702
  });
2703
2703
  };
2704
2704
  bl.displayName = "F0GridStack";
2705
- var xl = R(hn("F0GridStack", bl)), Sl = (e, t, n) => /* @__PURE__ */ X("div", { children: e }), Cl = ({ widgets: e = [], editMode: t = !1, onChange: n = () => {}, WidgetWrapper: r = Sl, main: i = !1, deps: a }) => {
2705
+ var xl = L(gn("F0GridStack", bl)), Sl = (e, t, n) => /* @__PURE__ */ X("div", { children: e }), Cl = ({ widgets: e = [], editMode: t = !1, onChange: n = () => {}, WidgetWrapper: r = Sl, main: i = !1, deps: a }) => {
2706
2706
  let o = W((e, t, n) => /* @__PURE__ */ X(qn.div, {
2707
2707
  className: "h-full w-full",
2708
2708
  initial: {
@@ -2886,7 +2886,7 @@ var wl = (e, t) => {
2886
2886
  }, Tl = (e, t) => {
2887
2887
  let n = t;
2888
2888
  return n.displayName = e, n.__isPageLayoutGroup = !0, n;
2889
- }, El = Un.filter((e) => e !== "ai"), Dl = Gn, Ol = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(pt, {
2889
+ }, El = Un.filter((e) => e !== "ai"), Dl = Gn, Ol = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(mt, {
2890
2890
  header: { title: t },
2891
2891
  draggable: n,
2892
2892
  actions: r,
@@ -2908,7 +2908,7 @@ var wl = (e, t) => {
2908
2908
  })
2909
2909
  });
2910
2910
  kl.displayName = "Dashboard";
2911
- var Al = Tl("Dashboard", kl), jl = R(hn("Dashboard", Al)), Ml = eo({
2911
+ var Al = Tl("Dashboard", kl), jl = L(gn("Dashboard", Al)), Ml = eo({
2912
2912
  base: "flex w-full flex-col p-4",
2913
2913
  variants: { variant: {
2914
2914
  default: "",
@@ -2987,7 +2987,7 @@ Bl.displayName = "GroupLinear", Bl.__isPageLayoutGroup = !0;
2987
2987
  //#region src/blocks/layouts/Layout/groups/GroupMasonry/components/SortableBlock.tsx
2988
2988
  var Vl = ({ id: e, children: t }) => {
2989
2989
  let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = N({ id: e }), s = {
2990
- transform: Lt.Translate.toString(a),
2990
+ transform: Rt.Translate.toString(a),
2991
2991
  transition: o,
2992
2992
  flex: "1 1",
2993
2993
  display: "flex",
@@ -3008,10 +3008,10 @@ var Vl = ({ id: e, children: t }) => {
3008
3008
  render: e.render
3009
3009
  })));
3010
3010
  }, [e]);
3011
- let [s, c] = J(null), l = Dt(Ut(r), Ut(ge, { coordinateGetter: Ft }));
3011
+ let [s, c] = J(null), l = Ot(Wt(r), Wt(_e, { coordinateGetter: It }));
3012
3012
  return /* @__PURE__ */ X("div", {
3013
3013
  className: B("flex flex-wrap items-stretch gap-4", i && "flex-1"),
3014
- children: /* @__PURE__ */ Z(Ne, {
3014
+ children: /* @__PURE__ */ Z(Pe, {
3015
3015
  sensors: l,
3016
3016
  onDragStart: (e) => {
3017
3017
  c(e.active.id);
@@ -3029,7 +3029,7 @@ var Vl = ({ id: e, children: t }) => {
3029
3029
  id: e.id,
3030
3030
  children: e.render
3031
3031
  }, e.id))
3032
- }), /* @__PURE__ */ X(Ie, { children: s ? /* @__PURE__ */ X(Vl, {
3032
+ }), /* @__PURE__ */ X(Le, { children: s ? /* @__PURE__ */ X(Vl, {
3033
3033
  id: s,
3034
3034
  children: a.find((e) => e.id === s)?.render
3035
3035
  }) : null })]
@@ -3061,13 +3061,13 @@ var Ul = bc(function({ children: e, aside: t, header: n, variant: r = "main-asid
3061
3061
  })
3062
3062
  });
3063
3063
  }), Wl = {
3064
- Page: R(hn("Page", Ul)),
3065
- Block: R(hn("Block", Fl)),
3066
- BlockContent: R(hn("BlockContent", Il)),
3067
- Group: R(hn("Group", Bl)),
3068
- GroupGrid: R(hn("GroupGrid", Cl)),
3069
- GroupMasonry: R(hn("GroupMasonry", Hl))
3070
- }, Gl = Fc, Kl = Lc, ql = R(to({
3064
+ Page: L(gn("Page", Ul)),
3065
+ Block: L(gn("Block", Fl)),
3066
+ BlockContent: L(gn("BlockContent", Il)),
3067
+ Group: L(gn("Group", Bl)),
3068
+ GroupGrid: L(gn("GroupGrid", Cl)),
3069
+ GroupMasonry: L(gn("GroupMasonry", Hl))
3070
+ }, Gl = Fc, Kl = Lc, ql = L(to({
3071
3071
  name: "HomeLayout",
3072
3072
  type: "layout"
3073
3073
  }, Mc)), Jl = [
@@ -3107,13 +3107,13 @@ var Ul = bc(function({ children: e, aside: t, header: n, variant: r = "main-asid
3107
3107
  });
3108
3108
  }, Zl = () => /* @__PURE__ */ Z("div", {
3109
3109
  className: "relative flex h-full w-full cursor-progress flex-col gap-2",
3110
- children: [/* @__PURE__ */ X(gn, { className: "h-3 w-full max-w-16 rounded-md" }), /* @__PURE__ */ Z("div", {
3110
+ children: [/* @__PURE__ */ X(z, { className: "h-3 w-full max-w-16 rounded-md" }), /* @__PURE__ */ Z("div", {
3111
3111
  className: "flex flex-row flex-wrap items-end gap-2",
3112
- children: [/* @__PURE__ */ X(gn, { className: "h-8 w-full max-w-36 rounded-sm" }), /* @__PURE__ */ X(gn, { className: "h-6 w-full max-w-18 rounded-sm" })]
3112
+ children: [/* @__PURE__ */ X(z, { className: "h-8 w-full max-w-36 rounded-sm" }), /* @__PURE__ */ X(z, { className: "h-6 w-full max-w-18 rounded-sm" })]
3113
3113
  })]
3114
3114
  });
3115
3115
  Xl.displayName = "F0BigNumber";
3116
- var Ql = ia(Xl, Zl), $l = R(Ql), eu = [
3116
+ var Ql = ia(Xl, Zl), $l = L(Ql), eu = [
3117
3117
  "default",
3118
3118
  "outline",
3119
3119
  "neutral"
@@ -3143,7 +3143,7 @@ var Ql = ia(Xl, Zl), $l = R(Ql), eu = [
3143
3143
  }
3144
3144
  })
3145
3145
  }), ou = ({ item: e, open: t, onOpenChange: n }) => {
3146
- let r = Xn(), i = z().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
3146
+ let r = Xn(), i = R().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
3147
3147
  return /* @__PURE__ */ X(gr, {
3148
3148
  open: t,
3149
3149
  onOpenChange: n,
@@ -3220,7 +3220,7 @@ var Ql = ia(Xl, Zl), $l = R(Ql), eu = [
3220
3220
  className: B("flex flex-col rounded-md border border-solid border-f1-border-secondary", "overflow-hidden bg-f1-background"),
3221
3221
  children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ Z(vc, { children: [t > 0 ? /* @__PURE__ */ X("div", { className: "h-px w-full bg-f1-border-secondary" }) : null, /* @__PURE__ */ Z("div", {
3222
3222
  className: "flex items-center gap-3 px-4 py-3",
3223
- children: [/* @__PURE__ */ X(gn, { className: "h-4 flex-1 max-w-48" }), /* @__PURE__ */ X(gn, { className: "ml-auto h-7 w-7 shrink-0 rounded" })]
3223
+ children: [/* @__PURE__ */ X(z, { className: "h-4 flex-1 max-w-48" }), /* @__PURE__ */ X(z, { className: "ml-auto h-7 w-7 shrink-0 rounded" })]
3224
3224
  })] }, t))
3225
3225
  }), cu = bc((e, t) => {
3226
3226
  let { items: n, value: r, defaultValue: i, onValueChange: a, ...o } = e, s = K(() => i === void 0 ? n.filter((e) => e.defaultOpen).map((e) => e.id) : i, [i, n]), [c = [], l] = tc({
@@ -3243,7 +3243,7 @@ var Ql = ia(Xl, Zl), $l = R(Ql), eu = [
3243
3243
  });
3244
3244
  });
3245
3245
  cu.displayName = "F0Accordion";
3246
- var lu = R(hn("F0Accordion", ia(cu, su))), uu = [
3246
+ var lu = L(gn("F0Accordion", ia(cu, su))), uu = [
3247
3247
  "info",
3248
3248
  "warning",
3249
3249
  "critical",
@@ -3301,7 +3301,7 @@ var fu = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
3301
3301
  });
3302
3302
  };
3303
3303
  fu.displayName = "F0ChipList";
3304
- var pu = R(hn("F0ChipList", fu)), mu = [
3304
+ var pu = L(gn("F0ChipList", fu)), mu = [
3305
3305
  "blur",
3306
3306
  "escape",
3307
3307
  "commit",
@@ -3338,7 +3338,7 @@ var pu = R(hn("F0ChipList", fu)), mu = [
3338
3338
  disableContentPadding: _ ?? !1,
3339
3339
  children: r
3340
3340
  }),
3341
- /* @__PURE__ */ X(Oe, {
3341
+ /* @__PURE__ */ X(ke, {
3342
3342
  primaryAction: o ?? [],
3343
3343
  secondaryAction: s ?? [],
3344
3344
  onClose: () => x(!1)
@@ -3357,7 +3357,7 @@ var pu = R(hn("F0ChipList", fu)), mu = [
3357
3357
  o,
3358
3358
  s
3359
3359
  ]);
3360
- return /* @__PURE__ */ X(un, {
3360
+ return /* @__PURE__ */ X(dn, {
3361
3361
  isOpen: n && b,
3362
3362
  onClose: t,
3363
3363
  position: i,
@@ -3372,9 +3372,9 @@ var pu = R(hn("F0ChipList", fu)), mu = [
3372
3372
  });
3373
3373
  }, yu = (e) => /* @__PURE__ */ X(vu, { ...e });
3374
3374
  yu.displayName = "F0Drawer";
3375
- var bu = hn("F0Drawer", yu), xu = 388;
3375
+ var bu = gn("F0Drawer", yu), xu = 388;
3376
3376
  function Su({ filters: e, value: t, onChange: n, height: r, width: i = 600, className: a, showApplyButton: o = !0, applyButtonLabel: s, dataTestId: c }) {
3377
- let l = z(), u = Object.keys(e)[0] ?? null, [d, f] = J(u), [p, m] = J(t);
3377
+ let l = R(), u = Object.keys(e)[0] ?? null, [d, f] = J(u), [p, m] = J(t);
3378
3378
  G(() => {
3379
3379
  m(t);
3380
3380
  }, [t]), G(() => {
@@ -3409,7 +3409,7 @@ function Su({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
3409
3409
  let r = cs(n.type);
3410
3410
  return Math.max(e, r?.formHeight || xu);
3411
3411
  }, 0), [e, r]);
3412
- return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(dn, {
3412
+ return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(fn, {
3413
3413
  dataTestId: c,
3414
3414
  children: /* @__PURE__ */ X("div", {
3415
3415
  className: B("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
@@ -3480,7 +3480,7 @@ function Eu(e) {
3480
3480
  let i = {
3481
3481
  ...n,
3482
3482
  ...e
3483
- }, a = Ge(t, i), o = {};
3483
+ }, a = Ke(t, i), o = {};
3484
3484
  for (let [e, t] of Object.entries(i)) o[e] = t === null ? void 0 : t;
3485
3485
  let s = r ? { errorMap: r } : void 0, c = await a.safeParseAsync(o, s);
3486
3486
  if (c.success) return {
@@ -3673,25 +3673,25 @@ var Ou = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
3673
3673
  children: e.content
3674
3674
  }, e.id) }, e.id)) });
3675
3675
  }, Mu = ({ children: e }) => {
3676
- let t = Dc(It.subscribe, It.getSnapshot, It.getServerSnapshot), n = z(), [r, i] = J(null);
3676
+ let t = Dc(Lt.subscribe, Lt.getSnapshot, Lt.getServerSnapshot), n = R(), [r, i] = J(null);
3677
3677
  G(() => {
3678
- let e = It.acquireRenderer();
3678
+ let e = Lt.acquireRenderer();
3679
3679
  return i(e.id), e.release;
3680
3680
  }, []);
3681
- let a = Dc(It.subscribeRenderer, It.getActiveRendererId, () => null), o = r !== null && r === a;
3681
+ let a = Dc(Lt.subscribeRenderer, Lt.getActiveRendererId, () => null), o = r !== null && r === a;
3682
3682
  return G(() => {
3683
- It.setDefaultActionLabels({
3683
+ Lt.setDefaultActionLabels({
3684
3684
  ok: n.actions.ok,
3685
3685
  cancel: n.actions.cancel
3686
3686
  });
3687
3687
  }, [n]), /* @__PURE__ */ Z(Y, { children: [o && typeof document < "u" ? kc(/* @__PURE__ */ X(ju, { items: t }), document.body) : null, e] });
3688
3688
  }, Nu = 200, Pu = ({ children: e }) => {
3689
- let t = Dc(De.subscribe, De.getSnapshot, De.getServerSnapshot), [n, r] = J(null);
3689
+ let t = Dc(Oe.subscribe, Oe.getSnapshot, Oe.getServerSnapshot), [n, r] = J(null);
3690
3690
  G(() => {
3691
- let e = De.acquireRenderer();
3691
+ let e = Oe.acquireRenderer();
3692
3692
  return r(e.id), e.release;
3693
3693
  }, []);
3694
- let i = Dc(De.subscribeRenderer, De.getActiveRendererId, () => null);
3694
+ let i = Dc(Oe.subscribeRenderer, Oe.getActiveRendererId, () => null);
3695
3695
  return /* @__PURE__ */ Z(Y, { children: [n !== null && n === i && typeof document < "u" ? kc(/* @__PURE__ */ X(Fu, { items: t }), document.body) : null, e] });
3696
3696
  }, Fu = ({ items: e }) => {
3697
3697
  let [t, n] = J(e), r = q(e), i = q(/* @__PURE__ */ new Map());
@@ -3732,9 +3732,9 @@ function Iu({ children: e }) {
3732
3732
  registerInlineRow: void 0,
3733
3733
  nullableEmptyFields: void 0
3734
3734
  }, [t]);
3735
- return /* @__PURE__ */ X(en.Provider, {
3735
+ return /* @__PURE__ */ X(tn.Provider, {
3736
3736
  value: n,
3737
- children: /* @__PURE__ */ X(Le.Provider, {
3737
+ children: /* @__PURE__ */ X(Re.Provider, {
3738
3738
  value: null,
3739
3739
  children: e
3740
3740
  })
@@ -3787,7 +3787,7 @@ function Lu({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
3787
3787
  children: "*"
3788
3788
  }) : null]
3789
3789
  }) : null,
3790
- ht({
3790
+ gt({
3791
3791
  field: S,
3792
3792
  formField: y,
3793
3793
  fieldState: b,
@@ -3945,7 +3945,7 @@ var Ku = () => {}, qu = ({ steps: e, children: t, isOpen: n, onClose: r = Ku, ti
3945
3945
  allowStepSkipping: f,
3946
3946
  autoCloseOnLastStepSubmit: p,
3947
3947
  onClose: r
3948
- }), g = z(), _ = e[h.currentStep], v = h.currentStep === 0, y = h.currentStep === e.length - 1, b = y ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, x = _?.previousLabel ?? c ?? g.wizard.previous, S = K(() => ({
3948
+ }), g = R(), _ = e[h.currentStep], v = h.currentStep === 0, y = h.currentStep === e.length - 1, b = y ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, x = _?.previousLabel ?? c ?? g.wizard.previous, S = K(() => ({
3949
3949
  label: b,
3950
3950
  icon: y ? void 0 : Ar,
3951
3951
  onClick: () => void h.goNext(),
@@ -3966,7 +3966,7 @@ var Ku = () => {}, qu = ({ steps: e, children: t, isOpen: n, onClose: r = Ku, ti
3966
3966
  x,
3967
3967
  h
3968
3968
  ]);
3969
- return /* @__PURE__ */ X(je, {
3969
+ return /* @__PURE__ */ X(Me, {
3970
3970
  isOpen: n,
3971
3971
  onClose: r,
3972
3972
  size: a,
@@ -4000,7 +4000,7 @@ var Ku = () => {}, qu = ({ steps: e, children: t, isOpen: n, onClose: r = Ku, ti
4000
4000
  })
4001
4001
  });
4002
4002
  };
4003
- qu.displayName = "F0Wizard", R(qu);
4003
+ qu.displayName = "F0Wizard", L(qu);
4004
4004
  //#endregion
4005
4005
  //#region src/blocks/F0WizardForm/F0WizardForm.tsx
4006
4006
  function Ju(e) {
@@ -4036,7 +4036,7 @@ function Zu(e, t, n) {
4036
4036
  }
4037
4037
  var Qu = 3e3;
4038
4038
  function $u() {
4039
- let { forms: e } = z(), [t, n] = J("idle"), [r, i] = J(), a = q(null);
4039
+ let { forms: e } = R(), [t, n] = J("idle"), [r, i] = J(), a = q(null);
4040
4040
  G(() => () => {
4041
4041
  a.current && clearTimeout(a.current);
4042
4042
  }, []);
@@ -4047,7 +4047,7 @@ function $u() {
4047
4047
  }, []), s = t === "success" ? r ?? e.actionBar.saved : void 0;
4048
4048
  return {
4049
4049
  showSuccess: o,
4050
- ActionBar: K(() => /* @__PURE__ */ X(Vt, {
4050
+ ActionBar: K(() => /* @__PURE__ */ X(Ht, {
4051
4051
  isOpen: t === "success",
4052
4052
  variant: "light",
4053
4053
  status: t,
@@ -4128,7 +4128,7 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4128
4128
  m,
4129
4129
  I,
4130
4130
  ee
4131
- ]), L = K(() => ed({
4131
+ ]), ne = K(() => ed({
4132
4132
  sectionIds: w,
4133
4133
  sections: v,
4134
4134
  customSteps: E,
@@ -4146,16 +4146,16 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4146
4146
  A,
4147
4147
  m,
4148
4148
  ee
4149
- ]), ne = q(null), { showSuccess: re, ActionBar: ie } = $u(), ae = W((e) => async (t) => {
4149
+ ]), re = q(null), { showSuccess: ie, ActionBar: ae } = $u(), oe = W((e) => async (t) => {
4150
4150
  D.current[e] = t;
4151
4151
  let n = await b({
4152
4152
  sectionId: e,
4153
4153
  data: t,
4154
4154
  fullData: { ...D.current }
4155
4155
  });
4156
- return ne.current = n, n.success && n.message && re(n.message), n;
4157
- }, [b, re]), oe = W(() => {
4158
- if (ne.current?.success) {
4156
+ return re.current = n, n.success && n.message && ie(n.message), n;
4157
+ }, [b, ie]), se = W(() => {
4158
+ if (re.current?.success) {
4159
4159
  if (p) {
4160
4160
  let e = p({ fullData: { ...D.current } });
4161
4161
  window.location.href = e;
@@ -4165,7 +4165,7 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4165
4165
  f,
4166
4166
  p,
4167
4167
  r
4168
- ]), se = W(() => {
4168
+ ]), ce = W(() => {
4169
4169
  let e = td(O.current, w, E);
4170
4170
  for (let t of e) {
4171
4171
  let e = k[t];
@@ -4175,11 +4175,11 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4175
4175
  w,
4176
4176
  E,
4177
4177
  k
4178
- ]), ce = W((e) => {
4179
- se(), O.current = e, u?.(e);
4180
- }, [se, u]);
4178
+ ]), le = W((e) => {
4179
+ ce(), O.current = e, u?.(e);
4180
+ }, [ce, u]);
4181
4181
  return /* @__PURE__ */ X(qu, {
4182
- steps: L,
4182
+ steps: ne,
4183
4183
  isOpen: n,
4184
4184
  onClose: r,
4185
4185
  title: i,
@@ -4188,8 +4188,8 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4188
4188
  nextLabel: c,
4189
4189
  previousLabel: l,
4190
4190
  submitLabel: C,
4191
- onSubmit: oe,
4192
- onStepChanged: ce,
4191
+ onSubmit: se,
4192
+ onStepChanged: le,
4193
4193
  allowStepSkipping: d,
4194
4194
  children: ({ currentStep: t }) => {
4195
4195
  let n = td(t, w, E);
@@ -4205,7 +4205,7 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4205
4205
  schema: n,
4206
4206
  sectionConfig: r,
4207
4207
  defaultValues: i ?? a,
4208
- onSubmit: ae(t),
4208
+ onSubmit: oe(t),
4209
4209
  submitConfig: x,
4210
4210
  errorTriggerMode: S,
4211
4211
  sectionForms: k,
@@ -4219,12 +4219,12 @@ function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4219
4219
  isLoading: e.isLoading
4220
4220
  }, t);
4221
4221
  })
4222
- }), ie] });
4222
+ }), ae] });
4223
4223
  }
4224
4224
  });
4225
4225
  }
4226
4226
  function rd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultValues: i, onSubmit: a, submitConfig: o, errorTriggerMode: s, sectionForms: c, onErrorStateChange: l, renderCustomField: u, isLoading: d }) {
4227
- let f = rn();
4227
+ let f = an();
4228
4228
  G(() => (c[e] = f, () => {
4229
4229
  c[e] = null;
4230
4230
  }), [
@@ -4235,7 +4235,7 @@ function rd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
4235
4235
  let p = q(l);
4236
4236
  return p.current = l, G(() => {
4237
4237
  p.current(f.hasErrors);
4238
- }, [f.hasErrors]), /* @__PURE__ */ X(vt, {
4238
+ }, [f.hasErrors]), /* @__PURE__ */ X(yt, {
4239
4239
  formName: t,
4240
4240
  sectionId: e,
4241
4241
  schema: n,
@@ -4253,7 +4253,7 @@ function rd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
4253
4253
  });
4254
4254
  }
4255
4255
  function id({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: u, allowStepSkipping: d, autoCloseOnLastStepSubmit: f, linkAfterLastStepSubmit: p, autoSkipCompletedSteps: m = !1, renderCustomField: h }) {
4256
- let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => Cr(_), [_]), T = K(() => Yu(_, v), [_, v]), E = W((e) => Ju(Xu(w, e)), [w]), D = rn(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
4256
+ let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => Cr(_), [_]), T = K(() => Yu(_, v), [_, v]), E = W((e) => Ju(Xu(w, e)), [w]), D = an(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
4257
4257
  await D.submit();
4258
4258
  }, [D]), j = W((e) => D.hasErrors, [D.hasErrors]), M = t ?? e.steps, N = K(() => M ?? T.map((e) => ({
4259
4259
  title: v?.[e]?.title ?? e,
@@ -4298,16 +4298,16 @@ function id({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4298
4298
  j,
4299
4299
  m,
4300
4300
  P
4301
- ]), ee = q(null), te = q(null), { showSuccess: L, ActionBar: ne } = $u(), re = W(async (e) => {
4301
+ ]), ee = q(null), te = q(null), { showSuccess: ne, ActionBar: re } = $u(), ie = W(async (e) => {
4302
4302
  Object.assign(O.current, e);
4303
4303
  let t = { ...O.current };
4304
4304
  te.current = t;
4305
4305
  let n = await b({ data: t });
4306
4306
  return ee.current = n, n;
4307
- }, [b]), ie = W(() => {
4307
+ }, [b]), ae = W(() => {
4308
4308
  let e = ee.current;
4309
4309
  if (e?.success) {
4310
- if (L(e.message), p) {
4310
+ if (ne(e.message), p) {
4311
4311
  let e = p({ fullData: te.current });
4312
4312
  window.location.href = e;
4313
4313
  } else f && r?.();
@@ -4316,8 +4316,8 @@ function id({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4316
4316
  f,
4317
4317
  p,
4318
4318
  r,
4319
- L
4320
- ]), ae = W((e) => {
4319
+ ne
4320
+ ]), oe = W((e) => {
4321
4321
  let t = D.getValues();
4322
4322
  Object.assign(O.current, t), k.current = e, u?.(e);
4323
4323
  }, [D, u]);
@@ -4331,19 +4331,19 @@ function id({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4331
4331
  nextLabel: c,
4332
4332
  previousLabel: l,
4333
4333
  submitLabel: C,
4334
- onSubmit: ie,
4335
- onStepChanged: ae,
4334
+ onSubmit: ae,
4335
+ onStepChanged: oe,
4336
4336
  allowStepSkipping: d,
4337
4337
  children: ({ currentStep: t }) => {
4338
4338
  let n = td(t, T, M), r = Xu(w, n), i = n.reduce((e, t) => (v?.[t] && (e[t] = v[t]), e), {});
4339
4339
  return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
4340
4340
  className: "pb-5",
4341
- children: /* @__PURE__ */ X(ce, {
4341
+ children: /* @__PURE__ */ X(le, {
4342
4342
  name: `${g}-step-${t}`,
4343
4343
  schema: r,
4344
4344
  sections: i,
4345
4345
  defaultValues: O.current,
4346
- onSubmit: re,
4346
+ onSubmit: ie,
4347
4347
  submitConfig: {
4348
4348
  hideSubmitButton: !0,
4349
4349
  hideActionBar: !0
@@ -4353,7 +4353,7 @@ function id({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
4353
4353
  renderCustomField: h,
4354
4354
  isLoading: e.isLoading
4355
4355
  }, t)
4356
- }), ne] });
4356
+ }), re] });
4357
4357
  }
4358
4358
  });
4359
4359
  }
@@ -4361,7 +4361,7 @@ function ad(e) {
4361
4361
  return e.formDefinition._brand === "per-section" ? /* @__PURE__ */ X(nd, { ...e }) : /* @__PURE__ */ X(id, { ...e });
4362
4362
  }
4363
4363
  ad.displayName = "F0WizardForm";
4364
- var od = R(ad), sd = ad;
4364
+ var od = L(ad), sd = ad;
4365
4365
  function cd(e, t) {
4366
4366
  if (e._brand === "per-section") {
4367
4367
  let n = e;
@@ -4404,10 +4404,10 @@ function ld({ options: e, isOpen: t, onResolve: n }) {
4404
4404
  }
4405
4405
  function ud(e) {
4406
4406
  return new Promise((t) => {
4407
- let n = e.id ?? Ee(), r = !1, i = (e) => {
4407
+ let n = e.id ?? De(), r = !1, i = (e) => {
4408
4408
  r || (r = !0, t(e), O(n));
4409
4409
  };
4410
- ke({
4410
+ Ae({
4411
4411
  id: n,
4412
4412
  onDismiss: () => i({ completed: !1 }),
4413
4413
  render: ({ isOpen: t }) => /* @__PURE__ */ X(ld, {
@@ -4466,9 +4466,9 @@ var fd = { open: dd }, pd = [
4466
4466
  "aria-label": "Loading slider",
4467
4467
  "aria-busy": "true",
4468
4468
  "aria-live": "polite",
4469
- children: [e ? null : /* @__PURE__ */ X(gn, { className: "h-4 w-24 rounded-md" }), /* @__PURE__ */ X("div", {
4469
+ children: [e ? null : /* @__PURE__ */ X(z, { className: "h-4 w-24 rounded-md" }), /* @__PURE__ */ X("div", {
4470
4470
  className: "flex items-center py-2",
4471
- children: /* @__PURE__ */ X(gn, { className: "h-1.5 w-full rounded-full" })
4471
+ children: /* @__PURE__ */ X(z, { className: "h-1.5 w-full rounded-full" })
4472
4472
  })]
4473
4473
  }), vd = eo({
4474
4474
  base: "relative h-1.5 grow overflow-hidden rounded-full bg-f1-background-tertiary",
@@ -4521,22 +4521,22 @@ var fd = { open: dd }, pd = [
4521
4521
  }, [D]), M = W((e) => {
4522
4522
  let [t] = e;
4523
4523
  t !== void 0 && p?.(t);
4524
- }, [p]), [N, P] = J(!1), [F, I] = J(!1), [ee, te] = J(!1), L = q(!1), ne = b === "always" || b === "onHover" && (N || F || ee), re = o?.type ?? "default", ie = !i && n.trim().length > 0, ae = o ?? (a ? {
4524
+ }, [p]), [N, P] = J(!1), [F, I] = J(!1), [ee, te] = J(!1), ne = q(!1), re = b === "always" || b === "onHover" && (N || F || ee), ie = o?.type ?? "default", ae = !i && n.trim().length > 0, oe = o ?? (a ? {
4525
4525
  type: "default",
4526
4526
  message: a
4527
- } : void 0), oe = a || o?.message ? w : void 0;
4527
+ } : void 0), se = a || o?.message ? w : void 0;
4528
4528
  return /* @__PURE__ */ Z("div", {
4529
4529
  ref: t,
4530
4530
  ...x,
4531
4531
  className: B("flex flex-col gap-2", c && "cursor-not-allowed"),
4532
4532
  onPointerDownCapture: () => {
4533
- L.current = !0;
4533
+ ne.current = !0;
4534
4534
  },
4535
4535
  onPointerUp: () => {
4536
- L.current = !1;
4536
+ ne.current = !1;
4537
4537
  },
4538
4538
  children: [
4539
- ie ? /* @__PURE__ */ X(qo, {
4539
+ ae ? /* @__PURE__ */ X(qo, {
4540
4540
  label: n,
4541
4541
  required: s,
4542
4542
  htmlFor: S,
@@ -4559,32 +4559,32 @@ var fd = { open: dd }, pd = [
4559
4559
  onMouseLeave: () => P(!1),
4560
4560
  children: [
4561
4561
  /* @__PURE__ */ X(Nr, {
4562
- className: vd({ status: re }),
4562
+ className: vd({ status: ie }),
4563
4563
  children: /* @__PURE__ */ X(Sr, { className: yd({
4564
- status: re,
4564
+ status: ie,
4565
4565
  disabled: c
4566
4566
  }) })
4567
4567
  }),
4568
4568
  /* @__PURE__ */ X(Or, {
4569
4569
  id: S,
4570
- "aria-label": ie ? void 0 : T,
4571
- "aria-labelledby": ie ? C : void 0,
4570
+ "aria-label": ae ? void 0 : T,
4571
+ "aria-labelledby": ae ? C : void 0,
4572
4572
  "aria-valuetext": y(O),
4573
- "aria-describedby": oe,
4573
+ "aria-describedby": se,
4574
4574
  "aria-required": s,
4575
4575
  style: {
4576
4576
  width: bd,
4577
4577
  height: bd
4578
4578
  },
4579
4579
  className: B(xd({
4580
- status: re,
4580
+ status: ie,
4581
4581
  disabled: c
4582
4582
  }), En("focus-visible:ring-offset-1")),
4583
- onFocus: () => I(!L.current),
4583
+ onFocus: () => I(!ne.current),
4584
4584
  onBlur: () => I(!1)
4585
4585
  }),
4586
4586
  b === "never" ? null : /* @__PURE__ */ X(gd, {
4587
- visible: ne,
4587
+ visible: re,
4588
4588
  content: y(O),
4589
4589
  style: { left: `calc(${k}% + ${A}px)` }
4590
4590
  })
@@ -4598,13 +4598,13 @@ var fd = { open: dd }, pd = [
4598
4598
  id: w,
4599
4599
  role: "status",
4600
4600
  "aria-live": "polite",
4601
- children: /* @__PURE__ */ X(wo, { status: ae })
4601
+ children: /* @__PURE__ */ X(wo, { status: oe })
4602
4602
  })
4603
4603
  ]
4604
4604
  });
4605
4605
  });
4606
4606
  Sd.displayName = "F0Slider";
4607
- var Cd = hn("F0Slider", ia(R(Sd), _d)), wd = [
4607
+ var Cd = gn("F0Slider", ia(L(Sd), _d)), wd = [
4608
4608
  "completed",
4609
4609
  "in-progress",
4610
4610
  "not-started",
@@ -4778,7 +4778,7 @@ function Rd({ title: e, items: t, className: n, activeItem: r, collapsible: i =
4778
4778
  sideOffset: -28,
4779
4779
  container: d,
4780
4780
  className: B(Ld({ size: l }), !e && "pt-2", "scrollbar-macos"),
4781
- children: /* @__PURE__ */ X(Ot, {
4781
+ children: /* @__PURE__ */ X(kt, {
4782
4782
  title: e,
4783
4783
  items: t,
4784
4784
  activeItem: r,
@@ -4791,7 +4791,7 @@ function Rd({ title: e, items: t, className: n, activeItem: r, collapsible: i =
4791
4791
  })]
4792
4792
  });
4793
4793
  }
4794
- var zd = R(hn("F0TableOfContentPopover", Rd));
4794
+ var zd = L(gn("F0TableOfContentPopover", Rd));
4795
4795
  //#endregion
4796
4796
  //#region src/domains/talent/surveys/surveys/SurveyFormBuilder/Form/utils.ts
4797
4797
  function Bd(e) {
@@ -4886,7 +4886,7 @@ function Wd(e) {
4886
4886
  //#endregion
4887
4887
  //#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
4888
4888
  var Gd = qn.create(Oi), Kd = Sc(() => {
4889
- let e = z();
4889
+ let e = R();
4890
4890
  return /* @__PURE__ */ Z("div", {
4891
4891
  className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
4892
4892
  children: [/* @__PURE__ */ X(Gd, {
@@ -5238,7 +5238,7 @@ function sf() {
5238
5238
  //#endregion
5239
5239
  //#region src/domains/talent/surveys/surveys/SurveyFormBuilder/constants.ts
5240
5240
  var cf = () => {
5241
- let { isQuestionTypeAllowed: e, datasets: t } = rf(), { t: n } = z(), r = [
5241
+ let { isQuestionTypeAllowed: e, datasets: t } = rf(), { t: n } = R(), r = [
5242
5242
  {
5243
5243
  label: n("surveyFormBuilder.questionTypes.rating"),
5244
5244
  icon: Yi,
@@ -5310,7 +5310,7 @@ var cf = () => {
5310
5310
  file: vi,
5311
5311
  checkbox: Hs
5312
5312
  }, uf = () => {
5313
- let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = rf(), [a, o] = J(!1), s = cf(), { t: c } = z(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
5313
+ let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = rf(), [a, o] = J(!1), s = cf(), { t: c } = R(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
5314
5314
  n?.({
5315
5315
  type: e,
5316
5316
  datasetKey: t
@@ -5408,8 +5408,8 @@ var cf = () => {
5408
5408
  })
5409
5409
  });
5410
5410
  }, df = ({ open: e, onConfirm: t, onCancel: n }) => {
5411
- let { t: r } = z();
5412
- return /* @__PURE__ */ X(Ue, {
5411
+ let { t: r } = R();
5412
+ return /* @__PURE__ */ X(We, {
5413
5413
  open: e,
5414
5414
  onClose: n,
5415
5415
  header: {
@@ -5567,7 +5567,7 @@ var _f = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(X
5567
5567
  ]
5568
5568
  })
5569
5569
  }), vf = ({ label: e, value: t, currentDatasetKey: n, questionTypes: r, currentRatingType: i, isQuestionTypeAllowed: a, onSelectQuestionType: o, onSelectRatingType: s }) => {
5570
- let { t: c } = z(), l = r.filter((e) => !e.datasetKey), u = Array.from(new Set(r.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), d = n ? r.find((e) => e.questionType === t && e.datasetKey === n)?.label ?? void 0 : r.find((e) => e.questionType === t && !e.datasetKey)?.label ?? void 0;
5570
+ let { t: c } = R(), l = r.filter((e) => !e.datasetKey), u = Array.from(new Set(r.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), d = n ? r.find((e) => e.questionType === t && e.datasetKey === n)?.label ?? void 0 : r.find((e) => e.questionType === t && !e.datasetKey)?.label ?? void 0;
5571
5571
  return /* @__PURE__ */ Z($s, { children: [/* @__PURE__ */ X(qs, {
5572
5572
  className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
5573
5573
  children: /* @__PURE__ */ Z("div", {
@@ -5712,7 +5712,7 @@ var _f = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(X
5712
5712
  })]
5713
5713
  })
5714
5714
  }), bf = ({ showDuplicate: e, showDelete: t, withSeparator: n, onDuplicate: r, onDelete: i }) => {
5715
- let { t: a } = z(), { labels: o } = rf();
5715
+ let { t: a } = R(), { labels: o } = rf();
5716
5716
  return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Ys, {}) : null, /* @__PURE__ */ Z(rc, { children: [e ? /* @__PURE__ */ X(yf, {
5717
5717
  label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
5718
5718
  icon: Ki,
@@ -5725,7 +5725,7 @@ var _f = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(X
5725
5725
  }) : null] })] });
5726
5726
  };
5727
5727
  function xf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQuestion: i = !0, hiddenActions: a }) {
5728
- let { t: o } = z(), { isQuestionTypeAllowed: s, labels: c } = rf(), { question: l, questionTypes: u, currentRatingType: d, currentDatasetKey: f, isMultiSelectEnabled: p, isAllowCreateEnabled: m, datasetHasOnCreate: h, disallowOptionalQuestions: g, handleChangeRequired: _, handleSelectQuestionType: v, handleSelectRatingType: y, handleToggleMultiSelect: b, handleToggleAllowCreate: x, handleDuplicate: S, handleDelete: C } = gf({
5728
+ let { t: o } = R(), { isQuestionTypeAllowed: s, labels: c } = rf(), { question: l, questionTypes: u, currentRatingType: d, currentDatasetKey: f, isMultiSelectEnabled: p, isAllowCreateEnabled: m, datasetHasOnCreate: h, disallowOptionalQuestions: g, handleChangeRequired: _, handleSelectQuestionType: v, handleSelectRatingType: y, handleToggleMultiSelect: b, handleToggleAllowCreate: x, handleDuplicate: S, handleDelete: C } = gf({
5729
5729
  questionId: n,
5730
5730
  questionType: r,
5731
5731
  canDelete: i
@@ -5804,7 +5804,7 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5804
5804
  children: r
5805
5805
  }) : r;
5806
5806
  }, Cf = ({ id: e, title: t, description: n, children: r, required: a, type: o, hiddenActions: s, locked: c, lockedFields: l, lockedNote: u }) => {
5807
- let { onQuestionChange: d, onAddNewElement: f, disabled: p, answering: m, getIsSingleQuestionInSection: h, getSectionContainingQuestion: g, isQuestionTypeAllowed: _, placeholders: v, labels: y } = rf(), b = g(e), x = !!b?.locked || !!c, S = x || !!l?.includes("title"), C = x || !!l?.includes("description"), w = !x && (S || C), T = !!b, [E, D] = J(!1), [O, k] = J(!1), { isDragging: A } = sf(), { t: j } = z(), M = v?.questionTitle ?? j("surveyFormBuilder.labels.titlePlaceholder"), N = y?.addQuestion ?? j("surveyFormBuilder.actions.addQuestion"), P = v?.questionDescription ?? j("surveyFormBuilder.labels.questionDescriptionPlaceholder"), F = (t) => {
5807
+ let { onQuestionChange: d, onAddNewElement: f, disabled: p, answering: m, getIsSingleQuestionInSection: h, getSectionContainingQuestion: g, isQuestionTypeAllowed: _, placeholders: v, labels: y } = rf(), b = g(e), x = !!b?.locked || !!c, S = x || !!l?.includes("title"), C = x || !!l?.includes("description"), w = !x && (S || C), T = !!b, [E, D] = J(!1), [O, k] = J(!1), { isDragging: A } = sf(), { t: j } = R(), M = v?.questionTitle ?? j("surveyFormBuilder.labels.titlePlaceholder"), N = y?.addQuestion ?? j("surveyFormBuilder.actions.addQuestion"), P = v?.questionDescription ?? j("surveyFormBuilder.labels.questionDescriptionPlaceholder"), F = (t) => {
5808
5808
  d?.({
5809
5809
  id: e,
5810
5810
  type: o,
@@ -5827,14 +5827,14 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5827
5827
  type: "section",
5828
5828
  afterId: e
5829
5829
  });
5830
- }, L = cf(), ne = L.filter((e) => !e.datasetKey), re = Array.from(new Set(L.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), ie = h(e), ae = q(null), oe = q(!ie);
5830
+ }, ne = cf(), re = ne.filter((e) => !e.datasetKey), ie = Array.from(new Set(ne.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), ae = h(e), oe = q(null), se = q(!ae);
5831
5831
  G(() => {
5832
- oe.current && ae.current?.focus({ preventScroll: !0 });
5832
+ se.current && oe.current?.focus({ preventScroll: !0 });
5833
5833
  }, []);
5834
- let se = p || S || m, ce = p || C || m, le = !ce || !!n, ue = x || w ? { description: u?.description ?? b?.lockedNote?.description ?? j("surveyFormBuilder.labels.lockedQuestionNotice") } : null;
5834
+ let ce = p || S || m, le = p || C || m, ue = !le || !!n, de = x || w ? { description: u?.description ?? b?.lockedNote?.description ?? j("surveyFormBuilder.labels.lockedQuestionNotice") } : null;
5835
5835
  return /* @__PURE__ */ Z("div", {
5836
5836
  id: `co-creation-question-${e}`,
5837
- className: B("group/question relative flex w-full flex-col rounded-xl border border-solid border-f1-border bg-f1-background px-3 py-3", x && !m && "cursor-not-allowed [&_*]:!cursor-not-allowed", !A && !m && !x && "hover:border-f1-border-hover", le ? "gap-4" : "gap-2"),
5837
+ className: B("group/question relative flex w-full flex-col rounded-xl border border-solid border-f1-border bg-f1-background px-3 py-3", x && !m && "cursor-not-allowed [&_*]:!cursor-not-allowed", !A && !m && !x && "hover:border-f1-border-hover", ue ? "gap-4" : "gap-2"),
5838
5838
  children: [
5839
5839
  /* @__PURE__ */ Z("div", {
5840
5840
  className: "flex flex-col gap-0.5",
@@ -5843,7 +5843,7 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5843
5843
  children: [
5844
5844
  /* @__PURE__ */ X(Sf, {
5845
5845
  className: "relative w-full",
5846
- notice: w && S ? ue : null,
5846
+ notice: w && S ? de : null,
5847
5847
  children: m ? /* @__PURE__ */ Z("div", {
5848
5848
  className: "w-full whitespace-pre-wrap break-words px-2 py-1 text-lg font-semibold text-f1-foreground",
5849
5849
  children: [t || M, a ? /* @__PURE__ */ X("span", {
@@ -5851,13 +5851,13 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5851
5851
  children: " *"
5852
5852
  }) : null]
5853
5853
  }) : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("textarea", {
5854
- ref: ae,
5854
+ ref: oe,
5855
5855
  value: t,
5856
5856
  "aria-label": j("surveyFormBuilder.labels.title"),
5857
5857
  placeholder: M,
5858
5858
  onChange: F,
5859
- disabled: se,
5860
- className: B("w-full [field-sizing:content] resize-none px-2 py-1 text-lg font-semibold text-f1-foreground placeholder:text-f1-foreground-tertiary [&::-webkit-search-cancel-button]:hidden", !m && se && "!cursor-not-allowed")
5859
+ disabled: ce,
5860
+ className: B("w-full [field-sizing:content] resize-none px-2 py-1 text-lg font-semibold text-f1-foreground placeholder:text-f1-foreground-tertiary [&::-webkit-search-cancel-button]:hidden", !m && ce && "!cursor-not-allowed")
5861
5861
  }), /* @__PURE__ */ Z("div", {
5862
5862
  className: "textarea-overlay pointer-events-none absolute left-0 top-0 h-full w-full whitespace-pre-wrap break-words px-2 py-1 text-lg font-semibold",
5863
5863
  children: [/* @__PURE__ */ X("span", {
@@ -5869,9 +5869,9 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5869
5869
  }) : null]
5870
5870
  })] })
5871
5871
  }),
5872
- !m && x ? /* @__PURE__ */ X("div", { children: ue ? /* @__PURE__ */ X(Kn, {
5872
+ !m && x ? /* @__PURE__ */ X("div", { children: de ? /* @__PURE__ */ X(Kn, {
5873
5873
  instant: !0,
5874
- ...ue,
5874
+ ...de,
5875
5875
  children: /* @__PURE__ */ X("span", {
5876
5876
  className: "inline-flex",
5877
5877
  children: /* @__PURE__ */ X(V, {
@@ -5902,7 +5902,7 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5902
5902
  setOpen: k,
5903
5903
  questionId: e,
5904
5904
  questionType: o,
5905
- canDeleteQuestion: !T || !ie,
5905
+ canDeleteQuestion: !T || !ae,
5906
5906
  hiddenActions: s
5907
5907
  })
5908
5908
  }) : null
@@ -5910,15 +5910,15 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5910
5910
  }), m ? n ? /* @__PURE__ */ X("p", {
5911
5911
  className: "w-full whitespace-pre-wrap break-words px-2 text-f1-foreground-secondary",
5912
5912
  children: n
5913
- }) : null : le ? /* @__PURE__ */ X(Sf, {
5914
- notice: w && C ? ue : null,
5913
+ }) : null : ue ? /* @__PURE__ */ X(Sf, {
5914
+ notice: w && C ? de : null,
5915
5915
  children: /* @__PURE__ */ X("textarea", {
5916
5916
  value: n,
5917
5917
  "aria-label": j("surveyFormBuilder.labels.description"),
5918
5918
  placeholder: P,
5919
5919
  onChange: I,
5920
- disabled: ce,
5921
- className: B("w-full [field-sizing:content] resize-none px-2 text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", !m && ce && "!cursor-not-allowed")
5920
+ disabled: le,
5921
+ className: B("w-full [field-sizing:content] resize-none px-2 text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", !m && le && "!cursor-not-allowed")
5922
5922
  })
5923
5923
  }) : null]
5924
5924
  }),
@@ -5958,7 +5958,7 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5958
5958
  })]
5959
5959
  })
5960
5960
  }), /* @__PURE__ */ X(Ys, {})] }),
5961
- ne.map((e) => /* @__PURE__ */ X(Xs, {
5961
+ re.map((e) => /* @__PURE__ */ X(Xs, {
5962
5962
  onClick: () => ee(e.questionType),
5963
5963
  children: /* @__PURE__ */ Z("div", {
5964
5964
  className: "flex w-full flex-row items-center gap-2",
@@ -5971,8 +5971,8 @@ var Sf = ({ notice: e, className: t, children: n }) => {
5971
5971
  })]
5972
5972
  })
5973
5973
  }, e.questionType)),
5974
- re.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Ys, {}), re.map((e) => {
5975
- let t = L.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
5974
+ ie.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Ys, {}), ie.map((e) => {
5975
+ let t = ne.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
5976
5976
  return /* @__PURE__ */ Z($s, { children: [/* @__PURE__ */ X(qs, {
5977
5977
  className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
5978
5978
  children: /* @__PURE__ */ Z("div", {
@@ -6027,7 +6027,7 @@ function wf(e) {
6027
6027
  //#endregion
6028
6028
  //#region src/domains/talent/surveys/surveys/SurveyFormBuilder/QuestionTypes/CheckboxQuestion/CheckboxQuestion.tsx
6029
6029
  var Tf = ({ value: e, label: t, ...n }) => {
6030
- let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = rf(), s = wf(n), { t: c } = z();
6030
+ let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = rf(), s = wf(n), { t: c } = R();
6031
6031
  if (i) return /* @__PURE__ */ X(Cf, {
6032
6032
  ...n,
6033
6033
  children: /* @__PURE__ */ X(us, {
@@ -6072,7 +6072,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6072
6072
  })
6073
6073
  });
6074
6074
  }, Ef = ({ value: e, ...t }) => {
6075
- let { onQuestionChange: n } = rf(), r = wf(t), { t: i } = z(), a = {
6075
+ let { onQuestionChange: n } = rf(), r = wf(t), { t: i } = R(), a = {
6076
6076
  id: t.id,
6077
6077
  type: "date",
6078
6078
  label: i("surveyFormBuilder.answer.label"),
@@ -6095,7 +6095,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6095
6095
  })
6096
6096
  });
6097
6097
  }, Df = ({ datasetKey: e, showSearchBox: t, searchBoxPlaceholder: n, ...r }) => {
6098
- let { onQuestionChange: i, answering: a, datasets: o } = rf(), s = wf(r), { t: c } = z(), l = o?.[e];
6098
+ let { onQuestionChange: i, answering: a, datasets: o } = rf(), s = wf(r), { t: c } = R(), l = o?.[e];
6099
6099
  if (!l) throw Error(`Dataset "${e}" not found for ${r.type}`);
6100
6100
  let u = r.type === "dropdown-multi", d = t ?? !0, f = r.type === "dropdown-single" ? r.allowCreate : void 0, p = a && !u && f && l.onCreate ? async (e) => {
6101
6101
  try {
@@ -6165,7 +6165,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6165
6165
  progress: 0,
6166
6166
  status: "idle"
6167
6167
  }), Af = ({ value: e, useUpload: t, accept: n, maxSizeMB: r, ...i }) => {
6168
- let { onQuestionChange: a, useUpload: o } = rf(), s = wf(i), { t: c } = z(), l = t ?? o, u = {
6168
+ let { onQuestionChange: a, useUpload: o } = rf(), s = wf(i), { t: c } = R(), l = t ?? o, u = {
6169
6169
  id: i.id,
6170
6170
  type: "file",
6171
6171
  label: c("surveyFormBuilder.answer.label"),
@@ -6191,7 +6191,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6191
6191
  })
6192
6192
  });
6193
6193
  }, jf = ({ value: e, ...t }) => {
6194
- let { t: n } = z(), { onQuestionChange: r, answering: i } = rf(), a = wf(t), o = n("surveyFormBuilder.answer.linkPlaceholder"), s = {
6194
+ let { t: n } = R(), { onQuestionChange: r, answering: i } = rf(), a = wf(t), o = n("surveyFormBuilder.answer.linkPlaceholder"), s = {
6195
6195
  id: t.id,
6196
6196
  type: "text",
6197
6197
  inputType: "url",
@@ -6216,7 +6216,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6216
6216
  })
6217
6217
  });
6218
6218
  }, Mf = ({ value: e, ...t }) => {
6219
- let { t: n } = z(), { onQuestionChange: r, answering: i } = rf(), a = wf(t), o = (e) => {
6219
+ let { t: n } = R(), { onQuestionChange: r, answering: i } = rf(), a = wf(t), o = (e) => {
6220
6220
  r?.({
6221
6221
  ...t,
6222
6222
  type: "numeric",
@@ -6278,7 +6278,7 @@ var Tf = ({ value: e, label: t, ...n }) => {
6278
6278
  onClick: (e) => {
6279
6279
  e.preventDefault(), e.stopPropagation();
6280
6280
  },
6281
- children: /* @__PURE__ */ X(me, {
6281
+ children: /* @__PURE__ */ X(he, {
6282
6282
  data: t,
6283
6283
  onEmojiSelect: (e) => {
6284
6284
  i?.(s, e.native), u(!1);
@@ -6365,7 +6365,7 @@ function Lf({ checked: e, disabled: t }) {
6365
6365
  });
6366
6366
  }
6367
6367
  var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i, disabled: a, answering: o, selected: s, correct: c, locked: l, type: u }) => {
6368
- let { value: d, label: f } = t, { isDragging: p, setIsDragging: m, setDraggedItemId: h, draggedItemId: g } = sf(), { t: _ } = z(), v = p && g === d, y = () => {
6368
+ let { value: d, label: f } = t, { isDragging: p, setIsDragging: m, setDraggedItemId: h, draggedItemId: g } = sf(), { t: _ } = R(), v = p && g === d, y = () => {
6369
6369
  (a || o) && n(d);
6370
6370
  }, b = (t) => {
6371
6371
  r({
@@ -6389,7 +6389,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6389
6389
  }, T = () => {
6390
6390
  m(!1), h(null);
6391
6391
  }, E = p ? v : !a && !o, D = !a && !o && !l;
6392
- return /* @__PURE__ */ X(Xt, {
6392
+ return /* @__PURE__ */ X(Zt, {
6393
6393
  value: t,
6394
6394
  onDragStart: w,
6395
6395
  onDragEnd: T,
@@ -6457,7 +6457,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6457
6457
  })
6458
6458
  });
6459
6459
  }, zf = ({ options: e, ...t }) => {
6460
- let { onQuestionChange: n, disabled: r, answering: i, getSectionContainingQuestion: a } = rf(), o = new Set(e.map((e) => e.value)).size !== e.length, s = a(t.id)?.locked || t.locked, { t: c } = z(), l = K(() => ({
6460
+ let { onQuestionChange: n, disabled: r, answering: i, getSectionContainingQuestion: a } = rf(), o = new Set(e.map((e) => e.value)).size !== e.length, s = a(t.id)?.locked || t.locked, { t: c } = R(), l = K(() => ({
6461
6461
  id: t.id,
6462
6462
  type: t.type,
6463
6463
  options: e
@@ -6477,7 +6477,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6477
6477
  }, a = new Set(r.map((e) => e.value)).size !== r.length;
6478
6478
  a && (r = r.map((e) => ({
6479
6479
  ...e,
6480
- value: Ee()
6480
+ value: De()
6481
6481
  })), a && n?.({
6482
6482
  ...i,
6483
6483
  options: r
@@ -6548,7 +6548,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6548
6548
  ...t,
6549
6549
  children: /* @__PURE__ */ Z("div", {
6550
6550
  className: "-mx-0.5 flex flex-col items-start [&>div]:w-full",
6551
- children: [/* @__PURE__ */ X(of, { children: /* @__PURE__ */ X(sn, {
6551
+ children: [/* @__PURE__ */ X(of, { children: /* @__PURE__ */ X(cn, {
6552
6552
  axis: "y",
6553
6553
  values: e,
6554
6554
  onReorder: m,
@@ -6584,7 +6584,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6584
6584
  })
6585
6585
  });
6586
6586
  }, Bf = ({ value: e, ...t }) => {
6587
- let { onQuestionChange: n, answering: r, placeholders: i } = rf(), a = wf(t), { t: o } = z(), s = i?.answer ?? o("surveyFormBuilder.answer.textPlaceholder"), c = K(() => t.type === "text" ? {
6587
+ let { onQuestionChange: n, answering: r, placeholders: i } = rf(), a = wf(t), { t: o } = R(), s = i?.answer ?? o("surveyFormBuilder.answer.textPlaceholder"), c = K(() => t.type === "text" ? {
6588
6588
  id: t.id,
6589
6589
  type: "text",
6590
6590
  label: o("surveyFormBuilder.answer.label"),
@@ -6635,7 +6635,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6635
6635
  default: throw Error("Invalid question type provided");
6636
6636
  }
6637
6637
  }, Hf = () => {
6638
- let { t: e } = z();
6638
+ let { t: e } = R();
6639
6639
  return /* @__PURE__ */ Z("div", {
6640
6640
  className: "mt-8 ml-7 flex flex-row items-center gap-4",
6641
6641
  children: [
@@ -6648,12 +6648,12 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6648
6648
  ]
6649
6649
  });
6650
6650
  }, Uf = Sc(({ item: e, section: t, showEndOfSection: n, className: r }) => {
6651
- let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = sf(), c = We(), { disabled: l, answering: u } = rf(), d = !!t && s === t.id, f = () => {
6651
+ let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = sf(), c = Ge(), { disabled: l, answering: u } = rf(), d = !!t && s === t.id, f = () => {
6652
6652
  a(!0), o(e.question.id);
6653
6653
  }, p = () => {
6654
6654
  a(!1), o(null);
6655
6655
  }, m = t?.locked, h = !l && !u && !m;
6656
- return /* @__PURE__ */ Z(Xt, {
6656
+ return /* @__PURE__ */ Z(Zt, {
6657
6657
  value: e.id,
6658
6658
  onDragStart: f,
6659
6659
  onDragEnd: p,
@@ -6683,12 +6683,12 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6683
6683
  }), n ? /* @__PURE__ */ X(Hf, {}) : null]
6684
6684
  });
6685
6685
  }, (e, t) => e.showEndOfSection === t.showEndOfSection && e.className === t.className && (0, _l.default)(e.section, t.section) && (0, _l.default)(e.item, t.item)), Wf = ({ question: e }) => {
6686
- let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = sf(), i = We(), { disabled: a, answering: o, getSectionContainingQuestion: s } = rf(), c = s(e.id), l = () => {
6686
+ let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = sf(), i = Ge(), { disabled: a, answering: o, getSectionContainingQuestion: s } = rf(), c = s(e.id), l = () => {
6687
6687
  n(!0), r(e.id);
6688
6688
  }, u = () => {
6689
6689
  n(!1), r(null);
6690
6690
  }, d = c?.locked, f = !a && !o && !d;
6691
- return /* @__PURE__ */ X(Xt, {
6691
+ return /* @__PURE__ */ X(Zt, {
6692
6692
  value: e,
6693
6693
  as: "div",
6694
6694
  onDragStart: l,
@@ -6712,7 +6712,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6712
6712
  })
6713
6713
  });
6714
6714
  }, Gf = ({ id: e, title: t = "", description: n, lockedNote: r, questions: i = [], locked: a, hideQuestions: o }) => {
6715
- let { onSectionChange: s, disabled: c, answering: l, deleteElement: u, onDuplicateElement: d, placeholders: f } = rf(), [p, m] = J(!1), { t: h } = z(), g = f?.sectionTitle ?? h("surveyFormBuilder.labels.sectionTitlePlaceholder"), _ = K(() => ({
6715
+ let { onSectionChange: s, disabled: c, answering: l, deleteElement: u, onDuplicateElement: d, placeholders: f } = rf(), [p, m] = J(!1), { t: h } = R(), g = f?.sectionTitle ?? h("surveyFormBuilder.labels.sectionTitlePlaceholder"), _ = K(() => ({
6716
6716
  id: e,
6717
6717
  title: t,
6718
6718
  description: n
@@ -6816,7 +6816,7 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6816
6816
  disabled: S,
6817
6817
  className: B("w-full [field-sizing:content] resize-none text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", S && "cursor-not-allowed")
6818
6818
  }) : null]
6819
- }) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(of, { children: /* @__PURE__ */ X(sn, {
6819
+ }) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(of, { children: /* @__PURE__ */ X(cn, {
6820
6820
  axis: "y",
6821
6821
  values: i,
6822
6822
  onReorder: b,
@@ -6838,8 +6838,8 @@ var Rf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
6838
6838
  })] })]
6839
6839
  });
6840
6840
  }, Kf = Sc(({ item: e, className: t }) => {
6841
- let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = sf(), o = We(), { disabled: s, answering: c } = rf(), l = a === e.section.id;
6842
- return /* @__PURE__ */ X(Xt, {
6841
+ let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = sf(), o = Ge(), { disabled: s, answering: c } = rf(), l = a === e.section.id;
6842
+ return /* @__PURE__ */ X(Zt, {
6843
6843
  value: e.id,
6844
6844
  onDragStart: () => {
6845
6845
  r(!0), i(e.section.id);
@@ -7067,7 +7067,7 @@ function Qf(e, t) {
7067
7067
  return i;
7068
7068
  }
7069
7069
  var $f = ({ elements: e, onChange: t, answering: n }) => {
7070
- let { t: r } = z(), { disabled: i, labels: a } = rf(), { portalContainer: o } = Cc(Lo), s = Yf(e, {
7070
+ let { t: r } = R(), { disabled: i, labels: a } = rf(), { portalContainer: o } = Cc(Lo), s = Yf(e, {
7071
7071
  untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
7072
7072
  untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
7073
7073
  duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
@@ -7214,7 +7214,7 @@ var np = (e, t, n) => {
7214
7214
  }, s.id)), o++;
7215
7215
  }
7216
7216
  return /* @__PURE__ */ X(Y, { children: a });
7217
- }, ap = R(({ elements: e, disabled: t, onChange: n, disallowOptionalQuestions: r, allowedQuestionTypes: i, applyingChanges: a, useUpload: o, datasets: s, placeholders: c, labels: l, skipDefaultSection: u }) => {
7217
+ }, ap = L(({ elements: e, disabled: t, onChange: n, disallowOptionalQuestions: r, allowedQuestionTypes: i, applyingChanges: a, useUpload: o, datasets: s, placeholders: c, labels: l, skipDefaultSection: u }) => {
7218
7218
  let d = !t, f = K(() => e.map((e) => e.type === "question" ? {
7219
7219
  ...e,
7220
7220
  question: {
@@ -7270,7 +7270,7 @@ var np = (e, t, n) => {
7270
7270
  initial: { filter: "blur(0px)" },
7271
7271
  animate: { filter: a ? "blur(2px)" : "none" },
7272
7272
  exit: { filter: "blur(0px)" },
7273
- children: [/* @__PURE__ */ X(sn, {
7273
+ children: [/* @__PURE__ */ X(cn, {
7274
7274
  axis: "y",
7275
7275
  values: h,
7276
7276
  onReorder: b,
@@ -7316,27 +7316,27 @@ function op({ titleWidth: e, descriptionWidth: t, answer: n }) {
7316
7316
  className: "flex flex-col gap-4 rounded-xl border border-solid border-f1-border-secondary bg-f1-background p-4",
7317
7317
  children: [/* @__PURE__ */ Z("div", {
7318
7318
  className: "flex flex-col gap-2",
7319
- children: [/* @__PURE__ */ X(gn, {
7319
+ children: [/* @__PURE__ */ X(z, {
7320
7320
  className: "h-5 rounded-sm",
7321
7321
  style: { width: e }
7322
- }), t ? /* @__PURE__ */ X(gn, {
7322
+ }), t ? /* @__PURE__ */ X(z, {
7323
7323
  className: "h-4 rounded-sm",
7324
7324
  style: { width: t }
7325
7325
  }) : null]
7326
7326
  }), n]
7327
7327
  });
7328
7328
  }
7329
- var sp = /* @__PURE__ */ X(gn, { className: "h-10 w-full rounded-sm" }), cp = /* @__PURE__ */ X(gn, { className: "h-24 w-full rounded-sm" }), lp = /* @__PURE__ */ X(gn, { className: "h-10 w-56 max-w-full rounded-sm" });
7329
+ var sp = /* @__PURE__ */ X(z, { className: "h-10 w-full rounded-sm" }), cp = /* @__PURE__ */ X(z, { className: "h-24 w-full rounded-sm" }), lp = /* @__PURE__ */ X(z, { className: "h-10 w-56 max-w-full rounded-sm" });
7330
7330
  function up() {
7331
7331
  return /* @__PURE__ */ X("div", {
7332
7332
  className: "grid grid-cols-5 gap-2 sm:max-w-80",
7333
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(gn, { className: "h-9 rounded-sm" }, t))
7333
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(z, { className: "h-9 rounded-sm" }, t))
7334
7334
  });
7335
7335
  }
7336
7336
  function dp({ count: e }) {
7337
7337
  return /* @__PURE__ */ X("div", {
7338
7338
  className: "flex flex-col gap-2",
7339
- children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(gn, {
7339
+ children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(z, {
7340
7340
  className: "h-7 w-56 max-w-full rounded-sm",
7341
7341
  style: { width: `${Math.max(52, 76 - t * 7)}%` }
7342
7342
  }, t))
@@ -7345,7 +7345,7 @@ function dp({ count: e }) {
7345
7345
  function fp() {
7346
7346
  return /* @__PURE__ */ X("div", {
7347
7347
  className: "flex flex-wrap gap-2",
7348
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(gn, {
7348
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(z, {
7349
7349
  className: "h-8 rounded-sm",
7350
7350
  style: { width: `${18 + t * 3}%` }
7351
7351
  }, t))
@@ -7361,7 +7361,7 @@ function pp() {
7361
7361
  className: "flex flex-col gap-5",
7362
7362
  children: [/* @__PURE__ */ Z("div", {
7363
7363
  className: "flex flex-col gap-2 px-5",
7364
- children: [/* @__PURE__ */ X(gn, { className: "h-6 w-56 rounded-sm" }), /* @__PURE__ */ X(gn, { className: "h-4 w-80 max-w-full rounded-sm" })]
7364
+ children: [/* @__PURE__ */ X(z, { className: "h-6 w-56 rounded-sm" }), /* @__PURE__ */ X(z, { className: "h-4 w-80 max-w-full rounded-sm" })]
7365
7365
  }), /* @__PURE__ */ X("div", {
7366
7366
  className: "flex flex-col gap-4",
7367
7367
  children: e === 0 ? /* @__PURE__ */ Z(Y, { children: [
@@ -7429,7 +7429,7 @@ function mp() {
7429
7429
  "aria-live": "polite",
7430
7430
  children: [/* @__PURE__ */ Z("div", {
7431
7431
  className: "flex flex-col gap-2 px-5",
7432
- children: [/* @__PURE__ */ X(gn, { className: "h-6 w-52 rounded-sm" }), /* @__PURE__ */ X(gn, { className: "h-4 w-72 max-w-full rounded-sm" })]
7432
+ children: [/* @__PURE__ */ X(z, { className: "h-6 w-52 rounded-sm" }), /* @__PURE__ */ X(z, { className: "h-4 w-72 max-w-full rounded-sm" })]
7433
7433
  }), /* @__PURE__ */ X(op, {
7434
7434
  titleWidth: "74%",
7435
7435
  descriptionWidth: "50%",
@@ -7992,30 +7992,36 @@ function Mp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
7992
7992
  });
7993
7993
  }
7994
7994
  }
7995
- function Np({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i, accumulatedValues: a, previewMode: o = !1, disableFields: s = o, useUpload: c, datasets: l, onSingleAnswerChange: u }) {
7995
+ var Np = "id_", Pp = (e) => `${Np}${e}`, Fp = (e) => e.slice(3);
7996
+ function Ip({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i, accumulatedValues: a, previewMode: o = !1, disableFields: s = o, useUpload: c, datasets: l, onSingleAnswerChange: u }) {
7996
7997
  return K(() => {
7997
7998
  let d = {}, f = {}, p = {}, m = kp(e), h = t === "stepped";
7998
7999
  for (let m of e) if (m.type === "section") {
7999
- let e = m.section, g = e.id;
8000
+ let e = m.section, g = Pp(e.id);
8000
8001
  t === "all-questions" && (p[g] = {
8001
8002
  title: e.title ?? "",
8002
8003
  description: e.description,
8003
8004
  withInset: !0
8004
8005
  });
8005
- for (let p of e.questions ?? []) h && i && p.id !== i || (d[p.id] = Mp({
8006
- q: p,
8007
- t: n,
8008
- sectionId: t === "all-questions" ? g : void 0,
8009
- previewMode: o,
8010
- disableFields: s,
8011
- formUseUpload: c,
8012
- datasets: l,
8013
- onSingleAnswerChange: u
8014
- }), f[p.id] = a?.[p.id] ?? Op(p, r));
8006
+ for (let p of e.questions ?? []) {
8007
+ if (h && i && p.id !== i) continue;
8008
+ let e = Pp(p.id);
8009
+ d[e] = Mp({
8010
+ q: p,
8011
+ t: n,
8012
+ sectionId: t === "all-questions" ? g : void 0,
8013
+ previewMode: o,
8014
+ disableFields: s,
8015
+ formUseUpload: c,
8016
+ datasets: l,
8017
+ onSingleAnswerChange: u
8018
+ }), f[e] = a?.[e] ?? Op(p, r);
8019
+ }
8015
8020
  } else {
8016
8021
  let e = m.question;
8017
8022
  if (h && i && e.id !== i) continue;
8018
- d[e.id] = Mp({
8023
+ let t = Pp(e.id);
8024
+ d[t] = Mp({
8019
8025
  q: e,
8020
8026
  t: n,
8021
8027
  previewMode: o,
@@ -8023,7 +8029,7 @@ function Np({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
8023
8029
  formUseUpload: c,
8024
8030
  datasets: l,
8025
8031
  onSingleAnswerChange: u
8026
- }), f[e.id] = a?.[e.id] ?? Op(e, r);
8032
+ }), f[t] = a?.[t] ?? Op(e, r);
8027
8033
  }
8028
8034
  return {
8029
8035
  schema: Jr(d),
@@ -8046,33 +8052,39 @@ function Np({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
8046
8052
  }
8047
8053
  //#endregion
8048
8054
  //#region src/domains/talent/surveys/surveys/SurveyAnsweringForm/SurveyAnsweringForm.tsx
8049
- var Pp = () => {}, Fp = 400;
8050
- function Ip(e) {
8055
+ var Lp = () => {}, Rp = 400;
8056
+ function zp(e) {
8051
8057
  let t = {};
8052
- for (let [n, r] of Object.entries(e)) t[n] = r === void 0 ? null : r;
8058
+ for (let [n, r] of Object.entries(e)) t[Fp(n)] = r === void 0 ? null : r;
8053
8059
  return t;
8054
8060
  }
8055
- function Lp(e, t) {
8061
+ function Bp(e) {
8062
+ if (!e) return;
8063
+ let t = {};
8064
+ for (let [n, r] of Object.entries(e)) t[n === "root" ? n : Pp(n)] = r;
8065
+ return t;
8066
+ }
8067
+ function Vp(e, t) {
8056
8068
  let n = {};
8057
8069
  for (let r of e) {
8058
8070
  let e = r.type === "section" ? r.section.questions ?? [] : [r.question];
8059
- for (let r of e) n[r.id] = Op(r, t);
8071
+ for (let r of e) n[Pp(r.id)] = Op(r, t);
8060
8072
  }
8061
8073
  return n;
8062
8074
  }
8063
- function Rp(e) {
8064
- return e.inline ? /* @__PURE__ */ X(Bp, { ...e }) : /* @__PURE__ */ X(zp, { ...e });
8075
+ function Hp(e) {
8076
+ return e.inline ? /* @__PURE__ */ X(Wp, { ...e }) : /* @__PURE__ */ X(Up, { ...e });
8065
8077
  }
8066
- function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen: u = !1, defaultValues: d, errorTriggerMode: f = "on-blur", loading: p = !1, labels: m, preview: h = !1, useUpload: g, datasets: _, saveDraft: v }) {
8067
- let { t: y } = z(), [b, x] = J(!1), S = c === "fullscreen", C = c === "fullscreen" ? "center" : c, [w, T] = J(S), { formRef: E, submit: D, isSubmitting: O, hasErrors: k } = rn(), A = q({}), j = K(() => kp(e), [e]), M = hp(j), N = j.length > 0, P = {
8078
+ function Up({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen: u = !1, defaultValues: d, errorTriggerMode: f = "on-blur", loading: p = !1, labels: m, preview: h = !1, useUpload: g, datasets: _, saveDraft: v }) {
8079
+ let { t: y } = R(), [b, x] = J(!1), S = c === "fullscreen", C = c === "fullscreen" ? "center" : c, [w, T] = J(S), { formRef: E, submit: D, isSubmitting: O, hasErrors: k } = an(), A = q({}), j = K(() => kp(e), [e]), M = hp(j), N = j.length > 0, P = {
8068
8080
  title: m?.empty?.title ?? y("surveyAnsweringForm.labels.empty.title"),
8069
8081
  description: m?.empty?.description ?? y("surveyAnsweringForm.labels.empty.description"),
8070
8082
  emoji: m?.empty?.emoji ?? y("surveyAnsweringForm.labels.empty.emoji")
8071
- }, F = n === "stepped", I = h && !!d && Object.keys(d).length > 0, ee = h && !I, te = F ? M.currentQuestion?.id : void 0, L = q(void 0), ne = q(Pp), re = W(() => {
8072
- clearTimeout(L.current);
8073
- }, []), ie = W((e) => {
8074
- re(), e && (L.current = setTimeout(() => ne.current(), Fp));
8075
- }, [re]), { schema: ae, defaultValues: oe, sections: se } = Np({
8083
+ }, F = n === "stepped", I = h && !!d && Object.keys(d).length > 0, ee = h && !I, te = F ? M.currentQuestion?.id : void 0, ne = q(void 0), re = q(Lp), ie = W(() => {
8084
+ clearTimeout(ne.current);
8085
+ }, []), ae = W((e) => {
8086
+ ie(), e && (ne.current = setTimeout(() => re.current(), Rp));
8087
+ }, [ie]), { schema: oe, defaultValues: se, sections: ce } = Ip({
8076
8088
  elements: e,
8077
8089
  mode: n,
8078
8090
  t: y,
@@ -8083,60 +8095,60 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8083
8095
  disableFields: I,
8084
8096
  useUpload: g,
8085
8097
  datasets: _,
8086
- onSingleAnswerChange: F ? ie : void 0
8087
- }), le = w ? "fullscreen" : C, ue = le === "center" ? "xl" : void 0, de = q(null), fe = W((e) => {
8088
- de.current && clearTimeout(de.current), de.current = setTimeout(() => {
8089
- de.current = null, s();
8098
+ onSingleAnswerChange: F ? ae : void 0
8099
+ }), ue = w ? "fullscreen" : C, de = ue === "center" ? "xl" : void 0, fe = q(null), pe = W((e) => {
8100
+ fe.current && clearTimeout(fe.current), fe.current = setTimeout(() => {
8101
+ fe.current = null, s();
8090
8102
  }, e);
8091
- }, [s]), me = W((e) => e.success ? (fe(e.message ? 1e3 : 0), {
8103
+ }, [s]), he = W((e) => e.success ? (pe(e.message ? 1e3 : 0), {
8092
8104
  success: !0,
8093
8105
  message: e.message
8094
8106
  }) : {
8095
8107
  success: !1,
8096
- errors: e.errors
8097
- }, [fe]), he = W(async (e) => {
8108
+ errors: Bp(e.errors)
8109
+ }, [pe]), ge = W(async (e) => {
8098
8110
  if (h) return { success: !0 };
8099
8111
  if (!t) throw Error("onSubmit is required when preview is false");
8100
8112
  if (F && !M.isLastStep) return A.current = {
8101
8113
  ...A.current,
8102
8114
  ...e
8103
8115
  }, M.goToNext(), { success: !0 };
8104
- let n = Ip(F ? {
8116
+ let n = zp(F ? {
8105
8117
  ...A.current,
8106
8118
  ...e
8107
8119
  } : e);
8108
8120
  if (F) {
8109
8121
  M.setProgress(100);
8110
8122
  let [e] = await Promise.all([t(n), new Promise((e) => setTimeout(e, 1e3))]);
8111
- return e.success || M.setProgress(null), me(e);
8123
+ return e.success || M.setProgress(null), he(e);
8112
8124
  }
8113
- return me(await t(n));
8125
+ return he(await t(n));
8114
8126
  }, [
8115
8127
  t,
8116
8128
  h,
8117
- me,
8129
+ he,
8118
8130
  F,
8119
8131
  M.isLastStep,
8120
8132
  M.goToNext,
8121
8133
  M.setProgress
8122
- ]), ge = W(async () => {
8134
+ ]), _e = W(async () => {
8123
8135
  try {
8124
8136
  await D();
8125
8137
  } catch {}
8126
- }, [D]), _e = W(() => {
8138
+ }, [D]), ve = W(() => {
8127
8139
  let e = E.current?.getValues() ?? {};
8128
8140
  A.current = {
8129
8141
  ...A.current,
8130
8142
  ...e
8131
8143
  }, M.goToPrevious();
8132
- }, [E, M.goToPrevious]), ve = W(async () => {
8144
+ }, [E, M.goToPrevious]), ye = W(async () => {
8133
8145
  if (!v) return;
8134
8146
  let t = {
8135
- ...Lp(e, d),
8147
+ ...Vp(e, d),
8136
8148
  ...A.current,
8137
8149
  ...E.current?.getValues()
8138
8150
  };
8139
- x(!0), await Promise.resolve().then(() => v.onSave(Ip(t))).catch((e) => {
8151
+ x(!0), await Promise.resolve().then(() => v.onSave(zp(t))).catch((e) => {
8140
8152
  console.warn("SurveyAnsweringForm: saveDraft.onSave failed", e);
8141
8153
  }).finally(() => x(!1));
8142
8154
  }, [
@@ -8144,71 +8156,71 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8144
8156
  e,
8145
8157
  d,
8146
8158
  E
8147
- ]), ye = F && !M.isLastStep && !p && !I, be = ee ? M.goToNext : ge;
8159
+ ]), be = F && !M.isLastStep && !p && !I, xe = ee ? M.goToNext : _e;
8148
8160
  G(() => {
8149
- ne.current = ye ? be : Pp;
8150
- }, [ye, be]), G(() => () => re(), [
8161
+ re.current = be ? xe : Lp;
8162
+ }, [be, xe]), G(() => () => ie(), [
8151
8163
  M.currentStep,
8152
8164
  o,
8153
- re
8165
+ ie
8154
8166
  ]);
8155
- let xe = u && !p ? [{
8167
+ let Se = u && !p ? [{
8156
8168
  label: y(w ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
8157
8169
  icon: w ? ti : _i,
8158
8170
  onClick: () => T((e) => !e)
8159
- }] : void 0, Se = N ? p || I ? void 0 : ee ? F && !M.isLastStep ? {
8171
+ }] : void 0, Ce = N ? p || I ? void 0 : ee ? F && !M.isLastStep ? {
8160
8172
  label: y("surveyAnsweringForm.actions.next"),
8161
8173
  onClick: M.goToNext,
8162
8174
  icon: Ar
8163
8175
  } : {
8164
8176
  label: y("surveyAnsweringForm.actions.submit"),
8165
- onClick: Pp,
8177
+ onClick: Lp,
8166
8178
  disabled: !0
8167
8179
  } : F && !M.isLastStep ? {
8168
8180
  label: y("surveyAnsweringForm.actions.next"),
8169
- onClick: ge,
8181
+ onClick: _e,
8170
8182
  icon: Ar,
8171
8183
  disabled: b
8172
8184
  } : {
8173
8185
  label: y("surveyAnsweringForm.actions.submit"),
8174
- onClick: ge,
8186
+ onClick: _e,
8175
8187
  disabled: O || k || b,
8176
8188
  loading: O
8177
- } : void 0, Ce = N ? p || I ? void 0 : F && !M.isFirstStep ? {
8189
+ } : void 0, we = N ? p || I ? void 0 : F && !M.isFirstStep ? {
8178
8190
  label: y("surveyAnsweringForm.actions.previous"),
8179
- onClick: _e,
8191
+ onClick: ve,
8180
8192
  icon: _s
8181
- } : void 0 : void 0, we = v && N && !p && !h ? [{
8193
+ } : void 0 : void 0, Te = v && N && !p && !h ? [{
8182
8194
  label: v.label,
8183
- onClick: ve,
8195
+ onClick: ye,
8184
8196
  disabled: O
8185
- }] : void 0, Te = n === "all-questions" && N && !p, Ee = F && N && !p, De = F && !!M.currentQuestion?.sectionTitle && !p, Oe = le === "center" || le === "fullscreen";
8197
+ }] : void 0, Ee = n === "all-questions" && N && !p, De = F && N && !p, Oe = F && !!M.currentQuestion?.sectionTitle && !p, ke = ue === "center" || ue === "fullscreen";
8186
8198
  return /* @__PURE__ */ X(Tr, {
8187
8199
  isOpen: o,
8188
8200
  onClose: s,
8189
8201
  title: r,
8190
8202
  module: l,
8191
- position: le,
8192
- width: ue,
8193
- primaryAction: Se,
8194
- secondaryAction: Ce,
8195
- secondaryActions: we,
8196
- otherActions: xe,
8197
- disableContentPadding: Oe,
8203
+ position: ue,
8204
+ width: de,
8205
+ primaryAction: Ce,
8206
+ secondaryAction: we,
8207
+ secondaryActions: Te,
8208
+ otherActions: Se,
8209
+ disableContentPadding: ke,
8198
8210
  children: /* @__PURE__ */ X(nf, {
8199
8211
  answering: !0,
8200
8212
  elements: e,
8201
- onChange: Pp,
8213
+ onChange: Lp,
8202
8214
  datasets: _,
8203
8215
  children: /* @__PURE__ */ Z("div", {
8204
8216
  className: B("relative flex h-full min-h-full flex-col @container", F && !w && "min-h-[600px]"),
8205
8217
  children: [
8206
- Te ? /* @__PURE__ */ X($f, {
8218
+ Ee ? /* @__PURE__ */ X($f, {
8207
8219
  elements: e,
8208
- onChange: Pp,
8220
+ onChange: Lp,
8209
8221
  answering: !0
8210
8222
  }) : null,
8211
- Ee ? /* @__PURE__ */ X("div", {
8223
+ De ? /* @__PURE__ */ X("div", {
8212
8224
  className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
8213
8225
  children: /* @__PURE__ */ X(Xo, {
8214
8226
  label: "Value",
@@ -8217,11 +8229,11 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8217
8229
  })
8218
8230
  }) : null,
8219
8231
  /* @__PURE__ */ Z("div", {
8220
- className: B("mx-auto flex w-full flex-1 justify-center flex-col @lg:w-[750px] max-w-full pt-0", Oe && "px-4 py-12"),
8232
+ className: B("mx-auto flex w-full flex-1 justify-center flex-col @lg:w-[750px] max-w-full pt-0", ke && "px-4 py-12"),
8221
8233
  children: [
8222
8234
  /* @__PURE__ */ X("div", {
8223
8235
  className: "mb-6",
8224
- children: /* @__PURE__ */ X(on, {
8236
+ children: /* @__PURE__ */ X(sn, {
8225
8237
  title: r,
8226
8238
  description: i,
8227
8239
  ...a
@@ -8234,13 +8246,13 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8234
8246
  justifyContent: "center",
8235
8247
  alignItems: "center",
8236
8248
  paddingX: "lg",
8237
- children: /* @__PURE__ */ X(pe, {
8249
+ children: /* @__PURE__ */ X(me, {
8238
8250
  emoji: P.emoji,
8239
8251
  title: P.title,
8240
8252
  description: P.description
8241
8253
  })
8242
8254
  }),
8243
- De ? /* @__PURE__ */ Z("div", {
8255
+ Oe ? /* @__PURE__ */ Z("div", {
8244
8256
  className: "py-1 pl-5",
8245
8257
  children: [/* @__PURE__ */ X("span", {
8246
8258
  className: "text-lg font-semibold text-f1-foreground",
@@ -8250,15 +8262,15 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8250
8262
  children: M.currentQuestion?.sectionDescription
8251
8263
  }) : null]
8252
8264
  }) : null,
8253
- N && !p ? /* @__PURE__ */ X(ce, {
8265
+ N && !p ? /* @__PURE__ */ X(le, {
8254
8266
  formRef: E,
8255
8267
  name: "survey-answering",
8256
- schema: ae,
8257
- defaultValues: oe,
8258
- onSubmit: he,
8268
+ schema: oe,
8269
+ defaultValues: se,
8270
+ onSubmit: ge,
8259
8271
  submitConfig: { hideSubmitButton: !0 },
8260
8272
  errorTriggerMode: f,
8261
- sections: se
8273
+ sections: ce
8262
8274
  }, F ? M.currentStep : void 0) : null
8263
8275
  ]
8264
8276
  })
@@ -8267,12 +8279,12 @@ function zp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
8267
8279
  })
8268
8280
  });
8269
8281
  }
8270
- function Bp({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
8271
- let { t: u } = z(), d = K(() => kp(e), [e]).length > 0, f = {
8282
+ function Wp({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
8283
+ let { t: u } = R(), d = K(() => kp(e), [e]).length > 0, f = {
8272
8284
  title: o?.empty?.title ?? u("surveyAnsweringForm.labels.empty.title"),
8273
8285
  description: o?.empty?.description ?? u("surveyAnsweringForm.labels.empty.description"),
8274
8286
  emoji: o?.empty?.emoji ?? u("surveyAnsweringForm.labels.empty.emoji")
8275
- }, { schema: p, defaultValues: m, sections: h } = Np({
8287
+ }, { schema: p, defaultValues: m, sections: h } = Ip({
8276
8288
  elements: e,
8277
8289
  mode: "all-questions",
8278
8290
  t: u,
@@ -8285,18 +8297,18 @@ function Bp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
8285
8297
  return /* @__PURE__ */ X(nf, {
8286
8298
  answering: !0,
8287
8299
  elements: e,
8288
- onChange: Pp,
8300
+ onChange: Lp,
8289
8301
  datasets: c,
8290
8302
  children: /* @__PURE__ */ Z("div", {
8291
8303
  className: "mx-auto flex w-full max-w-3xl flex-col",
8292
8304
  children: [l ? null : /* @__PURE__ */ X("div", {
8293
8305
  className: "mb-6",
8294
- children: /* @__PURE__ */ X(on, {
8306
+ children: /* @__PURE__ */ X(sn, {
8295
8307
  title: t,
8296
8308
  description: n,
8297
8309
  ...r
8298
8310
  })
8299
- }), a ? /* @__PURE__ */ X(pp, {}) : d ? /* @__PURE__ */ X(ce, {
8311
+ }), a ? /* @__PURE__ */ X(pp, {}) : d ? /* @__PURE__ */ X(le, {
8300
8312
  name: "survey-answering-inline",
8301
8313
  schema: p,
8302
8314
  defaultValues: m,
@@ -8312,7 +8324,7 @@ function Bp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
8312
8324
  justifyContent: "center",
8313
8325
  alignItems: "center",
8314
8326
  paddingX: "lg",
8315
- children: /* @__PURE__ */ X(pe, {
8327
+ children: /* @__PURE__ */ X(me, {
8316
8328
  emoji: f.emoji,
8317
8329
  title: f.title,
8318
8330
  description: f.description
@@ -8323,7 +8335,7 @@ function Bp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
8323
8335
  }
8324
8336
  //#endregion
8325
8337
  //#region src/domains/talent/surveys/surveys/SurveySampleQuestion/SurveySampleQuestion.tsx
8326
- function Vp(e) {
8338
+ function Gp(e) {
8327
8339
  return /* @__PURE__ */ Z(ao, {
8328
8340
  display: "flex",
8329
8341
  flexDirection: "column",
@@ -8334,14 +8346,14 @@ function Vp(e) {
8334
8346
  children: [/* @__PURE__ */ X("p", {
8335
8347
  className: "m-0 text-sm font-semibold text-f1-foreground",
8336
8348
  children: e.question
8337
- }), e.type === "rating" ? /* @__PURE__ */ X(Hp, {
8349
+ }), e.type === "rating" ? /* @__PURE__ */ X(Kp, {
8338
8350
  steps: e.steps ?? 5,
8339
8351
  minLabel: e.minLabel,
8340
8352
  maxLabel: e.maxLabel
8341
- }) : /* @__PURE__ */ X(Up, { options: e.options })]
8353
+ }) : /* @__PURE__ */ X(qp, { options: e.options })]
8342
8354
  });
8343
8355
  }
8344
- function Hp({ steps: e, minLabel: t, maxLabel: n }) {
8356
+ function Kp({ steps: e, minLabel: t, maxLabel: n }) {
8345
8357
  return /* @__PURE__ */ Z(ao, {
8346
8358
  display: "flex",
8347
8359
  flexDirection: "column",
@@ -8370,7 +8382,7 @@ function Hp({ steps: e, minLabel: t, maxLabel: n }) {
8370
8382
  }) : null]
8371
8383
  });
8372
8384
  }
8373
- function Up({ options: e }) {
8385
+ function qp({ options: e }) {
8374
8386
  return /* @__PURE__ */ X(ao, {
8375
8387
  display: "flex",
8376
8388
  flexDirection: "column",
@@ -8399,17 +8411,17 @@ function Up({ options: e }) {
8399
8411
  }
8400
8412
  //#endregion
8401
8413
  //#region src/domains/growth/upselling/UpsellingKit/ProductBlankslate/ProductBlankslate.tsx
8402
- var Wp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
8414
+ var Jp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
8403
8415
  className: "flex flex-col gap-2",
8404
- children: e.map((e, t) => /* @__PURE__ */ X(Gp, { text: e }, t))
8405
- }), Gp = ({ text: e }) => /* @__PURE__ */ Z("div", {
8416
+ children: e.map((e, t) => /* @__PURE__ */ X(Yp, { text: e }, t))
8417
+ }), Yp = ({ text: e }) => /* @__PURE__ */ Z("div", {
8406
8418
  className: "flex flex-row items-start gap-2",
8407
8419
  children: [/* @__PURE__ */ X(H, {
8408
8420
  icon: Hs,
8409
8421
  size: "md",
8410
8422
  className: "text-f1-icon-positive"
8411
8423
  }), /* @__PURE__ */ X("span", { children: e })]
8412
- }), Kp = bc(({ title: e, image: t, benefits: n, actions: r, withShadow: i = !0, module: a, moduleName: o, tag: s, promoTag: c }, l) => /* @__PURE__ */ Z("div", {
8424
+ }), Xp = bc(({ title: e, image: t, benefits: n, actions: r, withShadow: i = !0, module: a, moduleName: o, tag: s, promoTag: c }, l) => /* @__PURE__ */ Z("div", {
8413
8425
  ref: l,
8414
8426
  className: B("bg-white flex flex-row rounded-xl border border-f1-border-secondary", i && "shadow-md"),
8415
8427
  children: [/* @__PURE__ */ X("div", {
@@ -8448,18 +8460,18 @@ var Wp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
8448
8460
  children: e
8449
8461
  })
8450
8462
  ]
8451
- }), /* @__PURE__ */ X(Wp, { benefits: n })]
8463
+ }), /* @__PURE__ */ X(Jp, { benefits: n })]
8452
8464
  }), r ? /* @__PURE__ */ X("div", {
8453
8465
  className: "flex gap-3",
8454
8466
  children: r
8455
8467
  }) : null]
8456
8468
  })]
8457
8469
  }));
8458
- Kp.displayName = "ProductBlankslate";
8459
- var qp = R(Kp);
8470
+ Xp.displayName = "ProductBlankslate";
8471
+ var Zp = L(Xp);
8460
8472
  //#endregion
8461
8473
  //#region src/domains/growth/upselling/UpsellingKit/ProductModal/components/CustomModal.tsx
8462
- function Jp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalContainer: a }) {
8474
+ function Qp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalContainer: a }) {
8463
8475
  let [o, s] = J(e);
8464
8476
  return G(() => {
8465
8477
  s(e);
@@ -8499,7 +8511,7 @@ function Jp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
8499
8511
  }
8500
8512
  //#endregion
8501
8513
  //#region src/domains/growth/upselling/UpsellingKit/ProductModal/ProductModal.tsx
8502
- function Yp({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessage: a, successMessage: o, loadingState: s, nextSteps: c, closeLabel: l, primaryAction: u, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: h, promoTag: g, showResponseDialog: _ = !0 }) {
8514
+ function $p({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessage: a, successMessage: o, loadingState: s, nextSteps: c, closeLabel: l, primaryAction: u, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: h, promoTag: g, showResponseDialog: _ = !0 }) {
8503
8515
  let [v, y] = J(e), [b, x] = J(null), [S, C] = J(!1), w = async () => {
8504
8516
  if (u?.onClick) {
8505
8517
  C(!0);
@@ -8514,7 +8526,7 @@ function Yp({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
8514
8526
  }, T = () => {
8515
8527
  y(!1), t?.();
8516
8528
  }, E = S;
8517
- return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Jp, {
8529
+ return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Qp, {
8518
8530
  isOpen: v,
8519
8531
  onClose: T,
8520
8532
  title: d,
@@ -8522,7 +8534,7 @@ function Yp({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
8522
8534
  portalContainer: m,
8523
8535
  children: /* @__PURE__ */ X("div", {
8524
8536
  className: "pb-4 pl-4",
8525
- children: /* @__PURE__ */ X(qp, {
8537
+ children: /* @__PURE__ */ X(Zp, {
8526
8538
  title: n,
8527
8539
  image: r,
8528
8540
  benefits: i,
@@ -8561,10 +8573,10 @@ function Yp({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
8561
8573
  portalContainer: m
8562
8574
  }) : null] });
8563
8575
  }
8564
- var Xp = R(Yp);
8576
+ var em = L($p);
8565
8577
  //#endregion
8566
8578
  //#region src/domains/growth/upselling/UpsellingKit/ProductWidget/ProductWidget.tsx
8567
- function Zp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i, width: a, trackVisibility: o, actions: s, showConfirmation: c = !0 }) {
8579
+ function tm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i, width: a, trackVisibility: o, actions: s, showConfirmation: c = !0 }) {
8568
8580
  let [l, u] = J(!1), d = () => {
8569
8581
  u(!0), r && r();
8570
8582
  };
@@ -8598,10 +8610,10 @@ function Zp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
8598
8610
  className: "h-full w-full rounded-md"
8599
8611
  }) : null }), /* @__PURE__ */ Z("div", {
8600
8612
  className: "flex flex-col gap-[2px] p-3",
8601
- children: [/* @__PURE__ */ X(nt, {
8613
+ children: [/* @__PURE__ */ X(rt, {
8602
8614
  className: "text-lg font-medium",
8603
8615
  children: t
8604
- }), /* @__PURE__ */ X(nt, {
8616
+ }), /* @__PURE__ */ X(rt, {
8605
8617
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
8606
8618
  children: n
8607
8619
  })]
@@ -8625,8 +8637,8 @@ function Zp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
8625
8637
  }) : null]
8626
8638
  }) });
8627
8639
  }
8628
- var Qp = R(Zp), $p = ({ onDismiss: e }) => {
8629
- let { actions: t } = z();
8640
+ var nm = L(tm), rm = ({ onDismiss: e }) => {
8641
+ let { actions: t } = R();
8630
8642
  return /* @__PURE__ */ X(V, {
8631
8643
  icon: ui,
8632
8644
  label: t.close,
@@ -8637,7 +8649,7 @@ var Qp = R(Zp), $p = ({ onDismiss: e }) => {
8637
8649
  type: "button"
8638
8650
  });
8639
8651
  };
8640
- function em({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
8652
+ function im({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
8641
8653
  return /* @__PURE__ */ X("div", {
8642
8654
  className: "@container",
8643
8655
  children: /* @__PURE__ */ X("div", {
@@ -8682,13 +8694,13 @@ function em({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
8682
8694
  })]
8683
8695
  }), i ? /* @__PURE__ */ X("div", {
8684
8696
  className: B("flex-shrink-0 self-start", !n && "@xs:self-center"),
8685
- children: /* @__PURE__ */ X($p, { onDismiss: i })
8697
+ children: /* @__PURE__ */ X(rm, { onDismiss: i })
8686
8698
  }) : null]
8687
8699
  })
8688
8700
  })
8689
8701
  });
8690
8702
  }
8691
- var tm = R(em), nm = bc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
8703
+ var am = L(im), om = bc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
8692
8704
  let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(C, {
8693
8705
  label: e.label,
8694
8706
  onRequest: e.onClick,
@@ -8707,7 +8719,7 @@ var tm = R(em), nm = bc(function({ primaryAction: e, secondaryAction: t, ...n },
8707
8719
  size: "md",
8708
8720
  icon: e.icon
8709
8721
  }), a = e?.variant === "promote" ? void 0 : e, o = t?.variant === "promote" ? void 0 : t;
8710
- return /* @__PURE__ */ Z(Re, {
8722
+ return /* @__PURE__ */ Z(ze, {
8711
8723
  ref: r,
8712
8724
  ...n,
8713
8725
  primaryAction: a,
@@ -8715,11 +8727,11 @@ var tm = R(em), nm = bc(function({ primaryAction: e, secondaryAction: t, ...n },
8715
8727
  children: [e?.variant === "promote" ? i(e) : null, t?.variant === "promote" ? i(t) : null]
8716
8728
  });
8717
8729
  });
8718
- nm.displayName = "UpsellingBanner";
8719
- var rm = R(nm);
8730
+ om.displayName = "UpsellingBanner";
8731
+ var sm = L(om);
8720
8732
  //#endregion
8721
8733
  //#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
8722
- function im({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = pi, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
8734
+ function cm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = pi, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
8723
8735
  let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
8724
8736
  t(e), h && h();
8725
8737
  }, w = async (e) => {
@@ -8754,7 +8766,7 @@ function im({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
8754
8766
  side: o,
8755
8767
  align: s,
8756
8768
  className: "w-fit border-none bg-transparent p-2 shadow-none",
8757
- children: /* @__PURE__ */ X(Qp, {
8769
+ children: /* @__PURE__ */ X(nm, {
8758
8770
  mediaUrl: l,
8759
8771
  title: u,
8760
8772
  description: d,
@@ -8777,8 +8789,8 @@ function im({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
8777
8789
  portalContainer: null
8778
8790
  }) : null] });
8779
8791
  }
8780
- var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
8781
- let a = z(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
8792
+ var lm = L(cm), um = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
8793
+ let a = R(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
8782
8794
  return /* @__PURE__ */ Z(di, {
8783
8795
  className: "flex flex-col overflow-hidden",
8784
8796
  children: [/* @__PURE__ */ Z(_r, {
@@ -8813,7 +8825,7 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
8813
8825
  })
8814
8826
  })]
8815
8827
  });
8816
- }, sm = ({ item: e, isExpanded: t, onToggle: n }) => /* @__PURE__ */ Z("div", {
8828
+ }, dm = ({ item: e, isExpanded: t, onToggle: n }) => /* @__PURE__ */ Z("div", {
8817
8829
  className: B("flex flex-col rounded-lg px-3 -mx-3 transition-colors duration-200", t && "bg-f1-background-secondary"),
8818
8830
  children: [/* @__PURE__ */ Z("button", {
8819
8831
  type: "button",
@@ -8842,8 +8854,8 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
8842
8854
  children: e.answer
8843
8855
  })
8844
8856
  })]
8845
- }), cm = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
8846
- let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? ki, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
8857
+ }), fm = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
8858
+ let o = R()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? ki, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
8847
8859
  u,
8848
8860
  r,
8849
8861
  c
@@ -8875,15 +8887,15 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
8875
8887
  })]
8876
8888
  }), /* @__PURE__ */ X(_r, {
8877
8889
  className: "flex flex-col divide-y divide-f1-border p-0",
8878
- children: t.map((e) => /* @__PURE__ */ X(sm, {
8890
+ children: t.map((e) => /* @__PURE__ */ X(dm, {
8879
8891
  item: e,
8880
8892
  isExpanded: d(e.id),
8881
8893
  onToggle: f
8882
8894
  }, e.id))
8883
8895
  })]
8884
8896
  });
8885
- }, lm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
8886
- let a = z()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
8897
+ }, pm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
8898
+ let a = R()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
8887
8899
  return /* @__PURE__ */ Z(di, {
8888
8900
  className: "flex flex-col overflow-hidden",
8889
8901
  children: [/* @__PURE__ */ X(_r, {
@@ -8924,8 +8936,8 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
8924
8936
  })
8925
8937
  })]
8926
8938
  });
8927
- }, um = ({ onAction: e, actionHref: t }) => {
8928
- let n = z()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
8939
+ }, mm = ({ onAction: e, actionHref: t }) => {
8940
+ let n = R()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
8929
8941
  return /* @__PURE__ */ Z(di, {
8930
8942
  className: "flex flex-col overflow-hidden",
8931
8943
  children: [/* @__PURE__ */ Z(_r, {
@@ -8960,8 +8972,8 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
8960
8972
  })
8961
8973
  })]
8962
8974
  });
8963
- }, dm = ({ steps: e, onComplete: t, onSkip: n, sendAsMessage: r = !1, onSendMessage: i }) => {
8964
- let [a, o] = J(0), [s, c] = J({}), l = z(), u = e.length, d = e[a], f = s[a] ?? [], p = W((e, t) => {
8975
+ }, hm = ({ steps: e, onComplete: t, onSkip: n, sendAsMessage: r = !1, onSendMessage: i }) => {
8976
+ let [a, o] = J(0), [s, c] = J({}), l = R(), u = e.length, d = e[a], f = s[a] ?? [], p = W((e, t) => {
8965
8977
  c((n) => {
8966
8978
  let r = n[a] ?? [], i = t ? [...r, e] : r.filter((t) => t !== e);
8967
8979
  return {
@@ -9065,7 +9077,7 @@ var am = R(im), om = ({ preview: e, moduleName: t, description: n, onAction: r,
9065
9077
  };
9066
9078
  //#endregion
9067
9079
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/chartDataAdapter.ts
9068
- function fm(e) {
9080
+ function gm(e) {
9069
9081
  let t = e.categories ?? [], n = e.series;
9070
9082
  if (n && !Array.isArray(n) && "data" in n) {
9071
9083
  let e = n;
@@ -9081,12 +9093,12 @@ function fm(e) {
9081
9093
  categories: t,
9082
9094
  series: (Array.isArray(n) ? n : []).map((e) => ({
9083
9095
  name: e.name,
9084
- data: (e.data ?? []).map(et)
9096
+ data: (e.data ?? []).map(tt)
9085
9097
  }))
9086
9098
  };
9087
9099
  }
9088
- function pm(e) {
9089
- if (Array.isArray(e.series)) return fm(e);
9100
+ function _m(e) {
9101
+ if (Array.isArray(e.series)) return gm(e);
9090
9102
  let t = e.series;
9091
9103
  return t?.data ? {
9092
9104
  categories: t.data.map((e) => e.name),
@@ -9099,7 +9111,7 @@ function pm(e) {
9099
9111
  series: []
9100
9112
  };
9101
9113
  }
9102
- function mm(e) {
9114
+ function vm(e) {
9103
9115
  let t = e.series;
9104
9116
  return t?.data ? {
9105
9117
  categories: t.data.map((e) => e.name),
@@ -9112,7 +9124,7 @@ function mm(e) {
9112
9124
  series: []
9113
9125
  };
9114
9126
  }
9115
- function hm(e) {
9127
+ function ym(e) {
9116
9128
  let t = e.indicators ?? [], n = Array.isArray(e.series) ? e.series : [];
9117
9129
  return {
9118
9130
  categories: t.map((e) => typeof e == "string" ? e : e.name),
@@ -9122,7 +9134,7 @@ function hm(e) {
9122
9134
  }))
9123
9135
  };
9124
9136
  }
9125
- function gm(e) {
9137
+ function bm(e) {
9126
9138
  let t = e.series;
9127
9139
  return {
9128
9140
  categories: [t?.name ?? "Value"],
@@ -9132,7 +9144,7 @@ function gm(e) {
9132
9144
  }]
9133
9145
  };
9134
9146
  }
9135
- var _m = new Set(Object.keys({
9147
+ var xm = new Set(Object.keys({
9136
9148
  bar: !0,
9137
9149
  line: !0,
9138
9150
  funnel: !0,
@@ -9142,22 +9154,22 @@ var _m = new Set(Object.keys({
9142
9154
  heatmap: !0,
9143
9155
  scatter: !0
9144
9156
  }));
9145
- function vm(e) {
9146
- return e != null && _m.has(e.type);
9157
+ function Sm(e) {
9158
+ return e != null && xm.has(e.type);
9147
9159
  }
9148
- function ym(e) {
9160
+ function Cm(e) {
9149
9161
  return Array.isArray(e) ? String(e[0]) : e.label ?? String(e.x);
9150
9162
  }
9151
- function bm(e) {
9163
+ function wm(e) {
9152
9164
  let t = e.scatterSeries ?? [], n = [], r = /* @__PURE__ */ new Set();
9153
9165
  for (let e of t) for (let t of e.data) {
9154
- let e = ym(t);
9166
+ let e = Cm(t);
9155
9167
  r.has(e) || (r.add(e), n.push(e));
9156
9168
  }
9157
9169
  return {
9158
9170
  categories: n,
9159
9171
  series: t.map((e) => {
9160
- let t = new Map(e.data.map((e) => [ym(e), Array.isArray(e) ? e[1] : e.y]));
9172
+ let t = new Map(e.data.map((e) => [Cm(e), Array.isArray(e) ? e[1] : e.y]));
9161
9173
  return {
9162
9174
  name: e.name,
9163
9175
  data: n.map((e) => t.get(e) ?? 0)
@@ -9165,7 +9177,7 @@ function bm(e) {
9165
9177
  })
9166
9178
  };
9167
9179
  }
9168
- function xm(e) {
9180
+ function Tm(e) {
9169
9181
  let t = e.xCategories ?? [], n = e.yCategories ?? [], r = e.data ?? [];
9170
9182
  if (t.length === 0 || n.length === 0) return {
9171
9183
  categories: [],
@@ -9181,22 +9193,22 @@ function xm(e) {
9181
9193
  }))
9182
9194
  };
9183
9195
  }
9184
- function Sm(e, t) {
9196
+ function Em(e, t) {
9185
9197
  return e.scatterSeries === void 0 ? e.xCategories?.length || e.yCategories?.length || e.data && Array.isArray(e.data) && e.data.length > 0 && Array.isArray(e.data[0]) ? "heatmap" : e.indicators?.length ? "radar" : e.series && !Array.isArray(e.series) && "value" in e.series && typeof e.series.value == "number" ? "gauge" : e.series && !Array.isArray(e.series) && "data" in e.series ? t === "pie" ? "pie" : "funnel" : "bar" : "scatter";
9186
9198
  }
9187
- function Cm(e, t) {
9188
- switch (t ?? Sm(e)) {
9199
+ function Dm(e, t) {
9200
+ switch (t ?? Em(e)) {
9189
9201
  case "bar":
9190
- case "line": return fm(e);
9191
- case "funnel": return pm(e);
9192
- case "pie": return mm(e);
9193
- case "radar": return hm(e);
9194
- case "gauge": return gm(e);
9195
- case "heatmap": return xm(e);
9196
- case "scatter": return bm(e);
9202
+ case "line": return gm(e);
9203
+ case "funnel": return _m(e);
9204
+ case "pie": return vm(e);
9205
+ case "radar": return ym(e);
9206
+ case "gauge": return bm(e);
9207
+ case "heatmap": return Tm(e);
9208
+ case "scatter": return wm(e);
9197
9209
  }
9198
9210
  }
9199
- function wm(e) {
9211
+ function Om(e) {
9200
9212
  return {
9201
9213
  categories: e.categories,
9202
9214
  series: e.series.map((e) => ({
@@ -9205,7 +9217,7 @@ function wm(e) {
9205
9217
  }))
9206
9218
  };
9207
9219
  }
9208
- function Tm(e) {
9220
+ function km(e) {
9209
9221
  let t = e.series[0];
9210
9222
  return { series: {
9211
9223
  name: t?.name ?? "Funnel",
@@ -9215,7 +9227,7 @@ function Tm(e) {
9215
9227
  }))
9216
9228
  } };
9217
9229
  }
9218
- function Em(e) {
9230
+ function Am(e) {
9219
9231
  let t = e.series[0];
9220
9232
  return { series: {
9221
9233
  name: t?.name ?? "Distribution",
@@ -9225,7 +9237,7 @@ function Em(e) {
9225
9237
  }))
9226
9238
  } };
9227
9239
  }
9228
- function Dm(e) {
9240
+ function jm(e) {
9229
9241
  let t = e.categories.map((t, n) => Math.max(...e.series.map((e) => e.data[n] ?? 0), 1));
9230
9242
  return {
9231
9243
  indicators: e.categories.map((e, n) => ({
@@ -9238,7 +9250,7 @@ function Dm(e) {
9238
9250
  }))
9239
9251
  };
9240
9252
  }
9241
- function Om(e) {
9253
+ function Mm(e) {
9242
9254
  return { scatterSeries: e.series.map((t) => ({
9243
9255
  name: t.name,
9244
9256
  data: e.categories.map((e, n) => ({
@@ -9248,7 +9260,7 @@ function Om(e) {
9248
9260
  }))
9249
9261
  })) };
9250
9262
  }
9251
- function km(e) {
9263
+ function Nm(e) {
9252
9264
  return {
9253
9265
  series: {
9254
9266
  value: e.series[0]?.data[0] ?? 0,
@@ -9257,26 +9269,26 @@ function km(e) {
9257
9269
  categories: void 0
9258
9270
  };
9259
9271
  }
9260
- function Am(e, t) {
9272
+ function Pm(e, t) {
9261
9273
  switch (t) {
9262
9274
  case "bar":
9263
- case "line": return wm(e);
9264
- case "funnel": return Tm(e);
9265
- case "pie": return Em(e);
9266
- case "radar": return Dm(e);
9267
- case "gauge": return km(e);
9275
+ case "line": return Om(e);
9276
+ case "funnel": return km(e);
9277
+ case "pie": return Am(e);
9278
+ case "radar": return jm(e);
9279
+ case "gauge": return Nm(e);
9268
9280
  case "heatmap": return {
9269
9281
  xCategories: [],
9270
9282
  yCategories: [],
9271
9283
  data: []
9272
9284
  };
9273
- case "scatter": return Om(e);
9285
+ case "scatter": return Mm(e);
9274
9286
  }
9275
9287
  }
9276
- function jm(e) {
9288
+ function Fm(e) {
9277
9289
  return e.series.some((e) => e.data.includes(null));
9278
9290
  }
9279
- function Mm(e) {
9291
+ function Im(e) {
9280
9292
  let t = /* @__PURE__ */ new Set();
9281
9293
  switch (t.add("table"), t.add(e), e) {
9282
9294
  case "bar":
@@ -9295,7 +9307,7 @@ function Mm(e) {
9295
9307
  }
9296
9308
  return t;
9297
9309
  }
9298
- function Nm(e) {
9310
+ function Lm(e) {
9299
9311
  switch (e) {
9300
9312
  case "bar": return {
9301
9313
  type: "bar",
@@ -9334,19 +9346,19 @@ function Nm(e) {
9334
9346
  }
9335
9347
  //#endregion
9336
9348
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/chartDataToTabular.ts
9337
- function Pm(e, t) {
9349
+ function Rm(e, t) {
9338
9350
  switch (e.type) {
9339
9351
  case "bar":
9340
- case "line": return Fm(t);
9341
- case "funnel": return Im(t);
9342
- case "pie": return Lm(t);
9343
- case "radar": return Rm(t);
9344
- case "gauge": return zm(t);
9345
- case "heatmap": return Bm(t);
9346
- case "scatter": return Vm(e, t);
9352
+ case "line": return zm(t);
9353
+ case "funnel": return Bm(t);
9354
+ case "pie": return Vm(t);
9355
+ case "radar": return Hm(t);
9356
+ case "gauge": return Um(t);
9357
+ case "heatmap": return Wm(t);
9358
+ case "scatter": return Gm(e, t);
9347
9359
  }
9348
9360
  }
9349
- function Fm(e) {
9361
+ function zm(e) {
9350
9362
  let t = e.categories ?? [], n = e.series, r = Array.isArray(n) ? n : [];
9351
9363
  return {
9352
9364
  columns: ["Category", ...r.map((e) => e.name)],
@@ -9354,13 +9366,13 @@ function Fm(e) {
9354
9366
  let n = { Category: e };
9355
9367
  for (let e of r) {
9356
9368
  let r = e.data[t];
9357
- n[e.name] = r === void 0 ? null : et(r);
9369
+ n[e.name] = r === void 0 ? null : tt(r);
9358
9370
  }
9359
9371
  return n;
9360
9372
  })
9361
9373
  };
9362
9374
  }
9363
- function Im(e) {
9375
+ function Bm(e) {
9364
9376
  if (Array.isArray(e.series)) {
9365
9377
  let t = e.series[0];
9366
9378
  return t ? {
@@ -9382,7 +9394,7 @@ function Im(e) {
9382
9394
  }))
9383
9395
  };
9384
9396
  }
9385
- function Lm(e) {
9397
+ function Vm(e) {
9386
9398
  return {
9387
9399
  columns: ["Name", "Value"],
9388
9400
  rows: (e.series?.data ?? []).map((e) => ({
@@ -9391,7 +9403,7 @@ function Lm(e) {
9391
9403
  }))
9392
9404
  };
9393
9405
  }
9394
- function Rm(e) {
9406
+ function Hm(e) {
9395
9407
  let t = e.indicators ?? [], n = e.series, r = Array.isArray(n) ? n : [];
9396
9408
  return {
9397
9409
  columns: ["Indicator", ...r.map((e) => e.name)],
@@ -9402,7 +9414,7 @@ function Rm(e) {
9402
9414
  })
9403
9415
  };
9404
9416
  }
9405
- function zm(e) {
9417
+ function Um(e) {
9406
9418
  let t = e.series;
9407
9419
  return {
9408
9420
  columns: ["Name", "Value"],
@@ -9412,7 +9424,7 @@ function zm(e) {
9412
9424
  }]
9413
9425
  };
9414
9426
  }
9415
- function Bm(e) {
9427
+ function Wm(e) {
9416
9428
  let t = e.xCategories ?? [], n = e.yCategories ?? [];
9417
9429
  return {
9418
9430
  columns: [
@@ -9427,7 +9439,7 @@ function Bm(e) {
9427
9439
  }))
9428
9440
  };
9429
9441
  }
9430
- function Vm(e, t) {
9442
+ function Gm(e, t) {
9431
9443
  let n = (t.scatterSeries ?? []).flatMap((e) => e.data.map((t) => ({
9432
9444
  series: e.name,
9433
9445
  label: Array.isArray(t) ? "" : t.label ?? "",
@@ -9452,32 +9464,32 @@ function Vm(e, t) {
9452
9464
  }
9453
9465
  //#endregion
9454
9466
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/downloadHelpers.ts
9455
- function Hm(e) {
9467
+ function Km(e) {
9456
9468
  return e == null ? "" : typeof e == "boolean" ? String(e) : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e);
9457
9469
  }
9458
- function Um(e) {
9459
- return typeof e == "number" && Number.isFinite(e) ? e : Hm(e);
9470
+ function qm(e) {
9471
+ return typeof e == "number" && Number.isFinite(e) ? e : Km(e);
9460
9472
  }
9461
- function Wm({ columns: e, rows: t, keys: n, preamble: r }) {
9462
- let i = n ?? e, a = [e, ...t.map((e) => i.map((t) => Um(e[t])))];
9473
+ function Jm({ columns: e, rows: t, keys: n, preamble: r }) {
9474
+ let i = n ?? e, a = [e, ...t.map((e) => i.map((t) => qm(e[t])))];
9463
9475
  return r?.length ? [
9464
9476
  ...r.map((e) => [e]),
9465
9477
  [],
9466
9478
  ...a
9467
9479
  ] : a;
9468
9480
  }
9469
- function Gm(e, t) {
9481
+ function Ym(e, t) {
9470
9482
  let n = (t ?? "").split("\n").map((e) => e.trim()).filter((e) => e.length > 0);
9471
9483
  return n.length > 0 ? [e, ...n] : [];
9472
9484
  }
9473
- function Km(e, t) {
9485
+ function Xm(e, t) {
9474
9486
  let n = document.createElement("a");
9475
9487
  n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
9476
9488
  }
9477
- async function qm(e, t, n, { keys: r, preamble: i } = {}) {
9478
- Km(await Fr([{
9489
+ async function Zm(e, t, n, { keys: r, preamble: i } = {}) {
9490
+ Xm(await Fr([{
9479
9491
  name: "Data",
9480
- rows: Wm({
9492
+ rows: Jm({
9481
9493
  columns: e,
9482
9494
  rows: t,
9483
9495
  keys: r,
@@ -9485,31 +9497,31 @@ async function qm(e, t, n, { keys: r, preamble: i } = {}) {
9485
9497
  })
9486
9498
  }]), `${n}.xlsx`);
9487
9499
  }
9488
- function Jm(e, t, n, r) {
9500
+ function Qm(e, t, n, r) {
9489
9501
  let i = r ?? e, a = (e) => {
9490
- let t = Hm(e);
9502
+ let t = Km(e);
9491
9503
  return t.includes(",") || t.includes("\"") || t.includes("\n") ? `"${t.replace(/"/g, "\"\"")}"` : t;
9492
9504
  }, o = [e.map(a).join(","), ...t.map((e) => i.map((t) => a(e[t])).join(","))];
9493
- Km(new Blob([o.join("\n")], { type: "text/csv;charset=utf-8;" }), `${n}.csv`);
9505
+ Xm(new Blob([o.join("\n")], { type: "text/csv;charset=utf-8;" }), `${n}.csv`);
9494
9506
  }
9495
- function Ym(e, t, n) {
9507
+ function $m(e, t, n) {
9496
9508
  let r = document.createElement("a");
9497
9509
  r.href = e, r.download = `${t}.${n}`, r.click();
9498
9510
  }
9499
- async function Xm(e, t) {
9500
- Km(await Fr(e.map((e) => ({
9511
+ async function eh(e, t) {
9512
+ Xm(await Fr(e.map((e) => ({
9501
9513
  name: e.name,
9502
- rows: Wm(e)
9514
+ rows: Jm(e)
9503
9515
  }))), `${t}.xlsx`);
9504
9516
  }
9505
9517
  //#endregion
9506
9518
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useChartDownloadActions.ts
9507
- function Zm(e) {
9519
+ function th(e) {
9508
9520
  let t = e.current?.querySelector(":scope > div");
9509
- return t ? ot(t) ?? null : null;
9521
+ return t ? st(t) ?? null : null;
9510
9522
  }
9511
- function Qm(e, t, n) {
9512
- let r = Mt(document.createElement("div"), void 0, {
9523
+ function nh(e, t, n) {
9524
+ let r = Nt(document.createElement("div"), void 0, {
9513
9525
  renderer: "canvas",
9514
9526
  width: e.getWidth(),
9515
9527
  height: e.getHeight()
@@ -9527,29 +9539,29 @@ function Qm(e, t, n) {
9527
9539
  r.dispose();
9528
9540
  }
9529
9541
  }
9530
- function $m({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
9531
- let { t: i } = z(), a = W((t) => {
9532
- let n = Zm(e);
9533
- n && Ym(t === "jpg" ? Qm(n, "jpeg", "#fff") : Qm(n, "png"), r, t);
9542
+ function rh({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
9543
+ let { t: i } = R(), a = W((t) => {
9544
+ let n = th(e);
9545
+ n && $m(t === "jpg" ? nh(n, "jpeg", "#fff") : nh(n, "png"), r, t);
9534
9546
  }, [e, r]), o = K(() => {
9535
9547
  if (!n) return t;
9536
- let e = Sm(n, t.type);
9548
+ let e = Em(n, t.type);
9537
9549
  return e === t.type ? t : {
9538
9550
  ...t,
9539
9551
  type: e
9540
9552
  };
9541
9553
  }, [t, n]), s = W(() => {
9542
9554
  if (!n) return;
9543
- let e = Pm(o, n);
9544
- qm(e.columns, e.rows, r, { keys: e.keys });
9555
+ let e = Rm(o, n);
9556
+ Zm(e.columns, e.rows, r, { keys: e.keys });
9545
9557
  }, [
9546
9558
  o,
9547
9559
  n,
9548
9560
  r
9549
9561
  ]), c = W(() => {
9550
9562
  if (!n) return;
9551
- let e = Pm(o, n);
9552
- Jm(e.columns, e.rows, r, e.keys);
9563
+ let e = Rm(o, n);
9564
+ Qm(e.columns, e.rows, r, e.keys);
9553
9565
  }, [
9554
9566
  o,
9555
9567
  n,
@@ -9587,7 +9599,7 @@ function $m({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
9587
9599
  }
9588
9600
  //#endregion
9589
9601
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useDashboardItemData.ts
9590
- function eh(e, t, n, r = "") {
9602
+ function ih(e, t, n, r = "") {
9591
9603
  let [i, a] = J(void 0), [o, s] = J(!0), [c, l] = J(void 0), u = q(0), d = q(e);
9592
9604
  d.current = e;
9593
9605
  let f = q(t);
@@ -9619,8 +9631,8 @@ function eh(e, t, n, r = "") {
9619
9631
  }
9620
9632
  //#endregion
9621
9633
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemFilters.tsx
9622
- function th({ filters: e, value: t, onChange: n, onOpenChange: r }) {
9623
- let i = z(), a = wc(), o = q(null), s = q(void 0), c = q(r), [l, u] = J(!1), [d, f] = J(null), [p, m] = J(t);
9634
+ function ah({ filters: e, value: t, onChange: n, onOpenChange: r }) {
9635
+ let i = R(), a = wc(), o = q(null), s = q(void 0), c = q(r), [l, u] = J(!1), [d, f] = J(null), [p, m] = J(t);
9624
9636
  G(() => {
9625
9637
  c.current = r;
9626
9638
  }, [r]), G(() => () => {
@@ -9761,24 +9773,24 @@ function th({ filters: e, value: t, onChange: n, onOpenChange: r }) {
9761
9773
  }
9762
9774
  //#endregion
9763
9775
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/useTitleFitsOneLine.ts
9764
- var nh = "(hover: hover) and (min-width: 640px)", rh = (e) => {
9776
+ var oh = "(hover: hover) and (min-width: 640px)", sh = (e) => {
9765
9777
  let { whiteSpace: t, display: n } = e.style;
9766
9778
  e.style.whiteSpace = "nowrap", e.style.display = "block";
9767
9779
  let r = e.scrollWidth;
9768
9780
  return e.style.whiteSpace = t, e.style.display = n, r;
9769
9781
  };
9770
- function ih({ title: e, enabled: t, actionsCollapse: n }) {
9782
+ function ch({ title: e, enabled: t, actionsCollapse: n }) {
9771
9783
  let r = q(null), i = q(null), a = q(null), [o, s] = J(!0);
9772
9784
  return Ec(() => {
9773
9785
  let e = r.current;
9774
9786
  if (!t || !e) return;
9775
- let o = window.matchMedia?.(nh), c = () => {
9787
+ let o = window.matchMedia?.(oh), c = () => {
9776
9788
  let t = e.querySelector("h3");
9777
9789
  if (!t) {
9778
9790
  s(!0);
9779
9791
  return;
9780
9792
  }
9781
- let r = rh(t), c = n && o?.matches ? 0 : a.current?.getBoundingClientRect().width ?? 0, l = i.current, u = l ? l.getBoundingClientRect().width + 4 : 0, d = e.getBoundingClientRect().width - c - u;
9793
+ let r = sh(t), c = n && o?.matches ? 0 : a.current?.getBoundingClientRect().width ?? 0, l = i.current, u = l ? l.getBoundingClientRect().width + 4 : 0, d = e.getBoundingClientRect().width - c - u;
9782
9794
  s(r <= d);
9783
9795
  };
9784
9796
  c();
@@ -9803,14 +9815,14 @@ function ih({ title: e, enabled: t, actionsCollapse: n }) {
9803
9815
  }
9804
9816
  //#endregion
9805
9817
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
9806
- function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: p, onAskAiTarget: m, itemId: h, chartTypeOptions: g, explanation: _, isFullscreen: v = !1, descriptionAction: y, headerLines: b = 2, fitContent: x = !1, onFullscreenChange: S }) {
9807
- let [C, w] = J(!1), [T, E] = J(!1), D = q(!1), [O, k] = J(!1), A = z(), { enabled: j, setPendingQuote: M, setOpen: N, focusChatInput: P } = Fi(), F = (e) => {
9818
+ function lh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: p, onAskAiTarget: m, itemId: h, chartTypeOptions: g, explanation: _, isFullscreen: v = !1, descriptionAction: y, headerLines: b = 2, fitContent: x = !1, onFullscreenChange: S }) {
9819
+ let [C, w] = J(!1), [T, E] = J(!1), D = q(!1), [O, k] = J(!1), A = R(), { enabled: j, setPendingQuote: M, setOpen: N, focusChatInput: P } = Fi(), F = (e) => {
9808
9820
  w(e), e || k(!1);
9809
- }, I = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ee = I.length > 0, te = u && f && h, L = g && g.length > 0, ne = !!_ && _.trim().length > 0, re = !!S, ie = !d && e.trim().length > 0 && (p ? !!h : j), ae = ie || ee || te || L || ne, oe = !!l || re || !!ae, se = !v && (C || T), ce = B("flex flex-shrink-0 gap-0.5", !v && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", se && "delay-0 !opacity-100"), le = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !v && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", se && "delay-0 !grid-cols-[1fr]"), ue = ih({
9821
+ }, I = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ee = I.length > 0, te = u && f && h, ne = g && g.length > 0, re = !!_ && _.trim().length > 0, ie = !!S, ae = !d && e.trim().length > 0 && (p ? !!h : j), oe = ae || ee || te || ne || re, se = !!l || ie || !!oe, ce = !v && (C || T), le = B("flex flex-shrink-0 gap-0.5", !v && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !v && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = ch({
9810
9822
  title: e,
9811
9823
  enabled: b > 2,
9812
9824
  actionsCollapse: !v
9813
- }), de = ue.fits ? 1 : 2, fe = b - de, me = () => {
9825
+ }), fe = de.fits ? 1 : 2, pe = b - fe, he = () => {
9814
9826
  if (p) {
9815
9827
  if (!h) return;
9816
9828
  p({
@@ -9826,10 +9838,10 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9826
9838
  title: e,
9827
9839
  quote: t
9828
9840
  }), M(t), N(!0);
9829
- }, he = (e) => {
9841
+ }, ge = (e) => {
9830
9842
  D.current && (D.current = !1, P() && e.preventDefault());
9831
- }, ge = ie ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(Xs, {
9832
- onClick: me,
9843
+ }, _e = ae ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(Xs, {
9844
+ onClick: he,
9833
9845
  children: /* @__PURE__ */ Z("div", {
9834
9846
  className: "flex w-full flex-row items-center gap-2",
9835
9847
  children: [/* @__PURE__ */ X(H, { icon: Wr }), /* @__PURE__ */ X("span", {
@@ -9851,18 +9863,18 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9851
9863
  children: e
9852
9864
  }), n ? /* @__PURE__ */ X("div", {
9853
9865
  className: "flex shrink-0 items-center text-f1-foreground-secondary",
9854
- children: /* @__PURE__ */ X(Pe, { info: n })
9866
+ children: /* @__PURE__ */ X(Fe, { info: n })
9855
9867
  }) : null]
9856
9868
  }), t ? /* @__PURE__ */ X("p", {
9857
9869
  className: "text-base text-f1-foreground-secondary",
9858
9870
  children: t
9859
9871
  }) : null]
9860
- }), l || ie ? /* @__PURE__ */ Z("div", {
9861
- className: ce,
9862
- children: [l ? /* @__PURE__ */ X(th, {
9872
+ }), l || ae ? /* @__PURE__ */ Z("div", {
9873
+ className: le,
9874
+ children: [l ? /* @__PURE__ */ X(ah, {
9863
9875
  ...l,
9864
9876
  onOpenChange: E
9865
- }) : null, ie ? /* @__PURE__ */ Z(ic, {
9877
+ }) : null, ae ? /* @__PURE__ */ Z(ic, {
9866
9878
  open: C,
9867
9879
  onOpenChange: F,
9868
9880
  children: [/* @__PURE__ */ X(Js, {
@@ -9880,14 +9892,14 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9880
9892
  }), /* @__PURE__ */ X(Ks, {
9881
9893
  align: "end",
9882
9894
  className: "py-1",
9883
- onCloseAutoFocus: he,
9884
- children: ge
9895
+ onCloseAutoFocus: ge,
9896
+ children: _e
9885
9897
  })]
9886
9898
  }) : null]
9887
9899
  }) : null]
9888
9900
  }), /* @__PURE__ */ X("div", {
9889
9901
  className: "min-h-0 flex-1 overflow-auto",
9890
- children: /* @__PURE__ */ X(pe, {
9902
+ children: /* @__PURE__ */ X(me, {
9891
9903
  variant: "critical",
9892
9904
  title: A.ai.dashboardItem.errorTitle,
9893
9905
  description: i.message,
@@ -9903,37 +9915,37 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9903
9915
  "aria-busy": r ? "true" : void 0,
9904
9916
  "aria-live": r ? "polite" : void 0,
9905
9917
  children: [/* @__PURE__ */ Z("div", {
9906
- className: B("flex flex-col px-4 py-3", oe && "min-h-14"),
9918
+ className: B("flex flex-col px-4 py-3", se && "min-h-14"),
9907
9919
  children: [/* @__PURE__ */ Z(ao, {
9908
- ref: ue.rowRef,
9920
+ ref: de.rowRef,
9909
9921
  display: "flex",
9910
9922
  minWidth: "0",
9911
- alignItems: de > 1 ? "start" : "center",
9923
+ alignItems: fe > 1 ? "start" : "center",
9912
9924
  children: [/* @__PURE__ */ Z("div", {
9913
- className: B("flex min-w-0 flex-1 gap-1", de > 1 ? "items-start" : "items-center"),
9925
+ className: B("flex min-w-0 flex-1 gap-1", fe > 1 ? "items-start" : "items-center"),
9914
9926
  children: [/* @__PURE__ */ X(tr, {
9915
9927
  tag: "h3",
9916
- lines: de,
9917
- className: B("text-base font-semibold text-f1-foreground", de > 1 && "hyphens-auto"),
9928
+ lines: fe,
9929
+ className: B("text-base font-semibold text-f1-foreground", fe > 1 && "hyphens-auto"),
9918
9930
  children: e
9919
9931
  }), n ? /* @__PURE__ */ X("div", {
9920
- ref: ue.infoRef,
9932
+ ref: de.infoRef,
9921
9933
  className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
9922
- children: /* @__PURE__ */ X(Pe, { info: n })
9934
+ children: /* @__PURE__ */ X(Fe, { info: n })
9923
9935
  }) : null]
9924
- }), oe ? /* @__PURE__ */ X("div", {
9925
- ref: ue.actionsRef,
9926
- className: B(le, de > 1 && "-mt-1.5"),
9936
+ }), se ? /* @__PURE__ */ X("div", {
9937
+ ref: de.actionsRef,
9938
+ className: B(ue, fe > 1 && "-mt-1.5"),
9927
9939
  children: /* @__PURE__ */ X("div", {
9928
9940
  className: "min-w-0 overflow-clip",
9929
9941
  children: /* @__PURE__ */ Z("div", {
9930
- className: B(ce, "p-0.5 pl-2"),
9942
+ className: B(le, "p-0.5 pl-2"),
9931
9943
  children: [
9932
- l ? /* @__PURE__ */ X(th, {
9944
+ l ? /* @__PURE__ */ X(ah, {
9933
9945
  ...l,
9934
9946
  onOpenChange: E
9935
9947
  }) : null,
9936
- re ? /* @__PURE__ */ X($n, {
9948
+ ie ? /* @__PURE__ */ X($n, {
9937
9949
  label: v ? A.actions.collapse : A.actions.expand,
9938
9950
  icon: v ? ti : _i,
9939
9951
  variant: "ghost",
@@ -9942,7 +9954,7 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9942
9954
  compact: !0,
9943
9955
  onClick: () => S?.(!v)
9944
9956
  }) : null,
9945
- ae ? /* @__PURE__ */ Z(ic, {
9957
+ oe ? /* @__PURE__ */ Z(ic, {
9946
9958
  open: C,
9947
9959
  onOpenChange: F,
9948
9960
  children: [/* @__PURE__ */ X(Js, {
@@ -9960,20 +9972,20 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9960
9972
  }), /* @__PURE__ */ X(Ks, {
9961
9973
  align: "end",
9962
9974
  className: B("py-1", O && "w-96 max-w-[90vw]"),
9963
- onCloseAutoFocus: he,
9964
- children: O && ne ? /* @__PURE__ */ X("div", {
9975
+ onCloseAutoFocus: ge,
9976
+ children: O && re ? /* @__PURE__ */ X("div", {
9965
9977
  className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
9966
9978
  children: /* @__PURE__ */ X(ni, {
9967
9979
  content: _,
9968
9980
  format: "markdown"
9969
9981
  })
9970
9982
  }) : /* @__PURE__ */ Z(Y, { children: [
9971
- L ? /* @__PURE__ */ Z("div", {
9983
+ ne ? /* @__PURE__ */ Z("div", {
9972
9984
  className: "mb-1 flex flex-col items-start gap-2 border-0 border-b border-solid border-f1-border-secondary p-3",
9973
9985
  children: [/* @__PURE__ */ X(tr, {
9974
9986
  className: "text-base font-medium text-f1-foreground-tertiary",
9975
9987
  children: A.ai.dashboardItem.chartType
9976
- }), /* @__PURE__ */ X(lt, {
9988
+ }), /* @__PURE__ */ X(ut, {
9977
9989
  items: g.map((e) => ({
9978
9990
  value: e.value,
9979
9991
  icon: e.icon,
@@ -9989,7 +10001,7 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
9989
10001
  fullWidth: !0
9990
10002
  })]
9991
10003
  }) : null,
9992
- ne ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(Xs, {
10004
+ re ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(Xs, {
9993
10005
  onSelect: (e) => {
9994
10006
  e.preventDefault(), k(!0);
9995
10007
  },
@@ -10001,7 +10013,7 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10001
10013
  })]
10002
10014
  })
10003
10015
  }) }) : null,
10004
- ge,
10016
+ _e,
10005
10017
  ee ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ Z($s, { children: [/* @__PURE__ */ X(qs, {
10006
10018
  className: "mx-1 rounded-sm px-2",
10007
10019
  children: /* @__PURE__ */ Z("div", {
@@ -10044,7 +10056,7 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10044
10056
  }), t || y ? /* @__PURE__ */ Z("div", {
10045
10057
  className: "relative flex items-baseline gap-1",
10046
10058
  children: [t ? /* @__PURE__ */ X(tr, {
10047
- lines: fe,
10059
+ lines: pe,
10048
10060
  className: "text-base text-f1-foreground-secondary",
10049
10061
  children: t
10050
10062
  }) : null, y ? /* @__PURE__ */ Z(Y, { children: [t ? /* @__PURE__ */ X("span", {
@@ -10066,9 +10078,9 @@ function ah({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10066
10078
  }
10067
10079
  //#endregion
10068
10080
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/PointActionPopover.tsx
10069
- var oh = 8, sh = 8;
10070
- function ch({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
10071
- let i = z(), a = q(null), [o, s] = J(null);
10081
+ var uh = 8, dh = 8;
10082
+ function fh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
10083
+ let i = R(), a = q(null), [o, s] = J(null);
10072
10084
  return Ec(() => {
10073
10085
  if (!e) {
10074
10086
  s(null);
@@ -10076,9 +10088,9 @@ function ch({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
10076
10088
  }
10077
10089
  let t = a.current;
10078
10090
  if (!t) return;
10079
- let { offsetWidth: n, offsetHeight: r } = t, i = e.clientY - r - oh;
10080
- i < sh && (i = e.clientY + oh), i = Math.min(Math.max(i, sh), window.innerHeight - r - sh);
10081
- let o = e.clientX - n / 2, c = Math.min(Math.max(o, sh), window.innerWidth - n - sh);
10091
+ let { offsetWidth: n, offsetHeight: r } = t, i = e.clientY - r - uh;
10092
+ i < dh && (i = e.clientY + uh), i = Math.min(Math.max(i, dh), window.innerHeight - r - dh);
10093
+ let o = e.clientX - n / 2, c = Math.min(Math.max(o, dh), window.innerWidth - n - dh);
10082
10094
  s({
10083
10095
  top: i,
10084
10096
  left: c
@@ -10126,38 +10138,38 @@ function ch({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
10126
10138
  }
10127
10139
  //#endregion
10128
10140
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/pointQuote.ts
10129
- function lh(e, t, n, r = "y") {
10130
- return t === null ? n : r === "x" && e.type === "scatter" ? Jt(e.xTooltipValueFormatter, e.xValueFormatter)(t) : Jt(e.tooltipValueFormatter, e.valueFormatter)(t);
10141
+ function ph(e, t, n, r = "y") {
10142
+ return t === null ? n : r === "x" && e.type === "scatter" ? Yt(e.xTooltipValueFormatter, e.xValueFormatter)(t) : Yt(e.tooltipValueFormatter, e.valueFormatter)(t);
10131
10143
  }
10132
- function uh(e, t) {
10144
+ function mh(e, t) {
10133
10145
  return t ? `${e} — ${t}` : e;
10134
10146
  }
10135
- function dh(e, t, n, r) {
10147
+ function hh(e, t, n, r) {
10136
10148
  let i = t.xAxisName ?? "X", a = t.yAxisName ?? "Y", o = n.seriesName ? `${n.seriesName}\n` : "", [s, c] = n.values;
10137
- return `${uh(e, n.category)}\n${o}${i}: ${lh(t, s, r, "x")}\n${a}: ${lh(t, c, r)}`;
10149
+ return `${mh(e, n.category)}\n${o}${i}: ${ph(t, s, r, "x")}\n${a}: ${ph(t, c, r)}`;
10138
10150
  }
10139
- function fh(e, t, n, r) {
10140
- let i = t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.series.map(({ name: e, value: n }) => `${e}: ${lh(t, n, r)}`);
10141
- return `${uh(e, i)}\n${a.join("\n")}`;
10151
+ function gh(e, t, n, r) {
10152
+ let i = t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.series.map(({ name: e, value: n }) => `${e}: ${ph(t, n, r)}`);
10153
+ return `${mh(e, i)}\n${a.join("\n")}`;
10142
10154
  }
10143
- function ph(e, t, n, r) {
10144
- let i = t.indicators.slice(0, n.values.length).map(({ name: e }, i) => `${e}: ${lh(t, n.values[i], r)}`);
10145
- return `${uh(e, n.seriesName)}\n${i.join("\n")}`;
10155
+ function _h(e, t, n, r) {
10156
+ let i = t.indicators.slice(0, n.values.length).map(({ name: e }, i) => `${e}: ${ph(t, n.values[i], r)}`);
10157
+ return `${mh(e, n.seriesName)}\n${i.join("\n")}`;
10146
10158
  }
10147
- function mh(e, t, n, r) {
10159
+ function vh(e, t, n, r) {
10148
10160
  let [i, a] = n.values, o = i === null ? void 0 : t.xCategories[i];
10149
- return `${uh(e, [a === null ? void 0 : t.yCategories[a], o].filter(Boolean).join(" — "))}\n${lh(t, n.value, r)}`;
10161
+ return `${mh(e, [a === null ? void 0 : t.yCategories[a], o].filter(Boolean).join(" — "))}\n${ph(t, n.value, r)}`;
10150
10162
  }
10151
- function hh(e, t, n, r) {
10163
+ function yh(e, t, n, r) {
10152
10164
  let i = "categoryFormatter" in t && t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.seriesName ? `${n.seriesName}: ` : "";
10153
- return `${uh(e, i)}\n${a}${lh(t, n.value, r)}`;
10165
+ return `${mh(e, i)}\n${a}${ph(t, n.value, r)}`;
10154
10166
  }
10155
- function gh(e, t, n, r) {
10156
- return t.type === "scatter" && n.values.length >= 2 ? dh(e, t, n, r) : t.type === "line" && n.series.length > 1 ? fh(e, t, n, r) : t.type === "radar" && t.indicators.length && n.values.length > 1 ? ph(e, t, n, r) : t.type === "heatmap" && n.values.length >= 3 ? mh(e, t, n, r) : hh(e, t, n, r);
10167
+ function bh(e, t, n, r) {
10168
+ return t.type === "scatter" && n.values.length >= 2 ? hh(e, t, n, r) : t.type === "line" && n.series.length > 1 ? gh(e, t, n, r) : t.type === "radar" && t.indicators.length && n.values.length > 1 ? _h(e, t, n, r) : t.type === "heatmap" && n.values.length >= 3 ? vh(e, t, n, r) : yh(e, t, n, r);
10157
10169
  }
10158
10170
  //#endregion
10159
10171
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/ChartItem.tsx
10160
- function _h(e) {
10172
+ function xh(e) {
10161
10173
  return [
10162
10174
  {
10163
10175
  label: e.dataChart.barChartVertical,
@@ -10199,42 +10211,42 @@ function _h(e) {
10199
10211
  }
10200
10212
  ];
10201
10213
  }
10202
- var vh = { type: "bar" };
10203
- function yh(e) {
10214
+ var Sh = { type: "bar" };
10215
+ function Ch(e) {
10204
10216
  switch (e.type) {
10205
- case "bar": return /* @__PURE__ */ X(ut, {
10217
+ case "bar": return /* @__PURE__ */ X(dt, {
10206
10218
  orientation: e.orientation,
10207
10219
  stacked: e.stacked,
10208
10220
  showLegend: e.showLegend
10209
10221
  });
10210
- case "line": return /* @__PURE__ */ X(cn, {
10222
+ case "line": return /* @__PURE__ */ X(ln, {
10211
10223
  lineType: e.lineType,
10212
10224
  showArea: e.showArea,
10213
10225
  showDots: e.showDots,
10214
10226
  showLegend: e.showLegend
10215
10227
  });
10216
- case "funnel": return /* @__PURE__ */ X(st, {
10228
+ case "funnel": return /* @__PURE__ */ X(ct, {
10217
10229
  orient: e.orient,
10218
10230
  sort: e.sort,
10219
10231
  showLegend: e.showLegend
10220
10232
  });
10221
- case "pie": return /* @__PURE__ */ X(Ke, {
10233
+ case "pie": return /* @__PURE__ */ X(qe, {
10222
10234
  innerRadius: e.innerRadius,
10223
10235
  showLegend: e.showLegend
10224
10236
  });
10225
- case "radar": return /* @__PURE__ */ X(an, { showLegend: e.showLegend });
10226
- case "gauge": return /* @__PURE__ */ X(ze, {});
10227
- case "heatmap": return /* @__PURE__ */ X(Zt, {});
10228
- case "scatter": return /* @__PURE__ */ X(xe, { showLegend: e.showLegend ?? !1 });
10237
+ case "radar": return /* @__PURE__ */ X(on, { showLegend: e.showLegend });
10238
+ case "gauge": return /* @__PURE__ */ X(Be, {});
10239
+ case "heatmap": return /* @__PURE__ */ X(Qt, {});
10240
+ case "scatter": return /* @__PURE__ */ X(Se, { showLegend: e.showLegend ?? !1 });
10229
10241
  }
10230
10242
  }
10231
- function bh(e) {
10243
+ function wh(e) {
10232
10244
  return e.referenceLines ? { referenceLines: e.referenceLines } : {};
10233
10245
  }
10234
- function xh(e, t, n, r) {
10246
+ function Th(e, t, n, r) {
10235
10247
  let i = n ?? e.chart.type;
10236
- if (i === Sm(t, i) && i === e.chart.type && !r) return Sh(e, t);
10237
- let a = Am(Cm(t), i), o = Nm(i), s = {};
10248
+ if (i === Em(t, i) && i === e.chart.type && !r) return Eh(e, t);
10249
+ let a = Pm(Dm(t), i), o = Lm(i), s = {};
10238
10250
  switch ("valueFormatter" in e.chart && e.chart.valueFormatter && (s.valueFormatter = e.chart.valueFormatter), "tooltipValueFormatter" in e.chart && e.chart.tooltipValueFormatter && (s.tooltipValueFormatter = e.chart.tooltipValueFormatter), "showLegend" in e.chart && (s.showLegend = e.chart.showLegend), i === "bar" && "showLabels" in e.chart && e.chart.showLabels !== void 0 && (s.showLabels = e.chart.showLabels), i) {
10239
10251
  case "bar": {
10240
10252
  let n = r ?? ("orientation" in e.chart ? e.chart.orientation : void 0) ?? o.orientation;
@@ -10242,7 +10254,7 @@ function xh(e, t, n, r) {
10242
10254
  ...o,
10243
10255
  ...s,
10244
10256
  ...n ? { orientation: n } : {},
10245
- ...bh(t),
10257
+ ...wh(t),
10246
10258
  categories: a.categories ?? [],
10247
10259
  series: a.series
10248
10260
  };
@@ -10250,7 +10262,7 @@ function xh(e, t, n, r) {
10250
10262
  case "line": return {
10251
10263
  ...o,
10252
10264
  ...s,
10253
- ...bh(t),
10265
+ ...wh(t),
10254
10266
  categories: a.categories ?? [],
10255
10267
  series: a.series
10256
10268
  };
@@ -10285,12 +10297,12 @@ function xh(e, t, n, r) {
10285
10297
  };
10286
10298
  }
10287
10299
  }
10288
- function Sh(e, t) {
10300
+ function Eh(e, t) {
10289
10301
  let { chart: n } = e;
10290
10302
  switch (n.type) {
10291
10303
  case "funnel": {
10292
10304
  let e = t.series;
10293
- return Array.isArray(t.series) && (e = Am(Cm(t, "bar"), "funnel").series), {
10305
+ return Array.isArray(t.series) && (e = Pm(Dm(t, "bar"), "funnel").series), {
10294
10306
  ...n,
10295
10307
  series: e
10296
10308
  };
@@ -10322,47 +10334,47 @@ function Sh(e, t) {
10322
10334
  case "line": {
10323
10335
  let { series: e } = t, r = t.categories ?? [];
10324
10336
  if (e && !Array.isArray(e)) {
10325
- let i = Am(Cm(t, "funnel"), n.type);
10337
+ let i = Pm(Dm(t, "funnel"), n.type);
10326
10338
  e = i.series, r = i.categories ?? [];
10327
10339
  }
10328
10340
  return {
10329
10341
  ...n,
10330
10342
  ...n.type === "bar" ? { showLabels: n.showLabels ?? !0 } : {},
10331
- ...bh(t),
10343
+ ...wh(t),
10332
10344
  categories: r,
10333
10345
  series: e
10334
10346
  };
10335
10347
  }
10336
10348
  }
10337
10349
  }
10338
- function Ch({ config: e, data: t }) {
10339
- let n = Sm(t, e.type), r = n === e.type ? e : {
10350
+ function Dh({ config: e, data: t }) {
10351
+ let n = Em(t, e.type), r = n === e.type ? e : {
10340
10352
  ...e,
10341
10353
  type: n
10342
- }, i = K(() => Pm(r, t), [r, t]), a = K(() => ({
10354
+ }, i = K(() => Rm(r, t), [r, t]), a = K(() => ({
10343
10355
  dataAdapter: { fetchData: () => ({ records: i.rows }) },
10344
10356
  columns: i.columns.map((e) => ({
10345
10357
  label: e,
10346
10358
  id: e
10347
10359
  }))
10348
- }), [i]), o = L(a, [i]), s = K(() => [{
10360
+ }), [i]), o = ne(a, [i]), s = K(() => [{
10349
10361
  type: "table",
10350
10362
  options: { columns: i.columns.map((e, t) => ({
10351
10363
  label: e,
10352
10364
  render: (n) => String(n[i.keys?.[t] ?? e] ?? "")
10353
10365
  })) }
10354
10366
  }], [i.columns]);
10355
- return /* @__PURE__ */ X(Ze, {
10367
+ return /* @__PURE__ */ X(Qe, {
10356
10368
  fullHeight: !0,
10357
10369
  source: o,
10358
10370
  visualizations: s
10359
10371
  });
10360
10372
  }
10361
- function wh(e) {
10362
- return vm(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
10373
+ function Oh(e) {
10374
+ return Sm(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
10363
10375
  }
10364
- function Th({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
10365
- let f = z(), [m, h] = J("chart"), { enabled: g, setPendingQuote: _, setOpen: v, focusChatInput: y } = Fi(), b = !vm(e.chart), x = b ? vh : e.chart, [S, C] = J(null), w = e.useDashboardFilters !== !1, T = JSON.stringify(r?.value ?? {}), { data: E, isLoading: D, error: O, retry: k } = eh(e.fetchData, t, w, T), A = q(null), j = K(() => E && !b ? xh(e, E) : void 0, [
10376
+ function kh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
10377
+ let f = R(), [m, h] = J("chart"), { enabled: g, setPendingQuote: _, setOpen: v, focusChatInput: y } = Fi(), b = !Sm(e.chart), x = b ? Sh : e.chart, [S, C] = J(null), w = e.useDashboardFilters !== !1, T = JSON.stringify(r?.value ?? {}), { data: E, isLoading: D, error: O, retry: k } = ih(e.fetchData, t, w, T), A = q(null), j = K(() => E && !b ? Th(e, E) : void 0, [
10366
10378
  e,
10367
10379
  E,
10368
10380
  b
@@ -10388,7 +10400,7 @@ function Th({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10388
10400
  return;
10389
10401
  }
10390
10402
  if (!j) return;
10391
- let n = { text: gh(e.title, j, t, f.dataChart.noData) };
10403
+ let n = { text: bh(e.title, j, t, f.dataChart.noData) };
10392
10404
  c?.({
10393
10405
  id: e.id,
10394
10406
  title: e.title,
@@ -10406,42 +10418,42 @@ function Th({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10406
10418
  _,
10407
10419
  v,
10408
10420
  y
10409
- ]), F = K(() => _h(f), [f]), I = $m({
10421
+ ]), F = K(() => xh(f), [f]), I = rh({
10410
10422
  chartContainerRef: A,
10411
10423
  chartConfig: x,
10412
10424
  data: E,
10413
10425
  title: e.title
10414
- }), ee = K(() => [...n ?? [], ...I], [n, I]), te = W(() => C(null), []), L = x.type === "bar" ? "orientation" in x ? x.orientation ?? "vertical" : "vertical" : void 0, ne = E ? Sm(E, x.type) : x.type, re = K(() => Mm(ne), [ne]), ie = K(() => E ? jm(Cm(E, ne)) : !1, [E, ne]), ae = E && Array.isArray(E.series) ? E.series.length : 1, oe = F.filter((e) => {
10426
+ }), ee = K(() => [...n ?? [], ...I], [n, I]), te = W(() => C(null), []), ne = x.type === "bar" ? "orientation" in x ? x.orientation ?? "vertical" : "vertical" : void 0, re = E ? Em(E, x.type) : x.type, ie = K(() => Im(re), [re]), ae = K(() => E ? Fm(Dm(E, re)) : !1, [E, re]), oe = E && Array.isArray(E.series) ? E.series.length : 1, se = F.filter((e) => {
10415
10427
  let t = e.type === "bar" ? "bar" : e.type;
10416
- return !(!re.has(t) || e.type === "pie" && ae > 1 || (e.type === "pie" || e.type === "funnel") && ie);
10417
- }), se = l && ne !== "scatter" && ne !== "radar" && ne !== "heatmap" ? oe.map((t) => {
10418
- let n = t.type === "table", r = n ? m === "table" : m === "chart" && x.type === t.type && (t.type !== "bar" || L === t.orientation);
10428
+ return !(!ie.has(t) || e.type === "pie" && oe > 1 || (e.type === "pie" || e.type === "funnel") && ae);
10429
+ }), ce = l && re !== "scatter" && re !== "radar" && re !== "heatmap" ? se.map((t) => {
10430
+ let n = t.type === "table", r = n ? m === "table" : m === "chart" && x.type === t.type && (t.type !== "bar" || ne === t.orientation);
10419
10431
  return {
10420
10432
  label: t.label,
10421
10433
  value: t.value,
10422
10434
  icon: t.icon,
10423
10435
  isActive: r,
10424
10436
  onSelect: () => {
10425
- n ? h("table") : (h("chart"), (x.type !== t.type || t.type === "bar" && L !== t.orientation) && l(e.id, t.type, t.orientation));
10437
+ n ? h("table") : (h("chart"), (x.type !== t.type || t.type === "bar" && ne !== t.orientation) && l(e.id, t.type, t.orientation));
10426
10438
  }
10427
10439
  };
10428
- }) : void 0, ce = !!u && wh(e), [le, ue] = J(0), de = !!d && wh(e), fe = de && !u && le > 0, pe = de && !!u, me = E?.categories?.length ?? 0, he = fe ? f.dataChart.windowedCategories.replace("{{count}}", String(Math.max(0, me - le))).replace("{{total}}", String(me)) : void 0, ge = fe ? {
10440
+ }) : void 0, le = !!u && Oh(e), [ue, de] = J(0), fe = !!d && Oh(e), pe = fe && !u && ue > 0, me = fe && !!u, he = E?.categories?.length ?? 0, ge = pe ? f.dataChart.windowedCategories.replace("{{count}}", String(Math.max(0, he - ue))).replace("{{total}}", String(he)) : void 0, _e = pe ? {
10429
10441
  label: f.actions.showAll,
10430
10442
  onClick: () => d?.(!0)
10431
- } : pe ? {
10443
+ } : me ? {
10432
10444
  label: f.actions.showLess,
10433
10445
  onClick: () => d?.(!1)
10434
10446
  } : void 0;
10435
- return /* @__PURE__ */ X(ah, {
10447
+ return /* @__PURE__ */ X(lh, {
10436
10448
  title: e.title,
10437
- description: he ?? e.description,
10449
+ description: ge ?? e.description,
10438
10450
  info: e.info,
10439
- ...ge ? { descriptionAction: ge } : {},
10451
+ ..._e ? { descriptionAction: _e } : {},
10440
10452
  explanation: e.explanation,
10441
10453
  isLoading: D,
10442
10454
  error: O ?? (b ? /* @__PURE__ */ Error() : void 0),
10443
10455
  onRetry: b ? void 0 : k,
10444
- skeleton: yh(x),
10456
+ skeleton: Ch(x),
10445
10457
  actions: ee,
10446
10458
  itemFilters: r,
10447
10459
  editMode: i,
@@ -10450,27 +10462,27 @@ function Th({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10450
10462
  onAskAi: s,
10451
10463
  onAskAiTarget: c,
10452
10464
  itemId: e.id,
10453
- chartTypeOptions: se,
10465
+ chartTypeOptions: ce,
10454
10466
  isFullscreen: u,
10455
- fitContent: ce,
10467
+ fitContent: le,
10456
10468
  onFullscreenChange: d,
10457
- children: E && j ? m === "table" ? /* @__PURE__ */ X(Ch, {
10469
+ children: E && j ? m === "table" ? /* @__PURE__ */ X(Dh, {
10458
10470
  config: x,
10459
10471
  data: E
10460
10472
  }) : /* @__PURE__ */ Z("div", {
10461
10473
  ref: A,
10462
10474
  tabIndex: -1,
10463
10475
  className: B("relative h-full w-full px-4 py-3", En("rounded-sm focus-visible:ring-inset focus-visible:ring-offset-0")),
10464
- children: [/* @__PURE__ */ X(Ct, {
10476
+ children: [/* @__PURE__ */ X(wt, {
10465
10477
  ...j,
10466
10478
  ariaLabel: e.title,
10467
10479
  onPointClick: N ? (e) => C(e) : void 0,
10468
- ...de ? {
10480
+ ...fe ? {
10469
10481
  windowCategories: !0,
10470
- onHiddenCategoriesChange: ue
10482
+ onHiddenCategoriesChange: de
10471
10483
  } : {},
10472
- ...ce ? { showAllCategories: !0 } : {}
10473
- }), /* @__PURE__ */ X(ch, {
10484
+ ...le ? { showAllCategories: !0 } : {}
10485
+ }), /* @__PURE__ */ X(fh, {
10474
10486
  anchor: S,
10475
10487
  onAsk: () => {
10476
10488
  S && P(S);
@@ -10486,7 +10498,7 @@ function Th({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10486
10498
  }
10487
10499
  //#endregion
10488
10500
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/tableExport.ts
10489
- function Eh(e) {
10501
+ function Ah(e) {
10490
10502
  return ((e?.find((e) => e?.type === "table"))?.options?.columns ?? []).filter((e) => typeof e?.id == "string" && typeof e?.label == "string").map((e) => ({
10491
10503
  id: e.id,
10492
10504
  label: e.label,
@@ -10494,14 +10506,14 @@ function Eh(e) {
10494
10506
  excelValue: e.excelValue
10495
10507
  }));
10496
10508
  }
10497
- function Dh(e, t, n = "excel") {
10509
+ function jh(e, t, n = "excel") {
10498
10510
  return e.map((e) => {
10499
10511
  let r = {};
10500
10512
  for (let i of t) {
10501
10513
  let t = n === "excel" ? i.excelValue ?? i.render : i.render;
10502
10514
  if (t) {
10503
10515
  let n = t(e);
10504
- r[i.id] = wt(n) ?? tt(n);
10516
+ r[i.id] = Tt(n) ?? nt(n);
10505
10517
  } else r[i.id] = e[i.id];
10506
10518
  }
10507
10519
  return r;
@@ -10509,11 +10521,11 @@ function Dh(e, t, n = "excel") {
10509
10521
  }
10510
10522
  //#endregion
10511
10523
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useCollectionDownloadActions.ts
10512
- var Oh = 1e4, kh = 100;
10513
- async function Ah(e) {
10524
+ var Mh = 1e4, Nh = 100;
10525
+ async function Ph(e) {
10514
10526
  return e;
10515
10527
  }
10516
- async function jh(e) {
10528
+ async function Fh(e) {
10517
10529
  let { dataAdapter: t } = e, n = [...e.currentSortings ? [{
10518
10530
  field: e.currentSortings.field,
10519
10531
  order: e.currentSortings.order
@@ -10526,38 +10538,38 @@ async function jh(e) {
10526
10538
  search: e.currentSearch,
10527
10539
  navigationFilters: e.currentNavigationFilters
10528
10540
  }, i = t.exportFetchData ?? t.fetchData;
10529
- if (!t.paginationType) return ((await Ah(i(r))).records ?? []).slice(0, Oh);
10541
+ if (!t.paginationType) return ((await Ph(i(r))).records ?? []).slice(0, Mh);
10530
10542
  if (t.paginationType === "pages") {
10531
10543
  let e = [], t = 1;
10532
- for (; e.length < Oh;) {
10533
- let n = await Ah(i({
10544
+ for (; e.length < Mh;) {
10545
+ let n = await Ph(i({
10534
10546
  ...r,
10535
10547
  pagination: {
10536
10548
  currentPage: t,
10537
- perPage: kh
10549
+ perPage: Nh
10538
10550
  }
10539
10551
  }));
10540
10552
  if (!n.records || n.records.length === 0 || (e.push(...n.records), "pagesCount" in n && t >= n.pagesCount)) break;
10541
10553
  t++;
10542
10554
  }
10543
- return e.slice(0, Oh);
10555
+ return e.slice(0, Mh);
10544
10556
  }
10545
10557
  let a = [], o = null;
10546
- for (; a.length < Oh;) {
10547
- let e = await Ah(i({
10558
+ for (; a.length < Mh;) {
10559
+ let e = await Ph(i({
10548
10560
  ...r,
10549
10561
  pagination: {
10550
10562
  cursor: o,
10551
- perPage: kh
10563
+ perPage: Nh
10552
10564
  }
10553
10565
  }));
10554
10566
  if (!e.records || e.records.length === 0 || (a.push(...e.records), "hasMore" in e && !e.hasMore)) break;
10555
10567
  if ("cursor" in e) o = e.cursor ?? null;
10556
10568
  else break;
10557
10569
  }
10558
- return a.slice(0, Oh);
10570
+ return a.slice(0, Mh);
10559
10571
  }
10560
- function Mh(e, t) {
10572
+ function Ih(e, t) {
10561
10573
  let n = new Set(t?.hidden ?? []), r = e.filter((e) => !n.has(e.id)), i = t?.order;
10562
10574
  if (!i || i.length === 0) return r;
10563
10575
  let a = new Map(r.map((e) => [e.id, e])), o = [];
@@ -10568,18 +10580,18 @@ function Mh(e, t) {
10568
10580
  for (let e of r) a.has(e.id) && o.push(e);
10569
10581
  return o;
10570
10582
  }
10571
- function Nh({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
10572
- let { t: a } = z(), [o, s] = J(!1), c = W(async (a) => {
10583
+ function Lh({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
10584
+ let { t: a } = R(), [o, s] = J(!1), c = W(async (a) => {
10573
10585
  if (e && !o) {
10574
10586
  s(!0);
10575
10587
  try {
10576
- let o = await jh(e), s = Mh(r, i);
10588
+ let o = await Fh(e), s = Ih(r, i);
10577
10589
  if (s.length === 0 || o.length === 0) return;
10578
- let c = s.map((e) => e.label), l = s.map((e) => e.id), u = Dh(o, s, a);
10579
- a === "excel" ? await qm(c, u, t, {
10590
+ let c = s.map((e) => e.label), l = s.map((e) => e.id), u = jh(o, s, a);
10591
+ a === "excel" ? await Zm(c, u, t, {
10580
10592
  keys: l,
10581
- preamble: Gm(t, n)
10582
- }) : Jm(c, u, t, l);
10593
+ preamble: Ym(t, n)
10594
+ }) : Qm(c, u, t, l);
10583
10595
  } finally {
10584
10596
  s(!1);
10585
10597
  }
@@ -10609,15 +10621,15 @@ function Nh({ source: e, title: t, description: n, columns: r, tableSettings: i
10609
10621
  }
10610
10622
  //#endregion
10611
10623
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
10612
- function Ph({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
10613
- let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = L(m, [f, p]), [g, _] = J(), v = K(() => Eh(e.visualizations), [e]), y = Nh({
10624
+ function Rh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
10625
+ let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = ne(m, [f, p]), [g, _] = J(), v = K(() => Ah(e.visualizations), [e]), y = Lh({
10614
10626
  source: h,
10615
10627
  title: e.title,
10616
10628
  description: e.description,
10617
10629
  columns: v,
10618
10630
  tableSettings: g
10619
10631
  }), b = K(() => [...n ?? [], ...y], [n, y]);
10620
- return /* @__PURE__ */ X(ah, {
10632
+ return /* @__PURE__ */ X(lh, {
10621
10633
  title: e.title,
10622
10634
  description: e.description,
10623
10635
  info: e.info,
@@ -10633,7 +10645,7 @@ function Ph({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10633
10645
  itemId: e.id,
10634
10646
  isFullscreen: l,
10635
10647
  onFullscreenChange: u,
10636
- children: /* @__PURE__ */ X(Ze, {
10648
+ children: /* @__PURE__ */ X(Qe, {
10637
10649
  fullHeight: !0,
10638
10650
  source: h,
10639
10651
  visualizations: e.visualizations,
@@ -10649,15 +10661,15 @@ function Ph({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10649
10661
  }
10650
10662
  //#endregion
10651
10663
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemSkeleton.tsx
10652
- function Fh() {
10664
+ function zh() {
10653
10665
  return /* @__PURE__ */ Z("div", {
10654
10666
  className: "flex h-full items-end gap-3 px-4 pb-4",
10655
- children: [/* @__PURE__ */ X(gn, { className: "h-10 w-36 rounded" }), /* @__PURE__ */ X(gn, { className: "h-4 w-16 rounded" })]
10667
+ children: [/* @__PURE__ */ X(z, { className: "h-10 w-36 rounded" }), /* @__PURE__ */ X(z, { className: "h-4 w-16 rounded" })]
10656
10668
  });
10657
10669
  }
10658
10670
  //#endregion
10659
10671
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/MetricItem/MetricItem.tsx
10660
- function Ih(e, t = { type: "number" }, n = 0) {
10672
+ function Bh(e, t = { type: "number" }, n = 0) {
10661
10673
  switch (t.type) {
10662
10674
  case "currency": return new Intl.NumberFormat(void 0, {
10663
10675
  style: "currency",
@@ -10683,7 +10695,7 @@ function Ih(e, t = { type: "number" }, n = 0) {
10683
10695
  }).format(e);
10684
10696
  }
10685
10697
  }
10686
- function Lh(e, t) {
10698
+ function Vh(e, t) {
10687
10699
  if (t === void 0 || t === 0) return;
10688
10700
  let n = (e - t) / Math.abs(t) * 100;
10689
10701
  return {
@@ -10691,8 +10703,8 @@ function Lh(e, t) {
10691
10703
  direction: n > .5 ? "up" : n < -.5 ? "down" : "flat"
10692
10704
  };
10693
10705
  }
10694
- function Rh({ value: e, trend: t, comparison: n }) {
10695
- let r = q(null), { height: i, width: a } = Tt(r), [o, s] = J(!1), c = i > 220;
10706
+ function Hh({ value: e, trend: t, comparison: n }) {
10707
+ let r = q(null), { height: i, width: a } = Et(r), [o, s] = J(!1), c = i > 220;
10696
10708
  return Ec(() => {
10697
10709
  let e = r.current;
10698
10710
  s(e !== null && (e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight));
@@ -10753,7 +10765,7 @@ function Rh({ value: e, trend: t, comparison: n }) {
10753
10765
  " ",
10754
10766
  n.value
10755
10767
  ]
10756
- }), n.info ? /* @__PURE__ */ X(Pe, {
10768
+ }), n.info ? /* @__PURE__ */ X(Fe, {
10757
10769
  info: n.info,
10758
10770
  label: n.label
10759
10771
  }) : null]
@@ -10761,9 +10773,9 @@ function Rh({ value: e, trend: t, comparison: n }) {
10761
10773
  })
10762
10774
  });
10763
10775
  }
10764
- function zh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
10765
- let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = eh(e.fetchData, t, l, u), h = d ? Lh(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : Ih(t, e.format, e.decimals);
10766
- return /* @__PURE__ */ X(ah, {
10776
+ function Uh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
10777
+ let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = ih(e.fetchData, t, l, u), h = d ? Vh(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : Bh(t, e.format, e.decimals);
10778
+ return /* @__PURE__ */ X(lh, {
10767
10779
  title: e.title,
10768
10780
  description: e.description,
10769
10781
  headerLines: d && !d.comparison ? 3 : 2,
@@ -10772,7 +10784,7 @@ function zh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10772
10784
  isLoading: f,
10773
10785
  error: p,
10774
10786
  onRetry: m,
10775
- skeleton: /* @__PURE__ */ X(Fh, {}),
10787
+ skeleton: /* @__PURE__ */ X(zh, {}),
10776
10788
  actions: n,
10777
10789
  itemFilters: r,
10778
10790
  editMode: i,
@@ -10781,7 +10793,7 @@ function zh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10781
10793
  onAskAi: s,
10782
10794
  onAskAiTarget: c,
10783
10795
  itemId: e.id,
10784
- children: d ? /* @__PURE__ */ X(Rh, {
10796
+ children: d ? /* @__PURE__ */ X(Hh, {
10785
10797
  value: g(d.value),
10786
10798
  trend: h,
10787
10799
  comparison: d.comparison ? {
@@ -10794,16 +10806,16 @@ function zh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
10794
10806
  }
10795
10807
  //#endregion
10796
10808
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardGrid/DashboardGrid.tsx
10797
- var Bh = 12, Vh = 4, Hh = 640, Uh = 4, Wh = {
10809
+ var Wh = 12, Gh = 4, Kh = 640, qh = 4, Jh = {
10798
10810
  chart: 336,
10799
10811
  metric: 144,
10800
10812
  collection: 480
10801
- }, Gh = 336, Kh = {
10813
+ }, Yh = 336, Xh = {
10802
10814
  chart: 240,
10803
10815
  metric: 120,
10804
10816
  collection: 300
10805
- }, qh = 120;
10806
- function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
10817
+ }, Zh = 120;
10818
+ function Qh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
10807
10819
  let d = q(null), [f, p] = J(!1), [m, h] = J(null);
10808
10820
  G(() => {
10809
10821
  u?.(!!m);
@@ -10812,19 +10824,19 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10812
10824
  let t = /* @__PURE__ */ new Map();
10813
10825
  for (let n of e) t.set(n.id, n);
10814
10826
  return t;
10815
- }, [e]), [_, v] = J(() => tg(e)), y = q(ng(e));
10827
+ }, [e]), [_, v] = J(() => ag(e)), y = q(og(e));
10816
10828
  G(() => {
10817
- let t = ng(e);
10818
- t !== y.current && (y.current = t, v(tg(e)));
10829
+ let t = og(e);
10830
+ t !== y.current && (y.current = t, v(ag(e)));
10819
10831
  }, [e]);
10820
10832
  let b = q(o);
10821
10833
  G(() => {
10822
- o !== void 0 && o !== b.current && (b.current = o, v(tg(e)));
10834
+ o !== void 0 && o !== b.current && (b.current = o, v(ag(e)));
10823
10835
  }, [o, e]), G(() => {
10824
10836
  let e = d.current;
10825
10837
  if (!e) return;
10826
10838
  let t = new ResizeObserver((e) => {
10827
- for (let t of e) p(t.contentRect.width < Hh);
10839
+ for (let t of e) p(t.contentRect.width < Kh);
10828
10840
  });
10829
10841
  return t.observe(e), () => t.disconnect();
10830
10842
  }, []), G(() => {
@@ -10877,7 +10889,7 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10877
10889
  let r = n.map((t) => ({
10878
10890
  ...t,
10879
10891
  ids: t.ids.filter((t) => t !== e)
10880
- })), i = k.current.get(e), a = i ? cg(i) : Gh;
10892
+ })), i = k.current.get(e), a = i ? fg(i) : Yh;
10881
10893
  if (t.type === "new-row") r.splice(t.afterRowIdx + 1, 0, {
10882
10894
  ids: [e],
10883
10895
  height: a
@@ -10889,7 +10901,7 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10889
10901
  else {
10890
10902
  let n = Math.min(t.position, r[t.rowIdx].ids.length);
10891
10903
  r[t.rowIdx].ids.splice(n, 0, e);
10892
- let i = ag(r[t.rowIdx], k.current);
10904
+ let i = lg(r[t.rowIdx], k.current);
10893
10905
  r[t.rowIdx].height < i && (r[t.rowIdx] = {
10894
10906
  ...r[t.rowIdx],
10895
10907
  height: i
@@ -10898,23 +10910,23 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10898
10910
  return r = r.filter((e) => e.ids.length > 0), x(r), r;
10899
10911
  });
10900
10912
  }, [x]), I = W((e, t) => {
10901
- if (Qh(N.current, e, t)) return null;
10913
+ if (ng(N.current, e, t)) return null;
10902
10914
  let n = d.current ? Array.from(d.current.querySelectorAll("[data-dashboard-row]")) : [], r = O.current;
10903
10915
  if (n.length === 0 || n.length !== r.length) return null;
10904
- let i = n.map((e) => e.getBoundingClientRect()), a = $h(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
10916
+ let i = n.map((e) => e.getBoundingClientRect()), a = rg(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
10905
10917
  return t < o.top + u ? {
10906
10918
  type: "new-row",
10907
10919
  afterRowIdx: a - 1
10908
10920
  } : t > o.bottom - u ? {
10909
10921
  type: "new-row",
10910
10922
  afterRowIdx: a
10911
- } : l && s.ids.length === 1 ? null : s.ids.length >= Vh && !l ? {
10923
+ } : l && s.ids.length === 1 ? null : s.ids.length >= Gh && !l ? {
10912
10924
  type: "new-row",
10913
10925
  afterRowIdx: a
10914
10926
  } : {
10915
10927
  type: "into-row",
10916
10928
  rowIdx: a,
10917
- position: eg(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
10929
+ position: ig(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
10918
10930
  };
10919
10931
  }, []), ee = W((e, t) => {
10920
10932
  if (typeof t.button == "number" && t.button !== 0) return;
@@ -10923,7 +10935,7 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10923
10935
  A.current = e, j.current = null, D(null);
10924
10936
  let a = (t) => {
10925
10937
  if (!i) {
10926
- if (Math.hypot(t.clientX - n, t.clientY - r) < Uh) return;
10938
+ if (Math.hypot(t.clientX - n, t.clientY - r) < qh) return;
10927
10939
  i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
10928
10940
  let a = k.current.get(e)?.title ?? "";
10929
10941
  a && window.dispatchEvent(new CustomEvent(Er, { detail: {
@@ -10953,7 +10965,7 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10953
10965
  ]);
10954
10966
  G(() => () => P.current?.(), []);
10955
10967
  let te = W((e, t, n, r) => {
10956
- let i = Math.max(ag(_[e], g), r), a = (r) => {
10968
+ let i = Math.max(lg(_[e], g), r), a = (r) => {
10957
10969
  let a = Math.max(i, n + r.clientY - t);
10958
10970
  v((t) => t.map((t, n) => n === e ? {
10959
10971
  ...t,
@@ -10967,16 +10979,16 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10967
10979
  _,
10968
10980
  x,
10969
10981
  g
10970
- ]), L = f ? _.flatMap((e) => e.ids.map((t) => ({
10982
+ ]), ne = f ? _.flatMap((e) => e.ids.map((t) => ({
10971
10983
  ids: [t],
10972
10984
  height: e.height
10973
- }))) : _, ne = !!r && !f, re = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
10985
+ }))) : _, re = !!r && !f, ie = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
10974
10986
  if (e.length === 1) {
10975
10987
  let a = e[0];
10976
10988
  return /* @__PURE__ */ X("div", {
10977
10989
  ref: d,
10978
10990
  className: "flex h-full min-h-0 flex-col",
10979
- children: /* @__PURE__ */ X(lg, {
10991
+ children: /* @__PURE__ */ X(pg, {
10980
10992
  item: a,
10981
10993
  itemFilters: t?.(a),
10982
10994
  filters: n,
@@ -10993,11 +11005,11 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
10993
11005
  if (m) {
10994
11006
  let e = g.get(m);
10995
11007
  if (e) {
10996
- let a = e.type === "chart" && wh(e);
11008
+ let a = e.type === "chart" && Oh(e);
10997
11009
  return /* @__PURE__ */ X("div", {
10998
11010
  ref: d,
10999
11011
  className: B("flex flex-col", a ? "min-h-full shrink-0" : "h-full min-h-0"),
11000
- children: /* @__PURE__ */ X(lg, {
11012
+ children: /* @__PURE__ */ X(pg, {
11001
11013
  item: e,
11002
11014
  itemFilters: t?.(e),
11003
11015
  filters: n,
@@ -11017,19 +11029,19 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11017
11029
  return /* @__PURE__ */ Z("div", {
11018
11030
  ref: d,
11019
11031
  className: "flex flex-col",
11020
- style: { gap: Bh },
11032
+ style: { gap: Wh },
11021
11033
  children: [
11022
- L.map((e, a) => {
11034
+ ne.map((e, a) => {
11023
11035
  let o = w && E?.type === "into-row" && E.rowIdx === a, u = e.ids.some((e) => g.get(e)?.type === "collection");
11024
11036
  return /* @__PURE__ */ Z("div", {
11025
11037
  className: "relative",
11026
11038
  children: [
11027
- ne ? /* @__PURE__ */ X(Zh, { active: !!re(a - 1) }) : null,
11039
+ re ? /* @__PURE__ */ X(tg, { active: !!ie(a - 1) }) : null,
11028
11040
  /* @__PURE__ */ X("div", {
11029
11041
  "data-dashboard-row": "",
11030
11042
  className: B("flex rounded-lg transition-colors duration-200", o && "bg-f1-background-hover"),
11031
11043
  style: {
11032
- gap: Bh,
11044
+ gap: Wh,
11033
11045
  height: e.height,
11034
11046
  ...u ? {
11035
11047
  overflowY: "clip",
@@ -11040,15 +11052,15 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11040
11052
  let d = g.get(a);
11041
11053
  if (!d) return null;
11042
11054
  let f = w === a, p = o && E?.type === "into-row" && E.position === u, m = o && E?.type === "into-row" && E.position === e.ids.length && u === e.ids.length - 1;
11043
- return /* @__PURE__ */ X(Yh, {
11055
+ return /* @__PURE__ */ X($h, {
11044
11056
  id: a,
11045
11057
  isDragging: f,
11046
11058
  showIndicatorBefore: !!p,
11047
11059
  showIndicatorAfter: !!m,
11048
- draggable: ne,
11060
+ draggable: re,
11049
11061
  onGripPointerDown: ee,
11050
11062
  onContentHeightChange: S,
11051
- children: /* @__PURE__ */ X(lg, {
11063
+ children: /* @__PURE__ */ X(pg, {
11052
11064
  item: d,
11053
11065
  itemFilters: t?.(d),
11054
11066
  filters: n,
@@ -11063,19 +11075,19 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11063
11075
  }, a);
11064
11076
  })
11065
11077
  }),
11066
- ne ? /* @__PURE__ */ X("div", {
11078
+ re ? /* @__PURE__ */ X("div", {
11067
11079
  className: "group/resize absolute -bottom-3.5 mx-auto flex h-3 w-full items-center justify-center hover:cursor-ns-resize",
11068
11080
  onMouseDown: (t) => {
11069
11081
  t.preventDefault();
11070
11082
  let n = t.currentTarget.parentElement?.querySelector("[data-dashboard-row]"), r = Math.max(n?.getBoundingClientRect().height ?? 0, e.height), i = new Set(e.ids.filter((e) => g.get(e)?.type !== "chart"));
11071
- te(a, t.clientY, r, og(n, i));
11083
+ te(a, t.clientY, r, ug(n, i));
11072
11084
  },
11073
11085
  children: /* @__PURE__ */ X("div", { className: "h-1 w-16 rounded-full bg-transparent transition-colors group-hover/resize:bg-f1-foreground-tertiary" })
11074
11086
  }) : null
11075
11087
  ]
11076
11088
  }, a);
11077
11089
  }),
11078
- ne ? /* @__PURE__ */ X(Zh, { active: !!re(L.length - 1) }) : null,
11090
+ re ? /* @__PURE__ */ X(tg, { active: !!ie(ne.length - 1) }) : null,
11079
11091
  w ? /* @__PURE__ */ X("div", {
11080
11092
  ref: M,
11081
11093
  className: "pointer-events-none fixed left-0 top-0 z-50 max-w-xs truncate rounded-lg border border-solid border-f1-border-secondary bg-f1-background px-3 py-2 text-sm font-medium text-f1-foreground shadow-lg",
@@ -11085,7 +11097,7 @@ function Jh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11085
11097
  ]
11086
11098
  });
11087
11099
  }
11088
- function Yh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
11100
+ function $h({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
11089
11101
  let c = q(null);
11090
11102
  return G(() => {
11091
11103
  let t = c.current;
@@ -11108,7 +11120,7 @@ function Yh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
11108
11120
  n = !0, s.disconnect(), l.disconnect();
11109
11121
  };
11110
11122
  }, [e, o]), /* @__PURE__ */ Z(Y, { children: [
11111
- n ? /* @__PURE__ */ X(Xh, {}) : null,
11123
+ n ? /* @__PURE__ */ X(eg, {}) : null,
11112
11124
  /* @__PURE__ */ Z("div", {
11113
11125
  ref: c,
11114
11126
  "data-card-id": e,
@@ -11123,44 +11135,44 @@ function Yh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
11123
11135
  })
11124
11136
  }) : null, s]
11125
11137
  }),
11126
- r ? /* @__PURE__ */ X(Xh, {}) : null
11138
+ r ? /* @__PURE__ */ X(eg, {}) : null
11127
11139
  ] });
11128
11140
  }
11129
- function Xh() {
11141
+ function eg() {
11130
11142
  return /* @__PURE__ */ X("div", {
11131
11143
  className: "mx-[-2px] w-1 flex-shrink-0 self-stretch py-2",
11132
11144
  children: /* @__PURE__ */ X("div", { className: "h-full w-full rounded-full bg-f1-background-secondary-hover" })
11133
11145
  });
11134
11146
  }
11135
- function Zh({ active: e }) {
11147
+ function tg({ active: e }) {
11136
11148
  return /* @__PURE__ */ X("div", {
11137
11149
  className: "pointer-events-none relative flex items-center justify-center transition-all",
11138
11150
  style: { minHeight: e ? 12 : 0 },
11139
11151
  children: /* @__PURE__ */ X("div", { className: B("absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full transition-colors", e ? "bg-f1-background-secondary-hover" : "bg-transparent") })
11140
11152
  });
11141
11153
  }
11142
- function Qh(e, t, n) {
11154
+ function ng(e, t, n) {
11143
11155
  for (let r of e) {
11144
11156
  let e = r.getBoundingClientRect();
11145
11157
  if (t >= e.left && t <= e.right && n >= e.top && n <= e.bottom) return !0;
11146
11158
  }
11147
11159
  return !1;
11148
11160
  }
11149
- function $h(e, t) {
11161
+ function rg(e, t) {
11150
11162
  for (let n = 0; n < e.length - 1; n++) if (t < (e[n].bottom + e[n + 1].top) / 2) return n;
11151
11163
  return e.length - 1;
11152
11164
  }
11153
- function eg(e, t, n) {
11165
+ function ig(e, t, n) {
11154
11166
  for (let n = 0; n < e.length; n++) {
11155
11167
  let r = e[n].getBoundingClientRect();
11156
11168
  if (t < r.left + r.width / 2) return n;
11157
11169
  }
11158
11170
  return n;
11159
11171
  }
11160
- function tg(e) {
11161
- return e.some((e) => e.y !== void 0) ? rg(e) : ig(e);
11172
+ function ag(e) {
11173
+ return e.some((e) => e.y !== void 0) ? sg(e) : cg(e);
11162
11174
  }
11163
- function ng(e) {
11175
+ function og(e) {
11164
11176
  return JSON.stringify(e.map((e) => [
11165
11177
  e.id,
11166
11178
  e.type,
@@ -11171,10 +11183,10 @@ function ng(e) {
11171
11183
  e.colSpan ?? null
11172
11184
  ]));
11173
11185
  }
11174
- function rg(e) {
11186
+ function sg(e) {
11175
11187
  let t = [...e].sort((e, t) => (e.y ?? 0) - (t.y ?? 0) || (e.x ?? 0) - (t.x ?? 0)), n = /* @__PURE__ */ new Map();
11176
11188
  for (let e of t) {
11177
- let t = e.y ?? 0, r = cg(e), i = n.get(t);
11189
+ let t = e.y ?? 0, r = fg(e), i = n.get(t);
11178
11190
  i || (i = {
11179
11191
  ids: [],
11180
11192
  maxHeight: 0
@@ -11185,11 +11197,11 @@ function rg(e) {
11185
11197
  height: e.maxHeight
11186
11198
  }));
11187
11199
  }
11188
- function ig(e) {
11200
+ function cg(e) {
11189
11201
  let t = [], n = [], r = 0, i = 0;
11190
11202
  for (let a of e) {
11191
- let e = sg(a), o = cg(a);
11192
- r + e > Vh && n.length > 0 && (t.push({
11203
+ let e = dg(a), o = fg(a);
11204
+ r + e > Gh && n.length > 0 && (t.push({
11193
11205
  ids: n,
11194
11206
  height: i
11195
11207
  }), n = [], r = 0, i = 0), n.push(a.id), r += e, o > i && (i = o);
@@ -11199,17 +11211,17 @@ function ig(e) {
11199
11211
  height: i
11200
11212
  }), t;
11201
11213
  }
11202
- function ag(e, t) {
11203
- let n = qh;
11214
+ function lg(e, t) {
11215
+ let n = Zh;
11204
11216
  for (let r of e.ids) {
11205
11217
  let e = t.get(r);
11206
11218
  if (!e) continue;
11207
- let i = Kh[e.type] ?? qh;
11219
+ let i = Xh[e.type] ?? Zh;
11208
11220
  i > n && (n = i);
11209
11221
  }
11210
11222
  return n;
11211
11223
  }
11212
- function og(e, t) {
11224
+ function ug(e, t) {
11213
11225
  if (!e || t.size === 0) return 0;
11214
11226
  let n = e.style.height, r = e.style.minHeight, i = () => {
11215
11227
  let n = 0;
@@ -11225,15 +11237,15 @@ function og(e, t) {
11225
11237
  let o = Math.max(a, i());
11226
11238
  return e.style.height = n, e.style.minHeight = r, o;
11227
11239
  }
11228
- function sg(e) {
11229
- return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? Vh : 2;
11240
+ function dg(e) {
11241
+ return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? Gh : 2;
11230
11242
  }
11231
- function cg(e) {
11232
- return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : Wh[e.type] ?? Gh;
11243
+ function fg(e) {
11244
+ return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : Jh[e.type] ?? Yh;
11233
11245
  }
11234
- function lg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
11246
+ function pg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
11235
11247
  switch (e.type) {
11236
- case "chart": return /* @__PURE__ */ X(Th, {
11248
+ case "chart": return /* @__PURE__ */ X(kh, {
11237
11249
  item: e,
11238
11250
  filters: t,
11239
11251
  actions: n,
@@ -11247,7 +11259,7 @@ function lg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11247
11259
  isFullscreen: u,
11248
11260
  onFullscreenChange: d
11249
11261
  });
11250
- case "metric": return /* @__PURE__ */ X(zh, {
11262
+ case "metric": return /* @__PURE__ */ X(Uh, {
11251
11263
  item: e,
11252
11264
  filters: t,
11253
11265
  actions: n,
@@ -11260,7 +11272,7 @@ function lg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11260
11272
  isFullscreen: u,
11261
11273
  onFullscreenChange: d
11262
11274
  });
11263
- case "collection": return /* @__PURE__ */ X(Ph, {
11275
+ case "collection": return /* @__PURE__ */ X(Rh, {
11264
11276
  item: e,
11265
11277
  filters: t,
11266
11278
  actions: n,
@@ -11275,7 +11287,7 @@ function lg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11275
11287
  });
11276
11288
  default: {
11277
11289
  let t = e;
11278
- return /* @__PURE__ */ X(ah, {
11290
+ return /* @__PURE__ */ X(lh, {
11279
11291
  title: t.title ?? "Unknown",
11280
11292
  isLoading: !1,
11281
11293
  error: /* @__PURE__ */ Error(`Unknown dashboard item type: "${t.type}"`),
@@ -11286,8 +11298,8 @@ function lg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11286
11298
  }
11287
11299
  //#endregion
11288
11300
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
11289
- function ug({ onExportExcel: e, isExporting: t }) {
11290
- let { t: n } = z();
11301
+ function mg({ onExportExcel: e, isExporting: t }) {
11302
+ let { t: n } = R();
11291
11303
  return /* @__PURE__ */ X(Qi, {
11292
11304
  items: [{
11293
11305
  label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
@@ -11299,17 +11311,17 @@ function ug({ onExportExcel: e, isExporting: t }) {
11299
11311
  }
11300
11312
  //#endregion
11301
11313
  //#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
11302
- function dg(e) {
11314
+ function hg(e) {
11303
11315
  return /* @__PURE__ */ X(is.Provider, {
11304
11316
  value: "controlled",
11305
11317
  children: /* @__PURE__ */ X(Es, { ...e })
11306
11318
  });
11307
11319
  }
11308
- dg.displayName = "ControlledOneFilterPicker";
11320
+ hg.displayName = "ControlledOneFilterPicker";
11309
11321
  //#endregion
11310
11322
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBar.tsx
11311
- function fg({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
11312
- return !e && !n ? null : /* @__PURE__ */ X(dg, {
11323
+ function gg({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
11324
+ return !e && !n ? null : /* @__PURE__ */ X(hg, {
11313
11325
  filters: e,
11314
11326
  value: t,
11315
11327
  presets: n,
@@ -11321,37 +11333,37 @@ function fg({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i,
11321
11333
  }
11322
11334
  //#endregion
11323
11335
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBarSkeleton.tsx
11324
- function pg() {
11336
+ function _g() {
11325
11337
  return /* @__PURE__ */ Z("div", {
11326
11338
  className: "flex items-center gap-1",
11327
11339
  role: "status",
11328
11340
  "aria-label": "Loading filters",
11329
11341
  children: [
11330
- /* @__PURE__ */ X(gn, { className: "h-8 w-24 rounded-md" }),
11331
- /* @__PURE__ */ X(gn, { className: "h-8 w-20 rounded-md" }),
11332
- /* @__PURE__ */ X(gn, { className: "h-8 w-20 rounded-md" })
11342
+ /* @__PURE__ */ X(z, { className: "h-8 w-24 rounded-md" }),
11343
+ /* @__PURE__ */ X(z, { className: "h-8 w-20 rounded-md" }),
11344
+ /* @__PURE__ */ X(z, { className: "h-8 w-20 rounded-md" })
11333
11345
  ]
11334
11346
  });
11335
11347
  }
11336
11348
  //#endregion
11337
11349
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/extractColumns.ts
11338
- function mg(e) {
11350
+ function vg(e) {
11339
11351
  if (e.length === 0) return [];
11340
11352
  let t = e[0];
11341
11353
  return Object.keys(t).filter((e) => typeof e == "string" && !e.startsWith("_"));
11342
11354
  }
11343
11355
  //#endregion
11344
11356
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useDashboardExport.ts
11345
- function hg(e, t) {
11357
+ function yg(e, t) {
11346
11358
  return e.useDashboardFilters === !1 ? {} : t;
11347
11359
  }
11348
- async function gg(e, t) {
11360
+ async function bg(e, t) {
11349
11361
  if (e.length === 0) return null;
11350
11362
  let n = await Promise.all(e.map(async (e) => {
11351
11363
  try {
11352
11364
  return {
11353
11365
  item: e,
11354
- data: await e.fetchData(hg(e, t))
11366
+ data: await e.fetchData(yg(e, t))
11355
11367
  };
11356
11368
  } catch (t) {
11357
11369
  return console.warn(`[useDashboardExport] Failed to export metric "${e.title}":`, t), null;
@@ -11375,14 +11387,14 @@ async function gg(e, t) {
11375
11387
  rows: r
11376
11388
  };
11377
11389
  }
11378
- async function _g(e, t) {
11379
- let n = [], r = await gg(e.filter((e) => e.type === "metric"), t);
11390
+ async function xg(e, t) {
11391
+ let n = [], r = await bg(e.filter((e) => e.type === "metric"), t);
11380
11392
  r && n.push(r);
11381
11393
  let i = e.filter((e) => e.type !== "metric").map(async (e) => {
11382
11394
  if (e.type === "chart") try {
11383
- let n = await e.fetchData(hg(e, t));
11384
- if (!vm(e.chart)) return console.warn(`[useDashboardExport] Skipped chart "${e.title}": unsupported chart type`), null;
11385
- let r = Pm(e.chart, n);
11395
+ let n = await e.fetchData(yg(e, t));
11396
+ if (!Sm(e.chart)) return console.warn(`[useDashboardExport] Skipped chart "${e.title}": unsupported chart type`), null;
11397
+ let r = Rm(e.chart, n);
11386
11398
  return {
11387
11399
  name: e.title,
11388
11400
  columns: r.columns,
@@ -11393,7 +11405,7 @@ async function _g(e, t) {
11393
11405
  return console.warn(`[useDashboardExport] Failed to export chart "${e.title}":`, t), null;
11394
11406
  }
11395
11407
  if (e.type === "collection") try {
11396
- let n = await e.createSource(hg(e, t)).dataAdapter.fetchData({
11408
+ let n = await e.createSource(yg(e, t)).dataAdapter.fetchData({
11397
11409
  filters: {},
11398
11410
  sortings: [],
11399
11411
  pagination: {
@@ -11402,16 +11414,16 @@ async function _g(e, t) {
11402
11414
  }
11403
11415
  }), r = "records" in n ? n.records : n;
11404
11416
  if (r.length === 0) return null;
11405
- let i = Gm(e.title, e.description), a = Eh(e.visualizations);
11417
+ let i = Ym(e.title, e.description), a = Ah(e.visualizations);
11406
11418
  return a.length > 0 ? {
11407
11419
  name: e.title,
11408
11420
  columns: a.map((e) => e.label),
11409
11421
  keys: a.map((e) => e.id),
11410
- rows: Dh(r, a),
11422
+ rows: jh(r, a),
11411
11423
  preamble: i
11412
11424
  } : {
11413
11425
  name: e.title,
11414
- columns: mg(r),
11426
+ columns: vg(r),
11415
11427
  rows: r,
11416
11428
  preamble: i
11417
11429
  };
@@ -11423,7 +11435,7 @@ async function _g(e, t) {
11423
11435
  for (let e of a) e && n.push(e);
11424
11436
  return n;
11425
11437
  }
11426
- function vg({ items: e, filters: t, filename: n = "dashboard" }) {
11438
+ function Sg({ items: e, filters: t, filename: n = "dashboard" }) {
11427
11439
  let [r, i] = J(!1), a = q(e);
11428
11440
  a.current = e;
11429
11441
  let o = q(t);
@@ -11433,8 +11445,8 @@ function vg({ items: e, filters: t, filename: n = "dashboard" }) {
11433
11445
  exportAsExcel: W(async () => {
11434
11446
  i(!0);
11435
11447
  try {
11436
- let e = await _g(a.current, o.current);
11437
- e.length > 0 && await Xm(e, s.current);
11448
+ let e = await xg(a.current, o.current);
11449
+ e.length > 0 && await eh(e, s.current);
11438
11450
  } finally {
11439
11451
  i(!1);
11440
11452
  }
@@ -11444,17 +11456,17 @@ function vg({ items: e, filters: t, filename: n = "dashboard" }) {
11444
11456
  }
11445
11457
  //#endregion
11446
11458
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
11447
- var yg = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
11448
- let y = z(), [b = {}, x] = tc({
11459
+ var Cg = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
11460
+ let y = R(), [b = {}, x] = tc({
11449
11461
  prop: r,
11450
11462
  defaultProp: n ?? {},
11451
11463
  onChange: i
11452
11464
  }), S = K(() => {
11453
11465
  if (!_) return {};
11454
11466
  let e = {};
11455
- for (let [t, n] of Object.entries(_)) e[t] = ve[n.type].valueConverter?.(n.defaultValue, n, y) ?? n.defaultValue;
11467
+ for (let [t, n] of Object.entries(_)) e[t] = ye[n.type].valueConverter?.(n.defaultValue, n, y) ?? n.defaultValue;
11456
11468
  return e;
11457
- }, []), [C, w] = J(S), { exportAsExcel: T, isExporting: E } = vg({
11469
+ }, []), [C, w] = J(S), { exportAsExcel: T, isExporting: E } = Sg({
11458
11470
  items: a,
11459
11471
  filters: b,
11460
11472
  filename: d
@@ -11474,28 +11486,28 @@ var yg = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
11474
11486
  className: "flex items-center justify-between gap-4 px-5",
11475
11487
  children: [/* @__PURE__ */ X("div", {
11476
11488
  className: "w-full",
11477
- children: e ? /* @__PURE__ */ X(fg, {
11489
+ children: e ? /* @__PURE__ */ X(gg, {
11478
11490
  filters: e,
11479
11491
  value: b,
11480
11492
  presets: t,
11481
11493
  onChange: x,
11482
11494
  disabled: c
11483
- }) : v ? /* @__PURE__ */ X(pg, {}) : null
11495
+ }) : v ? /* @__PURE__ */ X(_g, {}) : null
11484
11496
  }), /* @__PURE__ */ Z("div", {
11485
11497
  className: "flex shrink-0 items-center gap-2",
11486
- children: [_ ? /* @__PURE__ */ X(se, {
11498
+ children: [_ ? /* @__PURE__ */ X(ce, {
11487
11499
  navigationFilters: _,
11488
11500
  currentNavigationFilters: C,
11489
11501
  onChangeNavigationFilters: w,
11490
11502
  disabled: c
11491
- }) : null, u ? /* @__PURE__ */ X(ug, {
11503
+ }) : null, u ? /* @__PURE__ */ X(mg, {
11492
11504
  onExportExcel: T,
11493
11505
  isExporting: E
11494
11506
  }) : null]
11495
11507
  })]
11496
11508
  }) : null, /* @__PURE__ */ X("div", {
11497
11509
  className: B("px-5", j && "flex min-h-0 flex-1 flex-col pb-5"),
11498
- children: /* @__PURE__ */ X(Jh, {
11510
+ children: /* @__PURE__ */ X(Qh, {
11499
11511
  items: a,
11500
11512
  itemFilters: c ? void 0 : o,
11501
11513
  filters: {
@@ -11514,17 +11526,17 @@ var yg = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
11514
11526
  })]
11515
11527
  });
11516
11528
  };
11517
- yg.displayName = "F0AnalyticsDashboard";
11518
- var bg = hn("F0AnalyticsDashboard", yg), xg = () => Jn("(min-width: 640px)", { initializeWithValue: !1 }), Sg = () => Jn("(max-width: 639px)", { initializeWithValue: !1 }), Cg = /*#__PURE__*/ U.createContext(void 0);
11519
- process.env.NODE_ENV !== "production" && (Cg.displayName = "ToastContext");
11520
- function wg() {
11521
- let e = U.useContext(Cg);
11529
+ Cg.displayName = "F0AnalyticsDashboard";
11530
+ var wg = gn("F0AnalyticsDashboard", Cg), Tg = () => Jn("(min-width: 640px)", { initializeWithValue: !1 }), Eg = () => Jn("(max-width: 639px)", { initializeWithValue: !1 }), Dg = /*#__PURE__*/ U.createContext(void 0);
11531
+ process.env.NODE_ENV !== "production" && (Dg.displayName = "ToastContext");
11532
+ function Og() {
11533
+ let e = U.useContext(Dg);
11522
11534
  if (!e) throw Error(process.env.NODE_ENV === "production" ? Tn(73) : "Base UI: useToastManager must be used within <Toast.Provider>.");
11523
11535
  return e;
11524
11536
  }
11525
11537
  //#endregion
11526
11538
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/resolvePromiseOptions.mjs
11527
- function Tg(e, t) {
11539
+ function kg(e, t) {
11528
11540
  if (typeof e == "string") return { description: e };
11529
11541
  if (typeof e == "function") {
11530
11542
  let n = e(t);
@@ -11534,7 +11546,7 @@ function Tg(e, t) {
11534
11546
  }
11535
11547
  //#endregion
11536
11548
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/store.mjs
11537
- function Eg(e) {
11549
+ function Ag(e) {
11538
11550
  let t = /* @__PURE__ */ new Map(), n = 0, r = 0;
11539
11551
  return e.forEach((e, i) => {
11540
11552
  let a = e.transitionStatus === "ending";
@@ -11546,7 +11558,7 @@ function Eg(e) {
11546
11558
  }), r += e.height || 0, a || (n += 1);
11547
11559
  }), t;
11548
11560
  }
11549
- function Dg(e, t) {
11561
+ function jg(e, t) {
11550
11562
  let n = 0;
11551
11563
  return e.map((e) => {
11552
11564
  if (e.transitionStatus === "ending") return e;
@@ -11557,7 +11569,7 @@ function Dg(e, t) {
11557
11569
  };
11558
11570
  });
11559
11571
  }
11560
- var Og = {
11572
+ var Mg = {
11561
11573
  toasts: (e) => e.toasts,
11562
11574
  isEmpty: (e) => e.toasts.length === 0,
11563
11575
  toast: (e, t) => e.toastMetadata.get(t)?.value,
@@ -11568,14 +11580,14 @@ var Og = {
11568
11580
  expanded: (e) => e.hovering || e.focused,
11569
11581
  expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
11570
11582
  prevFocusElement: (e) => e.prevFocusElement
11571
- }, kg = class extends In {
11583
+ }, Ng = class extends In {
11572
11584
  timers = /* @__PURE__ */ new Map();
11573
11585
  areTimersPaused = !1;
11574
11586
  constructor(e) {
11575
11587
  super({
11576
11588
  ...e,
11577
- toastMetadata: Eg(e.toasts)
11578
- }, {}, Og);
11589
+ toastMetadata: Ag(e.toasts)
11590
+ }, {}, Mg);
11579
11591
  }
11580
11592
  setViewport = (e) => {
11581
11593
  this.set("viewport", e);
@@ -11588,8 +11600,8 @@ var Og = {
11588
11600
  limit: t
11589
11601
  };
11590
11602
  if (n) {
11591
- let e = Dg(this.state.toasts, t);
11592
- r.toasts = e, r.toastMetadata = Eg(e);
11603
+ let e = jg(this.state.toasts, t);
11604
+ r.toasts = e, r.toastMetadata = Ag(e);
11593
11605
  }
11594
11606
  this.update(r);
11595
11607
  }
@@ -11599,7 +11611,7 @@ var Og = {
11599
11611
  }), this.timers.clear();
11600
11612
  };
11601
11613
  removeToast(e, t = !1) {
11602
- let n = Og.toastIndex(this.state, e);
11614
+ let n = Mg.toastIndex(this.state, e);
11603
11615
  if (n === -1) return;
11604
11616
  let r = this.state.toasts[n];
11605
11617
  t || r?.onRemove?.();
@@ -11607,9 +11619,9 @@ var Og = {
11607
11619
  i.splice(n, 1), this.setToasts(i);
11608
11620
  }
11609
11621
  addToast = (e) => {
11610
- let { timeout: t, limit: n } = this.state, r = e.id || it("toast");
11622
+ let { timeout: t, limit: n } = this.state, r = e.id || at("toast");
11611
11623
  if (e.id) {
11612
- let t = Og.toast(this.state, e.id);
11624
+ let t = Mg.toast(this.state, e.id);
11613
11625
  if (t) {
11614
11626
  if (t.transitionStatus === "ending") this.removeToast(e.id, !0);
11615
11627
  else {
@@ -11624,16 +11636,16 @@ var Og = {
11624
11636
  updateKey: 0,
11625
11637
  transitionStatus: "starting"
11626
11638
  }, a = [i, ...this.state.toasts];
11627
- this.setToasts(Dg(a, n));
11639
+ this.setToasts(jg(a, n));
11628
11640
  let o = i.timeout ?? t;
11629
- return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), Og.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
11641
+ return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), Mg.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
11630
11642
  };
11631
11643
  updateToast = (e, t) => {
11632
- let n = Og.toast(this.state, e);
11644
+ let n = Mg.toast(this.state, e);
11633
11645
  n && n.transitionStatus !== "ending" && this.updateToastInternal(e, typeof t == "function" ? t(n) : t, !1, !0);
11634
11646
  };
11635
11647
  updateToastInternal = (e, t, n = !1, r = !1) => {
11636
- let { timeout: i, toasts: a } = this.state, o = Og.toast(this.state, e);
11648
+ let { timeout: i, toasts: a } = this.state, o = Mg.toast(this.state, e);
11637
11649
  if (!o || o.transitionStatus === "ending") return;
11638
11650
  let s = {
11639
11651
  ...o,
@@ -11642,17 +11654,17 @@ var Og = {
11642
11654
  };
11643
11655
  this.setToasts(a.map((t) => t.id === e ? s : t));
11644
11656
  let c = s.timeout ?? i, l = o.timeout ?? i, u = Object.hasOwn(t, "timeout"), d = s.transitionStatus !== "ending" && s.type !== "loading" && c > 0, f = this.timers.has(e), p = l !== c, m = o.type === "loading";
11645
- !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), Og.expandedOrOutOfFocus(this.state) && this.pauseTimers());
11657
+ !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), Mg.expandedOrOutOfFocus(this.state) && this.pauseTimers());
11646
11658
  };
11647
11659
  closeToast = (e) => {
11648
11660
  let t = e === void 0, { limit: n, toasts: r } = this.state, i;
11649
11661
  if (t) i = r, this.clearTimers();
11650
11662
  else {
11651
- let t = Og.toast(this.state, e);
11663
+ let t = Mg.toast(this.state, e);
11652
11664
  if (!t) return;
11653
11665
  i = [t], this.clearTimer(e);
11654
11666
  }
11655
- let a = Dg(r.map((n) => t || n.id === e ? {
11667
+ let a = jg(r.map((n) => t || n.id === e ? {
11656
11668
  ...n,
11657
11669
  transitionStatus: "ending",
11658
11670
  height: 0
@@ -11662,18 +11674,18 @@ var Og = {
11662
11674
  }), this.handleFocusManagement(e);
11663
11675
  };
11664
11676
  promiseToast = (e, t) => {
11665
- let n = Tg(t.loading), r = this.addToast({
11677
+ let n = kg(t.loading), r = this.addToast({
11666
11678
  ...n,
11667
11679
  type: "loading"
11668
11680
  }), i = e.then((e) => {
11669
- let n = Tg(t.success, e);
11681
+ let n = kg(t.success, e);
11670
11682
  return this.updateToast(r, {
11671
11683
  ...n,
11672
11684
  type: "success",
11673
11685
  timeout: n.timeout
11674
11686
  }), e;
11675
11687
  }).catch((e) => {
11676
- let n = Tg(t.error, e);
11688
+ let n = kg(t.error, e);
11677
11689
  return this.updateToast(r, {
11678
11690
  ...n,
11679
11691
  type: "error",
@@ -11706,7 +11718,7 @@ var Og = {
11706
11718
  }));
11707
11719
  };
11708
11720
  scheduleTimer(e, t, n) {
11709
- let r = Date.now(), i = Og.expandedOrOutOfFocus(this.state) ? void 0 : Pn.create();
11721
+ let r = Date.now(), i = Mg.expandedOrOutOfFocus(this.state) ? void 0 : Pn.create();
11710
11722
  i?.start(t, () => {
11711
11723
  this.handleTimerFired(e), n();
11712
11724
  }), this.timers.set(e, {
@@ -11734,7 +11746,7 @@ var Og = {
11734
11746
  setToasts(e, t = e.length === 0) {
11735
11747
  let n = {
11736
11748
  toasts: e,
11737
- toastMetadata: Eg(e)
11749
+ toastMetadata: Ag(e)
11738
11750
  };
11739
11751
  t && (n.hovering = !1, n.focused = !1), this.update(n);
11740
11752
  }
@@ -11745,14 +11757,14 @@ var Og = {
11745
11757
  this.restoreFocusToPrevElement();
11746
11758
  return;
11747
11759
  }
11748
- let n = Og.toasts(this.state), r = Og.toastIndex(this.state, e), i = (e, t) => {
11760
+ let n = Mg.toasts(this.state), r = Mg.toastIndex(this.state, e), i = (e, t) => {
11749
11761
  for (let r = e; r >= 0 && r < n.length; r += t) if (n[r].transitionStatus !== "ending") return n[r];
11750
11762
  return null;
11751
11763
  }, a = i(r + 1, 1) ?? i(r - 1, -1);
11752
11764
  a ? a.ref?.current?.focus() : this.restoreFocusToPrevElement();
11753
11765
  }
11754
- }, Ag = function(e) {
11755
- let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = xn(() => new kg({
11766
+ }, Pg = function(e) {
11767
+ let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = xn(() => new Ng({
11756
11768
  timeout: n,
11757
11769
  limit: r,
11758
11770
  viewport: null,
@@ -11767,17 +11779,17 @@ var Og = {
11767
11779
  let n = t.id;
11768
11780
  e === "promise" && t.promise ? a.promiseToast(t.promise, t) : e === "update" && n ? a.updateToast(n, t.updates) : e === "close" ? a.closeToast(n) : a.addToast(t);
11769
11781
  });
11770
- }, [a, i]), /*#__PURE__*/ Z(Cg.Provider, {
11782
+ }, [a, i]), /*#__PURE__*/ Z(Dg.Provider, {
11771
11783
  value: a,
11772
- children: [/*#__PURE__*/ X(jg, {
11784
+ children: [/*#__PURE__*/ X(Fg, {
11773
11785
  store: a,
11774
11786
  timeout: n,
11775
11787
  limit: r
11776
11788
  }), t]
11777
11789
  });
11778
11790
  };
11779
- process.env.NODE_ENV !== "production" && (Ag.displayName = "ToastProvider");
11780
- function jg(e) {
11791
+ process.env.NODE_ENV !== "production" && (Pg.displayName = "ToastProvider");
11792
+ function Fg(e) {
11781
11793
  let { store: t, timeout: n, limit: r } = e;
11782
11794
  return bn(() => {
11783
11795
  t.syncProviderProps(n, r);
@@ -11789,8 +11801,8 @@ function jg(e) {
11789
11801
  }
11790
11802
  //#endregion
11791
11803
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/viewport/ToastViewportCssVars.mjs
11792
- var Mg = "--toast-frontmost-height", Ng = /*#__PURE__*/ U.forwardRef(function(e, t) {
11793
- let { render: n, className: r, style: i, children: a, ...o } = e, s = wg(), c = Sn(), l = U.useRef(!1), u = U.useRef(!1), d = U.useRef(!1), f = s.useState("isEmpty"), p = s.useState("toasts"), m = s.useState("focused"), h = s.useState("expanded"), g = s.useState("prevFocusElement"), _ = p[0]?.height, v = p.some((e) => e.transitionStatus === "ending"), y = p.filter((e) => e.priority === "high");
11804
+ var Ig = "--toast-frontmost-height", Lg = /*#__PURE__*/ U.forwardRef(function(e, t) {
11805
+ let { render: n, className: r, style: i, children: a, ...o } = e, s = Og(), c = Sn(), l = U.useRef(!1), u = U.useRef(!1), d = U.useRef(!1), f = s.useState("isEmpty"), p = s.useState("toasts"), m = s.useState("focused"), h = s.useState("expanded"), g = s.useState("prevFocusElement"), _ = p[0]?.height, v = p.some((e) => e.transitionStatus === "ending"), y = p.filter((e) => e.priority === "high");
11794
11806
  U.useEffect(() => {
11795
11807
  let e = s.state.viewport;
11796
11808
  if (!e || f) return;
@@ -11862,7 +11874,7 @@ var Mg = "--toast-frontmost-height", Ng = /*#__PURE__*/ U.forwardRef(function(e,
11862
11874
  onPointerDown: E,
11863
11875
  onPointerUp: D,
11864
11876
  onPointerCancel: D,
11865
- style: { [Mg]: _ ? `${_}px` : void 0 }
11877
+ style: { [Ig]: _ ? `${_}px` : void 0 }
11866
11878
  }, j = { expanded: h }, M = !f && g && /*#__PURE__*/ X(On, { onFocus: b }), N = Ln("div", e, {
11867
11879
  ref: [t, s.setViewport],
11868
11880
  state: j,
@@ -11889,19 +11901,19 @@ var Mg = "--toast-frontmost-height", Ng = /*#__PURE__*/ U.forwardRef(function(e,
11889
11901
  })
11890
11902
  ] });
11891
11903
  });
11892
- process.env.NODE_ENV !== "production" && (Ng.displayName = "ToastViewport");
11904
+ process.env.NODE_ENV !== "production" && (Lg.displayName = "ToastViewport");
11893
11905
  //#endregion
11894
11906
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/root/ToastRootContext.mjs
11895
- var Pg = /*#__PURE__*/ U.createContext(void 0);
11896
- process.env.NODE_ENV !== "production" && (Pg.displayName = "ToastRootContext");
11897
- function Fg() {
11898
- let e = U.useContext(Pg);
11907
+ var Rg = /*#__PURE__*/ U.createContext(void 0);
11908
+ process.env.NODE_ENV !== "production" && (Rg.displayName = "ToastRootContext");
11909
+ function zg() {
11910
+ let e = U.useContext(Rg);
11899
11911
  if (!e) throw Error(process.env.NODE_ENV === "production" ? Tn(66) : "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.");
11900
11912
  return e;
11901
11913
  }
11902
11914
  //#endregion
11903
11915
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/utils/getElementTransform.mjs
11904
- function Ig(e, t) {
11916
+ function Bg(e, t) {
11905
11917
  let n = (t ?? _n(e).getComputedStyle(e)).transform, r = 0, i = 0, a = 1;
11906
11918
  if (n && n !== "none") {
11907
11919
  let e = n.match(/matrix(?:3d)?\(([^)]+)\)/);
@@ -11918,7 +11930,7 @@ function Ig(e, t) {
11918
11930
  }
11919
11931
  //#endregion
11920
11932
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/utils/useSwipeDismiss.mjs
11921
- function Lg(e, t, n) {
11933
+ function Vg(e, t, n) {
11922
11934
  switch (e) {
11923
11935
  case "up": return -n;
11924
11936
  case "down": return n;
@@ -11929,15 +11941,15 @@ function Lg(e, t, n) {
11929
11941
  }
11930
11942
  //#endregion
11931
11943
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/root/ToastRootCssVars.mjs
11932
- var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "--toast-swipe-movement-x", Hg = "--toast-swipe-movement-y", Ug = "data-swipe-direction", Wg = {
11944
+ var Hg = "--toast-index", Ug = "--toast-offset-y", Wg = "--toast-height", Gg = "--toast-swipe-movement-x", Kg = "--toast-swipe-movement-y", qg = "data-swipe-direction", Jg = {
11933
11945
  ...Bn,
11934
11946
  swipeDirection(e) {
11935
- return e ? { [Ug]: e } : null;
11947
+ return e ? { [qg]: e } : null;
11936
11948
  }
11937
- }, Gg = 40, Kg = 10, qg = .5, Jg = 1, Yg = `${jn},${Rn}`, Xg = /*#__PURE__*/ U.forwardRef(function(e, t) {
11949
+ }, Yg = 40, Xg = 10, Zg = .5, Qg = 1, $g = `${jn},${Rn}`, e_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
11938
11950
  let { toast: n, render: r, className: i, swipeDirection: a = ["down", "right"], style: o, ...s } = e, c = n.positionerProps?.anchor !== void 0, l = [];
11939
11951
  c || (l = Array.isArray(a) ? a : [a]);
11940
- let u = l.length > 0, d = wg(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
11952
+ let u = l.length > 0, d = Og(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
11941
11953
  x: 0,
11942
11954
  y: 0
11943
11955
  }), [b, x] = U.useState({
@@ -11957,7 +11969,7 @@ var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "
11957
11969
  }), I = U.useRef(!1), ee = U.useRef({
11958
11970
  x: 0,
11959
11971
  y: 0
11960
- }), te = U.useRef(null), L = U.useRef(null), ne = d.useState("toastIndex", n.id), re = d.useState("toastVisibleIndex", n.id), ie = d.useState("toastOffsetY", n.id), ae = d.useState("focused"), oe = d.useState("expanded");
11972
+ }), te = U.useRef(null), ne = U.useRef(null), re = d.useState("toastIndex", n.id), ie = d.useState("toastVisibleIndex", n.id), ae = d.useState("toastOffsetY", n.id), oe = d.useState("focused"), se = d.useState("expanded");
11961
11973
  An({
11962
11974
  open: n.transitionStatus !== "ending",
11963
11975
  ref: O,
@@ -11965,7 +11977,7 @@ var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "
11965
11977
  n.transitionStatus === "ending" && d.removeToast(n.id);
11966
11978
  }
11967
11979
  });
11968
- let se = kn((e = !1) => {
11980
+ let ce = kn((e = !1) => {
11969
11981
  let t = O.current;
11970
11982
  if (!t) return;
11971
11983
  let r = t.style.height;
@@ -11987,66 +11999,66 @@ var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "
11987
11999
  x: 0,
11988
12000
  y: 0,
11989
12001
  scale: 1
11990
- }), ce({
12002
+ }), le({
11991
12003
  x: 0,
11992
12004
  y: 0
11993
- })), k.current = n.id, se());
12005
+ })), k.current = n.id, ce());
11994
12006
  }, [
11995
- se,
12007
+ ce,
11996
12008
  n.id,
11997
12009
  n.transitionStatus
11998
12010
  ]);
11999
- function ce(e) {
12011
+ function le(e) {
12000
12012
  ee.current = e, y(e);
12001
12013
  }
12002
12014
  bn(() => () => {
12003
- L.current?.abort();
12015
+ ne.current?.abort();
12004
12016
  }, []);
12005
- function le(e, t) {
12006
- let n = (e) => e > 0 ? e ** qg : -(Math.abs(e) ** qg), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
12017
+ function ue(e, t) {
12018
+ let n = (e) => e > 0 ? e ** Zg : -(Math.abs(e) ** Zg), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
12007
12019
  return {
12008
12020
  x: r ? n(e) : e,
12009
12021
  y: i ? n(t) : t
12010
12022
  };
12011
12023
  }
12012
- let ue = kn((e) => {
12024
+ let de = kn((e) => {
12013
12025
  if (e.pointerId !== te.current) return;
12014
- te.current = null, L.current?.abort(), L.current = null, h(!1), _(!1), D(null);
12026
+ te.current = null, ne.current?.abort(), ne.current = null, h(!1), _(!1), D(null);
12015
12027
  let t = j.current;
12016
12028
  if (e.type === "pointercancel" || P.current) {
12017
- ce({
12029
+ le({
12018
12030
  x: t.x,
12019
12031
  y: t.y
12020
12032
  }), p(void 0);
12021
12033
  return;
12022
12034
  }
12023
12035
  let r = ee.current, i = r.x - t.x, a = r.y - t.y, o;
12024
- for (let e of l) if (Lg(e, i, a) > Gg) {
12036
+ for (let e of l) if (Vg(e, i, a) > Yg) {
12025
12037
  o = e;
12026
12038
  break;
12027
12039
  }
12028
- o ? (p(o), d.closeToast(n.id)) : (ce({
12040
+ o ? (p(o), d.closeToast(n.id)) : (le({
12029
12041
  x: t.x,
12030
12042
  y: t.y
12031
12043
  }), p(void 0));
12032
12044
  });
12033
- function de(e) {
12034
- if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), Fn(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${Yg}`))) return;
12045
+ function fe(e) {
12046
+ if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), Fn(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${$g}`))) return;
12035
12047
  P.current = !1, M.current = void 0, N.current = 0, te.current = e.pointerId, A.current = {
12036
12048
  x: e.clientX,
12037
12049
  y: e.clientY
12038
12050
  }, F.current = A.current;
12039
- let t = e.currentTarget, n = Ig(t);
12040
- j.current = n, x(n), ce({
12051
+ let t = e.currentTarget, n = Bg(t);
12052
+ j.current = n, x(n), le({
12041
12053
  x: n.x,
12042
12054
  y: n.y
12043
- }), d.set("hovering", !0), h(!0), _(!1), D(null), I.current = !0, L.current?.abort();
12055
+ }), d.set("hovering", !0), h(!0), _(!1), D(null), I.current = !0, ne.current?.abort();
12044
12056
  let r = new AbortController();
12045
- L.current = r;
12057
+ ne.current = r;
12046
12058
  let i = Hn(t);
12047
- i.addEventListener("pointerup", ue, { signal: r.signal }), i.addEventListener("pointercancel", ue, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
12059
+ i.addEventListener("pointerup", de, { signal: r.signal }), i.addEventListener("pointercancel", de, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
12048
12060
  }
12049
- function fe(e) {
12061
+ function pe(e) {
12050
12062
  if (e.pointerId !== te.current) return;
12051
12063
  e.preventDefault(), I.current &&= (A.current = {
12052
12064
  x: e.clientX,
@@ -12061,24 +12073,24 @@ var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "
12061
12073
  y: F.current.y
12062
12074
  });
12063
12075
  let a = n - A.current.x, o = t - A.current.y, s = t - F.current.y, c = n - F.current.x, u = E;
12064
- if (!g && Math.sqrt(a * a + o * o) >= Jg) {
12076
+ if (!g && Math.sqrt(a * a + o * o) >= Qg) {
12065
12077
  _(!0);
12066
12078
  let e = l.includes("left") || l.includes("right"), t = l.includes("up") || l.includes("down");
12067
12079
  e && t && (u = Math.abs(a) > Math.abs(o) ? "horizontal" : "vertical", D(u));
12068
12080
  }
12069
12081
  let d;
12070
- if (!M.current) u === "vertical" ? o > 0 ? d = "down" : o < 0 && (d = "up") : u === "horizontal" ? a > 0 ? d = "right" : a < 0 && (d = "left") : d = Math.abs(a) >= Math.abs(o) ? a > 0 ? "right" : "left" : o > 0 ? "down" : "up", d && l.includes(d) && (M.current = d, N.current = Lg(d, a, o), p(d));
12082
+ if (!M.current) u === "vertical" ? o > 0 ? d = "down" : o < 0 && (d = "up") : u === "horizontal" ? a > 0 ? d = "right" : a < 0 && (d = "left") : d = Math.abs(a) >= Math.abs(o) ? a > 0 ? "right" : "left" : o > 0 ? "down" : "up", d && l.includes(d) && (M.current = d, N.current = Vg(d, a, o), p(d));
12071
12083
  else {
12072
- let e = M.current, t = Lg(e, c, s);
12073
- t > Gg ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= Kg && (P.current = !0);
12084
+ let e = M.current, t = Vg(e, c, s);
12085
+ t > Yg ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= Xg && (P.current = !0);
12074
12086
  }
12075
- let f = le(a, o), m = j.current.x, h = j.current.y, v = l.includes("left") || l.includes("right"), y = l.includes("up") || l.includes("down");
12076
- u !== "vertical" && v && (m += f.x), u !== "horizontal" && y && (h += f.y), ce({
12087
+ let f = ue(a, o), m = j.current.x, h = j.current.y, v = l.includes("left") || l.includes("right"), y = l.includes("up") || l.includes("down");
12088
+ u !== "vertical" && v && (m += f.x), u !== "horizontal" && y && (h += f.y), le({
12077
12089
  x: m,
12078
12090
  y: h
12079
12091
  });
12080
12092
  }
12081
- function pe(e) {
12093
+ function me(e) {
12082
12094
  if (e.key === "Escape") {
12083
12095
  if (!O.current || !wn(O.current, yn(Hn(O.current)))) return;
12084
12096
  d.closeToast(n.id);
@@ -12092,71 +12104,71 @@ var Rg = "--toast-index", zg = "--toast-offset-y", Bg = "--toast-height", Vg = "
12092
12104
  }
12093
12105
  return Dn(e, "touchmove", t, { passive: !1 });
12094
12106
  }, [u]);
12095
- function me() {
12107
+ function he() {
12096
12108
  let e = v.x - b.x, t = v.y - b.y;
12097
12109
  return {
12098
12110
  transition: m ? "none" : void 0,
12099
12111
  transform: m ? `translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})` : void 0,
12100
- [Vg]: `${e}px`,
12101
- [Hg]: `${t}px`
12112
+ [Gg]: `${e}px`,
12113
+ [Kg]: `${t}px`
12102
12114
  };
12103
12115
  }
12104
- let he = n.priority === "high", ge = {
12105
- role: he ? "alertdialog" : "dialog",
12116
+ let ge = n.priority === "high", _e = {
12117
+ role: ge ? "alertdialog" : "dialog",
12106
12118
  tabIndex: 0,
12107
12119
  "aria-modal": !1,
12108
12120
  "aria-labelledby": S,
12109
12121
  "aria-describedby": w,
12110
- "aria-hidden": he && !ae ? !0 : void 0,
12111
- onPointerDown: u ? de : void 0,
12112
- onPointerMove: u ? fe : void 0,
12113
- onPointerUp: u ? ue : void 0,
12114
- onPointerCancel: u ? ue : void 0,
12115
- onKeyDown: pe,
12122
+ "aria-hidden": ge && !oe ? !0 : void 0,
12123
+ onPointerDown: u ? fe : void 0,
12124
+ onPointerMove: u ? pe : void 0,
12125
+ onPointerUp: u ? de : void 0,
12126
+ onPointerCancel: u ? de : void 0,
12127
+ onKeyDown: me,
12116
12128
  inert: Ac(n.limited),
12117
12129
  style: {
12118
- ...me(),
12119
- [Rg]: n.transitionStatus === "ending" ? ne : re,
12120
- [zg]: `${ie}px`,
12121
- [Bg]: n.height ? `${n.height}px` : void 0
12130
+ ...he(),
12131
+ [Hg]: n.transitionStatus === "ending" ? re : ie,
12132
+ [Ug]: `${ae}px`,
12133
+ [Wg]: n.height ? `${n.height}px` : void 0
12122
12134
  }
12123
- }, _e = U.useMemo(() => ({
12135
+ }, ve = U.useMemo(() => ({
12124
12136
  toast: n,
12125
12137
  setTitleId: C,
12126
12138
  setDescriptionId: T,
12127
- recalculateHeight: se,
12128
- visibleIndex: re,
12129
- expanded: oe
12139
+ recalculateHeight: ce,
12140
+ visibleIndex: ie,
12141
+ expanded: se
12130
12142
  }), [
12131
12143
  n,
12132
12144
  C,
12133
12145
  T,
12134
- se,
12135
- re,
12136
- oe
12137
- ]), ve = {
12146
+ ce,
12147
+ ie,
12148
+ se
12149
+ ]), ye = {
12138
12150
  transitionStatus: n.transitionStatus,
12139
- expanded: oe,
12151
+ expanded: se,
12140
12152
  limited: n.limited || !1,
12141
12153
  type: n.type,
12142
12154
  swiping: m,
12143
12155
  swipeDirection: f
12144
- }, ye = Ln("div", e, {
12156
+ }, be = Ln("div", e, {
12145
12157
  ref: [t, O],
12146
- state: ve,
12147
- stateAttributesMapping: Wg,
12148
- props: [ge, s]
12158
+ state: ye,
12159
+ stateAttributesMapping: Jg,
12160
+ props: [_e, s]
12149
12161
  });
12150
- return /*#__PURE__*/ X(Pg.Provider, {
12151
- value: _e,
12152
- children: ye
12162
+ return /*#__PURE__*/ X(Rg.Provider, {
12163
+ value: ve,
12164
+ children: be
12153
12165
  });
12154
12166
  });
12155
- process.env.NODE_ENV !== "production" && (Xg.displayName = "ToastRoot");
12167
+ process.env.NODE_ENV !== "production" && (e_.displayName = "ToastRoot");
12156
12168
  //#endregion
12157
12169
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/content/ToastContent.mjs
12158
- var Zg = /*#__PURE__*/ U.forwardRef(function(e, t) {
12159
- let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = Fg(), l = U.useRef(null);
12170
+ var t_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12171
+ let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = zg(), l = U.useRef(null);
12160
12172
  return bn(() => {
12161
12173
  c();
12162
12174
  let e = l.current;
@@ -12178,19 +12190,19 @@ var Zg = /*#__PURE__*/ U.forwardRef(function(e, t) {
12178
12190
  props: a
12179
12191
  });
12180
12192
  });
12181
- process.env.NODE_ENV !== "production" && (Zg.displayName = "ToastContent");
12193
+ process.env.NODE_ENV !== "production" && (t_.displayName = "ToastContent");
12182
12194
  //#endregion
12183
12195
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/isRenderableNode.mjs
12184
- function Qg(e) {
12185
- return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(Qg);
12196
+ function n_(e) {
12197
+ return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(n_);
12186
12198
  }
12187
- function $g(e) {
12188
- return /*#__PURE__*/ U.isValidElement(e) && Qg(e.props.children);
12199
+ function r_(e) {
12200
+ return /*#__PURE__*/ U.isValidElement(e) && n_(e.props.children);
12189
12201
  }
12190
12202
  //#endregion
12191
12203
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/useToastLabelPart.mjs
12192
- function e_(e, t, n) {
12193
- let { toast: r, setTitleId: i, setDescriptionId: a } = Fg(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
12204
+ function i_(e, t, n) {
12205
+ let { toast: r, setTitleId: i, setDescriptionId: a } = zg(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
12194
12206
  return {
12195
12207
  id: Mn(e),
12196
12208
  children: s,
@@ -12198,8 +12210,8 @@ function e_(e, t, n) {
12198
12210
  setId: o
12199
12211
  };
12200
12212
  }
12201
- function t_(e, t, n) {
12202
- let r = $g(e);
12213
+ function a_(e, t, n) {
12214
+ let r = r_(e);
12203
12215
  return bn(() => {
12204
12216
  if (r) return n(t), () => {
12205
12217
  n((e) => e === t ? void 0 : e);
@@ -12212,9 +12224,9 @@ function t_(e, t, n) {
12212
12224
  }
12213
12225
  //#endregion
12214
12226
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/description/ToastDescription.mjs
12215
- var n_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12216
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = e_(a, o, "description");
12217
- return t_(Ln("p", e, {
12227
+ var o_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12228
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = i_(a, o, "description");
12229
+ return a_(Ln("p", e, {
12218
12230
  ref: t,
12219
12231
  state: { type: u },
12220
12232
  props: {
@@ -12224,12 +12236,12 @@ var n_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12224
12236
  }
12225
12237
  }), c, d);
12226
12238
  });
12227
- process.env.NODE_ENV !== "production" && (n_.displayName = "ToastDescription");
12239
+ process.env.NODE_ENV !== "production" && (o_.displayName = "ToastDescription");
12228
12240
  //#endregion
12229
12241
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/title/ToastTitle.mjs
12230
- var r_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12231
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = e_(a, o, "title");
12232
- return t_(Ln("h2", e, {
12242
+ var s_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12243
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = i_(a, o, "title");
12244
+ return a_(Ln("h2", e, {
12233
12245
  ref: t,
12234
12246
  state: { type: u },
12235
12247
  props: {
@@ -12239,11 +12251,11 @@ var r_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12239
12251
  }
12240
12252
  }), c, d);
12241
12253
  });
12242
- process.env.NODE_ENV !== "production" && (r_.displayName = "ToastTitle");
12254
+ process.env.NODE_ENV !== "production" && (s_.displayName = "ToastTitle");
12243
12255
  //#endregion
12244
12256
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/useToastManager.mjs
12245
- function i_() {
12246
- let e = wg(), t = e.useState("toasts");
12257
+ function c_() {
12258
+ let e = Og(), t = e.useState("toasts");
12247
12259
  return U.useMemo(() => ({
12248
12260
  toasts: t,
12249
12261
  add: e.addToast,
@@ -12254,8 +12266,8 @@ function i_() {
12254
12266
  }
12255
12267
  //#endregion
12256
12268
  //#region src/elements/Toast/components/ToastCloseButton.tsx
12257
- var a_ = ({ onClose: e }) => {
12258
- let t = z();
12269
+ var l_ = ({ onClose: e }) => {
12270
+ let t = R();
12259
12271
  return /* @__PURE__ */ X("div", {
12260
12272
  className: "dark flex-shrink-0",
12261
12273
  children: /* @__PURE__ */ X(V, {
@@ -12267,13 +12279,13 @@ var a_ = ({ onClose: e }) => {
12267
12279
  label: t.actions.close
12268
12280
  })
12269
12281
  });
12270
- }, o_ = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
12282
+ }, u_ = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
12271
12283
  className: "absolute bottom-0 left-0 right-0 h-[3px] w-full overflow-hidden rounded-b-lg",
12272
12284
  children: /* @__PURE__ */ X("div", {
12273
12285
  className: B("h-full w-full animate-toast-countdown", "group-data-[expanded]/toast:[animation-play-state:paused]", "group-data-[window-blurred]/toasts:[animation-play-state:paused]", t),
12274
12286
  style: { animationDuration: `${e}ms` }
12275
12287
  })
12276
- }), s_ = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
12288
+ }), d_ = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
12277
12289
  className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
12278
12290
  children: [e.map((e) => /* @__PURE__ */ X("div", {
12279
12291
  onClick: () => n(e),
@@ -12288,7 +12300,7 @@ var a_ = ({ onClose: e }) => {
12288
12300
  size: "sm",
12289
12301
  onClick: () => n(e)
12290
12302
  }, `button-${e.label}`))]
12291
- }), c_ = (e, t) => {
12303
+ }), f_ = (e, t) => {
12292
12304
  let n = Jo(e);
12293
12305
  return {
12294
12306
  buttonActions: n.filter((e) => e.type === "button"),
@@ -12298,7 +12310,7 @@ var a_ = ({ onClose: e }) => {
12298
12310
  e.type === "button" && e.onClick(), e.keepOpen || t?.();
12299
12311
  }
12300
12312
  };
12301
- }, l_ = yc({
12313
+ }, p_ = yc({
12302
12314
  Title: ({ className: e, children: t }) => /* @__PURE__ */ X("p", {
12303
12315
  className: e,
12304
12316
  children: t
@@ -12308,30 +12320,30 @@ var a_ = ({ onClose: e }) => {
12308
12320
  children: t
12309
12321
  }),
12310
12322
  inStack: !1
12311
- }), u_ = () => Cc(l_), d_ = (e) => B("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), f_ = eo({
12323
+ }), m_ = () => Cc(p_), h_ = (e) => B("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), g_ = eo({
12312
12324
  base: "text-base font-medium text-f1-foreground-inverse",
12313
12325
  variants: { hasIcon: {
12314
12326
  true: "pt-[3px]",
12315
12327
  false: ""
12316
12328
  } },
12317
12329
  defaultVariants: { hasIcon: !1 }
12318
- }), p_ = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", m_ = {
12330
+ }), __ = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", v_ = {
12319
12331
  error: "critical",
12320
12332
  warning: "warning",
12321
12333
  success: "positive",
12322
12334
  loading: null,
12323
12335
  default: null
12324
- }, h_ = {
12336
+ }, y_ = {
12325
12337
  error: "bg-f1-icon-critical",
12326
12338
  warning: "bg-f1-icon-warning",
12327
12339
  success: "bg-f1-icon-positive",
12328
12340
  loading: "bg-f1-foreground-inverse-secondary",
12329
12341
  default: "bg-f1-foreground-inverse-secondary"
12330
- }, g_ = bc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
12331
- let { Title: l, Description: u, inStack: d } = u_(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = c_(a, i), g = m_[n], _ = n === "loading", v = !_ && r != null && r > 0;
12342
+ }, b_ = bc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
12343
+ let { Title: l, Description: u, inStack: d } = m_(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = f_(a, i), g = v_[n], _ = n === "loading", v = !_ && r != null && r > 0;
12332
12344
  return /* @__PURE__ */ Z("div", {
12333
12345
  ref: c,
12334
- className: d_(d),
12346
+ className: h_(d),
12335
12347
  children: [/* @__PURE__ */ Z("div", {
12336
12348
  className: B("flex flex-row gap-3", t ? "items-start" : "items-center"),
12337
12349
  children: [
@@ -12354,44 +12366,44 @@ var a_ = ({ onClose: e }) => {
12354
12366
  className: "flex flex-1 animate-toast-content-in flex-col gap-1 motion-reduce:animate-none",
12355
12367
  children: [
12356
12368
  e ? /* @__PURE__ */ X(l, {
12357
- className: f_({ hasIcon: !!g || _ }),
12369
+ className: g_({ hasIcon: !!g || _ }),
12358
12370
  children: e
12359
12371
  }) : null,
12360
12372
  t && e ? /* @__PURE__ */ X(u, {
12361
- className: p_,
12373
+ className: __,
12362
12374
  children: t
12363
12375
  }) : null,
12364
12376
  t && !e ? /* @__PURE__ */ X(l, {
12365
- className: p_,
12377
+ className: __,
12366
12378
  children: t
12367
12379
  }) : null
12368
12380
  ]
12369
12381
  }, s),
12370
- /* @__PURE__ */ X(s_, {
12382
+ /* @__PURE__ */ X(d_, {
12371
12383
  linkActions: p,
12372
12384
  buttonActions: f,
12373
12385
  onActionClick: h
12374
12386
  }),
12375
- i && !_ && (!m || !v) ? /* @__PURE__ */ X(a_, { onClose: i }) : null
12387
+ i && !_ && (!m || !v) ? /* @__PURE__ */ X(l_, { onClose: i }) : null
12376
12388
  ]
12377
- }), v ? /* @__PURE__ */ X(o_, {
12389
+ }), v ? /* @__PURE__ */ X(u_, {
12378
12390
  duration: r,
12379
- color: h_[n]
12391
+ color: y_[n]
12380
12392
  }, o) : null]
12381
12393
  });
12382
12394
  });
12383
- g_.displayName = "F0Toast";
12395
+ b_.displayName = "F0Toast";
12384
12396
  //#endregion
12385
12397
  //#region src/elements/Toast/F0MessageToast.tsx
12386
- var __ = (e) => e instanceof Element && e.closest("button, a") !== null, v_ = bc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
12387
- let d = z(), { Title: f, Description: p, inStack: m } = u_(), h = () => {
12398
+ var x_ = (e) => e instanceof Element && e.closest("button, a") !== null, S_ = bc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
12399
+ let d = R(), { Title: f, Description: p, inStack: m } = m_(), h = () => {
12388
12400
  a?.(), s?.();
12389
12401
  }, g = o != null && o > 0;
12390
12402
  return /* @__PURE__ */ Z("div", {
12391
12403
  ref: u,
12392
- className: B(d_(m), a && "cursor-pointer"),
12404
+ className: B(h_(m), a && "cursor-pointer"),
12393
12405
  onClick: a && !m ? (e) => {
12394
- __(e.target) || h();
12406
+ x_(e.target) || h();
12395
12407
  } : void 0,
12396
12408
  children: [
12397
12409
  a ? /* @__PURE__ */ X("button", {
@@ -12429,50 +12441,50 @@ var __ = (e) => e instanceof Element && e.closest("button, a") !== null, v_ = bc
12429
12441
  }),
12430
12442
  i > 0 ? /* @__PURE__ */ X("p", {
12431
12443
  className: "text-sm text-f1-foreground-inverse-secondary",
12432
- children: Qe(d.toasts.moreMessages, i)
12444
+ children: $e(d.toasts.moreMessages, i)
12433
12445
  }) : null
12434
12446
  ]
12435
12447
  }, l),
12436
12448
  s ? /* @__PURE__ */ X("div", {
12437
12449
  className: "relative flex-shrink-0",
12438
- children: /* @__PURE__ */ X(a_, { onClose: s })
12450
+ children: /* @__PURE__ */ X(l_, { onClose: s })
12439
12451
  }) : null
12440
12452
  ]
12441
12453
  }),
12442
- g ? /* @__PURE__ */ X(o_, {
12454
+ g ? /* @__PURE__ */ X(u_, {
12443
12455
  duration: o,
12444
12456
  color: "bg-f1-foreground-inverse-secondary"
12445
12457
  }, c) : null
12446
12458
  ]
12447
12459
  });
12448
12460
  });
12449
- v_.displayName = "F0MessageToast";
12461
+ S_.displayName = "F0MessageToast";
12450
12462
  //#endregion
12451
12463
  //#region src/elements/Toast/stack/ToastItem.tsx
12452
- var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 flex w-full origin-bottom select-none flex-col justify-end rounded-lg", En(), "before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:-z-10 before:rounded-lg before:shadow-lg before:content-['']", "before:border before:border-solid before:border-f1-border-inverse", "before:bg-f1-background-inverse before:bg-[linear-gradient(hsl(var(--neutral-90)),hsl(var(--neutral-90)))]", "dark:before:bg-f1-background-tertiary dark:before:bg-[linear-gradient(hsl(var(--neutral-5)),hsl(var(--neutral-5)))]", "before:h-[var(--height)] data-[expanded]:before:h-[var(--toast-height)]", "data-[ending-style]:before:h-full data-[expanded]:data-[ending-style]:before:h-full", "before:[transition:height_0.3s_cubic-bezier(0.22,1,0.36,1)] motion-reduce:before:[transition:none]", "[--gap:0.75rem] [--peek:6px]", "[--scale:calc(max(0,1_-_var(--toast-index)*0.05))] [--shrink:calc(1_-_var(--scale))]", "[--height:var(--toast-frontmost-height,var(--toast-height))]", "[--offset-y:calc(var(--toast-offset-y)*-1_-_var(--toast-index)*var(--gap)_+_var(--toast-swipe-movement-y))]", "z-[calc(1000_-_var(--toast-index))]", "h-[var(--height)] data-[expanded]:h-[var(--toast-height)]", "[interpolate-size:numeric-only]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height)))_scale(var(--scale))]", "data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]", "after:absolute after:left-0 after:top-full after:h-[calc(var(--gap)_+_1px)] after:w-full after:content-['']", "data-[buried]:invisible data-[buried]:opacity-0 data-[expanded]:data-[buried]:visible data-[expanded]:data-[buried]:opacity-100", "data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:opacity-0 group-data-[clearing]/toasts:data-[ending-style]:opacity-100", "[--exit-drop:100%]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height,0px)_+_var(--exit-drop)))_scale(var(--scale))]", "[&[data-ending-style][data-expanded]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--offset-y)_+_var(--exit-drop)))]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)_+_150%))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)_+_150%))_translateY(var(--offset-y))]", "[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s]", "motion-reduce:[transition:opacity_0.2s]"), b_ = B("shrink-0 overflow-hidden rounded-lg", "[--content-shift:calc(var(--toast-height,var(--height))_-_var(--height))]", "group-data-[ending-style]/toast:h-full", "[transform:translateY(var(--content-shift))] [clip-path:inset(0_0_max(0px,var(--content-shift))_0_round_theme(borderRadius.lg))]", "data-[expanded]:[transform:none] data-[expanded]:[clip-path:inset(0_0_0_0_round_theme(borderRadius.lg))]", "[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[behind]:opacity-0 data-[expanded]:opacity-100", "data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1)_300ms,transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[expanded]:data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "motion-reduce:[transition:opacity_250ms] motion-reduce:data-[behind]:[transition:opacity_250ms]"), x_ = ["down", "right"], S_ = {
12453
- Title: ({ className: e, children: t }) => /* @__PURE__ */ X(r_, {
12464
+ var C_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 flex w-full origin-bottom select-none flex-col justify-end rounded-lg", En(), "before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:-z-10 before:rounded-lg before:shadow-lg before:content-['']", "before:border before:border-solid before:border-f1-border-inverse", "before:bg-f1-background-inverse before:bg-[linear-gradient(hsl(var(--neutral-90)),hsl(var(--neutral-90)))]", "dark:before:bg-f1-background-tertiary dark:before:bg-[linear-gradient(hsl(var(--neutral-5)),hsl(var(--neutral-5)))]", "before:h-[var(--height)] data-[expanded]:before:h-[var(--toast-height)]", "data-[ending-style]:before:h-full data-[expanded]:data-[ending-style]:before:h-full", "before:[transition:height_0.3s_cubic-bezier(0.22,1,0.36,1)] motion-reduce:before:[transition:none]", "[--gap:0.75rem] [--peek:6px]", "[--scale:calc(max(0,1_-_var(--toast-index)*0.05))] [--shrink:calc(1_-_var(--scale))]", "[--height:var(--toast-frontmost-height,var(--toast-height))]", "[--offset-y:calc(var(--toast-offset-y)*-1_-_var(--toast-index)*var(--gap)_+_var(--toast-swipe-movement-y))]", "z-[calc(1000_-_var(--toast-index))]", "h-[var(--height)] data-[expanded]:h-[var(--toast-height)]", "[interpolate-size:numeric-only]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height)))_scale(var(--scale))]", "data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]", "after:absolute after:left-0 after:top-full after:h-[calc(var(--gap)_+_1px)] after:w-full after:content-['']", "data-[buried]:invisible data-[buried]:opacity-0 data-[expanded]:data-[buried]:visible data-[expanded]:data-[buried]:opacity-100", "data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:opacity-0 group-data-[clearing]/toasts:data-[ending-style]:opacity-100", "[--exit-drop:100%]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height,0px)_+_var(--exit-drop)))_scale(var(--scale))]", "[&[data-ending-style][data-expanded]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--offset-y)_+_var(--exit-drop)))]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)_+_150%))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)_+_150%))_translateY(var(--offset-y))]", "[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s]", "motion-reduce:[transition:opacity_0.2s]"), w_ = B("shrink-0 overflow-hidden rounded-lg", "[--content-shift:calc(var(--toast-height,var(--height))_-_var(--height))]", "group-data-[ending-style]/toast:h-full", "[transform:translateY(var(--content-shift))] [clip-path:inset(0_0_max(0px,var(--content-shift))_0_round_theme(borderRadius.lg))]", "data-[expanded]:[transform:none] data-[expanded]:[clip-path:inset(0_0_0_0_round_theme(borderRadius.lg))]", "[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[behind]:opacity-0 data-[expanded]:opacity-100", "data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1)_300ms,transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[expanded]:data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "motion-reduce:[transition:opacity_250ms] motion-reduce:data-[behind]:[transition:opacity_250ms]"), T_ = ["down", "right"], E_ = {
12465
+ Title: ({ className: e, children: t }) => /* @__PURE__ */ X(s_, {
12454
12466
  className: e,
12455
12467
  render: /* @__PURE__ */ X("p", {}),
12456
12468
  children: t
12457
12469
  }),
12458
- Description: ({ className: e, children: t }) => /* @__PURE__ */ X(n_, {
12470
+ Description: ({ className: e, children: t }) => /* @__PURE__ */ X(o_, {
12459
12471
  className: e,
12460
12472
  children: t
12461
12473
  }),
12462
12474
  inStack: !0
12463
- }, C_ = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(v_, {
12475
+ }, D_ = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(S_, {
12464
12476
  ...e.props,
12465
12477
  duration: t,
12466
12478
  countdownKey: n,
12467
12479
  contentKey: r,
12468
12480
  onClose: i
12469
- }) : /* @__PURE__ */ X(g_, {
12481
+ }) : /* @__PURE__ */ X(b_, {
12470
12482
  ...e.props,
12471
12483
  duration: t,
12472
12484
  countdownKey: n,
12473
12485
  contentKey: r,
12474
12486
  onClose: i
12475
- }), w_ = 6, T_ = (e) => {
12487
+ }), O_ = 6, k_ = (e) => {
12476
12488
  let t = q(null);
12477
12489
  return e ? {
12478
12490
  onPointerDown: (e) => {
@@ -12484,28 +12496,28 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12484
12496
  },
12485
12497
  onPointerMove: (e) => {
12486
12498
  let n = t.current;
12487
- n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > w_ && (n.dragged = !0);
12499
+ n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > O_ && (n.dragged = !0);
12488
12500
  },
12489
12501
  onClick: (n) => {
12490
12502
  let r = t.current?.dragged ?? !1;
12491
- t.current = null, !r && !__(n.target) && e();
12503
+ t.current = null, !r && !x_(n.target) && e();
12492
12504
  }
12493
12505
  } : {};
12494
- }, E_ = ({ toast: e, buried: t }) => {
12495
- let { close: n } = i_(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = T_(r ? () => {
12506
+ }, A_ = ({ toast: e, buried: t }) => {
12507
+ let { close: n } = c_(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = k_(r ? () => {
12496
12508
  r(), n(e.id);
12497
12509
  } : void 0);
12498
- return e.data ? /* @__PURE__ */ X(Xg, {
12510
+ return e.data ? /* @__PURE__ */ X(e_, {
12499
12511
  toast: e,
12500
- swipeDirection: x_,
12512
+ swipeDirection: T_,
12501
12513
  "data-buried": t ? "" : void 0,
12502
- className: y_,
12514
+ className: C_,
12503
12515
  ...i,
12504
- children: /* @__PURE__ */ X(Zg, {
12505
- className: b_,
12506
- children: /* @__PURE__ */ X(l_.Provider, {
12507
- value: S_,
12508
- children: /* @__PURE__ */ X(C_, {
12516
+ children: /* @__PURE__ */ X(t_, {
12517
+ className: w_,
12518
+ children: /* @__PURE__ */ X(p_.Provider, {
12519
+ value: E_,
12520
+ children: /* @__PURE__ */ X(D_, {
12509
12521
  data: e.data,
12510
12522
  duration: e.timeout,
12511
12523
  countdownKey: `${e.data.revision}-${e.updateKey ?? 0}`,
@@ -12515,18 +12527,18 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12515
12527
  })
12516
12528
  })
12517
12529
  }) : null;
12518
- }, D_ = 12, O_ = 6, k_ = 36, A_ = 2, j_ = 3, M_ = (e) => {
12530
+ }, j_ = 12, M_ = 6, N_ = 36, P_ = 2, F_ = 3, I_ = (e) => {
12519
12531
  if (e.length === 0) return {
12520
12532
  collapsed: 0,
12521
12533
  expanded: 0
12522
12534
  };
12523
- let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + D_ * (e.length - 1);
12535
+ let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + j_ * (e.length - 1);
12524
12536
  return {
12525
- collapsed: t + O_ * Math.min(e.length - 1, A_),
12526
- expanded: n + (e.length > 1 ? k_ : 0)
12537
+ collapsed: t + M_ * Math.min(e.length - 1, P_),
12538
+ expanded: n + (e.length > 1 ? N_ : 0)
12527
12539
  };
12528
- }, N_ = ({ onClear: e }) => {
12529
- let t = z(), { close: n } = i_();
12540
+ }, L_ = ({ onClear: e }) => {
12541
+ let t = R(), { close: n } = c_();
12530
12542
  return /* @__PURE__ */ X("div", {
12531
12543
  className: B("pointer-events-auto absolute right-0 flex h-[var(--clear-all-row)] items-start justify-end", "bottom-[calc(var(--stack-expanded-height)_-_var(--clear-all-row))]", "invisible opacity-0 [transform:translateY(calc(var(--stack-expanded-height)_-_var(--stack-collapsed-height)))]", "group-data-[expanded]/toasts:visible group-data-[expanded]/toasts:opacity-100 group-data-[expanded]/toasts:[transform:none]", "[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s_cubic-bezier(0.22,1,0.36,1),visibility_0.5s]", "motion-reduce:[transition:opacity_0.2s,visibility_0.2s]"),
12532
12544
  children: /* @__PURE__ */ X(V, {
@@ -12538,18 +12550,18 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12538
12550
  }
12539
12551
  })
12540
12552
  });
12541
- }, P_ = (e) => {
12542
- let { update: t } = i_();
12553
+ }, R_ = (e) => {
12554
+ let { update: t } = c_();
12543
12555
  Ec(function() {
12544
12556
  e.forEach((e, n) => {
12545
12557
  if (!e.data) return;
12546
- let r = n >= j_ ? 0 : e.data.duration;
12558
+ let r = n >= F_ ? 0 : e.data.duration;
12547
12559
  (e.timeout ?? 0) !== r && t(e.id, { timeout: r });
12548
12560
  });
12549
12561
  }, [e, t]);
12550
- }, F_ = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
12551
- let { toasts: i } = i_(), a = q(null), o = i.filter((e) => e.transitionStatus !== "ending"), [s, c] = J(/* @__PURE__ */ new Set()), l = i.length > 0 && i.every((e) => e.transitionStatus === "ending" && s.has(e.id));
12552
- P_(o), Tc(n, () => ({
12562
+ }, z_ = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
12563
+ let { toasts: i } = c_(), a = q(null), o = i.filter((e) => e.transitionStatus !== "ending"), [s, c] = J(/* @__PURE__ */ new Set()), l = i.length > 0 && i.every((e) => e.transitionStatus === "ending" && s.has(e.id));
12564
+ R_(o), Tc(n, () => ({
12553
12565
  isInUse: () => a.current?.hasAttribute("data-expanded") ?? !1,
12554
12566
  frontToastId: () => o[0]?.id
12555
12567
  }), [o]);
@@ -12557,28 +12569,28 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12557
12569
  G(function() {
12558
12570
  r(u);
12559
12571
  }, [u, r]);
12560
- let d = M_(o), f = {
12572
+ let d = I_(o), f = {
12561
12573
  "--stack-collapsed-height": `${d.collapsed}px`,
12562
12574
  "--stack-expanded-height": `${d.expanded}px`,
12563
- "--clear-all-row": `${k_}px`
12575
+ "--clear-all-row": `${N_}px`
12564
12576
  };
12565
- return /* @__PURE__ */ Z(Ng, {
12577
+ return /* @__PURE__ */ Z(Lg, {
12566
12578
  ref: a,
12567
12579
  className: B("group/toasts pointer-events-auto relative w-full", "h-[var(--stack-collapsed-height)] data-[expanded]:h-[var(--stack-expanded-height)]", "data-[clearing]:opacity-0", "[transition:height_0.3s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s] motion-reduce:[transition:opacity_0.2s]"),
12568
12580
  "aria-label": e,
12569
12581
  "data-clearing": l ? "" : void 0,
12570
12582
  "data-window-blurred": t ? "" : void 0,
12571
12583
  style: f,
12572
- children: [i.map((e) => /* @__PURE__ */ X(E_, {
12584
+ children: [i.map((e) => /* @__PURE__ */ X(A_, {
12573
12585
  toast: e,
12574
- buried: o.indexOf(e) >= j_
12575
- }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(N_, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
12586
+ buried: o.indexOf(e) >= F_
12587
+ }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(L_, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
12576
12588
  });
12577
- }, I_ = "#content", L_ = (e) => {
12589
+ }, B_ = "#content", V_ = (e) => {
12578
12590
  let [t, n] = J({ inset: 0 });
12579
12591
  return rr(function() {
12580
12592
  if (!e || typeof document > "u") return;
12581
- let t = document.querySelector(I_);
12593
+ let t = document.querySelector(B_);
12582
12594
  if (!t) {
12583
12595
  n({ inset: 0 });
12584
12596
  return;
@@ -12598,7 +12610,7 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12598
12610
  i.disconnect(), window.removeEventListener("resize", r), window.removeEventListener("scroll", r, !0);
12599
12611
  };
12600
12612
  }, [e]), t;
12601
- }, R_ = () => {
12613
+ }, H_ = () => {
12602
12614
  let [e, t] = J(!1);
12603
12615
  return G(function() {
12604
12616
  let e = () => t(!0), n = () => t(!1);
@@ -12606,26 +12618,26 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12606
12618
  window.removeEventListener("blur", e), window.removeEventListener("focus", n);
12607
12619
  };
12608
12620
  }, []), e;
12609
- }, z_ = Infinity, B_ = ({ messages: e, app: t }) => {
12610
- let [n, r] = J(!1), [i, a] = J(!1), o = L_(n || i), s = R_(), c = z();
12621
+ }, U_ = Infinity, W_ = ({ messages: e, app: t }) => {
12622
+ let [n, r] = J(!1), [i, a] = J(!1), o = V_(n || i), s = H_(), c = R();
12611
12623
  return /* @__PURE__ */ X("div", {
12612
12624
  className: "pointer-events-none fixed z-[1260] flex flex-col-reverse items-center overflow-y-auto overflow-x-hidden py-6",
12613
12625
  style: o,
12614
12626
  children: /* @__PURE__ */ Z("div", {
12615
12627
  className: "flex w-[calc(100%-2rem)] shrink-0 flex-col gap-3 sm:w-96",
12616
- children: [/* @__PURE__ */ X(Ag, {
12628
+ children: [/* @__PURE__ */ X(Pg, {
12617
12629
  toastManager: e.manager,
12618
- limit: z_,
12619
- children: /* @__PURE__ */ X(F_, {
12630
+ limit: U_,
12631
+ children: /* @__PURE__ */ X(z_, {
12620
12632
  label: c.toasts.messages,
12621
12633
  isWindowBlurred: s,
12622
12634
  stackRef: e.stackRef,
12623
12635
  onHasToastsChange: r
12624
12636
  })
12625
- }), /* @__PURE__ */ X(Ag, {
12637
+ }), /* @__PURE__ */ X(Pg, {
12626
12638
  toastManager: t.manager,
12627
- limit: z_,
12628
- children: /* @__PURE__ */ X(F_, {
12639
+ limit: U_,
12640
+ children: /* @__PURE__ */ X(z_, {
12629
12641
  label: c.notifications,
12630
12642
  isWindowBlurred: s,
12631
12643
  stackRef: t.stackRef,
@@ -12634,16 +12646,16 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12634
12646
  })]
12635
12647
  })
12636
12648
  });
12637
- }, V_ = ({ children: e, portalTargets: t = {
12649
+ }, G_ = ({ children: e, portalTargets: t = {
12638
12650
  mobile: "#f0-overlay-root",
12639
12651
  desktop: "#f0-overlay-root"
12640
12652
  } }) => {
12641
- let n = q(null), r = Dc(Je.subscribeRenderer, Je.getActiveRendererId, () => null);
12653
+ let n = q(null), r = Dc(Ye.subscribeRenderer, Ye.getActiveRendererId, () => null);
12642
12654
  G(function() {
12643
- let { id: e, release: t } = Je.acquireRenderer();
12655
+ let { id: e, release: t } = Ye.acquireRenderer();
12644
12656
  return n.current = e, t;
12645
12657
  }, []);
12646
- let i = r !== null && r === n.current, a = Sg(), [o, s] = J(null), [c, l] = J(0), u = q(null);
12658
+ let i = r !== null && r === n.current, a = Eg(), [o, s] = J(null), [c, l] = J(0), u = q(null);
12647
12659
  return G(function() {
12648
12660
  if (typeof document > "u") return;
12649
12661
  let e = a ? t?.mobile || "body" : t?.desktop || "body", n = document.querySelector(e) ?? document.body;
@@ -12652,13 +12664,13 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12652
12664
  a,
12653
12665
  t?.mobile,
12654
12666
  t?.desktop
12655
- ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? kc(/* @__PURE__ */ X(vc, { children: /* @__PURE__ */ X(B_, {
12656
- messages: Kt,
12657
- app: xt
12667
+ ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? kc(/* @__PURE__ */ X(vc, { children: /* @__PURE__ */ X(W_, {
12668
+ messages: qt,
12669
+ app: St
12658
12670
  }) }, c), o) : null, e] });
12659
- }, H_ = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1, newButtonStyles: u = !1 }) => /* @__PURE__ */ X(d, {
12671
+ }, K_ = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1, newButtonStyles: u = !1 }) => /* @__PURE__ */ X(d, {
12660
12672
  reducedMotion: "user",
12661
- children: /* @__PURE__ */ X(pn, {
12673
+ children: /* @__PURE__ */ X(mn, {
12662
12674
  isDev: s,
12663
12675
  showExperimentalWarnings: c,
12664
12676
  renderDataTestIdAttribute: l,
@@ -12666,11 +12678,11 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12666
12678
  newButtonStyles: u,
12667
12679
  children: /* @__PURE__ */ X(Ds, {
12668
12680
  ...a,
12669
- children: /* @__PURE__ */ X(mn, {
12681
+ children: /* @__PURE__ */ X(hn, {
12670
12682
  ...i,
12671
12683
  children: /* @__PURE__ */ X(ir, {
12672
12684
  ...t,
12673
- children: /* @__PURE__ */ X(Qa, { children: /* @__PURE__ */ X(qt, {
12685
+ children: /* @__PURE__ */ X(Qa, { children: /* @__PURE__ */ X(Jt, {
12674
12686
  initiallyEnabled: n,
12675
12687
  children: /* @__PURE__ */ X(ro, {
12676
12688
  ...r,
@@ -12681,11 +12693,11 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12681
12693
  })
12682
12694
  })
12683
12695
  })
12684
- }), U_ = yc(null), W_ = ({ children: e, fullScreen: t = !0 }) => {
12696
+ }), q_ = yc(null), J_ = ({ children: e, fullScreen: t = !0 }) => {
12685
12697
  let n = q(null), [r, i] = J(n.current);
12686
12698
  return rr(() => {
12687
12699
  i(n.current);
12688
- }, []), /* @__PURE__ */ X(U_.Provider, {
12700
+ }, []), /* @__PURE__ */ X(q_.Provider, {
12689
12701
  value: { element: r },
12690
12702
  children: /* @__PURE__ */ Z("div", {
12691
12703
  ref: n,
@@ -12697,7 +12709,7 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12697
12709
  })]
12698
12710
  })
12699
12711
  });
12700
- }, G_ = yc(void 0), K_ = () => Cc(G_), q_ = ({ children: e, layout: t, link: n, privacyModeInitiallyEnabled: r, image: i, i18n: a, l10n: o, hourCycle: s, isDev: c = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: u = !1, renderDataTestIdAttribute: d = !1, newButtonStyles: f = !1, formComponent: p, map: m }) => /* @__PURE__ */ X(H_, {
12712
+ }, Y_ = yc(void 0), X_ = () => Cc(Y_), Z_ = ({ children: e, layout: t, link: n, privacyModeInitiallyEnabled: r, image: i, i18n: a, l10n: o, hourCycle: s, isDev: c = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: u = !1, renderDataTestIdAttribute: d = !1, newButtonStyles: f = !1, formComponent: p, map: m }) => /* @__PURE__ */ X(K_, {
12701
12713
  link: n,
12702
12714
  privacyModeInitiallyEnabled: r,
12703
12715
  image: i,
@@ -12708,20 +12720,20 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12708
12720
  showExperimentalWarnings: u,
12709
12721
  renderDataTestIdAttribute: d,
12710
12722
  newButtonStyles: f,
12711
- children: /* @__PURE__ */ X(W_, {
12723
+ children: /* @__PURE__ */ X(J_, {
12712
12724
  ...t,
12713
12725
  children: /* @__PURE__ */ X(Xi, {
12714
12726
  handler: l,
12715
- children: /* @__PURE__ */ X(ma, { children: /* @__PURE__ */ X(ft, {
12727
+ children: /* @__PURE__ */ X(ma, { children: /* @__PURE__ */ X(pt, {
12716
12728
  ...m,
12717
- children: /* @__PURE__ */ X(G_.Provider, {
12729
+ children: /* @__PURE__ */ X(Y_.Provider, {
12718
12730
  value: p,
12719
- children: /* @__PURE__ */ X(Mu, { children: /* @__PURE__ */ X(V_, {
12731
+ children: /* @__PURE__ */ X(Mu, { children: /* @__PURE__ */ X(G_, {
12720
12732
  portalTargets: {
12721
12733
  mobile: "#f0-overlay-root",
12722
12734
  desktop: "#f0-overlay-root"
12723
12735
  },
12724
- children: /* @__PURE__ */ X(Pu, { children: /* @__PURE__ */ X(Ht, { children: e }) })
12736
+ children: /* @__PURE__ */ X(Pu, { children: /* @__PURE__ */ X(Ut, { children: e }) })
12725
12737
  }) })
12726
12738
  })
12727
12739
  }) })
@@ -12729,4 +12741,4 @@ var y_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
12729
12741
  })
12730
12742
  });
12731
12743
  //#endregion
12732
- export { Oa as AiChatTranslationsProvider, tn as AreaChart, Do as Await, we as BarChart, ut as BarChartSkeleton, jt as CardSelectableContainer, b as CategoryBarChart, $i as ChatSpinner, Mo as Chip, Ba as CollapsibleGroup, g as ComboChart, Nt as DATA_COLLECTION_URL_PARAMS, Et as DATA_COLLECTION_URL_PARAM_PREFIX, jl as Dashboard, p as DataChartEmptyStateView, dn as DataTestIdWrapper, Ye as DndProvider, oa as DropOverlay, Yn as EmojiImage, lu as F0Accordion, Vt as F0ActionBar, Ci as F0ActionItem, Br as F0AiChat, ka as F0AiChatCreditsButton, La as F0AiChatHeader, Pa as F0AiChatHistory, Xr as F0AiChatProvider, ha as F0AiChatTextArea, Sa as F0AiChatUsageLimitsButton, wa as F0AiFileAttachments, zr as F0AiFilePreviewsProvider, Di as F0AiFormRegistryProvider, Ra as F0AiInsightCard, Ea as F0AiMask, Aa as F0AiMessageSources, fa as F0AiMessagesContainer, jr as F0AiPong, Wa as F0AiProcessingOverlay, ja as F0AiProposalCard, Ga as F0AiTableCard, uc as F0Alert, bg as F0AnalyticsDashboard, Ii as F0AudioPlayer, Ir as F0AudioPlayerCard, Ma as F0AuraVoiceAnimation, uo as F0Avatar, Hi as F0AvatarAlert, so as F0AvatarCompany, ar as F0AvatarDate, So as F0AvatarEmoji, Co as F0AvatarFile, fo as F0AvatarIcon, go as F0AvatarList, oo as F0AvatarModule, po as F0AvatarPerson, _o as F0AvatarTeam, $l as F0BigNumber, um as F0BookAMeetingCard, ao as F0Box, V as F0Button, hi as F0ButtonDropdown, Rs as F0ButtonToggle, Ia as F0CanvasCard, Zi as F0CanvasPanel, Ei as F0Card, fr as F0CardRow, Xa as F0ChatComposer, us as F0Checkbox, pu as F0ChipList, Ka as F0ClarifyingPanel, Ct as F0DataChart, M as F0DatePicker, Pt as F0DatePickerInline, om as F0DemoCard, Tr as F0Dialog, Te as F0DialogAlikeContext, Ae as F0DialogAlikeProvider, Lo as F0DialogContext, ts as F0DialogProvider, pc as F0DocumentViewer, bu as F0Drawer, _e as F0DurationInput, Is as F0EventCatcherProvider, cm as F0FAQCard, Ui as F0FileItem, Cu as F0FilterPickerContent, m as F0Form, Lu as F0FormField, xl as F0GridStack, Na as F0HILActionConfirmation, v as F0Heading, H as F0Icon, lr as F0Link, lm as F0ModuleCard, nn as F0NotesTextEditor, ye as F0NotesTextEditorSkeleton, A as F0NumberInput, S as F0NumberInputInline, Oi as F0OneIcon, Wi as F0OneSwitch, dc as F0PdfViewer, q_ as F0Provider, dm as F0QuestionCardMultiStep, ni as F0RichTextDisplay, ae as F0RichTextEditor, ms as F0SearchInput, As as F0Select, ne as F0SelectInline, Cd as F0Slider, zd as F0TableOfContentPopover, Uo as F0TagAlert, No as F0TagBalance, Ko as F0TagCompany, Ho as F0TagDot, ps as F0TagList, Vo as F0TagPerson, To as F0TagRaw, ko as F0TagStatus, gs as F0TagTeam, lc as F0Text, oe as F0TextAreaInput, re as F0TextAreaInputInline, Rr as F0TextInput, gt as F0TextInputInline, Se as F0TimelineRow, hc as F0VideoPlayer, od as F0WizardForm, ds as F1SearchBox, x as FILE_TYPES, Ni as FileItem, ma as FormCardValueFormatterProvider, st as FunnelChartSkeleton, lo as GROUP_ID_SYMBOL, bo as GROUP_KEY_SEPARATOR, ze as GaugeChartSkeleton, Zt as HeatmapChartSkeleton, ql as HomeLayout, be as InlineFieldRow, f as InlineFieldRowList, Gr as Input, Wl as Layout, ue as LineChart, cn as LineChartSkeleton, dt as MAX_URL_FILTER_VALUES, u as NotesTextEditor, $t as NotesTextEditorSkeleton, te as NumberInput, ns as OneCalendar, tr as OneEllipsis, pe as OneEmptyState, Es as OneFilterPicker, bt as PieChart, Ke as PieChartSkeleton, ii as PongBall, qt as PrivacyModeProvider, qp as ProductBlankslate, Yt as ProductCard, Xp as ProductModal, Qp as ProductWidget, s as ProgressBarChart, _t as RadarChart, an as RadarChartSkeleton, cr as RichTextDisplay, de as RichTextEditor, xe as ScatterChartSkeleton, Gl as StandardLayout, pp as SurveyAllQuestionsLoadingSkeleton, Rp as SurveyAnsweringForm, ap as SurveyFormBuilder, Vp as SurveySampleQuestion, mp as SurveySteppedLoadingSkeleton, vs as Tag, rs as TagCounter, fe as Textarea, Ua as ThreadItem, Da as ThreadListSkeleton, V_ as ToastProvider, Kl as TwoColumnLayout, k as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, tm as UpsellingAlert, rm as UpsellingBanner, C as UpsellingButton, am as UpsellingPopover, ie as VerticalBarChart, as as WeekStartDay, _a as WelcomeScreenCardsRow, Xe as actionBarStatuses, Ta as actionItemStatuses, aa as adaptDataAdapterToInfiniteScroll, ua as aiChatFileFromShowFilesItem, Fa as aiChatFileFromUploadedFile, va as aiChatFilesFromMessage, ya as aiChatMessageText, Ca as aiTranslations, gu as alertVariantOptions, ru as audioPlayerSizes, Jl as avatarVariants, ct as buildDataCollectionUrlParams, fn as buildTranslations, nu as buttonDropdownModes, tu as buttonDropdownSizes, eu as buttonDropdownVariants, Dl as buttonSizes, Rt as buttonToggleColors, mt as buttonToggleSizes, He as buttonToggleVariants, El as buttonVariants, uu as cardAlertVariants, ci as cardImageAspectRatios, hr as cardImageFits, ta as cardImageSizes, Oo as chartColorTokens, Ao as chipVariants, Wd as computeSectionEndIds, mc as configurePdfWorker, Va as contentTypes, St as createAtlaskitDriver, Po as createDataSourceDefinition, Du as createF0FormDefinitionTester, Eu as createF0FormTester, wl as createPageLayoutBlock, Tl as createPageLayoutBlockGroup, ga as createPersonMentionSource, _u as dataCollectionLocalStorageHandler, mu as datePickerInlineDismissReasons, hu as datepickerSizes, no as defaultTranslations, ra as defineAvailableForm, wu as describeFormSchema, E as dialog, E as dialogs, ee as drawers, mr as durationInputSizes, gi as durationUnits, h as evaluateRenderIf, hn as experimental, ji as f0FileItemSizes, ur as f0FormField, Pr as fieldsToSeconds, Bd as flattenElements, pr as formatPlaybackTime, fd as forms, Ce as generateAnchorId, Qo as getAnimationVariants, Vi as getDataCollectionStorageKey, Ro as getDataSourcePaginationType, er as getEmojiLabel, Li as getF0Config, Ps as getGranularityDefinition, Ss as getGranularityDefinitions, zs as getGranularitySimpleDefinition, le as getSchemaDefinition, Os as granularityDefinitions, Lr as hasF0Config, Ur as inferFieldType, Ud as injectSectionEnds, vo as isInfiniteScrollPagination, yo as isPageBasedPagination, $r as isZodType, iu as linkVariants, xa as markdownRenderers, Ji as mergeDataCollectionFilters, ho as modules, da as oneIconSizes, Be as parseDataCollectionUrlParams, fc as pdfScales, kt as predefinedPresets, Ns as rangeSeparator, Pi as readDataCollectionStorage, Hd as reconstructElements, wi as resolveDataCollectionFilters, hs as resolveGranularityDefinition, Gt as resolveItemNeighbors, n as resolveWindowNeighbors, si as secondsToFields, la as secondsToVisibleFields, pd as selectInlineDismissReasons, Fe as selectSizes, Me as selectVariants, Qt as setDataCollectionUrlParams, md as sliderTooltipModes, ln as syncDataCollectionUrlParams, Dd as tagDotColors, Td as timelineRowApproverStatuses, wd as timelineRowStatuses, Ed as timelineRowTagVariants, zt as toasts, kr as unwrapZodSchema, za as usageLimitsPopoverSides, Fi as useAiChat, Ja as useAiChatTranslations, ca as useAudioPlayer, Ya as useCanvasEntity, Ha as useChatHistory, mo as useData, Ts as useDataSource, he as useDataSourceItemNavigation, oi as useDerivedTranscription, Ve as useDndEvents, At as useDraggable, Bt as useDroppableList, Qn as useEmojiConfetti, li as useF0AiFormRegistry, es as useF0Dialog, w as useF0DialogAlikeContext, rn as useF0Form, Wt as useF0FormDefinition, pa as useFormCardValueFormatter, K_ as useFormComponent, $o as useGroups, xg as useIsDesktop, Sg as useIsMobile, rt as useItemNeighbors, $e as usePrivacyMode, Xn as useReducedMotion, yt as useSchemaDefinition, Fo as useSelectable, ba as useSetFormCardValueFormatter, qa as useToolCallId, Za as useXRay, R as withDataTestId, qe as writeDataCollectionStorage };
12744
+ export { Oa as AiChatTranslationsProvider, nn as AreaChart, Do as Await, Te as BarChart, dt as BarChartSkeleton, Mt as CardSelectableContainer, b as CategoryBarChart, $i as ChatSpinner, Mo as Chip, Ba as CollapsibleGroup, g as ComboChart, Pt as DATA_COLLECTION_URL_PARAMS, Dt as DATA_COLLECTION_URL_PARAM_PREFIX, jl as Dashboard, p as DataChartEmptyStateView, fn as DataTestIdWrapper, Xe as DndProvider, oa as DropOverlay, Yn as EmojiImage, lu as F0Accordion, Ht as F0ActionBar, Ci as F0ActionItem, Br as F0AiChat, ka as F0AiChatCreditsButton, La as F0AiChatHeader, Pa as F0AiChatHistory, Xr as F0AiChatProvider, ha as F0AiChatTextArea, Sa as F0AiChatUsageLimitsButton, wa as F0AiFileAttachments, zr as F0AiFilePreviewsProvider, Di as F0AiFormRegistryProvider, Ra as F0AiInsightCard, Ea as F0AiMask, Aa as F0AiMessageSources, fa as F0AiMessagesContainer, jr as F0AiPong, Wa as F0AiProcessingOverlay, ja as F0AiProposalCard, Ga as F0AiTableCard, uc as F0Alert, wg as F0AnalyticsDashboard, Ii as F0AudioPlayer, Ir as F0AudioPlayerCard, Ma as F0AuraVoiceAnimation, uo as F0Avatar, Hi as F0AvatarAlert, so as F0AvatarCompany, ar as F0AvatarDate, So as F0AvatarEmoji, Co as F0AvatarFile, fo as F0AvatarIcon, go as F0AvatarList, oo as F0AvatarModule, po as F0AvatarPerson, _o as F0AvatarTeam, $l as F0BigNumber, mm as F0BookAMeetingCard, ao as F0Box, V as F0Button, hi as F0ButtonDropdown, Rs as F0ButtonToggle, Ia as F0CanvasCard, Zi as F0CanvasPanel, Ei as F0Card, fr as F0CardRow, Xa as F0ChatComposer, us as F0Checkbox, pu as F0ChipList, Ka as F0ClarifyingPanel, wt as F0DataChart, M as F0DatePicker, Ft as F0DatePickerInline, um as F0DemoCard, Tr as F0Dialog, Ee as F0DialogAlikeContext, je as F0DialogAlikeProvider, Lo as F0DialogContext, ts as F0DialogProvider, pc as F0DocumentViewer, bu as F0Drawer, ve as F0DurationInput, Is as F0EventCatcherProvider, fm as F0FAQCard, Ui as F0FileItem, Cu as F0FilterPickerContent, m as F0Form, Lu as F0FormField, xl as F0GridStack, Na as F0HILActionConfirmation, v as F0Heading, H as F0Icon, lr as F0Link, pm as F0ModuleCard, rn as F0NotesTextEditor, be as F0NotesTextEditorSkeleton, A as F0NumberInput, S as F0NumberInputInline, Oi as F0OneIcon, Wi as F0OneSwitch, dc as F0PdfViewer, Z_ as F0Provider, hm as F0QuestionCardMultiStep, ni as F0RichTextDisplay, oe as F0RichTextEditor, ms as F0SearchInput, As as F0Select, re as F0SelectInline, Cd as F0Slider, zd as F0TableOfContentPopover, Uo as F0TagAlert, No as F0TagBalance, Ko as F0TagCompany, Ho as F0TagDot, ps as F0TagList, Vo as F0TagPerson, To as F0TagRaw, ko as F0TagStatus, gs as F0TagTeam, lc as F0Text, se as F0TextAreaInput, ie as F0TextAreaInputInline, Rr as F0TextInput, _t as F0TextInputInline, Ce as F0TimelineRow, hc as F0VideoPlayer, od as F0WizardForm, ds as F1SearchBox, x as FILE_TYPES, Ni as FileItem, ma as FormCardValueFormatterProvider, ct as FunnelChartSkeleton, lo as GROUP_ID_SYMBOL, bo as GROUP_KEY_SEPARATOR, Be as GaugeChartSkeleton, Qt as HeatmapChartSkeleton, ql as HomeLayout, xe as InlineFieldRow, f as InlineFieldRowList, Gr as Input, Wl as Layout, de as LineChart, ln as LineChartSkeleton, ft as MAX_URL_FILTER_VALUES, u as NotesTextEditor, en as NotesTextEditorSkeleton, te as NumberInput, ns as OneCalendar, tr as OneEllipsis, me as OneEmptyState, Es as OneFilterPicker, xt as PieChart, qe as PieChartSkeleton, ii as PongBall, Jt as PrivacyModeProvider, Zp as ProductBlankslate, Xt as ProductCard, em as ProductModal, nm as ProductWidget, s as ProgressBarChart, vt as RadarChart, on as RadarChartSkeleton, cr as RichTextDisplay, fe as RichTextEditor, Se as ScatterChartSkeleton, Gl as StandardLayout, pp as SurveyAllQuestionsLoadingSkeleton, Hp as SurveyAnsweringForm, ap as SurveyFormBuilder, Gp as SurveySampleQuestion, mp as SurveySteppedLoadingSkeleton, vs as Tag, rs as TagCounter, pe as Textarea, Ua as ThreadItem, Da as ThreadListSkeleton, G_ as ToastProvider, Kl as TwoColumnLayout, k as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, am as UpsellingAlert, sm as UpsellingBanner, C as UpsellingButton, lm as UpsellingPopover, ae as VerticalBarChart, as as WeekStartDay, _a as WelcomeScreenCardsRow, Ze as actionBarStatuses, Ta as actionItemStatuses, aa as adaptDataAdapterToInfiniteScroll, ua as aiChatFileFromShowFilesItem, Fa as aiChatFileFromUploadedFile, va as aiChatFilesFromMessage, ya as aiChatMessageText, Ca as aiTranslations, gu as alertVariantOptions, ru as audioPlayerSizes, Jl as avatarVariants, lt as buildDataCollectionUrlParams, pn as buildTranslations, nu as buttonDropdownModes, tu as buttonDropdownSizes, eu as buttonDropdownVariants, Dl as buttonSizes, zt as buttonToggleColors, ht as buttonToggleSizes, Ue as buttonToggleVariants, El as buttonVariants, uu as cardAlertVariants, ci as cardImageAspectRatios, hr as cardImageFits, ta as cardImageSizes, Oo as chartColorTokens, Ao as chipVariants, Wd as computeSectionEndIds, mc as configurePdfWorker, Va as contentTypes, Ct as createAtlaskitDriver, Po as createDataSourceDefinition, Du as createF0FormDefinitionTester, Eu as createF0FormTester, wl as createPageLayoutBlock, Tl as createPageLayoutBlockGroup, ga as createPersonMentionSource, _u as dataCollectionLocalStorageHandler, mu as datePickerInlineDismissReasons, hu as datepickerSizes, no as defaultTranslations, ra as defineAvailableForm, wu as describeFormSchema, E as dialog, E as dialogs, ee as drawers, mr as durationInputSizes, gi as durationUnits, h as evaluateRenderIf, gn as experimental, ji as f0FileItemSizes, ur as f0FormField, Pr as fieldsToSeconds, Bd as flattenElements, pr as formatPlaybackTime, fd as forms, we as generateAnchorId, Qo as getAnimationVariants, Vi as getDataCollectionStorageKey, Ro as getDataSourcePaginationType, er as getEmojiLabel, Li as getF0Config, Ps as getGranularityDefinition, Ss as getGranularityDefinitions, zs as getGranularitySimpleDefinition, ue as getSchemaDefinition, Os as granularityDefinitions, Lr as hasF0Config, Ur as inferFieldType, Ud as injectSectionEnds, vo as isInfiniteScrollPagination, yo as isPageBasedPagination, $r as isZodType, iu as linkVariants, xa as markdownRenderers, Ji as mergeDataCollectionFilters, ho as modules, da as oneIconSizes, Ve as parseDataCollectionUrlParams, fc as pdfScales, At as predefinedPresets, Ns as rangeSeparator, Pi as readDataCollectionStorage, Hd as reconstructElements, wi as resolveDataCollectionFilters, hs as resolveGranularityDefinition, Kt as resolveItemNeighbors, n as resolveWindowNeighbors, si as secondsToFields, la as secondsToVisibleFields, pd as selectInlineDismissReasons, Ie as selectSizes, Ne as selectVariants, $t as setDataCollectionUrlParams, md as sliderTooltipModes, un as syncDataCollectionUrlParams, Dd as tagDotColors, Td as timelineRowApproverStatuses, wd as timelineRowStatuses, Ed as timelineRowTagVariants, Bt as toasts, kr as unwrapZodSchema, za as usageLimitsPopoverSides, Fi as useAiChat, Ja as useAiChatTranslations, ca as useAudioPlayer, Ya as useCanvasEntity, Ha as useChatHistory, mo as useData, Ts as useDataSource, ge as useDataSourceItemNavigation, oi as useDerivedTranscription, He as useDndEvents, jt as useDraggable, Vt as useDroppableList, Qn as useEmojiConfetti, li as useF0AiFormRegistry, es as useF0Dialog, w as useF0DialogAlikeContext, an as useF0Form, Gt as useF0FormDefinition, pa as useFormCardValueFormatter, X_ as useFormComponent, $o as useGroups, Tg as useIsDesktop, Eg as useIsMobile, it as useItemNeighbors, et as usePrivacyMode, Xn as useReducedMotion, bt as useSchemaDefinition, Fo as useSelectable, ba as useSetFormCardValueFormatter, qa as useToolCallId, Za as useXRay, L as withDataTestId, Je as writeDataCollectionStorage };