@factorialco/f0-react 12.6.0 → 12.8.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 (30) hide show
  1. package/dist/{ChatPostComposerDialog-Cn2genet.js → ChatPostComposerDialog-t1X_eEx-.js} +2 -2
  2. package/dist/{CoachmarkProvider-DT14x0AU.js → CoachmarkProvider-C8AfrRY-.js} +2 -2
  3. package/dist/{DocumentToolbar-C9Po6BKY.js → DocumentToolbar-CiWldz64.js} +2 -2
  4. package/dist/{DocxViewer-haxAtwwO.js → DocxViewer-ZWB-Upv4.js} +1 -1
  5. package/dist/{F0AiProcessingOverlay-CVIRG3jF.js → F0AiProcessingOverlay-BZDPV9iG.js} +2 -1
  6. package/dist/{F0CanvasPanel-Cr7KX0zD.js → F0CanvasPanel-BpJr85HN.js} +11 -10
  7. package/dist/{F0DocumentViewer-DVyc9nMF.js → F0DocumentViewer-C0Aj9x9_.js} +3 -3
  8. package/dist/F0DocumentViewer-c0OzZYZK.js +3 -0
  9. package/dist/{F0Map-D7XCm7e2.js → F0Map-CyyZmEdH.js} +3 -3
  10. package/dist/F0VideoPlayer-DcPgDbG3.js +1 -0
  11. package/dist/{F0VideoPlayer-ByIehNyD.js → F0VideoPlayer-Ob0Ocg-j.js} +1 -1
  12. package/dist/{Map-B6ueo7xJ.js → Map-CkxnszKW.js} +3 -3
  13. package/dist/{PdfThumbnail-PHUaRH8_.js → PdfThumbnail-DKDEmiH7.js} +1 -1
  14. package/dist/{SheetViewer-C1rrcfIx.js → SheetViewer-D1-JA9nb.js} +3 -3
  15. package/dist/{TextViewer-k1eayJ7W.js → TextViewer-DW_Xu4Cb.js} +1 -1
  16. package/dist/ai.d.ts +2 -2
  17. package/dist/ai.js +2 -2
  18. package/dist/component-status.js +1 -1
  19. package/dist/experimental.d.ts +409 -456
  20. package/dist/experimental.js +4 -4
  21. package/dist/{exports-CnbBeOMM.d.ts → exports-BdFDYdp1.d.ts} +85 -85
  22. package/dist/f0.d.ts +102 -99
  23. package/dist/f0.js +704 -685
  24. package/dist/{index-DE9tIS8D.d.ts → index-DIwa_k8B.d.ts} +177 -173
  25. package/dist/{maplibre-D4TgPyqe.js → maplibre-DKmCLTnt.js} +1 -1
  26. package/dist/{pdfWorker-C0ND4urI.js → pdfWorker-Ch4pdihi.js} +1 -1
  27. package/dist/{types-tNl_jMZz.d.ts → types-C6VyXC_B.d.ts} +349 -326
  28. package/package.json +1 -1
  29. package/dist/F0DocumentViewer-BLNw_SjP.js +0 -3
  30. package/dist/F0VideoPlayer-BWUvWTys.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, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as L, Pt as ne, Qn as re, Qr as ie, Qt as ae, Rn as oe, Rt as se, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-DT14x0AU.js";
2
+ import { $n as t, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as ne, Pt as re, Qn as ie, Qr as ae, Qt as oe, Rn as se, Rt as L, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-C8AfrRY-.js";
3
3
  import { A as pn, At as mn, B as hn, Dt as gn, F as _n, It as vn, Jt as yn, Lt as bn, M as xn, Mt as Sn, N as Cn, P as wn, R as Tn, U as En, V as Dn, Vt as On, Xt as kn, Yt as An, Zn as jn, _t as Mn, a as Nn, an as Pn, ar as R, b as z, cn as Fn, ct as In, dn as Ln, gn as Rn, gt as zn, hn as Bn, ht as Vn, i as Hn, in as B, ir as Un, j as Wn, jt as Gn, kt as Kn, ln as qn, lt as Jn, nn as Yn, nt as Xn, on as Zn, or as Qn, pt as $n, qt as er, rn as V, rr as tr, sn as nr, t as rr, tn as ir, ut as ar, vt as or, yt as sr, z as cr } from "./popover-BjrPOMeQ.js";
4
4
  import { A as lr, C as ur, D as dr, F as fr, I as pr, L as H, M as mr, N as hr, O as gr, P as _r, R as vr, S as yr, _ as br, b as xr, c as Sr, f as Cr, g as wr, h as Tr, j as Er, k as Dr, l as Or, m as kr, p as Ar, v as jr, w as Mr, x as Nr, y as Pr } from "./tooltip-BX4dSfeL.js";
5
5
  import { n as Fr, t as Ir } from "./F0Text-BtzfLrwP.js";
6
- import { A as Lr, C as Rr, D as zr, E as Br, F as Vr, I as Hr, L as Ur, M as Wr, N as Gr, O as Kr, P as qr, R as Jr, S as Yr, T as Xr, _ as Zr, a as Qr, b as $r, c as ei, d as ti, f as ni, g as ri, h as ii, i as ai, j as oi, k as si, l as ci, m as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi, v as _i, w as vi, x as yi, y as bi, z as xi } from "./F0AiProcessingOverlay-CVIRG3jF.js";
7
- import { $n as Si, $o as Ci, A as wi, Ar as Ti, At as Ei, B as Di, Ba as Oi, Bn as ki, Bs as Ai, D as ji, Dt as Mi, E as Ni, Es as Pi, Fa as Fi, Fr as Ii, Ft as Li, Gn as Ri, Gr as zi, Gs as Bi, Gt as Vi, Hn as Hi, Ho as Ui, Hr as Wi, Hs as Gi, Io as Ki, It as qi, Jn as Ji, Jr as Yi, Jt as Xi, Kt as Zi, Lr as Qi, Lt as $i, M as ea, Mr as ta, Ms as na, Mt as ra, Na as ia, Nt as aa, O as oa, Oa as sa, Os as ca, Pa as la, Pr as ua, Qn as da, Qo as fa, Qs as pa, R as ma, Rr as ha, Sr as ga, T as _a, Un as va, Ur as ya, Us as ba, Vn as xa, Vs as Sa, Wn as Ca, Wr as wa, Ws as Ta, Xa as Ea, Xt as Da, Ya as Oa, Yo as ka, Yt as Aa, Zt as ja, _a as Ma, ao as Na, as as Pa, bo as Fa, br as Ia, do as La, ds as Ra, er as za, et as Ba, fo as Va, ga as Ha, ic as Ua, j as Wa, ja as Ga, jr as Ka, jt as qa, k as Ja, kt as Ya, lo as Xa, mr as Za, n as Qa, nr as $a, oa as eo, os as to, pr as no, qn as ro, qs as io, qt as ao, ro as oo, rr as so, sc as co, t as lo, tr as uo, ts as fo, vr as po, w as mo, wr as ho, yr as go, za as _o, zn as vo, zr as yo, zs as bo } from "./F0CanvasPanel-Cr7KX0zD.js";
6
+ import { A as Lr, C as Rr, D as zr, E as Br, F as Vr, I as Hr, L as Ur, M as Wr, N as Gr, O as Kr, P as qr, R as Jr, S as Yr, T as Xr, _ as Zr, a as Qr, b as $r, c as ei, d as ti, f as ni, g as ri, h as ii, i as ai, j as oi, k as si, l as ci, m as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi, v as _i, w as vi, x as yi, y as bi, z as xi } from "./F0AiProcessingOverlay-BZDPV9iG.js";
7
+ import { $n as Si, $o as Ci, A as wi, Ar as Ti, At as Ei, B as Di, Ba as Oi, Bn as ki, Bs as Ai, D as ji, Dt as Mi, E as Ni, Es as Pi, Fa as Fi, Fr as Ii, Ft as Li, Gn as Ri, Gr as zi, Gs as Bi, Gt as Vi, Hn as Hi, Ho as Ui, Hr as Wi, Hs as Gi, Io as Ki, It as qi, Jn as Ji, Jr as Yi, Jt as Xi, Kt as Zi, Lr as Qi, Lt as $i, M as ea, Mr as ta, Ms as na, Mt as ra, Na as ia, Nt as aa, O as oa, Oa as sa, Os as ca, Pa as la, Pr as ua, Qn as da, Qo as fa, Qs as pa, R as ma, Rr as ha, Sr as ga, T as _a, Un as va, Ur as ya, Us as ba, Vn as xa, Vs as Sa, Wn as Ca, Wr as wa, Ws as Ta, Xa as Ea, Xt as Da, Ya as Oa, Yo as ka, Yt as Aa, Zt as ja, _a as Ma, ao as Na, as as Pa, bo as Fa, br as Ia, do as La, ds as Ra, er as za, et as Ba, fo as Va, ga as Ha, ic as Ua, j as Wa, ja as Ga, jr as Ka, jt as qa, k as Ja, kt as Ya, lo as Xa, mr as Za, n as Qa, nr as $a, oa as eo, os as to, pr as no, qn as ro, qs as io, qt as ao, ro as oo, rr as so, sc as co, t as lo, tr as uo, ts as fo, vr as po, w as mo, wr as ho, yr as go, za as _o, zn as vo, zr as yo, zs as bo } from "./F0CanvasPanel-BpJr85HN.js";
8
8
  import { t as xo } from "./i18n-provider-defaults-p0UGTA_k.js";
9
9
  import { C as So, D as Co, F as wo, I as To, N as Eo, O as Do, S as Oo, V as ko, X as Ao, Z as jo, _ as Mo, a as No, d as Po, f as Fo, i as Io, k as Lo, l as Ro, n as zo, r as Bo, t as Vo, x as Ho, y as Uo } from "./useData-BPTvQHGp.js";
10
10
  import { $ as Wo, B as Go, Bt as Ko, Ct as qo, Dn as Jo, Dr as Yo, Dt as Xo, Er as Zo, Fn as Qo, Ft as $o, G as es, H as ts, It as ns, J as rs, K as is, L as as, Ln as os, Lt as ss, Mr as cs, Mt as ls, Nr as us, Nt as ds, On as fs, Or as ps, Ot as ms, Pt as hs, Rt as gs, U as _s, V as vs, W as ys, X as bs, Z as xs, _ as Ss, _t as Cs, a as ws, an as Ts, c as Es, ct as Ds, dr as Os, et as ks, fr as As, g as js, gt as Ms, h as Ns, ht as Ps, i as Fs, jr as Is, jt as Ls, kn as Rs, kr as zs, kt as Bs, l as Vs, lr as Hs, m as Us, mr as Ws, mt as Gs, nt as Ks, o as qs, p as Js, pt as Ys, q as Xs, r as Zs, rn as Qs, s as $s, st as ec, t as tc, tt as nc, u as rc, v as ic, vr as ac, w as oc, wt as sc, xt as cc, y as lc, yt as uc, z as dc } from "./F0Select-CEWVRHLo.js";
11
11
  import { t as fc } from "./Check-DAp9gCRh.js";
12
- import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-ByIehNyD.js";
13
- import { t as vc } from "./pdfWorker-C0ND4urI.js";
14
- import { n as yc, t as bc } from "./F0DocumentViewer-DVyc9nMF.js";
12
+ import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-Ob0Ocg-j.js";
13
+ import { t as vc } from "./pdfWorker-Ch4pdihi.js";
14
+ import { n as yc, t as bc } from "./F0DocumentViewer-C0Aj9x9_.js";
15
15
  import * as U from "react";
16
16
  import xc, { Children as Sc, Fragment as Cc, createContext as wc, forwardRef as Tc, isValidElement as Ec, memo as Dc, useCallback as W, useContext as Oc, useEffect as G, useId as kc, useImperativeHandle as Ac, useLayoutEffect as jc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Mc } from "react";
17
17
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -2902,7 +2902,7 @@ var Al = (e, t) => {
2902
2902
  }, jl = (e, t) => {
2903
2903
  let n = t;
2904
2904
  return n.displayName = e, n.__isPageLayoutGroup = !0, n;
2905
- }, Ml = er.filter((e) => e !== "ai"), Nl = An, Pl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(ie, {
2905
+ }, Ml = er.filter((e) => e !== "ai"), Nl = An, Pl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(ae, {
2906
2906
  header: { title: t },
2907
2907
  draggable: n,
2908
2908
  actions: r,
@@ -3940,18 +3940,18 @@ var bd = (e) => {
3940
3940
  src: b.resolvedSrc
3941
3941
  }), S = uu(e), C = Sn(), w = (e) => {
3942
3942
  yd(x.audioRef.current), b.setLocale(e);
3943
- }, T = !f && !!(m && m.length > 0), E = K(() => hc(f?.summary, f?.transcription), [f?.summary, f?.transcription]), [D, O] = J(() => gc(E, p)), k = E.some((e) => e.locale === D) ? D : gc(E, p), A = pc(f?.summary, k), j = pc(f?.transcription, k), M = vu(x.audioRef, x.currentSrc, !j), N = j ?? M, P = Array.isArray(N) ? N : void 0, F = typeof N == "string" ? N : void 0, I = !!(F || P?.length), ee = K(() => P ? fu(P) : [], [P]), te = ee.length > 0, L = x.pendingTime ?? x.currentTime, ne = K(() => te ? pu(ee, L) : -1, [
3943
+ }, T = !f && !!(m && m.length > 0), E = K(() => hc(f?.summary, f?.transcription), [f?.summary, f?.transcription]), [D, O] = J(() => gc(E, p)), k = E.some((e) => e.locale === D) ? D : gc(E, p), A = pc(f?.summary, k), j = pc(f?.transcription, k), M = vu(x.audioRef, x.currentSrc, !j), N = j ?? M, P = Array.isArray(N) ? N : void 0, F = typeof N == "string" ? N : void 0, I = !!(F || P?.length), ee = K(() => P ? fu(P) : [], [P]), te = ee.length > 0, ne = x.pendingTime ?? x.currentTime, re = K(() => te ? pu(ee, ne) : -1, [
3944
3944
  te,
3945
3945
  ee,
3946
- L
3947
- ]), re = q(null), ie = q([]), ae = q(!1), oe = W((e) => {
3948
- ae.current = !1, x.seek(e);
3946
+ ne
3947
+ ]), ie = q(null), ae = q([]), oe = q(!1), se = W((e) => {
3948
+ oe.current = !1, x.seek(e);
3949
3949
  }, [x.seek]);
3950
3950
  G(() => {
3951
- let e = re.current;
3951
+ let e = ie.current;
3952
3952
  if (!e) return;
3953
3953
  let t = () => {
3954
- ae.current = !0;
3954
+ oe.current = !0;
3955
3955
  }, n = (e) => {
3956
3956
  xd.has(e.key) && t();
3957
3957
  }, r = (n) => {
@@ -3961,7 +3961,7 @@ var bd = (e) => {
3961
3961
  e.removeEventListener("wheel", t), e.removeEventListener("touchmove", t), e.removeEventListener("keydown", n), i?.removeEventListener("pointerdown", r);
3962
3962
  };
3963
3963
  }, [I]);
3964
- let se = K(() => {
3964
+ let L = K(() => {
3965
3965
  if (T) return m ?? [];
3966
3966
  let e = [];
3967
3967
  return A && e.push({
@@ -3976,9 +3976,9 @@ var bd = (e) => {
3976
3976
  label: y.audioPlayer.transcription,
3977
3977
  content: P ? /* @__PURE__ */ X(_d, {
3978
3978
  cues: P,
3979
- activeIndex: ne,
3980
- onSeek: te ? oe : void 0,
3981
- cueRefs: ie
3979
+ activeIndex: re,
3980
+ onSeek: te ? se : void 0,
3981
+ cueRefs: ae
3982
3982
  }) : /* @__PURE__ */ X("p", {
3983
3983
  className: "whitespace-pre-line",
3984
3984
  children: F
@@ -3991,19 +3991,19 @@ var bd = (e) => {
3991
3991
  I,
3992
3992
  P,
3993
3993
  F,
3994
- ne,
3994
+ re,
3995
3995
  te,
3996
- oe,
3996
+ se,
3997
3997
  y.audioPlayer.summary,
3998
3998
  y.audioPlayer.transcription
3999
- ]), ce = I ? "available" : "missing", le = se.length > 0, ue = se.length === 1 ? se[0] : void 0, de = (e) => ue?.value === "transcription" ? e ? y.audioPlayer.hideTranscription : y.audioPlayer.viewTranscription : ue?.value === "summary" ? e ? y.audioPlayer.hideSummary : y.audioPlayer.viewSummary : e ? y.audioPlayer.hideDetail : y.audioPlayer.viewDetail, [fe = !1, pe] = $n({
3999
+ ]), ce = I ? "available" : "missing", le = L.length > 0, ue = L.length === 1 ? L[0] : void 0, de = (e) => ue?.value === "transcription" ? e ? y.audioPlayer.hideTranscription : y.audioPlayer.viewTranscription : ue?.value === "summary" ? e ? y.audioPlayer.hideSummary : y.audioPlayer.viewSummary : e ? y.audioPlayer.hideDetail : y.audioPlayer.viewDetail, [fe = !1, pe] = $n({
4000
4000
  prop: h,
4001
4001
  defaultProp: g,
4002
4002
  onChange: _
4003
4003
  });
4004
4004
  G(() => {
4005
- if (!fe || ne < 0 || ae.current) return;
4006
- let e = re.current, t = ie.current[ne];
4005
+ if (!fe || re < 0 || oe.current) return;
4006
+ let e = ie.current, t = ae.current[re];
4007
4007
  if (!e || !t) return;
4008
4008
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.top - n.top, a = r.bottom - n.bottom;
4009
4009
  i >= 0 && a <= 0 || e.scrollTo({
@@ -4011,11 +4011,11 @@ var bd = (e) => {
4011
4011
  behavior: C ? "auto" : "smooth"
4012
4012
  });
4013
4013
  }, [
4014
- ne,
4014
+ re,
4015
4015
  fe,
4016
4016
  C
4017
4017
  ]);
4018
- let [me, he] = J(se[0]?.value), ge = se.some((e) => e.value === me) ? me : se[0]?.value, _e = se.find((e) => e.value === ge)?.content;
4018
+ let [me, he] = J(L[0]?.value), ge = L.some((e) => e.value === me) ? me : L[0]?.value, _e = L.find((e) => e.value === ge)?.content;
4019
4019
  return /* @__PURE__ */ Z("div", {
4020
4020
  ref: t,
4021
4021
  role: "group",
@@ -4076,7 +4076,7 @@ var bd = (e) => {
4076
4076
  duration: x.duration,
4077
4077
  buffered: x.buffered,
4078
4078
  disabled: l,
4079
- onSeek: oe
4079
+ onSeek: se
4080
4080
  }), /* @__PURE__ */ X(fd, {
4081
4081
  currentTime: x.currentTime,
4082
4082
  duration: x.duration,
@@ -4118,7 +4118,7 @@ var bd = (e) => {
4118
4118
  ariaLabel: y.audioPlayer.details,
4119
4119
  value: ge,
4120
4120
  onChange: he,
4121
- items: se.map((e) => ({
4121
+ items: L.map((e) => ({
4122
4122
  value: e.value,
4123
4123
  label: e.label
4124
4124
  }))
@@ -4126,7 +4126,7 @@ var bd = (e) => {
4126
4126
  /* @__PURE__ */ X("div", {
4127
4127
  className: ue ? void 0 : "pt-2.5",
4128
4128
  children: /* @__PURE__ */ X(Po, {
4129
- viewportRef: re,
4129
+ viewportRef: ie,
4130
4130
  style: { "--audio-details-max-h": `${v}px` },
4131
4131
  className: "[&_[data-scroll-container]]:max-h-[var(--audio-details-max-h)]",
4132
4132
  children: /* @__PURE__ */ X("div", {
@@ -4450,7 +4450,7 @@ var Id = R(tr("F0ChipList", Fd)), Ld = [
4450
4450
  onWidthChange: y,
4451
4451
  children: S
4452
4452
  });
4453
- }, Hd = L, Ud = (e) => {
4453
+ }, Hd = ne, Ud = (e) => {
4454
4454
  let t = Hd.reduce((e, t) => {
4455
4455
  let { [t]: n, ...r } = e;
4456
4456
  return r;
@@ -4649,7 +4649,7 @@ var Qd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
4649
4649
  children: [/* @__PURE__ */ X(Ka, {
4650
4650
  className: "text-xl sm:text-lg",
4651
4651
  children: r
4652
- }), /* @__PURE__ */ X(oe, {
4652
+ }), /* @__PURE__ */ X(se, {
4653
4653
  className: "text-lg sm:text-base",
4654
4654
  children: i
4655
4655
  })]
@@ -4820,7 +4820,7 @@ function sf({ children: e }) {
4820
4820
  }, [t]);
4821
4821
  return /* @__PURE__ */ X(ot.Provider, {
4822
4822
  value: n,
4823
- children: /* @__PURE__ */ X(ae.Provider, {
4823
+ children: /* @__PURE__ */ X(oe.Provider, {
4824
4824
  value: null,
4825
4825
  children: e
4826
4826
  })
@@ -5214,7 +5214,7 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5214
5214
  m,
5215
5215
  I,
5216
5216
  ee
5217
- ]), L = K(() => Tf({
5217
+ ]), ne = K(() => Tf({
5218
5218
  sectionIds: w,
5219
5219
  sections: v,
5220
5220
  customSteps: E,
@@ -5232,16 +5232,16 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5232
5232
  A,
5233
5233
  m,
5234
5234
  ee
5235
- ]), ne = q(null), { showSuccess: re, ActionBar: ie } = wf(), ae = W((e) => async (t) => {
5235
+ ]), re = q(null), { showSuccess: ie, ActionBar: ae } = wf(), oe = W((e) => async (t) => {
5236
5236
  D.current[e] = t;
5237
5237
  let n = await b({
5238
5238
  sectionId: e,
5239
5239
  data: t,
5240
5240
  fullData: { ...D.current }
5241
5241
  });
5242
- return ne.current = n, n.success && n.message && re(n.message), n;
5243
- }, [b, re]), oe = W(() => {
5244
- if (ne.current?.success) {
5242
+ return re.current = n, n.success && n.message && ie(n.message), n;
5243
+ }, [b, ie]), se = W(() => {
5244
+ if (re.current?.success) {
5245
5245
  if (p) {
5246
5246
  let e = p({ fullData: { ...D.current } });
5247
5247
  window.location.href = e;
@@ -5251,7 +5251,7 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5251
5251
  f,
5252
5252
  p,
5253
5253
  r
5254
- ]), se = W(() => {
5254
+ ]), L = W(() => {
5255
5255
  let e = Ef(O.current, w, E);
5256
5256
  for (let t of e) {
5257
5257
  let e = k[t];
@@ -5262,10 +5262,10 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5262
5262
  E,
5263
5263
  k
5264
5264
  ]), ce = W((e) => {
5265
- se(), O.current = e, u?.(e);
5266
- }, [se, u]);
5265
+ L(), O.current = e, u?.(e);
5266
+ }, [L, u]);
5267
5267
  return /* @__PURE__ */ X(vf, {
5268
- steps: L,
5268
+ steps: ne,
5269
5269
  isOpen: n,
5270
5270
  onClose: r,
5271
5271
  title: i,
@@ -5274,7 +5274,7 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5274
5274
  nextLabel: c,
5275
5275
  previousLabel: l,
5276
5276
  submitLabel: C,
5277
- onSubmit: oe,
5277
+ onSubmit: se,
5278
5278
  onStepChanged: ce,
5279
5279
  allowStepSkipping: d,
5280
5280
  children: ({ currentStep: t }) => {
@@ -5291,7 +5291,7 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5291
5291
  schema: n,
5292
5292
  sectionConfig: r,
5293
5293
  defaultValues: i ?? a,
5294
- onSubmit: ae(t),
5294
+ onSubmit: oe(t),
5295
5295
  submitConfig: x,
5296
5296
  errorTriggerMode: S,
5297
5297
  sectionForms: k,
@@ -5305,7 +5305,7 @@ function Df({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5305
5305
  isLoading: e.isLoading
5306
5306
  }, t);
5307
5307
  })
5308
- }), ie] });
5308
+ }), ae] });
5309
5309
  }
5310
5310
  });
5311
5311
  }
@@ -5384,17 +5384,17 @@ function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5384
5384
  M,
5385
5385
  h,
5386
5386
  F
5387
- ]), te = q(null), L = q(null), { showSuccess: ne, ActionBar: re } = wf(), ie = W(async (e) => {
5387
+ ]), te = q(null), ne = q(null), { showSuccess: re, ActionBar: ie } = wf(), ae = W(async (e) => {
5388
5388
  Object.assign(k.current, e);
5389
5389
  let t = { ...k.current };
5390
- L.current = t;
5390
+ ne.current = t;
5391
5391
  let n = await x({ data: t });
5392
5392
  return te.current = n, n;
5393
- }, [x]), ae = W(() => {
5393
+ }, [x]), oe = W(() => {
5394
5394
  let e = te.current;
5395
5395
  if (e?.success) {
5396
- if (ne(e.message), m) {
5397
- let e = m({ fullData: L.current });
5396
+ if (re(e.message), m) {
5397
+ let e = m({ fullData: ne.current });
5398
5398
  window.location.href = e;
5399
5399
  } else p && r?.();
5400
5400
  }
@@ -5402,8 +5402,8 @@ function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5402
5402
  p,
5403
5403
  m,
5404
5404
  r,
5405
- ne
5406
- ]), oe = W((e) => {
5405
+ re
5406
+ ]), se = W((e) => {
5407
5407
  let t = O.getValues();
5408
5408
  Object.assign(k.current, t), A.current = e, u?.(e);
5409
5409
  }, [O, u]);
@@ -5417,8 +5417,8 @@ function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5417
5417
  nextLabel: c,
5418
5418
  previousLabel: l,
5419
5419
  submitLabel: w,
5420
- onSubmit: ae,
5421
- onStepChanged: oe,
5420
+ onSubmit: oe,
5421
+ onStepChanged: se,
5422
5422
  allowStepSkipping: f,
5423
5423
  children: ({ currentStep: t }) => {
5424
5424
  let n = Ef(t, E, N), r = xf(T, n), i = n.reduce((e, t) => (y?.[t] && (e[t] = y[t]), e), {});
@@ -5429,7 +5429,7 @@ function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5429
5429
  schema: r,
5430
5430
  sections: i,
5431
5431
  defaultValues: k.current,
5432
- onSubmit: ie,
5432
+ onSubmit: ae,
5433
5433
  submitConfig: {
5434
5434
  hideSubmitButton: !0,
5435
5435
  hideActionBar: !0
@@ -5439,7 +5439,7 @@ function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
5439
5439
  renderCustomField: g,
5440
5440
  isLoading: e.isLoading
5441
5441
  }, t)
5442
- }), re] });
5442
+ }), ie] });
5443
5443
  }
5444
5444
  });
5445
5445
  }
@@ -5618,22 +5618,22 @@ var Lf = { open: If }, Rf = [
5618
5618
  }, [D]), M = W((e) => {
5619
5619
  let [t] = e;
5620
5620
  t !== void 0 && p?.(t);
5621
- }, [p]), [N, P] = J(!1), [F, I] = J(!1), [ee, te] = J(!1), L = q(!1), ne = b === "always" || b === "onHover" && (N || F || ee), re = o?.type ?? "default", ie = !i && n.trim().length > 0, ae = o ?? (a ? {
5621
+ }, [p]), [N, P] = J(!1), [F, I] = J(!1), [ee, te] = J(!1), ne = q(!1), re = b === "always" || b === "onHover" && (N || F || ee), ie = o?.type ?? "default", ae = !i && n.trim().length > 0, oe = o ?? (a ? {
5622
5622
  type: "default",
5623
5623
  message: a
5624
- } : void 0), oe = a || o?.message ? w : void 0;
5624
+ } : void 0), se = a || o?.message ? w : void 0;
5625
5625
  return /* @__PURE__ */ Z("div", {
5626
5626
  ref: t,
5627
5627
  ...x,
5628
5628
  className: H("flex flex-col gap-2", c && "cursor-not-allowed"),
5629
5629
  onPointerDownCapture: () => {
5630
- L.current = !0;
5630
+ ne.current = !0;
5631
5631
  },
5632
5632
  onPointerUp: () => {
5633
- L.current = !1;
5633
+ ne.current = !1;
5634
5634
  },
5635
5635
  children: [
5636
- ie ? /* @__PURE__ */ X(bs, {
5636
+ ae ? /* @__PURE__ */ X(bs, {
5637
5637
  label: n,
5638
5638
  required: s,
5639
5639
  htmlFor: S,
@@ -5656,32 +5656,32 @@ var Lf = { open: If }, Rf = [
5656
5656
  onMouseLeave: () => P(!1),
5657
5657
  children: [
5658
5658
  /* @__PURE__ */ X(od, {
5659
- className: Wf({ status: re }),
5659
+ className: Wf({ status: ie }),
5660
5660
  children: /* @__PURE__ */ X(sd, { className: Gf({
5661
- status: re,
5661
+ status: ie,
5662
5662
  disabled: c
5663
5663
  }) })
5664
5664
  }),
5665
5665
  /* @__PURE__ */ X(cd, {
5666
5666
  id: S,
5667
- "aria-label": ie ? void 0 : T,
5668
- "aria-labelledby": ie ? C : void 0,
5667
+ "aria-label": ae ? void 0 : T,
5668
+ "aria-labelledby": ae ? C : void 0,
5669
5669
  "aria-valuetext": y(O),
5670
- "aria-describedby": oe,
5670
+ "aria-describedby": se,
5671
5671
  "aria-required": s,
5672
5672
  style: {
5673
5673
  width: Kf,
5674
5674
  height: Kf
5675
5675
  },
5676
5676
  className: H(qf({
5677
- status: re,
5677
+ status: ie,
5678
5678
  disabled: c
5679
5679
  }), vr("focus-visible:ring-offset-1")),
5680
- onFocus: () => I(!L.current),
5680
+ onFocus: () => I(!ne.current),
5681
5681
  onBlur: () => I(!1)
5682
5682
  }),
5683
5683
  b === "never" ? null : /* @__PURE__ */ X(Hf, {
5684
- visible: ne,
5684
+ visible: re,
5685
5685
  content: y(O),
5686
5686
  style: { left: `calc(${k}% + ${A}px)` }
5687
5687
  })
@@ -5695,7 +5695,7 @@ var Lf = { open: If }, Rf = [
5695
5695
  id: w,
5696
5696
  role: "status",
5697
5697
  "aria-live": "polite",
5698
- children: /* @__PURE__ */ X(xs, { status: ae })
5698
+ children: /* @__PURE__ */ X(xs, { status: oe })
5699
5699
  })
5700
5700
  ]
5701
5701
  });
@@ -6911,11 +6911,11 @@ var Gp = ({ notice: e, className: t, children: n }) => {
6911
6911
  type: "section",
6912
6912
  afterId: e
6913
6913
  });
6914
- }, te = jp(), L = te.filter((e) => !e.datasetKey), ne = Array.from(new Set(te.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), re = m(e), ie = q(null), ae = q(!re);
6914
+ }, te = jp(), ne = te.filter((e) => !e.datasetKey), re = Array.from(new Set(te.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), ie = m(e), ae = q(null), oe = q(!ie);
6915
6915
  G(() => {
6916
- ae.current && ie.current?.focus({ preventScroll: !0 });
6916
+ oe.current && ae.current?.focus({ preventScroll: !0 });
6917
6917
  }, []);
6918
- let oe = f || x || p, se = f || S || p, ce = !se || !!n, le = b || C ? { description: l?.description ?? y?.lockedNote?.description ?? A("surveyFormBuilder.labels.lockedQuestionNotice") } : null;
6918
+ let se = f || x || p, L = f || S || p, ce = !L || !!n, le = b || C ? { description: l?.description ?? y?.lockedNote?.description ?? A("surveyFormBuilder.labels.lockedQuestionNotice") } : null;
6919
6919
  return /* @__PURE__ */ Z("div", {
6920
6920
  id: `co-creation-question-${e}`,
6921
6921
  className: H("group/question relative flex w-full flex-col rounded-xl border border-solid border-f1-border bg-f1-background px-3 py-3", b && !p && "cursor-not-allowed [&_*]:!cursor-not-allowed", !k && !p && !b && "hover:border-f1-border-hover", ce ? "gap-4" : "gap-2"),
@@ -6935,13 +6935,13 @@ var Gp = ({ notice: e, className: t, children: n }) => {
6935
6935
  children: " *"
6936
6936
  }) : null]
6937
6937
  }) : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("textarea", {
6938
- ref: ie,
6938
+ ref: ae,
6939
6939
  value: t,
6940
6940
  "aria-label": A("surveyFormBuilder.labels.title"),
6941
6941
  placeholder: j,
6942
6942
  onChange: P,
6943
- disabled: oe,
6944
- className: H("w-full [field-sizing:content] resize-none px-2 py-1 text-lg font-semibold text-f1-foreground placeholder:text-f1-foreground-tertiary [&::-webkit-search-cancel-button]:hidden", !p && oe && "!cursor-not-allowed")
6943
+ disabled: se,
6944
+ className: H("w-full [field-sizing:content] resize-none px-2 py-1 text-lg font-semibold text-f1-foreground placeholder:text-f1-foreground-tertiary [&::-webkit-search-cancel-button]:hidden", !p && se && "!cursor-not-allowed")
6945
6945
  }), /* @__PURE__ */ Z("div", {
6946
6946
  className: "textarea-overlay pointer-events-none absolute left-0 top-0 h-full w-full whitespace-pre-wrap break-words px-2 py-1 text-lg font-semibold",
6947
6947
  children: [/* @__PURE__ */ X("span", {
@@ -6986,7 +6986,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
6986
6986
  setOpen: O,
6987
6987
  questionId: e,
6988
6988
  questionType: a,
6989
- canDeleteQuestion: !w || !re,
6989
+ canDeleteQuestion: !w || !ie,
6990
6990
  hiddenActions: o
6991
6991
  })
6992
6992
  }) : null
@@ -7001,8 +7001,8 @@ var Gp = ({ notice: e, className: t, children: n }) => {
7001
7001
  "aria-label": A("surveyFormBuilder.labels.description"),
7002
7002
  placeholder: N,
7003
7003
  onChange: F,
7004
- disabled: se,
7005
- className: H("w-full [field-sizing:content] resize-none px-2 text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", !p && se && "!cursor-not-allowed")
7004
+ disabled: L,
7005
+ className: H("w-full [field-sizing:content] resize-none px-2 text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", !p && L && "!cursor-not-allowed")
7006
7006
  })
7007
7007
  }) : null]
7008
7008
  }),
