@factorialco/f0-react 6.63.1 → 6.64.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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as m, jsxs as P, Fragment as Fe } from "react/jsx-runtime";
2
2
  import * as ze from "react";
3
3
  import ne, { useRef as B, useState as Q, useCallback as ie, useEffect as oe, useContext as xt, useMemo as J, createContext as Wt, forwardRef as it, useLayoutEffect as fn, memo as Mt, useReducer as f$, cloneElement as FA, PureComponent as Uc, useId as Vo, useImperativeHandle as ol, Fragment as Nf, createElement as ub, isValidElement as u$, useDebugValue as $A, version as O_, createRef as h$, useSyncExternalStore as D_ } from "react";
4
- import { eH as M_, eI as Iu, eJ as p$, cq as BA, eK as m$, eL as g$, eM as y$, eN as iv, eO as v$, eP as b$, eQ as w$, eR as x$, eS as k$, eT as _$, eU as S$, bX as Xe, eV as zA, eW as C$, bP as Vt, aj as Pu, ak as qc, a6 as E$, a7 as N$, cs as Qr, w as jt, r as fi, s as Gc, da as tk, e5 as nk, e6 as um, S as Re, eX as jA, e7 as ik, u as He, V as ot, aS as Ru, bS as Af, aZ as rk, dl as ok, cx as A$, c8 as HA, ct as T$, eY as O$, cV as VA, m as De, ax as Lu, eZ as D$, aF as M$, aG as I$, e_ as P$, c1 as WA, dJ as R$, e$ as UA, cR as qA, f0 as L$, f1 as F$, f2 as pa, f3 as Rt, f4 as wi, f5 as GA, f6 as $$, f7 as KA, f8 as B$, f9 as qn, fa as my, fb as dn, fc as YA, fd as gy, fe as sk, ff as ak, fg as lk, fh as Bn, fi as vi, fj as hb, fk as yy, fl as z$, fm as ii, fn as Ts, fo as mi, fp as sl, fq as ck, fr as vy, fs as Ip, ft as by, eb as dk, fu as j$, fv as Ph, fw as hm, fx as H$, fy as V$, fz as W$, fA as U$, fB as q$, fC as G$, fD as XA, fE as JA, fF as ZA, fG as QA, fH as eT, fI as K$, fJ as pm, fK as Y$, fL as X$, fM as Fu, fN as Ys, cB as Ro, fO as fk, fP as Ao, fQ as tT, cC as nT, fR as J$, fS as Z$, cz as Q$, fT as eB, cA as tB, dg as ri, fU as oi, fV as nB, fW as iB, fX as rB, fY as oB, fZ as sB, f_ as pb, f$ as aB, dc as iT, g0 as rT, e4 as ar, bW as Kt, en as lB, dn as ir, c3 as Kc, cM as za, _ as $u, $ as cB, g1 as oT, g2 as sT, bV as wy, c2 as Yc, e9 as aT, cb as lT, cc as uk, df as Bu, y as xy, g3 as cT, ca as dB, aq as Cr, g4 as fB, d$ as dT, d6 as uB, es as jn, g5 as fT, g6 as uT, g7 as mb, g8 as hB, g9 as I_, ga as zu, eA as hT, dt as pT, eu as ky, t as _y, v as hk, x as Sy, ey as pB, k as Fi, ag as P_, am as mB, az as gB, b2 as gb, gb as yB, gc as vB, et as mT, gd as rv, bo as gT, c0 as al, dh as zs, e2 as bB, ge as R_, d_ as pk, gf as wB, er as xB, cZ as kB, cX as _B, gg as yT, gh as SB, cr as CB, gi as EB, gj as vT, cE as bT, gk as NB, gl as AB, gm as TB, gn as L_, go as F_, gp as ov, gq as $_, gr as OB, gs as wT, ae as DB, gt as mk, gu as MB, dq as IB, ci as ju, z as xT, A as kT, B as _T, d4 as PB, gv as RB, gw as B_, d3 as mm, el as Tf, G as ST, H as CT, K as ET, L as NT, o as ll, bU as Lo, cl as LB, cn as FB, gx as $B, n as gk, gy as AT, gz as TT, gA as BB, gB as gm, gC as zB, gD as jB, gE as Ta, gF as HB, gG as z_, gH as VB, gI as WB, gJ as ym, gK as UB, gL as qB, gM as GB, gN as OT, gO as KB, gP as DT, gQ as YB, gR as Cy, gS as Xc, gT as XB, gU as yk, gV as rn, cp as Of, gW as Xn, cG as Hu, gX as JB, gY as Ey, gZ as ZB, X as ja, a5 as yb, dj as QB, dk as ez, c4 as MT, c5 as IT, c6 as PT, g_ as tz, cL as RT, dr as nz, bj as Ny, as as Wo, dY as LT, dZ as FT, ah as iz, au as rz, bK as $T, dE as oz, g$ as sz, h0 as az, h1 as vm, h2 as yo, ch as lz, bx as cz, h3 as dz, dM as fz, ar as bm, bA as BT, bv as uz, dT as hz, h4 as zT, dV as pz, ay as mz, h5 as gz, h6 as Ay, h7 as Ty, h8 as Oy, h9 as vb, c7 as Dy, ha as yz, hb as wm, hc as vz, hd as bz, dm as wz, he as jT, b4 as sv, hf as xz, b7 as kz, bc as _z, hg as j_, hh as Sz, hi as H_, hj as av, hk as HT, R as VT, bw as Cz, aP as Ez, i as vk, hl as Nz, hm as Az, dK as Tz, j as bk, eg as Oz, bh as Dz, a$ as V_, b3 as wk, bF as Mz, l as Iz, hn as Pz, ho as xk, a9 as Rz, at as Lz, by as Fz, hp as $z, q as Bz, e8 as W_, hq as zz, hr as jz, hs as Hz, ht as Vz, hu as WT, bJ as Wz, hv as Ae, hw as Vu, hx as Uz, hy as qz, hz as Gz, hA as Kz, hB as U_, hC as Yz, hD as xm, hE as UT, E as Xz, hF as Jz, hG as lv, hH as Rh, hI as Zz, hJ as Qz, hK as ej, hL as tj, hM as nj, a8 as ij, c as rj, bz as oj, J as cv, hN as Wu, hO as kk, hP as _k, hQ as Uu, hR as sj, bt as aj, eh as Sk, dO as lj, Z as cj, ck as dj, dR as fj, ab as uj, a_ as hj, bI as pj, bD as mj, aT as qT, aU as GT, aV as KT, bg as YT, ai as XT, a2 as JT, a0 as ZT, a3 as QT, a1 as eO, an as tO, bs as nO, c9 as iO, hS as rO, hT as gj, cg as yj, aL as vj, aJ as bj, aI as wj, aH as xj, aK as kj, aW as _j, bL as Sj, bR as Cj, bQ as Ej, bH as Nj, bb as Aj, bi as Tj, U as Oj, b_ as Dj, hU as Mj, cf as Ij, hV as Pj, hW as Rj, hX as Lj, hY as Fj, bZ as $j, hZ as Bj } from "./F0CanvasPanel-DeUaUB_R.js";
4
+ import { eH as M_, eI as Iu, eJ as p$, cq as BA, eK as m$, eL as g$, eM as y$, eN as iv, eO as v$, eP as b$, eQ as w$, eR as x$, eS as k$, eT as _$, eU as S$, bX as Xe, eV as zA, eW as C$, bP as Vt, aj as Pu, ak as qc, a6 as E$, a7 as N$, cs as Qr, w as jt, r as fi, s as Gc, da as tk, e5 as nk, e6 as um, S as Re, eX as jA, e7 as ik, u as He, V as ot, aS as Ru, bS as Af, aZ as rk, dl as ok, cx as A$, c8 as HA, ct as T$, eY as O$, cV as VA, m as De, ax as Lu, eZ as D$, aF as M$, aG as I$, e_ as P$, c1 as WA, dJ as R$, e$ as UA, cR as qA, f0 as L$, f1 as F$, f2 as pa, f3 as Rt, f4 as wi, f5 as GA, f6 as $$, f7 as KA, f8 as B$, f9 as qn, fa as my, fb as dn, fc as YA, fd as gy, fe as sk, ff as ak, fg as lk, fh as Bn, fi as vi, fj as hb, fk as yy, fl as z$, fm as ii, fn as Ts, fo as mi, fp as sl, fq as ck, fr as vy, fs as Ip, ft as by, eb as dk, fu as j$, fv as Ph, fw as hm, fx as H$, fy as V$, fz as W$, fA as U$, fB as q$, fC as G$, fD as XA, fE as JA, fF as ZA, fG as QA, fH as eT, fI as K$, fJ as pm, fK as Y$, fL as X$, fM as Fu, fN as Ys, cB as Ro, fO as fk, fP as Ao, fQ as tT, cC as nT, fR as J$, fS as Z$, cz as Q$, fT as eB, cA as tB, dg as ri, fU as oi, fV as nB, fW as iB, fX as rB, fY as oB, fZ as sB, f_ as pb, f$ as aB, dc as iT, g0 as rT, e4 as ar, bW as Kt, en as lB, dn as ir, c3 as Kc, cM as za, _ as $u, $ as cB, g1 as oT, g2 as sT, bV as wy, c2 as Yc, e9 as aT, cb as lT, cc as uk, df as Bu, y as xy, g3 as dB, g4 as cT, ca as fB, aq as Cr, d$ as dT, d6 as uB, es as jn, g5 as fT, g6 as uT, g7 as mb, g8 as hB, g9 as I_, ga as zu, eA as hT, dt as pT, eu as ky, t as _y, v as hk, x as Sy, ey as pB, k as Fi, ag as P_, am as mB, az as gB, b2 as gb, gb as yB, gc as vB, et as mT, gd as rv, bo as gT, c0 as al, dh as zs, e2 as bB, ge as R_, d_ as pk, gf as wB, er as xB, cZ as kB, cX as _B, gg as yT, gh as SB, cr as CB, gi as EB, gj as vT, cE as bT, gk as NB, gl as AB, gm as TB, gn as L_, go as F_, gp as ov, gq as $_, gr as OB, gs as wT, ae as DB, gt as mk, gu as MB, dq as IB, ci as ju, z as xT, A as kT, B as _T, d4 as PB, gv as RB, gw as B_, d3 as mm, el as Tf, G as ST, H as CT, K as ET, L as NT, o as ll, bU as Lo, cl as LB, cn as FB, gx as $B, n as gk, gy as AT, gz as TT, gA as BB, gB as gm, gC as zB, gD as jB, gE as Ta, gF as HB, gG as z_, gH as VB, gI as WB, gJ as ym, gK as UB, gL as qB, gM as GB, gN as OT, gO as KB, gP as DT, gQ as YB, gR as Cy, gS as Xc, gT as XB, gU as yk, gV as rn, cp as Of, gW as Xn, cG as Hu, gX as JB, gY as Ey, gZ as ZB, X as ja, a5 as yb, dj as QB, dk as ez, c4 as MT, c5 as IT, c6 as PT, g_ as tz, cL as RT, dr as nz, bj as Ny, as as Wo, dY as LT, dZ as FT, ah as iz, au as rz, bK as $T, dE as oz, g$ as sz, h0 as az, h1 as vm, h2 as yo, ch as lz, bx as cz, h3 as dz, dM as fz, ar as bm, bA as BT, bv as uz, dT as hz, h4 as zT, dV as pz, ay as mz, h5 as gz, h6 as Ay, h7 as Ty, h8 as Oy, h9 as vb, c7 as Dy, ha as yz, hb as wm, hc as vz, hd as bz, dm as wz, he as jT, b4 as sv, hf as xz, b7 as kz, bc as _z, hg as j_, hh as Sz, hi as H_, hj as av, hk as HT, R as VT, bw as Cz, aP as Ez, i as vk, hl as Nz, hm as Az, dK as Tz, j as bk, eg as Oz, bh as Dz, a$ as V_, b3 as wk, bF as Mz, l as Iz, hn as Pz, ho as xk, a9 as Rz, at as Lz, by as Fz, hp as $z, q as Bz, e8 as W_, hq as zz, hr as jz, hs as Hz, ht as Vz, hu as WT, bJ as Wz, hv as Ae, hw as Vu, hx as Uz, hy as qz, hz as Gz, hA as Kz, hB as U_, hC as Yz, hD as xm, hE as UT, E as Xz, hF as Jz, hG as lv, hH as Rh, hI as Zz, hJ as Qz, hK as ej, hL as tj, hM as nj, a8 as ij, c as rj, bz as oj, J as cv, hN as Wu, hO as kk, hP as _k, hQ as Uu, hR as sj, bt as aj, eh as Sk, dO as lj, Z as cj, ck as dj, dR as fj, ab as uj, a_ as hj, bI as pj, bD as mj, aT as qT, aU as GT, aV as KT, bg as YT, ai as XT, a2 as JT, a0 as ZT, a3 as QT, a1 as eO, an as tO, bs as nO, c9 as iO, hS as rO, hT as gj, cg as yj, aL as vj, aJ as bj, aI as wj, aH as xj, aK as kj, aW as _j, bL as Sj, bR as Cj, bQ as Ej, bH as Nj, bb as Aj, bi as Tj, U as Oj, b_ as Dj, hU as Mj, cf as Ij, hV as Pj, hW as Rj, hX as Lj, hY as Fj, bZ as $j, hZ as Bj } from "./F0CanvasPanel-Db99rzA7.js";
5
5
  import { d as G, u as zj, e as si, T as qu, a as Gu, b as Ku, f as pn, g as Ck, S as jj, c as My } from "./tooltip-DTpaXpXW.js";
