@factorialco/f0-react 7.19.1 → 7.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{ChatPdfThumbnail-CoCzMyc1.js → ChatPdfThumbnail-DKIdKf4A.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-BZQ9mcjv.js → ChatPostComposerDialog-BuEnsDXc.js} +3 -3
  3. package/dist/{DocumentToolbar-C46vfsj3.js → DocumentToolbar-B4kiCYs-.js} +2 -2
  4. package/dist/{DocxViewer-rFqxijhs.js → DocxViewer-BKQginz3.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-B_nCsPbB.js → F0AiProcessingOverlay-BS7KcG-l.js} +5 -5
  6. package/dist/{F0CanvasPanel--Wyte3t1.js → F0CanvasPanel-DO72JGDL.js} +10511 -10510
  7. package/dist/{F0VideoPlayer-DQSbW4Mp.js → F0VideoPlayer-Bi-uQxha.js} +1 -1
  8. package/dist/{MapProvider-DkE6q_Xv.js → MapProvider-BtROGj-o.js} +5676 -5658
  9. package/dist/{SheetViewer-3PgOvq2v.js → SheetViewer-BRKjNvX2.js} +2 -2
  10. package/dist/{TextViewer-CVhq7KfE.js → TextViewer-BJyhYs1X.js} +2 -2
  11. package/dist/ai.d.ts +12 -12
  12. package/dist/ai.js +2 -2
  13. package/dist/component-status.d.ts +12 -12
  14. package/dist/component-status.js +1 -1
  15. package/dist/{experimental-BvWkzt9z.js → experimental-By_hQq6m.js} +7897 -7895
  16. package/dist/experimental.d.ts +12 -12
  17. package/dist/experimental.js +13 -13
  18. package/dist/f0.d.ts +12 -12
  19. package/dist/f0.js +394 -387
  20. package/dist/i18n-provider-defaults.d.ts +12 -12
  21. package/dist/index-B7OX-h7Z.js +4 -0
  22. package/dist/{index-C8sDhvvC.js → index-CDBdLW06.js} +3 -3
  23. package/dist/{index-faLKMrEz.js → index-CLHyXty9.js} +2 -2
  24. package/dist/{pdfWorker-SoXVSVFF.js → pdfWorker-Q-0FqGxf.js} +2 -2
  25. package/package.json +1 -1
  26. package/dist/index-Dy175qJm.js +0 -4
package/dist/f0.js CHANGED
@@ -1,18 +1,18 @@
1
- import { e$ as bN, w as st, eq as k_, cE as mn, f0 as _N, f1 as iF, c8 as In, f2 as aF, f3 as oF, f4 as xN, t as rr, cg as mf, f5 as Hw, f6 as Nr, f7 as Ka, f8 as sF, f9 as Si, u as Ve, c6 as up, fa as jl, fb as lF, fc as wN, c5 as hl, fd as Zy, fe as uF, S as ie, v as P_, ff as cF, fg as fF, fh as Ww, cK as dF, fi as hF, fj as vF, fk as SN, fl as pF, x as yf, y as bf, o as at, z as _f, A as $r, U as gF, V as mF, B as Dl, E as Al, aE as ka, H as Ml, fm as jy, di as kt, Y as it, al as El, dj as Pa, dp as CN, dw as R_, fn as yF, cx as bF, cy as $w, q as TN, r as Ll, c7 as kc, cz as _F, eW as Bh, en as DN, fo as xF, fp as Uw, dl as wF, fq as Yw, ds as SF, fr as CF, cd as AN, ej as MN, fs as Ky, dA as TF, aa as Qy, a9 as O_, ft as Kl, fu as xf, fv as EN, fw as DF, fx as LN, fy as AF, fz as cp, bd as B_, fA as MF, cl as NN, fB as EF, aB as LF, fC as z_, bg as IN, ch as NF, ci as IF, cj as kF, d as PF, bN as kN, an as ls, bT as PN, bc as RN, aj as V_, bV as ON, _ as F_, K as vl, L as pl, N as gl, O as ml, fD as Oi, a2 as BN, j as RF, M as Pr, eG as OF, ba as zh, ay as Nl, c3 as G_, be as Jy, cB as Pc, cu as BF, a$ as wf, aw as Ql, am as zN, dU as VN, dH as FN, fE as Vr, fF as zF, fG as VF, fH as FF, fI as H_, fJ as GF, fK as HF, cP as ri, W as GN, X as HN, m as WF, fL as $F, cn as WN, eh as UF, ei as YF, c0 as yl, dq as Jl, et as eu, fM as Sf, bW as XF, er as qF, bD as ZF, ap as $N, du as jF, ao as KF, b4 as Xw, bR as Rc, fN as QF, aW as JF, fO as e5, fP as t5, fQ as r5, b as UN, dm as YN, ct as n5, b7 as i5, l as XN, ab as a5, a8 as o5, fR as s5, fS as l5, fT as u5, fU as c5, de as qN, cW as f5, cf as d5, fV as ZN, fW as h5, fX as v5, I as p5, fY as g5, fZ as m5, f_ as y5, f$ as b5 } from "./F0CanvasPanel--Wyte3t1.js";
2
- import { gk as _he, C as xhe, D as whe, dO as She, c as Che, F as The, a as Dhe, gd as Ahe, f as Mhe, cI as Ehe, dP as Lhe, ev as Nhe, co as Ihe, cp as khe, cG as Phe, cm as Rhe, cH as Ohe, dC as Bhe, d$ as zhe, g as Vhe, ck as Fhe, c9 as Ghe, g4 as Hhe, gw as Whe, c2 as $he, e as Uhe, ep as Yhe, k as Xhe, cJ as qhe, gf as Zhe, dZ as jhe, gg as Khe, gi as Qhe, gj as Jhe, eZ as eve, gm as tve, gn as rve, eS as nve, eT as ive, P as ave, eX as ove, gh as sve, eU as lve, gl as uve, gx as cve, g1 as fve, g2 as dve, g3 as hve, g0 as vve, eV as pve, gr as gve, ge as mve, g9 as yve, g8 as bve, eY as _ve, g7 as xve, gu as wve, gq as Sve, dR as Cve, eR as Tve, eO as Dve, eQ as Ave, eM as Mve, ga as Eve, gp as Lve, go as Nve, gb as Ive, gA as kve, ez as Pve, eP as Rve, gz as Ove, ed as Bve, eN as zve, cr as Vve, g6 as Fve, gc as Gve, eg as Hve, gs as Wve, dQ as $ve, cs as Uve, g5 as Yve, gt as Xve, gv as qve, gy as Zve } from "./F0CanvasPanel--Wyte3t1.js";
1
+ import { e$ as bN, w as st, eq as k_, cE as mn, f0 as _N, f1 as iF, c8 as In, f2 as aF, f3 as oF, f4 as xN, t as rr, cg as mf, f5 as Hw, f6 as Nr, f7 as Ka, f8 as sF, f9 as Si, u as Ve, c6 as up, fa as jl, fb as lF, fc as wN, c5 as hl, fd as Zy, fe as uF, S as ie, v as P_, ff as cF, fg as fF, fh as Ww, cK as dF, fi as hF, fj as vF, fk as SN, fl as pF, x as yf, y as bf, o as at, z as _f, A as $r, U as gF, V as mF, B as Dl, E as Al, aE as ka, H as Ml, fm as jy, dN as kt, Y as it, al as El, e7 as Pa, d7 as CN, de as R_, fn as yF, cx as bF, cy as $w, q as TN, r as Ll, c7 as kc, cz as _F, eW as Bh, en as DN, fo as xF, fp as Uw, d4 as wF, fq as Yw, da as SF, fr as CF, cd as AN, ej as MN, fs as Ky, ft as Kl, fu as xf, fv as TF, fw as EN, di as DF, aa as Qy, a9 as O_, fx as LN, fy as AF, fz as cp, bd as B_, fA as MF, cl as NN, fB as EF, aB as LF, fC as z_, bg as IN, ch as NF, ci as IF, cj as kF, d as PF, bN as kN, an as ls, bT as PN, bc as RN, aj as V_, bV as ON, _ as F_, K as vl, L as pl, N as gl, O as ml, fD as Oi, a2 as BN, j as RF, M as Pr, eG as OF, ba as zh, ay as Nl, c3 as G_, be as Jy, cB as Pc, cu as BF, a$ as wf, aw as Ql, am as zN, dD as VN, dq as FN, fE as Vr, fF as zF, fG as VF, fH as FF, fI as H_, fJ as GF, fK as HF, cP as ri, W as GN, X as HN, m as WF, fL as $F, cn as WN, eh as UF, ei as YF, c0 as yl, d8 as Jl, et as eu, fM as Sf, bW as XF, er as qF, bD as ZF, ap as $N, dc as jF, ao as KF, b4 as Xw, bR as Rc, fN as QF, aW as JF, fO as e5, fP as t5, fQ as r5, b as UN, d5 as YN, ct as n5, b7 as i5, l as XN, ab as a5, a8 as o5, fR as s5, fS as l5, fT as u5, fU as c5, dK as qN, cW as f5, cf as d5, fV as ZN, fW as h5, fX as v5, I as p5, fY as g5, fZ as m5, f_ as y5, f$ as b5 } from "./F0CanvasPanel-DO72JGDL.js";
2
+ import { gk as _he, C as xhe, D as whe, dx as She, c as Che, F as The, a as Dhe, gd as Ahe, f as Mhe, cI as Ehe, dy as Lhe, ev as Nhe, co as Ihe, cp as khe, cG as Phe, cm as Rhe, cH as Ohe, dk as Bhe, dM as zhe, g as Vhe, ck as Fhe, c9 as Ghe, g4 as Hhe, gw as Whe, c2 as $he, e as Uhe, ep as Yhe, k as Xhe, cJ as qhe, gf as Zhe, dI as jhe, gg as Khe, gi as Qhe, gj as Jhe, eZ as eve, gm as tve, gn as rve, eS as nve, eT as ive, P as ave, eX as ove, gh as sve, eU as lve, gl as uve, gx as cve, g1 as fve, g2 as dve, g3 as hve, g0 as vve, eV as pve, gr as gve, ge as mve, g9 as yve, g8 as bve, eY as _ve, g7 as xve, gu as wve, gq as Sve, dA as Cve, eR as Tve, eO as Dve, eQ as Ave, eM as Mve, ga as Eve, gp as Lve, go as Nve, gb as Ive, gA as kve, ez as Pve, eP as Rve, gz as Ove, ed as Bve, eN as zve, cr as Vve, g6 as Fve, gc as Gve, eg as Hve, gs as Wve, dz as $ve, cs as Uve, g5 as Yve, gt as Xve, gv as qve, gy as Zve } from "./F0CanvasPanel-DO72JGDL.js";
3
3
  import { jsx as x, jsxs as B, Fragment as et } from "react/jsx-runtime";
4
- import { C as _5, W as x5, T as w5, U as S5, X as C5, Y as qw, a_ as T5, a$ as D5, a3 as A5, Z as M5, $ as E5, a1 as L5, a2 as N5, x as I5, a8 as jN, b0 as k5, b1 as P5, b2 as R5, b3 as O5, b4 as B5, b5 as KN, b6 as z5, n as W_, b7 as Qa, b8 as Cs, b9 as V5, N as $_, ba as U_, al as F5, bb as G5, bc as QN, bd as H5, be as W5, bf as $5, bg as U5, bh as Y5, bi as X5, az as q5, aP as Z5, bj as j5, au as K5, E as Q5, a as J5, l as fp, R as Y_, m as X_, ax as JN, O as q_, bk as eI, bl as Zw, bm as Z_, a9 as eG, bn as e0, z as tG, o as tI, aD as rI, bo as rG, bp as nG, bq as iG, br as Ts, bs as aG, aQ as oG, bt as sG, M as lG } from "./MapProvider-DkE6q_Xv.js";
5
- import { ab as Kve, ac as Qve, am as Jve, ad as epe, ai as tpe, bP as rpe, bO as npe, bH as ipe, bv as ape, bu as ope, bw as spe, bx as lpe, bz as upe, Q as cpe, aS as fpe, aR as dpe, F as hpe, aw as vpe, ar as ppe, aW as gpe, as as mpe, ae as ype, bQ as bpe, aT as _pe, aU as xpe, at as wpe, af as Spe, P as Cpe, ah as Tpe, aj as Dpe, aV as Ape, av as Mpe, aX as Epe, ag as Lpe, ak as Npe, bS as Ipe, a7 as kpe, a5 as Ppe, a6 as Rpe, bG as Ope, bM as Bpe, bM as zpe, bN as Vpe, bC as Fpe, bB as Gpe, bR as Hpe, aN as Wpe, bE as $pe, bF as Upe, aq as Ype, ap as Xpe, bT as qpe, bU as Zpe, w as jpe, q as Kpe, bI as Qpe, bJ as Jpe, bK as ege, by as tge, bD as rge, s as nge, bL as ige, bA as age, bV as oge } from "./MapProvider-DkE6q_Xv.js";
4
+ import { j as _5, W as x5, T as w5, U as S5, X as C5, Y as qw, a_ as T5, a$ as D5, a3 as A5, Z as M5, $ as E5, a1 as L5, a2 as N5, x as I5, a8 as jN, b0 as k5, b1 as P5, b2 as R5, b3 as O5, b4 as B5, b5 as KN, b6 as z5, n as W_, b7 as Qa, b8 as Cs, b9 as QN, ba as V5, bb as F5, bc as G5, bd as H5, N as $_, be as U_, al as W5, bf as $5, bg as U5, bh as Y5, bi as X5, az as q5, aP as Z5, bj as j5, au as K5, E as Q5, a as J5, l as fp, R as Y_, m as X_, ax as JN, O as q_, bk as eI, bl as Zw, bm as Z_, a9 as eG, bn as e0, z as tG, o as tI, aD as rI, bo as rG, bp as nG, bq as iG, br as Ts, bs as aG, aQ as oG, bt as sG, M as lG } from "./MapProvider-BtROGj-o.js";
5
+ import { ab as Kve, ac as Qve, am as Jve, ad as epe, ai as tpe, bP as rpe, bO as npe, bH as ipe, bv as ape, bu as ope, bw as spe, bx as lpe, bz as upe, Q as cpe, aS as fpe, aR as dpe, F as hpe, aw as vpe, ar as ppe, aW as gpe, as as mpe, ae as ype, bQ as bpe, aT as _pe, aU as xpe, at as wpe, af as Spe, k as Cpe, ah as Tpe, aj as Dpe, aV as Ape, av as Mpe, aX as Epe, ag as Lpe, ak as Npe, bS as Ipe, a7 as kpe, a5 as Ppe, a6 as Rpe, bG as Ope, bM as Bpe, bM as zpe, bN as Vpe, bC as Fpe, bB as Gpe, bR as Hpe, aN as Wpe, bE as $pe, bF as Upe, aq as Ype, ap as Xpe, bT as qpe, bU as Zpe, w as jpe, q as Kpe, bI as Qpe, bJ as Jpe, bK as ege, by as tge, bD as rge, s as nge, bL as ige, bA as age, bV as oge } from "./MapProvider-BtROGj-o.js";
6
6
  import * as St from "react";