@@ -7042,7 +7042,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
7042
7042
  })]
7043
7043
  })
7044
7044
  }), /* @__PURE__ */ X(Tn, {})] }),
7045
- L.map((e) => /* @__PURE__ */ X(Cn, {
7045
+ ne.map((e) => /* @__PURE__ */ X(Cn, {
7046
7046
  onClick: () => I(e.questionType),
7047
7047
  children: /* @__PURE__ */ Z("div", {
7048
7048
  className: "flex w-full flex-row items-center gap-2",
@@ -7055,7 +7055,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
7055
7055
  })]
7056
7056
  })
7057
7057
  }, e.questionType)),
7058
- ne.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Tn, {}), ne.map((e) => {
7058
+ re.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Tn, {}), re.map((e) => {
7059
7059
  let t = te.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
7060
7060
  return /* @__PURE__ */ Z(cr, { children: [/* @__PURE__ */ X(Dn, {
7061
7061
  className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
@@ -8708,11 +8708,14 @@ function Qm(e) {
8708
8708
  });
8709
8709
  return t;
8710
8710
  }
8711
- function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r, formUseUpload: a, datasets: o }) {
8712
- let s = e.title ?? "", c = {
8713
- label: s,
8711
+ var $m = (e) => e != null && e !== "", eh = (e, t) => (n) => {
8712
+ e(n), t?.($m(n));
8713
+ };
8714
+ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r, formUseUpload: a, datasets: o, onSingleAnswerChange: s }) {
8715
+ let c = e.title ?? "", l = {
8716
+ label: c,
8714
8717
  section: n
8715
- }, l = {
8718
+ }, u = {
8716
8719
  id: e.id,
8717
8720
  title: e.title,
8718
8721
  description: e.description,
@@ -8724,15 +8727,15 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8724
8727
  let n = {
8725
8728
  id: e.id,
8726
8729
  type: "text",
8727
- label: s,
8730
+ label: c,
8728
8731
  placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
8729
8732
  disabled: i
8730
8733
  };
8731
8734
  return Vi(Wm(!!e.required, t), {
8732
- ...c,
8735
+ ...l,
8733
8736
  fieldType: "custom",
8734
8737
  render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
8735
- ...l,
8738
+ ...u,
8736
8739
  children: /* @__PURE__ */ X("div", {
8737
8740
  className: "px-0.5",
8738
8741
  children: /* @__PURE__ */ X(cf, {
@@ -8751,16 +8754,16 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8751
8754
  let n = {
8752
8755
  id: e.id,
8753
8756
  type: "textarea",
8754
- label: s,
8757
+ label: c,
8755
8758
  placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
8756
8759
  rows: 4,
8757
8760
  disabled: i
8758
8761
  };
8759
8762
  return Vi(Wm(!!e.required, t), {
8760
- ...c,
8763
+ ...l,
8761
8764
  fieldType: "custom",
8762
8765
  render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
8763
- ...l,
8766
+ ...u,
8764
8767
  children: /* @__PURE__ */ X("div", {
8765
8768
  className: "px-0.5",
8766
8769
  children: /* @__PURE__ */ X(cf, {
@@ -8779,15 +8782,15 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8779
8782
  let n = {
8780
8783
  id: e.id,
8781
8784
  type: "number",
8782
- label: s,
8785
+ label: c,
8783
8786
  placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
8784
8787
  disabled: i
8785
8788
  };
8786
8789
  return Vi(Km(!!e.required, t), {
8787
- ...c,
8790
+ ...l,
8788
8791
  fieldType: "custom",
8789
8792
  render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
8790
- ...l,
8793
+ ...u,
8791
8794
  children: /* @__PURE__ */ X("div", {
8792
8795
  className: "px-0.5",
8793
8796
  children: /* @__PURE__ */ X(cf, {
@@ -8807,15 +8810,15 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8807
8810
  id: e.id,
8808
8811
  type: "text",
8809
8812
  inputType: "url",
8810
- label: s,
8813
+ label: c,
8811
8814
  placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
8812
8815
  disabled: i
8813
8816
  };
8814
8817
  return Vi(Gm(!!e.required, t), {
8815
- ...c,
8818
+ ...l,
8816
8819
  fieldType: "custom",
8817
8820
  render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
8818
- ...l,
8821
+ ...u,
8819
8822
  children: /* @__PURE__ */ X("div", {
8820
8823
  className: "px-0.5",
8821
8824
  children: /* @__PURE__ */ X(cf, {
@@ -8834,15 +8837,15 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8834
8837
  let n = {
8835
8838
  id: e.id,
8836
8839
  type: "date",
8837
- label: s,
8840
+ label: c,
8838
8841
  clearable: !e.required,
8839
8842
  disabled: i
8840
8843
  };
8841
8844
  return Vi(Jm(!!e.required, t), {
8842
- ...c,
8845
+ ...l,
8843
8846
  fieldType: "custom",
8844
8847
  render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
8845
- ...l,
8848
+ ...u,
8846
8849
  children: /* @__PURE__ */ X("div", {
8847
8850
  className: "px-0.5",
8848
8851
  children: /* @__PURE__ */ X(cf, {
@@ -8863,7 +8866,7 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8863
8866
  let r = e.showSearchBox ?? !0, a = {
8864
8867
  id: e.id,
8865
8868
  type: "select",
8866
- label: s,
8869
+ label: c,
8867
8870
  placeholder: n.placeholder ?? t("surveyFormBuilder.answer.dropdownPlaceholder"),
8868
8871
  source: n.dataSource,
8869
8872
  mapOptions: n.mapOptions,
@@ -8875,7 +8878,7 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8875
8878
  searchBoxPlaceholder: e.searchBoxPlaceholder
8876
8879
  };
8877
8880
  return Vi(Wm(!!e.required, t), {
8878
- ...c,
8881
+ ...l,
8879
8882
  fieldType: "custom",
8880
8883
  render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
8881
8884
  let s = e.allowCreate && n.onCreate ? {
@@ -8890,7 +8893,7 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8890
8893
  }
8891
8894
  } : a;
8892
8895
  return /* @__PURE__ */ X(Kp, {
8893
- ...l,
8896
+ ...u,
8894
8897
  children: /* @__PURE__ */ X("div", {
8895
8898
  className: "flex flex-col items-start px-0.5 [&>div]:w-full",
8896
8899
  children: /* @__PURE__ */ X(cf, {
@@ -8912,7 +8915,7 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8912
8915
  let r = e.showSearchBox ?? !0, a = {
8913
8916
  id: e.id,
8914
8917
  type: "select",
8915
- label: s,
8918
+ label: c,
8916
8919
  placeholder: n.placeholder ?? t("surveyFormBuilder.answer.dropdownPlaceholder"),
8917
8920
  source: n.dataSource,
8918
8921
  mapOptions: n.mapOptions,
@@ -8924,10 +8927,10 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8924
8927
  searchBoxPlaceholder: e.searchBoxPlaceholder
8925
8928
  };
8926
8929
  return Vi(qm(!!e.required, t), {
8927
- ...c,
8930
+ ...l,
8928
8931
  fieldType: "custom",
8929
8932
  render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Kp, {
8930
- ...l,
8933
+ ...u,
8931
8934
  children: /* @__PURE__ */ X("div", {
8932
8935
  className: "flex flex-col items-start px-0.5 [&>div]:w-full",
8933
8936
  children: /* @__PURE__ */ X(cf, {
@@ -8951,14 +8954,14 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8951
8954
  showAnswerValidation: r
8952
8955
  };
8953
8956
  return Vi(Wm(!!e.required, t), {
8954
- ...c,
8957
+ ...l,
8955
8958
  fieldType: "custom",
8956
8959
  fieldConfig: n,
8957
8960
  render: ({ value: e, onChange: t, onBlur: n, config: r }) => /* @__PURE__ */ X(Kp, {
8958
- ...l,
8961
+ ...u,
8959
8962
  children: /* @__PURE__ */ X(Vm, {
8960
8963
  value: e,
8961
- onChange: t,
8964
+ onChange: eh(t, s),
8962
8965
  onBlur: n,
8963
8966
  config: r
8964
8967
  })
@@ -8974,11 +8977,11 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8974
8977
  showAnswerValidation: r
8975
8978
  };
8976
8979
  return Vi(qm(!!e.required, t), {
8977
- ...c,
8980
+ ...l,
8978
8981
  fieldType: "custom",
8979
8982
  fieldConfig: n,
8980
8983
  render: ({ value: e, onChange: t, onBlur: n, config: r }) => /* @__PURE__ */ X(Kp, {
8981
- ...l,
8984
+ ...u,
8982
8985
  children: /* @__PURE__ */ X(Vm, {
8983
8986
  value: e,
8984
8987
  onChange: t,
@@ -8996,14 +8999,14 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
8996
8999
  disabled: i
8997
9000
  };
8998
9001
  return Vi(Km(!!e.required, t), {
8999
- ...c,
9002
+ ...l,
9000
9003
  fieldType: "custom",
9001
9004
  fieldConfig: r,
9002
9005
  render: ({ value: e, onChange: t, onBlur: n, config: r }) => /* @__PURE__ */ X(Kp, {
9003
- ...l,
9006
+ ...u,
9004
9007
  children: /* @__PURE__ */ X(zm, {
9005
9008
  value: e,
9006
- onChange: t,
9009
+ onChange: eh(t, s),
9007
9010
  onBlur: n,
9008
9011
  config: r
9009
9012
  })
@@ -9014,7 +9017,7 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
9014
9017
  let n = e, r = n.useUpload ?? a, o = {
9015
9018
  id: e.id,
9016
9019
  type: "file",
9017
- label: s,
9020
+ label: c,
9018
9021
  multiple: !0,
9019
9022
  accept: n.accept ?? Zp,
9020
9023
  maxSizeMB: n.maxSizeMB,
@@ -9022,10 +9025,10 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
9022
9025
  disabled: i || !r
9023
9026
  };
9024
9027
  return Vi(Ym(!!e.required, t), {
9025
- ...c,
9028
+ ...l,
9026
9029
  fieldType: "custom",
9027
9030
  render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Kp, {
9028
- ...l,
9031
+ ...u,
9029
9032
  children: /* @__PURE__ */ X("div", {
9030
9033
  className: "px-0.5",
9031
9034
  children: /* @__PURE__ */ X(cf, {
@@ -9044,14 +9047,14 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
9044
9047
  let n = e, r = {
9045
9048
  id: e.id,
9046
9049
  type: "checkbox",
9047
- label: n.label || s,
9050
+ label: n.label || c,
9048
9051
  disabled: i
9049
9052
  };
9050
9053
  return Vi(Xm(!!e.required, t), {
9051
- ...c,
9054
+ ...l,
9052
9055
  fieldType: "custom",
9053
9056
  render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Kp, {
9054
- ...l,
9057
+ ...u,
9055
9058
  children: /* @__PURE__ */ X("div", {
9056
9059
  className: "px-0.5",
9057
9060
  children: /* @__PURE__ */ X(cf, {
@@ -9067,48 +9070,50 @@ function $m({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
9067
9070
  });
9068
9071
  }
9069
9072
  default: return Vi(Ri(), {
9070
- ...c,
9073
+ ...l,
9071
9074
  fieldType: "custom",
9072
9075
  render: () => null
9073
9076
  });
9074
9077
  }
9075
9078
  }
9076
- function eh({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i, accumulatedValues: a, previewMode: o = !1, disableFields: s = o, useUpload: c, datasets: l }) {
9079
+ function nh({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i, accumulatedValues: a, previewMode: o = !1, disableFields: s = o, useUpload: c, datasets: l, onSingleAnswerChange: u }) {
9077
9080
  return K(() => {
9078
- let u = {}, d = {}, f = {}, p = Qm(e), m = t === "stepped";
9079
- for (let p of e) if (p.type === "section") {
9080
- let e = p.section, h = e.id;
9081
- t === "all-questions" && (f[h] = {
9081
+ let d = {}, f = {}, p = {}, m = Qm(e), h = t === "stepped";
9082
+ for (let m of e) if (m.type === "section") {
9083
+ let e = m.section, g = e.id;
9084
+ t === "all-questions" && (p[g] = {
9082
9085
  title: e.title ?? "",
9083
9086
  description: e.description,
9084
9087
  withInset: !0
9085
9088
  });
9086
- for (let f of e.questions ?? []) m && i && f.id !== i || (u[f.id] = $m({
9087
- q: f,
9089
+ for (let p of e.questions ?? []) h && i && p.id !== i || (d[p.id] = th({
9090
+ q: p,
9088
9091
  t: n,
9089
- sectionId: t === "all-questions" ? h : void 0,
9092
+ sectionId: t === "all-questions" ? g : void 0,
9090
9093
  previewMode: o,
9091
9094
  disableFields: s,
9092
9095
  formUseUpload: c,
9093
- datasets: l
9094
- }), d[f.id] = a?.[f.id] ?? Zm(f, r));
9096
+ datasets: l,
9097
+ onSingleAnswerChange: u
9098
+ }), f[p.id] = a?.[p.id] ?? Zm(p, r));
9095
9099
  } else {
9096
- let e = p.question;
9097
- if (m && i && e.id !== i) continue;
9098
- u[e.id] = $m({
9100
+ let e = m.question;
9101
+ if (h && i && e.id !== i) continue;
9102
+ d[e.id] = th({
9099
9103
  q: e,
9100
9104
  t: n,
9101
9105
  previewMode: o,
9102
9106
  disableFields: s,
9103
9107
  formUseUpload: c,
9104
- datasets: l
9105
- }), d[e.id] = a?.[e.id] ?? Zm(e, r);
9108
+ datasets: l,
9109
+ onSingleAnswerChange: u
9110
+ }), f[e.id] = a?.[e.id] ?? Zm(e, r);
9106
9111
  }
9107
9112
  return {
9108
- schema: va(u),
9109
- defaultValues: d,
9110
- flatQuestions: p,
9111
- sections: f
9113
+ schema: va(d),
9114
+ defaultValues: f,
9115
+ flatQuestions: m,
9116
+ sections: p
9112
9117
  };
9113
9118
  }, [
9114
9119
  e,
@@ -9119,132 +9124,146 @@ function eh({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
9119
9124
  o,
9120
9125
  s,
9121
9126
  c,
9122
- l
9127
+ l,
9128
+ u
9123
9129
  ]);
9124
9130
  }
9125
9131
  //#endregion
9126
9132
  //#region src/domains/talent/surveys/surveys/SurveyAnsweringForm/SurveyAnsweringForm.tsx
9127
- var th = () => {};
9128
- function nh(e) {
9133
+ var rh = () => {}, ih = 400;
9134
+ function ah(e) {
9129
9135
  let t = {};
9130
9136
  for (let [n, r] of Object.entries(e)) t[n] = r === void 0 ? null : r;
9131
9137
  return t;
9132
9138
  }
9133
- function rh(e) {
9134
- return e.inline ? /* @__PURE__ */ X(ah, { ...e }) : /* @__PURE__ */ X(ih, { ...e });
9139
+ function oh(e) {
9140
+ return e.inline ? /* @__PURE__ */ X(ch, { ...e }) : /* @__PURE__ */ X(sh, { ...e });
9135
9141
  }
9136
- function ih({ 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: f, errorTriggerMode: p = "on-blur", loading: m = !1, labels: g, preview: _ = !1, useUpload: v, datasets: y }) {
9142
+ function sh({ 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: f, errorTriggerMode: p = "on-blur", loading: m = !1, labels: g, preview: _ = !1, useUpload: v, datasets: y }) {
9137
9143
  let { t: b } = V(), x = c === "fullscreen", S = c === "fullscreen" ? "center" : c, [C, w] = J(x), { formRef: T, submit: E, isSubmitting: D, hasErrors: O } = Qe(), k = q({}), A = K(() => Qm(e), [e]), j = Rm(A), M = A.length > 0, N = {
9138
9144
  title: g?.empty?.title ?? b("surveyAnsweringForm.labels.empty.title"),
9139
9145
  description: g?.empty?.description ?? b("surveyAnsweringForm.labels.empty.description"),
9140
9146
  emoji: g?.empty?.emoji ?? b("surveyAnsweringForm.labels.empty.emoji")
9141
- }, P = n === "stepped", F = _ && !!f && Object.keys(f).length > 0, I = _ && !F, { schema: ee, defaultValues: te, sections: L } = eh({
9147
+ }, P = n === "stepped", F = _ && !!f && Object.keys(f).length > 0, I = _ && !F, ee = P ? j.currentQuestion?.id : void 0, te = q(void 0), ne = q(rh), re = W(() => {
9148
+ clearTimeout(te.current);
9149
+ }, []), ie = W((e) => {
9150
+ re(), e && (te.current = setTimeout(() => ne.current(), ih));
9151
+ }, [re]), { schema: ae, defaultValues: oe, sections: se } = nh({
9142
9152
  elements: e,
9143
9153
  mode: n,
9144
9154
  t: b,
9145
9155
  defaultValues: f,
9146
- currentQuestionId: P ? j.currentQuestion?.id : void 0,
9156
+ currentQuestionId: ee,
9147
9157
  accumulatedValues: P ? k.current : void 0,
9148
9158
  previewMode: _,
9149
9159
  disableFields: F,
9150
9160
  useUpload: v,
9151
- datasets: y
9152
- }), ne = C ? "fullscreen" : S, re = ne === "center" ? "xl" : void 0, ie = q(null), ae = W((e) => {
9153
- ie.current && clearTimeout(ie.current), ie.current = setTimeout(() => {
9154
- ie.current = null, s();
9161
+ datasets: y,
9162
+ onSingleAnswerChange: P ? ie : void 0
9163
+ }), L = C ? "fullscreen" : S, ce = L === "center" ? "xl" : void 0, le = q(null), ue = W((e) => {
9164
+ le.current && clearTimeout(le.current), le.current = setTimeout(() => {
9165
+ le.current = null, s();
9155
9166
  }, e);
9156
- }, [s]), oe = W((e) => e.success ? (ae(e.message ? 1e3 : 0), {
9167
+ }, [s]), de = W((e) => e.success ? (ue(e.message ? 1e3 : 0), {
9157
9168
  success: !0,
9158
9169
  message: e.message
9159
9170
  }) : {
9160
9171
  success: !1,
9161
9172
  errors: e.errors
9162
- }, [ae]), se = W(async (e) => {
9173
+ }, [ue]), fe = W(async (e) => {
9163
9174
  if (_) return { success: !0 };
9164
9175
  if (!t) throw Error("onSubmit is required when preview is false");
9165
9176
  if (P && !j.isLastStep) return k.current = {
9166
9177
  ...k.current,
9167
9178
  ...e
9168
9179
  }, j.goToNext(), { success: !0 };
9169
- let n = nh(P ? {
9180
+ let n = ah(P ? {
9170
9181
  ...k.current,
9171
9182
  ...e
9172
9183
  } : e);
9173
9184
  if (P) {
9174
9185
  j.setProgress(100);
9175
9186
  let [e] = await Promise.all([t(n), new Promise((e) => setTimeout(e, 1e3))]);
9176
- return e.success || j.setProgress(null), oe(e);
9187
+ return e.success || j.setProgress(null), de(e);
9177
9188
  }
9178
- return oe(await t(n));
9189
+ return de(await t(n));
9179
9190
  }, [
9180
9191
  t,
9181
9192
  _,
9182
- oe,
9193
+ de,
9183
9194
  P,
9184
9195
  j.isLastStep,
9185
9196
  j.goToNext,
9186
9197
  j.setProgress
9187
- ]), ce = W(async () => {
9198
+ ]), pe = W(async () => {
9188
9199
  try {
9189
9200
  await E();
9190
9201
  } catch {}
9191
- }, [E]), le = W(() => {
9202
+ }, [E]), me = W(() => {
9192
9203
  let e = T.current?.getValues() ?? {};
9193
9204
  k.current = {
9194
9205
  ...k.current,
9195
9206
  ...e
9196
9207
  }, j.goToPrevious();
9197
- }, [T, j.goToPrevious]), ue = u && !m ? [{
9208
+ }, [T, j.goToPrevious]), he = P && !j.isLastStep && !m && !F, ge = I ? j.goToNext : pe;
9209
+ G(() => {
9210
+ ne.current = he ? ge : rh;
9211
+ }, [he, ge]), G(() => () => re(), [
9212
+ j.currentStep,
9213
+ o,
9214
+ re
9215
+ ]);
9216
+ let _e = u && !m ? [{
9198
9217
  label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
9199
9218
  icon: C ? Ui : ka,
9200
9219
  onClick: () => w((e) => !e)
9201
- }] : void 0, de = M ? m || F ? void 0 : I ? P && !j.isLastStep ? {
9220
+ }] : void 0, ve = M ? m || F ? void 0 : I ? P && !j.isLastStep ? {
9202
9221
  label: b("surveyAnsweringForm.actions.next"),
9203
9222
  onClick: j.goToNext,
9204
9223
  icon: pa
9205
9224
  } : {
9206
9225
  label: b("surveyAnsweringForm.actions.submit"),
9207
- onClick: th,
9226
+ onClick: rh,
9208
9227
  disabled: !0
9209
9228
  } : P && !j.isLastStep ? {
9210
9229
  label: b("surveyAnsweringForm.actions.next"),
9211
- onClick: ce,
9230
+ onClick: pe,
9212
9231
  icon: pa
9213
9232
  } : {
9214
9233
  label: b("surveyAnsweringForm.actions.submit"),
9215
- onClick: ce,
9234
+ onClick: pe,
9216
9235
  disabled: D || O,
9217
9236
  loading: D
9218
- } : void 0, fe = M ? m || F ? void 0 : P && !j.isFirstStep ? {
9237
+ } : void 0, ye = M ? m || F ? void 0 : P && !j.isFirstStep ? {
9219
9238
  label: b("surveyAnsweringForm.actions.previous"),
9220
- onClick: le,
9239
+ onClick: me,
9221
9240
  icon: cs
9222
- } : void 0 : void 0, pe = n === "all-questions" && M && !m, me = P && M && !m, he = P && !!j.currentQuestion?.sectionTitle && !m, ge = ne === "center" || ne === "fullscreen";
9241
+ } : void 0 : void 0, be = n === "all-questions" && M && !m, xe = P && M && !m, Se = P && !!j.currentQuestion?.sectionTitle && !m, Ce = L === "center" || L === "fullscreen";
9223
9242
  return /* @__PURE__ */ X(so, {
9224
9243
  isOpen: o,
9225
9244
  onClose: s,
9226
9245
  title: r,
9227
9246
  module: l,
9228
- position: ne,
9229
- width: re,
9230
- primaryAction: de,
9231
- secondaryAction: fe,
9232
- otherActions: ue,
9233
- disableContentPadding: ge,
9247
+ position: L,
9248
+ width: ce,
9249
+ primaryAction: ve,
9250
+ secondaryAction: ye,
9251
+ otherActions: _e,
9252
+ disableContentPadding: Ce,
9234
9253
  children: /* @__PURE__ */ X(Ep, {
9235
9254
  answering: !0,
9236
9255
  elements: e,
9237
- onChange: th,
9256
+ onChange: rh,
9238
9257
  datasets: y,
9239
9258
  children: /* @__PURE__ */ Z("div", {
9240
9259
  className: H("relative flex h-full min-h-full flex-col @container", P && !C && "min-h-[600px]"),
9241
9260
  children: [
9242
- pe ? /* @__PURE__ */ X(Sm, {
9261
+ be ? /* @__PURE__ */ X(Sm, {
9243
9262
  elements: e,
9244
- onChange: th,
9263
+ onChange: rh,
9245
9264
  answering: !0
9246
9265
  }) : null,
9247
- me ? /* @__PURE__ */ X("div", {
9266
+ xe ? /* @__PURE__ */ X("div", {
9248
9267
  className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
9249
9268
  children: /* @__PURE__ */ X(uc, {
9250
9269
  label: "Value",
@@ -9253,7 +9272,7 @@ function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9253
9272
  })
9254
9273
  }) : null,
9255
9274
  /* @__PURE__ */ Z("div", {
9256
- className: H("mx-auto flex w-full flex-1 justify-center flex-col @lg:w-[750px] max-w-full pt-0", ge && "px-4 py-12"),
9275
+ className: H("mx-auto flex w-full flex-1 justify-center flex-col @lg:w-[750px] max-w-full pt-0", Ce && "px-4 py-12"),
9257
9276
  children: [
9258
9277
  /* @__PURE__ */ X("div", {
9259
9278
  className: "mb-6",
@@ -9276,7 +9295,7 @@ function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9276
9295
  description: N.description
9277
9296
  })
9278
9297
  }),
9279
- he ? /* @__PURE__ */ Z("div", {
9298
+ Se ? /* @__PURE__ */ Z("div", {
9280
9299
  className: "py-1 pl-5",
9281
9300
  children: [/* @__PURE__ */ X("span", {
9282
9301
  className: "text-lg font-semibold text-f1-foreground",
@@ -9289,12 +9308,12 @@ function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9289
9308
  M && !m ? /* @__PURE__ */ X(d, {
9290
9309
  formRef: T,
9291
9310
  name: "survey-answering",
9292
- schema: ee,
9293
- defaultValues: te,
9294
- onSubmit: se,
9311
+ schema: ae,
9312
+ defaultValues: oe,
9313
+ onSubmit: fe,
9295
9314
  submitConfig: { hideSubmitButton: !0 },
9296
9315
  errorTriggerMode: p,
9297
- sections: L
9316
+ sections: se
9298
9317
  }, P ? j.currentStep : void 0) : null
9299
9318
  ]
9300
9319
  })
@@ -9303,12 +9322,12 @@ function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
9303
9322
  })
9304
9323
  });
9305
9324
  }
9306
- function ah({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
9325
+ function ch({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
9307
9326
  let { t: u } = V(), f = K(() => Qm(e), [e]).length > 0, p = {
9308
9327
  title: o?.empty?.title ?? u("surveyAnsweringForm.labels.empty.title"),
9309
9328
  description: o?.empty?.description ?? u("surveyAnsweringForm.labels.empty.description"),
9310
9329
  emoji: o?.empty?.emoji ?? u("surveyAnsweringForm.labels.empty.emoji")
9311
- }, { schema: m, defaultValues: g, sections: _ } = eh({
9330
+ }, { schema: m, defaultValues: g, sections: _ } = nh({
9312
9331
  elements: e,
9313
9332
  mode: "all-questions",
9314
9333
  t: u,
@@ -9321,7 +9340,7 @@ function ah({ elements: e, title: t, description: n, resourceHeader: r, defaultV
9321
9340
  return /* @__PURE__ */ X(Ep, {
9322
9341
  answering: !0,
9323
9342
  elements: e,
9324
- onChange: th,
9343
+ onChange: rh,
9325
9344
  datasets: c,
9326
9345
  children: /* @__PURE__ */ Z("div", {
9327
9346
  className: "mx-auto flex w-full max-w-3xl flex-col",
@@ -9359,7 +9378,7 @@ function ah({ elements: e, title: t, description: n, resourceHeader: r, defaultV
9359
9378
  }
9360
9379
  //#endregion
9361
9380
  //#region src/domains/talent/surveys/surveys/SurveySampleQuestion/SurveySampleQuestion.tsx
9362
- function oh(e) {
9381
+ function lh(e) {
9363
9382
  return /* @__PURE__ */ Z(ko, {
9364
9383
  display: "flex",
9365
9384
  flexDirection: "column",
@@ -9370,14 +9389,14 @@ function oh(e) {
9370
9389
  children: [/* @__PURE__ */ X("p", {
9371
9390
  className: "m-0 text-sm font-semibold text-f1-foreground",
9372
9391
  children: e.question
9373
- }), e.type === "rating" ? /* @__PURE__ */ X(sh, {
9392
+ }), e.type === "rating" ? /* @__PURE__ */ X(uh, {
9374
9393
  steps: e.steps ?? 5,
9375
9394
  minLabel: e.minLabel,
9376
9395
  maxLabel: e.maxLabel
9377
- }) : /* @__PURE__ */ X(ch, { options: e.options })]
9396
+ }) : /* @__PURE__ */ X(dh, { options: e.options })]
9378
9397
  });
9379
9398
  }
9380
- function sh({ steps: e, minLabel: t, maxLabel: n }) {
9399
+ function uh({ steps: e, minLabel: t, maxLabel: n }) {
9381
9400
  return /* @__PURE__ */ Z(ko, {
9382
9401
  display: "flex",
9383
9402
  flexDirection: "column",
@@ -9406,7 +9425,7 @@ function sh({ steps: e, minLabel: t, maxLabel: n }) {
9406
9425
  }) : null]
9407
9426
  });
9408
9427
  }
9409
- function ch({ options: e }) {
9428
+ function dh({ options: e }) {
9410
9429
  return /* @__PURE__ */ X(ko, {
9411
9430
  display: "flex",
9412
9431
  flexDirection: "column",
@@ -9435,17 +9454,17 @@ function ch({ options: e }) {
9435
9454
  }
9436
9455
  //#endregion
9437
9456
  //#region src/domains/growth/upselling/UpsellingKit/ProductBlankslate/ProductBlankslate.tsx
9438
- var lh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
9457
+ var fh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
9439
9458
  className: "flex flex-col gap-2",
9440
- children: e.map((e, t) => /* @__PURE__ */ X(uh, { text: e }, t))
9441
- }), uh = ({ text: e }) => /* @__PURE__ */ Z("div", {
9459
+ children: e.map((e, t) => /* @__PURE__ */ X(ph, { text: e }, t))
9460
+ }), ph = ({ text: e }) => /* @__PURE__ */ Z("div", {
9442
9461
  className: "flex flex-row items-start gap-2",
9443
9462
  children: [/* @__PURE__ */ X(B, {
9444
9463
  icon: zs,
9445
9464
  size: "md",
9446
9465
  className: "text-f1-icon-positive"
9447
9466
  }), /* @__PURE__ */ X("span", { children: e })]
9448
- }), dh = Tc(({ title: e, image: t, benefits: n, actions: r, withShadow: i = !0, module: a, moduleName: o, tag: s, promoTag: c }, l) => /* @__PURE__ */ Z("div", {
9467
+ }), mh = Tc(({ title: e, image: t, benefits: n, actions: r, withShadow: i = !0, module: a, moduleName: o, tag: s, promoTag: c }, l) => /* @__PURE__ */ Z("div", {
9449
9468
  ref: l,
9450
9469
  className: H("bg-white flex flex-row rounded-xl border border-f1-border-secondary", i && "shadow-md"),
9451
9470
  children: [/* @__PURE__ */ X("div", {
@@ -9484,18 +9503,18 @@ var lh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
9484
9503
  children: e
9485
9504
  })
9486
9505
  ]
9487
- }), /* @__PURE__ */ X(lh, { benefits: n })]
9506
+ }), /* @__PURE__ */ X(fh, { benefits: n })]
9488
9507
  }), r ? /* @__PURE__ */ X("div", {
9489
9508
  className: "flex gap-3",
9490
9509
  children: r
9491
9510
  }) : null]
9492
9511
  })]
9493
9512
  }));
9494
- dh.displayName = "ProductBlankslate";
9495
- var fh = R(dh);
9513
+ mh.displayName = "ProductBlankslate";
9514
+ var hh = R(mh);
9496
9515
  //#endregion
9497
9516
  //#region src/domains/growth/upselling/UpsellingKit/ProductModal/components/CustomModal.tsx
9498
- function ph({ isOpen: e, onClose: t, title: n, children: r, module: i, portalContainer: a }) {
9517
+ function gh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalContainer: a }) {
9499
9518
  let [o, s] = J(e);
9500
9519
  return G(() => {
9501
9520
  s(e);
@@ -9535,7 +9554,7 @@ function ph({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
9535
9554
  }
9536
9555
  //#endregion
9537
9556
  //#region src/domains/growth/upselling/UpsellingKit/ProductModal/ProductModal.tsx
9538
- function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessage: a, successMessage: o, loadingState: s, nextSteps: c, closeLabel: l, primaryAction: u, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: h, promoTag: g, showResponseDialog: _ = !0 }) {
9557
+ function _h({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessage: a, successMessage: o, loadingState: s, nextSteps: c, closeLabel: l, primaryAction: u, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: h, promoTag: g, showResponseDialog: _ = !0 }) {
9539
9558
  let [v, y] = J(e), [b, x] = J(null), [S, C] = J(!1), w = async () => {
9540
9559
  if (u?.onClick) {
9541
9560
  C(!0);
@@ -9550,7 +9569,7 @@ function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
9550
9569
  }, T = () => {
9551
9570
  y(!1), t?.();
9552
9571
  }, E = S;
9553
- return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(ph, {
9572
+ return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(gh, {
9554
9573
  isOpen: v,
9555
9574
  onClose: T,
9556
9575
  title: d,
@@ -9558,7 +9577,7 @@ function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
9558
9577
  portalContainer: m,
9559
9578
  children: /* @__PURE__ */ X("div", {
9560
9579
  className: "pb-4 pl-4",
9561
- children: /* @__PURE__ */ X(fh, {
9580
+ children: /* @__PURE__ */ X(hh, {
9562
9581
  title: n,
9563
9582
  image: r,
9564
9583
  benefits: i,
@@ -9597,10 +9616,10 @@ function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
9597
9616
  portalContainer: m
9598
9617
  }) : null] });
9599
9618
  }
9600
- var hh = R(mh);
9619
+ var vh = R(_h);
9601
9620
  //#endregion
9602
9621
  //#region src/domains/growth/upselling/UpsellingKit/ProductWidget/ProductWidget.tsx
9603
- function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i, width: a, trackVisibility: o, actions: s, showConfirmation: c = !0 }) {
9622
+ function yh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i, width: a, trackVisibility: o, actions: s, showConfirmation: c = !0 }) {
9604
9623
  let [l, u] = J(!1), d = () => {
9605
9624
  u(!0), r && r();
9606
9625
  };
@@ -9661,7 +9680,7 @@ function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
9661
9680
  }) : null]
9662
9681
  }) });
9663
9682
  }
9664
- var _h = R(gh), vh = ({ onDismiss: e }) => {
9683
+ var bh = R(yh), xh = ({ onDismiss: e }) => {
9665
9684
  let { actions: t } = V();
9666
9685
  return /* @__PURE__ */ X(z, {
9667
9686
  icon: Fr,
@@ -9673,7 +9692,7 @@ var _h = R(gh), vh = ({ onDismiss: e }) => {
9673
9692
  type: "button"
9674
9693
  });
9675
9694
  };
9676
- function yh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9695
+ function Sh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9677
9696
  return /* @__PURE__ */ X("div", {
9678
9697
  className: "@container",
9679
9698
  children: /* @__PURE__ */ X("div", {
@@ -9718,13 +9737,13 @@ function yh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9718
9737
  })]
9719
9738
  }), i ? /* @__PURE__ */ X("div", {
9720
9739
  className: H("flex-shrink-0 self-start", !n && "@xs:self-center"),
9721
- children: /* @__PURE__ */ X(vh, { onDismiss: i })
9740
+ children: /* @__PURE__ */ X(xh, { onDismiss: i })
9722
9741
  }) : null]
9723
9742
  })
9724
9743
  })
9725
9744
  });
9726
9745
  }
9727
- var bh = R(yh), xh = Tc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
9746
+ var Ch = R(Sh), wh = Tc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
9728
9747
  let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(C, {
9729
9748
  label: e.label,
9730
9749
  onRequest: e.onClick,
@@ -9751,11 +9770,11 @@ var bh = R(yh), xh = Tc(function({ primaryAction: e, secondaryAction: t, ...n },
9751
9770
  children: [e?.variant === "promote" ? i(e) : null, t?.variant === "promote" ? i(t) : null]
9752
9771
  });
9753
9772
  });
9754
- xh.displayName = "UpsellingBanner";
9755
- var Sh = R(xh);
9773
+ wh.displayName = "UpsellingBanner";
9774
+ var Th = R(wh);
9756
9775
  //#endregion
9757
9776
  //#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
9758
- function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Oa, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
9777
+ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Oa, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
9759
9778
  let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
9760
9779
  t(e), h && h();
9761
9780
  }, w = async (e) => {
@@ -9790,7 +9809,7 @@ function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
9790
9809
  side: o,
9791
9810
  align: s,
9792
9811
  className: "w-fit border-none bg-transparent p-2 shadow-none",
9793
- children: /* @__PURE__ */ X(_h, {
9812
+ children: /* @__PURE__ */ X(bh, {
9794
9813
  mediaUrl: l,
9795
9814
  title: u,
9796
9815
  description: d,
@@ -9813,7 +9832,7 @@ function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
9813
9832
  portalContainer: null
9814
9833
  }) : null] });
9815
9834
  }
9816
- var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
9835
+ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
9817
9836
  let a = V(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
9818
9837
  return /* @__PURE__ */ Z(Ga, {
9819
9838
  className: "flex flex-col overflow-hidden",
@@ -9849,7 +9868,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
9849
9868
  })
9850
9869
  })]
9851
9870
  });
9852
- }, Eh = ({ item: e, isExpanded: t, onToggle: n }) => /* @__PURE__ */ Z("div", {
9871
+ }, kh = ({ item: e, isExpanded: t, onToggle: n }) => /* @__PURE__ */ Z("div", {
9853
9872
  className: H("flex flex-col rounded-lg px-3 -mx-3 transition-colors duration-200", t && "bg-f1-background-secondary"),
9854
9873
  children: [/* @__PURE__ */ Z("button", {
9855
9874
  type: "button",
@@ -9878,7 +9897,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
9878
9897
  children: e.answer
9879
9898
  })
9880
9899
  })]
9881
- }), Dh = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
9900
+ }), Ah = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
9882
9901
  let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Fa, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
9883
9902
  u,
9884
9903
  r,
@@ -9911,14 +9930,14 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
9911
9930
  })]
9912
9931
  }), /* @__PURE__ */ X(ia, {
9913
9932
  className: "flex flex-col divide-y divide-f1-border p-0",
9914
- children: t.map((e) => /* @__PURE__ */ X(Eh, {
9933
+ children: t.map((e) => /* @__PURE__ */ X(kh, {
9915
9934
  item: e,
9916
9935
  isExpanded: d(e.id),
9917
9936
  onToggle: f
9918
9937
  }, e.id))
9919
9938
  })]
9920
9939
  });
9921
- }, Oh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
9940
+ }, jh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
9922
9941
  let a = V()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
9923
9942
  return /* @__PURE__ */ Z(Ga, {
9924
9943
  className: "flex flex-col overflow-hidden",
@@ -9960,7 +9979,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
9960
9979
  })
9961
9980
  })]
9962
9981
  });
9963
- }, kh = ({ onAction: e, actionHref: t }) => {
9982
+ }, Mh = ({ onAction: e, actionHref: t }) => {
9964
9983
  let n = V()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
9965
9984
  return /* @__PURE__ */ Z(Ga, {
9966
9985
  className: "flex flex-col overflow-hidden",
@@ -9996,7 +10015,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
9996
10015
  })
9997
10016
  })]
9998
10017
  });
9999
- }, Ah = ({ steps: e, onComplete: t, onSkip: n, sendAsMessage: r = !1, onSendMessage: i }) => {
10018
+ }, Nh = ({ steps: e, onComplete: t, onSkip: n, sendAsMessage: r = !1, onSendMessage: i }) => {
10000
10019
  let [a, o] = J(0), [s, c] = J({}), l = V(), u = e.length, d = e[a], f = s[a] ?? [], p = W((e, t) => {
10001
10020
  c((n) => {
10002
10021
  let r = n[a] ?? [], i = t ? [...r, e] : r.filter((t) => t !== e);
@@ -10101,10 +10120,10 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
10101
10120
  };
10102
10121
  //#endregion
10103
10122
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/chartDataAdapter.ts
10104
- function jh(e) {
10123
+ function Ph(e) {
10105
10124
  return typeof e == "number" ? e : typeof e == "object" && e && "value" in e ? e.value : 0;
10106
10125
  }
10107
- function Mh(e) {
10126
+ function Fh(e) {
10108
10127
  let t = e.categories ?? [], n = e.series;
10109
10128
  if (n && !Array.isArray(n) && "data" in n) {
10110
10129
  let e = n;
@@ -10120,12 +10139,12 @@ function Mh(e) {
10120
10139
  categories: t,
10121
10140
  series: (Array.isArray(n) ? n : []).map((e) => ({
10122
10141
  name: e.name,
10123
- data: (e.data ?? []).map(jh)
10142
+ data: (e.data ?? []).map(Ph)
10124
10143
  }))
10125
10144
  };
10126
10145
  }
10127
- function Nh(e) {
10128
- if (Array.isArray(e.series)) return Mh(e);
10146
+ function Ih(e) {
10147
+ if (Array.isArray(e.series)) return Fh(e);
10129
10148
  let t = e.series;
10130
10149
  return t?.data ? {
10131
10150
  categories: t.data.map((e) => e.name),
@@ -10138,7 +10157,7 @@ function Nh(e) {
10138
10157
  series: []
10139
10158
  };
10140
10159
  }
10141
- function Ph(e) {
10160
+ function Lh(e) {
10142
10161
  let t = e.series;
10143
10162
  return t?.data ? {
10144
10163
  categories: t.data.map((e) => e.name),
@@ -10151,7 +10170,7 @@ function Ph(e) {
10151
10170
  series: []
10152
10171
  };
10153
10172
  }
10154
- function Fh(e) {
10173
+ function Rh(e) {
10155
10174
  let t = e.indicators ?? [], n = Array.isArray(e.series) ? e.series : [];
10156
10175
  return {
10157
10176
  categories: t.map((e) => typeof e == "string" ? e : e.name),
@@ -10161,7 +10180,7 @@ function Fh(e) {
10161
10180
  }))
10162
10181
  };
10163
10182
  }
10164
- function Ih(e) {
10183
+ function zh(e) {
10165
10184
  let t = e.series;
10166
10185
  return {
10167
10186
  categories: [t?.name ?? "Value"],
@@ -10171,7 +10190,7 @@ function Ih(e) {
10171
10190
  }]
10172
10191
  };
10173
10192
  }
10174
- var Lh = new Set(Object.keys({
10193
+ var Bh = new Set(Object.keys({
10175
10194
  bar: !0,
10176
10195
  line: !0,
10177
10196
  funnel: !0,
@@ -10181,22 +10200,22 @@ var Lh = new Set(Object.keys({
10181
10200
  heatmap: !0,
10182
10201
  scatter: !0
10183
10202
  }));
10184
- function Rh(e) {
10185
- return e != null && Lh.has(e.type);
10203
+ function Vh(e) {
10204
+ return e != null && Bh.has(e.type);
10186
10205
  }
10187
- function zh(e) {
10206
+ function Hh(e) {
10188
10207
  return Array.isArray(e) ? String(e[0]) : e.label ?? String(e.x);
10189
10208
  }
10190
- function Bh(e) {
10209
+ function Uh(e) {
10191
10210
  let t = e.scatterSeries ?? [], n = [], r = /* @__PURE__ */ new Set();
10192
10211
  for (let e of t) for (let t of e.data) {
10193
- let e = zh(t);
10212
+ let e = Hh(t);
10194
10213
  r.has(e) || (r.add(e), n.push(e));
10195
10214
  }
10196
10215
  return {
10197
10216
  categories: n,
10198
10217
  series: t.map((e) => {
10199
- let t = new Map(e.data.map((e) => [zh(e), Array.isArray(e) ? e[1] : e.y]));
10218
+ let t = new Map(e.data.map((e) => [Hh(e), Array.isArray(e) ? e[1] : e.y]));
10200
10219
  return {
10201
10220
  name: e.name,
10202
10221
  data: n.map((e) => t.get(e) ?? 0)
@@ -10204,7 +10223,7 @@ function Bh(e) {
10204
10223
  })
10205
10224
  };
10206
10225
  }
10207
- function Vh(e) {
10226
+ function Wh(e) {
10208
10227
  let t = e.xCategories ?? [], n = e.yCategories ?? [], r = e.data ?? [];
10209
10228
  if (t.length === 0 || n.length === 0) return {
10210
10229
  categories: [],
@@ -10220,22 +10239,22 @@ function Vh(e) {
10220
10239
  }))
10221
10240
  };
10222
10241
  }
10223
- function Hh(e, t) {
10242
+ function Gh(e, t) {
10224
10243
  return e.scatterSeries === void 0 ? e.xCategories?.length || e.yCategories?.length || e.data && Array.isArray(e.data) && e.data.length > 0 && Array.isArray(e.data[0]) ? "heatmap" : e.indicators?.length ? "radar" : e.series && !Array.isArray(e.series) && "value" in e.series && typeof e.series.value == "number" ? "gauge" : e.series && !Array.isArray(e.series) && "data" in e.series ? t === "pie" ? "pie" : "funnel" : "bar" : "scatter";
10225
10244
  }
10226
- function Uh(e, t) {
10227
- switch (t ?? Hh(e)) {
10245
+ function Kh(e, t) {
10246
+ switch (t ?? Gh(e)) {
10228
10247
  case "bar":
10229
- case "line": return Mh(e);
10230
- case "funnel": return Nh(e);
10231
- case "pie": return Ph(e);
10232
- case "radar": return Fh(e);
10233
- case "gauge": return Ih(e);
10234
- case "heatmap": return Vh(e);
10235
- case "scatter": return Bh(e);
10248
+ case "line": return Fh(e);
10249
+ case "funnel": return Ih(e);
10250
+ case "pie": return Lh(e);
10251
+ case "radar": return Rh(e);
10252
+ case "gauge": return zh(e);
10253
+ case "heatmap": return Wh(e);
10254
+ case "scatter": return Uh(e);
10236
10255
  }
10237
10256
  }
10238
- function Wh(e) {
10257
+ function qh(e) {
10239
10258
  return {
10240
10259
  categories: e.categories,
10241
10260
  series: e.series.map((e) => ({
@@ -10244,7 +10263,7 @@ function Wh(e) {
10244
10263
  }))
10245
10264
  };
10246
10265
  }
10247
- function Gh(e) {
10266
+ function Jh(e) {
10248
10267
  let t = e.series[0];
10249
10268
  return { series: {
10250
10269
  name: t?.name ?? "Funnel",
@@ -10254,7 +10273,7 @@ function Gh(e) {
10254
10273
  }))
10255
10274
  } };
10256
10275
  }
10257
- function Kh(e) {
10276
+ function Yh(e) {
10258
10277
  let t = e.series[0];
10259
10278
  return { series: {
10260
10279
  name: t?.name ?? "Distribution",
@@ -10264,7 +10283,7 @@ function Kh(e) {
10264
10283
  }))
10265
10284
  } };
10266
10285
  }
10267
- function qh(e) {
10286
+ function Xh(e) {
10268
10287
  let t = e.categories.map((t, n) => Math.max(...e.series.map((e) => e.data[n] ?? 0), 1));
10269
10288
  return {
10270
10289
  indicators: e.categories.map((e, n) => ({
@@ -10277,7 +10296,7 @@ function qh(e) {
10277
10296
  }))
10278
10297
  };
10279
10298
  }
10280
- function Jh(e) {
10299
+ function Zh(e) {
10281
10300
  return { scatterSeries: e.series.map((t) => ({
10282
10301
  name: t.name,
10283
10302
  data: e.categories.map((e, n) => ({
@@ -10287,7 +10306,7 @@ function Jh(e) {
10287
10306
  }))
10288
10307
  })) };
10289
10308
  }
10290
- function Yh(e) {
10309
+ function Qh(e) {
10291
10310
  return {
10292
10311
  series: {
10293
10312
  value: e.series[0]?.data[0] ?? 0,
@@ -10296,23 +10315,23 @@ function Yh(e) {
10296
10315
  categories: void 0
10297
10316
  };
10298
10317
  }
10299
- function Xh(e, t) {
10318
+ function $h(e, t) {
10300
10319
  switch (t) {
10301
10320
  case "bar":
10302
- case "line": return Wh(e);
10303
- case "funnel": return Gh(e);
10304
- case "pie": return Kh(e);
10305
- case "radar": return qh(e);
10306
- case "gauge": return Yh(e);
10321
+ case "line": return qh(e);
10322
+ case "funnel": return Jh(e);
10323
+ case "pie": return Yh(e);
10324
+ case "radar": return Xh(e);
10325
+ case "gauge": return Qh(e);
10307
10326
  case "heatmap": return {
10308
10327
  xCategories: [],
10309
10328
  yCategories: [],
10310
10329
  data: []
10311
10330
  };
10312
- case "scatter": return Jh(e);
10331
+ case "scatter": return Zh(e);
10313
10332
  }
10314
10333
  }
10315
- function Zh(e) {
10334
+ function eg(e) {
10316
10335
  let t = /* @__PURE__ */ new Set();
10317
10336
  switch (t.add("table"), t.add(e), e) {
10318
10337
  case "bar":
@@ -10331,7 +10350,7 @@ function Zh(e) {
10331
10350
  }
10332
10351
  return t;
10333
10352
  }
10334
- function Qh(e) {
10353
+ function tg(e) {
10335
10354
  switch (e) {
10336
10355
  case "bar": return {
10337
10356
  type: "bar",
@@ -10370,33 +10389,33 @@ function Qh(e) {
10370
10389
  }
10371
10390
  //#endregion
10372
10391
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/chartDataToTabular.ts
10373
- function $h(e) {
10392
+ function ng(e) {
10374
10393
  return e == null ? null : typeof e == "number" ? e : typeof e == "object" && "value" in e ? e.value : null;
10375
10394
  }
10376
- function eg(e, t) {
10395
+ function rg(e, t) {
10377
10396
  switch (e.type) {
10378
10397
  case "bar":
10379
- case "line": return tg(t);
10380
- case "funnel": return ng(t);
10381
- case "pie": return rg(t);
10382
- case "radar": return ig(t);
10383
- case "gauge": return ag(t);
10384
- case "heatmap": return og(t);
10385
- case "scatter": return sg(e, t);
10398
+ case "line": return ig(t);
10399
+ case "funnel": return ag(t);
10400
+ case "pie": return og(t);
10401
+ case "radar": return sg(t);
10402
+ case "gauge": return cg(t);
10403
+ case "heatmap": return lg(t);
10404
+ case "scatter": return ug(e, t);
10386
10405
  }
10387
10406
  }
10388
- function tg(e) {
10407
+ function ig(e) {
10389
10408
  let t = e.categories ?? [], n = e.series, r = Array.isArray(n) ? n : [];
10390
10409
  return {
10391
10410
  columns: ["Category", ...r.map((e) => e.name)],
10392
10411
  rows: t.map((e, t) => {
10393
10412
  let n = { Category: e };
10394
- for (let e of r) n[e.name] = $h(e.data[t]);
10413
+ for (let e of r) n[e.name] = ng(e.data[t]);
10395
10414
  return n;
10396
10415
  })
10397
10416
  };
10398
10417
  }
10399
- function ng(e) {
10418
+ function ag(e) {
10400
10419
  if (Array.isArray(e.series)) {
10401
10420
  let t = e.series[0];
10402
10421
  return t ? {
@@ -10418,7 +10437,7 @@ function ng(e) {
10418
10437
  }))
10419
10438
  };
10420
10439
  }
10421
- function rg(e) {
10440
+ function og(e) {
10422
10441
  return {
10423
10442
  columns: ["Name", "Value"],
10424
10443
  rows: (e.series?.data ?? []).map((e) => ({
@@ -10427,7 +10446,7 @@ function rg(e) {
10427
10446
  }))
10428
10447
  };
10429
10448
  }
10430
- function ig(e) {
10449
+ function sg(e) {
10431
10450
  let t = e.indicators ?? [], n = e.series, r = Array.isArray(n) ? n : [];
10432
10451
  return {
10433
10452
  columns: ["Indicator", ...r.map((e) => e.name)],
@@ -10438,7 +10457,7 @@ function ig(e) {
10438
10457
  })
10439
10458
  };
10440
10459
  }
10441
- function ag(e) {
10460
+ function cg(e) {
10442
10461
  let t = e.series;
10443
10462
  return {
10444
10463
  columns: ["Name", "Value"],
@@ -10448,7 +10467,7 @@ function ag(e) {
10448
10467
  }]
10449
10468
  };
10450
10469
  }
10451
- function og(e) {
10470
+ function lg(e) {
10452
10471
  let t = e.xCategories ?? [], n = e.yCategories ?? [];
10453
10472
  return {
10454
10473
  columns: [
@@ -10463,7 +10482,7 @@ function og(e) {
10463
10482
  }))
10464
10483
  };
10465
10484
  }
10466
- function sg(e, t) {
10485
+ function ug(e, t) {
10467
10486
  let n = (t.scatterSeries ?? []).flatMap((e) => e.data.map((t) => ({
10468
10487
  series: e.name,
10469
10488
  label: Array.isArray(t) ? "" : t.label ?? "",
@@ -10488,29 +10507,29 @@ function sg(e, t) {
10488
10507
  }
10489
10508
  //#endregion
10490
10509
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/downloadHelpers.ts
10491
- function cg(e) {
10510
+ function dg(e) {
10492
10511
  return e == null ? "" : typeof e == "boolean" ? String(e) : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e);
10493
10512
  }
10494
- function lg({ columns: e, rows: t, keys: n, preamble: r }) {
10495
- let i = n ?? e, a = [e, ...t.map((e) => i.map((t) => cg(e[t])))];
10513
+ function fg({ columns: e, rows: t, keys: n, preamble: r }) {
10514
+ let i = n ?? e, a = [e, ...t.map((e) => i.map((t) => dg(e[t])))];
10496
10515
  return r?.length ? [
10497
10516
  ...r.map((e) => [e]),
10498
10517
  [],
10499
10518
  ...a
10500
10519
  ] : a;
10501
10520
  }
10502
- function ug(e, t) {
10521
+ function pg(e, t) {
10503
10522
  let n = (t ?? "").split("\n").map((e) => e.trim()).filter((e) => e.length > 0);
10504
10523
  return n.length > 0 ? [e, ...n] : [];
10505
10524
  }
10506
- function dg(e, t) {
10525
+ function mg(e, t) {
10507
10526
  let n = document.createElement("a");
10508
10527
  n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
10509
10528
  }
10510
- async function fg(e, t, n, { keys: r, preamble: i } = {}) {
10511
- dg(await mo([{
10529
+ async function hg(e, t, n, { keys: r, preamble: i } = {}) {
10530
+ mg(await mo([{
10512
10531
  name: "Data",
10513
- rows: lg({
10532
+ rows: fg({
10514
10533
  columns: e,
10515
10534
  rows: t,
10516
10535
  keys: r,
@@ -10518,30 +10537,30 @@ async function fg(e, t, n, { keys: r, preamble: i } = {}) {
10518
10537
  })
10519
10538
  }]), `${n}.xlsx`);
10520
10539
  }
10521
- function pg(e, t, n, r) {
10540
+ function gg(e, t, n, r) {
10522
10541
  let i = r ?? e, a = (e) => {
10523
- let t = cg(e);
10542
+ let t = dg(e);
10524
10543
  return t.includes(",") || t.includes("\"") || t.includes("\n") ? `"${t.replace(/"/g, "\"\"")}"` : t;
10525
10544
  }, o = [e.map(a).join(","), ...t.map((e) => i.map((t) => a(e[t])).join(","))];
10526
- dg(new Blob([o.join("\n")], { type: "text/csv;charset=utf-8;" }), `${n}.csv`);
10545
+ mg(new Blob([o.join("\n")], { type: "text/csv;charset=utf-8;" }), `${n}.csv`);
10527
10546
  }
10528
- function mg(e, t, n) {
10547
+ function _g(e, t, n) {
10529
10548
  let r = document.createElement("a");
10530
10549
  r.href = e, r.download = `${t}.${n}`, r.click();
10531
10550
  }
10532
- async function hg(e, t) {
10533
- dg(await mo(e.map((e) => ({
10551
+ async function vg(e, t) {
10552
+ mg(await mo(e.map((e) => ({
10534
10553
  name: e.name,
10535
- rows: lg(e)
10554
+ rows: fg(e)
10536
10555
  }))), `${t}.xlsx`);
10537
10556
  }
10538
10557
  //#endregion
10539
10558
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useChartDownloadActions.ts
10540
- function gg(e) {
10559
+ function yg(e) {
10541
10560
  let t = e.current?.querySelector(":scope > div");
10542
10561
  return t ? Et(t) ?? null : null;
10543
10562
  }
10544
- function _g(e, t, n) {
10563
+ function bg(e, t, n) {
10545
10564
  let r = zt(document.createElement("div"), void 0, {
10546
10565
  renderer: "canvas",
10547
10566
  width: e.getWidth(),
@@ -10560,29 +10579,29 @@ function _g(e, t, n) {
10560
10579
  r.dispose();
10561
10580
  }
10562
10581
  }
10563
- function vg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
10582
+ function xg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
10564
10583
  let { t: i } = V(), a = W((t) => {
10565
- let n = gg(e);
10566
- n && mg(t === "jpg" ? _g(n, "jpeg", "#fff") : _g(n, "png"), r, t);
10584
+ let n = yg(e);
10585
+ n && _g(t === "jpg" ? bg(n, "jpeg", "#fff") : bg(n, "png"), r, t);
10567
10586
  }, [e, r]), o = K(() => {
10568
10587
  if (!n) return t;
10569
- let e = Hh(n, t.type);
10588
+ let e = Gh(n, t.type);
10570
10589
  return e === t.type ? t : {
10571
10590
  ...t,
10572
10591
  type: e
10573
10592
  };
10574
10593
  }, [t, n]), s = W(() => {
10575
10594
  if (!n) return;
10576
- let e = eg(o, n);
10577
- fg(e.columns, e.rows, r, { keys: e.keys });
10595
+ let e = rg(o, n);
10596
+ hg(e.columns, e.rows, r, { keys: e.keys });
10578
10597
  }, [
10579
10598
  o,
10580
10599
  n,
10581
10600
  r
10582
10601
  ]), c = W(() => {
10583
10602
  if (!n) return;
10584
- let e = eg(o, n);
10585
- pg(e.columns, e.rows, r, e.keys);
10603
+ let e = rg(o, n);
10604
+ gg(e.columns, e.rows, r, e.keys);
10586
10605
  }, [
10587
10606
  o,
10588
10607
  n,
@@ -10620,7 +10639,7 @@ function vg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
10620
10639
  }
10621
10640
  //#endregion
10622
10641
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useDashboardItemData.ts
10623
- function yg(e, t, n, r = "") {
10642
+ function Sg(e, t, n, r = "") {
10624
10643
  let [i, a] = J(void 0), [o, s] = J(!0), [c, l] = J(void 0), u = q(0), d = q(e);
10625
10644
  d.current = e;
10626
10645
  let f = q(t);
@@ -10652,7 +10671,7 @@ function yg(e, t, n, r = "") {
10652
10671
  }
10653
10672
  //#endregion
10654
10673
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemFilters.tsx
10655
- function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
10674
+ function Cg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
10656
10675
  let i = V(), a = kc(), o = q(null), s = q(void 0), c = q(r), [l, u] = J(!1), [d, f] = J(null), [p, m] = J(t);
10657
10676
  G(() => {
10658
10677
  c.current = r;
@@ -10794,24 +10813,24 @@ function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
10794
10813
  }
10795
10814
  //#endregion
10796
10815
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/useTitleFitsOneLine.ts
10797
- var xg = "(hover: hover) and (min-width: 640px)", Sg = (e) => {
10816
+ var wg = "(hover: hover) and (min-width: 640px)", Tg = (e) => {
10798
10817
  let { whiteSpace: t, display: n } = e.style;
10799
10818
  e.style.whiteSpace = "nowrap", e.style.display = "block";
10800
10819
  let r = e.scrollWidth;
10801
10820
  return e.style.whiteSpace = t, e.style.display = n, r;
10802
10821
  };
10803
- function Cg({ title: e, enabled: t, actionsCollapse: n }) {
10822
+ function Eg({ title: e, enabled: t, actionsCollapse: n }) {
10804
10823
  let r = q(null), i = q(null), a = q(null), [o, s] = J(!0);
10805
10824
  return jc(() => {
10806
10825
  let e = r.current;
10807
10826
  if (!t || !e) return;
10808
- let o = window.matchMedia?.(xg), c = () => {
10827
+ let o = window.matchMedia?.(wg), c = () => {
10809
10828
  let t = e.querySelector("h3");
10810
10829
  if (!t) {
10811
10830
  s(!0);
10812
10831
  return;
10813
10832
  }
10814
- let r = Sg(t), c = n && o?.matches ? 0 : a.current?.getBoundingClientRect().width ?? 0, l = i.current, u = l ? l.getBoundingClientRect().width + 4 : 0, d = e.getBoundingClientRect().width - c - u;
10833
+ let r = Tg(t), c = n && o?.matches ? 0 : a.current?.getBoundingClientRect().width ?? 0, l = i.current, u = l ? l.getBoundingClientRect().width + 4 : 0, d = e.getBoundingClientRect().width - c - u;
10815
10834
  s(r <= d);
10816
10835
  };
10817
10836
  c();
@@ -10836,10 +10855,10 @@ function Cg({ title: e, enabled: t, actionsCollapse: n }) {
10836
10855
  }
10837
10856
  //#endregion
10838
10857
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
10839
- function wg({ 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: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
10858
+ function Dg({ 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: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
10840
10859
  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 } = ma(), I = (e) => {
10841
10860
  T(e), e || A(!1);
10842
- }, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, L = u && f && g, ne = _ && _.length > 0, re = !!v && v.trim().length > 0, ie = !!C, ae = !d && e.trim().length > 0 && (p ? !!g : M), oe = ae || te || L || ne || re, se = !!l || ie || !!oe, ce = !y && (w || E), le = H("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = H("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = Cg({
10861
+ }, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, ne = u && f && g, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (p ? !!g : M), se = oe || te || ne || re || ie, L = !!l || ae || !!se, ce = !y && (w || E), le = H("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = H("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = Eg({
10843
10862
  title: e,
10844
10863
  enabled: x > 2,
10845
10864
  actionsCollapse: !y
@@ -10861,7 +10880,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10861
10880
  }), N(t), P(!0);
10862
10881
  }, he = (e) => {
10863
10882
  O.current && (O.current = !1, F() && e.preventDefault());
10864
- }, ge = ae ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
10883
+ }, ge = oe ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
10865
10884
  onClick: me,
10866
10885
  children: /* @__PURE__ */ Z("div", {
10867
10886
  className: "flex w-full flex-row items-center gap-2",
@@ -10890,12 +10909,12 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10890
10909
  className: "text-base text-f1-foreground-secondary",
10891
10910
  children: t
10892
10911
  }) : null]
10893
- }), l || ae ? /* @__PURE__ */ Z("div", {
10912
+ }), l || oe ? /* @__PURE__ */ Z("div", {
10894
10913
  className: le,
10895
- children: [l ? /* @__PURE__ */ X(bg, {
10914
+ children: [l ? /* @__PURE__ */ X(Cg, {
10896
10915
  ...l,
10897
10916
  onOpenChange: D
10898
- }) : null, ae ? /* @__PURE__ */ Z(pn, {
10917
+ }) : null, oe ? /* @__PURE__ */ Z(pn, {
10899
10918
  open: w,
10900
10919
  onOpenChange: I,
10901
10920
  children: [/* @__PURE__ */ X(En, {
@@ -10936,7 +10955,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10936
10955
  "aria-busy": r ? "true" : void 0,
10937
10956
  "aria-live": r ? "polite" : void 0,
10938
10957
  children: [/* @__PURE__ */ Z("div", {
10939
- className: H("flex flex-col px-4 py-3", se && "min-h-14"),
10958
+ className: H("flex flex-col px-4 py-3", L && "min-h-14"),
10940
10959
  children: [/* @__PURE__ */ Z(ko, {
10941
10960
  ref: de.rowRef,
10942
10961
  display: "flex",
@@ -10954,7 +10973,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10954
10973
  className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
10955
10974
  children: /* @__PURE__ */ X(je, { info: n })
10956
10975
  }) : null]
10957
- }), se ? /* @__PURE__ */ X("div", {
10976
+ }), L ? /* @__PURE__ */ X("div", {
10958
10977
  ref: de.actionsRef,
10959
10978
  className: H(ue, fe > 1 && "-mt-1.5"),
10960
10979
  children: /* @__PURE__ */ X("div", {
@@ -10962,11 +10981,11 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10962
10981
  children: /* @__PURE__ */ Z("div", {
10963
10982
  className: H(le, "p-0.5 pl-2"),
10964
10983
  children: [
10965
- l ? /* @__PURE__ */ X(bg, {
10984
+ l ? /* @__PURE__ */ X(Cg, {
10966
10985
  ...l,
10967
10986
  onOpenChange: D
10968
10987
  }) : null,
10969
- ie ? /* @__PURE__ */ X(or, {
10988
+ ae ? /* @__PURE__ */ X(or, {
10970
10989
  label: y ? j.actions.collapse : j.actions.expand,
10971
10990
  icon: y ? Ui : ka,
10972
10991
  variant: "ghost",
@@ -10975,7 +10994,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10975
10994
  compact: !0,
10976
10995
  onClick: () => C?.(!y)
10977
10996
  }) : null,
10978
- oe ? /* @__PURE__ */ Z(pn, {
10997
+ se ? /* @__PURE__ */ Z(pn, {
10979
10998
  open: w,
10980
10999
  onOpenChange: I,
10981
11000
  children: [/* @__PURE__ */ X(En, {
@@ -10994,14 +11013,14 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
10994
11013
  align: "end",
10995
11014
  className: H("py-1", k && "w-96 max-w-[90vw]"),
10996
11015
  onCloseAutoFocus: he,
10997
- children: k && re ? /* @__PURE__ */ X("div", {
11016
+ children: k && ie ? /* @__PURE__ */ X("div", {
10998
11017
  className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
10999
11018
  children: /* @__PURE__ */ X(no, {
11000
11019
  content: v,
11001
11020
  format: "markdown"
11002
11021
  })
11003
11022
  }) : /* @__PURE__ */ Z(Y, { children: [
11004
- ne ? /* @__PURE__ */ Z("div", {
11023
+ re ? /* @__PURE__ */ Z("div", {
11005
11024
  className: "mb-1 flex flex-col items-start gap-2 border-0 border-b border-solid border-f1-border-secondary p-3",
11006
11025
  children: [/* @__PURE__ */ X(sr, {
11007
11026
  className: "text-base font-medium text-f1-foreground-tertiary",
@@ -11022,7 +11041,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11022
11041
  fullWidth: !0
11023
11042
  })]
11024
11043
  }) : null,
11025
- re ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
11044
+ ie ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
11026
11045
  onSelect: (e) => {
11027
11046
  e.preventDefault(), A(!0);
11028
11047
  },
@@ -11054,7 +11073,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11054
11073
  })]
11055
11074
  })
11056
11075
  }, e.label)) }) })] }) }) : null,
11057
- L ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
11076
+ ne ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Cn, {
11058
11077
  onClick: () => {
11059
11078
  y && C?.(!1), f(g);
11060
11079
  },
@@ -11099,8 +11118,8 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
11099
11118
  }
11100
11119
  //#endregion
11101
11120
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/PointActionPopover.tsx
11102
- var Tg = 8, Eg = 8;
11103
- function Dg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
11121
+ var Og = 8, kg = 8;
11122
+ function Ag({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
11104
11123
  let i = V(), a = q(null), [o, s] = J(null);
11105
11124
  return jc(() => {
11106
11125
  if (!e) {
@@ -11109,9 +11128,9 @@ function Dg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
11109
11128
  }
11110
11129
  let t = a.current;
11111
11130
  if (!t) return;
11112
- let { offsetWidth: n, offsetHeight: r } = t, i = e.clientY - r - Tg;
11113
- i < Eg && (i = e.clientY + Tg), i = Math.min(Math.max(i, Eg), window.innerHeight - r - Eg);
11114
- let o = e.clientX - n / 2, c = Math.min(Math.max(o, Eg), window.innerWidth - n - Eg);
11131
+ let { offsetWidth: n, offsetHeight: r } = t, i = e.clientY - r - Og;
11132
+ i < kg && (i = e.clientY + Og), i = Math.min(Math.max(i, kg), window.innerHeight - r - kg);
11133
+ let o = e.clientX - n / 2, c = Math.min(Math.max(o, kg), window.innerWidth - n - kg);
11115
11134
  s({
11116
11135
  top: i,
11117
11136
  left: c
@@ -11159,38 +11178,38 @@ function Dg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
11159
11178
  }
11160
11179
  //#endregion
11161
11180
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/pointQuote.ts
11162
- function Og(e, t, n, r = "y") {
11181
+ function jg(e, t, n, r = "y") {
11163
11182
  return t === null ? n : r === "x" && e.type === "scatter" ? Ie(e.xTooltipValueFormatter, e.xValueFormatter)(t) : Ie(e.tooltipValueFormatter, e.valueFormatter)(t);
11164
11183
  }
11165
- function kg(e, t) {
11184
+ function Mg(e, t) {
11166
11185
  return t ? `${e} — ${t}` : e;
11167
11186
  }
11168
- function Ag(e, t, n, r) {
11187
+ function Ng(e, t, n, r) {
11169
11188
  let i = t.xAxisName ?? "X", a = t.yAxisName ?? "Y", o = n.seriesName ? `${n.seriesName}\n` : "", [s, c] = n.values;
11170
- return `${kg(e, n.category)}\n${o}${i}: ${Og(t, s, r, "x")}\n${a}: ${Og(t, c, r)}`;
11189
+ return `${Mg(e, n.category)}\n${o}${i}: ${jg(t, s, r, "x")}\n${a}: ${jg(t, c, r)}`;
11171
11190
  }
11172
- function jg(e, t, n, r) {
11173
- let i = t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.series.map(({ name: e, value: n }) => `${e}: ${Og(t, n, r)}`);
11174
- return `${kg(e, i)}\n${a.join("\n")}`;
11191
+ function Pg(e, t, n, r) {
11192
+ let i = t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.series.map(({ name: e, value: n }) => `${e}: ${jg(t, n, r)}`);
11193
+ return `${Mg(e, i)}\n${a.join("\n")}`;
11175
11194
  }
11176
- function Mg(e, t, n, r) {
11177
- let i = t.indicators.slice(0, n.values.length).map(({ name: e }, i) => `${e}: ${Og(t, n.values[i], r)}`);
11178
- return `${kg(e, n.seriesName)}\n${i.join("\n")}`;
11195
+ function Fg(e, t, n, r) {
11196
+ let i = t.indicators.slice(0, n.values.length).map(({ name: e }, i) => `${e}: ${jg(t, n.values[i], r)}`);
11197
+ return `${Mg(e, n.seriesName)}\n${i.join("\n")}`;
11179
11198
  }
11180
- function Ng(e, t, n, r) {
11199
+ function Ig(e, t, n, r) {
11181
11200
  let [i, a] = n.values, o = i === null ? void 0 : t.xCategories[i];
11182
- return `${kg(e, [a === null ? void 0 : t.yCategories[a], o].filter(Boolean).join(" — "))}\n${Og(t, n.value, r)}`;
11201
+ return `${Mg(e, [a === null ? void 0 : t.yCategories[a], o].filter(Boolean).join(" — "))}\n${jg(t, n.value, r)}`;
11183
11202
  }
11184
- function Pg(e, t, n, r) {
11203
+ function Lg(e, t, n, r) {
11185
11204
  let i = "categoryFormatter" in t && t.categoryFormatter ? t.categoryFormatter(n.category) : n.category, a = n.seriesName ? `${n.seriesName}: ` : "";
11186
- return `${kg(e, i)}\n${a}${Og(t, n.value, r)}`;
11205
+ return `${Mg(e, i)}\n${a}${jg(t, n.value, r)}`;
11187
11206
  }
11188
- function Fg(e, t, n, r) {
11189
- return t.type === "scatter" && n.values.length >= 2 ? Ag(e, t, n, r) : t.type === "line" && n.series.length > 1 ? jg(e, t, n, r) : t.type === "radar" && t.indicators.length && n.values.length > 1 ? Mg(e, t, n, r) : t.type === "heatmap" && n.values.length >= 3 ? Ng(e, t, n, r) : Pg(e, t, n, r);
11207
+ function Rg(e, t, n, r) {
11208
+ return t.type === "scatter" && n.values.length >= 2 ? Ng(e, t, n, r) : t.type === "line" && n.series.length > 1 ? Pg(e, t, n, r) : t.type === "radar" && t.indicators.length && n.values.length > 1 ? Fg(e, t, n, r) : t.type === "heatmap" && n.values.length >= 3 ? Ig(e, t, n, r) : Lg(e, t, n, r);
11190
11209
  }
11191
11210
  //#endregion
11192
11211
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/ChartItem.tsx
11193
- function Ig(e) {
11212
+ function zg(e) {
11194
11213
  return [
11195
11214
  {
11196
11215
  label: e.dataChart.barChartVertical,
@@ -11232,8 +11251,8 @@ function Ig(e) {
11232
11251
  }
11233
11252
  ];
11234
11253
  }
11235
- var Lg = { type: "bar" };
11236
- function Rg(e) {
11254
+ var Bg = { type: "bar" };
11255
+ function Vg(e) {
11237
11256
  switch (e.type) {
11238
11257
  case "bar": return /* @__PURE__ */ X(yt, {
11239
11258
  orientation: e.orientation,
@@ -11261,13 +11280,13 @@ function Rg(e) {
11261
11280
  case "scatter": return /* @__PURE__ */ X(nt, { showLegend: e.showLegend ?? !1 });
11262
11281
  }
11263
11282
  }
11264
- function zg(e) {
11283
+ function Hg(e) {
11265
11284
  return e.referenceLines ? { referenceLines: e.referenceLines } : {};
11266
11285
  }
11267
- function Bg(e, t, n, r) {
11286
+ function Ug(e, t, n, r) {
11268
11287
  let i = n ?? e.chart.type;
11269
- if (i === Hh(t, i) && i === e.chart.type && !r) return Vg(e, t);
11270
- let a = Xh(Uh(t), i), o = Qh(i), s = {};
11288
+ if (i === Gh(t, i) && i === e.chart.type && !r) return Wg(e, t);
11289
+ let a = $h(Kh(t), i), o = tg(i), s = {};
11271
11290
  switch ("valueFormatter" in e.chart && e.chart.valueFormatter && (s.valueFormatter = e.chart.valueFormatter), "tooltipValueFormatter" in e.chart && e.chart.tooltipValueFormatter && (s.tooltipValueFormatter = e.chart.tooltipValueFormatter), "showLegend" in e.chart && (s.showLegend = e.chart.showLegend), i === "bar" && "showLabels" in e.chart && e.chart.showLabels !== void 0 && (s.showLabels = e.chart.showLabels), i) {
11272
11291
  case "bar": {
11273
11292
  let n = r ?? ("orientation" in e.chart ? e.chart.orientation : void 0) ?? o.orientation;
@@ -11275,7 +11294,7 @@ function Bg(e, t, n, r) {
11275
11294
  ...o,
11276
11295
  ...s,
11277
11296
  ...n ? { orientation: n } : {},
11278
- ...zg(t),
11297
+ ...Hg(t),
11279
11298
  categories: a.categories ?? [],
11280
11299
  series: a.series
11281
11300
  };
@@ -11283,7 +11302,7 @@ function Bg(e, t, n, r) {
11283
11302
  case "line": return {
11284
11303
  ...o,
11285
11304
  ...s,
11286
- ...zg(t),
11305
+ ...Hg(t),
11287
11306
  categories: a.categories ?? [],
11288
11307
  series: a.series
11289
11308
  };
@@ -11318,12 +11337,12 @@ function Bg(e, t, n, r) {
11318
11337
  };
11319
11338
  }
11320
11339
  }
11321
- function Vg(e, t) {
11340
+ function Wg(e, t) {
11322
11341
  let { chart: n } = e;
11323
11342
  switch (n.type) {
11324
11343
  case "funnel": {
11325
11344
  let e = t.series;
11326
- return Array.isArray(t.series) && (e = Xh(Uh(t, "bar"), "funnel").series), {
11345
+ return Array.isArray(t.series) && (e = $h(Kh(t, "bar"), "funnel").series), {
11327
11346
  ...n,
11328
11347
  series: e
11329
11348
  };
@@ -11355,30 +11374,30 @@ function Vg(e, t) {
11355
11374
  case "line": {
11356
11375
  let { series: e } = t, r = t.categories ?? [];
11357
11376
  if (e && !Array.isArray(e)) {
11358
- let i = Xh(Uh(t, "funnel"), n.type);
11377
+ let i = $h(Kh(t, "funnel"), n.type);
11359
11378
  e = i.series, r = i.categories ?? [];
11360
11379
  }
11361
11380
  return {
11362
11381
  ...n,
11363
11382
  ...n.type === "bar" ? { showLabels: n.showLabels ?? !0 } : {},
11364
- ...zg(t),
11383
+ ...Hg(t),
11365
11384
  categories: r,
11366
11385
  series: e
11367
11386
  };
11368
11387
  }
11369
11388
  }
11370
11389
  }
11371
- function Hg({ config: e, data: t }) {
11372
- let n = Hh(t, e.type), r = n === e.type ? e : {
11390
+ function Gg({ config: e, data: t }) {
11391
+ let n = Gh(t, e.type), r = n === e.type ? e : {
11373
11392
  ...e,
11374
11393
  type: n
11375
- }, i = K(() => eg(r, t), [r, t]), a = K(() => ({
11394
+ }, i = K(() => rg(r, t), [r, t]), a = K(() => ({
11376
11395
  dataAdapter: { fetchData: () => ({ records: i.rows }) },
11377
11396
  columns: i.columns.map((e) => ({
11378
11397
  label: e,
11379
11398
  id: e
11380
11399
  }))
11381
- }), [i]), o = se(a, [i]), s = K(() => [{
11400
+ }), [i]), o = L(a, [i]), s = K(() => [{
11382
11401
  type: "table",
11383
11402
  options: { columns: i.columns.map((e, t) => ({
11384
11403
  label: e,
@@ -11391,11 +11410,11 @@ function Hg({ config: e, data: t }) {
11391
11410
  visualizations: s
11392
11411
  });
11393
11412
  }
11394
- function Ug(e) {
11395
- return Rh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
11413
+ function Kg(e) {
11414
+ return Vh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
11396
11415
  }
11397
- function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
11398
- let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = ma(), y = !Rh(e.chart), b = y ? Lg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = yg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Bg(e, T) : void 0, [
11416
+ function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
11417
+ let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = ma(), y = !Vh(e.chart), b = y ? Bg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = Sg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Ug(e, T) : void 0, [
11399
11418
  e,
11400
11419
  T,
11401
11420
  y
@@ -11421,7 +11440,7 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11421
11440
  return;
11422
11441
  }
11423
11442
  if (!A) return;
11424
- let n = { text: Fg(e.title, A, t, f.dataChart.noData) };
11443
+ let n = { text: Rg(e.title, A, t, f.dataChart.noData) };
11425
11444
  c?.({
11426
11445
  id: e.id,
11427
11446
  title: e.title,
@@ -11439,15 +11458,15 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11439
11458
  g,
11440
11459
  _,
11441
11460
  v
11442
- ]), P = K(() => Ig(f), [f]), F = vg({
11461
+ ]), P = K(() => zg(f), [f]), F = xg({
11443
11462
  chartContainerRef: k,
11444
11463
  chartConfig: b,
11445
11464
  data: T,
11446
11465
  title: e.title
11447
- }), I = K(() => [...n ?? [], ...F], [n, F]), ee = W(() => S(null), []), te = b.type === "bar" ? "orientation" in b ? b.orientation ?? "vertical" : "vertical" : void 0, L = T ? Hh(T, b.type) : b.type, ne = K(() => Zh(L), [L]), re = T && Array.isArray(T.series) ? T.series.length : 1, ie = P.filter((e) => {
11466
+ }), I = K(() => [...n ?? [], ...F], [n, F]), ee = W(() => S(null), []), te = b.type === "bar" ? "orientation" in b ? b.orientation ?? "vertical" : "vertical" : void 0, ne = T ? Gh(T, b.type) : b.type, re = K(() => eg(ne), [ne]), ie = T && Array.isArray(T.series) ? T.series.length : 1, ae = P.filter((e) => {
11448
11467
  let t = e.type === "bar" ? "bar" : e.type;
11449
- return !(!ne.has(t) || e.type === "pie" && re > 1);
11450
- }), ae = l && L !== "scatter" && L !== "radar" && L !== "heatmap" ? ie.map((t) => {
11468
+ return !(!re.has(t) || e.type === "pie" && ie > 1);
11469
+ }), oe = l && ne !== "scatter" && ne !== "radar" && ne !== "heatmap" ? ae.map((t) => {
11451
11470
  let n = t.type === "table", r = n ? p === "table" : p === "chart" && b.type === t.type && (t.type !== "bar" || te === t.orientation);
11452
11471
  return {
11453
11472
  label: t.label,
@@ -11458,14 +11477,14 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11458
11477
  n ? m("table") : (m("chart"), (b.type !== t.type || t.type === "bar" && te !== t.orientation) && l(e.id, t.type, t.orientation));
11459
11478
  }
11460
11479
  };
11461
- }) : void 0, oe = !!u && Ug(e), [se, ce] = J(0), le = !!d && Ug(e), ue = le && !u && se > 0, de = le && !!u, fe = T?.categories?.length ?? 0, pe = ue ? f.dataChart.windowedCategories.replace("{{count}}", String(Math.max(0, fe - se))).replace("{{total}}", String(fe)) : void 0, me = ue ? {
11480
+ }) : void 0, se = !!u && Kg(e), [L, ce] = J(0), le = !!d && Kg(e), ue = le && !u && L > 0, de = le && !!u, fe = T?.categories?.length ?? 0, pe = ue ? f.dataChart.windowedCategories.replace("{{count}}", String(Math.max(0, fe - L))).replace("{{total}}", String(fe)) : void 0, me = ue ? {
11462
11481
  label: f.actions.showAll,
11463
11482
  onClick: () => d?.(!0)
11464
11483
  } : de ? {
11465
11484
  label: f.actions.showLess,
11466
11485
  onClick: () => d?.(!1)
11467
11486
  } : void 0;
11468
- return /* @__PURE__ */ X(wg, {
11487
+ return /* @__PURE__ */ X(Dg, {
11469
11488
  title: e.title,
11470
11489
  description: pe ?? e.description,
11471
11490
  info: e.info,
@@ -11474,7 +11493,7 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11474
11493
  isLoading: E,
11475
11494
  error: D ?? (y ? /* @__PURE__ */ Error() : void 0),
11476
11495
  onRetry: y ? void 0 : O,
11477
- skeleton: Rg(b),
11496
+ skeleton: Vg(b),
11478
11497
  actions: I,
11479
11498
  itemFilters: r,
11480
11499
  editMode: i,
@@ -11483,11 +11502,11 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11483
11502
  onAskAi: s,
11484
11503
  onAskAiTarget: c,
11485
11504
  itemId: e.id,
11486
- chartTypeOptions: ae,
11505
+ chartTypeOptions: oe,
11487
11506
  isFullscreen: u,
11488
- fitContent: oe,
11507
+ fitContent: se,
11489
11508
  onFullscreenChange: d,
11490
- children: T && A ? p === "table" ? /* @__PURE__ */ X(Hg, {
11509
+ children: T && A ? p === "table" ? /* @__PURE__ */ X(Gg, {
11491
11510
  config: b,
11492
11511
  data: T
11493
11512
  }) : /* @__PURE__ */ Z("div", {
@@ -11502,8 +11521,8 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11502
11521
  windowCategories: !0,
11503
11522
  onHiddenCategoriesChange: ce
11504
11523
  } : {},
11505
- ...oe ? { showAllCategories: !0 } : {}
11506
- }), /* @__PURE__ */ X(Dg, {
11524
+ ...se ? { showAllCategories: !0 } : {}
11525
+ }), /* @__PURE__ */ X(Ag, {
11507
11526
  anchor: x,
11508
11527
  onAsk: () => {
11509
11528
  x && N(x);
@@ -11519,14 +11538,14 @@ function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11519
11538
  }
11520
11539
  //#endregion
11521
11540
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/tableExport.ts
11522
- function Gg(e) {
11541
+ function Jg(e) {
11523
11542
  return ((e?.find((e) => e?.type === "table"))?.options?.columns ?? []).filter((e) => typeof e?.id == "string" && typeof e?.label == "string").map((e) => ({
11524
11543
  id: e.id,
11525
11544
  label: e.label,
11526
11545
  render: e.render
11527
11546
  }));
11528
11547
  }
11529
- function Kg(e, t) {
11548
+ function Yg(e, t) {
11530
11549
  return e.map((e) => {
11531
11550
  let n = {};
11532
11551
  for (let r of t) n[r.id] = r.render ? qt(r.render(e)) : e[r.id];
@@ -11535,11 +11554,11 @@ function Kg(e, t) {
11535
11554
  }
11536
11555
  //#endregion
11537
11556
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useCollectionDownloadActions.ts
11538
- var qg = 1e4, Jg = 100;
11539
- async function Yg(e) {
11557
+ var Xg = 1e4, Zg = 100;
11558
+ async function Qg(e) {
11540
11559
  return e;
11541
11560
  }
11542
- async function Xg(e) {
11561
+ async function $g(e) {
11543
11562
  let { dataAdapter: t } = e, n = [...e.currentSortings ? [{
11544
11563
  field: e.currentSortings.field,
11545
11564
  order: e.currentSortings.order
@@ -11552,38 +11571,38 @@ async function Xg(e) {
11552
11571
  search: e.currentSearch,
11553
11572
  navigationFilters: e.currentNavigationFilters
11554
11573
  }, i = t.exportFetchData ?? t.fetchData;
11555
- if (!t.paginationType) return ((await Yg(i(r))).records ?? []).slice(0, qg);
11574
+ if (!t.paginationType) return ((await Qg(i(r))).records ?? []).slice(0, Xg);
11556
11575
  if (t.paginationType === "pages") {
11557
11576
  let e = [], t = 1;
11558
- for (; e.length < qg;) {
11559
- let n = await Yg(i({
11577
+ for (; e.length < Xg;) {
11578
+ let n = await Qg(i({
11560
11579
  ...r,
11561
11580
  pagination: {
11562
11581
  currentPage: t,
11563
- perPage: Jg
11582
+ perPage: Zg
11564
11583
  }
11565
11584
  }));
11566
11585
  if (!n.records || n.records.length === 0 || (e.push(...n.records), "pagesCount" in n && t >= n.pagesCount)) break;
11567
11586
  t++;
11568
11587
  }
11569
- return e.slice(0, qg);
11588
+ return e.slice(0, Xg);
11570
11589
  }
11571
11590
  let a = [], o = null;
11572
- for (; a.length < qg;) {
11573
- let e = await Yg(i({
11591
+ for (; a.length < Xg;) {
11592
+ let e = await Qg(i({
11574
11593
  ...r,
11575
11594
  pagination: {
11576
11595
  cursor: o,
11577
- perPage: Jg
11596
+ perPage: Zg
11578
11597
  }
11579
11598
  }));
11580
11599
  if (!e.records || e.records.length === 0 || (a.push(...e.records), "hasMore" in e && !e.hasMore)) break;
11581
11600
  if ("cursor" in e) o = e.cursor ?? null;
11582
11601
  else break;
11583
11602
  }
11584
- return a.slice(0, qg);
11603
+ return a.slice(0, Xg);
11585
11604
  }
11586
- function Zg(e, t) {
11605
+ function e_(e, t) {
11587
11606
  let n = new Set(t?.hidden ?? []), r = e.filter((e) => !n.has(e.id)), i = t?.order;
11588
11607
  if (!i || i.length === 0) return r;
11589
11608
  let a = new Map(r.map((e) => [e.id, e])), o = [];
@@ -11594,18 +11613,18 @@ function Zg(e, t) {
11594
11613
  for (let e of r) a.has(e.id) && o.push(e);
11595
11614
  return o;
11596
11615
  }
11597
- function Qg({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
11616
+ function t_({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
11598
11617
  let { t: a } = V(), [o, s] = J(!1), c = W(async (a) => {
11599
11618
  if (e && !o) {
11600
11619
  s(!0);
11601
11620
  try {
11602
- let o = await Xg(e), s = Zg(r, i);
11621
+ let o = await $g(e), s = e_(r, i);
11603
11622
  if (s.length === 0 || o.length === 0) return;
11604
- let c = s.map((e) => e.label), l = s.map((e) => e.id), u = Kg(o, s);
11605
- a === "excel" ? await fg(c, u, t, {
11623
+ let c = s.map((e) => e.label), l = s.map((e) => e.id), u = Yg(o, s);
11624
+ a === "excel" ? await hg(c, u, t, {
11606
11625
  keys: l,
11607
- preamble: ug(t, n)
11608
- }) : pg(c, u, t, l);
11626
+ preamble: pg(t, n)
11627
+ }) : gg(c, u, t, l);
11609
11628
  } finally {
11610
11629
  s(!1);
11611
11630
  }
@@ -11635,15 +11654,15 @@ function Qg({ source: e, title: t, description: n, columns: r, tableSettings: i
11635
11654
  }
11636
11655
  //#endregion
11637
11656
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
11638
- function $g({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
11639
- let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = se(m, [f, p]), [g, _] = J(), v = K(() => Gg(e.visualizations), [e]), y = Qg({
11657
+ function n_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
11658
+ let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = L(m, [f, p]), [g, _] = J(), v = K(() => Jg(e.visualizations), [e]), y = t_({
11640
11659
  source: h,
11641
11660
  title: e.title,
11642
11661
  description: e.description,
11643
11662
  columns: v,
11644
11663
  tableSettings: g
11645
11664
  }), b = K(() => [...n ?? [], ...y], [n, y]);
11646
- return /* @__PURE__ */ X(wg, {
11665
+ return /* @__PURE__ */ X(Dg, {
11647
11666
  title: e.title,
11648
11667
  description: e.description,
11649
11668
  info: e.info,
@@ -11675,7 +11694,7 @@ function $g({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11675
11694
  }
11676
11695
  //#endregion
11677
11696
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemSkeleton.tsx
11678
- function e_() {
11697
+ function r_() {
11679
11698
  return /* @__PURE__ */ Z("div", {
11680
11699
  className: "flex h-full items-end gap-3 px-4 pb-4",
11681
11700
  children: [/* @__PURE__ */ X(qn, { className: "h-10 w-36 rounded" }), /* @__PURE__ */ X(qn, { className: "h-4 w-16 rounded" })]
@@ -11683,7 +11702,7 @@ function e_() {
11683
11702
  }
11684
11703
  //#endregion
11685
11704
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/MetricItem/MetricItem.tsx
11686
- function t_(e, t = { type: "number" }, n = 0) {
11705
+ function i_(e, t = { type: "number" }, n = 0) {
11687
11706
  switch (t.type) {
11688
11707
  case "currency": return new Intl.NumberFormat(void 0, {
11689
11708
  style: "currency",
@@ -11709,7 +11728,7 @@ function t_(e, t = { type: "number" }, n = 0) {
11709
11728
  }).format(e);
11710
11729
  }
11711
11730
  }
11712
- function n_(e, t) {
11731
+ function a_(e, t) {
11713
11732
  if (t === void 0 || t === 0) return;
11714
11733
  let n = (e - t) / Math.abs(t) * 100;
11715
11734
  return {
@@ -11717,7 +11736,7 @@ function n_(e, t) {
11717
11736
  direction: n > .5 ? "up" : n < -.5 ? "down" : "flat"
11718
11737
  };
11719
11738
  }
11720
- function r_({ value: e, trend: t, comparison: n }) {
11739
+ function o_({ value: e, trend: t, comparison: n }) {
11721
11740
  let r = q(null), { height: i, width: a } = Ue(r), [o, s] = J(!1), c = i > 220;
11722
11741
  return jc(() => {
11723
11742
  let e = r.current;
@@ -11787,9 +11806,9 @@ function r_({ value: e, trend: t, comparison: n }) {
11787
11806
  })
11788
11807
  });
11789
11808
  }
11790
- function i_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
11791
- let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = yg(e.fetchData, t, l, u), h = d ? n_(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : t_(t, e.format, e.decimals);
11792
- return /* @__PURE__ */ X(wg, {
11809
+ function s_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c }) {
11810
+ let l = e.useDashboardFilters !== !1, u = JSON.stringify(r?.value ?? {}), { data: d, isLoading: f, error: p, retry: m } = Sg(e.fetchData, t, l, u), h = d ? a_(d.value, d.previousValue) : void 0, g = (t) => e.valueFormatter ? e.valueFormatter(t) : i_(t, e.format, e.decimals);
11811
+ return /* @__PURE__ */ X(Dg, {
11793
11812
  title: e.title,
11794
11813
  description: e.description,
11795
11814
  headerLines: d && !d.comparison ? 3 : 2,
@@ -11798,7 +11817,7 @@ function i_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11798
11817
  isLoading: f,
11799
11818
  error: p,
11800
11819
  onRetry: m,
11801
- skeleton: /* @__PURE__ */ X(e_, {}),
11820
+ skeleton: /* @__PURE__ */ X(r_, {}),
11802
11821
  actions: n,
11803
11822
  itemFilters: r,
11804
11823
  editMode: i,
@@ -11807,7 +11826,7 @@ function i_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11807
11826
  onAskAi: s,
11808
11827
  onAskAiTarget: c,
11809
11828
  itemId: e.id,
11810
- children: d ? /* @__PURE__ */ X(r_, {
11829
+ children: d ? /* @__PURE__ */ X(o_, {
11811
11830
  value: g(d.value),
11812
11831
  trend: h,
11813
11832
  comparison: d.comparison ? {
@@ -11820,16 +11839,16 @@ function i_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
11820
11839
  }
11821
11840
  //#endregion
11822
11841
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardGrid/DashboardGrid.tsx
11823
- var a_ = 12, o_ = 4, s_ = 640, c_ = 4, l_ = {
11842
+ var c_ = 12, l_ = 4, u_ = 640, d_ = 4, f_ = {
11824
11843
  chart: 336,
11825
11844
  metric: 144,
11826
11845
  collection: 480
11827
- }, u_ = 336, d_ = {
11846
+ }, p_ = 336, m_ = {
11828
11847
  chart: 240,
11829
11848
  metric: 120,
11830
11849
  collection: 300
11831
- }, f_ = 120;
11832
- function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
11850
+ }, h_ = 120;
11851
+ function g_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, onLayoutChange: a, resetKey: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, onFullscreenChange: u }) {
11833
11852
  let d = q(null), [f, p] = J(!1), [m, h] = J(null);
11834
11853
  G(() => {
11835
11854
  u?.(!!m);
@@ -11838,19 +11857,19 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11838
11857
  let t = /* @__PURE__ */ new Map();
11839
11858
  for (let n of e) t.set(n.id, n);
11840
11859
  return t;
11841
- }, [e]), [_, v] = J(() => b_(e)), y = q(x_(e));
11860
+ }, [e]), [_, v] = J(() => C_(e)), y = q(w_(e));
11842
11861
  G(() => {
11843
- let t = x_(e);
11844
- t !== y.current && (y.current = t, v(b_(e)));
11862
+ let t = w_(e);
11863
+ t !== y.current && (y.current = t, v(C_(e)));
11845
11864
  }, [e]);
11846
11865
  let b = q(o);
11847
11866
  G(() => {
11848
- o !== void 0 && o !== b.current && (b.current = o, v(b_(e)));
11867
+ o !== void 0 && o !== b.current && (b.current = o, v(C_(e)));
11849
11868
  }, [o, e]), G(() => {
11850
11869
  let e = d.current;
11851
11870
  if (!e) return;
11852
11871
  let t = new ResizeObserver((e) => {
11853
- for (let t of e) p(t.contentRect.width < s_);
11872
+ for (let t of e) p(t.contentRect.width < u_);
11854
11873
  });
11855
11874
  return t.observe(e), () => t.disconnect();
11856
11875
  }, []), G(() => {
@@ -11903,7 +11922,7 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11903
11922
  let r = n.map((t) => ({
11904
11923
  ...t,
11905
11924
  ids: t.ids.filter((t) => t !== e)
11906
- })), i = k.current.get(e), a = i ? D_(i) : u_;
11925
+ })), i = k.current.get(e), a = i ? A_(i) : p_;
11907
11926
  if (t.type === "new-row") r.splice(t.afterRowIdx + 1, 0, {
11908
11927
  ids: [e],
11909
11928
  height: a
@@ -11915,7 +11934,7 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11915
11934
  else {
11916
11935
  let n = Math.min(t.position, r[t.rowIdx].ids.length);
11917
11936
  r[t.rowIdx].ids.splice(n, 0, e);
11918
- let i = w_(r[t.rowIdx], k.current);
11937
+ let i = D_(r[t.rowIdx], k.current);
11919
11938
  r[t.rowIdx].height < i && (r[t.rowIdx] = {
11920
11939
  ...r[t.rowIdx],
11921
11940
  height: i
@@ -11924,23 +11943,23 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11924
11943
  return r = r.filter((e) => e.ids.length > 0), x(r), r;
11925
11944
  });
11926
11945
  }, [x]), I = W((e, t) => {
11927
- if (__(N.current, e, t)) return null;
11946
+ if (b_(N.current, e, t)) return null;
11928
11947
  let n = d.current ? Array.from(d.current.querySelectorAll("[data-dashboard-row]")) : [], r = O.current;
11929
11948
  if (n.length === 0 || n.length !== r.length) return null;
11930
- let i = n.map((e) => e.getBoundingClientRect()), a = v_(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
11949
+ let i = n.map((e) => e.getBoundingClientRect()), a = x_(i, t), o = i[a], s = r[a], c = A.current, l = c ? s.ids.includes(c) : !1, u = o.height / 3;
11931
11950
  return t < o.top + u ? {
11932
11951
  type: "new-row",
11933
11952
  afterRowIdx: a - 1
11934
11953
  } : t > o.bottom - u ? {
11935
11954
  type: "new-row",
11936
11955
  afterRowIdx: a
11937
- } : l && s.ids.length === 1 ? null : s.ids.length >= o_ && !l ? {
11956
+ } : l && s.ids.length === 1 ? null : s.ids.length >= l_ && !l ? {
11938
11957
  type: "new-row",
11939
11958
  afterRowIdx: a
11940
11959
  } : {
11941
11960
  type: "into-row",
11942
11961
  rowIdx: a,
11943
- position: y_(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
11962
+ position: S_(n[a].querySelectorAll("[data-card-id]"), e, s.ids.length)
11944
11963
  };
11945
11964
  }, []), ee = W((e, t) => {
11946
11965
  if (typeof t.button == "number" && t.button !== 0) return;
@@ -11949,7 +11968,7 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11949
11968
  A.current = e, j.current = null, D(null);
11950
11969
  let a = (t) => {
11951
11970
  if (!i) {
11952
- if (Math.hypot(t.clientX - n, t.clientY - r) < c_) return;
11971
+ if (Math.hypot(t.clientX - n, t.clientY - r) < d_) return;
11953
11972
  i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
11954
11973
  let a = k.current.get(e)?.title ?? "";
11955
11974
  a && window.dispatchEvent(new CustomEvent(oa, { detail: {
@@ -11979,7 +11998,7 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11979
11998
  ]);
11980
11999
  G(() => () => P.current?.(), []);
11981
12000
  let te = W((e, t, n, r) => {
11982
- let i = Math.max(w_(_[e], g), r), a = (r) => {
12001
+ let i = Math.max(D_(_[e], g), r), a = (r) => {
11983
12002
  let a = Math.max(i, n + r.clientY - t);
11984
12003
  v((t) => t.map((t, n) => n === e ? {
11985
12004
  ...t,
@@ -11993,16 +12012,16 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
11993
12012
  _,
11994
12013
  x,
11995
12014
  g
11996
- ]), L = f ? _.flatMap((e) => e.ids.map((t) => ({
12015
+ ]), ne = f ? _.flatMap((e) => e.ids.map((t) => ({
11997
12016
  ids: [t],
11998
12017
  height: e.height
11999
- }))) : _, ne = !!r && !f, re = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
12018
+ }))) : _, re = !!r && !f, ie = (e) => w && E?.type === "new-row" && E.afterRowIdx === e;
12000
12019
  if (e.length === 1) {
12001
12020
  let a = e[0];
12002
12021
  return /* @__PURE__ */ X("div", {
12003
12022
  ref: d,
12004
12023
  className: "flex h-full min-h-0 flex-col",
12005
- children: /* @__PURE__ */ X(O_, {
12024
+ children: /* @__PURE__ */ X(j_, {
12006
12025
  item: a,
12007
12026
  itemFilters: t?.(a),
12008
12027
  filters: n,
@@ -12019,11 +12038,11 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12019
12038
  if (m) {
12020
12039
  let e = g.get(m);
12021
12040
  if (e) {
12022
- let a = e.type === "chart" && Ug(e);
12041
+ let a = e.type === "chart" && Kg(e);
12023
12042
  return /* @__PURE__ */ X("div", {
12024
12043
  ref: d,
12025
12044
  className: H("flex flex-col", a ? "min-h-full shrink-0" : "h-full min-h-0"),
12026
- children: /* @__PURE__ */ X(O_, {
12045
+ children: /* @__PURE__ */ X(j_, {
12027
12046
  item: e,
12028
12047
  itemFilters: t?.(e),
12029
12048
  filters: n,
@@ -12043,19 +12062,19 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12043
12062
  return /* @__PURE__ */ Z("div", {
12044
12063
  ref: d,
12045
12064
  className: "flex flex-col",
12046
- style: { gap: a_ },
12065
+ style: { gap: c_ },
12047
12066
  children: [
12048
- L.map((e, a) => {
12067
+ ne.map((e, a) => {
12049
12068
  let o = w && E?.type === "into-row" && E.rowIdx === a, u = e.ids.some((e) => g.get(e)?.type === "collection");
12050
12069
  return /* @__PURE__ */ Z("div", {
12051
12070
  className: "relative",
12052
12071
  children: [
12053
- ne ? /* @__PURE__ */ X(g_, { active: !!re(a - 1) }) : null,
12072
+ re ? /* @__PURE__ */ X(y_, { active: !!ie(a - 1) }) : null,
12054
12073
  /* @__PURE__ */ X("div", {
12055
12074
  "data-dashboard-row": "",
12056
12075
  className: H("flex rounded-lg transition-colors duration-200", o && "bg-f1-background-hover"),
12057
12076
  style: {
12058
- gap: a_,
12077
+ gap: c_,
12059
12078
  height: e.height,
12060
12079
  ...u ? {
12061
12080
  overflowY: "clip",
@@ -12066,15 +12085,15 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12066
12085
  let d = g.get(a);
12067
12086
  if (!d) return null;
12068
12087
  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;
12069
- return /* @__PURE__ */ X(m_, {
12088
+ return /* @__PURE__ */ X(__, {
12070
12089
  id: a,
12071
12090
  isDragging: f,
12072
12091
  showIndicatorBefore: !!p,
12073
12092
  showIndicatorAfter: !!m,
12074
- draggable: ne,
12093
+ draggable: re,
12075
12094
  onGripPointerDown: ee,
12076
12095
  onContentHeightChange: S,
12077
- children: /* @__PURE__ */ X(O_, {
12096
+ children: /* @__PURE__ */ X(j_, {
12078
12097
  item: d,
12079
12098
  itemFilters: t?.(d),
12080
12099
  filters: n,
@@ -12089,19 +12108,19 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12089
12108
  }, a);
12090
12109
  })
12091
12110
  }),
12092
- ne ? /* @__PURE__ */ X("div", {
12111
+ re ? /* @__PURE__ */ X("div", {
12093
12112
  className: "group/resize absolute -bottom-3.5 mx-auto flex h-3 w-full items-center justify-center hover:cursor-ns-resize",
12094
12113
  onMouseDown: (t) => {
12095
12114
  t.preventDefault();
12096
12115
  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"));
12097
- te(a, t.clientY, r, T_(n, i));
12116
+ te(a, t.clientY, r, O_(n, i));
12098
12117
  },
12099
12118
  children: /* @__PURE__ */ X("div", { className: "h-1 w-16 rounded-full bg-transparent transition-colors group-hover/resize:bg-f1-foreground-tertiary" })
12100
12119
  }) : null
12101
12120
  ]
12102
12121
  }, a);
12103
12122
  }),
12104
- ne ? /* @__PURE__ */ X(g_, { active: !!re(L.length - 1) }) : null,
12123
+ re ? /* @__PURE__ */ X(y_, { active: !!ie(ne.length - 1) }) : null,
12105
12124
  w ? /* @__PURE__ */ X("div", {
12106
12125
  ref: M,
12107
12126
  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",
@@ -12111,7 +12130,7 @@ function p_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
12111
12130
  ]
12112
12131
  });
12113
12132
  }
12114
- function m_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
12133
+ function __({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter: r, draggable: i, onGripPointerDown: a, onContentHeightChange: o, children: s }) {
12115
12134
  let c = q(null);
12116
12135
  return G(() => {
12117
12136
  let t = c.current;
@@ -12134,7 +12153,7 @@ function m_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
12134
12153
  n = !0, s.disconnect(), l.disconnect();
12135
12154
  };
12136
12155
  }, [e, o]), /* @__PURE__ */ Z(Y, { children: [
12137
- n ? /* @__PURE__ */ X(h_, {}) : null,
12156
+ n ? /* @__PURE__ */ X(v_, {}) : null,
12138
12157
  /* @__PURE__ */ Z("div", {
12139
12158
  ref: c,
12140
12159
  "data-card-id": e,
@@ -12149,44 +12168,44 @@ function m_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
12149
12168
  })
12150
12169
  }) : null, s]
12151
12170
  }),
12152
- r ? /* @__PURE__ */ X(h_, {}) : null
12171
+ r ? /* @__PURE__ */ X(v_, {}) : null
12153
12172
  ] });
12154
12173
  }
12155
- function h_() {
12174
+ function v_() {
12156
12175
  return /* @__PURE__ */ X("div", {
12157
12176
  className: "mx-[-2px] w-1 flex-shrink-0 self-stretch py-2",
12158
12177
  children: /* @__PURE__ */ X("div", { className: "h-full w-full rounded-full bg-f1-background-secondary-hover" })
12159
12178
  });
12160
12179
  }
12161
- function g_({ active: e }) {
12180
+ function y_({ active: e }) {
12162
12181
  return /* @__PURE__ */ X("div", {
12163
12182
  className: "pointer-events-none relative flex items-center justify-center transition-all",
12164
12183
  style: { minHeight: e ? 12 : 0 },
12165
12184
  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") })
12166
12185
  });
12167
12186
  }
12168
- function __(e, t, n) {
12187
+ function b_(e, t, n) {
12169
12188
  for (let r of e) {
12170
12189
  let e = r.getBoundingClientRect();
12171
12190
  if (t >= e.left && t <= e.right && n >= e.top && n <= e.bottom) return !0;
12172
12191
  }
12173
12192
  return !1;
12174
12193
  }
12175
- function v_(e, t) {
12194
+ function x_(e, t) {
12176
12195
  for (let n = 0; n < e.length - 1; n++) if (t < (e[n].bottom + e[n + 1].top) / 2) return n;
12177
12196
  return e.length - 1;
12178
12197
  }
12179
- function y_(e, t, n) {
12198
+ function S_(e, t, n) {
12180
12199
  for (let n = 0; n < e.length; n++) {
12181
12200
  let r = e[n].getBoundingClientRect();
12182
12201
  if (t < r.left + r.width / 2) return n;
12183
12202
  }
12184
12203
  return n;
12185
12204
  }
12186
- function b_(e) {
12187
- return e.some((e) => e.y !== void 0) ? S_(e) : C_(e);
12205
+ function C_(e) {
12206
+ return e.some((e) => e.y !== void 0) ? T_(e) : E_(e);
12188
12207
  }
12189
- function x_(e) {
12208
+ function w_(e) {
12190
12209
  return JSON.stringify(e.map((e) => [
12191
12210
  e.id,
12192
12211
  e.type,
@@ -12197,10 +12216,10 @@ function x_(e) {
12197
12216
  e.colSpan ?? null
12198
12217
  ]));
12199
12218
  }
12200
- function S_(e) {
12219
+ function T_(e) {
12201
12220
  let t = [...e].sort((e, t) => (e.y ?? 0) - (t.y ?? 0) || (e.x ?? 0) - (t.x ?? 0)), n = /* @__PURE__ */ new Map();
12202
12221
  for (let e of t) {
12203
- let t = e.y ?? 0, r = D_(e), i = n.get(t);
12222
+ let t = e.y ?? 0, r = A_(e), i = n.get(t);
12204
12223
  i || (i = {
12205
12224
  ids: [],
12206
12225
  maxHeight: 0
@@ -12211,11 +12230,11 @@ function S_(e) {
12211
12230
  height: e.maxHeight
12212
12231
  }));
12213
12232
  }
12214
- function C_(e) {
12233
+ function E_(e) {
12215
12234
  let t = [], n = [], r = 0, i = 0;
12216
12235
  for (let a of e) {
12217
- let e = E_(a), o = D_(a);
12218
- r + e > o_ && n.length > 0 && (t.push({
12236
+ let e = k_(a), o = A_(a);
12237
+ r + e > l_ && n.length > 0 && (t.push({
12219
12238
  ids: n,
12220
12239
  height: i
12221
12240
  }), n = [], r = 0, i = 0), n.push(a.id), r += e, o > i && (i = o);
@@ -12225,17 +12244,17 @@ function C_(e) {
12225
12244
  height: i
12226
12245
  }), t;
12227
12246
  }
12228
- function w_(e, t) {
12229
- let n = f_;
12247
+ function D_(e, t) {
12248
+ let n = h_;
12230
12249
  for (let r of e.ids) {
12231
12250
  let e = t.get(r);
12232
12251
  if (!e) continue;
12233
- let i = d_[e.type] ?? f_;
12252
+ let i = m_[e.type] ?? h_;
12234
12253
  i > n && (n = i);
12235
12254
  }
12236
12255
  return n;
12237
12256
  }
12238
- function T_(e, t) {
12257
+ function O_(e, t) {
12239
12258
  if (!e || t.size === 0) return 0;
12240
12259
  let n = e.style.height, r = e.style.minHeight, i = () => {
12241
12260
  let n = 0;
@@ -12251,15 +12270,15 @@ function T_(e, t) {
12251
12270
  let o = Math.max(a, i());
12252
12271
  return e.style.height = n, e.style.minHeight = r, o;
12253
12272
  }
12254
- function E_(e) {
12255
- return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? o_ : 2;
12273
+ function k_(e) {
12274
+ return e.type === "metric" ? 1 : e.type === "chart" ? 2 : e.type === "collection" ? l_ : 2;
12256
12275
  }
12257
- function D_(e) {
12258
- return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : l_[e.type] ?? u_;
12276
+ function A_(e) {
12277
+ return e.itemHeight && e.itemHeight > 0 ? e.itemHeight : e.rowSpan ? e.rowSpan * 48 : f_[e.type] ?? p_;
12259
12278
  }
12260
- function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
12279
+ function j_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, onDelete: o, onTransformChart: s, onAskAi: c, onAskAiTarget: l, isFullscreen: u, onFullscreenChange: d }) {
12261
12280
  switch (e.type) {
12262
- case "chart": return /* @__PURE__ */ X(Wg, {
12281
+ case "chart": return /* @__PURE__ */ X(qg, {
12263
12282
  item: e,
12264
12283
  filters: t,
12265
12284
  actions: n,
@@ -12273,7 +12292,7 @@ function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12273
12292
  isFullscreen: u,
12274
12293
  onFullscreenChange: d
12275
12294
  });
12276
- case "metric": return /* @__PURE__ */ X(i_, {
12295
+ case "metric": return /* @__PURE__ */ X(s_, {
12277
12296
  item: e,
12278
12297
  filters: t,
12279
12298
  actions: n,
@@ -12286,7 +12305,7 @@ function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12286
12305
  isFullscreen: u,
12287
12306
  onFullscreenChange: d
12288
12307
  });
12289
- case "collection": return /* @__PURE__ */ X($g, {
12308
+ case "collection": return /* @__PURE__ */ X(n_, {
12290
12309
  item: e,
12291
12310
  filters: t,
12292
12311
  actions: n,
@@ -12301,7 +12320,7 @@ function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12301
12320
  });
12302
12321
  default: {
12303
12322
  let t = e;
12304
- return /* @__PURE__ */ X(wg, {
12323
+ return /* @__PURE__ */ X(Dg, {
12305
12324
  title: t.title ?? "Unknown",
12306
12325
  isLoading: !1,
12307
12326
  error: /* @__PURE__ */ Error(`Unknown dashboard item type: "${t.type}"`),
@@ -12312,7 +12331,7 @@ function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
12312
12331
  }
12313
12332
  //#endregion
12314
12333
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
12315
- function k_({ onExportExcel: e, isExporting: t }) {
12334
+ function M_({ onExportExcel: e, isExporting: t }) {
12316
12335
  let { t: n } = V();
12317
12336
  return /* @__PURE__ */ X(Ma, {
12318
12337
  items: [{
@@ -12325,17 +12344,17 @@ function k_({ onExportExcel: e, isExporting: t }) {
12325
12344
  }
12326
12345
  //#endregion
12327
12346
  //#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
12328
- function A_(e) {
12347
+ function N_(e) {
12329
12348
  return /* @__PURE__ */ X(Fs.Provider, {
12330
12349
  value: "controlled",
12331
12350
  children: /* @__PURE__ */ X(Zs, { ...e })
12332
12351
  });
12333
12352
  }
12334
- A_.displayName = "ControlledOneFilterPicker";
12353
+ N_.displayName = "ControlledOneFilterPicker";
12335
12354
  //#endregion
12336
12355
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBar.tsx
12337
- function j_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
12338
- return !e && !n ? null : /* @__PURE__ */ X(A_, {
12356
+ function P_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i, disabled: a }) {
12357
+ return !e && !n ? null : /* @__PURE__ */ X(N_, {
12339
12358
  filters: e,
12340
12359
  value: t,
12341
12360
  presets: n,
@@ -12347,7 +12366,7 @@ function j_({ filters: e, value: t, presets: n, presetsLoading: r, onChange: i,
12347
12366
  }
12348
12367
  //#endregion
12349
12368
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/FilterBar/FilterBarSkeleton.tsx
12350
- function M_() {
12369
+ function F_() {
12351
12370
  return /* @__PURE__ */ Z("div", {
12352
12371
  className: "flex items-center gap-1",
12353
12372
  role: "status",
@@ -12361,23 +12380,23 @@ function M_() {
12361
12380
  }
12362
12381
  //#endregion
12363
12382
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/utils/extractColumns.ts
12364
- function N_(e) {
12383
+ function I_(e) {
12365
12384
  if (e.length === 0) return [];
12366
12385
  let t = e[0];
12367
12386
  return Object.keys(t).filter((e) => typeof e == "string" && !e.startsWith("_"));
12368
12387
  }
12369
12388
  //#endregion
12370
12389
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useDashboardExport.ts
12371
- function P_(e, t) {
12390
+ function L_(e, t) {
12372
12391
  return e.useDashboardFilters === !1 ? {} : t;
12373
12392
  }
12374
- async function F_(e, t) {
12393
+ async function R_(e, t) {
12375
12394
  if (e.length === 0) return null;
12376
12395
  let n = await Promise.all(e.map(async (e) => {
12377
12396
  try {
12378
12397
  return {
12379
12398
  item: e,
12380
- data: await e.fetchData(P_(e, t))
12399
+ data: await e.fetchData(L_(e, t))
12381
12400
  };
12382
12401
  } catch (t) {
12383
12402
  return console.warn(`[useDashboardExport] Failed to export metric "${e.title}":`, t), null;
@@ -12401,14 +12420,14 @@ async function F_(e, t) {
12401
12420
  rows: r
12402
12421
  };
12403
12422
  }
12404
- async function I_(e, t) {
12405
- let n = [], r = await F_(e.filter((e) => e.type === "metric"), t);
12423
+ async function z_(e, t) {
12424
+ let n = [], r = await R_(e.filter((e) => e.type === "metric"), t);
12406
12425
  r && n.push(r);
12407
12426
  let i = e.filter((e) => e.type !== "metric").map(async (e) => {
12408
12427
  if (e.type === "chart") try {
12409
- let n = await e.fetchData(P_(e, t));
12410
- if (!Rh(e.chart)) return console.warn(`[useDashboardExport] Skipped chart "${e.title}": unsupported chart type`), null;
12411
- let r = eg(e.chart, n);
12428
+ let n = await e.fetchData(L_(e, t));
12429
+ if (!Vh(e.chart)) return console.warn(`[useDashboardExport] Skipped chart "${e.title}": unsupported chart type`), null;
12430
+ let r = rg(e.chart, n);
12412
12431
  return {
12413
12432
  name: e.title,
12414
12433
  columns: r.columns,
@@ -12419,7 +12438,7 @@ async function I_(e, t) {
12419
12438
  return console.warn(`[useDashboardExport] Failed to export chart "${e.title}":`, t), null;
12420
12439
  }
12421
12440
  if (e.type === "collection") try {
12422
- let n = await e.createSource(P_(e, t)).dataAdapter.fetchData({
12441
+ let n = await e.createSource(L_(e, t)).dataAdapter.fetchData({
12423
12442
  filters: {},
12424
12443
  sortings: [],
12425
12444
  pagination: {
@@ -12428,16 +12447,16 @@ async function I_(e, t) {
12428
12447
  }
12429
12448
  }), r = "records" in n ? n.records : n;
12430
12449
  if (r.length === 0) return null;
12431
- let i = ug(e.title, e.description), a = Gg(e.visualizations);
12450
+ let i = pg(e.title, e.description), a = Jg(e.visualizations);
12432
12451
  return a.length > 0 ? {
12433
12452
  name: e.title,
12434
12453
  columns: a.map((e) => e.label),
12435
12454
  keys: a.map((e) => e.id),
12436
- rows: Kg(r, a),
12455
+ rows: Yg(r, a),
12437
12456
  preamble: i
12438
12457
  } : {
12439
12458
  name: e.title,
12440
- columns: N_(r),
12459
+ columns: I_(r),
12441
12460
  rows: r,
12442
12461
  preamble: i
12443
12462
  };
@@ -12449,7 +12468,7 @@ async function I_(e, t) {
12449
12468
  for (let e of a) e && n.push(e);
12450
12469
  return n;
12451
12470
  }
12452
- function L_({ items: e, filters: t, filename: n = "dashboard" }) {
12471
+ function B_({ items: e, filters: t, filename: n = "dashboard" }) {
12453
12472
  let [r, i] = J(!1), a = q(e);
12454
12473
  a.current = e;
12455
12474
  let o = q(t);
@@ -12459,8 +12478,8 @@ function L_({ items: e, filters: t, filename: n = "dashboard" }) {
12459
12478
  exportAsExcel: W(async () => {
12460
12479
  i(!0);
12461
12480
  try {
12462
- let e = await I_(a.current, o.current);
12463
- e.length > 0 && await hg(e, s.current);
12481
+ let e = await z_(a.current, o.current);
12482
+ e.length > 0 && await vg(e, s.current);
12464
12483
  } finally {
12465
12484
  i(!1);
12466
12485
  }
@@ -12470,7 +12489,7 @@ function L_({ items: e, filters: t, filename: n = "dashboard" }) {
12470
12489
  }
12471
12490
  //#endregion
12472
12491
  //#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
12473
- var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
12492
+ var V_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
12474
12493
  let y = V(), [b = {}, x] = $n({
12475
12494
  prop: r,
12476
12495
  defaultProp: n ?? {},
@@ -12480,7 +12499,7 @@ var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
12480
12499
  let e = {};
12481
12500
  for (let [t, n] of Object.entries(_)) e[t] = fn[n.type].valueConverter?.(n.defaultValue, n, y) ?? n.defaultValue;
12482
12501
  return e;
12483
- }, []), [C, w] = J(S), { exportAsExcel: T, isExporting: E } = L_({
12502
+ }, []), [C, w] = J(S), { exportAsExcel: T, isExporting: E } = B_({
12484
12503
  items: a,
12485
12504
  filters: b,
12486
12505
  filename: d
@@ -12500,28 +12519,28 @@ var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
12500
12519
  className: "flex items-center justify-between gap-4 px-5",
12501
12520
  children: [/* @__PURE__ */ X("div", {
12502
12521
  className: "w-full",
12503
- children: e ? /* @__PURE__ */ X(j_, {
12522
+ children: e ? /* @__PURE__ */ X(P_, {
12504
12523
  filters: e,
12505
12524
  value: b,
12506
12525
  presets: t,
12507
12526
  onChange: x,
12508
12527
  disabled: c
12509
- }) : v ? /* @__PURE__ */ X(M_, {}) : null
12528
+ }) : v ? /* @__PURE__ */ X(F_, {}) : null
12510
12529
  }), /* @__PURE__ */ Z("div", {
12511
12530
  className: "flex shrink-0 items-center gap-2",
12512
- children: [_ ? /* @__PURE__ */ X(ne, {
12531
+ children: [_ ? /* @__PURE__ */ X(re, {
12513
12532
  navigationFilters: _,
12514
12533
  currentNavigationFilters: C,
12515
12534
  onChangeNavigationFilters: w,
12516
12535
  disabled: c
12517
- }) : null, u ? /* @__PURE__ */ X(k_, {
12536
+ }) : null, u ? /* @__PURE__ */ X(M_, {
12518
12537
  onExportExcel: T,
12519
12538
  isExporting: E
12520
12539
  }) : null]
12521
12540
  })]
12522
12541
  }) : null, /* @__PURE__ */ X("div", {
12523
12542
  className: H("px-5", j && "flex min-h-0 flex-1 flex-col pb-5"),
12524
- children: /* @__PURE__ */ X(p_, {
12543
+ children: /* @__PURE__ */ X(g_, {
12525
12544
  items: a,
12526
12545
  itemFilters: c ? void 0 : o,
12527
12546
  filters: {
@@ -12540,17 +12559,17 @@ var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
12540
12559
  })]
12541
12560
  });
12542
12561
  };
12543
- R_.displayName = "F0AnalyticsDashboard";
12544
- var z_ = tr("F0AnalyticsDashboard", R_), B_ = () => bn("(min-width: 640px)", { initializeWithValue: !1 }), V_ = () => bn("(max-width: 639px)", { initializeWithValue: !1 }), H_ = /*#__PURE__*/ U.createContext(void 0);
12545
- process.env.NODE_ENV !== "production" && (H_.displayName = "ToastContext");
12546
- function U_() {
12547
- let e = U.useContext(H_);
12562
+ V_.displayName = "F0AnalyticsDashboard";
12563
+ var H_ = tr("F0AnalyticsDashboard", V_), U_ = () => bn("(min-width: 640px)", { initializeWithValue: !1 }), W_ = () => bn("(max-width: 639px)", { initializeWithValue: !1 }), G_ = /*#__PURE__*/ U.createContext(void 0);
12564
+ process.env.NODE_ENV !== "production" && (G_.displayName = "ToastContext");
12565
+ function K_() {
12566
+ let e = U.useContext(G_);
12548
12567
  if (!e) throw Error(process.env.NODE_ENV === "production" ? _r(73) : "Base UI: useToastManager must be used within <Toast.Provider>.");
12549
12568
  return e;
12550
12569
  }
12551
12570
  //#endregion
12552
12571
  //#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
12553
- function W_(e, t) {
12572
+ function q_(e, t) {
12554
12573
  if (typeof e == "string") return { description: e };
12555
12574
  if (typeof e == "function") {
12556
12575
  let n = e(t);
@@ -12560,7 +12579,7 @@ function W_(e, t) {
12560
12579
  }
12561
12580
  //#endregion
12562
12581
  //#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
12563
- function G_(e) {
12582
+ function J_(e) {
12564
12583
  let t = /* @__PURE__ */ new Map(), n = 0, r = 0;
12565
12584
  return e.forEach((e, i) => {
12566
12585
  let a = e.transitionStatus === "ending";
@@ -12572,7 +12591,7 @@ function G_(e) {
12572
12591
  }), r += e.height || 0, a || (n += 1);
12573
12592
  }), t;
12574
12593
  }
12575
- function K_(e, t) {
12594
+ function Y_(e, t) {
12576
12595
  let n = 0;
12577
12596
  return e.map((e) => {
12578
12597
  if (e.transitionStatus === "ending") return e;
@@ -12583,7 +12602,7 @@ function K_(e, t) {
12583
12602
  };
12584
12603
  });
12585
12604
  }
12586
- var q_ = {
12605
+ var X_ = {
12587
12606
  toasts: (e) => e.toasts,
12588
12607
  isEmpty: (e) => e.toasts.length === 0,
12589
12608
  toast: (e, t) => e.toastMetadata.get(t)?.value,
@@ -12594,14 +12613,14 @@ var q_ = {
12594
12613
  expanded: (e) => e.hovering || e.focused,
12595
12614
  expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
12596
12615
  prevFocusElement: (e) => e.prevFocusElement
12597
- }, J_ = class extends Or {
12616
+ }, Z_ = class extends Or {
12598
12617
  timers = /* @__PURE__ */ new Map();
12599
12618
  areTimersPaused = !1;
12600
12619
  constructor(e) {
12601
12620
  super({
12602
12621
  ...e,
12603
- toastMetadata: G_(e.toasts)
12604
- }, {}, q_);
12622
+ toastMetadata: J_(e.toasts)
12623
+ }, {}, X_);
12605
12624
  }
12606
12625
  setViewport = (e) => {
12607
12626
  this.set("viewport", e);
@@ -12614,8 +12633,8 @@ var q_ = {
12614
12633
  limit: t
12615
12634
  };
12616
12635
  if (n) {
12617
- let e = K_(this.state.toasts, t);
12618
- r.toasts = e, r.toastMetadata = G_(e);
12636
+ let e = Y_(this.state.toasts, t);
12637
+ r.toasts = e, r.toastMetadata = J_(e);
12619
12638
  }
12620
12639
  this.update(r);
12621
12640
  }
@@ -12625,7 +12644,7 @@ var q_ = {
12625
12644
  }), this.timers.clear();
12626
12645
  };
12627
12646
  removeToast(e, t = !1) {
12628
- let n = q_.toastIndex(this.state, e);
12647
+ let n = X_.toastIndex(this.state, e);
12629
12648
  if (n === -1) return;
12630
12649
  let r = this.state.toasts[n];
12631
12650
  t || r?.onRemove?.();
@@ -12635,7 +12654,7 @@ var q_ = {
12635
12654
  addToast = (e) => {
12636
12655
  let { timeout: t, limit: n } = this.state, r = e.id || Xe("toast");
12637
12656
  if (e.id) {
12638
- let t = q_.toast(this.state, e.id);
12657
+ let t = X_.toast(this.state, e.id);
12639
12658
  if (t) {
12640
12659
  if (t.transitionStatus === "ending") this.removeToast(e.id, !0);
12641
12660
  else {
@@ -12650,16 +12669,16 @@ var q_ = {
12650
12669
  updateKey: 0,
12651
12670
  transitionStatus: "starting"
12652
12671
  }, a = [i, ...this.state.toasts];
12653
- this.setToasts(K_(a, n));
12672
+ this.setToasts(Y_(a, n));
12654
12673
  let o = i.timeout ?? t;
12655
- return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), q_.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
12674
+ return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), X_.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
12656
12675
  };
12657
12676
  updateToast = (e, t) => {
12658
- let n = q_.toast(this.state, e);
12677
+ let n = X_.toast(this.state, e);
12659
12678
  n && n.transitionStatus !== "ending" && this.updateToastInternal(e, typeof t == "function" ? t(n) : t, !1, !0);
12660
12679
  };
12661
12680
  updateToastInternal = (e, t, n = !1, r = !1) => {
12662
- let { timeout: i, toasts: a } = this.state, o = q_.toast(this.state, e);
12681
+ let { timeout: i, toasts: a } = this.state, o = X_.toast(this.state, e);
12663
12682
  if (!o || o.transitionStatus === "ending") return;
12664
12683
  let s = {
12665
12684
  ...o,
@@ -12668,17 +12687,17 @@ var q_ = {
12668
12687
  };
12669
12688
  this.setToasts(a.map((t) => t.id === e ? s : t));
12670
12689
  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";
12671
- !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), q_.expandedOrOutOfFocus(this.state) && this.pauseTimers());
12690
+ !d && f ? this.clearTimer(e) : d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), X_.expandedOrOutOfFocus(this.state) && this.pauseTimers());
12672
12691
  };
12673
12692
  closeToast = (e) => {
12674
12693
  let t = e === void 0, { limit: n, toasts: r } = this.state, i;
12675
12694
  if (t) i = r, this.clearTimers();
12676
12695
  else {
12677
- let t = q_.toast(this.state, e);
12696
+ let t = X_.toast(this.state, e);
12678
12697
  if (!t) return;
12679
12698
  i = [t], this.clearTimer(e);
12680
12699
  }
12681
- let a = K_(r.map((n) => t || n.id === e ? {
12700
+ let a = Y_(r.map((n) => t || n.id === e ? {
12682
12701
  ...n,
12683
12702
  transitionStatus: "ending",
12684
12703
  height: 0
@@ -12688,18 +12707,18 @@ var q_ = {
12688
12707
  }), this.handleFocusManagement(e);
12689
12708
  };
12690
12709
  promiseToast = (e, t) => {
12691
- let n = W_(t.loading), r = this.addToast({
12710
+ let n = q_(t.loading), r = this.addToast({
12692
12711
  ...n,
12693
12712
  type: "loading"
12694
12713
  }), i = e.then((e) => {
12695
- let n = W_(t.success, e);
12714
+ let n = q_(t.success, e);
12696
12715
  return this.updateToast(r, {
12697
12716
  ...n,
12698
12717
  type: "success",
12699
12718
  timeout: n.timeout
12700
12719
  }), e;
12701
12720
  }).catch((e) => {
12702
- let n = W_(t.error, e);
12721
+ let n = q_(t.error, e);
12703
12722
  return this.updateToast(r, {
12704
12723
  ...n,
12705
12724
  type: "error",
@@ -12732,7 +12751,7 @@ var q_ = {
12732
12751
  }));
12733
12752
  };
12734
12753
  scheduleTimer(e, t, n) {
12735
- let r = Date.now(), i = q_.expandedOrOutOfFocus(this.state) ? void 0 : Er.create();
12754
+ let r = Date.now(), i = X_.expandedOrOutOfFocus(this.state) ? void 0 : Er.create();
12736
12755
  i?.start(t, () => {
12737
12756
  this.handleTimerFired(e), n();
12738
12757
  }), this.timers.set(e, {
@@ -12760,7 +12779,7 @@ var q_ = {
12760
12779
  setToasts(e, t = e.length === 0) {
12761
12780
  let n = {
12762
12781
  toasts: e,
12763
- toastMetadata: G_(e)
12782
+ toastMetadata: J_(e)
12764
12783
  };
12765
12784
  t && (n.hovering = !1, n.focused = !1), this.update(n);
12766
12785
  }
@@ -12771,14 +12790,14 @@ var q_ = {
12771
12790
  this.restoreFocusToPrevElement();
12772
12791
  return;
12773
12792
  }
12774
- let n = q_.toasts(this.state), r = q_.toastIndex(this.state, e), i = (e, t) => {
12793
+ let n = X_.toasts(this.state), r = X_.toastIndex(this.state, e), i = (e, t) => {
12775
12794
  for (let r = e; r >= 0 && r < n.length; r += t) if (n[r].transitionStatus !== "ending") return n[r];
12776
12795
  return null;
12777
12796
  }, a = i(r + 1, 1) ?? i(r - 1, -1);
12778
12797
  a ? a.ref?.current?.focus() : this.restoreFocusToPrevElement();
12779
12798
  }
12780
- }, Y_ = function(e) {
12781
- let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = pr(() => new J_({
12799
+ }, Q_ = function(e) {
12800
+ let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = pr(() => new Z_({
12782
12801
  timeout: n,
12783
12802
  limit: r,
12784
12803
  viewport: null,
@@ -12793,17 +12812,17 @@ var q_ = {
12793
12812
  let n = t.id;
12794
12813
  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);
12795
12814
  });
12796
- }, [a, i]), /*#__PURE__*/ Z(H_.Provider, {
12815
+ }, [a, i]), /*#__PURE__*/ Z(G_.Provider, {
12797
12816
  value: a,
12798
- children: [/*#__PURE__*/ X(X_, {
12817
+ children: [/*#__PURE__*/ X($_, {
12799
12818
  store: a,
12800
12819
  timeout: n,
12801
12820
  limit: r
12802
12821
  }), t]
12803
12822
  });
12804
12823
  };
12805
- process.env.NODE_ENV !== "production" && (Y_.displayName = "ToastProvider");
12806
- function X_(e) {
12824
+ process.env.NODE_ENV !== "production" && (Q_.displayName = "ToastProvider");
12825
+ function $_(e) {
12807
12826
  let { store: t, timeout: n, limit: r } = e;
12808
12827
  return fr(() => {
12809
12828
  t.syncProviderProps(n, r);
@@ -12815,8 +12834,8 @@ function X_(e) {
12815
12834
  }
12816
12835
  //#endregion
12817
12836
  //#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
12818
- var Z_ = "--toast-frontmost-height", Q_ = /*#__PURE__*/ U.forwardRef(function(e, t) {
12819
- let { render: n, className: r, style: i, children: a, ...o } = e, s = U_(), c = mr(), 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");
12837
+ var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e, t) {
12838
+ let { render: n, className: r, style: i, children: a, ...o } = e, s = K_(), c = mr(), 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");
12820
12839
  U.useEffect(() => {
12821
12840
  let e = s.state.viewport;
12822
12841
  if (!e || f) return;
@@ -12888,7 +12907,7 @@ var Z_ = "--toast-frontmost-height", Q_ = /*#__PURE__*/ U.forwardRef(function(e,
12888
12907
  onPointerDown: E,
12889
12908
  onPointerUp: D,
12890
12909
  onPointerCancel: D,
12891
- style: { [Z_]: _ ? `${_}px` : void 0 }
12910
+ style: { [ev]: _ ? `${_}px` : void 0 }
12892
12911
  }, j = { expanded: h }, M = !f && g && /*#__PURE__*/ X(br, { onFocus: b }), N = kr("div", e, {
12893
12912
  ref: [t, s.setViewport],
12894
12913
  state: j,
@@ -12915,19 +12934,19 @@ var Z_ = "--toast-frontmost-height", Q_ = /*#__PURE__*/ U.forwardRef(function(e,
12915
12934
  })
12916
12935
  ] });
12917
12936
  });
12918
- process.env.NODE_ENV !== "production" && (Q_.displayName = "ToastViewport");
12937
+ process.env.NODE_ENV !== "production" && (tv.displayName = "ToastViewport");
12919
12938
  //#endregion
12920
12939
  //#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
12921
- var $_ = /*#__PURE__*/ U.createContext(void 0);
12922
- process.env.NODE_ENV !== "production" && ($_.displayName = "ToastRootContext");
12923
- function ev() {
12924
- let e = U.useContext($_);
12940
+ var nv = /*#__PURE__*/ U.createContext(void 0);
12941
+ process.env.NODE_ENV !== "production" && (nv.displayName = "ToastRootContext");
12942
+ function rv() {
12943
+ let e = U.useContext(nv);
12925
12944
  if (!e) throw Error(process.env.NODE_ENV === "production" ? _r(66) : "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.");
12926
12945
  return e;
12927
12946
  }
12928
12947
  //#endregion
12929
12948
  //#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
12930
- function tv(e, t) {
12949
+ function iv(e, t) {
12931
12950
  let n = (t ?? lr(e).getComputedStyle(e)).transform, r = 0, i = 0, a = 1;
12932
12951
  if (n && n !== "none") {
12933
12952
  let e = n.match(/matrix(?:3d)?\(([^)]+)\)/);
@@ -12944,7 +12963,7 @@ function tv(e, t) {
12944
12963
  }
12945
12964
  //#endregion
12946
12965
  //#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
12947
- function nv(e, t, n) {
12966
+ function av(e, t, n) {
12948
12967
  switch (e) {
12949
12968
  case "up": return -n;
12950
12969
  case "down": return n;
@@ -12955,15 +12974,15 @@ function nv(e, t, n) {
12955
12974
  }
12956
12975
  //#endregion
12957
12976
  //#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
12958
- var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "--toast-swipe-movement-x", sv = "--toast-swipe-movement-y", cv = "data-swipe-direction", lv = {
12977
+ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "--toast-swipe-movement-x", uv = "--toast-swipe-movement-y", dv = "data-swipe-direction", fv = {
12959
12978
  ...Mr,
12960
12979
  swipeDirection(e) {
12961
- return e ? { [cv]: e } : null;
12980
+ return e ? { [dv]: e } : null;
12962
12981
  }
12963
- }, uv = 40, dv = 10, fv = .5, pv = 1, mv = `${Cr},${Ar}`, hv = /*#__PURE__*/ U.forwardRef(function(e, t) {
12982
+ }, pv = 40, mv = 10, hv = .5, gv = 1, _v = `${Cr},${Ar}`, vv = /*#__PURE__*/ U.forwardRef(function(e, t) {
12964
12983
  let { toast: n, render: r, className: i, swipeDirection: a = ["down", "right"], style: o, ...s } = e, c = n.positionerProps?.anchor !== void 0, l = [];
12965
12984
  c || (l = Array.isArray(a) ? a : [a]);
12966
- let u = l.length > 0, d = U_(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
12985
+ let u = l.length > 0, d = K_(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
12967
12986
  x: 0,
12968
12987
  y: 0
12969
12988
  }), [b, x] = U.useState({
@@ -12983,7 +13002,7 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
12983
13002
  }), I = U.useRef(!1), ee = U.useRef({
12984
13003
  x: 0,
12985
13004
  y: 0
12986
- }), te = U.useRef(null), L = U.useRef(null), ne = d.useState("toastIndex", n.id), re = d.useState("toastVisibleIndex", n.id), ie = d.useState("toastOffsetY", n.id), ae = d.useState("focused"), oe = d.useState("expanded");
13005
+ }), te = U.useRef(null), ne = U.useRef(null), re = d.useState("toastIndex", n.id), ie = d.useState("toastVisibleIndex", n.id), ae = d.useState("toastOffsetY", n.id), oe = d.useState("focused"), se = d.useState("expanded");
12987
13006
  Sr({
12988
13007
  open: n.transitionStatus !== "ending",
12989
13008
  ref: O,
@@ -12991,7 +13010,7 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
12991
13010
  n.transitionStatus === "ending" && d.removeToast(n.id);
12992
13011
  }
12993
13012
  });
12994
- let se = xr((e = !1) => {
13013
+ let L = xr((e = !1) => {
12995
13014
  let t = O.current;
12996
13015
  if (!t) return;
12997
13016
  let r = t.style.height;
@@ -13016,9 +13035,9 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13016
13035
  }), ce({
13017
13036
  x: 0,
13018
13037
  y: 0
13019
- })), k.current = n.id, se());
13038
+ })), k.current = n.id, L());
13020
13039
  }, [
13021
- se,
13040
+ L,
13022
13041
  n.id,
13023
13042
  n.transitionStatus
13024
13043
  ]);
@@ -13026,10 +13045,10 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13026
13045
  ee.current = e, y(e);
13027
13046
  }
13028
13047
  fr(() => () => {
13029
- L.current?.abort();
13048
+ ne.current?.abort();
13030
13049
  }, []);
13031
13050
  function le(e, t) {
13032
- let n = (e) => e > 0 ? e ** fv : -(Math.abs(e) ** fv), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
13051
+ let n = (e) => e > 0 ? e ** hv : -(Math.abs(e) ** hv), r = e > 0 && !l.includes("right") || e < 0 && !l.includes("left"), i = t > 0 && !l.includes("down") || t < 0 && !l.includes("up");
13033
13052
  return {
13034
13053
  x: r ? n(e) : e,
13035
13054
  y: i ? n(t) : t
@@ -13037,7 +13056,7 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13037
13056
  }
13038
13057
  let ue = xr((e) => {
13039
13058
  if (e.pointerId !== te.current) return;
13040
- te.current = null, L.current?.abort(), L.current = null, h(!1), _(!1), D(null);
13059
+ te.current = null, ne.current?.abort(), ne.current = null, h(!1), _(!1), D(null);
13041
13060
  let t = j.current;
13042
13061
  if (e.type === "pointercancel" || P.current) {
13043
13062
  ce({
@@ -13047,7 +13066,7 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13047
13066
  return;
13048
13067
  }
13049
13068
  let r = ee.current, i = r.x - t.x, a = r.y - t.y, o;
13050
- for (let e of l) if (nv(e, i, a) > uv) {
13069
+ for (let e of l) if (av(e, i, a) > pv) {
13051
13070
  o = e;
13052
13071
  break;
13053
13072
  }
@@ -13057,18 +13076,18 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13057
13076
  }), p(void 0));
13058
13077
  });
13059
13078
  function de(e) {
13060
- if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), Dr(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${mv}`))) return;
13079
+ if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), Dr(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${_v}`))) return;
13061
13080
  P.current = !1, M.current = void 0, N.current = 0, te.current = e.pointerId, A.current = {
13062
13081
  x: e.clientX,
13063
13082
  y: e.clientY
13064
13083
  }, F.current = A.current;
13065
- let t = e.currentTarget, n = tv(t);
13084
+ let t = e.currentTarget, n = iv(t);
13066
13085
  j.current = n, x(n), ce({
13067
13086
  x: n.x,
13068
13087
  y: n.y
13069
- }), d.set("hovering", !0), h(!0), _(!1), D(null), I.current = !0, L.current?.abort();
13088
+ }), d.set("hovering", !0), h(!0), _(!1), D(null), I.current = !0, ne.current?.abort();
13070
13089
  let r = new AbortController();
13071
- L.current = r;
13090
+ ne.current = r;
13072
13091
  let i = Pr(t);
13073
13092
  i.addEventListener("pointerup", ue, { signal: r.signal }), i.addEventListener("pointercancel", ue, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
13074
13093
  }
@@ -13087,16 +13106,16 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13087
13106
  y: F.current.y
13088
13107
  });
13089
13108
  let a = n - A.current.x, o = t - A.current.y, s = t - F.current.y, c = n - F.current.x, u = E;
13090
- if (!g && Math.sqrt(a * a + o * o) >= pv) {
13109
+ if (!g && Math.sqrt(a * a + o * o) >= gv) {
13091
13110
  _(!0);
13092
13111
  let e = l.includes("left") || l.includes("right"), t = l.includes("up") || l.includes("down");
13093
13112
  e && t && (u = Math.abs(a) > Math.abs(o) ? "horizontal" : "vertical", D(u));
13094
13113
  }
13095
13114
  let d;
13096
- 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 = nv(d, a, o), p(d));
13115
+ 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 = av(d, a, o), p(d));
13097
13116
  else {
13098
- let e = M.current, t = nv(e, c, s);
13099
- t > uv ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= dv && (P.current = !0);
13117
+ let e = M.current, t = av(e, c, s);
13118
+ t > pv ? (P.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && N.current - t >= mv && (P.current = !0);
13100
13119
  }
13101
13120
  let f = le(a, o), m = j.current.x, h = j.current.y, v = l.includes("left") || l.includes("right"), y = l.includes("up") || l.includes("down");
13102
13121
  u !== "vertical" && v && (m += f.x), u !== "horizontal" && y && (h += f.y), ce({
@@ -13123,8 +13142,8 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13123
13142
  return {
13124
13143
  transition: m ? "none" : void 0,
13125
13144
  transform: m ? `translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})` : void 0,
13126
- [ov]: `${e}px`,
13127
- [sv]: `${t}px`
13145
+ [lv]: `${e}px`,
13146
+ [uv]: `${t}px`
13128
13147
  };
13129
13148
  }
13130
13149
  let he = n.priority === "high", ge = {
@@ -13133,7 +13152,7 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13133
13152
  "aria-modal": !1,
13134
13153
  "aria-labelledby": S,
13135
13154
  "aria-describedby": w,
13136
- "aria-hidden": he && !ae ? !0 : void 0,
13155
+ "aria-hidden": he && !oe ? !0 : void 0,
13137
13156
  onPointerDown: u ? de : void 0,
13138
13157
  onPointerMove: u ? fe : void 0,
13139
13158
  onPointerUp: u ? ue : void 0,
@@ -13142,27 +13161,27 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13142
13161
  inert: Fc(n.limited),
13143
13162
  style: {
13144
13163
  ...me(),
13145
- [rv]: n.transitionStatus === "ending" ? ne : re,
13146
- [iv]: `${ie}px`,
13147
- [av]: n.height ? `${n.height}px` : void 0
13164
+ [ov]: n.transitionStatus === "ending" ? re : ie,
13165
+ [sv]: `${ae}px`,
13166
+ [cv]: n.height ? `${n.height}px` : void 0
13148
13167
  }
13149
13168
  }, _e = U.useMemo(() => ({
13150
13169
  toast: n,
13151
13170
  setTitleId: C,
13152
13171
  setDescriptionId: T,
13153
- recalculateHeight: se,
13154
- visibleIndex: re,
13155
- expanded: oe
13172
+ recalculateHeight: L,
13173
+ visibleIndex: ie,
13174
+ expanded: se
13156
13175
  }), [
13157
13176
  n,
13158
13177
  C,
13159
13178
  T,
13160
- se,
13161
- re,
13162
- oe
13179
+ L,
13180
+ ie,
13181
+ se
13163
13182
  ]), ve = {
13164
13183
  transitionStatus: n.transitionStatus,
13165
- expanded: oe,
13184
+ expanded: se,
13166
13185
  limited: n.limited || !1,
13167
13186
  type: n.type,
13168
13187
  swiping: m,
@@ -13170,19 +13189,19 @@ var rv = "--toast-index", iv = "--toast-offset-y", av = "--toast-height", ov = "
13170
13189
  }, ye = kr("div", e, {
13171
13190
  ref: [t, O],
13172
13191
  state: ve,
13173
- stateAttributesMapping: lv,
13192
+ stateAttributesMapping: fv,
13174
13193
  props: [ge, s]
13175
13194
  });
13176
- return /*#__PURE__*/ X($_.Provider, {
13195
+ return /*#__PURE__*/ X(nv.Provider, {
13177
13196
  value: _e,
13178
13197
  children: ye
13179
13198
  });
13180
13199
  });
13181
- process.env.NODE_ENV !== "production" && (hv.displayName = "ToastRoot");
13200
+ process.env.NODE_ENV !== "production" && (vv.displayName = "ToastRoot");
13182
13201
  //#endregion
13183
13202
  //#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
13184
- var gv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13185
- let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = ev(), l = U.useRef(null);
13203
+ var yv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13204
+ let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = rv(), l = U.useRef(null);
13186
13205
  return fr(() => {
13187
13206
  c();
13188
13207
  let e = l.current;
@@ -13204,19 +13223,19 @@ var gv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13204
13223
  props: a
13205
13224
  });
13206
13225
  });
13207
- process.env.NODE_ENV !== "production" && (gv.displayName = "ToastContent");
13226
+ process.env.NODE_ENV !== "production" && (yv.displayName = "ToastContent");
13208
13227
  //#endregion
13209
13228
  //#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
13210
- function _v(e) {
13211
- return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(_v);
13229
+ function bv(e) {
13230
+ return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some(bv);
13212
13231
  }
13213
- function vv(e) {
13214
- return /*#__PURE__*/ U.isValidElement(e) && _v(e.props.children);
13232
+ function xv(e) {
13233
+ return /*#__PURE__*/ U.isValidElement(e) && bv(e.props.children);
13215
13234
  }
13216
13235
  //#endregion
13217
13236
  //#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
13218
- function yv(e, t, n) {
13219
- let { toast: r, setTitleId: i, setDescriptionId: a } = ev(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
13237
+ function Sv(e, t, n) {
13238
+ let { toast: r, setTitleId: i, setDescriptionId: a } = rv(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
13220
13239
  return {
13221
13240
  id: wr(e),
13222
13241
  children: s,
@@ -13224,8 +13243,8 @@ function yv(e, t, n) {
13224
13243
  setId: o
13225
13244
  };
13226
13245
  }
13227
- function bv(e, t, n) {
13228
- let r = vv(e);
13246
+ function Cv(e, t, n) {
13247
+ let r = xv(e);
13229
13248
  return fr(() => {
13230
13249
  if (r) return n(t), () => {
13231
13250
  n((e) => e === t ? void 0 : e);
@@ -13238,9 +13257,9 @@ function bv(e, t, n) {
13238
13257
  }
13239
13258
  //#endregion
13240
13259
  //#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
13241
- var xv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13242
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = yv(a, o, "description");
13243
- return bv(kr("p", e, {
13260
+ var wv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13261
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = Sv(a, o, "description");
13262
+ return Cv(kr("p", e, {
13244
13263
  ref: t,
13245
13264
  state: { type: u },
13246
13265
  props: {
@@ -13250,12 +13269,12 @@ var xv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13250
13269
  }
13251
13270
  }), c, d);
13252
13271
  });
13253
- process.env.NODE_ENV !== "production" && (xv.displayName = "ToastDescription");
13272
+ process.env.NODE_ENV !== "production" && (wv.displayName = "ToastDescription");
13254
13273
  //#endregion
13255
13274
  //#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
13256
- var Sv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13257
- let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = yv(a, o, "title");
13258
- return bv(kr("h2", e, {
13275
+ var Tv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13276
+ let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = Sv(a, o, "title");
13277
+ return Cv(kr("h2", e, {
13259
13278
  ref: t,
13260
13279
  state: { type: u },
13261
13280
  props: {
@@ -13265,11 +13284,11 @@ var Sv = /*#__PURE__*/ U.forwardRef(function(e, t) {
13265
13284
  }
13266
13285
  }), c, d);
13267
13286
  });
13268
- process.env.NODE_ENV !== "production" && (Sv.displayName = "ToastTitle");
13287
+ process.env.NODE_ENV !== "production" && (Tv.displayName = "ToastTitle");
13269
13288
  //#endregion
13270
13289
  //#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
13271
- function Cv() {
13272
- let e = U_(), t = e.useState("toasts");
13290
+ function Ev() {
13291
+ let e = K_(), t = e.useState("toasts");
13273
13292
  return U.useMemo(() => ({
13274
13293
  toasts: t,
13275
13294
  add: e.addToast,
@@ -13280,7 +13299,7 @@ function Cv() {
13280
13299
  }
13281
13300
  //#endregion
13282
13301
  //#region src/elements/Toast/components/ToastCloseButton.tsx
13283
- var wv = ({ onClose: e }) => {
13302
+ var Dv = ({ onClose: e }) => {
13284
13303
  let t = V();
13285
13304
  return /* @__PURE__ */ X("div", {
13286
13305
  className: "dark flex-shrink-0",
@@ -13293,13 +13312,13 @@ var wv = ({ onClose: e }) => {
13293
13312
  label: t.actions.close
13294
13313
  })
13295
13314
  });
13296
- }, Tv = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
13315
+ }, Ov = ({ duration: e, color: t }) => /* @__PURE__ */ X("div", {
13297
13316
  className: "absolute bottom-0 left-0 right-0 h-[3px] w-full overflow-hidden rounded-b-lg",
13298
13317
  children: /* @__PURE__ */ X("div", {
13299
13318
  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),
13300
13319
  style: { animationDuration: `${e}ms` }
13301
13320
  })
13302
- }), Ev = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
13321
+ }), kv = ({ linkActions: e, buttonActions: t, onActionClick: n }) => e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ Z("div", {
13303
13322
  className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
13304
13323
  children: [e.map((e) => /* @__PURE__ */ X("div", {
13305
13324
  onClick: () => n(e),
@@ -13314,7 +13333,7 @@ var wv = ({ onClose: e }) => {
13314
13333
  size: "sm",
13315
13334
  onClick: () => n(e)
13316
13335
  }, `button-${e.label}`))]
13317
- }), Dv = (e, t) => {
13336
+ }), Av = (e, t) => {
13318
13337
  let n = as(e);
13319
13338
  return {
13320
13339
  buttonActions: n.filter((e) => e.type === "button"),
@@ -13324,7 +13343,7 @@ var wv = ({ onClose: e }) => {
13324
13343
  e.type === "button" && e.onClick(), e.keepOpen || t?.();
13325
13344
  }
13326
13345
  };
13327
- }, Ov = wc({
13346
+ }, jv = wc({
13328
13347
  Title: ({ className: e, children: t }) => /* @__PURE__ */ X("p", {
13329
13348
  className: e,
13330
13349
  children: t
@@ -13334,30 +13353,30 @@ var wv = ({ onClose: e }) => {
13334
13353
  children: t
13335
13354
  }),
13336
13355
  inStack: !1
13337
- }), kv = () => Oc(Ov), Av = (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"), jv = Bn({
13356
+ }), Mv = () => Oc(jv), Nv = (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"), Pv = Bn({
13338
13357
  base: "text-base font-medium text-f1-foreground-inverse",
13339
13358
  variants: { hasIcon: {
13340
13359
  true: "pt-[3px]",
13341
13360
  false: ""
13342
13361
  } },
13343
13362
  defaultVariants: { hasIcon: !1 }
13344
- }), Mv = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", Nv = {
13363
+ }), Fv = "line-clamp-3 text-base text-f1-foreground-inverse-secondary", Iv = {
13345
13364
  error: "critical",
13346
13365
  warning: "warning",
13347
13366
  success: "positive",
13348
13367
  loading: null,
13349
13368
  default: null
13350
- }, Pv = {
13369
+ }, Lv = {
13351
13370
  error: "bg-f1-icon-critical",
13352
13371
  warning: "bg-f1-icon-warning",
13353
13372
  success: "bg-f1-icon-positive",
13354
13373
  loading: "bg-f1-foreground-inverse-secondary",
13355
13374
  default: "bg-f1-foreground-inverse-secondary"
13356
- }, Fv = Tc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
13357
- let { Title: l, Description: u, inStack: d } = kv(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = Dv(a, i), g = Nv[n], _ = n === "loading", v = !_ && r != null && r > 0;
13375
+ }, Rv = Tc(({ title: e, description: t, variant: n = "default", duration: r, onClose: i, actions: a, countdownKey: o, contentKey: s }, c) => {
13376
+ let { Title: l, Description: u, inStack: d } = Mv(), { buttonActions: f, linkActions: p, hasActions: m, handleActionClick: h } = Av(a, i), g = Iv[n], _ = n === "loading", v = !_ && r != null && r > 0;
13358
13377
  return /* @__PURE__ */ Z("div", {
13359
13378
  ref: c,
13360
- className: Av(d),
13379
+ className: Nv(d),
13361
13380
  children: [/* @__PURE__ */ Z("div", {
13362
13381
  className: H("flex flex-row gap-3", t ? "items-start" : "items-center"),
13363
13382
  children: [
@@ -13380,44 +13399,44 @@ var wv = ({ onClose: e }) => {
13380
13399
  className: "flex flex-1 animate-toast-content-in flex-col gap-1 motion-reduce:animate-none",
13381
13400
  children: [
13382
13401
  e ? /* @__PURE__ */ X(l, {
13383
- className: jv({ hasIcon: !!g || _ }),
13402
+ className: Pv({ hasIcon: !!g || _ }),
13384
13403
  children: e
13385
13404
  }) : null,
13386
13405
  t && e ? /* @__PURE__ */ X(u, {
13387
- className: Mv,
13406
+ className: Fv,
13388
13407
  children: t
13389
13408
  }) : null,
13390
13409
  t && !e ? /* @__PURE__ */ X(l, {
13391
- className: Mv,
13410
+ className: Fv,
13392
13411
  children: t
13393
13412
  }) : null
13394
13413
  ]
13395
13414
  }, s),
13396
- /* @__PURE__ */ X(Ev, {
13415
+ /* @__PURE__ */ X(kv, {
13397
13416
  linkActions: p,
13398
13417
  buttonActions: f,
13399
13418
  onActionClick: h
13400
13419
  }),
13401
- i && !_ && (!m || !v) ? /* @__PURE__ */ X(wv, { onClose: i }) : null
13420
+ i && !_ && (!m || !v) ? /* @__PURE__ */ X(Dv, { onClose: i }) : null
13402
13421
  ]
13403
- }), v ? /* @__PURE__ */ X(Tv, {
13422
+ }), v ? /* @__PURE__ */ X(Ov, {
13404
13423
  duration: r,
13405
- color: Pv[n]
13424
+ color: Lv[n]
13406
13425
  }, o) : null]
13407
13426
  });
13408
13427
  });
13409
- Fv.displayName = "F0Toast";
13428
+ Rv.displayName = "F0Toast";
13410
13429
  //#endregion
13411
13430
  //#region src/elements/Toast/F0MessageToast.tsx
13412
- var Iv = (e) => e instanceof Element && e.closest("button, a") !== null, Lv = Tc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
13413
- let d = V(), { Title: f, Description: p, inStack: m } = kv(), h = () => {
13431
+ var zv = (e) => e instanceof Element && e.closest("button, a") !== null, Bv = Tc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
13432
+ let d = V(), { Title: f, Description: p, inStack: m } = Mv(), h = () => {
13414
13433
  a?.(), s?.();
13415
13434
  }, g = o != null && o > 0;
13416
13435
  return /* @__PURE__ */ Z("div", {
13417
13436
  ref: u,
13418
- className: H(Av(m), a && "cursor-pointer"),
13437
+ className: H(Nv(m), a && "cursor-pointer"),
13419
13438
  onClick: a && !m ? (e) => {
13420
- Iv(e.target) || h();
13439
+ zv(e.target) || h();
13421
13440
  } : void 0,
13422
13441
  children: [
13423
13442
  a ? /* @__PURE__ */ X("button", {
@@ -13461,44 +13480,44 @@ var Iv = (e) => e instanceof Element && e.closest("button, a") !== null, Lv = Tc
13461
13480
  }, l),
13462
13481
  s ? /* @__PURE__ */ X("div", {
13463
13482
  className: "relative flex-shrink-0",
13464
- children: /* @__PURE__ */ X(wv, { onClose: s })
13483
+ children: /* @__PURE__ */ X(Dv, { onClose: s })
13465
13484
  }) : null
13466
13485
  ]
13467
13486
  }),
13468
- g ? /* @__PURE__ */ X(Tv, {
13487
+ g ? /* @__PURE__ */ X(Ov, {
13469
13488
  duration: o,
13470
13489
  color: "bg-f1-foreground-inverse-secondary"
13471
13490
  }, c) : null
13472
13491
  ]
13473
13492
  });
13474
13493
  });
13475
- Lv.displayName = "F0MessageToast";
13494
+ Bv.displayName = "F0MessageToast";
13476
13495
  //#endregion
13477
13496
  //#region src/elements/Toast/stack/ToastItem.tsx
13478
- var Rv = 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", vr(), "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]"), zv = 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]"), Bv = ["down", "right"], Vv = {
13479
- Title: ({ className: e, children: t }) => /* @__PURE__ */ X(Sv, {
13497
+ var Vv = 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", vr(), "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]"), Hv = 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]"), Uv = ["down", "right"], Wv = {
13498
+ Title: ({ className: e, children: t }) => /* @__PURE__ */ X(Tv, {
13480
13499
  className: e,
13481
13500
  render: /* @__PURE__ */ X("p", {}),
13482
13501
  children: t
13483
13502
  }),
13484
- Description: ({ className: e, children: t }) => /* @__PURE__ */ X(xv, {
13503
+ Description: ({ className: e, children: t }) => /* @__PURE__ */ X(wv, {
13485
13504
  className: e,
13486
13505
  children: t
13487
13506
  }),
13488
13507
  inStack: !0
13489
- }, Hv = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(Lv, {
13508
+ }, Gv = ({ data: e, duration: t, countdownKey: n, contentKey: r, onClose: i }) => e.type === "message" ? /* @__PURE__ */ X(Bv, {
13490
13509
  ...e.props,
13491
13510
  duration: t,
13492
13511
  countdownKey: n,
13493
13512
  contentKey: r,
13494
13513
  onClose: i
13495
- }) : /* @__PURE__ */ X(Fv, {
13514
+ }) : /* @__PURE__ */ X(Rv, {
13496
13515
  ...e.props,
13497
13516
  duration: t,
13498
13517
  countdownKey: n,
13499
13518
  contentKey: r,
13500
13519
  onClose: i
13501
- }), Uv = 6, Wv = (e) => {
13520
+ }), Kv = 6, qv = (e) => {
13502
13521
  let t = q(null);
13503
13522
  return e ? {
13504
13523
  onPointerDown: (e) => {
@@ -13510,28 +13529,28 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13510
13529
  },
13511
13530
  onPointerMove: (e) => {
13512
13531
  let n = t.current;
13513
- n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > Uv && (n.dragged = !0);
13532
+ n && Math.hypot(e.clientX - n.x, e.clientY - n.y) > Kv && (n.dragged = !0);
13514
13533
  },
13515
13534
  onClick: (n) => {
13516
13535
  let r = t.current?.dragged ?? !1;
13517
- t.current = null, !r && !Iv(n.target) && e();
13536
+ t.current = null, !r && !zv(n.target) && e();
13518
13537
  }
13519
13538
  } : {};
13520
- }, Gv = ({ toast: e, buried: t }) => {
13521
- let { close: n } = Cv(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = Wv(r ? () => {
13539
+ }, Jv = ({ toast: e, buried: t }) => {
13540
+ let { close: n } = Ev(), r = e.data?.type === "message" ? e.data.props.onClick : void 0, i = qv(r ? () => {
13522
13541
  r(), n(e.id);
13523
13542
  } : void 0);
13524
- return e.data ? /* @__PURE__ */ X(hv, {
13543
+ return e.data ? /* @__PURE__ */ X(vv, {
13525
13544
  toast: e,
13526
- swipeDirection: Bv,
13545
+ swipeDirection: Uv,
13527
13546
  "data-buried": t ? "" : void 0,
13528
- className: Rv,
13547
+ className: Vv,
13529
13548
  ...i,
13530
- children: /* @__PURE__ */ X(gv, {
13531
- className: zv,
13532
- children: /* @__PURE__ */ X(Ov.Provider, {
13533
- value: Vv,
13534
- children: /* @__PURE__ */ X(Hv, {
13549
+ children: /* @__PURE__ */ X(yv, {
13550
+ className: Hv,
13551
+ children: /* @__PURE__ */ X(jv.Provider, {
13552
+ value: Wv,
13553
+ children: /* @__PURE__ */ X(Gv, {
13535
13554
  data: e.data,
13536
13555
  duration: e.timeout,
13537
13556
  countdownKey: `${e.data.revision}-${e.updateKey ?? 0}`,
@@ -13541,18 +13560,18 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13541
13560
  })
13542
13561
  })
13543
13562
  }) : null;
13544
- }, Kv = 12, qv = 6, Jv = 36, Yv = 2, Xv = 3, Zv = (e) => {
13563
+ }, Yv = 12, Xv = 6, Zv = 36, Qv = 2, $v = 3, ey = (e) => {
13545
13564
  if (e.length === 0) return {
13546
13565
  collapsed: 0,
13547
13566
  expanded: 0
13548
13567
  };
13549
- let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + Kv * (e.length - 1);
13568
+ let t = e[0].height ?? 0, n = e.reduce((e, t) => e + (t.height ?? 0), 0) + Yv * (e.length - 1);
13550
13569
  return {
13551
- collapsed: t + qv * Math.min(e.length - 1, Yv),
13552
- expanded: n + (e.length > 1 ? Jv : 0)
13570
+ collapsed: t + Xv * Math.min(e.length - 1, Qv),
13571
+ expanded: n + (e.length > 1 ? Zv : 0)
13553
13572
  };
13554
- }, Qv = ({ onClear: e }) => {
13555
- let t = V(), { close: n } = Cv();
13573
+ }, ty = ({ onClear: e }) => {
13574
+ let t = V(), { close: n } = Ev();
13556
13575
  return /* @__PURE__ */ X("div", {
13557
13576
  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]"),
13558
13577
  children: /* @__PURE__ */ X(z, {
@@ -13564,18 +13583,18 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13564
13583
  }
13565
13584
  })
13566
13585
  });
13567
- }, $v = (e) => {
13568
- let { update: t } = Cv();
13586
+ }, ny = (e) => {
13587
+ let { update: t } = Ev();
13569
13588
  jc(function() {
13570
13589
  e.forEach((e, n) => {
13571
13590
  if (!e.data) return;
13572
- let r = n >= Xv ? 0 : e.data.duration;
13591
+ let r = n >= $v ? 0 : e.data.duration;
13573
13592
  (e.timeout ?? 0) !== r && t(e.id, { timeout: r });
13574
13593
  });
13575
13594
  }, [e, t]);
13576
- }, ey = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
13577
- let { toasts: i } = Cv(), 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));
13578
- $v(o), Ac(n, () => ({
13595
+ }, ry = ({ label: e, isWindowBlurred: t, stackRef: n, onHasToastsChange: r }) => {
13596
+ let { toasts: i } = Ev(), 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));
13597
+ ny(o), Ac(n, () => ({
13579
13598
  isInUse: () => a.current?.hasAttribute("data-expanded") ?? !1,
13580
13599
  frontToastId: () => o[0]?.id
13581
13600
  }), [o]);
@@ -13583,28 +13602,28 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13583
13602
  G(function() {
13584
13603
  r(u);
13585
13604
  }, [u, r]);
13586
- let d = Zv(o), f = {
13605
+ let d = ey(o), f = {
13587
13606
  "--stack-collapsed-height": `${d.collapsed}px`,
13588
13607
  "--stack-expanded-height": `${d.expanded}px`,
13589
- "--clear-all-row": `${Jv}px`
13608
+ "--clear-all-row": `${Zv}px`
13590
13609
  };
13591
- return /* @__PURE__ */ Z(Q_, {
13610
+ return /* @__PURE__ */ Z(tv, {
13592
13611
  ref: a,
13593
13612
  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]"),
13594
13613
  "aria-label": e,
13595
13614
  "data-clearing": l ? "" : void 0,
13596
13615
  "data-window-blurred": t ? "" : void 0,
13597
13616
  style: f,
13598
- children: [i.map((e) => /* @__PURE__ */ X(Gv, {
13617
+ children: [i.map((e) => /* @__PURE__ */ X(Jv, {
13599
13618
  toast: e,
13600
- buried: o.indexOf(e) >= Xv
13601
- }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(Qv, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
13619
+ buried: o.indexOf(e) >= $v
13620
+ }, `${e.id}:${e.data?.renderKey ?? 0}`)), o.length > 1 || l ? /* @__PURE__ */ X(ty, { onClear: () => c(new Set(o.map((e) => e.id))) }) : null]
13602
13621
  });
13603
- }, ty = "#content", ny = (e) => {
13622
+ }, iy = "#content", ay = (e) => {
13604
13623
  let [t, n] = J({ inset: 0 });
13605
13624
  return vn(function() {
13606
13625
  if (!e || typeof document > "u") return;
13607
- let t = document.querySelector(ty);
13626
+ let t = document.querySelector(iy);
13608
13627
  if (!t) {
13609
13628
  n({ inset: 0 });
13610
13629
  return;
@@ -13624,7 +13643,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13624
13643
  i.disconnect(), window.removeEventListener("resize", r), window.removeEventListener("scroll", r, !0);
13625
13644
  };
13626
13645
  }, [e]), t;
13627
- }, ry = () => {
13646
+ }, oy = () => {
13628
13647
  let [e, t] = J(!1);
13629
13648
  return G(function() {
13630
13649
  let e = () => t(!0), n = () => t(!1);
@@ -13632,26 +13651,26 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13632
13651
  window.removeEventListener("blur", e), window.removeEventListener("focus", n);
13633
13652
  };
13634
13653
  }, []), e;
13635
- }, iy = Infinity, ay = ({ messages: e, app: t }) => {
13636
- let [n, r] = J(!1), [i, a] = J(!1), o = ny(n || i), s = ry(), c = V();
13654
+ }, sy = Infinity, cy = ({ messages: e, app: t }) => {
13655
+ let [n, r] = J(!1), [i, a] = J(!1), o = ay(n || i), s = oy(), c = V();
13637
13656
  return /* @__PURE__ */ X("div", {
13638
13657
  className: "pointer-events-none fixed z-[100] flex flex-col-reverse items-center overflow-y-auto overflow-x-hidden py-6",
13639
13658
  style: o,
13640
13659
  children: /* @__PURE__ */ Z("div", {
13641
13660
  className: "flex w-[calc(100%-2rem)] shrink-0 flex-col gap-3 sm:w-96",
13642
- children: [/* @__PURE__ */ X(Y_, {
13661
+ children: [/* @__PURE__ */ X(Q_, {
13643
13662
  toastManager: e.manager,
13644
- limit: iy,
13645
- children: /* @__PURE__ */ X(ey, {
13663
+ limit: sy,
13664
+ children: /* @__PURE__ */ X(ry, {
13646
13665
  label: c.toasts.messages,
13647
13666
  isWindowBlurred: s,
13648
13667
  stackRef: e.stackRef,
13649
13668
  onHasToastsChange: r
13650
13669
  })
13651
- }), /* @__PURE__ */ X(Y_, {
13670
+ }), /* @__PURE__ */ X(Q_, {
13652
13671
  toastManager: t.manager,
13653
- limit: iy,
13654
- children: /* @__PURE__ */ X(ey, {
13672
+ limit: sy,
13673
+ children: /* @__PURE__ */ X(ry, {
13655
13674
  label: c.notifications,
13656
13675
  isWindowBlurred: s,
13657
13676
  stackRef: t.stackRef,
@@ -13660,7 +13679,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13660
13679
  })]
13661
13680
  })
13662
13681
  });
13663
- }, oy = ({ children: e, portalTargets: t = {
13682
+ }, ly = ({ children: e, portalTargets: t = {
13664
13683
  mobile: "#f0-overlay-root",
13665
13684
  desktop: "#f0-overlay-root"
13666
13685
  } }) => {
@@ -13669,7 +13688,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13669
13688
  let { id: e, release: t } = Ve.acquireRenderer();
13670
13689
  return n.current = e, t;
13671
13690
  }, []);
13672
- let i = r !== null && r === n.current, a = V_(), [o, s] = J(null), [c, l] = J(0), u = q(null);
13691
+ let i = r !== null && r === n.current, a = W_(), [o, s] = J(null), [c, l] = J(0), u = q(null);
13673
13692
  return G(function() {
13674
13693
  if (typeof document > "u") return;
13675
13694
  let e = a ? t?.mobile || "body" : t?.desktop || "body", n = document.querySelector(e) ?? document.body;
@@ -13678,11 +13697,11 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13678
13697
  a,
13679
13698
  t?.mobile,
13680
13699
  t?.desktop
13681
- ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? Pc(/* @__PURE__ */ X(Cc, { children: /* @__PURE__ */ X(ay, {
13700
+ ]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? Pc(/* @__PURE__ */ X(Cc, { children: /* @__PURE__ */ X(cy, {
13682
13701
  messages: Ut,
13683
13702
  app: _t
13684
13703
  }) }, c), o) : null, e] });
13685
- }, sy = ({ 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(at, {
13704
+ }, uy = ({ 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(at, {
13686
13705
  reducedMotion: "user",
13687
13706
  children: /* @__PURE__ */ X(Qn, {
13688
13707
  isDev: s,
@@ -13706,11 +13725,11 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13706
13725
  })
13707
13726
  })
13708
13727
  })
13709
- }), cy = wc(null), ly = ({ children: e, fullScreen: t = !0 }) => {
13728
+ }), dy = wc(null), fy = ({ children: e, fullScreen: t = !0 }) => {
13710
13729
  let n = q(null), [r, i] = J(n.current);
13711
13730
  return vn(() => {
13712
13731
  i(n.current);
13713
- }, []), /* @__PURE__ */ X(cy.Provider, {
13732
+ }, []), /* @__PURE__ */ X(dy.Provider, {
13714
13733
  value: { element: r },
13715
13734
  children: /* @__PURE__ */ Z("div", {
13716
13735
  ref: n,
@@ -13722,7 +13741,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13722
13741
  })]
13723
13742
  })
13724
13743
  });
13725
- }, uy = wc(void 0), dy = () => Oc(uy), fy = ({ 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(sy, {
13744
+ }, py = wc(void 0), my = () => Oc(py), hy = ({ 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(uy, {
13726
13745
  link: n,
13727
13746
  privacyModeInitiallyEnabled: r,
13728
13747
  image: i,
@@ -13732,15 +13751,15 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13732
13751
  isDev: c,
13733
13752
  showExperimentalWarnings: u,
13734
13753
  renderDataTestIdAttribute: d,
13735
- children: /* @__PURE__ */ X(ly, {
13754
+ children: /* @__PURE__ */ X(fy, {
13736
13755
  ...t,
13737
13756
  children: /* @__PURE__ */ X(ga, {
13738
13757
  handler: l,
13739
13758
  children: /* @__PURE__ */ X(Br, { children: /* @__PURE__ */ X(lt, {
13740
13759
  ...p,
13741
- children: /* @__PURE__ */ X(uy.Provider, {
13760
+ children: /* @__PURE__ */ X(py.Provider, {
13742
13761
  value: f,
13743
- children: /* @__PURE__ */ X(nf, { children: /* @__PURE__ */ X(oy, {
13762
+ children: /* @__PURE__ */ X(nf, { children: /* @__PURE__ */ X(ly, {
13744
13763
  portalTargets: {
13745
13764
  mobile: "#f0-overlay-root",
13746
13765
  desktop: "#f0-overlay-root"
@@ -13753,4 +13772,4 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
13753
13772
  })
13754
13773
  });
13755
13774
  //#endregion
13756
- export { $r as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart, aa as ChatSpinner, qo as Chip, di as CollapsibleGroup, rn as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ll as Dashboard, Pe as DataChartEmptyStateView, Un as DataTestIdWrapper, vt as DndProvider, Wa as DropOverlay, Kn as EmojiImage, Md as F0Accordion, wt as F0ActionBar, ra as F0ActionItem, _a as F0AiChat, ei as F0AiChatCreditsButton, ci as F0AiChatHeader, ai as F0AiChatHistory, Ni as F0AiChatProvider, Vr as F0AiChatTextArea, Ur as F0AiChatUsageLimitsButton, Xr as F0AiFileAttachments, Ba as F0AiFilePreviewsProvider, Li as F0AiFormRegistryProvider, li as F0AiInsightCard, Zr as F0AiMask, ti as F0AiMessageSources, Rr as F0AiMessagesContainer, Ja as F0AiPong, hi as F0AiProcessingOverlay, ni as F0AiProposalCard, gi as F0AiTableCard, un as F0Alert, z_ as F0AnalyticsDashboard, Td as F0AudioPlayer, Ed as F0AudioPlayerCard, ri as F0AuraVoiceAnimation, Uo as F0Avatar, Ha as F0AvatarAlert, Lo as F0AvatarCompany, eo as F0AvatarDate, Do as F0AvatarEmoji, Co as F0AvatarFile, So as F0AvatarIcon, Ro as F0AvatarList, wo as F0AvatarModule, Oo as F0AvatarPerson, Ho as F0AvatarTeam, au as F0BigNumber, kh as F0BookAMeetingCard, ko as F0Box, z as F0Button, Yi as F0ButtonDropdown, cc as F0ButtonToggle, si as F0CanvasCard, lo as F0CanvasPanel, Ii as F0Card, ea as F0CardRow, Di as F0ChatComposer, Ds as F0Checkbox, Id as F0ChipList, _i as F0ClarifyingPanel, dt as F0DataChart, _e as F0DatePicker, i as F0DatePickerInline, Th as F0DemoCard, so as F0Dialog, m as F0DialogAlikeContext, S as F0DialogAlikeProvider, is as F0DialogContext, Xs as F0DialogProvider, bc as F0DocumentViewer, Wd as F0Drawer, ht as F0DurationInput, oc as F0EventCatcherProvider, Dh as F0FAQCard, Ya as F0FileItem, qd as F0FilterPickerContent, fe as F0Form, cf as F0FormField, Dl as F0GridStack, ii as F0HILActionConfirmation, Qt as F0Heading, B as F0Icon, zi as F0Link, Oh as F0ModuleCard, on as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, Mi as F0OneIcon, Qa as F0OneSwitch, yc as F0PdfViewer, fy as F0Provider, Ah as F0QuestionCardMultiStep, no as F0RichTextDisplay, ft as F0RichTextEditor, Us as F0SearchInput, tc as F0Select, n as F0SelectInline, Yf as F0Slider, lp as F0TableOfContentPopover, fs as F0TagAlert, $o as F0TagBalance, hs as F0TagCompany, ds as F0TagDot, Ys as F0TagList, ls as F0TagPerson, Rs as F0TagRaw, Jo as F0TagStatus, Ls as F0TagTeam, Ir as F0Text, $t as F0TextAreaInput, s as F0TextAreaInputInline, ro as F0TextInput, le as F0TextInputInline, o as F0TimelineRow, _c as F0VideoPlayer, jf as F0WizardForm, Ns as F1SearchBox, P as FILE_TYPES, Ei as FileItem, Br as FormCardValueFormatterProvider, Kt as FunnelChartSkeleton, No as GROUP_ID_SYMBOL, Vo as GROUP_KEY_SEPARATOR, qe as GaugeChartSkeleton, $e as HeatmapChartSkeleton, $l as HomeLayout, kt as InlineFieldRow, bt as InlineFieldRowList, Ji as Input, Xl as Layout, ue as LineChart, At as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, tn as NotesTextEditor, ce as NotesTextEditorSkeleton, ee as NumberInput, js as OneCalendar, Ss as OneCalendarInternal, sr as OneEllipsis, h as OneEmptyState, Zs as OneFilterPicker, c as PieChart, xt as PieChartSkeleton, wi as PongBall, St as PrivacyModeProvider, fh as ProductBlankslate, et as ProductCard, hh as ProductModal, _h as ProductWidget, en as ProgressBarChart, me as RadarChart, st as RadarChartSkeleton, Za as RichTextDisplay, M as RichTextEditor, nt as ScatterChartSkeleton, Zl as StandardLayout, Im as SurveyAllQuestionsLoadingSkeleton, rh as SurveyAnsweringForm, Om as SurveyFormBuilder, oh as SurveySampleQuestion, Lm as SurveySteppedLoadingSkeleton, Bs as Tag, Gs as TagCounter, pe as Textarea, mi as ThreadItem, Qr as ThreadListSkeleton, oy as ToastProvider, Ql as TwoColumnLayout, te as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, bh as UpsellingAlert, Sh as UpsellingBanner, C as UpsellingButton, wh as UpsellingPopover, p as VerticalBarChart, Ts as WeekStartDay, It as actionBarStatuses, xi as actionItemStatuses, ua as adaptDataAdapterToInfiniteScroll, Lr as aiChatFileFromShowFilesItem, oi as aiChatFileFromUploadedFile, Wr as aiChatFilesFromMessage, Gr as aiChatMessageText, Yr as aiTranslations, zd as alertVariantOptions, lu as audioPlayerSizes, eu as avatarVariants, Zt as buildDataCollectionUrlParams, Yn as buildTranslations, cu as buttonDropdownModes, su as buttonDropdownSizes, ou as buttonDropdownVariants, Nl as buttonSizes, Ce as buttonToggleColors, ke as buttonToggleSizes, re as buttonToggleVariants, Ml as buttonVariants, Nd as cardAlertVariants, Qi as cardImageAspectRatios, ha as cardImageFits, yo as cardImageSizes, Ko as chartColorTokens, sc as chipVariants, mp as computeSectionEndIds, vc as configurePdfWorker, fi as contentTypes, Gt as createAtlaskitDriver, _s as createDataSourceDefinition, Zd as createF0FormDefinitionTester, Xd as createF0FormTester, Al as createPageLayoutBlock, jl as createPageLayoutBlockGroup, Hr as createPersonMentionSource, Bd as dataCollectionLocalStorageHandler, Ld as datePickerInlineDismissReasons, Rd as datepickerSizes, xo as defaultTranslations, qi as defineAvailableForm, Jd as describeFormSchema, O as dialog, O as dialogs, Nt as drawers, uo as durationInputSizes, $a as durationUnits, Yt as evaluateRenderIf, tr as experimental, qa as f0FileItemSizes, Vi as f0FormField, da as fieldsToSeconds, up as flattenElements, du as formatPlaybackTime, Lf as forms, tt as generateAnchorId, vs as getAnimationVariants, ho as getDataCollectionStorageKey, ys as getDataSourcePaginationType, mn as getEmojiLabel, Zi as getF0Config, ic as getGranularityDefinition, ks as getGranularityDefinitions, lc as getGranularitySimpleDefinition, sn as getSchemaDefinition, nc as granularityDefinitions, ao as hasF0Config, Xi as inferFieldType, pp as injectSectionEnds, zo as isInfiniteScrollPagination, Bo as isPageBasedPagination, Aa as isZodType, Dd as linkVariants, qr as markdownRenderers, po as mergeDataCollectionFilters, To as modules, Jr as oneIconSizes, ln as parseDataCollectionUrlParams, Rf as pdfScales, Te as predefinedPresets, ec as rangeSeparator, go as readDataCollectionStorage, fp as reconstructElements, Ia as resolveDataCollectionFilters, Ks as resolveGranularityDefinition, w as resolveItemNeighbors, E as resolveWindowNeighbors, Si as secondsToFields, za as secondsToVisibleFields, zf as selectInlineDismissReasons, y as selectSizes, he as selectVariants, Be as setDataCollectionUrlParams, Bf as sliderTooltipModes, an as syncDataCollectionUrlParams, Zf as tagDotColors, Xf as timelineRowStatuses, Lt as toasts, ja as unwrapZodSchema, ui as usageLimitsPopoverSides, ma as useAiChat, yi as useAiChatTranslations, Ht as useAudioPlayer, bi as useCanvasEntity, pi as useChatHistory, Io as useData, es as useDataSource, g as useDataSourceItemNavigation, vu as useDerivedTranscription, Tt as useDndEvents, Rt as useDraggable, He as useDroppableList, Gn as useEmojiConfetti, $i as useF0AiFormRegistry, rs as useF0Dialog, k as useF0DialogAlikeContext, Qe as useF0Form, Ct as useF0FormDefinition, zr as useFormCardValueFormatter, dy as useFormComponent, ts as useGroups, B_ as useIsDesktop, V_ as useIsMobile, jt as useItemNeighbors, Pt as usePrivacyMode, Sn as useReducedMotion, Re as useSchemaDefinition, Go as useSelectable, Kr as useSetFormCardValueFormatter, vi as useToolCallId, Fn as useXRay, R as withDataTestId, de as writeDataCollectionStorage };
13775
+ export { $r as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart, aa as ChatSpinner, qo as Chip, di as CollapsibleGroup, rn as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ll as Dashboard, Pe as DataChartEmptyStateView, Un as DataTestIdWrapper, vt as DndProvider, Wa as DropOverlay, Kn as EmojiImage, Md as F0Accordion, wt as F0ActionBar, ra as F0ActionItem, _a as F0AiChat, ei as F0AiChatCreditsButton, ci as F0AiChatHeader, ai as F0AiChatHistory, Ni as F0AiChatProvider, Vr as F0AiChatTextArea, Ur as F0AiChatUsageLimitsButton, Xr as F0AiFileAttachments, Ba as F0AiFilePreviewsProvider, Li as F0AiFormRegistryProvider, li as F0AiInsightCard, Zr as F0AiMask, ti as F0AiMessageSources, Rr as F0AiMessagesContainer, Ja as F0AiPong, hi as F0AiProcessingOverlay, ni as F0AiProposalCard, gi as F0AiTableCard, un as F0Alert, H_ as F0AnalyticsDashboard, Td as F0AudioPlayer, Ed as F0AudioPlayerCard, ri as F0AuraVoiceAnimation, Uo as F0Avatar, Ha as F0AvatarAlert, Lo as F0AvatarCompany, eo as F0AvatarDate, Do as F0AvatarEmoji, Co as F0AvatarFile, So as F0AvatarIcon, Ro as F0AvatarList, wo as F0AvatarModule, Oo as F0AvatarPerson, Ho as F0AvatarTeam, au as F0BigNumber, Mh as F0BookAMeetingCard, ko as F0Box, z as F0Button, Yi as F0ButtonDropdown, cc as F0ButtonToggle, si as F0CanvasCard, lo as F0CanvasPanel, Ii as F0Card, ea as F0CardRow, Di as F0ChatComposer, Ds as F0Checkbox, Id as F0ChipList, _i as F0ClarifyingPanel, dt as F0DataChart, _e as F0DatePicker, i as F0DatePickerInline, Oh as F0DemoCard, so as F0Dialog, m as F0DialogAlikeContext, S as F0DialogAlikeProvider, is as F0DialogContext, Xs as F0DialogProvider, bc as F0DocumentViewer, Wd as F0Drawer, ht as F0DurationInput, oc as F0EventCatcherProvider, Ah as F0FAQCard, Ya as F0FileItem, qd as F0FilterPickerContent, fe as F0Form, cf as F0FormField, Dl as F0GridStack, ii as F0HILActionConfirmation, Qt as F0Heading, B as F0Icon, zi as F0Link, jh as F0ModuleCard, on as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, Mi as F0OneIcon, Qa as F0OneSwitch, yc as F0PdfViewer, hy as F0Provider, Nh as F0QuestionCardMultiStep, no as F0RichTextDisplay, ft as F0RichTextEditor, Us as F0SearchInput, tc as F0Select, n as F0SelectInline, Yf as F0Slider, lp as F0TableOfContentPopover, fs as F0TagAlert, $o as F0TagBalance, hs as F0TagCompany, ds as F0TagDot, Ys as F0TagList, ls as F0TagPerson, Rs as F0TagRaw, Jo as F0TagStatus, Ls as F0TagTeam, Ir as F0Text, $t as F0TextAreaInput, s as F0TextAreaInputInline, ro as F0TextInput, le as F0TextInputInline, o as F0TimelineRow, _c as F0VideoPlayer, jf as F0WizardForm, Ns as F1SearchBox, P as FILE_TYPES, Ei as FileItem, Br as FormCardValueFormatterProvider, Kt as FunnelChartSkeleton, No as GROUP_ID_SYMBOL, Vo as GROUP_KEY_SEPARATOR, qe as GaugeChartSkeleton, $e as HeatmapChartSkeleton, $l as HomeLayout, kt as InlineFieldRow, bt as InlineFieldRowList, Ji as Input, Xl as Layout, ue as LineChart, At as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, tn as NotesTextEditor, ce as NotesTextEditorSkeleton, ee as NumberInput, js as OneCalendar, Ss as OneCalendarInternal, sr as OneEllipsis, h as OneEmptyState, Zs as OneFilterPicker, c as PieChart, xt as PieChartSkeleton, wi as PongBall, St as PrivacyModeProvider, hh as ProductBlankslate, et as ProductCard, vh as ProductModal, bh as ProductWidget, en as ProgressBarChart, me as RadarChart, st as RadarChartSkeleton, Za as RichTextDisplay, M as RichTextEditor, nt as ScatterChartSkeleton, Zl as StandardLayout, Im as SurveyAllQuestionsLoadingSkeleton, oh as SurveyAnsweringForm, Om as SurveyFormBuilder, lh as SurveySampleQuestion, Lm as SurveySteppedLoadingSkeleton, Bs as Tag, Gs as TagCounter, pe as Textarea, mi as ThreadItem, Qr as ThreadListSkeleton, ly as ToastProvider, Ql as TwoColumnLayout, te as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, Ch as UpsellingAlert, Th as UpsellingBanner, C as UpsellingButton, Dh as UpsellingPopover, p as VerticalBarChart, Ts as WeekStartDay, It as actionBarStatuses, xi as actionItemStatuses, ua as adaptDataAdapterToInfiniteScroll, Lr as aiChatFileFromShowFilesItem, oi as aiChatFileFromUploadedFile, Wr as aiChatFilesFromMessage, Gr as aiChatMessageText, Yr as aiTranslations, zd as alertVariantOptions, lu as audioPlayerSizes, eu as avatarVariants, Zt as buildDataCollectionUrlParams, Yn as buildTranslations, cu as buttonDropdownModes, su as buttonDropdownSizes, ou as buttonDropdownVariants, Nl as buttonSizes, Ce as buttonToggleColors, ke as buttonToggleSizes, ie as buttonToggleVariants, Ml as buttonVariants, Nd as cardAlertVariants, Qi as cardImageAspectRatios, ha as cardImageFits, yo as cardImageSizes, Ko as chartColorTokens, sc as chipVariants, mp as computeSectionEndIds, vc as configurePdfWorker, fi as contentTypes, Gt as createAtlaskitDriver, _s as createDataSourceDefinition, Zd as createF0FormDefinitionTester, Xd as createF0FormTester, Al as createPageLayoutBlock, jl as createPageLayoutBlockGroup, Hr as createPersonMentionSource, Bd as dataCollectionLocalStorageHandler, Ld as datePickerInlineDismissReasons, Rd as datepickerSizes, xo as defaultTranslations, qi as defineAvailableForm, Jd as describeFormSchema, O as dialog, O as dialogs, Nt as drawers, uo as durationInputSizes, $a as durationUnits, Yt as evaluateRenderIf, tr as experimental, qa as f0FileItemSizes, Vi as f0FormField, da as fieldsToSeconds, up as flattenElements, du as formatPlaybackTime, Lf as forms, tt as generateAnchorId, vs as getAnimationVariants, ho as getDataCollectionStorageKey, ys as getDataSourcePaginationType, mn as getEmojiLabel, Zi as getF0Config, ic as getGranularityDefinition, ks as getGranularityDefinitions, lc as getGranularitySimpleDefinition, sn as getSchemaDefinition, nc as granularityDefinitions, ao as hasF0Config, Xi as inferFieldType, pp as injectSectionEnds, zo as isInfiniteScrollPagination, Bo as isPageBasedPagination, Aa as isZodType, Dd as linkVariants, qr as markdownRenderers, po as mergeDataCollectionFilters, To as modules, Jr as oneIconSizes, ln as parseDataCollectionUrlParams, Rf as pdfScales, Te as predefinedPresets, ec as rangeSeparator, go as readDataCollectionStorage, fp as reconstructElements, Ia as resolveDataCollectionFilters, Ks as resolveGranularityDefinition, w as resolveItemNeighbors, E as resolveWindowNeighbors, Si as secondsToFields, za as secondsToVisibleFields, zf as selectInlineDismissReasons, y as selectSizes, he as selectVariants, Be as setDataCollectionUrlParams, Bf as sliderTooltipModes, an as syncDataCollectionUrlParams, Zf as tagDotColors, Xf as timelineRowStatuses, Lt as toasts, ja as unwrapZodSchema, ui as usageLimitsPopoverSides, ma as useAiChat, yi as useAiChatTranslations, Ht as useAudioPlayer, bi as useCanvasEntity, pi as useChatHistory, Io as useData, es as useDataSource, g as useDataSourceItemNavigation, vu as useDerivedTranscription, Tt as useDndEvents, Rt as useDraggable, He as useDroppableList, Gn as useEmojiConfetti, $i as useF0AiFormRegistry, rs as useF0Dialog, k as useF0DialogAlikeContext, Qe as useF0Form, Ct as useF0FormDefinition, zr as useFormCardValueFormatter, my as useFormComponent, ts as useGroups, U_ as useIsDesktop, W_ as useIsMobile, jt as useItemNeighbors, Pt as usePrivacyMode, Sn as useReducedMotion, Re as useSchemaDefinition, Go as useSelectable, Kr as useSetFormCardValueFormatter, vi as useToolCallId, Fn as useXRay, R as withDataTestId, de as writeDataCollectionStorage };