@factorialco/f0-react 10.3.0 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{ChatPdfThumbnail-DqDlq968.js → ChatPdfThumbnail-BcB8BFAo.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-C60Sf8_Z.js → ChatPostComposerDialog-DpVmittj.js} +2 -2
  3. package/dist/{CoachmarkProvider-C5oGQXjG.js → CoachmarkProvider-B5ciI6gR.js} +12 -17
  4. package/dist/{DocumentToolbar-BD_ojqNU.js → DocumentToolbar-D_Hxbc_D.js} +3 -3
  5. package/dist/{DocxViewer-CkChM-Uy.js → DocxViewer-CVGAzLmU.js} +1 -1
  6. package/dist/{F0AiProcessingOverlay-DG8k4r_C.js → F0AiProcessingOverlay-BXmzGEmi.js} +2 -2
  7. package/dist/{F0CanvasPanel-DPZuwpCH.js → F0CanvasPanel-C7vHU_iJ.js} +1 -1
  8. package/dist/{F0DocumentViewer-B5Dg9lXU.js → F0DocumentViewer-BQCW-WqC.js} +4 -4
  9. package/dist/F0DocumentViewer-DmypZ_lC.js +3 -0
  10. package/dist/{F0Map-_BaWR-ps.js → F0Map-6nNKQ0OZ.js} +3 -3
  11. package/dist/{F0Select-C2DfYj6F.js → F0Select-CovHF33V.js} +1 -0
  12. package/dist/F0VideoPlayer-B5R8MIiN.js +1 -0
  13. package/dist/{F0VideoPlayer-pxkf5e3n.js → F0VideoPlayer-CHCDLaVw.js} +2 -2
  14. package/dist/{Map-D-WjFPbm.js → Map-BMUPE5wX.js} +3 -3
  15. package/dist/{SheetViewer-CJaefeTf.js → SheetViewer-B8kBlT00.js} +3 -3
  16. package/dist/{TextViewer-B5r7KKYy.js → TextViewer-DOHOHITw.js} +1 -1
  17. package/dist/ai.js +2 -2
  18. package/dist/component-status.js +1 -1
  19. package/dist/experimental.d.ts +104 -13
  20. package/dist/experimental.js +4280 -4034
  21. package/dist/f0.js +464 -450
  22. package/dist/{maplibre-Dk4ZfhFX.js → maplibre-CUHfatAR.js} +1 -1
  23. package/dist/{pdfWorker-EpQTUdwI.js → pdfWorker-BKuO7yxP.js} +2 -2
  24. package/dist/styles.css +1 -1
  25. package/package.json +1 -1
  26. package/dist/F0DocumentViewer-DocVnJCP.js +0 -3
  27. package/dist/F0VideoPlayer-CyYSaFk2.js +0 -1
package/dist/f0.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
- import { $n as t, $t as n, A as r, An as i, Ar as a, Bn as o, Br as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, E as m, En as h, F as g, Fn as _, Fr as v, Ft as y, Gt as b, Hn as x, Hr as S, Ht as C, In as w, Ir as T, It as E, Jn as D, Jr as O, Jt as k, Kn as A, Kt as j, Ln as M, Lr as N, Lt as P, M as F, Mn as ee, Mr as te, N as ne, Nn as re, Nr as I, O as ie, On as ae, P as oe, Pn as se, Q as ce, Qn as le, Qt as ue, Rn as de, Rr as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Un as ye, Ur as be, Ut as xe, Vn as Se, Vr as Ce, Wn as we, Wt as Te, Xn as Ee, Xt as De, Yn as Oe, Yr as ke, Yt as Ae, Z as je, Zn as Me, _ as Ne, _n as Pe, _r as Fe, _t as Ie, ar as Le, b as Re, bn as ze, br as Be, bt as Ve, c as He, cn as Ue, cr as We, d as Ge, dn as Ke, dr as qe, dt as Je, er as Ye, f as Xe, fn as Ze, fr as Qe, g as $e, gn as et, gr as tt, gt as nt, h as rt, hn as it, hr as at, i as ot, in as st, ir as ct, j as lt, jn as ut, jr as dt, k as ft, kn as pt, kr as mt, l as ht, ln as gt, lr as _t, mn as vt, mr as yt, ni as bt, nn as xt, nr as St, oi as Ct, or as wt, p as Tt, pn as Et, pr as Dt, qn as Ot, qr as kt, qt as At, ri as jt, rn as Mt, rr as Nt, s as Pt, sn as Ft, sr as It, st as Lt, t as Rt, ti as zt, tn as Bt, tr as Vt, u as Ht, un as Ut, ur as Wt, v as Gt, vn as Kt, vr as qt, vt as Jt, wn as Yt, x as Xt, xn as Zt, xt as Qt, y as $t, yn as en, yr as tn, yt as nn, zn as rn, zt as an } from "./CoachmarkProvider-C5oGQXjG.js";
2
+ import { $n as t, $t as n, A as r, An as i, Bn as a, Bt as o, C as s, Cn as c, Ct as l, D as u, Dn as d, E as f, En as p, F as m, Fn as h, Ft as g, Gt as _, Hn as v, Hr as y, Ht as b, In as x, Ir as S, It as C, Jn as w, Jr as T, Jt as E, Kn as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, Mr as P, N as F, Nn as ee, Nr as te, O as ne, On as I, P as re, Pn as ie, Pr as ae, Q as oe, Qn as se, Qt as ce, Rn as le, Rr as ue, Rt as de, S as fe, Sn as pe, St as me, T as he, Tn as ge, Un as _e, Ur as ve, Ut as ye, Vn as be, Vr as xe, Wn as Se, Wr as Ce, Wt as we, Xn as Te, Xr as Ee, Xt as De, Yn as Oe, Yr as ke, Yt as Ae, Z as je, Zn as Me, _ as Ne, _n as Pe, _r as Fe, _t as Ie, ar as Le, b as Re, bn as ze, br as Be, bt as Ve, c as He, cn as Ue, cr as We, d as Ge, dn as Ke, dr as qe, dt as Je, er as Ye, f as Xe, fn as Ze, fr as Qe, g as $e, gn as et, gr as tt, gt as nt, h as rt, hn as it, hr as at, i as ot, ii as st, in as ct, ir as lt, j as ut, jn as dt, jr as ft, k as pt, kn as mt, kr as ht, l as gt, ln as _t, lr as vt, mn as yt, mr as bt, ni as xt, nn as St, nr as Ct, or as wt, p as Tt, pn as Et, pr as Dt, qn as Ot, qt as kt, ri as At, rn as jt, rr as Mt, s as Nt, si as Pt, sn as Ft, sr as It, st as Lt, t as Rt, tn as zt, tr as Bt, u as Vt, un as Ht, ur as Ut, v as Wt, vn as Gt, vr as Kt, vt as qt, wn as Jt, x as Yt, xn as Xt, xt as Zt, y as Qt, yn as $t, yr as en, yt as tn, zn as nn, zr as rn, zt as an } from "./CoachmarkProvider-B5ciI6gR.js";
3
3
  import { A as on, At as sn, B as cn, Dt as ln, F as un, It as dn, Jt as fn, Lt as pn, M as mn, Mt as hn, N as gn, P as _n, R as vn, U as yn, V as bn, Vt as xn, Xt as Sn, Yt as Cn, Zn as wn, _t as Tn, a as En, an as Dn, ar as L, b as R, cn as On, ct as kn, dn as An, gn as jn, gt as Mn, hn as Nn, ht as Pn, i as Fn, in as z, ir as In, j as Ln, jt as Rn, kt as zn, ln as B, lt as Bn, nn as Vn, nt as Hn, on as Un, or as Wn, pt as Gn, qt as Kn, rn as V, rr as qn, sn as Jn, t as Yn, tn as Xn, ut as Zn, vt as Qn, yt as $n, z as er } from "./popover-B2hEEubt.js";
4
4
  import { A as tr, C as nr, D as rr, E as ir, F as ar, I as H, L as or, M as sr, N as cr, O as lr, P as ur, S as dr, _ as fr, b as pr, c as mr, d as hr, f as gr, g as _r, h as vr, j as yr, k as br, m as xr, p as Sr, s as Cr, v as wr, x as Tr, y as Er } from "./tooltip-TOvfXq9F.js";
5
5
  import { n as Dr, t as Or } from "./F0Box-D0fWIRgc.js";
6
- import { A as kr, C as Ar, D as jr, E as Mr, M as Nr, N as Pr, O as Fr, P as Ir, S as Lr, T as Rr, _ as zr, a as Br, b as Vr, c as Hr, d as Ur, f as Wr, g as Gr, h as Kr, i as qr, j as Jr, k as Yr, l as Xr, m as Zr, n as Qr, o as $r, p as ei, r as ti, s as ni, t as ri, u as ii, v as ai, w as oi, x as si, y as ci } from "./F0AiProcessingOverlay-DG8k4r_C.js";
7
- import { $ as li, $i as ui, Ao as di, B as fi, Cn as pi, En as mi, F as hi, Fn as gi, Go as _i, Gt as vi, Hi as yi, Hn as bi, Ho as xi, I as Si, Ii as Ci, In as wi, Jn as Ti, Jt as Ei, Kn as Di, Ko as Oi, Kt as ki, L as Ai, Li as ji, Mi, N as Ni, On as Pi, Oo as Fi, P as Ii, Pi as Li, Pn as Ri, Po as zi, Q as Bi, Qi as Vi, Qn as Hi, Qt as Ui, Ra as Wi, Ri as Gi, Rn as Ki, Sa as qi, Sn as Ji, Ui as Yi, Un as Xi, Uo as Zi, Ut as Qi, V as $i, Vn as ea, Vo as ta, Wa as na, Wo as ra, Wt as ia, X as aa, Y as oa, Yn as sa, Yo as ca, Yt as la, Z as ua, Za as da, Zt as fa, _ as pa, _n as ma, aa as ha, an as ga, b as _a, bi as va, co as ya, da as ba, eo as xa, es as Sa, et as Ca, f as wa, g as Ta, h as Ea, in as Da, j as Oa, ls as ka, m as Aa, ma as ja, n as Ma, nn as Na, on as Pa, os as Fa, p as Ia, pa as La, po as Ra, qn as za, qo as Ba, qt as Va, rn as Ha, ro as Ua, sa as Wa, sn as Ga, so as Ka, t as qa, to as Ja, tt as Ya, ui as Xa, v as Za, vn as Qa, wn as $a, x as eo, xi as to, y as no, z as ro, zn as io } from "./F0CanvasPanel-DPZuwpCH.js";
6
+ import { A as kr, C as Ar, D as jr, E as Mr, M as Nr, N as Pr, O as Fr, P as Ir, S as Lr, T as Rr, _ as zr, a as Br, b as Vr, c as Hr, d as Ur, f as Wr, g as Gr, h as Kr, i as qr, j as Jr, k as Yr, l as Xr, m as Zr, n as Qr, o as $r, p as ei, r as ti, s as ni, t as ri, u as ii, v as ai, w as oi, x as si, y as ci } from "./F0AiProcessingOverlay-BXmzGEmi.js";
7
+ import { $ as li, $i as ui, Ao as di, B as fi, Cn as pi, En as mi, F as hi, Fn as gi, Go as _i, Gt as vi, Hi as yi, Hn as bi, Ho as xi, I as Si, Ii as Ci, In as wi, Jn as Ti, Jt as Ei, Kn as Di, Ko as Oi, Kt as ki, L as Ai, Li as ji, Mi, N as Ni, On as Pi, Oo as Fi, P as Ii, Pi as Li, Pn as Ri, Po as zi, Q as Bi, Qi as Vi, Qn as Hi, Qt as Ui, Ra as Wi, Ri as Gi, Rn as Ki, Sa as qi, Sn as Ji, Ui as Yi, Un as Xi, Uo as Zi, Ut as Qi, V as $i, Vn as ea, Vo as ta, Wa as na, Wo as ra, Wt as ia, X as aa, Y as oa, Yn as sa, Yo as ca, Yt as la, Z as ua, Za as da, Zt as fa, _ as pa, _n as ma, aa as ha, an as ga, b as _a, bi as va, co as ya, da as ba, eo as xa, es as Sa, et as Ca, f as wa, g as Ta, h as Ea, in as Da, j as Oa, ls as ka, m as Aa, ma as ja, n as Ma, nn as Na, on as Pa, os as Fa, p as Ia, pa as La, po as Ra, qn as za, qo as Ba, qt as Va, rn as Ha, ro as Ua, sa as Wa, sn as Ga, so as Ka, t as qa, to as Ja, tt as Ya, ui as Xa, v as Za, vn as Qa, wn as $a, x as eo, xi as to, y as no, z as ro, zn as io } from "./F0CanvasPanel-C7vHU_iJ.js";
8
8
  import { t as ao } from "./i18n-provider-defaults-DliS9uYl.js";
9
9
  import { A as oo, C as so, F as co, J as lo, L as uo, R as fo, T as po, a as mo, d as ho, i as go, j as _o, k as vo, m as yo, n as bo, p as xo, q as So, r as Co, t as wo, w as To, x as Eo, y as Do } from "./useData-DjJsB0qa.js";
10
- import { $ as Oo, B as ko, Bt as Ao, Ct as jo, Dn as Mo, Dr as No, Dt as Po, Er as Fo, Fn as Io, Ft as Lo, G as Ro, H as zo, It as Bo, J as Vo, K as Ho, L as Uo, Ln as Wo, Lt as Go, Mr as Ko, Mt as qo, Nr as Jo, Nt as Yo, On as Xo, Or as Zo, Ot as Qo, Pt as $o, Rt as es, U as ts, V as ns, W as rs, X as is, Z as as, _ as os, _t as ss, a as cs, an as ls, c as us, ct as ds, dr as fs, et as ps, fr as ms, g as hs, gt as gs, h as _s, ht as vs, i as ys, jr as bs, jt as xs, kn as Ss, kr as Cs, kt as ws, l as Ts, lr as Es, m as Ds, mr as Os, mt as ks, nt as As, o as js, p as Ms, pt as Ns, q as Ps, r as Fs, rn as Is, s as Ls, st as Rs, t as zs, tt as Bs, u as Vs, v as Hs, vr as Us, w as Ws, wt as Gs, xt as Ks, y as qs, yt as Js, z as Ys } from "./F0Select-C2DfYj6F.js";
10
+ import { $ as Oo, B as ko, Bt as Ao, Ct as jo, Dn as Mo, Dr as No, Dt as Po, Er as Fo, Fn as Io, Ft as Lo, G as Ro, H as zo, It as Bo, J as Vo, K as Ho, L as Uo, Ln as Wo, Lt as Go, Mr as Ko, Mt as qo, Nr as Jo, Nt as Yo, On as Xo, Or as Zo, Ot as Qo, Pt as $o, Rt as es, U as ts, V as ns, W as rs, X as is, Z as as, _ as os, _t as ss, a as cs, an as ls, c as us, ct as ds, dr as fs, et as ps, fr as ms, g as hs, gt as gs, h as _s, ht as vs, i as ys, jr as bs, jt as xs, kn as Ss, kr as Cs, kt as ws, l as Ts, lr as Es, m as Ds, mr as Os, mt as ks, nt as As, o as js, p as Ms, pt as Ns, q as Ps, r as Fs, rn as Is, s as Ls, st as Rs, t as zs, tt as Bs, u as Vs, v as Hs, vr as Us, w as Ws, wt as Gs, xt as Ks, y as qs, yt as Js, z as Ys } from "./F0Select-CovHF33V.js";
11
11
  import { t as Xs } from "./Check-DAp9gCRh.js";
12
- import { a as Zs, i as Qs, n as $s, r as ec, t as tc } from "./F0VideoPlayer-pxkf5e3n.js";
13
- import { t as nc } from "./pdfWorker-EpQTUdwI.js";
14
- import { n as rc, t as ic } from "./F0DocumentViewer-B5Dg9lXU.js";
12
+ import { a as Zs, i as Qs, n as $s, r as ec, t as tc } from "./F0VideoPlayer-CHCDLaVw.js";
13
+ import { t as nc } from "./pdfWorker-BKuO7yxP.js";
14
+ import { n as rc, t as ic } from "./F0DocumentViewer-BQCW-WqC.js";
15
15
  import * as U from "react";
16
16
  import ac, { Children as oc, Fragment as sc, createContext as cc, forwardRef as lc, isValidElement as uc, memo as dc, useCallback as W, useContext as fc, useEffect as G, useId as pc, useImperativeHandle as mc, useLayoutEffect as hc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as gc } from "react";