7
- import uG, { forwardRef as Mr, useRef as se, useImperativeHandle as cG, Children as Vh, createContext as Wa, useContext as $a, useState as ce, useMemo as me, useEffect as be, useCallback as de, useLayoutEffect as Oc, isValidElement as nI, Fragment as tu, memo as j_, useSyncExternalStore as Il, useId as bl } from "react";
7
+ import uG, { forwardRef as Mr, useRef as se, useImperativeHandle as cG, Children as Vh, createContext as Wa, useContext as $a, useState as fe, useMemo as me, useEffect as be, useCallback as de, useLayoutEffect as Oc, isValidElement as nI, Fragment as tu, memo as j_, useSyncExternalStore as Il, useId as bl } from "react";
8
8
  import { createPortal as Cf } from "react-dom";
9
9
  import { d as ae, g as Tf, h as fG, i as al, j as Df, u as ru, k as dG, f as Ci } from "./tooltip-BElsa4MF.js";
10
- import { l as t0, c as iI, d as Fh, r as r0 } from "./F0VideoPlayer-DQSbW4Mp.js";
11
- import { F as lge } from "./F0VideoPlayer-DQSbW4Mp.js";
12
- import { F as cge, p as fge } from "./index-C8sDhvvC.js";
13
- import { c as hge } from "./pdfWorker-SoXVSVFF.js";
14
- import { G as hG, H as Gh, I as K_, J as aI, K as vG, L as pG, M as gG, N as mG, O as yG, F as bG } from "./F0AiProcessingOverlay-B_nCsPbB.js";
15
- import { A as pge, C as gge, t as mge, s as yge, v as bge, y as _ge, z as xge, l as wge, i as Sge, q as Cge, D as Tge, E as Dge, p as Age, r as Mge, j as Ege, e as Lge, g as Nge, k as Ige, T as kge, w as Pge, h as Rge, a as Oge, n as Bge, m as zge, o as Vge, B as Fge, b as Gge, f as Hge, x as Wge, c as $ge, d as Uge, u as Yge } from "./F0AiProcessingOverlay-B_nCsPbB.js";
10
+ import { l as t0, c as iI, d as Fh, r as r0 } from "./F0VideoPlayer-Bi-uQxha.js";
11
+ import { F as lge } from "./F0VideoPlayer-Bi-uQxha.js";
12
+ import { F as cge, p as fge } from "./index-CDBdLW06.js";
13
+ import { c as hge } from "./pdfWorker-Q-0FqGxf.js";
14
+ import { G as hG, H as Gh, I as K_, J as aI, K as vG, L as pG, M as gG, N as mG, O as yG, F as bG } from "./F0AiProcessingOverlay-BS7KcG-l.js";
15
+ import { A as pge, C as gge, t as mge, s as yge, v as bge, y as _ge, z as xge, l as wge, i as Sge, q as Cge, D as Tge, E as Dge, p as Age, r as Mge, j as Ege, e as Lge, g as Nge, k as Ige, T as kge, w as Pge, h as Rge, a as Oge, n as Bge, m as zge, o as Vge, B as Fge, b as Gge, f as Hge, x as Wge, c as $ge, d as Uge, u as Yge } from "./F0AiProcessingOverlay-BS7KcG-l.js";
16
16
  import { utils as _l, write as oI } from "./xlsx-CzlURDDb.js";
17
17
  import { defaultTranslations as qge } from "./i18n-provider-defaults.js";