6
6
  import { g as Yu } from "./_commonjsHelpers-ByX85dGu.js";
7
7
  import Ek, { unstable_batchedUpdates as Lh, createPortal as Nk, flushSync as Hj } from "react-dom";
@@ -11389,142 +11389,9 @@ const w9 = jt(
11389
11389
  "mood-neutral",
11390
11390
  "mood-positive",
11391
11391
  "mood-super-positive"
11392
- ], Uk = it(({ className: e, ...t }, n) => /* @__PURE__ */ m(
11393
- cT,
11394
- {
11395
- ref: n,
11396
- className: G("text-f1-foreground-secondary", e),
11397
- ...t
11398
- }
11399
- ));
11400
- Uk.displayName = cT.displayName;
11401
- const qk = ({
11402
- className: e,
11403
- ...t
11404
- }) => /* @__PURE__ */ m("div", { className: e, ...t });
11405
- qk.displayName = "DialogFooter";
11406
- const Gk = ({
11407
- className: e,
11408
- ...t
11409
- }) => /* @__PURE__ */ m("div", { className: e, ...t });
11410
- Gk.displayName = "DialogHeader";
11411
- const kv = [
11412
- {
11413
- id: "bottom",
11414
- path: "M11.9948 17.5244C14.2802 17.5244 16.5188 18.2872 18.2805 19.7631C16.5189 21.1914 14.2801 22 11.9948 22C9.61453 21.9999 7.42426 21.1436 5.71037 19.7631C7.47193 18.3348 9.70955 17.5245 11.9948 17.5244Z"
11415
- },
11416
- {
11417
- id: "left",
11418
- path: "M4.23721 5.71327C5.66526 7.47502 6.47496 9.71299 6.47503 11.9985C6.47502 14.2841 5.71292 16.5231 4.23721 18.2849C2.80903 16.5231 2 14.2841 2 11.9985C2.00007 9.61784 2.85682 7.42739 4.23721 5.71327Z"
11419
- },
11420
- {
11421
- id: "right",
11422
- path: "M19.7622 5.71327C21.1902 7.47502 21.9999 9.71299 22 11.9985C22 14.2841 21.2379 16.5231 19.7622 18.2849C18.334 16.5231 17.525 14.2841 17.525 11.9985C17.525 9.61784 18.3818 7.42739 19.7622 5.71327Z"
11423
- },
11424
- {
11425
- id: "top",
11426
- path: "M11.9948 2C14.2802 2 16.5188 2.76274 18.2805 4.2387C16.5189 5.66699 14.2801 6.47557 11.9948 6.47557C9.61453 6.4755 7.42426 5.61919 5.71037 4.2387C7.47193 2.81041 9.70955 2.00007 11.9948 2Z"
11427
- }
11428
- ], LK = (e, t) => {
11429
- const n = e.className?.includes("text-") && !e.className?.includes("text-current") || e.style?.color !== void 0, i = Vo();
11430
- return /* @__PURE__ */ P(
11431
- "svg",
11432
- {
11433
- viewBox: "0 0 24 24",
11434
- fill: "none",
11435
- xmlns: "http://www.w3.org/2000/svg",
11436
- ref: t,
11437
- ...e,
11438
- children: [
11439
- /* @__PURE__ */ m("defs", { children: kv.map((r) => /* @__PURE__ */ m("clipPath", { id: `${i}-${r.id}`, children: /* @__PURE__ */ m("path", { d: r.path }) }, r.id)) }),
11440
- n ? kv.map((r) => /* @__PURE__ */ m("path", { d: r.path, fill: "currentColor" }, r.id)) : kv.map((r) => /* @__PURE__ */ m(
11441
- "foreignObject",
11442
- {
11443
- x: "0",
11444
- y: "0",
11445
- width: "24",
11446
- height: "24",
11447
- clipPath: `url(#${i}-${r.id})`,
11448
- children: /* @__PURE__ */ m(
11449
- "div",
11450
- {
11451
- style: {
11452
- width: "100%",
11453
- height: "100%",
11454
- background: "conic-gradient(from 0deg at 50% 50%, #E55619 0%, #A1ADE5 33%, #E51943 66%, #E55619 100%)"
11455
- }
11456
- }
11457
- )
11458
- },
11459
- r.id
11460
- ))
11461
- ]
11462
- }
11463
- );
11464
- }, FK = it(LK);
11465
- function $K({
11466
- title: e,
11467
- description: t,
11468
- onClick: n,
11469
- onClose: i,
11470
- isVisible: r,
11471
- dismissable: o = !1,
11472
- trackVisibility: s,
11473
- type: a,
11474
- ...l
11475
- }) {
11476
- const [c, d] = Q(r);
11477
- oe(() => {
11478
- d(r), s && s(r);
11479
- }, [r, s]);
11480
- const f = () => {
11481
- d(!1), i && i();
11482
- }, u = () => a === "one-campaign" ? {
11483
- background: "linear-gradient(98.39deg, rgba(249, 115, 22, 0.49) 0%, rgba(229, 25, 67, 0.49) 20%, rgba(229, 25, 67, 0.49) 49.97%, rgba(229, 25, 67, 0.49) 80%, rgba(164, 165, 222, 0.49) 100%)",
11484
- borderRadius: "12px",
11485
- padding: "1px"
11486
- } : {}, h = () => a === "one-campaign" ? {
11487
- background: "#fef7f8",
11488
- borderRadius: "11px"
11489
- } : {}, p = () => a === "one-campaign" ? "flex h-auto w-auto cursor-pointer flex-row gap-2 p-3 text-f1-foreground shadow-md hover:bg-f1-background-secondary" : "flex h-auto w-auto cursor-pointer flex-row gap-2 rounded-md border-f1-border p-3 text-f1-foreground shadow-md hover:bg-f1-background-secondary";
11490
- return c && /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("div", { className: "p-2", children: /* @__PURE__ */ m("div", { style: u(), children: /* @__PURE__ */ P(
11491
- "div",
11492
- {
11493
- className: p(),
11494
- style: h(),
11495
- onClick: n,
11496
- children: [
11497
- /* @__PURE__ */ P(Fe, { children: [
11498
- a === "one-campaign" ? /* @__PURE__ */ m("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ m(ot, { icon: FK, size: "lg", className: "!h-8 !w-8" }) }) : /* @__PURE__ */ m("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ m(
11499
- dB,
11500
- {
11501
- module: l.module,
11502
- size: "md"
11503
- }
11504
- ) }),
11505
- /* @__PURE__ */ m("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ P("div", { children: [
11506
- /* @__PURE__ */ m("h3", { className: "text-lg font-medium", children: e }),
11507
- /* @__PURE__ */ m("p", { className: "text-f1-foreground-secondary", children: t })
11508
- ] }) })
11509
- ] }),
11510
- o && /* @__PURE__ */ m("div", { className: "h-6 w-6", children: /* @__PURE__ */ m(
11511
- De,
11512
- {
11513
- variant: "ghost",
11514
- icon: Cr,
11515
- size: "sm",
11516
- hideLabel: !0,
11517
- onClick: f,
11518
- label: "Close"
11519
- }
11520
- ) })
11521
- ]
11522
- }
11523
- ) }) }) });
11524
- }
11525
- const H5e = jt($K);
11526
- function BK(e) {
11527
- if (fB(e)) {
11392
+ ];
11393
+ function LK(e) {
11394
+ if (dB(e)) {
11528
11395
  let i = !1, r = null;
11529
11396
  return {
11530
11397
  promise: new Promise((s, a) => {
@@ -11567,8 +11434,8 @@ const Rb = (e) => {
11567
11434
  return `{${Object.keys(t).sort().map((n) => `${JSON.stringify(n)}:${Rb(t[n])}`).join(",")}}`;
11568
11435
  }
11569
11436
  return JSON.stringify(e) ?? "undefined";
11570
- }, zK = 50;
11571
- function V5e({
11437
+ }, FK = 50;
11438
+ function H5e({
11572
11439
  dataAdapter: e,
11573
11440
  id: t,
11574
11441
  filters: n,
@@ -11601,13 +11468,13 @@ function V5e({
11601
11468
  return;
11602
11469
  }
11603
11470
  y(!0);
11604
- const { promise: D, cancel: N } = BK(
11471
+ const { promise: D, cancel: N } = LK(
11605
11472
  T({ ..._.current, id: t })
11606
11473
  );
11607
11474
  return C.current = N, D.then(
11608
11475
  (M) => {
11609
11476
  if (k.current === u) {
11610
- if (E.current.set(u, M), E.current.size > zK) {
11477
+ if (E.current.set(u, M), E.current.size > FK) {
11611
11478
  const I = E.current.keys().next().value;
11612
11479
  I !== void 0 && E.current.delete(I);
11613
11480
  }
@@ -11634,7 +11501,7 @@ function V5e({
11634
11501
  error: A && v?.key === u ? v.error : null
11635
11502
  };
11636
11503
  }
11637
- function jK({
11504
+ function $K({
11638
11505
  records: e,
11639
11506
  activeItemId: t,
11640
11507
  idProvider: n
@@ -11658,8 +11525,8 @@ function jK({
11658
11525
  resolvedBy: "window"
11659
11526
  };
11660
11527
  }
11661
- const HK = (e, t) => "id" in e && (typeof e.id == "string" || typeof e.id == "number" || typeof e.id == "symbol") ? e.id : t ?? JSON.stringify(e);
11662
- function W5e(e) {
11528
+ const BK = (e, t) => "id" in e && (typeof e.id == "string" || typeof e.id == "number" || typeof e.id == "symbol") ? e.id : t ?? JSON.stringify(e);
11529
+ function V5e(e) {
11663
11530
  const {
11664
11531
  dataSource: t,
11665
11532
  data: n,
@@ -11672,7 +11539,7 @@ function W5e(e) {
11672
11539
  activeItemId: c,
11673
11540
  defaultActiveItemId: d,
11674
11541
  onActiveItemChange: f
11675
- } = e, u = J(() => a || (t.idProvider ? (X, ae) => t.idProvider(X, ae) : HK), [a, t.idProvider]), [h, p] = Ck({
11542
+ } = e, u = J(() => a || (t.idProvider ? (X, ae) => t.idProvider(X, ae) : BK), [a, t.idProvider]), [h, p] = Ck({
11676
11543
  prop: c,
11677
11544
  defaultProp: d ?? null,
11678
11545
  onChange: (X) => f?.(X ?? null)
@@ -11716,7 +11583,7 @@ function W5e(e) {
11716
11583
  !x || y.current === null || N();
11717
11584
  }, [x, N]);
11718
11585
  const { activeIndex: M, activeItem: I, previousItem: R, nextItem: F } = J(
11719
- () => jK({ records: E, activeItemId: g, idProvider: u }),
11586
+ () => $K({ records: E, activeItemId: g, idProvider: u }),
11720
11587
  [E, g, u]
11721
11588
  ), U = J(() => M === -1 || !i ? null : i.type === "pages" ? (i.currentPage - 1) * i.perPage + M : M, [M, i]), z = J(() => i ? i.type === "pages" ? i.currentPage < i.pagesCount : i.type === "infinite-scroll" ? i.hasMore : !1 : !1, [i]), L = J(() => i && i.type === "pages" ? i.currentPage > 1 : !1, [i]), $ = J(() => M === -1 ? !1 : M < E.length - 1 ? !0 : z, [M, E.length, z]), V = J(() => M === -1 ? !1 : M > 0 ? !0 : L, [M, L]), ee = ie(() => {
11722
11589
  if (!(y.current !== null || s) && M !== -1) {
@@ -11857,7 +11724,140 @@ function W5e(e) {
11857
11724
  previousItemUrl: Y
11858
11725
  };
11859
11726
  }
11860
- const U5e = dT, q5e = uB, VK = (e, t, n) => {
11727
+ const Uk = it(({ className: e, ...t }, n) => /* @__PURE__ */ m(
11728
+ cT,
11729
+ {
11730
+ ref: n,
11731
+ className: G("text-f1-foreground-secondary", e),
11732
+ ...t
11733
+ }
11734
+ ));
11735
+ Uk.displayName = cT.displayName;
11736
+ const qk = ({
11737
+ className: e,
11738
+ ...t
11739
+ }) => /* @__PURE__ */ m("div", { className: e, ...t });
11740
+ qk.displayName = "DialogFooter";
11741
+ const Gk = ({
11742
+ className: e,
11743
+ ...t
11744
+ }) => /* @__PURE__ */ m("div", { className: e, ...t });
11745
+ Gk.displayName = "DialogHeader";
11746
+ const kv = [
11747
+ {
11748
+ id: "bottom",
11749
+ path: "M11.9948 17.5244C14.2802 17.5244 16.5188 18.2872 18.2805 19.7631C16.5189 21.1914 14.2801 22 11.9948 22C9.61453 21.9999 7.42426 21.1436 5.71037 19.7631C7.47193 18.3348 9.70955 17.5245 11.9948 17.5244Z"
11750
+ },
11751
+ {
11752
+ id: "left",
11753
+ path: "M4.23721 5.71327C5.66526 7.47502 6.47496 9.71299 6.47503 11.9985C6.47502 14.2841 5.71292 16.5231 4.23721 18.2849C2.80903 16.5231 2 14.2841 2 11.9985C2.00007 9.61784 2.85682 7.42739 4.23721 5.71327Z"
11754
+ },
11755
+ {
11756
+ id: "right",
11757
+ path: "M19.7622 5.71327C21.1902 7.47502 21.9999 9.71299 22 11.9985C22 14.2841 21.2379 16.5231 19.7622 18.2849C18.334 16.5231 17.525 14.2841 17.525 11.9985C17.525 9.61784 18.3818 7.42739 19.7622 5.71327Z"
11758
+ },
11759
+ {
11760
+ id: "top",
11761
+ path: "M11.9948 2C14.2802 2 16.5188 2.76274 18.2805 4.2387C16.5189 5.66699 14.2801 6.47557 11.9948 6.47557C9.61453 6.4755 7.42426 5.61919 5.71037 4.2387C7.47193 2.81041 9.70955 2.00007 11.9948 2Z"
11762
+ }
11763
+ ], zK = (e, t) => {
11764
+ const n = e.className?.includes("text-") && !e.className?.includes("text-current") || e.style?.color !== void 0, i = Vo();
11765
+ return /* @__PURE__ */ P(
11766
+ "svg",
11767
+ {
11768
+ viewBox: "0 0 24 24",
11769
+ fill: "none",
11770
+ xmlns: "http://www.w3.org/2000/svg",
11771
+ ref: t,
11772
+ ...e,
11773
+ children: [
11774
+ /* @__PURE__ */ m("defs", { children: kv.map((r) => /* @__PURE__ */ m("clipPath", { id: `${i}-${r.id}`, children: /* @__PURE__ */ m("path", { d: r.path }) }, r.id)) }),
11775
+ n ? kv.map((r) => /* @__PURE__ */ m("path", { d: r.path, fill: "currentColor" }, r.id)) : kv.map((r) => /* @__PURE__ */ m(
11776
+ "foreignObject",
11777
+ {
11778
+ x: "0",
11779
+ y: "0",
11780
+ width: "24",
11781
+ height: "24",
11782
+ clipPath: `url(#${i}-${r.id})`,
11783
+ children: /* @__PURE__ */ m(
11784
+ "div",
11785
+ {
11786
+ style: {
11787
+ width: "100%",
11788
+ height: "100%",
11789
+ background: "conic-gradient(from 0deg at 50% 50%, #E55619 0%, #A1ADE5 33%, #E51943 66%, #E55619 100%)"
11790
+ }
11791
+ }
11792
+ )
11793
+ },
11794
+ r.id
11795
+ ))
11796
+ ]
11797
+ }
11798
+ );
11799
+ }, jK = it(zK);
11800
+ function HK({
11801
+ title: e,
11802
+ description: t,
11803
+ onClick: n,
11804
+ onClose: i,
11805
+ isVisible: r,
11806
+ dismissable: o = !1,
11807
+ trackVisibility: s,
11808
+ type: a,
11809
+ ...l
11810
+ }) {
11811
+ const [c, d] = Q(r);
11812
+ oe(() => {
11813
+ d(r), s && s(r);
11814
+ }, [r, s]);
11815
+ const f = () => {
11816
+ d(!1), i && i();
11817
+ }, u = () => a === "one-campaign" ? {
11818
+ background: "linear-gradient(98.39deg, rgba(249, 115, 22, 0.49) 0%, rgba(229, 25, 67, 0.49) 20%, rgba(229, 25, 67, 0.49) 49.97%, rgba(229, 25, 67, 0.49) 80%, rgba(164, 165, 222, 0.49) 100%)",
11819
+ borderRadius: "12px",
11820
+ padding: "1px"
11821
+ } : {}, h = () => a === "one-campaign" ? {
11822
+ background: "#fef7f8",
11823
+ borderRadius: "11px"
11824
+ } : {}, p = () => a === "one-campaign" ? "flex h-auto w-auto cursor-pointer flex-row gap-2 p-3 text-f1-foreground shadow-md hover:bg-f1-background-secondary" : "flex h-auto w-auto cursor-pointer flex-row gap-2 rounded-md border-f1-border p-3 text-f1-foreground shadow-md hover:bg-f1-background-secondary";
11825
+ return c && /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("div", { className: "p-2", children: /* @__PURE__ */ m("div", { style: u(), children: /* @__PURE__ */ P(
11826
+ "div",
11827
+ {
11828
+ className: p(),
11829
+ style: h(),
11830
+ onClick: n,
11831
+ children: [
11832
+ /* @__PURE__ */ P(Fe, { children: [
11833
+ a === "one-campaign" ? /* @__PURE__ */ m("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ m(ot, { icon: jK, size: "lg", className: "!h-8 !w-8" }) }) : /* @__PURE__ */ m("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ m(
11834
+ fB,
11835
+ {
11836
+ module: l.module,
11837
+ size: "md"
11838
+ }
11839
+ ) }),
11840
+ /* @__PURE__ */ m("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ P("div", { children: [
11841
+ /* @__PURE__ */ m("h3", { className: "text-lg font-medium", children: e }),
11842
+ /* @__PURE__ */ m("p", { className: "text-f1-foreground-secondary", children: t })
11843
+ ] }) })
11844
+ ] }),
11845
+ o && /* @__PURE__ */ m("div", { className: "h-6 w-6", children: /* @__PURE__ */ m(
11846
+ De,
11847
+ {
11848
+ variant: "ghost",
11849
+ icon: Cr,
11850
+ size: "sm",
11851
+ hideLabel: !0,
11852
+ onClick: f,
11853
+ label: "Close"
11854
+ }
11855
+ ) })
11856
+ ]
11857
+ }
11858
+ ) }) }) });
11859
+ }
11860
+ const W5e = jt(HK), U5e = dT, q5e = ["field", "inline"], G5e = uB, VK = (e, t, n) => {
11861
11861
  const i = jn[n];
11862
11862
  return i ? i.add(e, t) : { from: /* @__PURE__ */ new Date(), to: /* @__PURE__ */ new Date() };
11863
11863
  }, J4 = (e, t) => {
@@ -12278,7 +12278,7 @@ function XK({
12278
12278
  }
12279
12279
  );
12280
12280
  }
12281
- const G5e = {
12281
+ const K5e = {
12282
12282
  today: {
12283
12283
  label: "Today",
12284
12284
  granularity: "day",
@@ -13213,7 +13213,7 @@ const gY = jt(
13213
13213
  }
13214
13214
  );
13215
13215
  qy.displayName = "F0NumberInput";
13216
- const K5e = qy, O9 = it(
13216
+ const Y5e = qy, O9 = it(
13217
13217
  ({
13218
13218
  className: e,
13219
13219
  label: t,
@@ -13290,7 +13290,7 @@ const D9 = ar(
13290
13290
  type: "form"
13291
13291
  },
13292
13292
  O9
13293
- ), Y5e = D9, X5e = ju;
13293
+ ), X5e = D9, J5e = ju;
13294
13294
  var ah = (e) => e.type === "checkbox", _a = (e) => e instanceof Date, ni = (e) => e == null;
13295
13295
  const M9 = (e) => typeof e == "object";
13296
13296
  var yn = (e) => !ni(e) && !Array.isArray(e) && M9(e) && !_a(e), I9 = (e) => yn(e) && e.target ? ah(e.target) ? e.target.checked : e.target.value : e, vY = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, P9 = (e, t) => e.has(vY(t)), bY = (e) => {
@@ -21556,7 +21556,7 @@ const Vh = /* @__PURE__ */ new Set(), Xb = /* @__PURE__ */ new Set(), zv = () =>
21556
21556
  confirm: JS,
21557
21557
  /** Programmatically close a dialog by id (resolves its promise with undefined). */
21558
21558
  close: sM
21559
- }, J5e = {
21559
+ }, Z5e = {
21560
21560
  /** Open a drawer. Resolves with the value of the action the user picked. */
21561
21561
  open: (e) => AQ({ ...e, variant: "drawer" }),
21562
21562
  /** Programmatically close a drawer by id (resolves its promise with undefined). */
@@ -22851,7 +22851,7 @@ function aee(e, t) {
22851
22851
  return n === "auto" || n === void 0;
22852
22852
  }
22853
22853
  const lee = 30, cee = 10, v2 = 48, dee = 68, hM = 108, rC = (e) => Math.min(lee, Math.max(1, e));
22854
- function Z5e(e = v2) {
22854
+ function Q5e(e = v2) {
22855
22855
  return hM + cee * e;
22856
22856
  }
22857
22857
  function fee(e) {
@@ -37859,7 +37859,7 @@ const IP = "dc_", ti = {
37859
37859
  ti.sortings,
37860
37860
  Sde(t.sortings)
37861
37861
  ), t.visualization && e.set(ti.visualization, t.visualization), t.page && t.page > 1 && e.set(ti.page, String(t.page)), t.preset && e.set(ti.preset, t.preset);
37862
- }, Dde = (e) => !!e.search || !!e.sortings || !!e.visualization || e.page !== void 0 && e.page > 1 || !!e.preset || !!e.filters && Object.values(e.filters).some(Ode), Q5e = (e = {}) => {
37862
+ }, Dde = (e) => !!e.search || !!e.sortings || !!e.visualization || e.page !== void 0 && e.page > 1 || !!e.preset || !!e.filters && Object.values(e.filters).some(Ode), e6e = (e = {}) => {
37863
37863
  const t = new URLSearchParams();
37864
37864
  return BP(t, e), t;
37865
37865
  }, Mde = (e, t) => {
@@ -37869,7 +37869,7 @@ const IP = "dc_", ti = {
37869
37869
  if (typeof window > "u") return null;
37870
37870
  const i = Mde(window.location.search, e).toString(), r = i ? `${window.location.pathname}?${i}` : window.location.pathname, o = t?.history ?? "replace";
37871
37871
  return o === "push" ? window.history.pushState(null, "", r) : o === "replace" && window.history.replaceState(null, "", r), i;
37872
- }, e6e = (e, t) => {
37872
+ }, t6e = (e, t) => {
37873
37873
  try {
37874
37874
  localStorage.setItem(
37875
37875
  Pz(e),
@@ -38364,18 +38364,16 @@ const gw = "dc_shared_view", jde = (e) => {
38364
38364
  grouping: n,
38365
38365
  currentGrouping: i,
38366
38366
  onGroupingChange: h
38367
- },
38368
- "grouping"
38369
- ) }),
38367
+ }
38368
+ ) }, "grouping"),
38370
38369
  v && /* @__PURE__ */ m("div", { className: "p-3", children: /* @__PURE__ */ m(
38371
38370
  qde,
38372
38371
  {
38373
38372
  currentSortings: s,
38374
38373
  onChange: l,
38375
38374
  sortings: y
38376
- },
38377
- "sorting"
38378
- ) }),
38375
+ }
38376
+ ) }, "sorting"),
38379
38377
  b && /* @__PURE__ */ P("section", { className: "p-3 pb-0", children: [
38380
38378
  /* @__PURE__ */ m("h3", { className: "mb-2 text-sm font-medium text-f1-foreground-secondary", children: _ }),
38381
38379
  x
@@ -69695,7 +69693,7 @@ const X2e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, J2e = Xt
69695
69693
  }
69696
69694
  };
69697
69695
  }
69698
- }), i6e = [
69696
+ }), r6e = [
69699
69697
  "superNegative",
69700
69698
  "negative",
69701
69699
  "neutral",
@@ -71633,7 +71631,7 @@ const y3e = ({
71633
71631
  }, GL = fi(
71634
71632
  "F0RichTextEditor",
71635
71633
  Gc(z3e, j3e)
71636
- ), r6e = GL;
71634
+ ), o6e = GL;
71637
71635
  function H3e(e, t) {
71638
71636
  const n = e ?? [], i = t ?? [];
71639
71637
  return n.length === i.length && n.every((r, o) => r === i[o]);
@@ -72755,7 +72753,7 @@ function YL(e, t) {
72755
72753
  return s;
72756
72754
  }, [e, t]);
72757
72755
  }
72758
- function o6e(e, t) {
72756
+ function s6e(e, t) {
72759
72757
  const n = Cy(e), i = KL(n), r = [], o = {};
72760
72758
  for (const l of i) {
72761
72759
  const c = l.config.section;
@@ -81915,7 +81913,7 @@ const KCe = (e, t) => {
81915
81913
  ), i5e = fi(
81916
81914
  "F0NotesTextEditor",
81917
81915
  Gc(n5e, s$)
81918
- ), a6e = i5e, l6e = s$, a$ = it(
81916
+ ), l6e = i5e, c6e = s$, a$ = it(
81919
81917
  ({ header: e, actions: t, open: n, onClose: i }, r) => {
81920
81918
  const [o, s] = Q(!1), a = ie(() => {
81921
81919
  s(!0);
@@ -81966,12 +81964,12 @@ const KCe = (e, t) => {
81966
81964
  }
81967
81965
  );
81968
81966
  a$.displayName = "Dialog";
81969
- const c6e = jt(
81967
+ const d6e = jt(
81970
81968
  ar(
81971
81969
  { name: "Dialog", type: "info" },
81972
81970
  fi("Dialog", a$)
81973
81971
  )
81974
- ), d6e = ({
81972
+ ), f6e = ({
81975
81973
  avatar: e,
81976
81974
  title: t,
81977
81975
  description: n,
@@ -82190,7 +82188,7 @@ const s5e = (e) => {
82190
82188
  ))
82191
82189
  }
82192
82190
  );
82193
- }, f6e = jt(
82191
+ }, u6e = jt(
82194
82192
  fi(
82195
82193
  "F0ButtonToggleGroup",
82196
82194
  s5e
@@ -82283,7 +82281,7 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), db = () =>
82283
82281
  Mu.removeItem(e);
82284
82282
  }, u5e = () => {
82285
82283
  Mu.clear();
82286
- }, u6e = {
82284
+ }, h6e = {
82287
82285
  /**
82288
82286
  * Show a toast.
82289
82287
  * @param options The options for the toast
@@ -82534,7 +82532,7 @@ const Mp = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), fb = () =>
82534
82532
  }
82535
82533
  }
82536
82534
  ) : null;
82537
- }, h6e = ({
82535
+ }, p6e = ({
82538
82536
  children: e,
82539
82537
  portalTarget: t = "#f0-overlay-root"
82540
82538
  }) => {
@@ -82568,7 +82566,7 @@ export {
82568
82566
  _5e as C,
82569
82567
  y_e as D,
82570
82568
  Nbe as E,
82571
- f6e as F,
82569
+ u6e as F,
82572
82570
  dU as G,
82573
82571
  js as H,
82574
82572
  RV as I,
@@ -82578,7 +82576,7 @@ export {
82578
82576
  qH as M,
82579
82577
  $V as N,
82580
82578
  LQ as O,
82581
- H5e as P,
82579
+ W5e as P,
82582
82580
  iU as Q,
82583
82581
  nV as R,
82584
82582
  vO as S,
@@ -82586,12 +82584,12 @@ export {
82586
82584
  N5e as U,
82587
82585
  wK as V,
82588
82586
  E5e as W,
82589
- u6e as X,
82587
+ h6e as X,
82590
82588
  Wk as Y,
82591
82589
  Hk as Z,
82592
82590
  YH as _,
82593
82591
  $0e as a,
82594
- ul as a$,
82592
+ Uk as a$,
82595
82593
  z5e as a0,
82596
82594
  j5e as a1,
82597
82595
  TK as a2,
@@ -82602,33 +82600,33 @@ export {
82602
82600
  O5e as a7,
82603
82601
  D5e as a8,
82604
82602
  M5e as a9,
82605
- bde as aA,
82606
- yde as aB,
82607
- Qy as aC,
82608
- w2 as aD,
82609
- KQ as aE,
82610
- G5e as aF,
82611
- gee as aG,
82612
- c6e as aH,
82613
- h6e as aI,
82614
- s$ as aJ,
82615
- i5e as aK,
82616
- a6e as aL,
82603
+ xde as aA,
82604
+ bde as aB,
82605
+ yde as aC,
82606
+ Qy as aD,
82607
+ w2 as aE,
82608
+ KQ as aF,
82609
+ K5e as aG,
82610
+ gee as aH,
82611
+ d6e as aI,
82612
+ p6e as aJ,
82613
+ s$ as aK,
82614
+ i5e as aL,
82617
82615
  l6e as aM,
82618
- GL as aN,
82619
- r6e as aO,
82620
- Wi as aP,
82621
- UL as aQ,
82622
- hV as aR,
82623
- hU as aS,
82624
- zk as aT,
82625
- oY as aU,
82626
- iY as aV,
82627
- rY as aW,
82628
- fY as aX,
82629
- tY as aY,
82630
- NQ as aZ,
82631
- Uk as a_,
82616
+ c6e as aN,
82617
+ GL as aO,
82618
+ o6e as aP,
82619
+ Wi as aQ,
82620
+ UL as aR,
82621
+ hV as aS,
82622
+ hU as aT,
82623
+ zk as aU,
82624
+ oY as aV,
82625
+ iY as aW,
82626
+ rY as aX,
82627
+ fY as aY,
82628
+ tY as aZ,
82629
+ NQ as a_,
82632
82630
  I5e as aa,
82633
82631
  P5e as ab,
82634
82632
  R5e as ac,
@@ -82638,73 +82636,74 @@ export {
82638
82636
  w9 as ag,
82639
82637
  Fhe as ah,
82640
82638
  q5e as ai,
82641
- U5e as aj,
82642
- X5e as ak,
82643
- K5e as al,
82644
- qy as am,
82645
- Y5e as an,
82646
- D9 as ao,
82647
- d6e as ap,
82648
- CD as aq,
82649
- pD as ar,
82650
- af as as,
82651
- Td as at,
82652
- EQ as au,
82653
- sfe as av,
82654
- lee as aw,
82655
- cee as ax,
82656
- Z5e as ay,
82657
- xde as az,
82639
+ G5e as aj,
82640
+ U5e as ak,
82641
+ J5e as al,
82642
+ Y5e as am,
82643
+ qy as an,
82644
+ X5e as ao,
82645
+ D9 as ap,
82646
+ f6e as aq,
82647
+ CD as ar,
82648
+ pD as as,
82649
+ af as at,
82650
+ Td as au,
82651
+ EQ as av,
82652
+ sfe as aw,
82653
+ lee as ax,
82654
+ cee as ay,
82655
+ Q5e as az,
82658
82656
  Mbe as b,
82659
- uM as b0,
82660
- QL as b1,
82661
- o_e as b2,
82662
- ng as b3,
82663
- X2 as b4,
82664
- ad as b5,
82665
- mZ as b6,
82666
- qN as b7,
82667
- ufe as b8,
82668
- hfe as b9,
82669
- cD as bA,
82670
- AX as bB,
82671
- Lk as bC,
82672
- jv as bD,
82673
- J5e as bE,
82674
- IP as bF,
82675
- ti as bG,
82676
- Y2 as bH,
82677
- Ade as bI,
82678
- Q5e as bJ,
82679
- Mde as bK,
82680
- Ide as bL,
82681
- e6e as bM,
82682
- gfe as ba,
82683
- a2 as bb,
82684
- MQ as bc,
82685
- vD as bd,
82686
- PQ as be,
82687
- YZ as bf,
82688
- iu as bg,
82689
- dM as bh,
82690
- QS as bi,
82691
- Mu as bj,
82692
- S5e as bk,
82693
- Uy as bl,
82694
- Kk as bm,
82695
- _9 as bn,
82696
- nY as bo,
82697
- S9 as bp,
82698
- gY as bq,
82699
- YL as br,
82700
- o6e as bs,
82701
- Wa as bt,
82702
- mD as bu,
82703
- BK as bv,
82704
- jK as bw,
82705
- sD as bx,
82706
- lD as by,
82707
- r2 as bz,
82657
+ ul as b0,
82658
+ uM as b1,
82659
+ QL as b2,
82660
+ o_e as b3,
82661
+ ng as b4,
82662
+ X2 as b5,
82663
+ ad as b6,
82664
+ mZ as b7,
82665
+ qN as b8,
82666
+ ufe as b9,
82667
+ r2 as bA,
82668
+ cD as bB,
82669
+ AX as bC,
82670
+ Lk as bD,
82671
+ jv as bE,
82672
+ Z5e as bF,
82673
+ IP as bG,
82674
+ ti as bH,
82675
+ Y2 as bI,
82676
+ Ade as bJ,
82677
+ e6e as bK,
82678
+ Mde as bL,
82679
+ Ide as bM,
82680
+ t6e as bN,
82681
+ hfe as ba,
82682
+ gfe as bb,
82683
+ a2 as bc,
82684
+ MQ as bd,
82685
+ vD as be,
82686
+ PQ as bf,
82687
+ YZ as bg,
82688
+ iu as bh,
82689
+ dM as bi,
82690
+ QS as bj,
82691
+ Mu as bk,
82692
+ S5e as bl,
82693
+ Uy as bm,
82694
+ Kk as bn,
82695
+ _9 as bo,
82696
+ nY as bp,
82697
+ S9 as bq,
82698
+ gY as br,
82699
+ YL as bs,
82700
+ s6e as bt,
82701
+ Wa as bu,
82702
+ mD as bv,
82703
+ LK as bw,
82704
+ $K as bx,
82705
+ sD as by,
82706
+ lD as bz,
82708
82707
  ya as c,
82709
82708
  df as d,
82710
82709
  fO as e,
@@ -82715,13 +82714,13 @@ export {
82715
82714
  sV as j,
82716
82715
  QH as k,
82717
82716
  afe as l,
82718
- W5e as m,
82717
+ V5e as m,
82719
82718
  Fo as n,
82720
- V5e as o,
82719
+ H5e as o,
82721
82720
  jN as p,
82722
- HK as q,
82721
+ BK as q,
82723
82722
  $5e as r,
82724
- i6e as s,
82723
+ r6e as s,
82725
82724
  fK as t,
82726
82725
  XH as u,
82727
82726
  tK as v,