17
17
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -42,7 +42,7 @@ var bc = {
42
42
  className: "@container",
43
43
  children: [/* @__PURE__ */ Z("div", {
44
44
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
45
- children: [/* @__PURE__ */ X(ke, {
45
+ children: [/* @__PURE__ */ X(Ee, {
46
46
  columns: bc,
47
47
  showArrows: !1,
48
48
  children: i
@@ -2902,7 +2902,7 @@ var ml = (e, t) => {
2902
2902
  }, hl = (e, t) => {
2903
2903
  let n = t;
2904
2904
  return n.displayName = e, n.__isPageLayoutGroup = !0, n;
2905
- }, gl = Kn.filter((e) => e !== "ai"), _l = Cn, vl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(be, {
2905
+ }, gl = Kn.filter((e) => e !== "ai"), _l = Cn, vl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(Ce, {
2906
2906
  header: { title: t },
2907
2907
  draggable: n,
2908
2908
  actions: r,
@@ -3002,8 +3002,8 @@ Al.displayName = "GroupLinear", Al.__isPageLayoutGroup = !0;
3002
3002
  //#endregion
3003
3003
  //#region src/blocks/layouts/Layout/groups/GroupMasonry/components/SortableBlock.tsx
3004
3004
  var jl = ({ id: e, children: t }) => {
3005
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = I({ id: e }), s = {
3006
- transform: S.Translate.toString(a),
3005
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = ae({ id: e }), s = {
3006
+ transform: ve.Translate.toString(a),
3007
3007
  transition: o,
3008
3008
  flex: "1 1",
3009
3009
  display: "flex",
@@ -3017,37 +3017,37 @@ var jl = ({ id: e, children: t }) => {
3017
3017
  children: t
3018
3018
  });
3019
3019
  }, Ml = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: r = !1 }) => {
3020
- let [i, o] = J([]);
3020
+ let [i, a] = J([]);
3021
3021
  Es(() => {
3022
- o(e.map((e, t) => ({
3022
+ a(e.map((e, t) => ({
3023
3023
  id: e.id ?? t.toString(),
3024
3024
  render: e.render
3025
3025
  })));
3026
3026
  }, [e]);
3027
- let [c, l] = J(null), u = Ce(s(fe), s(N, { coordinateGetter: te }));
3027
+ let [o, s] = J(null), c = y(xe(rn), xe(ue, { coordinateGetter: te }));
3028
3028
  return /* @__PURE__ */ X("div", {
3029
3029
  className: H("flex flex-wrap items-stretch gap-4", r && "flex-1"),
3030
- children: /* @__PURE__ */ Z(v, {
3031
- sensors: u,
3030
+ children: /* @__PURE__ */ Z(S, {
3031
+ sensors: c,
3032
3032
  onDragStart: (e) => {
3033
- l(e.active.id);
3033
+ s(e.active.id);
3034
3034
  },
3035
3035
  onDragEnd: (e) => {
3036
3036
  let { active: t, over: n } = e;
3037
- l(null), n && t.id !== n.id && o((e) => {
3037
+ s(null), n && t.id !== n.id && a((e) => {
3038
3038
  let r = e.findIndex((e) => e.id === t.id), i = e.findIndex((e) => e.id === n.id);
3039
- return dt(e, r, i);
3039
+ return P(e, r, i);
3040
3040
  });
3041
3041
  },
3042
- children: [/* @__PURE__ */ X(a, {
3042
+ children: [/* @__PURE__ */ X(ft, {
3043
3043
  items: i,
3044
3044
  children: i.map((e) => /* @__PURE__ */ X(jl, {
3045
3045
  id: e.id,
3046
3046
  children: e.render
3047
3047
  }, e.id))
3048
- }), /* @__PURE__ */ X(T, { children: c ? /* @__PURE__ */ X(jl, {
3049
- id: c,
3050
- children: i.find((e) => e.id === c)?.render
3048
+ }), /* @__PURE__ */ X(A, { children: o ? /* @__PURE__ */ X(jl, {
3049
+ id: o,
3050
+ children: i.find((e) => e.id === o)?.render
3051
3051
  }) : null })]
3052
3052
  })
3053
3053
  });
@@ -4444,14 +4444,14 @@ var cd = Nn({
4444
4444
  "aria-current": n || void 0,
4445
4445
  title: a.t("audioPlayer.jumpTo", { time: cu(o) }),
4446
4446
  className: H(fd(n), or(), !n && "hover:bg-f1-background-secondary"),
4447
- children: /* @__PURE__ */ X(Vt, {
4447
+ children: /* @__PURE__ */ X(Bt, {
4448
4448
  as: "span",
4449
4449
  variant: "body",
4450
4450
  content: e.text
4451
4451
  })
4452
4452
  }) : /* @__PURE__ */ X("div", {
4453
4453
  className: fd(n),
4454
- children: /* @__PURE__ */ X(Vt, {
4454
+ children: /* @__PURE__ */ X(Bt, {
4455
4455
  as: "span",
4456
4456
  variant: "body",
4457
4457
  content: e.text
@@ -4518,7 +4518,7 @@ var _d = (e) => {
4518
4518
  d,
4519
4519
  f,
4520
4520
  C
4521
- ]), E = Nt(m, {
4521
+ ]), E = Mt(m, {
4522
4522
  onPlay: w,
4523
4523
  onPause: s,
4524
4524
  onSeek: c,
@@ -4594,10 +4594,10 @@ var _d = (e) => {
4594
4594
  src: b.resolvedSrc
4595
4595
  }), S = su(e), C = hn(), w = (e) => {
4596
4596
  gd(x.audioRef.current), b.setLocale(e);
4597
- }, T = !f && !!(m && m.length > 0), E = K(() => $s(f?.summary, f?.transcription), [f?.summary, f?.transcription]), [D, O] = J(() => ec(E, p)), k = E.some((e) => e.locale === D) ? D : ec(E, p), A = Zs(f?.summary, k), j = Zs(f?.transcription, k), M = hu(x.audioRef, x.currentSrc, !j), N = j ?? M, P = Array.isArray(N) ? N : void 0, F = typeof N == "string" ? N : void 0, ee = !!(F || P?.length), te = K(() => P ? lu(P) : [], [P]), ne = te.length > 0, re = x.pendingTime ?? x.currentTime, I = K(() => ne ? uu(te, re) : -1, [
4597
+ }, T = !f && !!(m && m.length > 0), E = K(() => $s(f?.summary, f?.transcription), [f?.summary, f?.transcription]), [D, O] = J(() => ec(E, p)), k = E.some((e) => e.locale === D) ? D : ec(E, p), A = Zs(f?.summary, k), j = Zs(f?.transcription, k), M = hu(x.audioRef, x.currentSrc, !j), N = j ?? M, P = Array.isArray(N) ? N : void 0, F = typeof N == "string" ? N : void 0, ee = !!(F || P?.length), te = K(() => P ? lu(P) : [], [P]), ne = te.length > 0, I = x.pendingTime ?? x.currentTime, re = K(() => ne ? uu(te, I) : -1, [
4598
4598
  ne,
4599
4599
  te,
4600
- re
4600
+ I
4601
4601
  ]), ie = q(null), ae = q([]), oe = q(!1), se = W((e) => {
4602
4602
  oe.current = !1, x.seek(e);
4603
4603
  }, [x.seek]);
@@ -4630,7 +4630,7 @@ var _d = (e) => {
4630
4630
  label: y.audioPlayer.transcription,
4631
4631
  content: P ? /* @__PURE__ */ X(md, {
4632
4632
  cues: P,
4633
- activeIndex: I,
4633
+ activeIndex: re,
4634
4634
  onSeek: ne ? se : void 0,
4635
4635
  cueRefs: ae
4636
4636
  }) : /* @__PURE__ */ X("p", {
@@ -4645,7 +4645,7 @@ var _d = (e) => {
4645
4645
  ee,
4646
4646
  P,
4647
4647
  F,
4648
- I,
4648
+ re,
4649
4649
  ne,
4650
4650
  se,
4651
4651
  y.audioPlayer.summary,
@@ -4656,8 +4656,8 @@ var _d = (e) => {
4656
4656
  onChange: _
4657
4657
  });
4658
4658
  G(() => {
4659
- if (!pe || I < 0 || oe.current) return;
4660
- let e = ie.current, t = ae.current[I];
4659
+ if (!pe || re < 0 || oe.current) return;
4660
+ let e = ie.current, t = ae.current[re];
4661
4661
  if (!e || !t) return;
4662
4662
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.top - n.top, a = r.bottom - n.bottom;
4663
4663
  i >= 0 && a <= 0 || e.scrollTo({
@@ -4665,7 +4665,7 @@ var _d = (e) => {
4665
4665
  behavior: C ? "auto" : "smooth"
4666
4666
  });
4667
4667
  }, [
4668
- I,
4668
+ re,
4669
4669
  pe,
4670
4670
  C
4671
4671
  ]);
@@ -4767,7 +4767,7 @@ var _d = (e) => {
4767
4767
  kind: y.audioPlayer.language
4768
4768
  })
4769
4769
  }) : null,
4770
- de ? null : /* @__PURE__ */ X(St, {
4770
+ de ? null : /* @__PURE__ */ X(Ct, {
4771
4771
  fullWidth: !0,
4772
4772
  ariaLabel: y.audioPlayer.details,
4773
4773
  value: _e,
@@ -4855,7 +4855,7 @@ var Sd = qn("F0AudioPlayer", L(xd)), Cd = qn("F0AudioPlayerCard", L(yd)), wd = f
4855
4855
  className: "flex items-center gap-2",
4856
4856
  children: e.map((e, t) => {
4857
4857
  switch (e.type) {
4858
- case "segmentedControl": return /* @__PURE__ */ X(St, {
4858
+ case "segmentedControl": return /* @__PURE__ */ X(Ct, {
4859
4859
  items: e.items,
4860
4860
  value: e.value,
4861
4861
  onChange: e.onChange,
@@ -5058,7 +5058,7 @@ var Nd = L(qn("F0ChipList", Md)), Pd = [
5058
5058
  b(n);
5059
5059
  }, [n]);
5060
5060
  let x = K(() => /* @__PURE__ */ Z(Y, { children: [
5061
- /* @__PURE__ */ X(ee, {
5061
+ /* @__PURE__ */ X(N, {
5062
5062
  title: c,
5063
5063
  description: l,
5064
5064
  module: u,
@@ -5068,11 +5068,11 @@ var Nd = L(qn("F0ChipList", Md)), Pd = [
5068
5068
  setActiveTabId: h,
5069
5069
  disableClose: e
5070
5070
  }),
5071
- /* @__PURE__ */ X(se, {
5071
+ /* @__PURE__ */ X(ie, {
5072
5072
  disableContentPadding: g ?? !1,
5073
5073
  children: r
5074
5074
  }),
5075
- /* @__PURE__ */ X(re, {
5075
+ /* @__PURE__ */ X(ee, {
5076
5076
  primaryAction: o ?? [],
5077
5077
  secondaryAction: s ?? [],
5078
5078
  onClose: () => b(!1)
@@ -5091,7 +5091,7 @@ var Nd = L(qn("F0ChipList", Md)), Pd = [
5091
5091
  o,
5092
5092
  s
5093
5093
  ]);
5094
- return /* @__PURE__ */ X(ut, {
5094
+ return /* @__PURE__ */ X(dt, {
5095
5095
  isOpen: y,
5096
5096
  onClose: t,
5097
5097
  position: i,
@@ -5104,7 +5104,7 @@ var Nd = L(qn("F0ChipList", Md)), Pd = [
5104
5104
  onWidthChange: v,
5105
5105
  children: x
5106
5106
  });
5107
- }, zd = _, Bd = (e) => {
5107
+ }, zd = h, Bd = (e) => {
5108
5108
  let t = zd.reduce((e, t) => {
5109
5109
  let { [t]: n, ...r } = e;
5110
5110
  return r;
@@ -5177,7 +5177,7 @@ function Gd(e) {
5177
5177
  for (let [e, r] of Object.entries(t)) {
5178
5178
  let t = r, i = aa(t);
5179
5179
  if (!i) continue;
5180
- let a = Bi(t, i), o = he(t, a), s = {
5180
+ let a = Bi(t, i), o = pe(t, a), s = {
5181
5181
  name: e,
5182
5182
  type: a,
5183
5183
  label: i.label,
@@ -5252,7 +5252,7 @@ function qd(e) {
5252
5252
  }, i = Ca(t), a = [];
5253
5253
  for (let [e, t] of Object.entries(i.shape)) {
5254
5254
  let n = aa(t);
5255
- n?.renderIf ? en(n.renderIf, r) && a.push(e) : a.push(e);
5255
+ n?.renderIf ? $t(n.renderIf, r) && a.push(e) : a.push(e);
5256
5256
  }
5257
5257
  return a;
5258
5258
  },
@@ -5303,7 +5303,7 @@ var Yd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
5303
5303
  children: [/* @__PURE__ */ X(gi, {
5304
5304
  className: "text-xl sm:text-lg",
5305
5305
  children: r
5306
- }), /* @__PURE__ */ X(rn, {
5306
+ }), /* @__PURE__ */ X(nn, {
5307
5307
  className: "text-lg sm:text-base",
5308
5308
  children: i
5309
5309
  })]
@@ -5426,12 +5426,12 @@ var Yd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
5426
5426
  });
5427
5427
  }, [n]), /* @__PURE__ */ Z(Y, { children: [o && typeof document < "u" ? vc(/* @__PURE__ */ X(Qd, { items: t }), document.body) : null, e] });
5428
5428
  }, ef = 200, tf = ({ children: e }) => {
5429
- let t = gc(b.subscribe, b.getSnapshot, b.getServerSnapshot), [n, r] = J(null);
5429
+ let t = gc(_.subscribe, _.getSnapshot, _.getServerSnapshot), [n, r] = J(null);
5430
5430
  G(() => {
5431
- let e = b.acquireRenderer();
5431
+ let e = _.acquireRenderer();
5432
5432
  return r(e.id), e.release;
5433
5433
  }, []);
5434
- let i = gc(b.subscribeRenderer, b.getActiveRendererId, () => null);
5434
+ let i = gc(_.subscribeRenderer, _.getActiveRendererId, () => null);
5435
5435
  return /* @__PURE__ */ Z(Y, { children: [n !== null && n === i && typeof document < "u" ? vc(/* @__PURE__ */ X(nf, { items: t }), document.body) : null, e] });
5436
5436
  }, nf = ({ items: e }) => {
5437
5437
  let [t, n] = J(e), r = q(e), i = q(/* @__PURE__ */ new Map());
@@ -5467,7 +5467,7 @@ var Yd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
5467
5467
  //#endregion
5468
5468
  //#region src/blocks/F0FormField/F0FormField.tsx
5469
5469
  function rf({ children: e }) {
5470
- let t = Kt(), r = K(() => t && {
5470
+ let t = Gt(), r = K(() => t && {
5471
5471
  ...t,
5472
5472
  registerInlineRow: void 0,
5473
5473
  nullableEmptyFields: void 0
@@ -5481,7 +5481,7 @@ function rf({ children: e }) {
5481
5481
  });
5482
5482
  }
5483
5483
  function af({ field: e, value: t, onChange: n, onBlur: i, error: a, errorMessage: o, status: s, loading: c, required: l, disabled: u, hideLabel: d, initialFiles: f, inline: p }) {
5484
- let m = pc(), h = l ?? (e.validation ? he(e.validation) : !1), g = !d && e.type !== "checkbox" && e.type !== "custom", _ = {
5484
+ let m = pc(), h = l ?? (e.validation ? pe(e.validation) : !1), g = !d && e.type !== "checkbox" && e.type !== "custom", _ = {
5485
5485
  value: t,
5486
5486
  onChange: n,
5487
5487
  onBlur: i ?? (() => {}),
@@ -5502,7 +5502,7 @@ function af({ field: e, value: t, onChange: n, onBlur: i, error: a, errorMessage
5502
5502
  }, x = e.type === "file" ? f : void 0;
5503
5503
  return p ? /* @__PURE__ */ X(rf, { children: /* @__PURE__ */ X("div", {
5504
5504
  id: m,
5505
- children: /* @__PURE__ */ X(it, { children: /* @__PURE__ */ X(ft, {
5505
+ children: /* @__PURE__ */ X(it, { children: /* @__PURE__ */ X(pt, {
5506
5506
  field: b,
5507
5507
  formField: _,
5508
5508
  fieldState: v,
@@ -5706,7 +5706,7 @@ var mf = () => {}, hf = ({ steps: e, children: t, isOpen: n, onClose: r = mf, ti
5706
5706
  x,
5707
5707
  h
5708
5708
  ]);
5709
- return /* @__PURE__ */ X(j, {
5709
+ return /* @__PURE__ */ X(O, {
5710
5710
  isOpen: n,
5711
5711
  onClose: r,
5712
5712
  size: a,
@@ -5787,7 +5787,7 @@ function xf() {
5787
5787
  }, []), s = t === "success" ? r ?? e.actionBar.saved : void 0;
5788
5788
  return {
5789
5789
  showSuccess: o,
5790
- ActionBar: K(() => /* @__PURE__ */ X(ct, {
5790
+ ActionBar: K(() => /* @__PURE__ */ X(lt, {
5791
5791
  isOpen: t === "success",
5792
5792
  variant: "light",
5793
5793
  status: t,
@@ -5868,7 +5868,7 @@ function wf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5868
5868
  m,
5869
5869
  ee,
5870
5870
  te
5871
- ]), re = K(() => Sf({
5871
+ ]), I = K(() => Sf({
5872
5872
  sectionIds: w,
5873
5873
  sections: v,
5874
5874
  customSteps: E,
@@ -5886,16 +5886,16 @@ function wf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5886
5886
  A,
5887
5887
  m,
5888
5888
  te
5889
- ]), I = q(null), { showSuccess: ie, ActionBar: ae } = xf(), oe = W((e) => async (t) => {
5889
+ ]), re = q(null), { showSuccess: ie, ActionBar: ae } = xf(), oe = W((e) => async (t) => {
5890
5890
  D.current[e] = t;
5891
5891
  let n = await b({
5892
5892
  sectionId: e,
5893
5893
  data: t,
5894
5894
  fullData: { ...D.current }
5895
5895
  });
5896
- return I.current = n, n.success && n.message && ie(n.message), n;
5896
+ return re.current = n, n.success && n.message && ie(n.message), n;
5897
5897
  }, [b, ie]), se = W(() => {
5898
- if (I.current?.success) {
5898
+ if (re.current?.success) {
5899
5899
  if (p) {
5900
5900
  let e = p({ fullData: { ...D.current } });
5901
5901
  window.location.href = e;
@@ -5919,7 +5919,7 @@ function wf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5919
5919
  ce(), O.current = e, u?.(e);
5920
5920
  }, [ce, u]);
5921
5921
  return /* @__PURE__ */ X(hf, {
5922
- steps: re,
5922
+ steps: I,
5923
5923
  isOpen: n,
5924
5924
  onClose: r,
5925
5925
  title: i,
@@ -5975,7 +5975,7 @@ function Tf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
5975
5975
  let p = q(l);
5976
5976
  return p.current = l, G(() => {
5977
5977
  p.current(f.hasErrors);
5978
- }, [f.hasErrors]), /* @__PURE__ */ X(ie, {
5978
+ }, [f.hasErrors]), /* @__PURE__ */ X(ne, {
5979
5979
  formName: t,
5980
5980
  sectionId: e,
5981
5981
  schema: n,
@@ -5992,7 +5992,7 @@ function Tf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
5992
5992
  isLoading: d
5993
5993
  });
5994
5994
  }
5995
- function Ef({ 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: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
5995
+ function Ef({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: d, allowStepSkipping: f, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
5996
5996
  let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Ca(v), [v]), E = K(() => _f(v, y), [v, y]), D = W((e) => gf(vf(T, e)), [T]), O = Et(), k = q(b ? { ...b } : {}), A = q(s ?? 0), j = W((e) => async () => {
5997
5997
  await O.submit();
5998
5998
  }, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
@@ -6038,17 +6038,17 @@ function Ef({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
6038
6038
  M,
6039
6039
  h,
6040
6040
  F
6041
- ]), ne = q(null), re = q(null), { showSuccess: I, ActionBar: ie } = xf(), ae = W(async (e) => {
6041
+ ]), ne = q(null), I = q(null), { showSuccess: re, ActionBar: ie } = xf(), ae = W(async (e) => {
6042
6042
  Object.assign(k.current, e);
6043
6043
  let t = { ...k.current };
6044
- re.current = t;
6044
+ I.current = t;
6045
6045
  let n = await x({ data: t });
6046
6046
  return ne.current = n, n;
6047
6047
  }, [x]), oe = W(() => {
6048
6048
  let e = ne.current;
6049
6049
  if (e?.success) {
6050
- if (I(e.message), m) {
6051
- let e = m({ fullData: re.current });
6050
+ if (re(e.message), m) {
6051
+ let e = m({ fullData: I.current });
6052
6052
  window.location.href = e;
6053
6053
  } else p && r?.();
6054
6054
  }
@@ -6056,11 +6056,11 @@ function Ef({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
6056
6056
  p,
6057
6057
  m,
6058
6058
  r,
6059
- I
6059
+ re
6060
6060
  ]), se = W((e) => {
6061
6061
  let t = O.getValues();
6062
- Object.assign(k.current, t), A.current = e, u?.(e);
6063
- }, [O, u]);
6062
+ Object.assign(k.current, t), A.current = e, d?.(e);
6063
+ }, [O, d]);
6064
6064
  return /* @__PURE__ */ X(hf, {
6065
6065
  steps: te,
6066
6066
  isOpen: n,
@@ -6073,12 +6073,12 @@ function Ef({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
6073
6073
  submitLabel: w,
6074
6074
  onSubmit: oe,
6075
6075
  onStepChanged: se,
6076
- allowStepSkipping: d,
6076
+ allowStepSkipping: f,
6077
6077
  children: ({ currentStep: t }) => {
6078
6078
  let n = Cf(t, E, N), r = vf(T, n), i = n.reduce((e, t) => (y?.[t] && (e[t] = y[t]), e), {});
6079
6079
  return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
6080
6080
  className: "pb-5",
6081
- children: /* @__PURE__ */ X(f, {
6081
+ children: /* @__PURE__ */ X(u, {
6082
6082
  name: `${_}-step-${t}`,
6083
6083
  schema: r,
6084
6084
  sections: i,
@@ -6144,10 +6144,10 @@ function jf({ options: e, isOpen: t, onResolve: n }) {
6144
6144
  }
6145
6145
  function Mf(e) {
6146
6146
  return new Promise((t) => {
6147
- let n = e.id ?? mt(), r = !1, i = (e) => {
6148
- r || (r = !0, t(e), Te(n));
6147
+ let n = e.id ?? ht(), r = !1, i = (e) => {
6148
+ r || (r = !0, t(e), we(n));
6149
6149
  };
6150
- xe({
6150
+ ye({
6151
6151
  id: n,
6152
6152
  onDismiss: () => i({ completed: !1 }),
6153
6153
  render: ({ isOpen: t }) => /* @__PURE__ */ X(jf, {
@@ -6162,7 +6162,7 @@ function Mf(e) {
6162
6162
  //#region src/facade/forms/forms.ts
6163
6163
  function Nf(e) {
6164
6164
  let { mode: t, ...n } = e;
6165
- return t === "wizard" ? Mf(n) : C(n);
6165
+ return t === "wizard" ? Mf(n) : b(n);
6166
6166
  }
6167
6167
  var Pf = { open: Nf }, Ff = [
6168
6168
  "page-width",
@@ -6272,7 +6272,7 @@ var Pf = { open: Nf }, Ff = [
6272
6272
  }, [D]), M = W((e) => {
6273
6273
  let [t] = e;
6274
6274
  t !== void 0 && p?.(t);
6275
- }, [p]), [N, P] = J(!1), [F, ee] = J(!1), [te, ne] = J(!1), re = q(!1), I = b === "always" || b === "onHover" && (N || F || te), ie = o?.type ?? "default", ae = !i && n.trim().length > 0, oe = o ?? (a ? {
6275
+ }, [p]), [N, P] = J(!1), [F, ee] = J(!1), [te, ne] = J(!1), I = q(!1), re = b === "always" || b === "onHover" && (N || F || te), ie = o?.type ?? "default", ae = !i && n.trim().length > 0, oe = o ?? (a ? {
6276
6276
  type: "default",
6277
6277
  message: a
6278
6278
  } : void 0), se = a || o?.message ? w : void 0;
@@ -6281,10 +6281,10 @@ var Pf = { open: Nf }, Ff = [
6281
6281
  ...x,
6282
6282
  className: H("flex flex-col gap-2", c && "cursor-not-allowed"),
6283
6283
  onPointerDownCapture: () => {
6284
- re.current = !0;
6284
+ I.current = !0;
6285
6285
  },
6286
6286
  onPointerUp: () => {
6287
- re.current = !1;
6287
+ I.current = !1;
6288
6288
  },
6289
6289
  children: [
6290
6290
  ae ? /* @__PURE__ */ X(is, {
@@ -6331,11 +6331,11 @@ var Pf = { open: Nf }, Ff = [
6331
6331
  status: ie,
6332
6332
  disabled: c
6333
6333
  }), or("focus-visible:ring-offset-1")),
6334
- onFocus: () => ee(!re.current),
6334
+ onFocus: () => ee(!I.current),
6335
6335
  onBlur: () => ee(!1)
6336
6336
  }),
6337
6337
  b === "never" ? null : /* @__PURE__ */ X(zf, {
6338
- visible: I,
6338
+ visible: re,
6339
6339
  content: y(O),
6340
6340
  style: { left: `calc(${k}% + ${A}px)` }
6341
6341
  })
@@ -6516,7 +6516,7 @@ function ap({ title: e, items: t, className: n, activeItem: r, collapsible: i =
6516
6516
  sideOffset: -28,
6517
6517
  container: d,
6518
6518
  className: H(ip({ size: l }), !e && "pt-2", "scrollbar-macos"),
6519
- children: /* @__PURE__ */ X(st, {
6519
+ children: /* @__PURE__ */ X(ct, {
6520
6520
  title: e,
6521
6521
  items: t,
6522
6522
  activeItem: r,
@@ -7129,7 +7129,7 @@ var Dp = () => {
7129
7129
  });
7130
7130
  }, Ap = ({ open: e, onConfirm: t, onCancel: n }) => {
7131
7131
  let { t: r } = V();
7132
- return /* @__PURE__ */ X(Gt, {
7132
+ return /* @__PURE__ */ X(Wt, {
7133
7133
  open: e,
7134
7134
  onClose: n,
7135
7135
  header: {
@@ -7547,7 +7547,7 @@ var Vp = ({ notice: e, className: t, children: n }) => {
7547
7547
  type: "section",
7548
7548
  afterId: e
7549
7549
  });
7550
- }, ne = Dp(), re = ne.filter((e) => !e.datasetKey), I = Array.from(new Set(ne.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), ie = m(e), ae = q(null), oe = q(!ie);
7550
+ }, ne = Dp(), I = ne.filter((e) => !e.datasetKey), re = Array.from(new Set(ne.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), ie = m(e), ae = q(null), oe = q(!ie);
7551
7551
  G(() => {
7552
7552
  oe.current && ae.current?.focus({ preventScroll: !0 });
7553
7553
  }, []);
@@ -7643,7 +7643,7 @@ var Vp = ({ notice: e, className: t, children: n }) => {
7643
7643
  }) : null]
7644
7644
  }),
7645
7645
  r,
7646
- p ? /* @__PURE__ */ X(Bt, {
7646
+ p ? /* @__PURE__ */ X(zt, {
7647
7647
  className: "-mt-2",
7648
7648
  fallback: A(i ? "forms.validation.required" : "forms.validation.invalidType")
7649
7649
  }) : null,
@@ -7678,7 +7678,7 @@ var Vp = ({ notice: e, className: t, children: n }) => {
7678
7678
  })]
7679
7679
  })
7680
7680
  }), /* @__PURE__ */ X(vn, {})] }),
7681
- re.map((e) => /* @__PURE__ */ X(gn, {
7681
+ I.map((e) => /* @__PURE__ */ X(gn, {
7682
7682
  onClick: () => ee(e.questionType),
7683
7683
  children: /* @__PURE__ */ Z("div", {
7684
7684
  className: "flex w-full flex-row items-center gap-2",
@@ -7691,7 +7691,7 @@ var Vp = ({ notice: e, className: t, children: n }) => {
7691
7691
  })]
7692
7692
  })
7693
7693
  }, e.questionType)),
7694
- I.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(vn, {}), I.map((e) => {
7694
+ re.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(vn, {}), re.map((e) => {
7695
7695
  let t = ne.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
7696
7696
  return /* @__PURE__ */ Z(er, { children: [/* @__PURE__ */ X(bn, {
7697
7697
  className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
@@ -7945,7 +7945,7 @@ var Wp = ({ value: e, label: t, ...n }) => {
7945
7945
  }, s = n("surveyFormBuilder.answer.numericPlaceholder");
7946
7946
  return /* @__PURE__ */ X(Hp, {
7947
7947
  ...t,
7948
- children: i ? /* @__PURE__ */ X(ae, {
7948
+ children: i ? /* @__PURE__ */ X(I, {
7949
7949
  locale: "en-US",
7950
7950
  size: "md",
7951
7951
  value: e,
@@ -7999,7 +7999,7 @@ var Wp = ({ value: e, label: t, ...n }) => {
7999
7999
  e.preventDefault(), e.stopPropagation();
8000
8000
  },
8001
8001
  children: /* @__PURE__ */ X(je, {
8002
- data: ce,
8002
+ data: oe,
8003
8003
  onEmojiSelect: (e) => {
8004
8004
  r?.(o, e.native), l(!1);
8005
8005
  },
@@ -8109,7 +8109,7 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8109
8109
  }, T = () => {
8110
8110
  m(!1), h(null);
8111
8111
  }, E = p ? v : !a && !o, D = !a && !o && !l;
8112
- return /* @__PURE__ */ X(zt, {
8112
+ return /* @__PURE__ */ X(xt, {
8113
8113
  value: t,
8114
8114
  onDragStart: w,
8115
8115
  onDragEnd: T,
@@ -8197,7 +8197,7 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8197
8197
  }, a = new Set(r.map((e) => e.value)).size !== r.length;
8198
8198
  a && (r = r.map((e) => ({
8199
8199
  ...e,
8200
- value: mt()
8200
+ value: ht()
8201
8201
  })), a && n?.({
8202
8202
  ...i,
8203
8203
  options: r
@@ -8268,7 +8268,7 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8268
8268
  ...t,
8269
8269
  children: /* @__PURE__ */ Z("div", {
8270
8270
  className: "-mx-0.5 flex flex-col items-start [&>div]:w-full",
8271
- children: [/* @__PURE__ */ X(Tp, { children: /* @__PURE__ */ X(bt, {
8271
+ children: [/* @__PURE__ */ X(Tp, { children: /* @__PURE__ */ X(At, {
8272
8272
  axis: "y",
8273
8273
  values: e,
8274
8274
  onReorder: m,
@@ -8368,12 +8368,12 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8368
8368
  ]
8369
8369
  });
8370
8370
  }, cm = ({ item: e, showEndOfSection: t, className: n }) => {
8371
- let { isDragging: r, setIsDragging: i, setDraggedItemId: a, draggedItemId: o } = Ep(), s = jt(), { disabled: c, answering: l, getSectionContainingQuestion: u } = Cp(), d = u(e.question.id), f = !!d && o === d.id, p = () => {
8371
+ let { isDragging: r, setIsDragging: i, setDraggedItemId: a, draggedItemId: o } = Ep(), s = st(), { disabled: c, answering: l, getSectionContainingQuestion: u } = Cp(), d = u(e.question.id), f = !!d && o === d.id, p = () => {
8372
8372
  i(!0), a(e.question.id);
8373
8373
  }, m = () => {
8374
8374
  i(!1), a(null);
8375
8375
  }, h = d?.locked, g = !c && !l && !h;
8376
- return /* @__PURE__ */ Z(zt, {
8376
+ return /* @__PURE__ */ Z(xt, {
8377
8377
  value: e,
8378
8378
  onDragStart: p,
8379
8379
  onDragEnd: m,
@@ -8403,12 +8403,12 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8403
8403
  }), t ? /* @__PURE__ */ X(sm, {}) : null]
8404
8404
  });
8405
8405
  }, lm = ({ question: e }) => {
8406
- let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = Ep(), i = jt(), { disabled: a, answering: o, getSectionContainingQuestion: s } = Cp(), c = s(e.id), l = () => {
8406
+ let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = Ep(), i = st(), { disabled: a, answering: o, getSectionContainingQuestion: s } = Cp(), c = s(e.id), l = () => {
8407
8407
  n(!0), r(e.id);
8408
8408
  }, u = () => {
8409
8409
  n(!1), r(null);
8410
8410
  }, d = c?.locked, f = !a && !o && !d;
8411
- return /* @__PURE__ */ X(zt, {
8411
+ return /* @__PURE__ */ X(xt, {
8412
8412
  value: e,
8413
8413
  as: "div",
8414
8414
  onDragStart: l,
@@ -8536,7 +8536,7 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8536
8536
  disabled: S,
8537
8537
  className: H("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")
8538
8538
  }) : null]
8539
- }) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Tp, { children: /* @__PURE__ */ X(bt, {
8539
+ }) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Tp, { children: /* @__PURE__ */ X(At, {
8540
8540
  axis: "y",
8541
8541
  values: i,
8542
8542
  onReorder: b,
@@ -8558,8 +8558,8 @@ var rm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
8558
8558
  })] })]
8559
8559
  });
8560
8560
  }, dm = ({ item: e, className: t }) => {
8561
- let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = Ep(), o = jt(), { disabled: s, answering: c } = Cp(), l = a === e.section.id;
8562
- return /* @__PURE__ */ X(zt, {
8561
+ let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = Ep(), o = st(), { disabled: s, answering: c } = Cp(), l = a === e.section.id;
8562
+ return /* @__PURE__ */ X(xt, {
8563
8563
  value: e,
8564
8564
  onDragStart: () => {
8565
8565
  r(!0), i(e.section.id);
@@ -8982,7 +8982,7 @@ var xm = (e, t, n) => {
8982
8982
  initial: { filter: "blur(0px)" },
8983
8983
  animate: { filter: a ? "blur(2px)" : "none" },
8984
8984
  exit: { filter: "blur(0px)" },
8985
- children: [/* @__PURE__ */ X(bt, {
8985
+ children: [/* @__PURE__ */ X(At, {
8986
8986
  axis: "y",
8987
8987
  values: m,
8988
8988
  onReorder: v,
@@ -9760,23 +9760,23 @@ function Qm(e) {
9760
9760
  function $m(e) {
9761
9761
  return e.inline ? /* @__PURE__ */ X(th, { ...e }) : /* @__PURE__ */ X(eh, { ...e });
9762
9762
  }
9763
- function eh({ 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: p = "on-blur", loading: m = !1, labels: h, preview: g = !1, useUpload: _, datasets: v }) {
9764
- let { t: y } = V(), b = c === "fullscreen", x = c === "fullscreen" ? "center" : c, [S, C] = J(b), { formRef: w, submit: T, isSubmitting: D, hasErrors: O } = Et(), k = q({}), A = K(() => Jm(e), [e]), j = Pm(A), M = A.length > 0, N = {
9763
+ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen: d = !1, defaultValues: f, errorTriggerMode: p = "on-blur", loading: m = !1, labels: h, preview: g = !1, useUpload: _, datasets: v }) {
9764
+ let { t: y } = V(), b = c === "fullscreen", x = c === "fullscreen" ? "center" : c, [S, w] = J(b), { formRef: T, submit: E, isSubmitting: D, hasErrors: O } = Et(), k = q({}), A = K(() => Jm(e), [e]), j = Pm(A), M = A.length > 0, N = {
9765
9765
  title: h?.empty?.title ?? y("surveyAnsweringForm.labels.empty.title"),
9766
9766
  description: h?.empty?.description ?? y("surveyAnsweringForm.labels.empty.description"),
9767
9767
  emoji: h?.empty?.emoji ?? y("surveyAnsweringForm.labels.empty.emoji")
9768
- }, P = n === "stepped", F = g && !!d && Object.keys(d).length > 0, ee = g && !F, { schema: te, defaultValues: ne, sections: re } = Xm({
9768
+ }, P = n === "stepped", F = g && !!f && Object.keys(f).length > 0, ee = g && !F, { schema: te, defaultValues: ne, sections: I } = Xm({
9769
9769
  elements: e,
9770
9770
  mode: n,
9771
9771
  t: y,
9772
- defaultValues: d,
9772
+ defaultValues: f,
9773
9773
  currentQuestionId: P ? j.currentQuestion?.id : void 0,
9774
9774
  accumulatedValues: P ? k.current : void 0,
9775
9775
  previewMode: g,
9776
9776
  disableFields: F,
9777
9777
  useUpload: _,
9778
9778
  datasets: v
9779
- }), I = S ? "fullscreen" : x, ie = I === "center" ? "xl" : void 0, ae = q(null), oe = W((e) => {
9779
+ }), re = S ? "fullscreen" : x, ie = re === "center" ? "xl" : void 0, ae = q(null), oe = W((e) => {
9780
9780
  ae.current && clearTimeout(ae.current), ae.current = setTimeout(() => {
9781
9781
  ae.current = null, s();
9782
9782
  }, e);
@@ -9813,18 +9813,18 @@ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9813
9813
  j.setProgress
9814
9814
  ]), le = W(async () => {
9815
9815
  try {
9816
- await T();
9816
+ await E();
9817
9817
  } catch {}
9818
- }, [T]), ue = W(() => {
9819
- let e = w.current?.getValues() ?? {};
9818
+ }, [E]), ue = W(() => {
9819
+ let e = T.current?.getValues() ?? {};
9820
9820
  k.current = {
9821
9821
  ...k.current,
9822
9822
  ...e
9823
9823
  }, j.goToPrevious();
9824
- }, [w, j.goToPrevious]), de = u && !m ? [{
9824
+ }, [T, j.goToPrevious]), de = d && !m ? [{
9825
9825
  label: y(S ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
9826
9826
  icon: S ? na : da,
9827
- onClick: () => C((e) => !e)
9827
+ onClick: () => w((e) => !e)
9828
9828
  }] : void 0, fe = M ? m || F ? void 0 : ee ? P && !j.isLastStep ? {
9829
9829
  label: y("surveyAnsweringForm.actions.next"),
9830
9830
  onClick: j.goToNext,
@@ -9846,13 +9846,13 @@ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9846
9846
  label: y("surveyAnsweringForm.actions.previous"),
9847
9847
  onClick: ue,
9848
9848
  icon: Ko
9849
- } : void 0 : void 0, me = n === "all-questions" && M && !m, he = P && M && !m, ge = P && !!j.currentQuestion?.sectionTitle && !m, _e = I === "center" || I === "fullscreen";
9849
+ } : void 0 : void 0, me = n === "all-questions" && M && !m, he = P && M && !m, ge = P && !!j.currentQuestion?.sectionTitle && !m, _e = re === "center" || re === "fullscreen";
9850
9850
  return /* @__PURE__ */ X(Ga, {
9851
9851
  isOpen: o,
9852
9852
  onClose: s,
9853
9853
  title: r,
9854
9854
  module: l,
9855
- position: I,
9855
+ position: re,
9856
9856
  width: ie,
9857
9857
  primaryAction: fe,
9858
9858
  secondaryAction: pe,
@@ -9897,7 +9897,7 @@ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9897
9897
  justifyContent: "center",
9898
9898
  alignItems: "center",
9899
9899
  paddingX: "lg",
9900
- children: /* @__PURE__ */ X(E, {
9900
+ children: /* @__PURE__ */ X(C, {
9901
9901
  emoji: N.emoji,
9902
9902
  title: N.title,
9903
9903
  description: N.description
@@ -9913,15 +9913,15 @@ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9913
9913
  children: j.currentQuestion?.sectionDescription
9914
9914
  }) : null]
9915
9915
  }) : null,
9916
- M && !m ? /* @__PURE__ */ X(f, {
9917
- formRef: w,
9916
+ M && !m ? /* @__PURE__ */ X(u, {
9917
+ formRef: T,
9918
9918
  name: "survey-answering",
9919
9919
  schema: te,
9920
9920
  defaultValues: ne,
9921
9921
  onSubmit: ce,
9922
9922
  submitConfig: { hideSubmitButton: !0 },
9923
9923
  errorTriggerMode: p,
9924
- sections: re
9924
+ sections: I
9925
9925
  }, P ? j.currentStep : void 0) : null
9926
9926
  ]
9927
9927
  })
@@ -9931,14 +9931,14 @@ function eh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9931
9931
  });
9932
9932
  }
9933
9933
  function th({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
9934
- let { t: u } = V(), d = K(() => Jm(e), [e]).length > 0, p = {
9935
- title: o?.empty?.title ?? u("surveyAnsweringForm.labels.empty.title"),
9936
- description: o?.empty?.description ?? u("surveyAnsweringForm.labels.empty.description"),
9937
- emoji: o?.empty?.emoji ?? u("surveyAnsweringForm.labels.empty.emoji")
9934
+ let { t: d } = V(), f = K(() => Jm(e), [e]).length > 0, p = {
9935
+ title: o?.empty?.title ?? d("surveyAnsweringForm.labels.empty.title"),
9936
+ description: o?.empty?.description ?? d("surveyAnsweringForm.labels.empty.description"),
9937
+ emoji: o?.empty?.emoji ?? d("surveyAnsweringForm.labels.empty.emoji")
9938
9938
  }, { schema: m, defaultValues: h, sections: g } = Xm({
9939
9939
  elements: e,
9940
9940
  mode: "all-questions",
9941
- t: u,
9941
+ t: d,
9942
9942
  defaultValues: i,
9943
9943
  previewMode: !0,
9944
9944
  disableFields: !0,
@@ -9959,7 +9959,7 @@ function th({ elements: e, title: t, description: n, resourceHeader: r, defaultV
9959
9959
  description: n,
9960
9960
  ...r
9961
9961
  })
9962
- }), a ? /* @__PURE__ */ X(Mm, {}) : d ? /* @__PURE__ */ X(f, {
9962
+ }), a ? /* @__PURE__ */ X(Mm, {}) : f ? /* @__PURE__ */ X(u, {
9963
9963
  name: "survey-answering-inline",
9964
9964
  schema: m,
9965
9965
  defaultValues: h,
@@ -9975,7 +9975,7 @@ function th({ elements: e, title: t, description: n, resourceHeader: r, defaultV
9975
9975
  justifyContent: "center",
9976
9976
  alignItems: "center",
9977
9977
  paddingX: "lg",
9978
- children: /* @__PURE__ */ X(E, {
9978
+ children: /* @__PURE__ */ X(C, {
9979
9979
  emoji: p.emoji,
9980
9980
  title: p.title,
9981
9981
  description: p.description
@@ -10211,7 +10211,7 @@ function uh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
10211
10211
  })
10212
10212
  })
10213
10213
  })
10214
- }), b && _ ? /* @__PURE__ */ X(pe, {
10214
+ }), b && _ ? /* @__PURE__ */ X(de, {
10215
10215
  open: !0,
10216
10216
  onClose: () => {
10217
10217
  T(), x(null);
@@ -10261,16 +10261,16 @@ function fh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
10261
10261
  className: "h-full w-full rounded-md"
10262
10262
  }) : null }), /* @__PURE__ */ Z("div", {
10263
10263
  className: "flex flex-col gap-[2px] p-3",
10264
- children: [/* @__PURE__ */ X(xt, {
10264
+ children: [/* @__PURE__ */ X(St, {
10265
10265
  className: "text-lg font-medium",
10266
10266
  children: t
10267
- }), /* @__PURE__ */ X(xt, {
10267
+ }), /* @__PURE__ */ X(St, {
10268
10268
  className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
10269
10269
  children: n
10270
10270
  })]
10271
10271
  })] })] }), s ? /* @__PURE__ */ X(ji, {
10272
10272
  className: "p-3",
10273
- children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(P, {
10273
+ children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(j, {
10274
10274
  label: e.label,
10275
10275
  onRequest: e.onClick,
10276
10276
  errorMessage: e.errorMessage,
@@ -10330,7 +10330,7 @@ function hh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
10330
10330
  })]
10331
10331
  }), /* @__PURE__ */ X("div", {
10332
10332
  className: H("flex flex-shrink-0 @xs:pl-0", e && "pl-8"),
10333
- children: /* @__PURE__ */ X(P, {
10333
+ children: /* @__PURE__ */ X(j, {
10334
10334
  label: r.label,
10335
10335
  onRequest: r.onRequest,
10336
10336
  errorMessage: r.errorMessage,
@@ -10352,7 +10352,7 @@ function hh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
10352
10352
  });
10353
10353
  }
10354
10354
  var gh = L(hh), _h = lc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
10355
- let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(P, {
10355
+ let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(j, {
10356
10356
  label: e.label,
10357
10357
  onRequest: e.onClick,
10358
10358
  errorMessage: e.errorMessage,
@@ -10429,7 +10429,7 @@ function yh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
10429
10429
  showConfirmation: !1
10430
10430
  })
10431
10431
  })]
10432
- }), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(pe, {
10432
+ }), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(de, {
10433
10433
  open: !0,
10434
10434
  onClose: T,
10435
10435
  success: y === "success",
@@ -11169,7 +11169,7 @@ function fg(e) {
11169
11169
  return t ? We(t) ?? null : null;
11170
11170
  }
11171
11171
  function pg(e, t, n) {
11172
- let r = _t(document.createElement("div"), void 0, {
11172
+ let r = vt(document.createElement("div"), void 0, {
11173
11173
  renderer: "canvas",
11174
11174
  width: e.getWidth(),
11175
11175
  height: e.getHeight()
@@ -11464,9 +11464,9 @@ function yg({ title: e, enabled: t, actionsCollapse: n }) {
11464
11464
  //#endregion
11465
11465
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
11466
11466
  function bg({ 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 }) {
11467
- let [C, w] = J(!1), [T, D] = J(!1), O = q(!1), [k, A] = J(!1), j = V(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = eo(), ee = (e) => {
11468
- w(e), e || A(!1);
11469
- }, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, re = u && f && h, I = g && g.length > 0, ie = !!_ && _.trim().length > 0, ae = !!S, oe = !d && e.trim().length > 0 && (p ? !!h : M), se = oe || ne || re || I || ie, ce = !!l || ae || !!se, le = !v && (C || T), de = H("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", le && "delay-0 !opacity-100"), fe = H("-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]", le && "delay-0 !grid-cols-[1fr]"), pe = yg({
11467
+ let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = V(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = eo(), ee = (e) => {
11468
+ T(e), e || A(!1);
11469
+ }, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, I = u && f && h, re = g && g.length > 0, ie = !!_ && _.trim().length > 0, ae = !!S, oe = !d && e.trim().length > 0 && (p ? !!h : M), se = oe || ne || I || re || ie, le = !!l || ae || !!se, ue = !v && (w || E), de = H("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", ue && "delay-0 !opacity-100"), fe = H("-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]", ue && "delay-0 !grid-cols-[1fr]"), pe = yg({
11470
11470
  title: e,
11471
11471
  enabled: b > 2,
11472
11472
  actionsCollapse: !v
@@ -11511,7 +11511,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11511
11511
  children: e
11512
11512
  }), n ? /* @__PURE__ */ X("div", {
11513
11513
  className: "flex shrink-0 items-center text-f1-foreground-secondary",
11514
- children: /* @__PURE__ */ X(ue, { info: n })
11514
+ children: /* @__PURE__ */ X(ce, { info: n })
11515
11515
  }) : null]
11516
11516
  }), t ? /* @__PURE__ */ X("p", {
11517
11517
  className: "text-base text-f1-foreground-secondary",
@@ -11523,7 +11523,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11523
11523
  ...l,
11524
11524
  onOpenChange: D
11525
11525
  }) : null, oe ? /* @__PURE__ */ Z(on, {
11526
- open: C,
11526
+ open: w,
11527
11527
  onOpenChange: ee,
11528
11528
  children: [/* @__PURE__ */ X(yn, {
11529
11529
  asChild: !0,
@@ -11533,7 +11533,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11533
11533
  variant: "ghost",
11534
11534
  size: "md",
11535
11535
  hideLabel: !0,
11536
- pressed: C,
11536
+ pressed: w,
11537
11537
  compact: !0,
11538
11538
  onClick: (e) => e.stopPropagation()
11539
11539
  })
@@ -11547,7 +11547,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11547
11547
  }) : null]
11548
11548
  }), /* @__PURE__ */ X("div", {
11549
11549
  className: "min-h-0 flex-1 overflow-auto",
11550
- children: /* @__PURE__ */ X(E, {
11550
+ children: /* @__PURE__ */ X(C, {
11551
11551
  variant: "critical",
11552
11552
  title: j.ai.dashboardItem.errorTitle,
11553
11553
  description: i.message,
@@ -11563,7 +11563,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11563
11563
  "aria-busy": r ? "true" : void 0,
11564
11564
  "aria-live": r ? "polite" : void 0,
11565
11565
  children: [/* @__PURE__ */ Z("div", {
11566
- className: H("flex flex-col px-4 py-3", ce && "min-h-14"),
11566
+ className: H("flex flex-col px-4 py-3", le && "min-h-14"),
11567
11567
  children: [/* @__PURE__ */ Z(Or, {
11568
11568
  ref: pe.rowRef,
11569
11569
  display: "flex",
@@ -11579,9 +11579,9 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11579
11579
  }), n ? /* @__PURE__ */ X("div", {
11580
11580
  ref: pe.infoRef,
11581
11581
  className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
11582
- children: /* @__PURE__ */ X(ue, { info: n })
11582
+ children: /* @__PURE__ */ X(ce, { info: n })
11583
11583
  }) : null]
11584
- }), ce ? /* @__PURE__ */ X("div", {
11584
+ }), le ? /* @__PURE__ */ X("div", {
11585
11585
  ref: pe.actionsRef,
11586
11586
  className: H(fe, me > 1 && "-mt-1.5"),
11587
11587
  children: /* @__PURE__ */ X("div", {
@@ -11603,7 +11603,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11603
11603
  onClick: () => S?.(!v)
11604
11604
  }) : null,
11605
11605
  se ? /* @__PURE__ */ Z(on, {
11606
- open: C,
11606
+ open: w,
11607
11607
  onOpenChange: ee,
11608
11608
  children: [/* @__PURE__ */ X(yn, {
11609
11609
  asChild: !0,
@@ -11613,7 +11613,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11613
11613
  variant: "ghost",
11614
11614
  size: "md",
11615
11615
  hideLabel: !0,
11616
- pressed: C,
11616
+ pressed: w,
11617
11617
  compact: !0,
11618
11618
  onClick: (e) => e.stopPropagation()
11619
11619
  })
@@ -11628,7 +11628,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11628
11628
  format: "markdown"
11629
11629
  })
11630
11630
  }) : /* @__PURE__ */ Z(Y, { children: [
11631
- I ? /* @__PURE__ */ Z("div", {
11631
+ re ? /* @__PURE__ */ Z("div", {
11632
11632
  className: "mb-1 flex flex-col items-start gap-2 border-0 border-b border-solid border-f1-border-secondary p-3",
11633
11633
  children: [/* @__PURE__ */ X($n, {
11634
11634
  className: "text-base font-medium text-f1-foreground-tertiary",
@@ -11681,7 +11681,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11681
11681
  })]
11682
11682
  })
11683
11683
  }, e.label)) }) })] }) }) : null,
11684
- re ? /* @__PURE__ */ X(mn, { children: /* @__PURE__ */ X(gn, {
11684
+ I ? /* @__PURE__ */ X(mn, { children: /* @__PURE__ */ X(gn, {
11685
11685
  onClick: () => {
11686
11686
  v && S?.(!1), f(h);
11687
11687
  },
@@ -12071,10 +12071,10 @@ function Bg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12071
12071
  chartConfig: b,
12072
12072
  data: T,
12073
12073
  title: e.title
12074
- }), ee = K(() => [...n ?? [], ...F], [n, F]), te = W(() => S(null), []), ne = b.type === "bar" ? "orientation" in b ? b.orientation ?? "vertical" : "vertical" : void 0, re = T ? Rh(T, b.type) : b.type, I = K(() => qh(re), [re]), ie = T && Array.isArray(T.series) ? T.series.length : 1, ae = P.filter((e) => {
12074
+ }), ee = K(() => [...n ?? [], ...F], [n, F]), te = W(() => S(null), []), ne = b.type === "bar" ? "orientation" in b ? b.orientation ?? "vertical" : "vertical" : void 0, I = T ? Rh(T, b.type) : b.type, re = K(() => qh(I), [I]), ie = T && Array.isArray(T.series) ? T.series.length : 1, ae = P.filter((e) => {
12075
12075
  let t = e.type === "bar" ? "bar" : e.type;
12076
- return !(!I.has(t) || e.type === "pie" && ie > 1);
12077
- }), oe = l && re !== "scatter" && re !== "radar" && re !== "heatmap" ? ae.map((t) => {
12076
+ return !(!re.has(t) || e.type === "pie" && ie > 1);
12077
+ }), oe = l && I !== "scatter" && I !== "radar" && I !== "heatmap" ? ae.map((t) => {
12078
12078
  let n = t.type === "table", r = n ? p === "table" : p === "chart" && b.type === t.type && (t.type !== "bar" || ne === t.orientation);
12079
12079
  return {
12080
12080
  label: t.label,
@@ -12145,12 +12145,28 @@ function Bg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12145
12145
  });
12146
12146
  }
12147
12147
  //#endregion
12148
+ //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/tableExport.ts
12149
+ function Vg(e) {
12150
+ return ((e?.find((e) => e?.type === "table"))?.options?.columns ?? []).filter((e) => typeof e?.id == "string" && typeof e?.label == "string").map((e) => ({
12151
+ id: e.id,
12152
+ label: e.label,
12153
+ render: e.render
12154
+ }));
12155
+ }
12156
+ function Hg(e, t) {
12157
+ return e.map((e) => {
12158
+ let n = {};
12159
+ for (let r of t) n[r.id] = r.render ? Je(r.render(e)) : e[r.id];
12160
+ return n;
12161
+ });
12162
+ }
12163
+ //#endregion
12148
12164
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useCollectionDownloadActions.ts
12149
- var Vg = 1e4, Hg = 100;
12150
- async function Ug(e) {
12165
+ var Ug = 1e4, Wg = 100;
12166
+ async function Gg(e) {
12151
12167
  return e;
12152
12168
  }
12153
- async function Wg(e) {
12169
+ async function Kg(e) {
12154
12170
  let { dataAdapter: t } = e, n = [...e.currentSortings ? [{
12155
12171
  field: e.currentSortings.field,
12156
12172
  order: e.currentSortings.order
@@ -12163,38 +12179,38 @@ async function Wg(e) {
12163
12179
  search: e.currentSearch,
12164
12180
  navigationFilters: e.currentNavigationFilters
12165
12181
  }, i = t.exportFetchData ?? t.fetchData;
12166
- if (!t.paginationType) return ((await Ug(i(r))).records ?? []).slice(0, Vg);
12182
+ if (!t.paginationType) return ((await Gg(i(r))).records ?? []).slice(0, Ug);
12167
12183
  if (t.paginationType === "pages") {
12168
12184
  let e = [], t = 1;
12169
- for (; e.length < Vg;) {
12170
- let n = await Ug(i({
12185
+ for (; e.length < Ug;) {
12186
+ let n = await Gg(i({
12171
12187
  ...r,
12172
12188
  pagination: {
12173
12189
  currentPage: t,
12174
- perPage: Hg
12190
+ perPage: Wg
12175
12191
  }
12176
12192
  }));
12177
12193
  if (!n.records || n.records.length === 0 || (e.push(...n.records), "pagesCount" in n && t >= n.pagesCount)) break;
12178
12194
  t++;
12179
12195
  }
12180
- return e.slice(0, Vg);
12196
+ return e.slice(0, Ug);
12181
12197
  }
12182
12198
  let a = [], o = null;
12183
- for (; a.length < Vg;) {
12184
- let e = await Ug(i({
12199
+ for (; a.length < Ug;) {
12200
+ let e = await Gg(i({
12185
12201
  ...r,
12186
12202
  pagination: {
12187
12203
  cursor: o,
12188
- perPage: Hg
12204
+ perPage: Wg
12189
12205
  }
12190
12206
  }));
12191
12207
  if (!e.records || e.records.length === 0 || (a.push(...e.records), "hasMore" in e && !e.hasMore)) break;
12192
12208
  if ("cursor" in e) o = e.cursor ?? null;
12193
12209
  else break;
12194
12210
  }
12195
- return a.slice(0, Vg);
12211
+ return a.slice(0, Ug);
12196
12212
  }
12197
- function Gg(e, t) {
12213
+ function qg(e, t) {
12198
12214
  let n = new Set(t?.hidden ?? []), r = e.filter((e) => !n.has(e.id)), i = t?.order;
12199
12215
  if (!i || i.length === 0) return r;
12200
12216
  let a = new Map(r.map((e) => [e.id, e])), o = [];
@@ -12205,18 +12221,14 @@ function Gg(e, t) {
12205
12221
  for (let e of r) a.has(e.id) && o.push(e);
12206
12222
  return o;
12207
12223
  }
12208
- function Kg({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
12224
+ function Jg({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
12209
12225
  let { t: a } = V(), [o, s] = J(!1), c = W(async (a) => {
12210
12226
  if (e && !o) {
12211
12227
  s(!0);
12212
12228
  try {
12213
- let o = await Wg(e), s = Gg(r, i);
12229
+ let o = await Kg(e), s = qg(r, i);
12214
12230
  if (s.length === 0 || o.length === 0) return;
12215
- let c = s.map((e) => e.label), l = s.map((e) => e.id), u = o.map((e) => {
12216
- let t = {};
12217
- for (let n of s) t[n.id] = n.render ? Je(n.render(e)) : e[n.id];
12218
- return t;
12219
- });
12231
+ let c = s.map((e) => e.label), l = s.map((e) => e.id), u = Hg(o, s);
12220
12232
  a === "excel" ? await cg(c, u, t, {
12221
12233
  keys: l,
12222
12234
  preamble: og(t, n)
@@ -12250,12 +12262,8 @@ function Kg({ source: e, title: t, description: n, columns: r, tableSettings: i
12250
12262
  }
12251
12263
  //#endregion
12252
12264
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
12253
- function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
12254
- let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = an(m, [f, p]), [g, _] = J(), v = K(() => ((e.visualizations?.find((e) => e?.type === "table"))?.options?.columns ?? []).filter((e) => typeof e?.id == "string" && typeof e?.label == "string").map((e) => ({
12255
- id: e.id,
12256
- label: e.label,
12257
- render: e.render
12258
- })), [e]), y = Kg({
12265
+ function Yg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
12266
+ let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = an(m, [f, p]), [g, _] = J(), v = K(() => Vg(e.visualizations), [e]), y = Jg({
12259
12267
  source: h,
12260
12268
  title: e.title,
12261
12269
  description: e.description,
@@ -12294,7 +12302,7 @@ function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12294
12302
  }
12295
12303
  //#endregion
12296
12304
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemSkeleton.tsx
12297
- function Jg() {
12305
+ function Xg() {
12298
12306
  return /* @__PURE__ */ Z("div", {
12299
12307
  className: "flex h-full items-end gap-3 px-4 pb-4",
12300
12308
  children: [/* @__PURE__ */ X(B, { className: "h-10 w-36 rounded" }), /* @__PURE__ */ X(B, { className: "h-4 w-16 rounded" })]
@@ -12302,7 +12310,7 @@ function Jg() {
12302
12310
  }
12303
12311
  //#endregion
12304
12312
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/MetricItem/MetricItem.tsx
12305
- function Yg(e, t = { type: "number" }, n = 0) {
12313
+ function Zg(e, t = { type: "number" }, n = 0) {
12306
12314
  switch (t.type) {
12307
12315
  case "currency": return new Intl.NumberFormat(void 0, {
12308
12316
  style: "currency",
@@ -12328,7 +12336,7 @@ function Yg(e, t = { type: "number" }, n = 0) {
12328
12336
  }).format(e);
12329
12337
  }
12330
12338
  }
12331
- function Xg(e, t) {
12339
+ function Qg(e, t) {
12332
12340
  if (t === void 0 || t === 0) return;
12333
12341
  let n = (e - t) / Math.abs(t) * 100;
12334
12342
  return {
@@ -12336,8 +12344,8 @@ function Xg(e, t) {
12336
12344
  direction: n > .5 ? "up" : n < -.5 ? "down" : "flat"
12337
12345
  };
12338
12346
  }
12339
- function Zg({ value: e, trend: t, comparison: n }) {
12340
- let r = q(null), { height: i, width: a } = Wt(r), [o, s] = J(!1), c = i > 220;
12347
+ function $g({ value: e, trend: t, comparison: n }) {
12348
+ let r = q(null), { height: i, width: a } = Ut(r), [o, s] = J(!1), c = i > 220;
12341
12349
  return hc(() => {
12342
12350
  let e = r.current;
12343
12351
  s(e !== null && (e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight));
@@ -12398,7 +12406,7 @@ function Zg({ value: e, trend: t, comparison: n }) {
12398
12406
  " ",
12399
12407
  n.value
12400
12408
  ]
12401
- }), n.info ? /* @__PURE__ */ X(ue, {
12409
+ }), n.info ? /* @__PURE__ */ X(ce, {
12402
12410
  info: n.info,
12403
12411
  label: n.label
12404
12412
  }) : null]
@@ -12406,8 +12414,8 @@ function Zg({ value: e, trend: t, comparison: n }) {
12406
12414
  })
12407
12415
  });
12408
12416
  }
12409
- function Qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
12410
- let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = hg(e.fetchData, t, l, u), h = d ? Xg(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : Yg(t, e.format, e.decimals);
12417
+ function e_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
12418
+ let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = hg(e.fetchData, t, l, u), h = d ? Qg(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : Zg(t, e.format, e.decimals);
12411
12419
  return /* @__PURE__ */ X(bg, {
12412
12420
  title: e.title,
12413
12421
  description: e.description,
@@ -12417,7 +12425,7 @@ function Qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12417
12425
  isLoading: f,
12418
12426
  error: p,
12419
12427
  onRetry: m,
12420
- skeleton: /* @__PURE__ */ X(Jg, {}),
12428
+ skeleton: /* @__PURE__ */ X(Xg, {}),
12421
12429
  actions: n,
12422
12430
  itemFilters: r,
12423
12431
  editMode: i,
@@ -12426,7 +12434,7 @@ function Qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12426
12434
  onAskAi: s,
12427
12435
  onAskAiTarget: c,
12428
12436
  itemId: e.id,
12429
- children: d ? /* @__PURE__ */ X(Zg, {
12437
+ children: d ? /* @__PURE__ */ X($g, {
12430
12438
  value: g(d.value),
12431
12439
  trend: h,
12432
12440
  comparison: d.comparison ? {
@@ -12439,16 +12447,16 @@ function Qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12439
12447
  }
12440
12448
  //#endregion
12441
12449
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardGrid/DashboardGrid.tsx
12442
- var $g = 12, e_ = 4, t_ = 640, n_ = 4, r_ = {
12450
+ var t_ = 12, n_ = 4, r_ = 640, i_ = 4, a_ = {
12443
12451
  chart: 336,
12444
12452
  metric: 144,
12445
12453
  collection: 480
12446
- }, i_ = 336, a_ = {
12454
+ }, o_ = 336, s_ = {
12447
12455
  chart: 240,
12448
12456
  metric: 120,
12449
12457
  collection: 300
12450
- }, o_ = 120;
12451
- function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
12458
+ }, c_ = 120;
12459
+ function l_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
12452
12460
  let d = q(null), [f, p] = J(!1), [m, h] = J(null);
12453
12461
  G(() => {
12454
12462
  u?.(!!m);
@@ -12457,19 +12465,19 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12457
12465
  let t = /* @__PURE__ */ new Map();
12458
12466
  for (let n of e) t.set(n.id, n);
12459
12467
  return t;
12460
- }, [e]), [_, v] = J(() => m_(e)), y = q(h_(e));
12468
+ }, [e]), [_, v] = J(() => g_(e)), y = q(__(e));
12461
12469
  G(() => {
12462
- let t = h_(e);
12463
- t !== y.current && (y.current = t, v(m_(e)));
12470
+ let t = __(e);
12471
+ t !== y.current && (y.current = t, v(g_(e)));
12464
12472
  }, [e]);
12465
12473
  let b = q(o);
12466
12474
  G(() => {
12467
- o !== void 0 && o !== b.current && (b.current = o, v(m_(e)));
12475
+ o !== void 0 && o !== b.current && (b.current = o, v(g_(e)));
12468
12476
  }, [o, e]), G(() => {
12469
12477
  let e = d.current;
12470
12478
  if (!e) return;
12471
12479
  let t = new ResizeObserver((e) => {
12472
- for (let t of e) p(t.contentRect.width < t_);
12480
+ for (let t of e) p(t.contentRect.width < r_);
12473
12481
  });
12474
12482
  return t.observe(e), () => t.disconnect();
12475
12483
  }, []), G(() => {
@@ -12522,7 +12530,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12522
12530
  let r = n.map((t) => ({
12523
12531
  ...t,
12524
12532
  ids: t.ids.filter((t) => t !== e)
12525
- })), i = k.current.get(e), a = i ? x_(i) : i_;
12533
+ })), i = k.current.get(e), a = i ? C_(i) : o_;
12526
12534
  if (t.type === "new-row") r.splice(t.afterRowIdx + 1, 0, {
12527
12535
  ids: [e],
12528
12536
  height: a
@@ -12534,7 +12542,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12534
12542
  else {
12535
12543
  let n = Math.min(t.position, r[t.rowIdx].ids.length);
12536
12544
  r[t.rowIdx].ids.splice(n, 0, e);
12537
- let i = v_(r[t.rowIdx], k.current);
12545
+ let i = b_(r[t.rowIdx], k.current);
12538
12546
  r[t.rowIdx].height < i && (r[t.rowIdx] = {
12539
12547
  ...r[t.rowIdx],
12540
12548
  height: i
@@ -12543,23 +12551,23 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12543
12551
  return r = r.filter((e) => e.ids.length > 0), x(r), r;
12544
12552
  });
12545
12553
  }, [x]), ee = W((e, t) => {
12546
- if (d_(N.current, e, t)) return null;
12554
+ if (p_(N.current, e, t)) return null;
12547
12555
  let n = d.current ? Array.from(d.current.querySelectorAll("[data-dashboard-row]")) : [], r = O.current;
12548
12556
  if (n.length === 0 || n.length !== r.length) return null;
12549
- let i = n.map((e) => e.getBoundingClientRect()), a = f_(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
12557
+ let i = n.map((e) => e.getBoundingClientRect()), a = m_(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
12550
12558
  return t < o.top + u ? {
12551
12559
  type: "new-row",
12552
12560
  afterRowIdx: a - 1
12553
12561
  } : t > o.bottom - u ? {
12554
12562
  type: "new-row",
12555
12563
  afterRowIdx: a
12556
- } : l && s.ids.length === 1 ? null : s.ids.length >= e_ && !l ? {
12564
+ } : l && s.ids.length === 1 ? null : s.ids.length >= n_ && !l ? {
12557
12565
  type: "new-row",
12558
12566
  afterRowIdx: a
12559
12567
  } : {
12560
12568
  type: "into-row",
12561
12569
  rowIdx: a,
12562
- position: p_(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
12570
+ position: h_(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
12563
12571
  };
12564
12572
  }, []), te = W((e, t) => {
12565
12573
  if (typeof t.button == "number" && t.button !== 0) return;
@@ -12568,7 +12576,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12568
12576
  A.current = e, j.current = null, D(null);
12569
12577
  let a = (t) => {
12570
12578
  if (!i) {
12571
- if (Math.hypot(t.clientX - n, t.clientY - r) < n_) return;
12579
+ if (Math.hypot(t.clientX - n, t.clientY - r) < i_) return;
12572
12580
  i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
12573
12581
  let a = k.current.get(e)?.title ?? "";
12574
12582
  a && window.dispatchEvent(new CustomEvent(Ta, { detail: {
@@ -12598,7 +12606,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12598
12606
  ]);
12599
12607
  G(() => () => P.current?.(), []);
12600
12608
  let ne = W((e, t, n, r) => {
12601
- let i = Math.max(v_(_[e], g), r), a = (r) => {
12609
+ let i = Math.max(b_(_[e], g), r), a = (r) => {
12602
12610
  let a = Math.max(i, n + r.clientY - t);
12603
12611
  v((t) => t.map((t, n) => n === e ? {
12604
12612
  ...t,
@@ -12612,16 +12620,16 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12612
12620
  _,
12613
12621
  x,
12614
12622
  g
12615
- ]), re = f ? _.flatMap((e) => e.ids.map((t) => ({
12623
+ ]), I = f ? _.flatMap((e) => e.ids.map((t) => ({
12616
12624
  ids: [t],
12617
12625
  height: e.height
12618
- }))) : _, I = !!r && !f, ie = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
12626
+ }))) : _, re = !!r && !f, ie = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
12619
12627
  if (e.length === 1) {
12620
12628
  let a = e[0];
12621
12629
  return /* @__PURE__ */ X("div", {
12622
12630
  ref: d,
12623
12631
  className: "flex h-full min-h-0 flex-col",
12624
- children: /* @__PURE__ */ X(S_, {
12632
+ children: /* @__PURE__ */ X(w_, {
12625
12633
  item: a,
12626
12634
  itemFilters: t?.(a),
12627
12635
  filters: n,
@@ -12642,7 +12650,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12642
12650
  return /* @__PURE__ */ X("div", {
12643
12651
  ref: d,
12644
12652
  className: H("flex flex-col", a ? "min-h-full shrink-0" : "h-full min-h-0"),
12645
- children: /* @__PURE__ */ X(S_, {
12653
+ children: /* @__PURE__ */ X(w_, {
12646
12654
  item: e,
12647
12655
  itemFilters: t?.(e),
12648
12656
  filters: n,
@@ -12662,19 +12670,19 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12662
12670
  return /* @__PURE__ */ Z("div", {
12663
12671
  ref: d,
12664
12672
  className: "flex flex-col",
12665
- style: { gap: $g },
12673
+ style: { gap: t_ },
12666
12674
  children: [
12667
- re.map((e, a) => {
12675
+ I.map((e, a) => {
12668
12676
  let o = w && E?.type === "into-row" && E.rowIdx === a, u = e.ids.some((e) => g.get(e)?.type === "collection");
12669
12677
  return /* @__PURE__ */ Z("div", {
12670
12678
  className: "relative",
12671
12679
  children: [
12672
- I ? /* @__PURE__ */ X(u_, { active: !!ie(a - 1) }) : null,
12680
+ re ? /* @__PURE__ */ X(f_, { active: !!ie(a - 1) }) : null,
12673
12681
  /* @__PURE__ */ X("div", {
12674
12682
  "data-dashboard-row": "",
12675
12683
  className: H("flex rounded-lg transition-colors duration-200", o && "bg-f1-background-hover"),
12676
12684
  style: {
12677
- gap: $g,
12685
+ gap: t_,
12678
12686
  height: e.height,
12679
12687
  ...u ? {
12680
12688
  overflowY: "clip",
@@ -12685,15 +12693,15 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12685
12693
  let d = g.get(a);
12686
12694
  if (!d) return null;
12687
12695
  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;
12688
- return /* @__PURE__ */ X(c_, {
12696
+ return /* @__PURE__ */ X(u_, {
12689
12697
  id: a,
12690
12698
  isDragging: f,
12691
12699
  showIndicatorBefore: !!p,
12692
12700
  showIndicatorAfter: !!m,
12693
- draggable: I,
12701
+ draggable: re,
12694
12702
  onGripPointerDown: te,
12695
12703
  onContentHeightChange: S,
12696
- children: /* @__PURE__ */ X(S_, {
12704
+ children: /* @__PURE__ */ X(w_, {
12697
12705
  item: d,
12698
12706
  itemFilters: t?.(d),
12699
12707
  filters: n,
@@ -12708,19 +12716,19 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12708
12716
  }, a);
12709
12717
  })
12710
12718
  }),
12711
- I ? /* @__PURE__ */ X("div", {
12719
+ re ? /* @__PURE__ */ X("div", {
12712
12720
  className: "group/resize absolute -bottom-3.5 mx-auto flex h-3 w-full items-center justify-center hover:cursor-ns-resize",
12713
12721
  onMouseDown: (t) => {
12714
12722
  t.preventDefault();
12715
12723
  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"));
12716
- ne(a, t.clientY, r, y_(n, i));
12724
+ ne(a, t.clientY, r, x_(n, i));
12717
12725
  },
12718
12726
  children: /* @__PURE__ */ X("div", { className: "h-1 w-16 rounded-full bg-transparent transition-colors group-hover/resize:bg-f1-foreground-tertiary" })
12719
12727
  }) : null
12720
12728
  ]
12721
12729
  }, a);
12722
12730
  }),
12723
- I ? /* @__PURE__ */ X(u_, { active: !!ie(re.length - 1) }) : null,
12731
+ re ? /* @__PURE__ */ X(f_, { active: !!ie(I.length - 1) }) : null,
12724
12732
  w ? /* @__PURE__ */ X("div", {
12725
12733
  ref: M,
12726
12734
  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",
@@ -12730,7 +12738,7 @@ function s_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12730
12738
  ]
12731
12739
  });
12732
12740
  }
12733
- function c_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
12741
+ function u_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
12734
12742
  let c = q(null);
12735
12743
  return G(() => {
12736
12744
  let t = c.current;
@@ -12753,7 +12761,7 @@ function c_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
12753
12761
  n = !0, s.disconnect(), l.disconnect();
12754
12762
  };
12755
12763
  }, [e, o]), /* @__PURE__ */ Z(Y, { children: [
12756
- n ? /* @__PURE__ */ X(l_, {}) : null,
12764
+ n ? /* @__PURE__ */ X(d_, {}) : null,
12757
12765
  /* @__PURE__ */ Z("div", {
12758
12766
  ref: c,
12759
12767
  "data-card-id": e,
@@ -12768,44 +12776,44 @@ function c_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
12768
12776
  })
12769
12777
  }) : null, s]
12770
12778
  }),
12771
- r ? /* @__PURE__ */ X(l_, {}) : null
12779
+ r ? /* @__PURE__ */ X(d_, {}) : null
12772
12780
  ] });
12773
12781
  }
12774
- function l_() {
12782
+ function d_() {
12775
12783
  return /* @__PURE__ */ X("div", {
12776
12784
  className: "mx-[-2px] w-1 flex-shrink-0 self-stretch py-2",
12777
12785
  children: /* @__PURE__ */ X("div", { className: "h-full w-full rounded-full bg-f1-background-secondary-hover" })
12778
12786
  });
12779
12787
  }
12780
- function u_({ active: e }) {
12788
+ function f_({ active: e }) {
12781
12789
  return /* @__PURE__ */ X("div", {
12782
12790
  className: "pointer-events-none relative flex items-center justify-center transition-all",
12783
12791
  style: { minHeight: e ? 12 : 0 },
12784
12792
  children: /* @__PURE__ */ X("div", { className: H("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") })
12785
12793
  });
12786
12794
  }
12787
- function d_(e, t, n) {
12795
+ function p_(e, t, n) {
12788
12796
  for (let r of e) {
12789
12797
  let e = r.getBoundingClientRect();
12790
12798
  if (t >= e.left && t <= e.right && n >= e.top && n <= e.bottom) return !0;
12791
12799
  }
12792
12800
  return !1;
12793
12801
  }
12794
- function f_(e, t) {
12802
+ function m_(e, t) {
12795
12803
  for (let n = 0; n < e.length - 1; n++) if (t < (e[n].bottom + e[n + 1].top) / 2) return n;
12796
12804
  return e.length - 1;
12797
12805
  }
12798
- function p_(e, t, n) {
12806
+ function h_(e, t, n) {
12799
12807
  for (let n = 0; n < e.length; n++) {
12800
12808
  let r = e[n].getBoundingClientRect();
12801
12809
  if (t < r.left + r.width / 2) return n;
12802
12810
  }
12803
12811
  return n;
12804
12812
  }
12805
- function m_(e) {
12806
- return e.some((e) => e.y !== void 0) ? g_(e) : __(e);
12813
+ function g_(e) {
12814
+ return e.some((e) => e.y !== void 0) ? v_(e) : y_(e);
12807
12815
  }
12808
- function h_(e) {
12816
+ function __(e) {
12809
12817
  return JSON.stringify(e.map((e) => [
12810
12818
  e.id,
12811
12819
  e.type,
@@ -12816,10 +12824,10 @@ function h_(e) {
12816
12824
  e.colSpan ?? null
12817
12825
  ]));
12818
12826
  }
12819
- function g_(e) {
12827
+ function v_(e) {
12820
12828
  let t = [...e].sort((e, t) => (e.y ?? 0) - (t.y ?? 0) || (e.x ?? 0) - (t.x ?? 0)), n = /* @__PURE__ */ new Map();
12821
12829
  for (let e of t) {
12822
- let t = e.y ?? 0, r = x_(e), i = n.get(t);
12830
+ let t = e.y ?? 0, r = C_(e), i = n.get(t);
12823
12831
  i || (i = {
12824
12832
  ids: [],
12825
12833
  maxHeight: 0
@@ -12830,11 +12838,11 @@ function g_(e) {
12830
12838
  height: e.maxHeight
12831
12839
  }));
12832
12840
  }
12833
- function __(e) {
12841
+ function y_(e) {
12834
12842
  let t = [], n = [], r = 0, i = 0;
12835
12843
  for (let a of e) {
12836
- let e = b_(a), o = x_(a);
12837
- r + e > e_ && n.length > 0 && (t.push({
12844
+ let e = S_(a), o = C_(a);
12845
+ r + e > n_ && n.length > 0 && (t.push({
12838
12846
  ids: n,
12839
12847
  height: i
12840
12848
  }), n = [], r = 0, i = 0), n.push(a.id), r += e, o > i && (i = o);
@@ -12844,17 +12852,17 @@ function __(e) {
12844
12852
  height: i
12845
12853
  }), t;
12846
12854
  }
12847
- function v_(e, t) {
12848
- let n = o_;
12855
+ function b_(e, t) {
12856
+ let n = c_;
12849
12857
  for (let r of e.ids) {
12850
12858
  let e = t.get(r);
12851
12859
  if (!e) continue;
12852
- let i = a_[e.type] ?? o_;
12860
+ let i = s_[e.type] ?? c_;
12853
12861
  i > n && (n = i);
12854
12862
  }
12855
12863
  return n;
12856
12864
  }
12857
- function y_(e, t) {
12865
+ function x_(e, t) {
12858
12866
  if (!e || t.size === 0) return 0;
12859
12867
  let n = e.style.height, r = e.style.minHeight, i = () => {
12860
12868
  let n = 0;
@@ -12870,13 +12878,13 @@ function y_(e, t) {
12870
12878
  let o = Math.max(a, i());
12871
12879
  return e.style.height = n, e.style.minHeight = r, o;
12872
12880
  }
12873
- function b_(e) {
12874
- return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? e_ : 2;
12881
+ function S_(e) {
12882
+ return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? n_ : 2;
12875
12883
  }
12876
- function x_(e) {
12877
- return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : r_[e.type] ?? i_;
12884
+ function C_(e) {
12885
+ return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : a_[e.type] ?? o_;
12878
12886
  }
12879
- function S_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
12887
+ function w_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
12880
12888
  switch (e.type) {
12881
12889
  case "chart": return /* @__PURE__ */ X(Bg, {
12882
12890
  item: e,
@@ -12892,7 +12900,7 @@ function S_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12892
12900
  isFullscreen: u,
12893
12901
  onFullscreenChange: d
12894
12902
  });
12895
- case "metric": return /* @__PURE__ */ X(Qg, {
12903
+ case "metric": return /* @__PURE__ */ X(e_, {
12896
12904
  item: e,
12897
12905
  filters: t,
12898
12906
  actions: n,
@@ -12905,7 +12913,7 @@ function S_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12905
12913
  isFullscreen: u,
12906
12914
  onFullscreenChange: d
12907
12915
  });
12908
- case "collection": return /* @__PURE__ */ X(qg, {
12916
+ case "collection": return /* @__PURE__ */ X(Yg, {
12909
12917
  item: e,
12910
12918
  filters: t,
12911
12919
  actions: n,
@@ -12931,7 +12939,7 @@ function S_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12931
12939
  }
12932
12940
  //#endregion
12933
12941
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
12934
- function C_({ onExportExcel: e, isExporting: t }) {
12942
+ function T_({ onExportExcel: e, isExporting: t }) {
12935
12943
  let { t: n } = V();
12936
12944
  return /* @__PURE__ */ X(to, {
12937
12945
  items: [{
@@ -12944,17 +12952,17 @@ function C_({ onExportExcel: e, isExporting: t }) {
12944
12952
  }
12945
12953
  //#endregion
12946
12954
  //#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
12947
- function w_(e) {
12955
+ function E_(e) {
12948
12956
  return /* @__PURE__ */ X(ys.Provider, {
12949
12957
  value: "controlled",
12950
12958
  children: /* @__PURE__ */ X(Fs, { ...e })
12951
12959
  });
12952
12960
  }
12953
- w_.displayName = "ControlledOneFilterPicker";
12961
+ E_.displayName = "ControlledOneFilterPicker";
12954
12962
  //#endregion
12955
12963
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBar.tsx
12956
- function T_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
12957
- return !e && !n ? null : /* @__PURE__ */ X(w_, {
12964
+ function D_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
12965
+ return !e && !n ? null : /* @__PURE__ */ X(E_, {
12958
12966
  filters: e,
12959
12967
  value: t,
12960
12968
  presets: n,
@@ -12966,7 +12974,7 @@ function T_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i,
12966
12974
  }
12967
12975
  //#endregion
12968
12976
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBarSkeleton.tsx
12969
- function E_() {
12977
+ function O_() {
12970
12978
  return /* @__PURE__ */ Z("div", {
12971
12979
  className: "flex items-center gap-1",
12972
12980
  role: "status",
@@ -12980,23 +12988,23 @@ function E_() {
12980
12988
  }
12981
12989
  //#endregion
12982
12990
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/extractColumns.ts
12983
- function D_(e) {
12991
+ function k_(e) {
12984
12992
  if (e.length === 0) return [];
12985
12993
  let t = e[0];
12986
12994
  return Object.keys(t).filter((e) => typeof e == "string" && !e.startsWith("_"));
12987
12995
  }
12988
12996
  //#endregion
12989
12997
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useDashboardExport.ts
12990
- function O_(e, t) {
12998
+ function A_(e, t) {
12991
12999
  return e.useDashboardFilters === !1 ? {} : t;
12992
13000
  }
12993
- async function k_(e, t) {
13001
+ async function j_(e, t) {
12994
13002
  if (e.length === 0) return null;
12995
13003
  let n = await Promise.all(e.map(async (e) => {
12996
13004
  try {
12997
13005
  return {
12998
13006
  item: e,
12999
- data: await e.fetchData(O_(e, t))
13007
+ data: await e.fetchData(A_(e, t))
13000
13008
  };
13001
13009
  } catch (t) {
13002
13010
  return console.warn(`[useDashboardExport] Failed to export metric "${e.title}":`, t), null;
@@ -13020,12 +13028,12 @@ async function k_(e, t) {
13020
13028
  rows: r
13021
13029
  };
13022
13030
  }
13023
- async function A_(e, t) {
13024
- let n = [], r = await k_(e.filter((e) => e.type === "metric"), t);
13031
+ async function M_(e, t) {
13032
+ let n = [], r = await j_(e.filter((e) => e.type === "metric"), t);
13025
13033
  r && n.push(r);
13026
13034
  let i = e.filter((e) => e.type !== "metric").map(async (e) => {
13027
13035
  if (e.type === "chart") try {
13028
- let n = await e.fetchData(O_(e, t));
13036
+ let n = await e.fetchData(A_(e, t));
13029
13037
  if (!Ph(e.chart)) return console.warn(`[useDashboardExport] Skipped chart "${e.title}": unsupported chart type`), null;
13030
13038
  let r = Xh(e.chart, n);
13031
13039
  return {
@@ -13038,7 +13046,7 @@ async function A_(e, t) {
13038
13046
  return console.warn(`[useDashboardExport] Failed to export chart "${e.title}":`, t), null;
13039
13047
  }
13040
13048
  if (e.type === "collection") try {
13041
- let n = await e.createSource(O_(e, t)).dataAdapter.fetchData({
13049
+ let n = await e.createSource(A_(e, t)).dataAdapter.fetchData({
13042
13050
  filters: {},
13043
13051
  sortings: [],
13044
13052
  pagination: {
@@ -13047,12 +13055,18 @@ async function A_(e, t) {
13047
13055
  }
13048
13056
  }), r = "records" in n ? n.records : n;
13049
13057
  if (r.length === 0) return null;
13050
- let i = D_(r);
13051
- return {
13058
+ let i = og(e.title, e.description), a = Vg(e.visualizations);
13059
+ return a.length > 0 ? {
13060
+ name: e.title,
13061
+ columns: a.map((e) => e.label),
13062
+ keys: a.map((e) => e.id),
13063
+ rows: Hg(r, a),
13064
+ preamble: i
13065
+ } : {
13052
13066
  name: e.title,
13053
- columns: i,
13067
+ columns: k_(r),
13054
13068
  rows: r,
13055
- preamble: og(e.title, e.description)
13069
+ preamble: i
13056
13070
  };
13057
13071
  } catch (t) {
13058
13072
  return console.warn(`[useDashboardExport] Failed to export collection "${e.title}":`, t), null;
@@ -13062,7 +13076,7 @@ async function A_(e, t) {
13062
13076
  for (let e of a) e && n.push(e);
13063
13077
  return n;
13064
13078
  }
13065
- function j_({ items: e, filters: t, filename: n = "dashboard" }) {
13079
+ function N_({ items: e, filters: t, filename: n = "dashboard" }) {
13066
13080
  let [r, i] = J(!1), a = q(e);
13067
13081
  a.current = e;
13068
13082
  let o = q(t);
@@ -13072,7 +13086,7 @@ function j_({ items: e, filters: t, filename: n = "dashboard" }) {
13072
13086
  exportAsExcel: W(async () => {
13073
13087
  i(!0);
13074
13088
  try {
13075
- let e = await A_(a.current, o.current);
13089
+ let e = await M_(a.current, o.current);
13076
13090
  e.length > 0 && await dg(e, s.current);
13077
13091
  } finally {
13078
13092
  i(!1);
@@ -13083,17 +13097,17 @@ function j_({ items: e, filters: t, filename: n = "dashboard" }) {
13083
13097
  }
13084
13098
  //#endregion
13085
13099
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
13086
- var M_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: l = !1, onLayoutChange: u, enableExport: d, exportFilename: f, onExportReady: p, resetKey: m, onTransformChart: h, onAskAi: g, onAskAiTarget: _, navigationFilters: v, filtersLoading: b }) => {
13100
+ var P_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: s, editMode: c, readOnly: l = !1, onLayoutChange: u, enableExport: d, exportFilename: f, onExportReady: p, resetKey: m, onTransformChart: h, onAskAi: _, onAskAiTarget: v, navigationFilters: y, filtersLoading: b }) => {
13087
13101
  let x = V(), [S = {}, C] = Gn({
13088
13102
  prop: r,
13089
13103
  defaultProp: n ?? {},
13090
13104
  onChange: i
13091
13105
  }), w = K(() => {
13092
- if (!v) return {};
13106
+ if (!y) return {};
13093
13107
  let e = {};
13094
- for (let [t, n] of Object.entries(v)) e[t] = c[n.type].valueConverter?.(n.defaultValue, n, x) ?? n.defaultValue;
13108
+ for (let [t, n] of Object.entries(y)) e[t] = o[n.type].valueConverter?.(n.defaultValue, n, x) ?? n.defaultValue;
13095
13109
  return e;
13096
- }, []), [T, E] = J(w), { exportAsExcel: D, isExporting: O } = j_({
13110
+ }, []), [T, E] = J(w), { exportAsExcel: D, isExporting: O } = N_({
13097
13111
  items: a,
13098
13112
  filters: S,
13099
13113
  filename: f
@@ -13109,61 +13123,61 @@ var M_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
13109
13123
  let A = a.length === 1, [j, M] = J(!1), N = A || j;
13110
13124
  return /* @__PURE__ */ Z("div", {
13111
13125
  className: H("flex flex-col gap-5 pb-10", N && "h-full pb-0"),
13112
- children: [e || b || d || v ? /* @__PURE__ */ Z("div", {
13126
+ children: [e || b || d || y ? /* @__PURE__ */ Z("div", {
13113
13127
  className: "flex items-center justify-between gap-4 px-5",
13114
13128
  children: [/* @__PURE__ */ X("div", {
13115
13129
  className: "w-full",
13116
- children: e ? /* @__PURE__ */ X(T_, {
13130
+ children: e ? /* @__PURE__ */ X(D_, {
13117
13131
  filters: e,
13118
13132
  value: S,
13119
13133
  presets: t,
13120
13134
  onChange: C,
13121
13135
  disabled: l
13122
- }) : b ? /* @__PURE__ */ X(E_, {}) : null
13136
+ }) : b ? /* @__PURE__ */ X(O_, {}) : null
13123
13137
  }), /* @__PURE__ */ Z("div", {
13124
13138
  className: "flex shrink-0 items-center gap-2",
13125
- children: [v ? /* @__PURE__ */ X(y, {
13126
- navigationFilters: v,
13139
+ children: [y ? /* @__PURE__ */ X(g, {
13140
+ navigationFilters: y,
13127
13141
  currentNavigationFilters: T,
13128
13142
  onChangeNavigationFilters: E,
13129
13143
  disabled: l
13130
- }) : null, d ? /* @__PURE__ */ X(C_, {
13144
+ }) : null, d ? /* @__PURE__ */ X(T_, {
13131
13145
  onExportExcel: D,
13132
13146
  isExporting: O
13133
13147
  }) : null]
13134
13148
  })]
13135
13149
  }) : null, /* @__PURE__ */ X("div", {
13136
13150
  className: H("px-5", N && "flex min-h-0 flex-1 flex-col pb-5"),
13137
- children: /* @__PURE__ */ X(s_, {
13151
+ children: /* @__PURE__ */ X(l_, {
13138
13152
  items: a,
13139
- itemFilters: l ? void 0 : o,
13153
+ itemFilters: l ? void 0 : s,
13140
13154
  filters: {
13141
13155
  ...S,
13142
13156
  ...T
13143
13157
  },
13144
- editMode: s && !l,
13158
+ editMode: c && !l,
13145
13159
  readOnly: l,
13146
13160
  onLayoutChange: u,
13147
13161
  onTransformChart: l ? void 0 : h,
13148
- onAskAi: g,
13149
- onAskAiTarget: _,
13162
+ onAskAi: _,
13163
+ onAskAiTarget: v,
13150
13164
  resetKey: m,
13151
13165
  onFullscreenChange: M
13152
13166
  })
13153
13167
  })]
13154
13168
  });
13155
13169
  };
13156
- M_.displayName = "F0AnalyticsDashboard";
13157
- var N_ = qn("F0AnalyticsDashboard", M_), P_ = () => pn("(min-width: 640px)", { initializeWithValue: !1 }), F_ = () => pn("(max-width: 639px)", { initializeWithValue: !1 }), I_ = /*#__PURE__*/ U.createContext(void 0);
13158
- process.env.NODE_ENV !== "production" && (I_.displayName = "ToastContext");
13159
- function L_() {
13160
- let e = U.useContext(I_);
13170
+ P_.displayName = "F0AnalyticsDashboard";
13171
+ var F_ = qn("F0AnalyticsDashboard", P_), I_ = () => pn("(min-width: 640px)", { initializeWithValue: !1 }), L_ = () => pn("(max-width: 639px)", { initializeWithValue: !1 }), R_ = /*#__PURE__*/ U.createContext(void 0);
13172
+ process.env.NODE_ENV !== "production" && (R_.displayName = "ToastContext");
13173
+ function z_() {
13174
+ let e = U.useContext(R_);
13161
13175
  if (!e) throw Error(process.env.NODE_ENV === "production" ? cr(73) : "Base UI: useToastManager must be used within <Toast.Provider>.");
13162
13176
  return e;
13163
13177
  }
13164
13178
  //#endregion
13165
13179
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/resolvePromiseOptions.mjs
13166
- function R_(e, t) {
13180
+ function B_(e, t) {
13167
13181
  if (typeof e == "string") return { description: e };
13168
13182
  if (typeof e == "function") {
13169
13183
  let n = e(t);
@@ -13173,7 +13187,7 @@ function R_(e, t) {
13173
13187
  }
13174
13188
  //#endregion
13175
13189
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/store.mjs
13176
- function z_(e) {
13190
+ function V_(e) {
13177
13191
  let t = /* @__PURE__ */ new Map(), n = 0, r = 0;
13178
13192
  return e.forEach((e, i) => {
13179
13193
  let a = e.transitionStatus === "ending";
@@ -13185,7 +13199,7 @@ function z_(e) {
13185
13199
  }), r += e.height || 0, a || (n += 1);
13186
13200
  }), t;
13187
13201
  }
13188
- function B_(e, t) {
13202
+ function H_(e, t) {
13189
13203
  let n = 0;
13190
13204
  return e.map((e) => {
13191
13205
  if (e.transitionStatus === "ending") return e;
@@ -13196,7 +13210,7 @@ function B_(e, t) {
13196
13210
  };
13197
13211
  });
13198
13212
  }
13199
- var V_ = {
13213
+ var U_ = {
13200
13214
  toasts: (e) => e.toasts,
13201
13215
  isEmpty: (e) => e.toasts.length === 0,
13202
13216
  toast: (e, t) => e.toastMetadata.get(t)?.value,
@@ -13207,14 +13221,14 @@ var V_ = {
13207
13221
  expanded: (e) => e.hovering || e.focused,
13208
13222
  expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
13209
13223
  prevFocusElement: (e) => e.prevFocusElement
13210
- }, H_ = class extends mr {
13224
+ }, W_ = class extends mr {
13211
13225
  timers = /* @__PURE__ */ new Map();
13212
13226
  areTimersPaused = !1;
13213
13227
  constructor(e) {
13214
13228
  super({
13215
13229
  ...e,
13216
- toastMetadata: z_(e.toasts)
13217
- }, {}, V_);
13230
+ toastMetadata: V_(e.toasts)
13231
+ }, {}, U_);
13218
13232
  }
13219
13233
  setViewport = (e) => {
13220
13234
  this.set("viewport", e);
@@ -13227,8 +13241,8 @@ var V_ = {
13227
13241
  limit: t
13228
13242
  };
13229
13243
  if (n) {
13230
- let e = B_(this.state.toasts, t);
13231
- r.toasts = e, r.toastMetadata = z_(e);
13244
+ let e = H_(this.state.toasts, t);
13245
+ r.toasts = e, r.toastMetadata = V_(e);
13232
13246
  }
13233
13247
  this.update(r);
13234
13248
  }
@@ -13238,7 +13252,7 @@ var V_ = {
13238
13252
  }), this.timers.clear();
13239
13253
  };
13240
13254
  removeToast(e, t = !1) {
13241
- let n = V_.toastIndex(this.state, e);
13255
+ let n = U_.toastIndex(this.state, e);
13242
13256
  if (n === -1) return;
13243
13257
  let r = this.state.toasts[n];
13244
13258
  t || r?.onRemove?.();
@@ -13248,7 +13262,7 @@ var V_ = {
13248
13262
  addToast = (e) => {
13249
13263
  let { timeout: t, limit: n } = this.state, r = e.id || Xe("toast");
13250
13264
  if (e.id) {
13251
- let t = V_.toast(this.state, e.id);
13265
+ let t = U_.toast(this.state, e.id);
13252
13266
  if (t) {
13253
13267
  if (t.transitionStatus === "ending") this.removeToast(e.id, !0);
13254
13268
  else {
@@ -13263,16 +13277,16 @@ var V_ = {
13263
13277
  updateKey: 0,
13264
13278
  transitionStatus: "starting"
13265
13279
  }, a = [i, ...this.state.toasts];
13266
- this.setToasts(B_(a, n));
13280
+ this.setToasts(H_(a, n));
13267
13281
  let o = i.timeout ?? t;
13268
- return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), V_.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
13282
+ return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), U_.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
13269
13283
  };
13270
13284
  updateToast = (e, t) => {
13271
- let n = V_.toast(this.state, e);
13285
+ let n = U_.toast(this.state, e);
13272
13286
  n && n.transitionStatus !== "ending" && this.updateToastInternal(e, typeof t == "function" ? t(n) : t, !1, !0);
13273
13287
  };
13274
13288
  updateToastInternal = (e, t, n = !1, r = !1) => {
13275
- let { timeout: i, toasts: a } = this.state, o = V_.toast(this.state, e);
13289
+ let { timeout: i, toasts: a } = this.state, o = U_.toast(this.state, e);
13276
13290
  if (!o || o.transitionStatus === "ending") return;
13277
13291
  let s = {
13278
13292
  ...o,
@@ -13281,17 +13295,17 @@ var V_ = {
13281
13295
  };
13282
13296
  this.setToasts(a.map((t) => t.id === e ? s : t));
13283
13297
  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";
13284
- !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), V_.expandedOrOutOfFocus(this.state) && this.pauseTimers());
13298
+ !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), U_.expandedOrOutOfFocus(this.state) && this.pauseTimers());
13285
13299
  };
13286
13300
  closeToast = (e) => {
13287
13301
  let t = e === void 0, { limit: n, toasts: r } = this.state, i;
13288
13302
  if (t) i = r, this.clearTimers();
13289
13303
  else {
13290
- let t = V_.toast(this.state, e);
13304
+ let t = U_.toast(this.state, e);
13291
13305
  if (!t) return;
13292
13306
  i = [t], this.clearTimer(e);
13293
13307
  }
13294
- let a = B_(r.map((n) => t || n.id === e ? {
13308
+ let a = H_(r.map((n) => t || n.id === e ? {
13295
13309
  ...n,
13296
13310
  transitionStatus: "ending",
13297
13311
  height: 0
@@ -13301,18 +13315,18 @@ var V_ = {
13301
13315
  }), this.handleFocusManagement(e);
13302
13316
  };
13303
13317
  promiseToast = (e, t) => {
13304
- let n = R_(t.loading), r = this.addToast({
13318
+ let n = B_(t.loading), r = this.addToast({
13305
13319
  ...n,
13306
13320
  type: "loading"
13307
13321
  }), i = e.then((e) => {
13308
- let n = R_(t.success, e);
13322
+ let n = B_(t.success, e);
13309
13323
  return this.updateToast(r, {
13310
13324
  ...n,
13311
13325
  type: "success",
13312
13326
  timeout: n.timeout
13313
13327
  }), e;
13314
13328
  }).catch((e) => {
13315
- let n = R_(t.error, e);
13329
+ let n = B_(t.error, e);
13316
13330
  return this.updateToast(r, {
13317
13331
  ...n,
13318
13332
  type: "error",
@@ -13345,7 +13359,7 @@ var V_ = {
13345
13359
  }));
13346
13360
  };
13347
13361
  scheduleTimer(e, t, n) {
13348
- let r = Date.now(), i = V_.expandedOrOutOfFocus(this.state) ? void 0 : tr.create();
13362
+ let r = Date.now(), i = U_.expandedOrOutOfFocus(this.state) ? void 0 : tr.create();
13349
13363
  i?.start(t, () => {
13350
13364
  this.handleTimerFired(e), n();
13351
13365
  }), this.timers.set(e, {
@@ -13373,7 +13387,7 @@ var V_ = {
13373
13387
  setToasts(e, t = e.length === 0) {
13374
13388
  let n = {
13375
13389
  toasts: e,
13376
- toastMetadata: z_(e)
13390
+ toastMetadata: V_(e)
13377
13391
  };
13378
13392
  t && (n.hovering = !1, n.focused = !1), this.update(n);
13379
13393
  }
@@ -13384,14 +13398,14 @@ var V_ = {
13384
13398
  this.restoreFocusToPrevElement();
13385
13399
  return;
13386
13400
  }
13387
- let n = V_.toasts(this.state), r = V_.toastIndex(this.state, e), i = (e, t) => {
13401
+ let n = U_.toasts(this.state), r = U_.toastIndex(this.state, e), i = (e, t) => {
13388
13402
  for (let r = e; r >= 0 && r < n.length; r += t) if (n[r].transitionStatus !== "ending") return n[r];
13389
13403
  return null;
13390
13404
  }, a = i(r + 1, 1) ?? i(r - 1, -1);
13391
13405
  a ? a.ref?.current?.focus() : this.restoreFocusToPrevElement();
13392
13406
  }
13393
- }, U_ = function(e) {
13394
- let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = ar(() => new H_({
13407
+ }, G_ = function(e) {
13408
+ let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = ar(() => new W_({
13395
13409
  timeout: n,
13396
13410
  limit: r,
13397
13411
  viewport: null,
@@ -13406,17 +13420,17 @@ var V_ = {
13406
13420
  let n = t.id;
13407
13421
  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);
13408
13422
  });
13409
- }, [a, i]), /*#__PURE__*/ Z(I_.Provider, {
13423
+ }, [a, i]), /*#__PURE__*/ Z(R_.Provider, {
13410
13424
  value: a,
13411
- children: [/*#__PURE__*/ X(W_, {
13425
+ children: [/*#__PURE__*/ X(K_, {
13412
13426
  store: a,
13413
13427
  timeout: n,
13414
13428
  limit: r
13415
13429
  }), t]
13416
13430
  });
13417
13431
  };
13418
- process.env.NODE_ENV !== "production" && (U_.displayName = "ToastProvider");
13419
- function W_(e) {
13432
+ process.env.NODE_ENV !== "production" && (G_.displayName = "ToastProvider");
13433
+ function K_(e) {
13420
13434
  let { store: t, timeout: n, limit: r } = e;
13421
13435
  return ur(() => {
13422
13436
  t.syncProviderProps(n, r);
@@ -13428,8 +13442,8 @@ function W_(e) {
13428
13442
  }
13429
13443
  //#endregion
13430
13444
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/viewport/ToastViewportCssVars.mjs
13431
- var G_ = "--toast-frontmost-height", K_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
13432
- let { render: n, className: r, style: i, children: a, ...o } = e, s = L_(), c = yr(), 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");
13445
+ var q_ = "--toast-frontmost-height", J_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
13446
+ let { render: n, className: r, style: i, children: a, ...o } = e, s = z_(), c = yr(), 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");
13433
13447
  U.useEffect(() => {
13434
13448
  let e = s.state.viewport;
13435
13449
  if (!e || f) return;
@@ -13501,7 +13515,7 @@ var G_ = "--toast-frontmost-height", K_ = /*#__PURE__*/ U.forwardRef(function(e,
13501
13515
  onPointerDown: E,
13502
13516
  onPointerUp: D,
13503
13517
  onPointerCancel: D,
13504
- style: { [G_]: _ ? `${_}px` : void 0 }
13518
+ style: { [q_]: _ ? `${_}px` : void 0 }
13505
13519
  }, j = { expanded: h }, M = !f && g && /*#__PURE__*/ X(_r, { onFocus: b }), N = Sr("div", e, {
13506
13520
  ref: [t, s.setViewport],
13507
13521
  state: j,
@@ -13528,19 +13542,19 @@ var G_ = "--toast-frontmost-height", K_ = /*#__PURE__*/ U.forwardRef(function(e,
13528
13542
  })
13529
13543
  ] });
13530
13544
  });
13531
- process.env.NODE_ENV !== "production" && (K_.displayName = "ToastViewport");
13545
+ process.env.NODE_ENV !== "production" && (J_.displayName = "ToastViewport");
13532
13546
  //#endregion
13533
13547
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/root/ToastRootContext.mjs
13534
- var q_ = /*#__PURE__*/ U.createContext(void 0);
13535
- process.env.NODE_ENV !== "production" && (q_.displayName = "ToastRootContext");
13536
- function J_() {
13537
- let e = U.useContext(q_);
13548
+ var Y_ = /*#__PURE__*/ U.createContext(void 0);
13549
+ process.env.NODE_ENV !== "production" && (Y_.displayName = "ToastRootContext");
13550
+ function X_() {
13551
+ let e = U.useContext(Y_);
13538
13552
  if (!e) throw Error(process.env.NODE_ENV === "production" ? cr(66) : "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.");
13539
13553
  return e;
13540
13554
  }
13541
13555
  //#endregion
13542
13556
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/utils/getElementTransform.mjs
13543
- function Y_(e, t) {
13557
+ function Z_(e, t) {
13544
13558
  let n = (t ?? br(e).getComputedStyle(e)).transform, r = 0, i = 0, a = 1;
13545
13559
  if (n && n !== "none") {
13546
13560
  let e = n.match(/matrix(?:3d)?\(([^)]+)\)/);
@@ -13557,7 +13571,7 @@ function Y_(e, t) {
13557
13571
  }
13558
13572
  //#endregion
13559
13573
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/utils/useSwipeDismiss.mjs
13560
- function X_(e, t, n) {
13574
+ function Q_(e, t, n) {
13561
13575
  switch (e) {
13562
13576
  case "up": return -n;
13563
13577
  case "down": return n;
@@ -13568,15 +13582,15 @@ function X_(e, t, n) {
13568
13582
  }
13569
13583
  //#endregion
13570
13584
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/root/ToastRootCssVars.mjs
13571
- var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "--toast-swipe-movement-x", tv = "--toast-swipe-movement-y", nv = "data-swipe-direction", rv = {
13585
+ var $_ = "--toast-index", ev = "--toast-offset-y", tv = "--toast-height", nv = "--toast-swipe-movement-x", rv = "--toast-swipe-movement-y", iv = "data-swipe-direction", av = {
13572
13586
  ...nr,
13573
13587
  swipeDirection(e) {
13574
- return e ? { [nv]: e } : null;
13588
+ return e ? { [iv]: e } : null;
13575
13589
  }
13576
- }, iv = 40, av = 10, ov = .5, sv = 1, cv = `${hr},${gr}`, lv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13590
+ }, ov = 40, sv = 10, cv = .5, lv = 1, uv = `${hr},${gr}`, dv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13577
13591
  let { toast: n, render: r, className: i, swipeDirection: a = ["down", "right"], style: o, ...s } = e, c = n.positionerProps?.anchor !== void 0, l = [];
13578
13592
  c || (l = Array.isArray(a) ? a : [a]);
13579
- let u = l.length > 0, d = L_(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
13593
+ let u = l.length > 0, d = z_(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
13580
13594
  x: 0,
13581
13595
  y: 0
13582
13596
  }), [b, x] = U.useState({
@@ -13596,7 +13610,7 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13596
13610
  }), ee = U.useRef(!1), te = U.useRef({
13597
13611
  x: 0,
13598
13612
  y: 0
13599
- }), ne = U.useRef(null), re = U.useRef(null), I = 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");
13613
+ }), ne = U.useRef(null), I = 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");
13600
13614
  Cr({
13601
13615
  open: n.transitionStatus !== "ending",
13602
13616
  ref: O,
@@ -13639,10 +13653,10 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13639
13653
  te.current = e, y(e);
13640
13654
  }
13641
13655
  ur(() => () => {
13642
- re.current?.abort();
13656
+ I.current?.abort();
13643
13657
  }, []);
13644
13658
  function ue(e, t) {
13645
- let n = (e) => e > 0 ? e ** ov : -(Math.abs(e) ** ov), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
13659
+ let n = (e) => e > 0 ? e ** cv : -(Math.abs(e) ** cv), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
13646
13660
  return {
13647
13661
  x: r ? n(e) : e,
13648
13662
  y: i ? n(t) : t
@@ -13650,7 +13664,7 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13650
13664
  }
13651
13665
  let de = Er((e) => {
13652
13666
  if (e.pointerId !== ne.current) return;
13653
- ne.current = null, re.current?.abort(), re.current = null, h(!1), _(!1), D(null);
13667
+ ne.current = null, I.current?.abort(), I.current = null, h(!1), _(!1), D(null);
13654
13668
  let t = j.current;
13655
13669
  if (e.type === "pointercancel" || P.current) {
13656
13670
  le({
@@ -13660,7 +13674,7 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13660
13674
  return;
13661
13675
  }
13662
13676
  let r = te.current, i = r.x - t.x, a = r.y - t.y, o;
13663
- for (let e of l) if (X_(e, i, a) > iv) {
13677
+ for (let e of l) if (Q_(e, i, a) > ov) {
13664
13678
  o = e;
13665
13679
  break;
13666
13680
  }
@@ -13670,18 +13684,18 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13670
13684
  }), p(void 0));
13671
13685
  });
13672
13686
  function fe(e) {
13673
- if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), lr(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${cv}`))) return;
13687
+ if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), lr(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${uv}`))) return;
13674
13688
  P.current = !1, M.current = void 0, N.current = 0, ne.current = e.pointerId, A.current = {
13675
13689
  x: e.clientX,
13676
13690
  y: e.clientY
13677
13691
  }, F.current = A.current;
13678
- let t = e.currentTarget, n = Y_(t);
13692
+ let t = e.currentTarget, n = Z_(t);
13679
13693
  j.current = n, x(n), le({
13680
13694
  x: n.x,
13681
13695
  y: n.y
13682
- }), d.set("hovering", !0), h(!0), _(!1), D(null), ee.current = !0, re.current?.abort();
13696
+ }), d.set("hovering", !0), h(!0), _(!1), D(null), ee.current = !0, I.current?.abort();
13683
13697
  let r = new AbortController();
13684
- re.current = r;
13698
+ I.current = r;
13685
13699
  let i = wr(t);
13686
13700
  i.addEventListener("pointerup", de, { signal: r.signal }), i.addEventListener("pointercancel", de, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
13687
13701
  }
@@ -13700,16 +13714,16 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13700
13714
  y: F.current.y
13701
13715
  });
13702
13716
  let a = n - A.current.x, o = t - A.current.y, s = t - F.current.y, c = n - F.current.x, u = E;
13703
- if (!g && Math.sqrt(a * a + o * o) >= sv) {
13717
+ if (!g && Math.sqrt(a * a + o * o) >= lv) {
13704
13718
  _(!0);
13705
13719
  let e = l.includes("left") || l.includes("right"), t = l.includes("up") || l.includes("down");
13706
13720
  e && t && (u = Math.abs(a) > Math.abs(o) ? "horizontal" : "vertical", D(u));
13707
13721
  }
13708
13722
  let d;
13709
- 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 = X_(d, a, o), p(d));
13723
+ 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 = Q_(d, a, o), p(d));
13710
13724
  else {
13711
- let e = M.current, t = X_(e, c, s);
13712
- t > iv ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= av && (P.current = !0);
13725
+ let e = M.current, t = Q_(e, c, s);
13726
+ t > ov ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= sv && (P.current = !0);
13713
13727
  }
13714
13728
  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");
13715
13729
  u !== "vertical" && v && (m += f.x), u !== "horizontal" && y && (h += f.y), le({
@@ -13736,8 +13750,8 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13736
13750
  return {
13737
13751
  transition: m ? "none" : void 0,
13738
13752
  transform: m ? `translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})` : void 0,
13739
- [ev]: `${e}px`,
13740
- [tv]: `${t}px`
13753
+ [nv]: `${e}px`,
13754
+ [rv]: `${t}px`
13741
13755
  };
13742
13756
  }
13743
13757
  let ge = n.priority === "high", _e = {
@@ -13755,9 +13769,9 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13755
13769
  inert: yc(n.limited),
13756
13770
  style: {
13757
13771
  ...he(),
13758
- [Z_]: n.transitionStatus === "ending" ? I : ie,
13759
- [Q_]: `${ae}px`,
13760
- [$_]: n.height ? `${n.height}px` : void 0
13772
+ [$_]: n.transitionStatus === "ending" ? re : ie,
13773
+ [ev]: `${ae}px`,
13774
+ [tv]: n.height ? `${n.height}px` : void 0
13761
13775
  }
13762
13776
  }, ve = U.useMemo(() => ({
13763
13777
  toast: n,
@@ -13783,19 +13797,19 @@ var Z_ = "--toast-index", Q_ = "--toast-offset-y", $_ = "--toast-height", ev = "
13783
13797
  }, be = Sr("div", e, {
13784
13798
  ref: [t, O],
13785
13799
  state: ye,
13786
- stateAttributesMapping: rv,
13800
+ stateAttributesMapping: av,
13787
13801
  props: [_e, s]
13788
13802
  });
13789
- return /*#__PURE__*/ X(q_.Provider, {
13803
+ return /*#__PURE__*/ X(Y_.Provider, {
13790
13804
  value: ve,
13791
13805
  children: be
13792
13806
  });
13793
13807
  });
13794
- process.env.NODE_ENV !== "production" && (lv.displayName = "ToastRoot");
13808
+ process.env.NODE_ENV !== "production" && (dv.displayName = "ToastRoot");
13795
13809
  //#endregion
13796
13810
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/content/ToastContent.mjs
13797
- var uv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13798
- let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = J_(), l = U.useRef(null);
13811
+ var fv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13812
+ let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = X_(), l = U.useRef(null);
13799
13813
  return ur(() => {
13800
13814
  c();
13801
13815
  let e = l.current;
@@ -13817,19 +13831,19 @@ var uv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13817
13831
  props: a
13818
13832
  });
13819
13833
  });
13820
- process.env.NODE_ENV !== "production" && (uv.displayName = "ToastContent");
13834
+ process.env.NODE_ENV !== "production" && (fv.displayName = "ToastContent");
13821
13835
  //#endregion
13822
13836
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/isRenderableNode.mjs
13823
- function dv(e) {
13824
- return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(dv);
13837
+ function pv(e) {
13838
+ return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(pv);
13825
13839
  }
13826
- function fv(e) {
13827
- return /*#__PURE__*/ U.isValidElement(e) && dv(e.props.children);
13840
+ function mv(e) {
13841
+ return /*#__PURE__*/ U.isValidElement(e) && pv(e.props.children);
13828
13842
  }
13829
13843
  //#endregion
13830
13844
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/utils/useToastLabelPart.mjs
13831
- function pv(e, t, n) {
13832
- let { toast: r, setTitleId: i, setDescriptionId: a } = J_(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
13845
+ function hv(e, t, n) {
13846
+ let { toast: r, setTitleId: i, setDescriptionId: a } = X_(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
13833
13847
  return {
13834
13848
  id: vr(e),
13835
13849
  children: s,
@@ -13837,8 +13851,8 @@ function pv(e, t, n) {
13837
13851
  setId: o
13838
13852
  };
13839
13853
  }
13840
- function mv(e, t, n) {
13841
- let r = fv(e);
13854
+ function gv(e, t, n) {
13855
+ let r = mv(e);
13842
13856
  return ur(() => {
13843
13857
  if (r) return n(t), () => {
13844
13858
  n((e) => e === t ? void 0 : e);
@@ -13851,9 +13865,9 @@ function mv(e, t, n) {
13851
13865
  }
13852
13866
  //#endregion
13853
13867
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/description/ToastDescription.mjs
13854
- var hv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13855
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = pv(a, o, "description");
13856
- return mv(Sr("p", e, {
13868
+ var _v = /*#__PURE__*/ U.forwardRef(function(e, t) {
13869
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = hv(a, o, "description");
13870
+ return gv(Sr("p", e, {
13857
13871
  ref: t,
13858
13872
  state: { type: u },
13859
13873
  props: {
@@ -13863,12 +13877,12 @@ var hv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13863
13877
  }
13864
13878
  }), c, d);
13865
13879
  });
13866
- process.env.NODE_ENV !== "production" && (hv.displayName = "ToastDescription");
13880
+ process.env.NODE_ENV !== "production" && (_v.displayName = "ToastDescription");
13867
13881
  //#endregion
13868
13882
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/title/ToastTitle.mjs
13869
- var gv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13870
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = pv(a, o, "title");
13871
- return mv(Sr("h2", e, {
13883
+ var vv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13884
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = hv(a, o, "title");
13885
+ return gv(Sr("h2", e, {
13872
13886
  ref: t,
13873
13887
  state: { type: u },
13874
13888
  props: {
@@ -13878,11 +13892,11 @@ var gv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13878
13892
  }
13879
13893
  }), c, d);
13880
13894
  });
13881
- process.env.NODE_ENV !== "production" && (gv.displayName = "ToastTitle");
13895
+ process.env.NODE_ENV !== "production" && (vv.displayName = "ToastTitle");
13882
13896
  //#endregion
13883
13897
  //#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/useToastManager.mjs
13884
- function _v() {
13885
- let e = L_(), t = e.useState("toasts");
13898
+ function yv() {
13899
+ let e = z_(), t = e.useState("toasts");
13886
13900
  return U.useMemo(() => ({
13887
13901
  toasts: t,
13888
13902
  add: e.addToast,
@@ -13893,7 +13907,7 @@ function _v() {
13893
13907
  }
13894
13908
  //#endregion
13895
13909
  //#region src/elements/Toast/components/ToastCloseButton.tsx
13896
- var vv = ({ onClose: e }) => {
13910
+ var bv = ({ onClose: e }) => {
13897
13911
  let t = V();
13898
13912
  return /* @__PURE__ */ X("div", {
13899
13913
  className: "dark flex-shrink-0",
@@ -13906,13 +13920,13 @@ var vv = ({ onClose: e }) => {
13906
13920
  label: t.actions.close
13907
13921
  })
13908
13922
  });
13909
- }, yv = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
13923
+ }, xv = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
13910
13924
  className: "absolute bottom-0 left-0 right-0 h-[3px] w-full overflow-hidden rounded-b-lg",
13911
13925
  children: /* @__PURE__ */ X("div", {
13912
13926
  className: H("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),
13913
13927
  style: { animationDuration: `${e}ms` }
13914
13928
  })
13915
- }), bv = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
13929
+ }), Sv = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
13916
13930
  className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
13917
13931
  children: [e.map((e) => /* @__PURE__ */ X("div", {
13918
13932
  onClick: () => n(e),
@@ -13927,7 +13941,7 @@ var vv = ({ onClose: e }) => {
13927
13941
  size: "sm",
13928
13942
  onClick: () => n(e)
13929
13943
  }, `button-${e.label}`))]
13930
- }), xv = (e, t) => {
13944
+ }), Cv = (e, t) => {
13931
13945
  let n = Uo(e);
13932
13946
  return {
13933
13947
  buttonActions: n.filter((e) => e.type === "button"),
@@ -13937,7 +13951,7 @@ var vv = ({ onClose: e }) => {
13937
13951
  e.type === "button" && e.onClick(), e.keepOpen || t?.();
13938
13952
  }
13939
13953
  };
13940
- }, Sv = cc({
13954
+ }, wv = cc({
13941
13955
  Title: ({ className: e, children: t }) => /* @__PURE__ */ X("p", {
13942
13956
  className: e,
13943
13957
  children: t
@@ -13947,30 +13961,30 @@ var vv = ({ onClose: e }) => {
13947
13961
  children: t
13948
13962
  }),
13949
13963
  inStack: !1
13950
- }), Cv = () => fc(Sv), wv = (e) => H("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"), Tv = Nn({
13964
+ }), Tv = () => fc(wv), Ev = (e) => H("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"), Dv = Nn({
13951
13965
  base: "text-base font-medium text-f1-foreground-inverse",
13952
13966
  variants: { hasIcon: {
13953
13967
  true: "pt-[3px]",
13954
13968
  false: ""
13955
13969
  } },
13956
13970
  defaultVariants: { hasIcon: !1 }
13957
- }), Ev = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", Dv = {
13971
+ }), Ov = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", kv = {
13958
13972
  error: "critical",
13959
13973
  warning: "warning",
13960
13974
  success: "positive",
13961
13975
  loading: null,
13962
13976
  default: null
13963
- }, Ov = {
13977
+ }, Av = {
13964
13978
  error: "bg-f1-icon-critical",
13965
13979
  warning: "bg-f1-icon-warning",
13966
13980
  success: "bg-f1-icon-positive",
13967
13981
  loading: "bg-f1-foreground-inverse-secondary",
13968
13982
  default: "bg-f1-foreground-inverse-secondary"
13969
- }, kv = lc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
13970
- let { Title: l, Description: u, inStack: d } = Cv(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = xv(a, i), g = Dv[n], _ = n === "loading", v = !_ && r != null && r > 0;
13983
+ }, jv = lc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
13984
+ let { Title: l, Description: u, inStack: d } = Tv(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = Cv(a, i), g = kv[n], _ = n === "loading", v = !_ && r != null && r > 0;
13971
13985
  return /* @__PURE__ */ Z("div", {
13972
13986
  ref: c,
13973
- className: wv(d),
13987
+ className: Ev(d),
13974
13988
  children: [/* @__PURE__ */ Z("div", {
13975
13989
  className: H("flex flex-row gap-3", t ? "items-start" : "items-center"),
13976
13990
  children: [
@@ -13993,44 +14007,44 @@ var vv = ({ onClose: e }) => {
13993
14007
  className: "flex flex-1 animate-toast-content-in flex-col gap-1 motion-reduce:animate-none",
13994
14008
  children: [
13995
14009
  e ? /* @__PURE__ */ X(l, {
13996
- className: Tv({ hasIcon: !!g || _ }),
14010
+ className: Dv({ hasIcon: !!g || _ }),
13997
14011
  children: e
13998
14012
  }) : null,
13999
14013
  t && e ? /* @__PURE__ */ X(u, {
14000
- className: Ev,
14014
+ className: Ov,
14001
14015
  children: t
14002
14016
  }) : null,
14003
14017
  t && !e ? /* @__PURE__ */ X(l, {
14004
- className: Ev,
14018
+ className: Ov,
14005
14019
  children: t
14006
14020
  }) : null
14007
14021
  ]
14008
14022
  }, s),
14009
- /* @__PURE__ */ X(bv, {
14023
+ /* @__PURE__ */ X(Sv, {
14010
14024
  linkActions: p,
14011
14025
  buttonActions: f,
14012
14026
  onActionClick: h
14013
14027
  }),
14014
- i && !_ && (!m || !v) ? /* @__PURE__ */ X(vv, { onClose: i }) : null
14028
+ i && !_ && (!m || !v) ? /* @__PURE__ */ X(bv, { onClose: i }) : null
14015
14029
  ]
14016
- }), v ? /* @__PURE__ */ X(yv, {
14030
+ }), v ? /* @__PURE__ */ X(xv, {
14017
14031
  duration: r,
14018
- color: Ov[n]
14032
+ color: Av[n]
14019
14033
  }, o) : null]
14020
14034
  });
14021
14035
  });
14022
- kv.displayName = "F0Toast";
14036
+ jv.displayName = "F0Toast";
14023
14037
  //#endregion
14024
14038
  //#region src/elements/Toast/F0MessageToast.tsx
14025
- var Av = (e) => e instanceof Element && e.closest("button, a") !== null, jv = lc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
14026
- let d = V(), { Title: f, Description: p, inStack: m } = Cv(), h = () => {
14039
+ var Mv = (e) => e instanceof Element && e.closest("button, a") !== null, Nv = lc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
14040
+ let d = V(), { Title: f, Description: p, inStack: m } = Tv(), h = () => {
14027
14041
  a?.(), s?.();
14028
14042
  }, g = o != null && o > 0;
14029
14043
  return /* @__PURE__ */ Z("div", {
14030
14044
  ref: u,
14031
- className: H(wv(m), a && "cursor-pointer"),
14045
+ className: H(Ev(m), a && "cursor-pointer"),
14032
14046
  onClick: a && !m ? (e) => {
14033
- Av(e.target) || h();
14047
+ Mv(e.target) || h();
14034
14048
  } : void 0,
14035
14049
  children: [
14036
14050
  a ? /* @__PURE__ */ X("button", {
@@ -14074,44 +14088,44 @@ var Av = (e) => e instanceof Element && e.closest("button, a") !== null, jv = lc
14074
14088
  }, l),
14075
14089
  s ? /* @__PURE__ */ X("div", {
14076
14090
  className: "relative flex-shrink-0",
14077
- children: /* @__PURE__ */ X(vv, { onClose: s })
14091
+ children: /* @__PURE__ */ X(bv, { onClose: s })
14078
14092
  }) : null
14079
14093
  ]
14080
14094
  }),
14081
- g ? /* @__PURE__ */ X(yv, {
14095
+ g ? /* @__PURE__ */ X(xv, {
14082
14096
  duration: o,
14083
14097
  color: "bg-f1-foreground-inverse-secondary"
14084
14098
  }, c) : null
14085
14099
  ]
14086
14100
  });
14087
14101
  });
14088
- jv.displayName = "F0MessageToast";
14102
+ Nv.displayName = "F0MessageToast";
14089
14103
  //#endregion
14090
14104
  //#region src/elements/Toast/stack/ToastItem.tsx
14091
- var Mv = H("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", or(), "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]"), Nv = H("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]"), Pv = ["down", "right"], Fv = {
14092
- Title: ({ className: e, children: t }) => /* @__PURE__ */ X(gv, {
14105
+ var Pv = H("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", or(), "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]"), Fv = H("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]"), Iv = ["down", "right"], Lv = {
14106
+ Title: ({ className: e, children: t }) => /* @__PURE__ */ X(vv, {
14093
14107
  className: e,
14094
14108
  render: /* @__PURE__ */ X("p", {}),
14095
14109
  children: t
14096
14110
  }),
14097
- Description: ({ className: e, children: t }) => /* @__PURE__ */ X(hv, {
14111
+ Description: ({ className: e, children: t }) => /* @__PURE__ */ X(_v, {
14098
14112
  className: e,
14099
14113
  children: t
14100
14114
  }),
14101
14115
  inStack: !0
14102
- }, Iv = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(jv, {
14116
+ }, Rv = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(Nv, {
14103
14117
  ...e.props,
14104
14118
  duration: t,
14105
14119
  countdownKey: n,
14106
14120
  contentKey: r,
14107
14121
  onClose: i
14108
- }) : /* @__PURE__ */ X(kv, {
14122
+ }) : /* @__PURE__ */ X(jv, {
14109
14123
  ...e.props,
14110
14124
  duration: t,
14111
14125
  countdownKey: n,
14112
14126
  contentKey: r,
14113
14127
  onClose: i
14114
- }), Lv = 6, Rv = (e) => {
14128
+ }), zv = 6, Bv = (e) => {
14115
14129
  let t = q(null);
14116
14130
  return e ? {
14117
14131
  onPointerDown: (e) => {
@@ -14123,28 +14137,28 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14123
14137
  },
14124
14138
  onPointerMove: (e) => {
14125
14139
  let n = t.current;
14126
- n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > Lv && (n.dragged = !0);
14140
+ n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > zv && (n.dragged = !0);
14127
14141
  },
14128
14142
  onClick: (n) => {
14129
14143
  let r = t.current?.dragged ?? !1;
14130
- t.current = null, !r && !Av(n.target) && e();
14144
+ t.current = null, !r && !Mv(n.target) && e();
14131
14145
  }
14132
14146
  } : {};
14133
- }, zv = ({ toast: e, buried: t }) => {
14134
- let { close: n } = _v(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = Rv(r ? () => {
14147
+ }, Vv = ({ toast: e, buried: t }) => {
14148
+ let { close: n } = yv(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = Bv(r ? () => {
14135
14149
  r(), n(e.id);
14136
14150
  } : void 0);
14137
- return e.data ? /* @__PURE__ */ X(lv, {
14151
+ return e.data ? /* @__PURE__ */ X(dv, {
14138
14152
  toast: e,
14139
- swipeDirection: Pv,
14153
+ swipeDirection: Iv,
14140
14154
  "data-buried": t ? "" : void 0,
14141
- className: Mv,
14155
+ className: Pv,
14142
14156
  ...i,
14143
- children: /* @__PURE__ */ X(uv, {
14144
- className: Nv,
14145
- children: /* @__PURE__ */ X(Sv.Provider, {
14146
- value: Fv,
14147
- children: /* @__PURE__ */ X(Iv, {
14157
+ children: /* @__PURE__ */ X(fv, {
14158
+ className: Fv,
14159
+ children: /* @__PURE__ */ X(wv.Provider, {
14160
+ value: Lv,
14161
+ children: /* @__PURE__ */ X(Rv, {
14148
14162
  data: e.data,
14149
14163
  duration: e.timeout,
14150
14164
  countdownKey: `${e.data.revision}-${e.updateKey ?? 0}`,
@@ -14154,18 +14168,18 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14154
14168
  })
14155
14169
  })
14156
14170
  }) : null;
14157
- }, Bv = 12, Vv = 6, Hv = 36, Uv = 2, Wv = 3, Gv = (e) => {
14171
+ }, Hv = 12, Uv = 6, Wv = 36, Gv = 2, Kv = 3, qv = (e) => {
14158
14172
  if (e.length === 0) return {
14159
14173
  collapsed: 0,
14160
14174
  expanded: 0
14161
14175
  };
14162
- let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + Bv * (e.length - 1);
14176
+ let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + Hv * (e.length - 1);
14163
14177
  return {
14164
- collapsed: t + Vv * Math.min(e.length - 1, Uv),
14165
- expanded: n + (e.length > 1 ? Hv : 0)
14178
+ collapsed: t + Uv * Math.min(e.length - 1, Gv),
14179
+ expanded: n + (e.length > 1 ? Wv : 0)
14166
14180
  };
14167
- }, Kv = ({ onClear: e }) => {
14168
- let t = V(), { close: n } = _v();
14181
+ }, Jv = ({ onClear: e }) => {
14182
+ let t = V(), { close: n } = yv();
14169
14183
  return /* @__PURE__ */ X("div", {
14170
14184
  className: H("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]"),
14171
14185
  children: /* @__PURE__ */ X(R, {
@@ -14177,18 +14191,18 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14177
14191
  }
14178
14192
  })
14179
14193
  });
14180
- }, qv = (e) => {
14181
- let { update: t } = _v();
14194
+ }, Yv = (e) => {
14195
+ let { update: t } = yv();
14182
14196
  hc(function() {
14183
14197
  e.forEach((e, n) => {
14184
14198
  if (!e.data) return;
14185
- let r = n >= Wv ? 0 : e.data.duration;
14199
+ let r = n >= Kv ? 0 : e.data.duration;
14186
14200
  (e.timeout ?? 0) !== r && t(e.id, { timeout: r });
14187
14201
  });
14188
14202
  }, [e, t]);
14189
- }, Jv = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
14190
- let { toasts: i } = _v(), 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));
14191
- qv(o), mc(n, () => ({
14203
+ }, Xv = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
14204
+ let { toasts: i } = yv(), 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));
14205
+ Yv(o), mc(n, () => ({
14192
14206
  isInUse: () => a.current?.hasAttribute("data-expanded") ?? !1,
14193
14207
  frontToastId: () => o[0]?.id
14194
14208
  }), [o]);
@@ -14196,28 +14210,28 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14196
14210
  G(function() {
14197
14211
  r(u);
14198
14212
  }, [u, r]);
14199
- let d = Gv(o), f = {
14213
+ let d = qv(o), f = {
14200
14214
  "--stack-collapsed-height": `${d.collapsed}px`,
14201
14215
  "--stack-expanded-height": `${d.expanded}px`,
14202
- "--clear-all-row": `${Hv}px`
14216
+ "--clear-all-row": `${Wv}px`
14203
14217
  };
14204
- return /* @__PURE__ */ Z(K_, {
14218
+ return /* @__PURE__ */ Z(J_, {
14205
14219
  ref: a,
14206
14220
  className: H("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]"),
14207
14221
  "aria-label": e,
14208
14222
  "data-clearing": l ? "" : void 0,
14209
14223
  "data-window-blurred": t ? "" : void 0,
14210
14224
  style: f,
14211
- children: [i.map((e) => /* @__PURE__ */ X(zv, {
14225
+ children: [i.map((e) => /* @__PURE__ */ X(Vv, {
14212
14226
  toast: e,
14213
- buried: o.indexOf(e) >= Wv
14214
- }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(Kv, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
14227
+ buried: o.indexOf(e) >= Kv
14228
+ }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(Jv, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
14215
14229
  });
14216
- }, Yv = "#content", Xv = (e) => {
14230
+ }, Zv = "#content", Qv = (e) => {
14217
14231
  let [t, n] = J({ inset: 0 });
14218
14232
  return dn(function() {
14219
14233
  if (!e || typeof document > "u") return;
14220
- let t = document.querySelector(Yv);
14234
+ let t = document.querySelector(Zv);
14221
14235
  if (!t) {
14222
14236
  n({ inset: 0 });
14223
14237
  return;
@@ -14237,7 +14251,7 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14237
14251
  i.disconnect(), window.removeEventListener("resize", r), window.removeEventListener("scroll", r, !0);
14238
14252
  };
14239
14253
  }, [e]), t;
14240
- }, Zv = () => {
14254
+ }, $v = () => {
14241
14255
  let [e, t] = J(!1);
14242
14256
  return G(function() {
14243
14257
  let e = () => t(!0), n = () => t(!1);
@@ -14245,26 +14259,26 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14245
14259
  window.removeEventListener("blur", e), window.removeEventListener("focus", n);
14246
14260
  };
14247
14261
  }, []), e;
14248
- }, Qv = Infinity, $v = ({ messages: e, app: t }) => {
14249
- let [n, r] = J(!1), [i, a] = J(!1), o = Xv(n || i), s = Zv(), c = V();
14262
+ }, ey = Infinity, ty = ({ messages: e, app: t }) => {
14263
+ let [n, r] = J(!1), [i, a] = J(!1), o = Qv(n || i), s = $v(), c = V();
14250
14264
  return /* @__PURE__ */ X("div", {
14251
14265
  className: "pointer-events-none fixed z-[100] flex flex-col-reverse items-center overflow-y-auto overflow-x-hidden py-6",
14252
14266
  style: o,
14253
14267
  children: /* @__PURE__ */ Z("div", {
14254
14268
  className: "flex w-[calc(100%-2rem)] shrink-0 flex-col gap-3 sm:w-96",
14255
- children: [/* @__PURE__ */ X(U_, {
14269
+ children: [/* @__PURE__ */ X(G_, {
14256
14270
  toastManager: e.manager,
14257
- limit: Qv,
14258
- children: /* @__PURE__ */ X(Jv, {
14271
+ limit: ey,
14272
+ children: /* @__PURE__ */ X(Xv, {
14259
14273
  label: c.toasts.messages,
14260
14274
  isWindowBlurred: s,
14261
14275
  stackRef: e.stackRef,
14262
14276
  onHasToastsChange: r
14263
14277
  })
14264
- }), /* @__PURE__ */ X(U_, {
14278
+ }), /* @__PURE__ */ X(G_, {
14265
14279
  toastManager: t.manager,
14266
- limit: Qv,
14267
- children: /* @__PURE__ */ X(Jv, {
14280
+ limit: ey,
14281
+ children: /* @__PURE__ */ X(Xv, {
14268
14282
  label: c.notifications,
14269
14283
  isWindowBlurred: s,
14270
14284
  stackRef: t.stackRef,
@@ -14273,7 +14287,7 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14273
14287
  })]
14274
14288
  })
14275
14289
  });
14276
- }, ey = ({ children: e, portalTargets: t = {
14290
+ }, ny = ({ children: e, portalTargets: t = {
14277
14291
  mobile: "#f0-overlay-root",
14278
14292
  desktop: "#f0-overlay-root"
14279
14293
  } }) => {
@@ -14282,7 +14296,7 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14282
14296
  let { id: e, release: t } = He.acquireRenderer();
14283
14297
  return n.current = e, t;
14284
14298
  }, []);
14285
- let i = r !== null && r === n.current, a = F_(), [o, s] = J(null), [c, l] = J(0), u = q(null);
14299
+ let i = r !== null && r === n.current, a = L_(), [o, s] = J(null), [c, l] = J(0), u = q(null);
14286
14300
  return G(function() {
14287
14301
  if (typeof document > "u") return;
14288
14302
  let e = a ? t?.mobile || "body" : t?.desktop || "body", n = document.querySelector(e) ?? document.body;
@@ -14291,11 +14305,11 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14291
14305
  a,
14292
14306
  t?.mobile,
14293
14307
  t?.desktop
14294
- ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? vc(/* @__PURE__ */ X(sc, { children: /* @__PURE__ */ X($v, {
14295
- messages: Ht,
14296
- app: ht
14308
+ ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? vc(/* @__PURE__ */ X(sc, { children: /* @__PURE__ */ X(ty, {
14309
+ messages: Vt,
14310
+ app: gt
14297
14311
  }) }, c), o) : null, e] });
14298
- }, ty = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1 }) => /* @__PURE__ */ X(Ct, {
14312
+ }, ry = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1 }) => /* @__PURE__ */ X(Pt, {
14299
14313
  reducedMotion: "user",
14300
14314
  children: /* @__PURE__ */ X(Wn, {
14301
14315
  isDev: s,
@@ -14308,7 +14322,7 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14308
14322
  ...i,
14309
14323
  children: /* @__PURE__ */ X(An, {
14310
14324
  ...t,
14311
- children: /* @__PURE__ */ X(Jn, { children: /* @__PURE__ */ X(kt, {
14325
+ children: /* @__PURE__ */ X(Jn, { children: /* @__PURE__ */ X(T, {
14312
14326
  initiallyEnabled: n,
14313
14327
  children: /* @__PURE__ */ X(co, {
14314
14328
  ...r,
@@ -14319,11 +14333,11 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14319
14333
  })
14320
14334
  })
14321
14335
  })
14322
- }), ny = cc(null), ry = ({ children: e, fullScreen: t = !0 }) => {
14336
+ }), iy = cc(null), ay = ({ children: e, fullScreen: t = !0 }) => {
14323
14337
  let n = q(null), [r, i] = J(n.current);
14324
14338
  return dn(() => {
14325
14339
  i(n.current);
14326
- }, []), /* @__PURE__ */ X(ny.Provider, {
14340
+ }, []), /* @__PURE__ */ X(iy.Provider, {
14327
14341
  value: { element: r },
14328
14342
  children: /* @__PURE__ */ Z("div", {
14329
14343
  ref: n,
@@ -14335,7 +14349,7 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14335
14349
  })]
14336
14350
  })
14337
14351
  });
14338
- }, iy = cc(void 0), ay = () => fc(iy), oy = ({ 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, formComponent: f, map: p }) => /* @__PURE__ */ X(ty, {
14352
+ }, oy = cc(void 0), sy = () => fc(oy), cy = ({ 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, formComponent: f, map: p }) => /* @__PURE__ */ X(ry, {
14339
14353
  link: n,
14340
14354
  privacyModeInitiallyEnabled: r,
14341
14355
  image: i,
@@ -14345,15 +14359,15 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14345
14359
  isDev: c,
14346
14360
  showExperimentalWarnings: u,
14347
14361
  renderDataTestIdAttribute: d,
14348
- children: /* @__PURE__ */ X(ry, {
14362
+ children: /* @__PURE__ */ X(ay, {
14349
14363
  ...t,
14350
14364
  children: /* @__PURE__ */ X(mi, {
14351
14365
  handler: l,
14352
14366
  children: /* @__PURE__ */ X(oi, { children: /* @__PURE__ */ X(ot, {
14353
14367
  ...p,
14354
- children: /* @__PURE__ */ X(iy.Provider, {
14368
+ children: /* @__PURE__ */ X(oy.Provider, {
14355
14369
  value: f,
14356
- children: /* @__PURE__ */ X($d, { children: /* @__PURE__ */ X(ey, {
14370
+ children: /* @__PURE__ */ X($d, { children: /* @__PURE__ */ X(ny, {
14357
14371
  portalTargets: {
14358
14372
  mobile: "#f0-overlay-root",
14359
14373
  desktop: "#f0-overlay-root"
@@ -14366,4 +14380,4 @@ var Mv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
14366
14380
  })
14367
14381
  });
14368
14382
  //#endregion
14369
- export { ci as AiChatTranslationsProvider, Qe as AreaChart, Ys as Await, Dt as BarChart, Bl as BarChartSkeleton, Ye as CardSelectableContainer, yt as CategoryBarChart, Ai as ChatSpinner, jo as Chip, Br as CollapsibleGroup, at as ComboChart, nt as DATA_COLLECTION_URL_PARAMS, Ie as DATA_COLLECTION_URL_PARAM_PREFIX, xl as Dashboard, qe as DataChartEmptyStateView, In as DataTestIdWrapper, Ut as DndProvider, no as DropOverlay, zn as EmojiImage, kd as F0Accordion, ct as F0ActionBar, Si as F0ActionItem, Ia as F0AiChat, ni as F0AiChatCreditsButton, Hr as F0AiChatHeader, ti as F0AiChatHistory, Aa as F0AiChatProvider, Yr as F0AiChatTextArea, Nr as F0AiChatUsageLimitsButton, ro as F0AiFormRegistryProvider, ei as F0AiInsightCard, Gr as F0AiMask, ii as F0AiMessageSources, Lr as F0AiMessagesContainer, pa as F0AiPong, ri as F0AiProcessingOverlay, Ur as F0AiProposalCard, Xr as F0AiTableCard, o as F0Alert, N_ as F0AnalyticsDashboard, Sd as F0AudioPlayer, Cd as F0AudioPlayerCard, Kr as F0AuraVoiceAnimation, Eo as F0Avatar, va as F0AvatarAlert, _o as F0AvatarCompany, Xa as F0AvatarDate, oo as F0AvatarEmoji, vo as F0AvatarFile, po as F0AvatarIcon, ho as F0AvatarList, uo as F0AvatarModule, To as F0AvatarPerson, so as F0AvatarTeam, nu as F0BigNumber, Th as F0BookAMeetingCard, Or as F0Box, R as F0Button, Hi as F0ButtonDropdown, Ks as F0ButtonToggle, jr as F0CanvasCard, qa as F0CanvasPanel, io as F0Card, _a as F0CardRow, ds as F0Checkbox, Nd as F0ChipList, zr as F0ClarifyingPanel, wt as F0DataChart, x as F0DatePicker, Se as F0DatePickerInline, xh as F0DemoCard, Ga as F0Dialog, w as F0DialogAlikeContext, M as F0DialogAlikeProvider, Ho as F0DialogContext, Ps as F0DialogProvider, ic as F0DocumentViewer, Vd as F0Drawer, i as F0DurationInput, Ws as F0EventCatcherProvider, Ch as F0FAQCard, Ni as F0FileItem, Wd as F0FilterPickerContent, m as F0Form, af as F0FormField, dl as F0GridStack, Zr as F0HILActionConfirmation, _e as F0Heading, z as F0Icon, sa as F0Link, wh as F0ModuleCard, $t as F0NotesTextEditor, Re as F0NotesTextEditorSkeleton, ae as F0NumberInput, p as F0NumberInputInline, Oa as F0OneIcon, Ma as F0OneSwitch, rc as F0PdfViewer, oy as F0Provider, Eh as F0QuestionCardMultiStep, ma as F0RichTextDisplay, F as F0RichTextEditor, Ds as F0SearchInput, zs as F0Select, lt as F0SelectInline, Kf as F0Slider, op as F0TableOfContentPopover, Xo as F0TagAlert, Lo as F0TagBalance, $o as F0TagCompany, Yo as F0TagDot, Ns as F0TagList, qo as F0TagPerson, Ss as F0TagRaw, Mo as F0TagStatus, xs as F0TagTeam, Vt as F0Text, ve as F0TextAreaInput, Yt as F0TextAreaInputInline, fa as F0TextInput, u as F0TextInputInline, l as F0TimelineRow, tc as F0VideoPlayer, Of as F0WizardForm, _s as F1SearchBox, oe as FILE_TYPES, Ii as FileItem, oi as FormCardValueFormatterProvider, ql as FunnelChartSkeleton, mo as GROUP_ID_SYMBOL, wo as GROUP_KEY_SEPARATOR, Xl as GaugeChartSkeleton, Zl as HeatmapChartSkeleton, Ll as HomeLayout, vt as InlineFieldRow, it as InlineFieldRowList, Ui as Input, Pl as Layout, tt as LineChart, Ul as LineChartSkeleton, Jt as MAX_URL_FILTER_VALUES, Xt as NotesTextEditor, me as NotesTextEditorSkeleton, pt as NumberInput, hs as OneCalendar, os as OneCalendarInternal, $n as OneEllipsis, E as OneEmptyState, Fs as OneFilterPicker, Fe as PieChart, Jl as PieChartSkeleton, Za as PongBall, kt as PrivacyModeProvider, ch as ProductBlankslate, $e as ProductCard, dh as ProductModal, ph as ProductWidget, qt as ProgressBarChart, tn as RadarChart, Yl as RadarChartSkeleton, Qa as RichTextDisplay, ne as RichTextEditor, Gl as ScatterChartSkeleton, Fl as StandardLayout, Mm as SurveyAllQuestionsLoadingSkeleton, $m as SurveyAnsweringForm, wm as SurveyFormBuilder, nh as SurveySampleQuestion, Nm as SurveySteppedLoadingSkeleton, ws as Tag, ks as TagCounter, h as Textarea, $r as ThreadItem, qr as ThreadListSkeleton, ey as ToastProvider, Il as TwoColumnLayout, g as UPLOAD_INPUT_ID, pe as UpsellRequestResponseDialog, gh as UpsellingAlert, vh as UpsellingBanner, P as UpsellingButton, bh as UpsellingPopover, Be as VerticalBarChart, ls as WeekStartDay, Le as actionBarStatuses, Ir as actionItemStatuses, Ki as adaptDataAdapterToInfiniteScroll, si as aiTranslations, Id as alertVariantOptions, ou as audioPlayerSizes, Rl as avatarVariants, nn as buildDataCollectionUrlParams, Vn as buildTranslations, au as buttonDropdownModes, iu as buttonDropdownSizes, ru as buttonDropdownVariants, _l as buttonSizes, Me as buttonToggleColors, le as buttonToggleSizes, t as buttonToggleVariants, gl as buttonVariants, Ad as cardAlertVariants, ea as cardImageAspectRatios, bi as cardImageFits, Xi as cardImageSizes, Ao as chartColorTokens, Gs as chipVariants, up as computeSectionEndIds, nc as configurePdfWorker, Wr as contentTypes, Ke as createAtlaskitDriver, ts as createDataSourceDefinition, Jd as createF0FormDefinitionTester, qd as createF0FormTester, ml as createPageLayoutBlock, hl as createPageLayoutBlockGroup, kr as createPersonMentionSource, Ld as dataCollectionLocalStorageHandler, Pd as datePickerInlineDismissReasons, Fd as datepickerSizes, ao as defaultTranslations, fi as defineAvailableForm, Gd as describeFormSchema, At as dialog, At as dialogs, k as drawers, ga as durationInputSizes, Pa as durationUnits, en as evaluateRenderIf, qn as experimental, hi as f0FileItemSizes, oa as f0FormField, Na as fieldsToSeconds, sp as flattenElements, cu as formatPlaybackTime, Pf as forms, Pe as generateAnchorId, ns as getAnimationVariants, Pi as getDataCollectionStorageKey, rs as getDataSourcePaginationType, sn as getEmojiLabel, aa as getF0Config, Hs as getGranularityDefinition, ps as getGranularityDefinitions, qs as getGranularitySimpleDefinition, ze as getSchemaDefinition, Bs as granularityDefinitions, ua as hasF0Config, Bi as inferFieldType, lp as injectSectionEnds, bo as isInfiniteScrollPagination, Co as isPageBasedPagination, li as isZodType, wd as linkVariants, Fr as markdownRenderers, Ji as mergeDataCollectionFilters, fo as modules, Pr as oneIconSizes, Ve as parseDataCollectionUrlParams, Ff as pdfScales, Ee as predefinedPresets, Rs as rangeSeparator, pi as readDataCollectionStorage, cp as reconstructElements, $a as resolveDataCollectionFilters, As as resolveGranularityDefinition, Oe as resolveItemNeighbors, Ot as resolveWindowNeighbors, Ha as secondsToFields, Da as secondsToVisibleFields, If as selectInlineDismissReasons, ye as selectSizes, we as selectVariants, Qt as setDataCollectionUrlParams, Lf as sliderTooltipModes, ge as syncDataCollectionUrlParams, Jf as tagDotColors, qf as timelineRowStatuses, Pt as toasts, Ya as unwrapZodSchema, Jr as usageLimitsPopoverSides, eo as useAiChat, Vr as useAiChatTranslations, Nt as useAudioPlayer, ai as useCanvasEntity, Qr as useChatHistory, go as useData, Ro as useDataSource, A as useDataSourceItemNavigation, hu as useDerivedTranscription, Ft as useDndEvents, Ue as useDraggable, gt as useDroppableList, Rn as useEmojiConfetti, $i as useF0AiFormRegistry, Vo as useF0Dialog, de as useF0DialogAlikeContext, Et as useF0Form, Mt as useF0FormDefinition, Rr as useFormCardValueFormatter, ay as useFormComponent, zo as useGroups, P_ as useIsDesktop, F_ as useIsMobile, D as useItemNeighbors, O as usePrivacyMode, hn as useReducedMotion, Zt as useSchemaDefinition, ko as useSelectable, Mr as useSetFormCardValueFormatter, Ar as useToolCallId, On as useXRay, L as withDataTestId, d as writeDataCollectionStorage };
14383
+ export { ci as AiChatTranslationsProvider, Qe as AreaChart, Ys as Await, Dt as BarChart, Bl as BarChartSkeleton, Ye as CardSelectableContainer, bt as CategoryBarChart, Ai as ChatSpinner, jo as Chip, Br as CollapsibleGroup, at as ComboChart, nt as DATA_COLLECTION_URL_PARAMS, Ie as DATA_COLLECTION_URL_PARAM_PREFIX, xl as Dashboard, qe as DataChartEmptyStateView, In as DataTestIdWrapper, Ht as DndProvider, no as DropOverlay, zn as EmojiImage, kd as F0Accordion, lt as F0ActionBar, Si as F0ActionItem, Ia as F0AiChat, ni as F0AiChatCreditsButton, Hr as F0AiChatHeader, ti as F0AiChatHistory, Aa as F0AiChatProvider, Yr as F0AiChatTextArea, Nr as F0AiChatUsageLimitsButton, ro as F0AiFormRegistryProvider, ei as F0AiInsightCard, Gr as F0AiMask, ii as F0AiMessageSources, Lr as F0AiMessagesContainer, pa as F0AiPong, ri as F0AiProcessingOverlay, Ur as F0AiProposalCard, Xr as F0AiTableCard, a as F0Alert, F_ as F0AnalyticsDashboard, Sd as F0AudioPlayer, Cd as F0AudioPlayerCard, Kr as F0AuraVoiceAnimation, Eo as F0Avatar, va as F0AvatarAlert, _o as F0AvatarCompany, Xa as F0AvatarDate, oo as F0AvatarEmoji, vo as F0AvatarFile, po as F0AvatarIcon, ho as F0AvatarList, uo as F0AvatarModule, To as F0AvatarPerson, so as F0AvatarTeam, nu as F0BigNumber, Th as F0BookAMeetingCard, Or as F0Box, R as F0Button, Hi as F0ButtonDropdown, Ks as F0ButtonToggle, jr as F0CanvasCard, qa as F0CanvasPanel, io as F0Card, _a as F0CardRow, ds as F0Checkbox, Nd as F0ChipList, zr as F0ClarifyingPanel, wt as F0DataChart, v as F0DatePicker, be as F0DatePickerInline, xh as F0DemoCard, Ga as F0Dialog, x as F0DialogAlikeContext, k as F0DialogAlikeProvider, Ho as F0DialogContext, Ps as F0DialogProvider, ic as F0DocumentViewer, Vd as F0Drawer, i as F0DurationInput, Ws as F0EventCatcherProvider, Ch as F0FAQCard, Ni as F0FileItem, Wd as F0FilterPickerContent, f as F0Form, af as F0FormField, dl as F0GridStack, Zr as F0HILActionConfirmation, he as F0Heading, z as F0Icon, sa as F0Link, wh as F0ModuleCard, Qt as F0NotesTextEditor, Re as F0NotesTextEditorSkeleton, I as F0NumberInput, d as F0NumberInputInline, Oa as F0OneIcon, Ma as F0OneSwitch, rc as F0PdfViewer, cy as F0Provider, Eh as F0QuestionCardMultiStep, ma as F0RichTextDisplay, M as F0RichTextEditor, Ds as F0SearchInput, zs as F0Select, ut as F0SelectInline, Kf as F0Slider, op as F0TableOfContentPopover, Xo as F0TagAlert, Lo as F0TagBalance, $o as F0TagCompany, Yo as F0TagDot, Ns as F0TagList, qo as F0TagPerson, Ss as F0TagRaw, Mo as F0TagStatus, xs as F0TagTeam, Bt as F0Text, ge as F0TextAreaInput, Jt as F0TextAreaInputInline, fa as F0TextInput, c as F0TextInputInline, s as F0TimelineRow, tc as F0VideoPlayer, Of as F0WizardForm, _s as F1SearchBox, re as FILE_TYPES, Ii as FileItem, oi as FormCardValueFormatterProvider, ql as FunnelChartSkeleton, mo as GROUP_ID_SYMBOL, wo as GROUP_KEY_SEPARATOR, Xl as GaugeChartSkeleton, Zl as HeatmapChartSkeleton, Ll as HomeLayout, yt as InlineFieldRow, it as InlineFieldRowList, Ui as Input, Pl as Layout, tt as LineChart, Ul as LineChartSkeleton, qt as MAX_URL_FILTER_VALUES, Yt as NotesTextEditor, fe as NotesTextEditorSkeleton, mt as NumberInput, hs as OneCalendar, os as OneCalendarInternal, $n as OneEllipsis, C as OneEmptyState, Fs as OneFilterPicker, Fe as PieChart, Jl as PieChartSkeleton, Za as PongBall, T as PrivacyModeProvider, ch as ProductBlankslate, $e as ProductCard, dh as ProductModal, ph as ProductWidget, Kt as ProgressBarChart, en as RadarChart, Yl as RadarChartSkeleton, Qa as RichTextDisplay, F as RichTextEditor, Gl as ScatterChartSkeleton, Fl as StandardLayout, Mm as SurveyAllQuestionsLoadingSkeleton, $m as SurveyAnsweringForm, wm as SurveyFormBuilder, nh as SurveySampleQuestion, Nm as SurveySteppedLoadingSkeleton, ws as Tag, ks as TagCounter, p as Textarea, $r as ThreadItem, qr as ThreadListSkeleton, ny as ToastProvider, Il as TwoColumnLayout, m as UPLOAD_INPUT_ID, de as UpsellRequestResponseDialog, gh as UpsellingAlert, vh as UpsellingBanner, j as UpsellingButton, bh as UpsellingPopover, Be as VerticalBarChart, ls as WeekStartDay, Le as actionBarStatuses, Ir as actionItemStatuses, Ki as adaptDataAdapterToInfiniteScroll, si as aiTranslations, Id as alertVariantOptions, ou as audioPlayerSizes, Rl as avatarVariants, tn as buildDataCollectionUrlParams, Vn as buildTranslations, au as buttonDropdownModes, iu as buttonDropdownSizes, ru as buttonDropdownVariants, _l as buttonSizes, Me as buttonToggleColors, se as buttonToggleSizes, t as buttonToggleVariants, gl as buttonVariants, Ad as cardAlertVariants, ea as cardImageAspectRatios, bi as cardImageFits, Xi as cardImageSizes, Ao as chartColorTokens, Gs as chipVariants, up as computeSectionEndIds, nc as configurePdfWorker, Wr as contentTypes, Ke as createAtlaskitDriver, ts as createDataSourceDefinition, Jd as createF0FormDefinitionTester, qd as createF0FormTester, ml as createPageLayoutBlock, hl as createPageLayoutBlockGroup, kr as createPersonMentionSource, Ld as dataCollectionLocalStorageHandler, Pd as datePickerInlineDismissReasons, Fd as datepickerSizes, ao as defaultTranslations, fi as defineAvailableForm, Gd as describeFormSchema, kt as dialog, kt as dialogs, E as drawers, ga as durationInputSizes, Pa as durationUnits, $t as evaluateRenderIf, qn as experimental, hi as f0FileItemSizes, oa as f0FormField, Na as fieldsToSeconds, sp as flattenElements, cu as formatPlaybackTime, Pf as forms, Pe as generateAnchorId, ns as getAnimationVariants, Pi as getDataCollectionStorageKey, rs as getDataSourcePaginationType, sn as getEmojiLabel, aa as getF0Config, Hs as getGranularityDefinition, ps as getGranularityDefinitions, qs as getGranularitySimpleDefinition, ze as getSchemaDefinition, Bs as granularityDefinitions, ua as hasF0Config, Bi as inferFieldType, lp as injectSectionEnds, bo as isInfiniteScrollPagination, Co as isPageBasedPagination, li as isZodType, wd as linkVariants, Fr as markdownRenderers, Ji as mergeDataCollectionFilters, fo as modules, Pr as oneIconSizes, Ve as parseDataCollectionUrlParams, Ff as pdfScales, Te as predefinedPresets, Rs as rangeSeparator, pi as readDataCollectionStorage, cp as reconstructElements, $a as resolveDataCollectionFilters, As as resolveGranularityDefinition, Oe as resolveItemNeighbors, Ot as resolveWindowNeighbors, Ha as secondsToFields, Da as secondsToVisibleFields, If as selectInlineDismissReasons, _e as selectSizes, Se as selectVariants, Zt as setDataCollectionUrlParams, Lf as sliderTooltipModes, me as syncDataCollectionUrlParams, Jf as tagDotColors, qf as timelineRowStatuses, Nt as toasts, Ya as unwrapZodSchema, Jr as usageLimitsPopoverSides, eo as useAiChat, Vr as useAiChatTranslations, Mt as useAudioPlayer, ai as useCanvasEntity, Qr as useChatHistory, go as useData, Ro as useDataSource, D as useDataSourceItemNavigation, hu as useDerivedTranscription, Ft as useDndEvents, Ue as useDraggable, _t as useDroppableList, Rn as useEmojiConfetti, $i as useF0AiFormRegistry, Vo as useF0Dialog, le as useF0DialogAlikeContext, Et as useF0Form, jt as useF0FormDefinition, Rr as useFormCardValueFormatter, sy as useFormComponent, zo as useGroups, I_ as useIsDesktop, L_ as useIsMobile, w as useItemNeighbors, ke as usePrivacyMode, hn as useReducedMotion, Xt as useSchemaDefinition, ko as useSelectable, Mr as useSetFormCardValueFormatter, Ar as useToolCallId, On as useXRay, L as withDataTestId, l as writeDataCollectionStorage };