18
18
  import './f0.css';const _G = {
@@ -188,10 +188,10 @@ function LG({
188
188
  static: a,
189
189
  forcePositionSync: o
190
190
  }) {
191
- const [s, l] = ce(null), u = se(null), c = se(!1), f = me(() => ({
191
+ const [s, l] = fe(null), u = se(null), c = se(!1), f = me(() => ({
192
192
  ...e,
193
193
  children: (i || []).map((C) => el(C))
194
- }), [e, i]), [d, h] = ce(() => {
194
+ }), [e, i]), [d, h] = fe(() => {
195
195
  const C = /* @__PURE__ */ new Map(), T = i || [], D = (A) => {
196
196
  A.id && A.content && C.set(A.id, A.content), A.subGridOpts?.children && A.subGridOpts.children.forEach((M) => {
197
197
  D(M);
@@ -204,7 +204,7 @@ function LG({
204
204
  be(() => {
205
205
  v.current = d;
206
206
  }, [d]);
207
- const [p, g] = ce(() => {
207
+ const [p, g] = fe(() => {
208
208
  const C = /* @__PURE__ */ new Map(), T = i || [], D = (A) => {
209
209
  A.id && A._originalContent !== void 0 && C.set(A.id, A._originalContent), A.subGridOpts?.children && A.subGridOpts.children.forEach((M) => {
210
210
  D(M);
@@ -221,7 +221,7 @@ function LG({
221
221
  be(() => {
222
222
  y.current = n;
223
223
  }, [n]);
224
- const [b, _] = ce(() => {
224
+ const [b, _] = fe(() => {
225
225
  const C = /* @__PURE__ */ new Map(), T = i || [], D = (A) => {
226
226
  if (A.id) {
227
227
  const M = el(A);
@@ -4105,7 +4105,7 @@ const VG = (r, e, t) => /* @__PURE__ */ x("div", { children: r }), hp = ({
4105
4105
  content: o(D, T.meta, S)
4106
4106
  };
4107
4107
  return T.x !== void 0 && (A.x = T.x), T.y !== void 0 && (A.y = T.y), A;
4108
- }), [c, f] = ce(
4108
+ }), [c, f] = fe(
4109
4109
  u(r, e)
4110
4110
  ), d = se(e), h = se(r), v = se(!1), p = se(/* @__PURE__ */ new Map()), g = se(r);
4111
4111
  g.current = r;
@@ -4394,7 +4394,7 @@ const XG = ({
4394
4394
  }, tx = Mr(
4395
4395
  ({ children: r, onSort: e, ...t }, n) => {
4396
4396
  hI("GroupLinear", r, ["block"]);
4397
- const [i, a] = ce(Vh.toArray(r));
4397
+ const [i, a] = fe(Vh.toArray(r));
4398
4398
  return be(() => {
4399
4399
  a(Vh.toArray(r));
4400
4400
  }, [r]), be(() => {
@@ -4420,7 +4420,7 @@ const Qw = ({ id: r, children: e }) => {
4420
4420
  },
4421
4421
  main: n = !1
4422
4422
  }) => {
4423
- const [i, a] = ce([]);
4423
+ const [i, a] = fe([]);
4424
4424
  _N(() => {
4425
4425
  a(
4426
4426
  r.map((f, d) => ({
@@ -4429,7 +4429,7 @@ const Qw = ({ id: r, children: e }) => {
4429
4429
  }))
4430
4430
  );
4431
4431
  }, [r]);
4432
- const [o, s] = ce(null), l = C5(
4432
+ const [o, s] = fe(null), l = C5(
4433
4433
  qw(A5),
4434
4434
  qw(D5, {
4435
4435
  coordinateGetter: T5
@@ -4706,7 +4706,7 @@ function sH(r) {
4706
4706
  return e;
4707
4707
  }
4708
4708
  function yn(r) {
4709
- const [e, t] = ce(
4709
+ const [e, t] = fe(
4710
4710
  () => lg(r.current)
4711
4711
  ), n = de(() => {
4712
4712
  t(lg(r.current));
@@ -4726,7 +4726,7 @@ function yn(r) {
4726
4726
  }, [r, n]), e;
4727
4727
  }
4728
4728
  function Er(r) {
4729
- const [e, t] = ce({ width: 0, height: 0 });
4729
+ const [e, t] = fe({ width: 0, height: 0 });
4730
4730
  return be(() => {
4731
4731
  const n = r.current;
4732
4732
  if (!n)
@@ -9908,8 +9908,8 @@ var mi = (function() {
9908
9908
  if (h) {
9909
9909
  var M = v[m++];
9910
9910
  if (g + M > y) {
9911
- var fe = y - g;
9912
- e.moveTo(f, d), e.lineTo(f + Vg(fe, te), d), fe -= te, fe > 0 && e.lineTo(f + te, d + Vg(fe, ne)), fe -= ne, fe > 0 && e.lineTo(f + Fg(te - fe, 0), d + ne), fe -= te, fe > 0 && e.lineTo(f, d + Fg(ne - fe, 0));
9911
+ var ce = y - g;
9912
+ e.moveTo(f, d), e.lineTo(f + Vg(ce, te), d), ce -= te, ce > 0 && e.lineTo(f + te, d + Vg(ce, ne)), ce -= ne, ce > 0 && e.lineTo(f + Fg(te - ce, 0), d + ne), ce -= te, ce > 0 && e.lineTo(f, d + Fg(ne - ce, 0));
9913
9913
  break e;
9914
9914
  }
9915
9915
  g += M;
@@ -17611,7 +17611,7 @@ function Vl(r, e) {
17611
17611
  E += m[I], ++P, ++I, I === m.length && (I = 0);
17612
17612
  }
17613
17613
  function Z(Y, j, U, te, ne) {
17614
- var fe = i ? 1 : t, Me = Vt(ne, Y * fe, j * fe, U * fe, te * fe, o.color, o.symbolKeepAspect);
17614
+ var ce = i ? 1 : t, Me = Vt(ne, Y * ce, j * ce, U * ce, te * ce, o.color, o.symbolKeepAspect);
17615
17615
  if (i) {
17616
17616
  var Ne = n.painter.renderOneToVNode(Me);
17617
17617
  Ne && S.children.push(Ne);
@@ -22093,9 +22093,9 @@ function Zp(r, e, t, n) {
22093
22093
  var b = y[1], _ = b.length, w = {}, S = {}, C = {}, T = "animation-timing-function";
22094
22094
  function D(Z, Y, j) {
22095
22095
  for (var U = Z.getTracks(), te = Z.getMaxTime(), ne = 0; ne < U.length; ne++) {
22096
- var fe = U[ne];
22097
- if (fe.needsAnimate()) {
22098
- var Me = fe.keyframes, Ne = fe.propName;
22096
+ var ce = U[ne];
22097
+ if (ce.needsAnimate()) {
22098
+ var Me = ce.keyframes, Ne = ce.propName;
22099
22099
  if (j && (Ne = j(Ne)), Ne)
22100
22100
  for (var Be = 0; Be < Me.length; Be++) {
22101
22101
  var Pe = Me[Be], Le = Math.round(Pe.time / te * 100) + "%", Ie = QT(Pe.easing), ut = Pe.rawValue;
@@ -25246,8 +25246,8 @@ function SX(r) {
25246
25246
  else {
25247
25247
  var Y = (Z ? (T.r + T.r0) / 2 * H : T.r * H) + n, j = (Z ? (T.r + T.r0) / 2 * $ : T.r * $) + i;
25248
25248
  if (J = Y + H * 3, q = j + $ * 3, !Z) {
25249
- var U = Y + H * (z + l - T.r), te = j + $ * (z + l - T.r), ne = U + (H < 0 ? -1 : 1) * V, fe = te;
25250
- P === "edge" ? J = H < 0 ? c + k : c + u - k : J = ne + (H < 0 ? -I : I), q = fe, re = [[Y, j], [U, te], [ne, fe]];
25249
+ var U = Y + H * (z + l - T.r), te = j + $ * (z + l - T.r), ne = U + (H < 0 ? -1 : 1) * V, ce = te;
25250
+ P === "edge" ? J = H < 0 ? c + k : c + u - k : J = ne + (H < 0 ? -I : I), q = ce, re = [[Y, j], [U, te], [ne, ce]];
25251
25251
  }
25252
25252
  pe = Z ? "center" : P === "edge" ? H > 0 ? "right" : "left" : H > 0 ? "left" : "right";
25253
25253
  }
@@ -31632,8 +31632,8 @@ function yZ(r, e, t, n, i, a, o, s, l, u) {
31632
31632
  H(Y);
31633
31633
  else {
31634
31634
  Y.invisible = !1;
31635
- var te = o.getVisual("style"), ne = te.stroke, fe = TA(S);
31636
- fe.fill = ne;
31635
+ var te = o.getVisual("style"), ne = te.stroke, ce = TA(S);
31636
+ ce.fill = ne;
31637
31637
  var Me = Mo(C);
31638
31638
  Me.fill = C.get("borderColor");
31639
31639
  var Ne = Mo(T);
@@ -31655,7 +31655,7 @@ function yZ(r, e, t, n, i, a, o, s, l, u) {
31655
31655
  );
31656
31656
  } else
31657
31657
  Y.removeTextContent();
31658
- Y.setStyle(fe), Y.ensureState("emphasis").style = Me, Y.ensureState("blur").style = Ne, Y.ensureState("select").style = Be, rs(Y);
31658
+ Y.setStyle(ce), Y.ensureState("emphasis").style = Me, Y.ensureState("blur").style = Ne, Y.ensureState("select").style = Be, rs(Y);
31659
31659
  }
31660
31660
  Z.add(Y);
31661
31661
  }
@@ -31673,10 +31673,10 @@ function yZ(r, e, t, n, i, a, o, s, l, u) {
31673
31673
  H(Y);
31674
31674
  else {
31675
31675
  Y.invisible = !1;
31676
- var ne = o.getVisual("style"), fe = ne.fill, Me = TA(S);
31677
- Me.fill = fe, Me.decal = ne.decal;
31676
+ var ne = o.getVisual("style"), ce = ne.fill, Me = TA(S);
31677
+ Me.fill = ce, Me.decal = ne.decal;
31678
31678
  var Ne = Mo(C), Be = Mo(T), Pe = Mo(D);
31679
- $(Y, fe, ne.opacity, null), Y.setStyle(Me), Y.ensureState("emphasis").style = Ne, Y.ensureState("blur").style = Be, Y.ensureState("select").style = Pe, rs(Y);
31679
+ $(Y, ce, ne.opacity, null), Y.setStyle(Me), Y.ensureState("emphasis").style = Ne, Y.ensureState("blur").style = Be, Y.ensureState("select").style = Pe, rs(Y);
31680
31680
  }
31681
31681
  Z.add(Y);
31682
31682
  }
@@ -31684,9 +31684,9 @@ function yZ(r, e, t, n, i, a, o, s, l, u) {
31684
31684
  !Z.invisible && a.push(Z);
31685
31685
  }
31686
31686
  function $(Z, Y, j, U) {
31687
- var te = d.getModel(U ? CA : SA), ne = $t(d.get("name"), null), fe = te.getShallow("show");
31687
+ var te = d.getModel(U ? CA : SA), ne = $t(d.get("name"), null), ce = te.getShallow("show");
31688
31688
  Qt(Z, Yt(d, U ? CA : SA), {
31689
- defaultText: fe ? ne : null,
31689
+ defaultText: ce ? ne : null,
31690
31690
  inheritColor: Y,
31691
31691
  defaultOpacity: j,
31692
31692
  labelFetcher: r,
@@ -31726,10 +31726,10 @@ function yZ(r, e, t, n, i, a, o, s, l, u) {
31726
31726
  function pe(Z, Y) {
31727
31727
  var j = Z[m] = {}, U = o.parentNode, te = Y instanceof xe;
31728
31728
  if (U && (!n || n.direction === "drillDown")) {
31729
- var ne = 0, fe = 0, Me = i.background[U.getRawIndex()];
31730
- !n && Me && Me.oldShape && (ne = Me.oldShape.width, fe = Me.oldShape.height), te ? (j.oldX = 0, j.oldY = fe) : j.oldShape = {
31729
+ var ne = 0, ce = 0, Me = i.background[U.getRawIndex()];
31730
+ !n && Me && Me.oldShape && (ne = Me.oldShape.width, ce = Me.oldShape.height), te ? (j.oldX = 0, j.oldY = ce) : j.oldShape = {
31731
31731
  x: ne,
31732
- y: fe,
31732
+ y: ce,
31733
31733
  width: 0,
31734
31734
  height: 0
31735
31735
  };
@@ -52016,17 +52016,17 @@ function zae(r, e, t, n, i) {
52016
52016
  fill: "none"
52017
52017
  }, k = E ? 0 : 1, R = 1 - k, O = n[ke[R]] + n[Bt[R]];
52018
52018
  function z(ne) {
52019
- var fe = [], Me = [];
52020
- fe[k] = Me[k] = ne, fe[R] = n[ke[R]], Me[R] = O;
52019
+ var ce = [], Me = [];
52020
+ ce[k] = Me[k] = ne, ce[R] = n[ke[R]], Me[R] = O;
52021
52021
  var Ne = {
52022
- x1: fe[0],
52023
- y1: fe[1],
52022
+ x1: ce[0],
52023
+ y1: ce[1],
52024
52024
  x2: Me[0],
52025
52025
  y2: Me[1]
52026
52026
  };
52027
52027
  return Ip(Ne, Ne, {
52028
52028
  lineWidth: 1
52029
- }), fe[0] = Ne.x1, fe[1] = Ne.y1, fe[k];
52029
+ }), ce[0] = Ne.x1, ce[1] = Ne.y1, ce[k];
52030
52030
  }
52031
52031
  M = z(M), L = z(L);
52032
52032
  for (var V = [], G = [], H = !0, $ = n[ke[R]], J = 0; ; J++) {
@@ -52961,7 +52961,7 @@ function WL(r, e) {
52961
52961
  });
52962
52962
  }
52963
52963
  function ooe() {
52964
- const [r, e] = ce(
52964
+ const [r, e] = fe(
52965
52965
  () => typeof document > "u" || document.fonts === void 0
52966
52966
  );
52967
52967
  return be(() => {
@@ -53458,7 +53458,7 @@ function Ooe(r, {
53458
53458
  const Le = Pe.data.map((Ie) => vf(Ie));
53459
53459
  Le.some((Ie) => Ie !== void 0) && te.set(Pe.name, Le);
53460
53460
  }
53461
- const ne = g ?? p, fe = Bn(
53461
+ const ne = g ?? p, ce = Bn(
53462
53462
  g,
53463
53463
  p
53464
53464
  ), Me = zz({
@@ -53528,7 +53528,7 @@ function Ooe(r, {
53528
53528
  return aoe(
53529
53529
  _,
53530
53530
  Le.dataIndex,
53531
- fe,
53531
+ ce,
53532
53532
  T
53533
53533
  );
53534
53534
  const ut = Le.dataIndex ?? 0, xt = Ie.endsWith(b_), wt = xt ? Ie.slice(0, -b_.length) : Ie, qt = xt ? t.find((Di) => Di.name === wt)?.data[ut] : void 0;
@@ -53543,7 +53543,7 @@ function Ooe(r, {
53543
53543
  marker: Kr,
53544
53544
  title: wt,
53545
53545
  subtitle: String(Le.name ?? ""),
53546
- value: fe(Gt),
53546
+ value: ce(Gt),
53547
53547
  rows: [
53548
53548
  Gw && sg !== 0 && {
53549
53549
  // Same sign on both sides, so the ratio is positive even
@@ -53552,11 +53552,11 @@ function Ooe(r, {
53552
53552
  label: D.dataChart.tooltip.ofTotal
53553
53553
  },
53554
53554
  Gw && {
53555
- value: fe(sg),
53555
+ value: ce(sg),
53556
53556
  label: D.dataChart.tooltip.total
53557
53557
  },
53558
53558
  Lr !== void 0 && {
53559
- value: fe(Lr),
53559
+ value: ce(Lr),
53560
53560
  label: D.dataChart.tooltip.target
53561
53561
  },
53562
53562
  o && Lr !== void 0 && Lr !== 0 && {
@@ -53626,7 +53626,7 @@ function Ooe(r, {
53626
53626
  ]);
53627
53627
  }
53628
53628
  const Boe = (r) => {
53629
- const e = se(null), { width: t, height: n } = Er(e), i = us(t), [a, o] = ce(null), s = Ooe(e, r, i, a), l = Za(e, s);
53629
+ const e = se(null), { width: t, height: n } = Er(e), i = us(t), [a, o] = fe(null), s = Ooe(e, r, i, a), l = Za(e, s);
53630
53630
  ja(l, r.onPointClick);
53631
53631
  const u = yn(e);
53632
53632
  pp(l, e, u), bu(l, r.onLegendSelectionChange), Xae(
@@ -55949,7 +55949,7 @@ const rV = jse, nV = Kse, ele = Qse, iV = Jse, aV = (r) => Object.fromEntries(
55949
55949
  disabled: n,
55950
55950
  onSeek: i
55951
55951
  }) => {
55952
- const a = Ve(), [o, s] = ce(null), l = e > 0 ? e : 0, u = o ?? r, c = Math.min(Math.max(u, 0), l), f = l > 0 ? c / l * 100 : 0, d = l > 0 ? Math.min(t / l * 100, 100) : 0, h = n || l === 0, v = se(null), [p, g] = ce(0);
55952
+ const a = Ve(), [o, s] = fe(null), l = e > 0 ? e : 0, u = o ?? r, c = Math.min(Math.max(u, 0), l), f = l > 0 ? c / l * 100 : 0, d = l > 0 ? Math.min(t / l * 100, 100) : 0, h = n || l === 0, v = se(null), [p, g] = fe(0);
55953
55953
  be(() => {
55954
55954
  const _ = v.current;
55955
55955
  if (!_)
@@ -56042,7 +56042,7 @@ function sV({
56042
56042
  onChange: t,
56043
56043
  kind: n
56044
56044
  }) {
56045
- const [i, a] = ce(!1), o = e.find((u) => u.locale === r), s = o ? t0(o) : r, l = (u) => {
56045
+ const [i, a] = fe(!1), o = e.find((u) => u.locale === r), s = o ? t0(o) : r, l = (u) => {
56046
56046
  const c = Array.from(
56047
56047
  u.currentTarget.querySelectorAll(
56048
56048
  '[role="menuitemradio"]'
@@ -56164,7 +56164,7 @@ const nle = mn({
56164
56164
  );
56165
56165
  };
56166
56166
  function cV(r, e) {
56167
- const t = me(() => iI(r), [r]), [n, i] = ce(
56167
+ const t = me(() => iI(r), [r]), [n, i] = fe(
56168
56168
  () => Fh(t, e)
56169
56169
  ), a = t.some((s) => s.locale === n) ? n : Fh(t, e), o = r0(r, a) ?? "";
56170
56170
  return { languages: t, activeLocale: a, resolvedSrc: o, setLocale: i };
@@ -56191,7 +56191,7 @@ const dV = (r) => {
56191
56191
  onTimeUpdate: u,
56192
56192
  onEnded: c,
56193
56193
  onError: f
56194
- } = r, d = typeof e == "function" ? e : void 0, h = typeof e == "function" ? void 0 : e, v = se(null), [p, g] = ce(h), m = se(null), [y, b] = ce(null), _ = se(!1), w = se(!1), S = se(!1), C = de(async () => {
56194
+ } = r, d = typeof e == "function" ? e : void 0, h = typeof e == "function" ? void 0 : e, v = se(null), [p, g] = fe(h), m = se(null), [y, b] = fe(null), _ = se(!1), w = se(!1), S = se(!1), C = de(async () => {
56195
56195
  if (!(!d || _.current)) {
56196
56196
  _.current = !0;
56197
56197
  try {
@@ -56548,7 +56548,7 @@ const gf = st(vV), qL = (r) => ae(
56548
56548
  return t.join(`
56549
56549
  `);
56550
56550
  }, fle = (r, e, t) => {
56551
- const [n, i] = ce();
56551
+ const [n, i] = fe();
56552
56552
  return be(() => {
56553
56553
  if (!t) {
56554
56554
  i(void 0);
@@ -56625,7 +56625,7 @@ const gf = st(vV), qL = (r) => ae(
56625
56625
  }, D = !d && !!(v && v.length > 0), A = me(
56626
56626
  () => iI(d?.summary, d?.transcription),
56627
56627
  [d?.summary, d?.transcription]
56628
- ), [M, L] = ce(
56628
+ ), [M, L] = fe(
56629
56629
  () => Fh(A, h)
56630
56630
  ), E = A.some((Ie) => Ie.locale === M) ? M : Fh(A, h), I = r0(d?.summary, E), P = r0(
56631
56631
  d?.transcription,
@@ -56691,13 +56691,13 @@ const gf = st(vV), qL = (r) => ae(
56691
56691
  Z,
56692
56692
  b.audioPlayer.summary,
56693
56693
  b.audioPlayer.transcription
56694
- ]), j = V ? "available" : "missing", U = Y.length > 0, te = Y.length === 1 ? Y[0] : void 0, ne = (Ie) => te?.value === "transcription" ? Ie ? b.audioPlayer.hideTranscription : b.audioPlayer.viewTranscription : te?.value === "summary" ? Ie ? b.audioPlayer.hideSummary : b.audioPlayer.viewSummary : Ie ? b.audioPlayer.hideDetail : b.audioPlayer.viewDetail, [fe = !1, Me] = Tf({
56694
+ ]), j = V ? "available" : "missing", U = Y.length > 0, te = Y.length === 1 ? Y[0] : void 0, ne = (Ie) => te?.value === "transcription" ? Ie ? b.audioPlayer.hideTranscription : b.audioPlayer.viewTranscription : te?.value === "summary" ? Ie ? b.audioPlayer.hideSummary : b.audioPlayer.viewSummary : Ie ? b.audioPlayer.hideDetail : b.audioPlayer.viewDetail, [ce = !1, Me] = Tf({
56695
56695
  prop: p,
56696
56696
  defaultProp: g,
56697
56697
  onChange: m
56698
56698
  });
56699
56699
  be(() => {
56700
- if (!fe || J < 0 || pe.current)
56700
+ if (!ce || J < 0 || pe.current)
56701
56701
  return;
56702
56702
  const Ie = q.current, ut = re.current[J];
56703
56703
  if (!Ie || !ut)
@@ -56707,8 +56707,8 @@ const gf = st(vV), qL = (r) => ae(
56707
56707
  top: Ie.scrollTop + (qt < 0 ? qt : Gt),
56708
56708
  behavior: C ? "auto" : "smooth"
56709
56709
  });
56710
- }, [J, fe, C]);
56711
- const [Ne, Be] = ce(Y[0]?.value), Pe = Y.some((Ie) => Ie.value === Ne) ? Ne : Y[0]?.value, Le = Y.find((Ie) => Ie.value === Pe)?.content;
56710
+ }, [J, ce, C]);
56711
+ const [Ne, Be] = fe(Y[0]?.value), Pe = Y.some((Ie) => Ie.value === Ne) ? Ne : Y[0]?.value, Le = Y.find((Ie) => Ie.value === Pe)?.content;
56712
56712
  return /* @__PURE__ */ B(
56713
56713
  "div",
56714
56714
  {
@@ -56753,9 +56753,9 @@ const gf = st(vV), qL = (r) => ae(
56753
56753
  {
56754
56754
  variant: "outline",
56755
56755
  size: "sm",
56756
- label: ne(fe),
56757
- onClick: () => Me(!fe),
56758
- "aria-expanded": fe
56756
+ label: ne(ce),
56757
+ onClick: () => Me(!ce),
56758
+ "aria-expanded": ce
56759
56759
  }
56760
56760
  ) : null,
56761
56761
  w.playbackRates.length > 0 || _.languages.length > 1 || i ? /* @__PURE__ */ x(
@@ -56800,10 +56800,10 @@ const gf = st(vV), qL = (r) => ae(
56800
56800
  "aria-label": te ? te.label : b.audioPlayer.details,
56801
56801
  initial: !1,
56802
56802
  animate: {
56803
- height: fe ? "auto" : 0,
56804
- marginTop: fe ? 0 : "-0.625rem",
56805
- opacity: fe ? 1 : 0,
56806
- visibility: fe ? "visible" : "hidden"
56803
+ height: ce ? "auto" : 0,
56804
+ marginTop: ce ? 0 : "-0.625rem",
56805
+ opacity: ce ? 1 : 0,
56806
+ visibility: ce ? "visible" : "hidden"
56807
56807
  },
56808
56808
  transition: {
56809
56809
  duration: C ? 0 : 0.15,
@@ -57006,7 +57006,7 @@ const Bde = st(
57006
57006
  "critical",
57007
57007
  "positive"
57008
57008
  ], T_ = ({ count: r, list: e }) => {
57009
- const [t, n] = ce(!1), i = /* @__PURE__ */ x(Bh, { label: `+${r}` });
57009
+ const [t, n] = fe(!1), i = /* @__PURE__ */ x(Bh, { label: `+${r}` });
57010
57010
  return e?.length ? /* @__PURE__ */ B(yf, { open: t, onOpenChange: n, children: [
57011
57011
  /* @__PURE__ */ x(bf, { asChild: !0, children: /* @__PURE__ */ x("button", { className: Ci("inline-flex flex-shrink-0 items-center"), children: i }) }),
57012
57012
  /* @__PURE__ */ x(
@@ -57113,7 +57113,7 @@ const Vde = st(
57113
57113
  container: m,
57114
57114
  onWidthChange: y
57115
57115
  }) => {
57116
- const [b, _] = ce(t);
57116
+ const [b, _] = fe(t);
57117
57117
  be(() => {
57118
57118
  _(t);
57119
57119
  }, [t]);
@@ -57190,7 +57190,7 @@ function _V({
57190
57190
  applyButtonLabel: s,
57191
57191
  dataTestId: l
57192
57192
  }) {
57193
- const u = Ve(), c = Object.keys(r)[0] ?? null, [f, d] = ce(c), [h, v] = ce(e);
57193
+ const u = Ve(), c = Object.keys(r)[0] ?? null, [f, d] = fe(c), [h, v] = fe(e);
57194
57194
  be(() => {
57195
57195
  v(e);
57196
57196
  }, [e]), be(() => {
@@ -57279,7 +57279,7 @@ const $de = _V, yle = ({
57279
57279
  ), ble = 200, _le = async (r) => Promise.resolve(
57280
57280
  typeof r.value == "function" ? await r.value() : r.value
57281
57281
  ), xle = ({ items: r }) => {
57282
- const [e, t] = ce({}), [n, i] = ce(r), a = se(r), o = se(/* @__PURE__ */ new Map());
57282
+ const [e, t] = fe({}), [n, i] = fe(r), a = se(r), o = se(/* @__PURE__ */ new Map());
57283
57283
  be(() => {
57284
57284
  const d = new Set(r.map((v) => v.id)), h = a.current;
57285
57285
  a.current = r;
@@ -57413,7 +57413,7 @@ const $de = _V, yle = ({
57413
57413
  Qa.subscribe,
57414
57414
  Qa.getSnapshot,
57415
57415
  Qa.getServerSnapshot
57416
- ), t = Ve(), [n, i] = ce(null);
57416
+ ), t = Ve(), [n, i] = fe(null);
57417
57417
  be(() => {
57418
57418
  const s = Qa.acquireRenderer();
57419
57419
  return i(s.id), s.release;
@@ -57439,7 +57439,7 @@ const $de = _V, yle = ({
57439
57439
  Cs.subscribe,
57440
57440
  Cs.getSnapshot,
57441
57441
  Cs.getServerSnapshot
57442
- ), [t, n] = ce(null);
57442
+ ), [t, n] = fe(null);
57443
57443
  be(() => {
57444
57444
  const o = Cs.acquireRenderer();
57445
57445
  return n(o.id), o.release;
@@ -57454,7 +57454,7 @@ const $de = _V, yle = ({
57454
57454
  r
57455
57455
  ] });
57456
57456
  }, Tle = ({ items: r }) => {
57457
- const [e, t] = ce(r), n = se(r), i = se(/* @__PURE__ */ new Map());
57457
+ const [e, t] = fe(r), n = se(r), i = se(/* @__PURE__ */ new Map());
57458
57458
  be(() => {
57459
57459
  const o = new Set(r.map((l) => l.id)), s = n.current;
57460
57460
  n.current = r;
@@ -57488,17 +57488,173 @@ const $de = _V, yle = ({
57488
57488
  }, []);
57489
57489
  const a = me(() => new Set(r.map((o) => o.id)), [r]);
57490
57490
  return /* @__PURE__ */ x(et, { children: e.map((o) => /* @__PURE__ */ x(tu, { children: o.render({ isOpen: a.has(o.id) }) }, o.id)) });
57491
- }, xV = Wa(null);
57492
- function Dle() {
57491
+ };
57492
+ function Dle(r) {
57493
+ const t = Kl(r).shape, n = [];
57494
+ for (const [i, a] of Object.entries(t)) {
57495
+ const o = a, s = xf(o);
57496
+ if (!s)
57497
+ continue;
57498
+ const l = TF(o, s), u = QN(o, l), c = {
57499
+ name: i,
57500
+ type: l,
57501
+ label: s.label,
57502
+ required: u
57503
+ };
57504
+ if (s.placeholder && (c.placeholder = s.placeholder), s.helpText && (c.helpText = s.helpText), s.section && (c.section = s.section), s.customFieldName && (c.customFieldName = s.customFieldName), l === "select") {
57505
+ if ("source" in s && s.source)
57506
+ c.optionsSource = "dynamic";
57507
+ else if ("options" in s && s.options) {
57508
+ const f = [];
57509
+ for (const d of s.options)
57510
+ "label" in d && "value" in d && f.push({ label: d.label, value: d.value });
57511
+ c.options = f;
57512
+ }
57513
+ }
57514
+ n.push(c);
57515
+ }
57516
+ return n;
57517
+ }
57518
+ function Ale(r) {
57519
+ const e = {};
57520
+ let t;
57521
+ for (const n of r.issues) {
57522
+ if (n.path.length === 0) {
57523
+ t === void 0 && (t = n.message);
57524
+ continue;
57525
+ }
57526
+ const i = n.path.join(".");
57527
+ i in e || (e[i] = n.message);
57528
+ }
57529
+ return { errors: e, rootError: t };
57530
+ }
57531
+ function Mle(r) {
57532
+ const { schema: e, defaultValues: t, errorMap: n, onSubmit: i } = r, a = async (f) => {
57533
+ const d = { ...t, ...f }, h = F5(e, d), v = {};
57534
+ for (const [b, _] of Object.entries(d))
57535
+ v[b] = _ === null ? void 0 : _;
57536
+ const p = n ? { errorMap: n } : void 0, g = await h.safeParseAsync(v, p);
57537
+ if (g.success)
57538
+ return { valid: !0, errors: {} };
57539
+ const { errors: m, rootError: y } = Ale(g.error);
57540
+ return {
57541
+ valid: !1,
57542
+ errors: m,
57543
+ ...y !== void 0 && { rootError: y }
57544
+ };
57545
+ };
57546
+ return {
57547
+ validate: a,
57548
+ validateField: async (f, d) => {
57549
+ const v = (await a(d)).errors[f];
57550
+ return {
57551
+ valid: v === void 0,
57552
+ errors: v !== void 0 ? { [f]: v } : {}
57553
+ };
57554
+ },
57555
+ describeFields: () => Dle(e),
57556
+ getDefaultValues: () => t,
57557
+ getVisibleFields: (f) => {
57558
+ const d = { ...t, ...f }, h = Kl(e), v = [];
57559
+ for (const [p, g] of Object.entries(h.shape)) {
57560
+ const m = xf(g);
57561
+ if (!m?.renderIf) {
57562
+ v.push(p);
57563
+ continue;
57564
+ }
57565
+ V5(m.renderIf, d) && v.push(p);
57566
+ }
57567
+ return v;
57568
+ },
57569
+ submit: async (f) => {
57570
+ if (!i)
57571
+ throw new Error(
57572
+ "createF0FormTester: cannot call submit() without an onSubmit handler. Pass onSubmit in the options, or use createF0FormDefinitionTester which reads it from the definition."
57573
+ );
57574
+ const d = await a(f);
57575
+ if (!d.valid)
57576
+ return { success: !1, errors: d.errors };
57577
+ const h = { ...t, ...f };
57578
+ return i(h);
57579
+ }
57580
+ };
57581
+ }
57582
+ function Ude(r, e) {
57583
+ return Mle({
57584
+ schema: r.schema,
57585
+ defaultValues: r.defaultValues,
57586
+ errorMap: e?.errorMap,
57587
+ // Adapt the definition's onSubmit ({ data }) signature to the tester's (data) signature
57588
+ onSubmit: (t) => r.onSubmit({ data: t })
57589
+ });
57590
+ }
57591
+ function yr({
57592
+ field: r,
57593
+ value: e,
57594
+ onChange: t,
57595
+ onBlur: n,
57596
+ error: i,
57597
+ errorMessage: a,
57598
+ status: o,
57599
+ loading: s,
57600
+ required: l,
57601
+ disabled: u,
57602
+ hideLabel: c,
57603
+ initialFiles: f
57604
+ }) {
57605
+ const d = bl(), h = l ?? (r.validation ? QN(r.validation) : !1), v = !c && r.type !== "checkbox" && r.type !== "custom", p = {
57606
+ value: e,
57607
+ onChange: t,
57608
+ onBlur: n ?? (() => {
57609
+ }),
57610
+ name: r.id,
57611
+ ref: () => {
57612
+ }
57613
+ }, g = {
57614
+ error: i || o?.type === "error" ? {
57615
+ type: "custom",
57616
+ message: a ?? o?.message
57617
+ } : void 0,
57618
+ isValidating: !!s
57619
+ }, m = i ? { type: "error", message: a } : o, y = u !== void 0 ? { ...r, disabled: u } : r, b = r.type === "file" ? f : void 0;
57620
+ return /* @__PURE__ */ B("div", { className: "space-y-2", id: d, children: [
57621
+ v ? /* @__PURE__ */ B(
57622
+ "label",
57623
+ {
57624
+ htmlFor: r.id,
57625
+ className: "text-base font-medium leading-normal text-f1-foreground-secondary",
57626
+ children: [
57627
+ r.label,
57628
+ h ? /* @__PURE__ */ x("span", { className: "ml-0.5 text-f1-foreground-critical", children: "*" }) : null
57629
+ ]
57630
+ }
57631
+ ) : null,
57632
+ G5({
57633
+ field: y,
57634
+ formField: p,
57635
+ fieldState: g,
57636
+ isSubmitting: !1,
57637
+ isRequired: h,
57638
+ values: {},
57639
+ initialFiles: b,
57640
+ fieldStatus: m
57641
+ }),
57642
+ r.helpText ? /* @__PURE__ */ x("p", { className: "text-base text-f1-foreground-secondary", children: r.helpText }) : null,
57643
+ /* @__PURE__ */ x(EN, { status: m })
57644
+ ] });
57645
+ }
57646
+ yr.displayName = "F0FormField";
57647
+ const xV = Wa(null);
57648
+ function Ele() {
57493
57649
  const r = $a(xV);
57494
57650
  if (!r)
57495
57651
  throw new Error("useF0Wizard must be used within a F0Wizard");
57496
57652
  return r;
57497
57653
  }
57498
- function Ale({ children: r, ...e }) {
57654
+ function Lle({ children: r, ...e }) {
57499
57655
  return /* @__PURE__ */ x(xV.Provider, { value: e, children: r });
57500
57656
  }
57501
- const Mle = mn({
57657
+ const Nle = mn({
57502
57658
  base: "flex-1 text-base font-medium leading-5 tracking-[-0.005em]",
57503
57659
  variants: {
57504
57660
  state: {
@@ -57508,12 +57664,12 @@ const Mle = mn({
57508
57664
  }
57509
57665
  }
57510
57666
  });
57511
- function Ele(r, e, t) {
57667
+ function Ile(r, e, t) {
57512
57668
  return r === e ? "active" : t ? "completed" : "upcoming";
57513
57669
  }
57514
- function Lle({ state: r, index: e }) {
57670
+ function kle({ state: r, index: e }) {
57515
57671
  return r === "completed" ? /* @__PURE__ */ x("span", { className: "flex h-5 w-5 min-w-5 shrink-0 items-center justify-center rounded-xs bg-f1-background-secondary text-f1-foreground-secondary", children: /* @__PURE__ */ x($r, { className: "h-3 w-3" }) }) : /* @__PURE__ */ x(
57516
- TF,
57672
+ DF,
57517
57673
  {
57518
57674
  value: e + 1,
57519
57675
  type: r === "active" ? "selected" : "default",
@@ -57521,10 +57677,10 @@ function Lle({ state: r, index: e }) {
57521
57677
  }
57522
57678
  );
57523
57679
  }
57524
- function Nle() {
57525
- const { steps: r, currentStep: e, goToStep: t, allowStepSkipping: n } = Dle();
57680
+ function Ple() {
57681
+ const { steps: r, currentStep: e, goToStep: t, allowStepSkipping: n } = Ele();
57526
57682
  return /* @__PURE__ */ x("nav", { "aria-label": "Wizard steps", className: "flex flex-col gap-1.5 p-1", children: r.map((i, a) => {
57527
- const o = a < e || i.isCompleted?.() === !0, s = Ele(a, e, o), l = r[e]?.hasErrors?.() === !0, u = a > e && r.slice(e, a).some((h) => h.hasErrors?.() === !0);
57683
+ const o = a < e || i.isCompleted?.() === !0, s = Ile(a, e, o), l = r[e]?.hasErrors?.() === !0, u = a > e && r.slice(e, a).some((h) => h.hasErrors?.() === !0);
57528
57684
  let c = a !== e && !l && !u && r.slice(0, a).every((h) => h.isCompleted?.() !== !1);
57529
57685
  return c && !n && a > e + 1 && (c = !1), /* @__PURE__ */ B(
57530
57686
  "button",
@@ -57546,15 +57702,15 @@ function Nle() {
57546
57702
  !c && a !== e && "cursor-default opacity-70"
57547
57703
  ),
57548
57704
  children: [
57549
- /* @__PURE__ */ x(Lle, { state: s, index: a }),
57550
- /* @__PURE__ */ x("span", { className: Mle({ state: s }), children: i.title })
57705
+ /* @__PURE__ */ x(kle, { state: s, index: a }),
57706
+ /* @__PURE__ */ x("span", { className: Nle({ state: s }), children: i.title })
57551
57707
  ]
57552
57708
  },
57553
57709
  a
57554
57710
  );
57555
57711
  }) });
57556
57712
  }
57557
- function Ile({
57713
+ function Rle({
57558
57714
  steps: r,
57559
57715
  defaultStepIndex: e = 0,
57560
57716
  onSubmit: t,
@@ -57563,7 +57719,7 @@ function Ile({
57563
57719
  autoCloseOnLastStepSubmit: a = !1,
57564
57720
  onClose: o
57565
57721
  }) {
57566
- const [s, l] = ce(e), [u, c] = ce(!1), f = se(r);
57722
+ const [s, l] = fe(e), [u, c] = fe(!1), f = se(r);
57567
57723
  f.current = r;
57568
57724
  const d = de(
57569
57725
  (m) => {
@@ -57616,12 +57772,12 @@ function Ile({
57616
57772
  goPrevious: g
57617
57773
  };
57618
57774
  }
57619
- const kle = () => {
57775
+ const Ole = () => {
57620
57776
  }, Aw = ({
57621
57777
  steps: r,
57622
57778
  children: e,
57623
57779
  isOpen: t,
57624
- onClose: n = kle,
57780
+ onClose: n = Ole,
57625
57781
  title: i,
57626
57782
  size: a = "xl",
57627
57783
  defaultStepIndex: o,
@@ -57643,7 +57799,7 @@ const kle = () => {
57643
57799
  (A) => A.isCompleted?.() !== !0
57644
57800
  );
57645
57801
  return D === -1 ? r.length - 1 : D;
57646
- }, [o, v, r]), g = Ile({
57802
+ }, [o, v, r]), g = Rle({
57647
57803
  steps: r,
57648
57804
  defaultStepIndex: p,
57649
57805
  onSubmit: c,
@@ -57672,7 +57828,7 @@ const kle = () => {
57672
57828
  [b, S, g]
57673
57829
  );
57674
57830
  return /* @__PURE__ */ x(
57675
- V5,
57831
+ H5,
57676
57832
  {
57677
57833
  isOpen: t,
57678
57834
  onClose: n,
@@ -57683,7 +57839,7 @@ const kle = () => {
57683
57839
  secondaryAction: T,
57684
57840
  disableContentPadding: !0,
57685
57841
  children: /* @__PURE__ */ x(
57686
- Ale,
57842
+ Lle,
57687
57843
  {
57688
57844
  currentStep: g.currentStep,
57689
57845
  totalSteps: r.length,
@@ -57694,7 +57850,7 @@ const kle = () => {
57694
57850
  steps: r,
57695
57851
  allowStepSkipping: d,
57696
57852
  children: /* @__PURE__ */ B("div", { className: "flex h-[58vh] flex-1 flex-row", children: [
57697
- /* @__PURE__ */ x("div", { className: "w-1/3 shrink-0 overflow-y-auto border-x-0 border-b-0 border-r border-t-0 border-dashed border-f1-border-secondary p-2", children: /* @__PURE__ */ x(Nle, {}) }),
57853
+ /* @__PURE__ */ x("div", { className: "w-1/3 shrink-0 overflow-y-auto border-x-0 border-b-0 border-r border-t-0 border-dashed border-f1-border-secondary p-2", children: /* @__PURE__ */ x(Ple, {}) }),
57698
57854
  /* @__PURE__ */ x("div", { className: "flex-1 overflow-y-auto px-8", children: e({
57699
57855
  currentStep: g.currentStep,
57700
57856
  goToStep: g.goToStep
@@ -57710,7 +57866,7 @@ function wV(r) {
57710
57866
  const t = Kl(r).shape, n = Object.entries(t);
57711
57867
  return n.length === 0 ? !1 : n.every(([, i]) => xf(i)?.disabled === !0);
57712
57868
  }
57713
- function Ple(r, e) {
57869
+ function Ble(r, e) {
57714
57870
  if (e)
57715
57871
  return Object.keys(e);
57716
57872
  const n = Kl(r).shape, i = /* @__PURE__ */ new Set();
@@ -57726,7 +57882,7 @@ function Fy(r, e) {
57726
57882
  const o = xf(a);
57727
57883
  o?.section && e.includes(o.section) && (n[i] = a);
57728
57884
  }
57729
- return EN(n);
57885
+ return LN(n);
57730
57886
  }
57731
57887
  function SV(r, e, t) {
57732
57888
  const n = e ?? {};
@@ -57740,19 +57896,19 @@ function SV(r, e, t) {
57740
57896
  return l != null && l !== "";
57741
57897
  });
57742
57898
  }
57743
- const Rle = 3e3;
57899
+ const zle = 3e3;
57744
57900
  function CV() {
57745
- const { forms: r } = Ve(), [e, t] = ce("idle"), [n, i] = ce(), a = se(null);
57901
+ const { forms: r } = Ve(), [e, t] = fe("idle"), [n, i] = fe(), a = se(null);
57746
57902
  be(() => () => {
57747
57903
  a.current && clearTimeout(a.current);
57748
57904
  }, []);
57749
57905
  const o = de((u) => {
57750
57906
  a.current && (clearTimeout(a.current), a.current = null), i(u), t("success"), a.current = setTimeout(() => {
57751
57907
  t("idle"), i(void 0), a.current = null;
57752
- }, Rle);
57908
+ }, zle);
57753
57909
  }, []), s = e === "success" ? n ?? r.actionBar.saved : void 0, l = me(
57754
57910
  () => /* @__PURE__ */ x(
57755
- F5,
57911
+ W5,
57756
57912
  {
57757
57913
  isOpen: e === "success",
57758
57914
  variant: "light",
@@ -57794,7 +57950,7 @@ function yc(r, e, t) {
57794
57950
  const n = e[r];
57795
57951
  return n ? [n] : [];
57796
57952
  }
57797
- function Ole({
57953
+ function Vle({
57798
57954
  formDefinition: r,
57799
57955
  steps: e,
57800
57956
  isOpen: t,
@@ -57834,7 +57990,7 @@ function Ole({
57834
57990
  )) : D : void 0, [D, y]), M = se({}), L = se(s ?? 0), E = me(
57835
57991
  () => Object.fromEntries(T.map((U) => [U, null])),
57836
57992
  [T]
57837
- ), [I, P] = ce({}), k = se(I);
57993
+ ), [I, P] = fe({}), k = se(I);
57838
57994
  k.current = I;
57839
57995
  const R = de(
57840
57996
  (U) => U.every((te) => {
@@ -57846,8 +58002,8 @@ function Ole({
57846
58002
  (U) => async () => {
57847
58003
  const te = yc(U, T, A);
57848
58004
  for (const ne of te) {
57849
- const fe = E[ne];
57850
- fe && await fe.submit();
58005
+ const ce = E[ne];
58006
+ ce && await ce.submit();
57851
58007
  }
57852
58008
  },
57853
58009
  [T, A, E]
@@ -57866,11 +58022,11 @@ function Ole({
57866
58022
  return !1;
57867
58023
  const te = V[U];
57868
58024
  return te ? te.sectionIds.every((ne) => {
57869
- const fe = m[ne];
57870
- if (!fe)
58025
+ const ce = m[ne];
58026
+ if (!ce)
57871
58027
  return !1;
57872
58028
  const Me = b?.[ne] ?? M.current[ne];
57873
- return SV(fe, Me, te.isCompleted);
58029
+ return SV(ce, Me, te.isCompleted);
57874
58030
  }) : !1;
57875
58031
  },
57876
58032
  [v, V, m, b]
@@ -57966,16 +58122,16 @@ function Ole({
57966
58122
  );
57967
58123
  return /* @__PURE__ */ B(et, { children: [
57968
58124
  /* @__PURE__ */ x("div", { className: "flex flex-col gap-6 pb-5", children: te.map((ne) => {
57969
- const fe = m[ne];
57970
- if (!fe)
58125
+ const ce = m[ne];
58126
+ if (!ce)
57971
58127
  return null;
57972
58128
  const Me = y?.[ne], Ne = M.current[ne], Be = b?.[ne];
57973
58129
  return /* @__PURE__ */ x(
57974
- Ble,
58130
+ Fle,
57975
58131
  {
57976
58132
  sectionId: ne,
57977
58133
  formName: g,
57978
- schema: fe,
58134
+ schema: ce,
57979
58135
  sectionConfig: Me,
57980
58136
  defaultValues: Ne ?? Be,
57981
58137
  onSubmit: pe(ne),
@@ -57997,7 +58153,7 @@ function Ole({
57997
58153
  }
57998
58154
  );
57999
58155
  }
58000
- function Ble({
58156
+ function Fle({
58001
58157
  sectionId: r,
58002
58158
  formName: e,
58003
58159
  schema: t,
@@ -58019,7 +58175,7 @@ function Ble({
58019
58175
  return h.current = u, be(() => {
58020
58176
  h.current(d.hasErrors);
58021
58177
  }, [d.hasErrors]), /* @__PURE__ */ x(
58022
- G5,
58178
+ $5,
58023
58179
  {
58024
58180
  formName: e,
58025
58181
  sectionId: r,
@@ -58038,7 +58194,7 @@ function Ble({
58038
58194
  }
58039
58195
  );
58040
58196
  }
58041
- function zle({
58197
+ function Gle({
58042
58198
  formDefinition: r,
58043
58199
  steps: e,
58044
58200
  isOpen: t,
@@ -58065,7 +58221,7 @@ function zle({
58065
58221
  submitConfig: w,
58066
58222
  errorTriggerMode: S = "on-blur"
58067
58223
  } = r, C = w?.label, T = me(() => Kl(m), [m]), D = me(
58068
- () => Ple(m, y),
58224
+ () => Ble(m, y),
58069
58225
  [m, y]
58070
58226
  ), A = de(
58071
58227
  (Z) => {
@@ -58209,175 +58365,19 @@ function zle({
58209
58365
  }
58210
58366
  function Mw(r) {
58211
58367
  return r.formDefinition._brand === "per-section" ? /* @__PURE__ */ x(
58212
- Ole,
58368
+ Vle,
58213
58369
  {
58214
58370
  ...r
58215
58371
  }
58216
58372
  ) : /* @__PURE__ */ x(
58217
- zle,
58373
+ Gle,
58218
58374
  {
58219
58375
  ...r
58220
58376
  }
58221
58377
  );
58222
58378
  }
58223
58379
  Mw.displayName = "F0WizardForm";
58224
- const Ude = st(Mw);
58225
- function Vle(r) {
58226
- const t = Kl(r).shape, n = [];
58227
- for (const [i, a] of Object.entries(t)) {
58228
- const o = a, s = xf(o);
58229
- if (!s)
58230
- continue;
58231
- const l = DF(o, s), u = QN(o, l), c = {
58232
- name: i,
58233
- type: l,
58234
- label: s.label,
58235
- required: u
58236
- };
58237
- if (s.placeholder && (c.placeholder = s.placeholder), s.helpText && (c.helpText = s.helpText), s.section && (c.section = s.section), s.customFieldName && (c.customFieldName = s.customFieldName), l === "select") {
58238
- if ("source" in s && s.source)
58239
- c.optionsSource = "dynamic";
58240
- else if ("options" in s && s.options) {
58241
- const f = [];
58242
- for (const d of s.options)
58243
- "label" in d && "value" in d && f.push({ label: d.label, value: d.value });
58244
- c.options = f;
58245
- }
58246
- }
58247
- n.push(c);
58248
- }
58249
- return n;
58250
- }
58251
- function Fle(r) {
58252
- const e = {};
58253
- let t;
58254
- for (const n of r.issues) {
58255
- if (n.path.length === 0) {
58256
- t === void 0 && (t = n.message);
58257
- continue;
58258
- }
58259
- const i = n.path.join(".");
58260
- i in e || (e[i] = n.message);
58261
- }
58262
- return { errors: e, rootError: t };
58263
- }
58264
- function Gle(r) {
58265
- const { schema: e, defaultValues: t, errorMap: n, onSubmit: i } = r, a = async (f) => {
58266
- const d = { ...t, ...f }, h = W5(e, d), v = {};
58267
- for (const [b, _] of Object.entries(d))
58268
- v[b] = _ === null ? void 0 : _;
58269
- const p = n ? { errorMap: n } : void 0, g = await h.safeParseAsync(v, p);
58270
- if (g.success)
58271
- return { valid: !0, errors: {} };
58272
- const { errors: m, rootError: y } = Fle(g.error);
58273
- return {
58274
- valid: !1,
58275
- errors: m,
58276
- ...y !== void 0 && { rootError: y }
58277
- };
58278
- };
58279
- return {
58280
- validate: a,
58281
- validateField: async (f, d) => {
58282
- const v = (await a(d)).errors[f];
58283
- return {
58284
- valid: v === void 0,
58285
- errors: v !== void 0 ? { [f]: v } : {}
58286
- };
58287
- },
58288
- describeFields: () => Vle(e),
58289
- getDefaultValues: () => t,
58290
- getVisibleFields: (f) => {
58291
- const d = { ...t, ...f }, h = Kl(e), v = [];
58292
- for (const [p, g] of Object.entries(h.shape)) {
58293
- const m = xf(g);
58294
- if (!m?.renderIf) {
58295
- v.push(p);
58296
- continue;
58297
- }
58298
- H5(m.renderIf, d) && v.push(p);
58299
- }
58300
- return v;
58301
- },
58302
- submit: async (f) => {
58303
- if (!i)
58304
- throw new Error(
58305
- "createF0FormTester: cannot call submit() without an onSubmit handler. Pass onSubmit in the options, or use createF0FormDefinitionTester which reads it from the definition."
58306
- );
58307
- const d = await a(f);
58308
- if (!d.valid)
58309
- return { success: !1, errors: d.errors };
58310
- const h = { ...t, ...f };
58311
- return i(h);
58312
- }
58313
- };
58314
- }
58315
- function Yde(r, e) {
58316
- return Gle({
58317
- schema: r.schema,
58318
- defaultValues: r.defaultValues,
58319
- errorMap: e?.errorMap,
58320
- // Adapt the definition's onSubmit ({ data }) signature to the tester's (data) signature
58321
- onSubmit: (t) => r.onSubmit({ data: t })
58322
- });
58323
- }
58324
- function yr({
58325
- field: r,
58326
- value: e,
58327
- onChange: t,
58328
- onBlur: n,
58329
- error: i,
58330
- errorMessage: a,
58331
- status: o,
58332
- loading: s,
58333
- required: l,
58334
- disabled: u,
58335
- hideLabel: c,
58336
- initialFiles: f
58337
- }) {
58338
- const d = bl(), h = l ?? (r.validation ? QN(r.validation) : !1), v = !c && r.type !== "checkbox" && r.type !== "custom", p = {
58339
- value: e,
58340
- onChange: t,
58341
- onBlur: n ?? (() => {
58342
- }),
58343
- name: r.id,
58344
- ref: () => {
58345
- }
58346
- }, g = {
58347
- error: i || o?.type === "error" ? {
58348
- type: "custom",
58349
- message: a ?? o?.message
58350
- } : void 0,
58351
- isValidating: !!s
58352
- }, m = i ? { type: "error", message: a } : o, y = u !== void 0 ? { ...r, disabled: u } : r, b = r.type === "file" ? f : void 0;
58353
- return /* @__PURE__ */ B("div", { className: "space-y-2", id: d, children: [
58354
- v ? /* @__PURE__ */ B(
58355
- "label",
58356
- {
58357
- htmlFor: r.id,
58358
- className: "text-base font-medium leading-normal text-f1-foreground-secondary",
58359
- children: [
58360
- r.label,
58361
- h ? /* @__PURE__ */ x("span", { className: "ml-0.5 text-f1-foreground-critical", children: "*" }) : null
58362
- ]
58363
- }
58364
- ) : null,
58365
- $5({
58366
- field: y,
58367
- formField: p,
58368
- fieldState: g,
58369
- isSubmitting: !1,
58370
- isRequired: h,
58371
- values: {},
58372
- initialFiles: b,
58373
- fieldStatus: m
58374
- }),
58375
- r.helpText ? /* @__PURE__ */ x("p", { className: "text-base text-f1-foreground-secondary", children: r.helpText }) : null,
58376
- /* @__PURE__ */ x(LN, { status: m })
58377
- ] });
58378
- }
58379
- yr.displayName = "F0FormField";
58380
- const Hle = Mw;
58380
+ const Yde = st(Mw), Hle = Mw;
58381
58381
  function Wle(r, e) {
58382
58382
  if (r._brand === "per-section") {
58383
58383
  const i = r;
@@ -58566,7 +58566,7 @@ const qde = st(DV), Xle = ({
58566
58566
  U !== void 0 && h?.(U);
58567
58567
  },
58568
58568
  [h]
58569
- ), [O, z] = ce(!1), [V, G] = ce(!1), [H, $] = ce(!1), J = se(!1), q = _ === "always" || _ === "onHover" && (O || V || H), re = o?.type ?? "default", pe = !i && t.trim().length > 0, Z = o ?? (a ? { type: "default", message: a } : void 0), Y = a || o?.message ? T : void 0;
58569
+ ), [O, z] = fe(!1), [V, G] = fe(!1), [H, $] = fe(!1), J = se(!1), q = _ === "always" || _ === "onHover" && (O || V || H), re = o?.type ?? "default", pe = !i && t.trim().length > 0, Z = o ?? (a ? { type: "default", message: a } : void 0), Y = a || o?.message ? T : void 0;
58570
58570
  return /* @__PURE__ */ B(
58571
58571
  "div",
58572
58572
  {
@@ -58646,7 +58646,7 @@ const qde = st(DV), Xle = ({
58646
58646
  }
58647
58647
  ),
58648
58648
  /* @__PURE__ */ x(Xle, { minLabel: m, maxLabel: y }),
58649
- /* @__PURE__ */ x("div", { id: T, role: "status", "aria-live": "polite", children: /* @__PURE__ */ x(LN, { status: Z }) })
58649
+ /* @__PURE__ */ x("div", { id: T, role: "status", "aria-live": "polite", children: /* @__PURE__ */ x(EN, { status: Z }) })
58650
58650
  ]
58651
58651
  }
58652
58652
  );
@@ -59132,7 +59132,7 @@ function IV({
59132
59132
  variant: c = "light",
59133
59133
  portalContainer: f
59134
59134
  }) {
59135
- const [d, h] = ce(!1), v = se(!1), p = se(null), { deferClose: g } = vue(p, () => h(!1)), m = (b) => {
59135
+ const [d, h] = fe(!1), v = se(!1), p = se(null), { deferClose: g } = vue(p, () => h(!1)), m = (b) => {
59136
59136
  !b && g() || (b && !d && (v.current = !0), h(b));
59137
59137
  }, y = de((b) => {
59138
59138
  p.current = b, !(!b || !v.current) && (v.current = !1, requestAnimationFrame(() => {
@@ -59583,7 +59583,7 @@ function Lt() {
59583
59583
  }
59584
59584
  const OV = Wa(void 0);
59585
59585
  function Nw({ children: r }) {
59586
- const [e, t] = ce(!1), [n, i] = ce(null);
59586
+ const [e, t] = fe(!1), [n, i] = fe(null);
59587
59587
  return /* @__PURE__ */ x(
59588
59588
  OV.Provider,
59589
59589
  {
@@ -59684,7 +59684,7 @@ const Iw = () => {
59684
59684
  onAddNewElement: t,
59685
59685
  isQuestionTypeAllowed: n,
59686
59686
  labels: i
59687
- } = Lt(), [a, o] = ce(!1), s = Iw(), { t: l } = Ve(), u = i?.addQuestion ?? l("surveyFormBuilder.actions.addQuestion"), c = (v, p) => {
59687
+ } = Lt(), [a, o] = fe(!1), s = Iw(), { t: l } = Ve(), u = i?.addQuestion ?? l("surveyFormBuilder.actions.addQuestion"), c = (v, p) => {
59688
59688
  t?.({ type: v, datasetKey: p });
59689
59689
  }, f = () => {
59690
59690
  t?.({ type: "section" });
@@ -60211,7 +60211,7 @@ const JL = ({
60211
60211
  isQuestionTypeAllowed: g,
60212
60212
  placeholders: m,
60213
60213
  labels: y
60214
- } = Lt(), b = p(r), _ = !!b?.locked || !!s, w = _ || !!l?.includes("title"), S = _ || !!l?.includes("description"), C = !_ && (w || S), T = !!b, [D, A] = ce(!1), [M, L] = ce(!1), { isDragging: E } = xu(), { t: I } = Ve(), P = m?.questionTitle ?? I("surveyFormBuilder.labels.titlePlaceholder"), k = y?.addQuestion ?? I("surveyFormBuilder.actions.addQuestion"), R = m?.questionDescription ?? I("surveyFormBuilder.labels.questionDescriptionPlaceholder"), O = (ne) => {
60214
+ } = Lt(), b = p(r), _ = !!b?.locked || !!s, w = _ || !!l?.includes("title"), S = _ || !!l?.includes("description"), C = !_ && (w || S), T = !!b, [D, A] = fe(!1), [M, L] = fe(!1), { isDragging: E } = xu(), { t: I } = Ve(), P = m?.questionTitle ?? I("surveyFormBuilder.labels.titlePlaceholder"), k = y?.addQuestion ?? I("surveyFormBuilder.actions.addQuestion"), R = m?.questionDescription ?? I("surveyFormBuilder.labels.questionDescriptionPlaceholder"), O = (ne) => {
60215
60215
  c?.({
60216
60216
  id: r,
60217
60217
  type: a,
@@ -60223,11 +60223,11 @@ const JL = ({
60223
60223
  type: a,
60224
60224
  description: ne.target.value
60225
60225
  });
60226
- }, V = (ne, fe) => {
60226
+ }, V = (ne, ce) => {
60227
60227
  f?.({
60228
60228
  type: ne,
60229
60229
  afterId: r,
60230
- datasetKey: fe
60230
+ datasetKey: ce
60231
60231
  });
60232
60232
  }, G = () => {
60233
60233
  f?.({
@@ -60438,13 +60438,13 @@ const JL = ({
60438
60438
  J.length > 0 ? /* @__PURE__ */ B(et, { children: [
60439
60439
  /* @__PURE__ */ x(Pa, {}),
60440
60440
  J.map((ne) => {
60441
- const fe = H.find(
60441
+ const ce = H.find(
60442
60442
  (Me) => Me.datasetKey === ne && Me.questionType === "dropdown-single"
60443
60443
  );
60444
60444
  return /* @__PURE__ */ B(vl, { children: [
60445
60445
  /* @__PURE__ */ x(pl, { className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover", children: /* @__PURE__ */ B("div", { className: "flex w-full flex-row items-center gap-2", children: [
60446
- fe ? /* @__PURE__ */ x(it, { icon: fe.icon, color: "default" }) : null,
60447
- /* @__PURE__ */ x("span", { className: "flex-1 text-base font-medium", children: fe?.label ?? ne })
60446
+ ce ? /* @__PURE__ */ x(it, { icon: ce.icon, color: "default" }) : null,
60447
+ /* @__PURE__ */ x("span", { className: "flex-1 text-base font-medium", children: ce?.label ?? ne })
60448
60448
  ] }) }),
60449
60449
  /* @__PURE__ */ x(gl, { children: /* @__PURE__ */ B(ml, { children: [
60450
60450
  g("dropdown-single") ? /* @__PURE__ */ x(
@@ -60745,7 +60745,7 @@ const JL = ({
60745
60745
  disabled: i,
60746
60746
  isEmojiMode: a = !1
60747
60747
  }) => {
60748
- const { value: o, label: s } = r, [l, u] = ce(!1);
60748
+ const { value: o, label: s } = r, [l, u] = fe(!1);
60749
60749
  be(() => {
60750
60750
  i && u(!1);
60751
60751
  }, [i]);
@@ -61352,7 +61352,7 @@ const Hue = ({
61352
61352
  deleteElement: c,
61353
61353
  onDuplicateElement: f,
61354
61354
  placeholders: d
61355
- } = Lt(), [h, v] = ce(!1), { t: p } = Ve(), g = d?.sectionTitle ?? p("surveyFormBuilder.labels.sectionTitlePlaceholder"), m = me(
61355
+ } = Lt(), [h, v] = fe(!1), { t: p } = Ve(), g = d?.sectionTitle ?? p("surveyFormBuilder.labels.sectionTitlePlaceholder"), m = me(
61356
61356
  () => ({
61357
61357
  id: r,
61358
61358
  title: e,
@@ -61915,9 +61915,9 @@ function Jue({
61915
61915
  flatItems: r,
61916
61916
  onChange: e
61917
61917
  }) {
61918
- const [t, n] = ce(
61918
+ const [t, n] = fe(
61919
61919
  null
61920
- ), [i, a] = ce(!1), o = de(
61920
+ ), [i, a] = fe(!1), o = de(
61921
61921
  (u) => {
61922
61922
  const c = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set();
61923
61923
  let d = null;
@@ -62387,7 +62387,7 @@ function lce() {
62387
62387
  );
62388
62388
  }
62389
62389
  function uce(r) {
62390
- const [e, t] = ce(0), [n, i] = ce(null), a = r.length, o = a > 0 ? e / a * 100 : 0, s = n ?? o, l = r[e], u = e === 0, c = e === a - 1, f = de(() => {
62390
+ const [e, t] = fe(0), [n, i] = fe(null), a = r.length, o = a > 0 ? e / a * 100 : 0, s = n ?? o, l = r[e], u = e === 0, c = e === a - 1, f = de(() => {
62391
62391
  i(null), t((p) => Math.min(p + 1, a - 1));
62392
62392
  }, [a]), d = de(() => {
62393
62393
  i(null), t((p) => Math.max(p - 1, 0));
@@ -62995,7 +62995,7 @@ function $V({
62995
62995
  }), f[g.id] = a?.[g.id] ?? oN(g, n);
62996
62996
  }
62997
62997
  return {
62998
- schema: EN(c),
62998
+ schema: LN(c),
62999
62999
  defaultValues: f,
63000
63000
  flatQuestions: h,
63001
63001
  sections: d
@@ -63043,7 +63043,7 @@ function bce({
63043
63043
  useUpload: g,
63044
63044
  datasets: m
63045
63045
  }) {
63046
- const { t: y } = Ve(), b = l === "fullscreen", _ = l === "fullscreen" ? "center" : l, [w, S] = ce(b), { formRef: C, submit: T, isSubmitting: D, hasErrors: A } = $_(), M = se({}), L = me(
63046
+ const { t: y } = Ve(), b = l === "fullscreen", _ = l === "fullscreen" ? "center" : l, [w, S] = fe(b), { formRef: C, submit: T, isSubmitting: D, hasErrors: A } = $_(), M = se({}), L = me(
63047
63047
  () => Pw(r),
63048
63048
  [r]
63049
63049
  ), E = uce(L), I = L.length > 0, P = {
@@ -63140,7 +63140,7 @@ function bce({
63140
63140
  onClick: j,
63141
63141
  disabled: D || A,
63142
63142
  loading: D
63143
- } : void 0, fe = I ? h || O ? void 0 : k && !E.isFirstStep ? {
63143
+ } : void 0, ce = I ? h || O ? void 0 : k && !E.isFirstStep ? {
63144
63144
  label: y("surveyAnsweringForm.actions.previous"),
63145
63145
  onClick: U,
63146
63146
  icon: O_
@@ -63155,7 +63155,7 @@ function bce({
63155
63155
  position: J,
63156
63156
  width: q,
63157
63157
  primaryAction: ne,
63158
- secondaryAction: fe,
63158
+ secondaryAction: ce,
63159
63159
  otherActions: te,
63160
63160
  disableContentPadding: Pe,
63161
63161
  children: /* @__PURE__ */ x(
@@ -63476,7 +63476,7 @@ function Dce({
63476
63476
  module: i,
63477
63477
  portalContainer: a
63478
63478
  }) {
63479
- const [o, s] = ce(r);
63479
+ const [o, s] = fe(r);
63480
63480
  return be(() => {
63481
63481
  s(r);
63482
63482
  }, [r]), /* @__PURE__ */ x(UF, { open: o, onOpenChange: (u) => {
@@ -63537,7 +63537,7 @@ function Ace({
63537
63537
  promoTag: g,
63538
63538
  showResponseDialog: m = !0
63539
63539
  }) {
63540
- const [y, b] = ce(r), [_, w] = ce(null), [S, C] = ce(!1), T = async () => {
63540
+ const [y, b] = fe(r), [_, w] = fe(null), [S, C] = fe(!1), T = async () => {
63541
63541
  if (c?.onClick) {
63542
63542
  C(!0);
63543
63543
  try {
@@ -63625,7 +63625,7 @@ function Mce({
63625
63625
  actions: s,
63626
63626
  showConfirmation: l = !0
63627
63627
  }) {
63628
- const [u, c] = ce(!1), f = () => {
63628
+ const [u, c] = fe(!1), f = () => {
63629
63629
  c(!0), n && n();
63630
63630
  };
63631
63631
  be(() => {
@@ -63846,7 +63846,7 @@ function Ice({
63846
63846
  onClick: p,
63847
63847
  hideLabel: g = !1
63848
63848
  }) {
63849
- const [m, y] = ce(!1), [b, _] = ce(null), [w, S] = ce(null), C = (L) => {
63849
+ const [m, y] = fe(!1), [b, _] = fe(null), [w, S] = fe(null), C = (L) => {
63850
63850
  e(L), p && p();
63851
63851
  }, T = async (L) => {
63852
63852
  if (L.type === "upsell") {
@@ -64014,7 +64014,7 @@ const lhe = st(Ice), uhe = ({
64014
64014
  onExpandedChange: i,
64015
64015
  allowMultiple: a = !1
64016
64016
  }) => {
64017
- const l = Ve()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", u = r ?? ZF, [c, f] = ce(
64017
+ const l = Ve()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", u = r ?? ZF, [c, f] = fe(
64018
64018
  () => new Set(t ? [t] : [])
64019
64019
  ), d = n !== void 0, h = de(
64020
64020
  (p) => d ? n === p : c.has(p),
@@ -64135,7 +64135,7 @@ const lhe = st(Ice), uhe = ({
64135
64135
  sendAsMessage: n = !1,
64136
64136
  onSendMessage: i
64137
64137
  }) => {
64138
- const [a, o] = ce(0), [s, l] = ce({}), u = Ve(), c = r.length, f = r[a], d = s[a] ?? [], h = de(
64138
+ const [a, o] = fe(0), [s, l] = fe({}), u = Ve(), c = r.length, f = r[a], d = s[a] ?? [], h = de(
64139
64139
  (b, _) => {
64140
64140
  l((w) => {
64141
64141
  const S = w[a] ?? [], C = _ ? [...S, b] : S.filter((T) => T !== b);
@@ -64724,7 +64724,7 @@ function sfe({
64724
64724
  ] : [], [t, i, a, s, l]);
64725
64725
  }
64726
64726
  function jV(r, e, t, n = "") {
64727
- const [i, a] = ce(void 0), [o, s] = ce(!0), [l, u] = ce(void 0), c = se(0), f = se(r);
64727
+ const [i, a] = fe(void 0), [o, s] = fe(!0), [l, u] = fe(void 0), c = se(0), f = se(r);
64728
64728
  f.current = r;
64729
64729
  const d = se(e);
64730
64730
  d.current = e;
@@ -64752,7 +64752,7 @@ function uN({
64752
64752
  onChange: t,
64753
64753
  onOpenChange: n
64754
64754
  }) {
64755
- const i = Ve(), a = bl(), o = se(null), s = se(void 0), l = se(n), [u, c] = ce(!1), [f, d] = ce(null), [h, v] = ce(e);
64755
+ const i = Ve(), a = bl(), o = se(null), s = se(void 0), l = se(n), [u, c] = fe(!1), [f, d] = fe(null), [h, v] = fe(e);
64756
64756
  be(() => {
64757
64757
  l.current = n;
64758
64758
  }, [n]), be(
@@ -64921,7 +64921,7 @@ function og({
64921
64921
  fitContent: b = !1,
64922
64922
  onFullscreenChange: _
64923
64923
  }) {
64924
- const [w, S] = ce(!1), [C, T] = ce(!1), D = se(!1), [A, M] = ce(!1), L = Ve(), {
64924
+ const [w, S] = fe(!1), [C, T] = fe(!1), D = se(!1), [A, M] = fe(!1), L = Ve(), {
64925
64925
  enabled: E,
64926
64926
  setPendingQuote: I,
64927
64927
  setOpen: P,
@@ -65213,7 +65213,7 @@ function lfe({
65213
65213
  onDismiss: t,
65214
65214
  returnFocusTo: n
65215
65215
  }) {
65216
- const i = Ve(), a = se(null), [o, s] = ce(
65216
+ const i = Ve(), a = se(null), [o, s] = fe(
65217
65217
  null
65218
65218
  );
65219
65219
  return Oc(() => {
@@ -65604,12 +65604,12 @@ function xfe({
65604
65604
  isFullscreen: u,
65605
65605
  onFullscreenChange: c
65606
65606
  }) {
65607
- const f = Ve(), [d, h] = ce("chart"), {
65607
+ const f = Ve(), [d, h] = fe("chart"), {
65608
65608
  enabled: v,
65609
65609
  setPendingQuote: p,
65610
65610
  setOpen: g,
65611
65611
  focusChatInput: m
65612
- } = UN(), y = !Rw(r.chart), b = y ? gfe : r.chart, [_, w] = ce(null), S = r.useDashboardFilters !== !1, C = JSON.stringify(n?.value ?? {}), { data: T, isLoading: D, error: A, retry: M } = jV(r.fetchData, e, S, C), L = se(null), E = me(
65612
+ } = UN(), y = !Rw(r.chart), b = y ? gfe : r.chart, [_, w] = fe(null), S = r.useDashboardFilters !== !1, C = JSON.stringify(n?.value ?? {}), { data: T, isLoading: D, error: A, retry: M } = jV(r.fetchData, e, S, C), L = se(null), E = me(
65613
65613
  () => T && !y ? yfe(r, T) : void 0,
65614
65614
  [r, T, y]
65615
65615
  );
@@ -65672,10 +65672,10 @@ function xfe({
65672
65672
  Pe ? h("table") : (h("chart"), (b.type !== Be.type || Be.type === "bar" && G !== Be.orientation) && l(r.id, Be.type, Be.orientation));
65673
65673
  }
65674
65674
  };
65675
- }) : void 0, Z = !!u && N_(r), [Y, j] = ce(0), U = !!c && N_(r), te = U && !u && Y > 0, ne = U && !!u, fe = T?.categories?.length ?? 0, Me = te ? f.dataChart.windowedCategories.replace(
65675
+ }) : void 0, Z = !!u && N_(r), [Y, j] = fe(0), U = !!c && N_(r), te = U && !u && Y > 0, ne = U && !!u, ce = T?.categories?.length ?? 0, Me = te ? f.dataChart.windowedCategories.replace(
65676
65676
  "{{count}}",
65677
- String(Math.max(0, fe - Y))
65678
- ).replace("{{total}}", String(fe)) : void 0, Ne = te ? {
65677
+ String(Math.max(0, ce - Y))
65678
+ ).replace("{{total}}", String(ce)) : void 0, Ne = te ? {
65679
65679
  label: f.actions.showAll,
65680
65680
  onClick: () => c?.(!0)
65681
65681
  } : ne ? {
@@ -65834,7 +65834,7 @@ function Cfe({
65834
65834
  columns: t,
65835
65835
  tableSettings: n
65836
65836
  }) {
65837
- const { t: i } = Ve(), [a, o] = ce(!1), s = de(
65837
+ const { t: i } = Ve(), [a, o] = fe(!1), s = de(
65838
65838
  async (c) => {
65839
65839
  if (!(!r || a)) {
65840
65840
  o(!0);
@@ -65888,7 +65888,7 @@ function Tfe({
65888
65888
  ), p = tI(v, [
65889
65889
  d,
65890
65890
  h
65891
- ]), [g, m] = ce(), y = me(() => (r.visualizations?.find(
65891
+ ]), [g, m] = fe(), y = me(() => (r.visualizations?.find(
65892
65892
  (S) => S?.type === "table"
65893
65893
  )?.options?.columns ?? []).filter(
65894
65894
  (S) => typeof S?.id == "string" && typeof S?.label == "string"
@@ -65982,7 +65982,7 @@ function Efe({
65982
65982
  trend: e,
65983
65983
  comparison: t
65984
65984
  }) {
65985
- const n = se(null), { height: i, width: a } = Er(n), [o, s] = ce(!1), l = i > 220;
65985
+ const n = se(null), { height: i, width: a } = Er(n), [o, s] = fe(!1), l = i > 220;
65986
65986
  return Oc(() => {
65987
65987
  const u = n.current;
65988
65988
  s(
@@ -66149,7 +66149,7 @@ function Rfe({
66149
66149
  onAskAiTarget: l,
66150
66150
  onFullscreenChange: u
66151
66151
  }) {
66152
- const c = se(null), [f, d] = ce(!1), [h, v] = ce(null);
66152
+ const c = se(null), [f, d] = fe(!1), [h, v] = fe(null);
66153
66153
  be(() => {
66154
66154
  u?.(!!h);
66155
66155
  }, [h, u]);
@@ -66158,7 +66158,7 @@ function Rfe({
66158
66158
  for (const re of r)
66159
66159
  q.set(re.id, re);
66160
66160
  return q;
66161
- }, [r]), [g, m] = ce(() => Xy(r)), y = se(gN(r));
66161
+ }, [r]), [g, m] = fe(() => Xy(r)), y = se(gN(r));
66162
66162
  be(() => {
66163
66163
  const q = gN(r);
66164
66164
  q !== y.current && (y.current = q, m(Xy(r)));
@@ -66219,7 +66219,7 @@ function Rfe({
66219
66219
  });
66220
66220
  },
66221
66221
  [_]
66222
- ), [C, T] = ce(null), [D, A] = ce(null), M = se(g);
66222
+ ), [C, T] = fe(null), [D, A] = fe(null), M = se(g);
66223
66223
  M.current = g;
66224
66224
  const L = se(p);
66225
66225
  L.current = p;
@@ -66267,14 +66267,14 @@ function Rfe({
66267
66267
  ) : [], Z = M.current;
66268
66268
  if (pe.length === 0 || pe.length !== Z.length)
66269
66269
  return null;
66270
- const Y = pe.map((Pe) => Pe.getBoundingClientRect()), j = zfe(Y, re), U = Y[j], te = Z[j], ne = E.current, fe = ne ? te.ids.includes(ne) : !1, Me = U.height / 3;
66270
+ const Y = pe.map((Pe) => Pe.getBoundingClientRect()), j = zfe(Y, re), U = Y[j], te = Z[j], ne = E.current, ce = ne ? te.ids.includes(ne) : !1, Me = U.height / 3;
66271
66271
  if (re < U.top + Me)
66272
66272
  return { type: "new-row", afterRowIdx: j - 1 };
66273
66273
  if (re > U.bottom - Me)
66274
66274
  return { type: "new-row", afterRowIdx: j };
66275
- if (fe && te.ids.length === 1)
66275
+ if (ce && te.ids.length === 1)
66276
66276
  return null;
66277
- if (te.ids.length >= zw && !fe)
66277
+ if (te.ids.length >= zw && !ce)
66278
66278
  return { type: "new-row", afterRowIdx: j };
66279
66279
  const Ne = pe[j].querySelectorAll("[data-card-id]"), Be = Vfe(Ne, q, te.ids.length);
66280
66280
  return { type: "into-row", rowIdx: j, position: Be };
@@ -66288,9 +66288,9 @@ function Rfe({
66288
66288
  const pe = re.clientX, Z = re.clientY;
66289
66289
  let Y = !1;
66290
66290
  E.current = q, I.current = null, A(null);
66291
- const j = (fe) => {
66291
+ const j = (ce) => {
66292
66292
  if (!Y) {
66293
- if (Math.hypot(fe.clientX - pe, fe.clientY - Z) < Ife)
66293
+ if (Math.hypot(ce.clientX - pe, ce.clientY - Z) < Ife)
66294
66294
  return;
66295
66295
  Y = !0, T(q), k.current = Array.from(
66296
66296
  document.querySelectorAll("[data-ai-chat-dropzone]")
@@ -66303,17 +66303,17 @@ function Rfe({
66303
66303
  );
66304
66304
  }
66305
66305
  const Me = P.current;
66306
- Me && (Me.style.transform = `translate(${fe.clientX + 12}px, ${fe.clientY + 16}px)`);
66307
- const Ne = z(fe.clientX, fe.clientY);
66306
+ Me && (Me.style.transform = `translate(${ce.clientX + 12}px, ${ce.clientY + 16}px)`);
66307
+ const Ne = z(ce.clientX, ce.clientY);
66308
66308
  JSON.stringify(Ne) !== JSON.stringify(I.current) && (I.current = Ne, A(Ne));
66309
- }, U = (fe) => {
66309
+ }, U = (ce) => {
66310
66310
  document.removeEventListener("pointermove", j), document.removeEventListener("pointerup", te), document.removeEventListener("pointercancel", ne), R.current = null;
66311
66311
  const Me = E.current, Ne = I.current;
66312
- fe && Y && Me && Ne && O(Me, Ne), E.current = null, I.current = null, k.current = [], T(null), A(null), Y && window.dispatchEvent(new CustomEvent(l5));
66313
- }, te = (fe) => {
66312
+ ce && Y && Me && Ne && O(Me, Ne), E.current = null, I.current = null, k.current = [], T(null), A(null), Y && window.dispatchEvent(new CustomEvent(l5));
66313
+ }, te = (ce) => {
66314
66314
  Y && (k.current = Array.from(
66315
66315
  document.querySelectorAll("[data-ai-chat-dropzone]")
66316
- ), I.current = z(fe.clientX, fe.clientY)), U(!0);
66316
+ ), I.current = z(ce.clientX, ce.clientY)), U(!0);
66317
66317
  }, ne = () => U(!1);
66318
66318
  R.current = () => U(!1), document.addEventListener("pointermove", j), document.addEventListener("pointerup", te), document.addEventListener("pointercancel", ne);
66319
66319
  },
@@ -66328,7 +66328,7 @@ function Rfe({
66328
66328
  ), j = (te) => {
66329
66329
  const ne = Math.max(Y, pe + te.clientY - re);
66330
66330
  m(
66331
- (fe) => fe.map(
66331
+ (ce) => ce.map(
66332
66332
  (Me, Ne) => Ne === q ? { ...Me, height: ne } : Me
66333
66333
  )
66334
66334
  );
@@ -66423,14 +66423,14 @@ function Rfe({
66423
66423
  const U = p.get(Y);
66424
66424
  if (!U)
66425
66425
  return null;
66426
- const te = C === Y, ne = pe && D?.type === "into-row" && D.position === j, fe = pe && D?.type === "into-row" && D.position === q.ids.length && j === q.ids.length - 1;
66426
+ const te = C === Y, ne = pe && D?.type === "into-row" && D.position === j, ce = pe && D?.type === "into-row" && D.position === q.ids.length && j === q.ids.length - 1;
66427
66427
  return /* @__PURE__ */ x(
66428
66428
  Ofe,
66429
66429
  {
66430
66430
  id: Y,
66431
66431
  isDragging: te,
66432
66432
  showIndicatorBefore: !!ne,
66433
- showIndicatorAfter: !!fe,
66433
+ showIndicatorAfter: !!ce,
66434
66434
  draggable: $,
66435
66435
  onGripPointerDown: V,
66436
66436
  onContentHeightChange: w,
@@ -66918,7 +66918,7 @@ function jfe({
66918
66918
  filters: e,
66919
66919
  filename: t = "dashboard"
66920
66920
  }) {
66921
- const [n, i] = ce(!1), a = se(r);
66921
+ const [n, i] = fe(!1), a = se(r);
66922
66922
  a.current = r;
66923
66923
  const o = se(e);
66924
66924
  o.current = e;
@@ -66966,7 +66966,7 @@ const JV = ({
66966
66966
  P[k] = O.valueConverter?.(R.defaultValue, R, y) ?? R.defaultValue;
66967
66967
  }
66968
66968
  return P;
66969
- }, []), [S, C] = ce(
66969
+ }, []), [S, C] = fe(
66970
66970
  w
66971
66971
  ), { exportAsExcel: T, isExporting: D } = jfe({
66972
66972
  items: a,
@@ -66980,7 +66980,7 @@ const JV = ({
66980
66980
  }
66981
66981
  return f?.(T), () => f?.(void 0);
66982
66982
  }, [T, f, A]);
66983
- const M = a.length === 1, [L, E] = ce(!1), I = M || L;
66983
+ const M = a.length === 1, [L, E] = fe(!1), I = M || L;
66984
66984
  return /* @__PURE__ */ B(
66985
66985
  "div",
66986
66986
  {
@@ -67133,22 +67133,23 @@ const vhe = rr(
67133
67133
  actions: a,
67134
67134
  forcePauseTimer: o
67135
67135
  }, s) => {
67136
- const l = Ve(), [u, c] = ce(n || 0), f = `${n ?? ""}|${t}|${r ?? ""}|${e ?? ""}`, [d, h] = ce(f), [v, p] = ce(!1);
67137
- f !== d && (h(f), c(n || 0));
67138
- const { role: g, ariaLive: m, avatarType: y, progressBarColor: b } = me(() => {
67139
- const P = () => t === "error" || t === "warning" ? {
67136
+ const l = Ve(), u = `${n ?? ""}|${t}|${r ?? ""}|${e ?? ""}`, [c, f] = fe({
67137
+ sig: u,
67138
+ remaining: n || 0
67139
+ }), d = c.sig === u ? c.remaining : n || 0, [h, v] = fe(!1), { role: p, ariaLive: g, avatarType: m, progressBarColor: y } = me(() => {
67140
+ const I = () => t === "error" || t === "warning" ? {
67140
67141
  role: "alert",
67141
67142
  ariaLive: "assertive"
67142
67143
  } : {
67143
67144
  role: "status",
67144
67145
  ariaLive: "polite"
67145
- }, k = {
67146
+ }, P = {
67146
67147
  error: "critical",
67147
67148
  warning: "warning",
67148
67149
  success: "positive",
67149
67150
  loading: null,
67150
67151
  default: null
67151
- }, R = {
67152
+ }, k = {
67152
67153
  error: "bg-f1-icon-critical",
67153
67154
  warning: "bg-f1-icon-warning",
67154
67155
  success: "bg-f1-icon-positive",
@@ -67156,39 +67157,45 @@ const vhe = rr(
67156
67157
  default: "bg-f1-foreground-inverse-secondary"
67157
67158
  };
67158
67159
  return {
67159
- ...P(),
67160
- avatarType: k[t],
67161
- progressBarColor: R[t]
67160
+ ...I(),
67161
+ avatarType: P[t],
67162
+ progressBarColor: k[t]
67162
67163
  };
67163
- }, [t]), _ = de(() => {
67164
+ }, [t]), b = de(() => {
67164
67165
  i?.();
67165
67166
  }, [i]);
67166
67167
  be(() => {
67167
- if (!n || n <= 0 || v || o)
67168
+ if (!n || n <= 0 || h || o)
67168
67169
  return;
67169
- const P = setInterval(() => {
67170
- c((k) => Math.max(k - 16, 0));
67170
+ const I = setInterval(() => {
67171
+ f((P) => ({
67172
+ sig: u,
67173
+ remaining: Math.max(
67174
+ (P.sig === u ? P.remaining : n) - 16,
67175
+ 0
67176
+ )
67177
+ }));
67171
67178
  }, 16);
67172
- return () => clearInterval(P);
67173
- }, [n, v, o]), be(() => {
67174
- n && n > 0 && u <= 0 && _();
67175
- }, [u, n, _]);
67176
- const w = () => p(!0), S = () => p(!1), C = Ky(a), T = C.filter(
67177
- (P) => P.type === "button"
67178
- ), D = C.filter(
67179
- (P) => P.type === "link"
67180
- ), A = t === "loading", M = T.length > 0 || D.length > 0, L = n != null && n > 0, E = (P, k) => {
67181
- k && k(), P.keepOpen || _();
67182
- }, I = !A && n && n > 0 ? u / n * 100 : null;
67179
+ return () => clearInterval(I);
67180
+ }, [n, h, o, u]), be(() => {
67181
+ n && n > 0 && d <= 0 && b();
67182
+ }, [d, n, b]);
67183
+ const _ = () => v(!0), w = () => v(!1), S = Ky(a), C = S.filter(
67184
+ (I) => I.type === "button"
67185
+ ), T = S.filter(
67186
+ (I) => I.type === "link"
67187
+ ), D = t === "loading", A = C.length > 0 || T.length > 0, M = n != null && n > 0, L = (I, P) => {
67188
+ P && P(), I.keepOpen || b();
67189
+ }, E = !D && n && n > 0 ? d / n * 100 : null;
67183
67190
  return /* @__PURE__ */ B(
67184
67191
  "div",
67185
67192
  {
67186
67193
  ref: s,
67187
- role: g,
67188
- "aria-live": m,
67194
+ role: p,
67195
+ "aria-live": g,
67189
67196
  className: Kfe({ variant: t }),
67190
- onMouseEnter: w,
67191
- onMouseLeave: S,
67197
+ onMouseEnter: _,
67198
+ onMouseLeave: w,
67192
67199
  children: [
67193
67200
  /* @__PURE__ */ B(
67194
67201
  "div",
@@ -67200,19 +67207,19 @@ const vhe = rr(
67200
67207
  e ? "items-start" : "items-center"
67201
67208
  ),
67202
67209
  children: [
67203
- A ? (
67210
+ D ? (
67204
67211
  // aria-hidden: the Spinner has its own aria-live/aria-busy, which
67205
67212
  // would nest a second live region inside the toast's role="status".
67206
67213
  // The title already announces the state, so hide the spinner from AT.
67207
67214
  /* @__PURE__ */ x("div", { className: "flex-shrink-0", "aria-hidden": "true", children: /* @__PURE__ */ x(f5, { size: "small", className: "text-f1-foreground-inverse" }) })
67208
- ) : y && /* @__PURE__ */ x("div", { className: "flex-shrink-0", children: /* @__PURE__ */ x(AN, { type: y, size: "sm" }) }),
67215
+ ) : m && /* @__PURE__ */ x("div", { className: "flex-shrink-0", children: /* @__PURE__ */ x(AN, { type: m, size: "sm" }) }),
67209
67216
  /* @__PURE__ */ B("div", { className: "flex flex-1 flex-col gap-1", children: [
67210
67217
  r ? /* @__PURE__ */ x(
67211
67218
  "p",
67212
67219
  {
67213
67220
  className: Qfe({
67214
67221
  variant: t,
67215
- hasIcon: !!y || A
67222
+ hasIcon: !!m || D
67216
67223
  }),
67217
67224
  children: r
67218
67225
  }
@@ -67222,19 +67229,19 @@ const vhe = rr(
67222
67229
  /* @__PURE__ */ x(
67223
67230
  Jfe,
67224
67231
  {
67225
- linkActions: D,
67226
- buttonActions: T,
67227
- onActionClick: E
67232
+ linkActions: T,
67233
+ buttonActions: C,
67234
+ onActionClick: L
67228
67235
  }
67229
67236
  ),
67230
- i && !A && (!M || !L) ? /* @__PURE__ */ x("div", { className: "dark flex-shrink-0", children: /* @__PURE__ */ x(
67237
+ i && !D && (!A || !M) ? /* @__PURE__ */ x("div", { className: "dark flex-shrink-0", children: /* @__PURE__ */ x(
67231
67238
  at,
67232
67239
  {
67233
67240
  variant: "outline",
67234
67241
  icon: Ql,
67235
67242
  size: "sm",
67236
67243
  hideLabel: !0,
67237
- onClick: _,
67244
+ onClick: b,
67238
67245
  label: l.actions.close
67239
67246
  }
67240
67247
  ) }) : null
@@ -67244,9 +67251,9 @@ const vhe = rr(
67244
67251
  /* @__PURE__ */ x(
67245
67252
  ede,
67246
67253
  {
67247
- progress: I,
67248
- color: b,
67249
- paused: v
67254
+ progress: E,
67255
+ color: y,
67256
+ paused: h
67250
67257
  }
67251
67258
  )
67252
67259
  ]
@@ -67263,7 +67270,7 @@ const tde = {
67263
67270
  promotingIds: t,
67264
67271
  onHoverChange: n
67265
67272
  }) => {
67266
- const [i, a] = ce(!1), o = se(!1), s = se(/* @__PURE__ */ new Set());
67273
+ const [i, a] = fe(!1), o = se(!1), s = se(/* @__PURE__ */ new Set());
67267
67274
  for (const p of t)
67268
67275
  s.current.add(p);
67269
67276
  const l = new Set(r.map((p) => p.id));
@@ -67370,9 +67377,9 @@ const tde = {
67370
67377
  items: r,
67371
67378
  position: e = "bottom-center"
67372
67379
  }) => {
67373
- const t = eF(), [n, i] = ce({
67380
+ const t = eF(), [n, i] = fe({
67374
67381
  inset: 0
67375
- }), a = se(/* @__PURE__ */ new Set()), o = se(/* @__PURE__ */ new Set()), s = se(/* @__PURE__ */ new Set()), [l, u] = ce(!1), c = se(null), f = se(null), d = se(0), { stackedItems: h, activeItems: v } = me(() => {
67382
+ }), a = se(/* @__PURE__ */ new Set()), o = se(/* @__PURE__ */ new Set()), s = se(/* @__PURE__ */ new Set()), [l, u] = fe(!1), c = se(null), f = se(null), d = se(0), { stackedItems: h, activeItems: v } = me(() => {
67376
67383
  const S = r.length, C = Math.min(
67377
67384
  S,
67378
67385
  t ? ide : nde
@@ -67406,7 +67413,7 @@ const tde = {
67406
67413
  return () => clearTimeout(S);
67407
67414
  }
67408
67415
  }, [h, v]);
67409
- const y = r.length > 0, [b, _] = ce(!1), w = de((S) => {
67416
+ const y = r.length > 0, [b, _] = fe(!1), w = de((S) => {
67410
67417
  _(S);
67411
67418
  }, []);
67412
67419
  return ZN(() => {
@@ -67497,7 +67504,7 @@ const tde = {
67497
67504
  Ts.subscribe,
67498
67505
  Ts.getSnapshot,
67499
67506
  Ts.getServerSnapshot
67500
- ), [n, i] = ce(!1);
67507
+ ), [n, i] = fe(!1);
67501
67508
  be(() => {
67502
67509
  i(!0);
67503
67510
  }, []);
@@ -67510,7 +67517,7 @@ const tde = {
67510
67517
  const { id: v, release: p } = Ts.acquireRenderer();
67511
67518
  return a.current = v, p;
67512
67519
  }, []);
67513
- const s = o === a.current, l = eF(), [u, c] = ce(null), [f, d] = ce(0), h = se(null);
67520
+ const s = o === a.current, l = eF(), [u, c] = fe(null), [f, d] = fe(0), h = se(null);
67514
67521
  return be(() => {
67515
67522
  if (typeof document > "u")
67516
67523
  return;
@@ -67526,7 +67533,7 @@ const tde = {
67526
67533
  }, lde = Wa(
67527
67534
  null
67528
67535
  ), ude = ({ children: r, fullScreen: e = !0 }) => {
67529
- const t = se(null), [n, i] = ce(t.current);
67536
+ const t = se(null), [n, i] = fe(t.current);
67530
67537
  return ZN(() => {
67531
67538
  i(t.current);
67532
67539
  }, []), /* @__PURE__ */ x(lde.Provider, { value: { element: n }, children: /* @__PURE__ */ B(
@@ -67620,7 +67627,7 @@ export {
67620
67627
  whe as DropOverlay,
67621
67628
  She as EmojiImage,
67622
67629
  Bde as F0Accordion,
67623
- F5 as F0ActionBar,
67630
+ W5 as F0ActionBar,
67624
67631
  Che as F0ActionItem,
67625
67632
  The as F0AiChat,
67626
67633
  mge as F0AiChatCreditsButton,
@@ -67717,7 +67724,7 @@ export {
67717
67724
  BF as F0TextInput,
67718
67725
  Qde as F0TimelineRow,
67719
67726
  lge as F0VideoPlayer,
67720
- Ude as F0WizardForm,
67727
+ Yde as F0WizardForm,
67721
67728
  ppe as F1SearchBox,
67722
67729
  gpe as FILE_TYPES,
67723
67730
  eve as FileItem,
@@ -67804,21 +67811,21 @@ export {
67804
67811
  Bge as contentTypes,
67805
67812
  Ope as createAtlaskitDriver,
67806
67813
  gve as createDataSourceDefinition,
67807
- Yde as createF0FormDefinitionTester,
67808
- Gle as createF0FormTester,
67814
+ Ude as createF0FormDefinitionTester,
67815
+ Mle as createF0FormTester,
67809
67816
  FG as createPageLayoutBlock,
67810
67817
  GG as createPageLayoutBlockGroup,
67811
67818
  Fde as dataCollectionLocalStorageHandler,
67812
67819
  Gde as datepickerSizes,
67813
67820
  qge as defaultTranslations,
67814
67821
  mve as defineAvailableForm,
67815
- Vle as describeFormSchema,
67822
+ Dle as describeFormSchema,
67816
67823
  Bpe as dialog,
67817
67824
  zpe as dialogs,
67818
67825
  Vpe as drawers,
67819
67826
  yve as durationInputSizes,
67820
67827
  bve as durationUnits,
67821
- H5 as evaluateRenderIf,
67828
+ V5 as evaluateRenderIf,
67822
67829
  rr as experimental,
67823
67830
  _ve as f0FileItemSizes,
67824
67831
  Vr as f0FormField,
@@ -67838,7 +67845,7 @@ export {
67838
67845
  Gpe as getSchemaDefinition,
67839
67846
  Mve as granularityDefinitions,
67840
67847
  Eve as hasF0Config,
67841
- DF as inferFieldType,
67848
+ TF as inferFieldType,
67842
67849
  Kue as injectSectionEnds,
67843
67850
  Lve as isInfiniteScrollPagination,
67844
67851
  Nve as isPageBasedPagination,