@factorialco/f0-react 2.34.0 → 2.36.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 p, jsxs as E, Fragment as Me } from "react/jsx-runtime";
2
2
  import * as Ae from "react";
3
3
  import z, { useRef as G, useState as j, useCallback as ye, useEffect as re, useContext as On, useMemo as te, createContext as oi, forwardRef as Ke, useLayoutEffect as An, PureComponent as qo, useImperativeHandle as Uo, Fragment as Tr, useId as jc, useDebugValue as jw, createRef as RS, memo as Bw, createElement as pp, version as Dy, isValidElement as PS, cloneElement as IS } from "react";
4
- import { d$ as Ry, e0 as Bl, e1 as LS, dO as zw, e2 as FS, e3 as $S, e4 as jS, e5 as Yu, e6 as BS, c5 as zS, e7 as HS, n as we, cd as Hw, c7 as VS, H as It, _ as Bc, m as P, N as zc, cy as WS, cz as qS, o as f1, a6 as st, a7 as Si, e8 as to, e9 as US, ea as KS, eb as Py, ec as Iy, ed as Ly, ee as Fy, ef as mf, eg as GS, eh as Vw, ei as JS, ej as YS, ek as XS, dV as Ww, dW as qw, ah as gs, el as Yt, em as Je, en as un, eo as Uw, ep as QS, eq as Kw, er as c1, es as ZS, et as zt, eu as Hc, ev as pt, ew as Gw, ex as Vc, ey as u1, ez as h1, eA as p1, eB as Rt, eC as fn, eD as mp, eE as Wc, eF as eC, eG as Gt, eH as qc, eI as ln, eJ as Ds, eK as m1, eL as Uc, eM as qd, eN as Kc, bt as g1, eO as tC, eP as pd, eQ as gf, eR as nC, eS as iC, eT as rC, eU as sC, eV as oC, eW as aC, eX as Jw, eY as Yw, eZ as Xw, e_ as Qw, e$ as Zw, f0 as lC, f1 as yf, f2 as dC, f3 as fC, f4 as zl, f5 as Ir, dT as Ki, f6 as y1, f7 as Hl, f8 as ex, dU as tx, f9 as cC, fa as uC, dR as hC, fb as pC, dS as mC, fc as Pt, fd as Xt, T as v1, p as b1, q as k1, t as w1, fe as nx, ff as tl, s as hn, fg as ix, bd as ai, A as at, bO as x1, ar as Jt, M as fe, a3 as Rs, a5 as ys, C as je, W as _1, cs as gC, u as Ne, aL as rx, aV as Gc, bs as sx, dK as yC, aF as vC, b7 as Jc, a8 as Yc, fh as bC, fi as kC, fj as wC, fk as ox, aN as xC, Y as Ko, bG as ax, fl as _C, bT as vt, fm as lx, fn as dx, fo as gp, fp as SC, fq as $y, af as Vl, b_ as fx, bU as yp, aB as S1, aC as C1, aD as E1, bY as CC, at as vf, fr as cx, bB as EC, fs as AC, ft as Xu, fu as TC, ax as OC, bH as ux, E as MC, G as NC, cK as Xc, L as DC, X as RC, fv as PC, fw as jy, V as By, bI as A1, fx as IC, fy as LC, K as FC, fz as $C, a2 as Wl, cY as T1, ac as Gi, ao as hx, b8 as jC, b9 as BC, aj as vs, fA as px, cq as mx, fB as Go, fC as Qc, fD as Zc, fE as Jo, dg as gx, bF as O1, d5 as zy, b3 as zC, cr as HC, as as vp, aP as yx, fF as VC, cv as bp, ct as vx, cw as bx, cu as kx, cB as WC, d1 as qC, dn as UC, dk as KC, cZ as wx, c_ as xx, c$ as _x, d6 as M1, db as Sx, cF as Cx, dd as Ex, cG as Ax, da as Tx, df as Ox, ai as Mx, fG as Nx, fH as GC, S as de, aS as JC, ad as eu, b6 as tu, aM as YC, av as XC, cU as QC, cS as ZC, cR as e9, cQ as t9, cT as n9, a1 as Dx, d0 as i9, dr as r9, dh as Rx, br as Yo, c1 as s9, dm as o9, dc as a9, d9 as l9, d8 as d9, aA as f9, fI as c9, aa as u9, aZ as h9, aT as Hy, bc as p9, a0 as Px, $ as bf, bj as Ix, dL as m9, dC as Lx, dD as Fx, dw as $x, ab as g9, by as y9, dq as v9, bq as Vy, aq as N1, fJ as b9, fK as k9, bX as w9, aR as x9, fL as _9, a_ as S9, dj as C9, ba as E9, fM as A9, fN as T9, aX as O9, fO as M9, fP as nu, fQ as D1, be as N9, bf as D9, bg as R9, bi as P9, fR as R1, fS as jx, dJ as P1, de as I9, fT as L9, cp as Bx, cx as kp, al as F9, am as $9, O as j9, fU as kf, fV as B9, fW as z9, ap as H9, d7 as V9, dN as wf, fX as W9, fY as q9, bE as U9, d2 as Wy, dl as K9, cI as G9, cA as J9, cH as Y9, di as X9, fZ as Q9, f_ as Z9, f$ as zx, g0 as e8, g1 as t8 } from "./F0CanvasPanel-EblUp6hE.js";
4
+ import { d$ as Ry, e0 as Bl, e1 as LS, dO as zw, e2 as FS, e3 as $S, e4 as jS, e5 as Yu, e6 as BS, c5 as zS, e7 as HS, n as we, cd as Hw, c7 as VS, H as It, _ as Bc, m as P, N as zc, cy as WS, cz as qS, o as f1, a6 as st, a7 as Si, e8 as to, e9 as US, ea as KS, eb as Py, ec as Iy, ed as Ly, ee as Fy, ef as mf, eg as GS, eh as Vw, ei as JS, ej as YS, ek as XS, dV as Ww, dW as qw, ah as gs, el as Yt, em as Je, en as un, eo as Uw, ep as QS, eq as Kw, er as c1, es as ZS, et as zt, eu as Hc, ev as pt, ew as Gw, ex as Vc, ey as u1, ez as h1, eA as p1, eB as Rt, eC as fn, eD as mp, eE as Wc, eF as eC, eG as Gt, eH as qc, eI as ln, eJ as Ds, eK as m1, eL as Uc, eM as qd, eN as Kc, bt as g1, eO as tC, eP as pd, eQ as gf, eR as nC, eS as iC, eT as rC, eU as sC, eV as oC, eW as aC, eX as Jw, eY as Yw, eZ as Xw, e_ as Qw, e$ as Zw, f0 as lC, f1 as yf, f2 as dC, f3 as fC, f4 as zl, f5 as Ir, dT as Ki, f6 as y1, f7 as Hl, f8 as ex, dU as tx, f9 as cC, fa as uC, dR as hC, fb as pC, dS as mC, fc as Pt, fd as Xt, T as v1, p as b1, q as k1, t as w1, fe as nx, ff as tl, s as hn, fg as ix, bd as ai, A as at, bO as x1, ar as Jt, M as fe, a3 as Rs, a5 as ys, C as Fe, W as _1, cs as gC, u as Ne, aL as rx, aV as Gc, bs as sx, dK as yC, aF as vC, b7 as Jc, a8 as Yc, fh as bC, fi as kC, fj as wC, fk as ox, aN as xC, Y as Ko, bG as ax, fl as _C, bT as vt, fm as lx, fn as dx, fo as gp, fp as SC, fq as $y, af as Vl, b_ as fx, bU as yp, aB as S1, aC as C1, aD as E1, bY as CC, at as vf, fr as cx, bB as EC, fs as AC, ft as Xu, fu as TC, ax as OC, bH as ux, E as MC, G as NC, cK as Xc, L as DC, X as RC, fv as PC, fw as jy, V as By, bI as A1, fx as IC, fy as LC, K as FC, fz as $C, a2 as Wl, cY as T1, ac as Gi, ao as hx, b8 as jC, b9 as BC, aj as vs, fA as px, cq as mx, fB as Go, fC as Qc, fD as Zc, fE as Jo, dg as gx, bF as O1, d5 as zy, b3 as zC, cr as HC, as as vp, aP as yx, fF as VC, cv as bp, ct as vx, cw as bx, cu as kx, cB as WC, d1 as qC, dn as UC, dk as KC, cZ as wx, c_ as xx, c$ as _x, d6 as M1, db as Sx, cF as Cx, dd as Ex, cG as Ax, da as Tx, df as Ox, ai as Mx, fG as Nx, fH as GC, S as de, aS as JC, ad as eu, b6 as tu, aM as YC, av as XC, cU as QC, cS as ZC, cR as e9, cQ as t9, cT as n9, a1 as Dx, d0 as i9, dr as r9, dh as Rx, br as Yo, c1 as s9, dm as o9, dc as a9, d9 as l9, d8 as d9, aA as f9, fI as c9, aa as u9, aZ as h9, aT as Hy, bc as p9, a0 as Px, $ as bf, bj as Ix, dL as m9, dC as Lx, dD as Fx, dw as $x, ab as g9, by as y9, dq as v9, bq as Vy, aq as N1, fJ as b9, fK as k9, bX as w9, aR as x9, fL as _9, a_ as S9, dj as C9, ba as E9, fM as A9, fN as T9, aX as O9, fO as M9, fP as nu, fQ as D1, be as N9, bf as D9, bg as R9, bi as P9, fR as R1, fS as jx, dJ as P1, de as I9, fT as L9, cp as Bx, cx as kp, al as F9, am as $9, O as j9, fU as kf, fV as B9, fW as z9, ap as H9, d7 as V9, dN as wf, fX as W9, fY as q9, bE as U9, d2 as Wy, dl as K9, cI as G9, cA as J9, cH as Y9, di as X9, fZ as Q9, f_ as Z9, f$ as zx, g0 as e8, g1 as t8 } from "./F0CanvasPanel-CzqKtOrT.js";
5
5
  import I1 from "react-dom";
6
6
  import './useDataCollectionSource.css';const n8 = {
7
7
  active: !0,
@@ -7024,14 +7024,14 @@ const RO = (t) => Array.isArray(t) ? t.every((e) => DO(e)) ? t : [
7024
7024
  className: "h-5 w-5 text-f1-icon-positive"
7025
7025
  }
7026
7026
  ) : t === "error" ? /* @__PURE__ */ p(
7027
- je,
7027
+ Fe,
7028
7028
  {
7029
7029
  icon: _1,
7030
7030
  size: "md",
7031
7031
  color: e ? "critical" : "inverse"
7032
7032
  }
7033
7033
  ) : /* @__PURE__ */ p(
7034
- je,
7034
+ Fe,
7035
7035
  {
7036
7036
  icon: gC,
7037
7037
  size: "md",
@@ -7250,7 +7250,7 @@ function $O({ checked: t }) {
7250
7250
  "flex h-5 w-5 shrink-0 items-center justify-center rounded-xs transition-colors",
7251
7251
  t ? "bg-f1-background-selected-bold text-f1-foreground-inverse" : "border border-solid border-f1-border bg-f1-background"
7252
7252
  ),
7253
- children: t && /* @__PURE__ */ p(je, { icon: Yc, size: "sm" })
7253
+ children: t && /* @__PURE__ */ p(Fe, { icon: Yc, size: "sm" })
7254
7254
  }
7255
7255
  );
7256
7256
  }
@@ -7498,7 +7498,7 @@ const _Y = st(
7498
7498
  r && "w-full"
7499
7499
  ),
7500
7500
  children: [
7501
- f.icon && /* @__PURE__ */ p(je, { icon: f.icon, size: "md" }),
7501
+ f.icon && /* @__PURE__ */ p(Fe, { icon: f.icon, size: "md" }),
7502
7502
  f.label
7503
7503
  ]
7504
7504
  },
@@ -7625,7 +7625,7 @@ function qO({
7625
7625
  onClick: n,
7626
7626
  children: [
7627
7627
  /* @__PURE__ */ E(Me, { children: [
7628
- a === "one-campaign" ? /* @__PURE__ */ p("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ p(je, { icon: WO, size: "lg", className: "!h-8 !w-8" }) }) : /* @__PURE__ */ p("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ p(
7628
+ a === "one-campaign" ? /* @__PURE__ */ p("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ p(Fe, { icon: WO, size: "lg", className: "!h-8 !w-8" }) }) : /* @__PURE__ */ p("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ p(
7629
7629
  xC,
7630
7630
  {
7631
7631
  module: l.module,
@@ -9690,7 +9690,7 @@ function $p(t, e) {
9690
9690
  i.preventDefault(), t.onCheckedChange(!t.checked);
9691
9691
  },
9692
9692
  children: /* @__PURE__ */ E("div", { className: "flex w-full flex-row items-center gap-2", children: [
9693
- t.icon && /* @__PURE__ */ p(je, { icon: t.icon, color: "default" }),
9693
+ t.icon && /* @__PURE__ */ p(Fe, { icon: t.icon, color: "default" }),
9694
9694
  /* @__PURE__ */ p("span", { className: "flex-1", children: t.label }),
9695
9695
  /* @__PURE__ */ p(
9696
9696
  A1,
@@ -9707,7 +9707,7 @@ function $p(t, e) {
9707
9707
  if (t.type === "submenu")
9708
9708
  return /* @__PURE__ */ p(jy, { children: /* @__PURE__ */ E(IC, { children: [
9709
9709
  /* @__PURE__ */ p(LC, { className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover", children: /* @__PURE__ */ E("div", { className: "flex w-full flex-row items-center gap-2", children: [
9710
- t.icon && /* @__PURE__ */ p(je, { icon: t.icon, color: "default" }),
9710
+ t.icon && /* @__PURE__ */ p(Fe, { icon: t.icon, color: "default" }),
9711
9711
  /* @__PURE__ */ p("span", { className: "flex-1 text-base font-medium", children: t.label }),
9712
9712
  t.selectedLabel && /* @__PURE__ */ p("span", { className: "mr-1 text-base text-f1-foreground-secondary", children: t.selectedLabel })
9713
9713
  ] }) }),
@@ -9723,9 +9723,9 @@ function $p(t, e) {
9723
9723
  onClick: n.onClick,
9724
9724
  className: P(n.critical && "text-f1-foreground-critical"),
9725
9725
  children: /* @__PURE__ */ E("div", { className: "flex w-full flex-row items-center gap-2", children: [
9726
- n.icon && /* @__PURE__ */ p(je, { icon: n.icon }),
9726
+ n.icon && /* @__PURE__ */ p(Fe, { icon: n.icon }),
9727
9727
  /* @__PURE__ */ p("span", { className: "flex-1", children: n.label }),
9728
- n.selected && /* @__PURE__ */ p(je, { icon: Yc, color: "default" })
9728
+ n.selected && /* @__PURE__ */ p(Fe, { icon: Yc, color: "default" })
9729
9729
  ] })
9730
9730
  },
9731
9731
  `item-${e}`
@@ -9822,7 +9822,7 @@ function Y7({
9822
9822
  {
9823
9823
  className: "flex flex-shrink-0 cursor-grab items-center justify-center text-f1-icon active:cursor-grabbing",
9824
9824
  "aria-label": "Drag to reorder",
9825
- children: /* @__PURE__ */ p(je, { icon: T1, size: "xs" })
9825
+ children: /* @__PURE__ */ p(Fe, { icon: T1, size: "xs" })
9826
9826
  }
9827
9827
  )
9828
9828
  },
@@ -9838,7 +9838,7 @@ function Y7({
9838
9838
  ease: [0.25, 0.1, 0.25, 1]
9839
9839
  },
9840
9840
  className: "flex flex-shrink-0 items-center justify-center p-0.5 text-f1-icon",
9841
- children: /* @__PURE__ */ p(je, { icon: g, size: "md" })
9841
+ children: /* @__PURE__ */ p(Fe, { icon: g, size: "md" })
9842
9842
  },
9843
9843
  "icon"
9844
9844
  ) }) }),
@@ -20417,7 +20417,7 @@ function At(t, e) {
20417
20417
  }
20418
20418
  return t;
20419
20419
  }
20420
- function Fe(...t) {
20420
+ function $e(...t) {
20421
20421
  return t.filter((e) => !!e).reduce((e, n) => {
20422
20422
  const i = { ...e };
20423
20423
  return Object.entries(n).forEach(([r, s]) => {
@@ -20445,7 +20445,7 @@ function Fe(...t) {
20445
20445
  function zf(t, e) {
20446
20446
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
20447
20447
  [n.name]: t.attrs[n.name]
20448
- }).reduce((n, i) => Fe(n, i), {});
20448
+ }).reduce((n, i) => $e(n, i), {});
20449
20449
  }
20450
20450
  function k4(t) {
20451
20451
  return typeof t == "function";
@@ -26570,7 +26570,7 @@ var Bi = {
26570
26570
  value: !0
26571
26571
  }
26572
26572
  };
26573
- let Ft = null, $e = null;
26573
+ let Ft = null, je = null;
26574
26574
  const jh = {};
26575
26575
  async function Fb(t) {
26576
26576
  if (jh[t]) return jh[t];
@@ -26586,36 +26586,36 @@ function Ou(t, { caller: e } = {}) {
26586
26586
  async function wF(t) {
26587
26587
  A_ = !0;
26588
26588
  let { emojiVersion: e, set: n, locale: i } = t;
26589
- if (e || (e = Bi.emojiVersion.value), n || (n = Bi.set.value), i || (i = Bi.locale.value), $e)
26590
- $e.categories = $e.categories.filter((l) => !l.name);
26589
+ if (e || (e = Bi.emojiVersion.value), n || (n = Bi.set.value), i || (i = Bi.locale.value), je)
26590
+ je.categories = je.categories.filter((l) => !l.name);
26591
26591
  else {
26592
- $e = (typeof t.data == "function" ? await t.data() : t.data) || await Fb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`), $e.emoticons = {}, $e.natives = {}, $e.categories.unshift({
26592
+ je = (typeof t.data == "function" ? await t.data() : t.data) || await Fb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`), je.emoticons = {}, je.natives = {}, je.categories.unshift({
26593
26593
  id: "frequent",
26594
26594
  emojis: []
26595
26595
  });
26596
- for (const l in $e.aliases) {
26597
- const d = $e.aliases[l], f = $e.emojis[d];
26596
+ for (const l in je.aliases) {
26597
+ const d = je.aliases[l], f = je.emojis[d];
26598
26598
  f && (f.aliases || (f.aliases = []), f.aliases.push(l));
26599
26599
  }
26600
- $e.originalCategories = $e.categories;
26600
+ je.originalCategories = je.categories;
26601
26601
  }
26602
26602
  if (Ft = (typeof t.i18n == "function" ? await t.i18n() : t.i18n) || (i == "en" ? /* @__PURE__ */ f_(C_) : await Fb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)), t.custom) for (let l in t.custom) {
26603
26603
  l = parseInt(l);
26604
26604
  const d = t.custom[l], f = t.custom[l - 1];
26605
26605
  if (!(!d.emojis || !d.emojis.length)) {
26606
- d.id || (d.id = `custom_${l + 1}`), d.name || (d.name = Ft.categories.custom), f && !d.icon && (d.target = f.target || f), $e.categories.push(d);
26607
- for (const c of d.emojis) $e.emojis[c.id] = c;
26606
+ d.id || (d.id = `custom_${l + 1}`), d.name || (d.name = Ft.categories.custom), f && !d.icon && (d.target = f.target || f), je.categories.push(d);
26607
+ for (const c of d.emojis) je.emojis[c.id] = c;
26608
26608
  }
26609
26609
  }
26610
- t.categories && ($e.categories = $e.originalCategories.filter((l) => t.categories.indexOf(l.id) != -1).sort((l, d) => {
26610
+ t.categories && (je.categories = je.originalCategories.filter((l) => t.categories.indexOf(l.id) != -1).sort((l, d) => {
26611
26611
  const f = t.categories.indexOf(l.id), c = t.categories.indexOf(d.id);
26612
26612
  return f - c;
26613
26613
  }));
26614
26614
  let r = null, s = null;
26615
26615
  n == "native" && (r = Lb.latestVersion(), s = t.noCountryFlags || Lb.noCountryFlags());
26616
- let o = $e.categories.length, a = !1;
26616
+ let o = je.categories.length, a = !1;
26617
26617
  for (; o--; ) {
26618
- const l = $e.categories[o];
26618
+ const l = je.categories[o];
26619
26619
  if (l.id == "frequent") {
26620
26620
  let { maxFrequentRows: c, perLine: u } = t;
26621
26621
  c = c >= 0 ? c : Bi.maxFrequentRows.value, u || (u = Bi.perLine.value), l.emojis = S_.get({
@@ -26624,7 +26624,7 @@ async function wF(t) {
26624
26624
  });
26625
26625
  }
26626
26626
  if (!l.emojis || !l.emojis.length) {
26627
- $e.categories.splice(o, 1);
26627
+ je.categories.splice(o, 1);
26628
26628
  continue;
26629
26629
  }
26630
26630
  const { categoryIcons: d } = t;
@@ -26634,7 +26634,7 @@ async function wF(t) {
26634
26634
  }
26635
26635
  let f = l.emojis.length;
26636
26636
  for (; f--; ) {
26637
- const c = l.emojis[f], u = c.id ? c : $e.emojis[c], h = () => {
26637
+ const c = l.emojis[f], u = c.id ? c : je.emojis[c], h = () => {
26638
26638
  l.emojis.splice(f, 1);
26639
26639
  };
26640
26640
  if (!u || t.exceptEmojis && t.exceptEmojis.includes(u.id)) {
@@ -26675,13 +26675,13 @@ async function wF(t) {
26675
26675
  v
26676
26676
  ]).map((b) => b.toLowerCase())).flat();
26677
26677
  }).flat().filter((g) => g && g.trim()).join(","), u.emoticons) for (const g of u.emoticons)
26678
- $e.emoticons[g] || ($e.emoticons[g] = u.id);
26678
+ je.emoticons[g] || (je.emoticons[g] = u.id);
26679
26679
  let m = 0;
26680
26680
  for (const g of u.skins) {
26681
26681
  if (!g) continue;
26682
26682
  m++;
26683
26683
  const { native: y } = g;
26684
- y && ($e.natives[y] = u.id, u.search += `,${y}`);
26684
+ y && (je.natives[y] = u.id, u.search += `,${y}`);
26685
26685
  const v = m == 1 ? "" : `:skin-tone-${m}:`;
26686
26686
  g.shortcodes = `:${u.id}:${v}`;
26687
26687
  }
@@ -26704,7 +26704,7 @@ function O_(t, e, n, i) {
26704
26704
  const xF = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;
26705
26705
  let ym = null;
26706
26706
  function _F(t) {
26707
- return t.id ? t : $e.emojis[t] || $e.emojis[$e.aliases[t]] || $e.emojis[$e.natives[t]];
26707
+ return t.id ? t : je.emojis[t] || je.emojis[je.aliases[t]] || je.emojis[je.natives[t]];
26708
26708
  }
26709
26709
  function SF() {
26710
26710
  ym = null;
@@ -26716,7 +26716,7 @@ async function CF(t, { maxResults: e, caller: n } = {}) {
26716
26716
  });
26717
26717
  const i = t.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((a, l, d) => a.trim() && d.indexOf(a) == l);
26718
26718
  if (!i.length) return;
26719
- let r = ym || (ym = Object.values($e.emojis)), s, o;
26719
+ let r = ym || (ym = Object.values(je.emojis)), s, o;
26720
26720
  for (const a of i) {
26721
26721
  if (!r.length) break;
26722
26722
  s = [], o = {};
@@ -26995,8 +26995,8 @@ function vm(t) {
26995
26995
  width: t.size,
26996
26996
  height: t.size,
26997
26997
  backgroundImage: `url(${o})`,
26998
- backgroundSize: `${100 * $e.sheet.cols}% ${100 * $e.sheet.rows}%`,
26999
- backgroundPosition: `${100 / ($e.sheet.cols - 1) * r.x}% ${100 / ($e.sheet.rows - 1) * r.y}%`
26998
+ backgroundSize: `${100 * je.sheet.cols}% ${100 * je.sheet.rows}%`,
26999
+ backgroundPosition: `${100 / (je.sheet.cols - 1) * r.x}% ${100 / (je.sheet.rows - 1) * r.y}%`
27000
27000
  }
27001
27001
  })
27002
27002
  });
@@ -27370,7 +27370,7 @@ class qF extends Yf {
27370
27370
  });
27371
27371
  }
27372
27372
  constructor() {
27373
- super(), this.categories = $e.categories.filter((e) => !e.target), this.state = {
27373
+ super(), this.categories = je.categories.filter((e) => !e.target), this.state = {
27374
27374
  categoryId: this.categories[0].id
27375
27375
  };
27376
27376
  }
@@ -27452,9 +27452,9 @@ class KF extends bi {
27452
27452
  this.observers = [].concat(e);
27453
27453
  }
27454
27454
  initGrid() {
27455
- const { categories: e } = $e;
27455
+ const { categories: e } = je;
27456
27456
  this.refs.categories = /* @__PURE__ */ new Map();
27457
- const n = $e.categories.map((r) => r.id).join(",");
27457
+ const n = je.categories.map((r) => r.id).join(",");
27458
27458
  this.navKey && this.navKey != n && this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0), this.navKey = n, this.grid = [], this.grid.setsize = 0;
27459
27459
  const i = (r, s) => {
27460
27460
  const o = [];
@@ -27863,7 +27863,7 @@ class KF extends bi {
27863
27863
  }) : null;
27864
27864
  }
27865
27865
  renderCategories() {
27866
- const { categories: e } = $e, n = !!this.state.searchResults, i = this.getPerLine();
27866
+ const { categories: e } = je, n = !!this.state.searchResults, i = this.getPerLine();
27867
27867
  return /* @__PURE__ */ K("div", {
27868
27868
  style: {
27869
27869
  visibility: n ? "hidden" : void 0,
@@ -29082,7 +29082,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29082
29082
  }
29083
29083
  ),
29084
29084
  t.isActive("link") && /* @__PURE__ */ p(
29085
- je,
29085
+ Fe,
29086
29086
  {
29087
29087
  size: "md",
29088
29088
  icon: vp,
@@ -29189,7 +29189,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29189
29189
  "justify-start"
29190
29190
  ),
29191
29191
  children: /* @__PURE__ */ E("div", { className: "flex items-center gap-1", children: [
29192
- /* @__PURE__ */ p(je, { icon: l.icon, size: "md" }),
29192
+ /* @__PURE__ */ p(Fe, { icon: l.icon, size: "md" }),
29193
29193
  /* @__PURE__ */ p("span", { className: "text-sm", children: l.label })
29194
29194
  ] })
29195
29195
  },
@@ -29556,7 +29556,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29556
29556
  ];
29557
29557
  },
29558
29558
  renderHTML({ HTMLAttributes: t }) {
29559
- return ["span", Fe(this.options.HTMLAttributes, t), 0];
29559
+ return ["span", $e(this.options.HTMLAttributes, t), 0];
29560
29560
  },
29561
29561
  addCommands() {
29562
29562
  return {
@@ -29630,7 +29630,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29630
29630
  ];
29631
29631
  },
29632
29632
  renderHTML({ HTMLAttributes: t }) {
29633
- return ["mark", Fe(this.options.HTMLAttributes, t), 0];
29633
+ return ["mark", $e(this.options.HTMLAttributes, t), 0];
29634
29634
  },
29635
29635
  addCommands() {
29636
29636
  return {
@@ -29778,7 +29778,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29778
29778
  ];
29779
29779
  },
29780
29780
  renderHTML({ HTMLAttributes: t }) {
29781
- return ["u", Fe(this.options.HTMLAttributes, t), 0];
29781
+ return ["u", $e(this.options.HTMLAttributes, t), 0];
29782
29782
  },
29783
29783
  addCommands() {
29784
29784
  return {
@@ -29832,7 +29832,7 @@ const e$ = ({ editor: t, disabled: e }) => {
29832
29832
  renderHTML({ node: t, HTMLAttributes: e }) {
29833
29833
  return [
29834
29834
  "li",
29835
- Fe(this.options.HTMLAttributes, e, {
29835
+ $e(this.options.HTMLAttributes, e, {
29836
29836
  "data-type": this.name
29837
29837
  }),
29838
29838
  [
@@ -30214,13 +30214,13 @@ const Xf = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, W$ = (t, e,
30214
30214
  renderHTML({ HTMLAttributes: t }) {
30215
30215
  return [
30216
30216
  "details",
30217
- Fe(this.options.HTMLAttributes, t),
30217
+ $e(this.options.HTMLAttributes, t),
30218
30218
  0
30219
30219
  ];
30220
30220
  },
30221
30221
  addNodeView() {
30222
30222
  return ({ editor: t, getPos: e, node: n, HTMLAttributes: i }) => {
30223
- const r = document.createElement("div"), s = Fe(this.options.HTMLAttributes, i, {
30223
+ const r = document.createElement("div"), s = $e(this.options.HTMLAttributes, i, {
30224
30224
  "data-type": this.name
30225
30225
  });
30226
30226
  Object.entries(s).forEach(([d, f]) => r.setAttribute(d, f));
@@ -30393,13 +30393,13 @@ const Xf = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, W$ = (t, e,
30393
30393
  renderHTML({ HTMLAttributes: t }) {
30394
30394
  return [
30395
30395
  "div",
30396
- Fe(this.options.HTMLAttributes, t, { "data-type": this.name }),
30396
+ $e(this.options.HTMLAttributes, t, { "data-type": this.name }),
30397
30397
  0
30398
30398
  ];
30399
30399
  },
30400
30400
  addNodeView() {
30401
30401
  return ({ HTMLAttributes: t }) => {
30402
- const e = document.createElement("div"), n = Fe(this.options.HTMLAttributes, t, {
30402
+ const e = document.createElement("div"), n = $e(this.options.HTMLAttributes, t, {
30403
30403
  "data-type": this.name,
30404
30404
  hidden: "hidden"
30405
30405
  });
@@ -30470,7 +30470,7 @@ const Xf = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, W$ = (t, e,
30470
30470
  renderHTML({ HTMLAttributes: t }) {
30471
30471
  return [
30472
30472
  "summary",
30473
- Fe(this.options.HTMLAttributes, t),
30473
+ $e(this.options.HTMLAttributes, t),
30474
30474
  0
30475
30475
  ];
30476
30476
  }
@@ -31351,9 +31351,9 @@ const gj = Wn.create({
31351
31351
  defaultValidate: (e) => !!Kr(e, this.options.protocols),
31352
31352
  protocols: this.options.protocols,
31353
31353
  defaultProtocol: this.options.defaultProtocol
31354
- }) ? ["a", Fe(this.options.HTMLAttributes, t), 0] : [
31354
+ }) ? ["a", $e(this.options.HTMLAttributes, t), 0] : [
31355
31355
  "a",
31356
- Fe(this.options.HTMLAttributes, { ...t, href: "" }),
31356
+ $e(this.options.HTMLAttributes, { ...t, href: "" }),
31357
31357
  0
31358
31358
  ];
31359
31359
  },
@@ -31450,7 +31450,7 @@ const gj = Wn.create({
31450
31450
  ];
31451
31451
  },
31452
31452
  renderHTML({ HTMLAttributes: t }) {
31453
- return ["blockquote", Fe(this.options.HTMLAttributes, t), 0];
31453
+ return ["blockquote", $e(this.options.HTMLAttributes, t), 0];
31454
31454
  },
31455
31455
  addCommands() {
31456
31456
  return {
@@ -31499,7 +31499,7 @@ const gj = Wn.create({
31499
31499
  ];
31500
31500
  },
31501
31501
  renderHTML({ HTMLAttributes: t }) {
31502
- return ["strong", Fe(this.options.HTMLAttributes, t), 0];
31502
+ return ["strong", $e(this.options.HTMLAttributes, t), 0];
31503
31503
  },
31504
31504
  addCommands() {
31505
31505
  return {
@@ -31558,7 +31558,7 @@ const gj = Wn.create({
31558
31558
  ];
31559
31559
  },
31560
31560
  renderHTML({ HTMLAttributes: t }) {
31561
- return ["ul", Fe(this.options.HTMLAttributes, t), 0];
31561
+ return ["ul", $e(this.options.HTMLAttributes, t), 0];
31562
31562
  },
31563
31563
  addCommands() {
31564
31564
  return {
@@ -31602,7 +31602,7 @@ const gj = Wn.create({
31602
31602
  ];
31603
31603
  },
31604
31604
  renderHTML({ HTMLAttributes: t }) {
31605
- return ["code", Fe(this.options.HTMLAttributes, t), 0];
31605
+ return ["code", $e(this.options.HTMLAttributes, t), 0];
31606
31606
  },
31607
31607
  addCommands() {
31608
31608
  return {
@@ -31672,7 +31672,7 @@ const gj = Wn.create({
31672
31672
  renderHTML({ node: t, HTMLAttributes: e }) {
31673
31673
  return [
31674
31674
  "pre",
31675
- Fe(this.options.HTMLAttributes, e),
31675
+ $e(this.options.HTMLAttributes, e),
31676
31676
  [
31677
31677
  "code",
31678
31678
  {
@@ -31893,7 +31893,7 @@ const Ij = Ue.create({
31893
31893
  ];
31894
31894
  },
31895
31895
  renderHTML({ HTMLAttributes: t }) {
31896
- return ["br", Fe(this.options.HTMLAttributes, t)];
31896
+ return ["br", $e(this.options.HTMLAttributes, t)];
31897
31897
  },
31898
31898
  renderText() {
31899
31899
  return `
@@ -31951,7 +31951,7 @@ const Ij = Ue.create({
31951
31951
  }));
31952
31952
  },
31953
31953
  renderHTML({ node: t, HTMLAttributes: e }) {
31954
- return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, Fe(this.options.HTMLAttributes, e), 0];
31954
+ return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, $e(this.options.HTMLAttributes, e), 0];
31955
31955
  },
31956
31956
  addCommands() {
31957
31957
  return {
@@ -32352,7 +32352,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32352
32352
  return [{ tag: "hr" }];
32353
32353
  },
32354
32354
  renderHTML({ HTMLAttributes: t }) {
32355
- return ["hr", Fe(this.options.HTMLAttributes, t)];
32355
+ return ["hr", $e(this.options.HTMLAttributes, t)];
32356
32356
  },
32357
32357
  addCommands() {
32358
32358
  return {
@@ -32416,7 +32416,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32416
32416
  ];
32417
32417
  },
32418
32418
  renderHTML({ HTMLAttributes: t }) {
32419
- return ["em", Fe(this.options.HTMLAttributes, t), 0];
32419
+ return ["em", $e(this.options.HTMLAttributes, t), 0];
32420
32420
  },
32421
32421
  addCommands() {
32422
32422
  return {
@@ -32474,7 +32474,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32474
32474
  ];
32475
32475
  },
32476
32476
  renderHTML({ HTMLAttributes: t }) {
32477
- return ["li", Fe(this.options.HTMLAttributes, t), 0];
32477
+ return ["li", $e(this.options.HTMLAttributes, t), 0];
32478
32478
  },
32479
32479
  addKeyboardShortcuts() {
32480
32480
  return {
@@ -32518,7 +32518,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32518
32518
  },
32519
32519
  renderHTML({ HTMLAttributes: t }) {
32520
32520
  const { start: e, ...n } = t;
32521
- return e === 1 ? ["ol", Fe(this.options.HTMLAttributes, n), 0] : ["ol", Fe(this.options.HTMLAttributes, t), 0];
32521
+ return e === 1 ? ["ol", $e(this.options.HTMLAttributes, n), 0] : ["ol", $e(this.options.HTMLAttributes, t), 0];
32522
32522
  },
32523
32523
  addCommands() {
32524
32524
  return {
@@ -32565,7 +32565,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32565
32565
  ];
32566
32566
  },
32567
32567
  renderHTML({ HTMLAttributes: t }) {
32568
- return ["p", Fe(this.options.HTMLAttributes, t), 0];
32568
+ return ["p", $e(this.options.HTMLAttributes, t), 0];
32569
32569
  },
32570
32570
  addCommands() {
32571
32571
  return {
@@ -32603,7 +32603,7 @@ const Q_ = X_(!1, !0), Z_ = X_(!0, !0), Gj = Ue.create({
32603
32603
  ];
32604
32604
  },
32605
32605
  renderHTML({ HTMLAttributes: t }) {
32606
- return ["s", Fe(this.options.HTMLAttributes, t), 0];
32606
+ return ["s", $e(this.options.HTMLAttributes, t), 0];
32607
32607
  },
32608
32608
  addCommands() {
32609
32609
  return {
@@ -34381,7 +34381,7 @@ var az = nt.create({
34381
34381
  return [{ tag: "td" }];
34382
34382
  },
34383
34383
  renderHTML({ HTMLAttributes: t }) {
34384
- return ["td", Fe(this.options.HTMLAttributes, t), 0];
34384
+ return ["td", $e(this.options.HTMLAttributes, t), 0];
34385
34385
  }
34386
34386
  }), lz = nt.create({
34387
34387
  name: "tableHeader",
@@ -34414,7 +34414,7 @@ var az = nt.create({
34414
34414
  return [{ tag: "th" }];
34415
34415
  },
34416
34416
  renderHTML({ HTMLAttributes: t }) {
34417
- return ["th", Fe(this.options.HTMLAttributes, t), 0];
34417
+ return ["th", $e(this.options.HTMLAttributes, t), 0];
34418
34418
  }
34419
34419
  }), dz = nt.create({
34420
34420
  name: "tableRow",
@@ -34429,7 +34429,7 @@ var az = nt.create({
34429
34429
  return [{ tag: "tr" }];
34430
34430
  },
34431
34431
  renderHTML({ HTMLAttributes: t }) {
34432
- return ["tr", Fe(this.options.HTMLAttributes, t), 0];
34432
+ return ["tr", $e(this.options.HTMLAttributes, t), 0];
34433
34433
  }
34434
34434
  });
34435
34435
  function Pm(t, e) {
@@ -34603,7 +34603,7 @@ var vz = yz, bz = nt.create({
34603
34603
  }
34604
34604
  const a = [
34605
34605
  "table",
34606
- Fe(this.options.HTMLAttributes, e, {
34606
+ $e(this.options.HTMLAttributes, e, {
34607
34607
  style: o()
34608
34608
  }),
34609
34609
  n,
@@ -34729,7 +34729,7 @@ const wz = kz.configure({
34729
34729
  ];
34730
34730
  },
34731
34731
  renderHTML({ HTMLAttributes: t }) {
34732
- return ["ul", Fe(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
34732
+ return ["ul", $e(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
34733
34733
  },
34734
34734
  addCommands() {
34735
34735
  return {
@@ -35010,7 +35010,7 @@ const Oz = new He("mention"), Mz = nt.create({
35010
35010
  var n;
35011
35011
  return [
35012
35012
  "span",
35013
- Fe(this.HTMLAttributes, t.HTMLAttributes),
35013
+ $e(this.HTMLAttributes, t.HTMLAttributes),
35014
35014
  `${t.suggestion.char}${(n = e.attrs.label) !== null && n !== void 0 ? n : e.attrs.id}`
35015
35015
  ];
35016
35016
  },
@@ -35071,21 +35071,21 @@ const Oz = new He("mention"), Mz = nt.create({
35071
35071
  if (this.options.renderLabel !== void 0)
35072
35072
  return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
35073
35073
  "span",
35074
- Fe({ "data-type": this.name }, this.options.HTMLAttributes, e),
35074
+ $e({ "data-type": this.name }, this.options.HTMLAttributes, e),
35075
35075
  this.options.renderLabel({
35076
35076
  options: this.options,
35077
35077
  node: t
35078
35078
  })
35079
35079
  ];
35080
35080
  const n = { ...this.options };
35081
- n.HTMLAttributes = Fe({ "data-type": this.name }, this.options.HTMLAttributes, e);
35081
+ n.HTMLAttributes = $e({ "data-type": this.name }, this.options.HTMLAttributes, e);
35082
35082
  const i = this.options.renderHTML({
35083
35083
  options: n,
35084
35084
  node: t
35085
35085
  });
35086
35086
  return typeof i == "string" ? [
35087
35087
  "span",
35088
- Fe({ "data-type": this.name }, this.options.HTMLAttributes, e),
35088
+ $e({ "data-type": this.name }, this.options.HTMLAttributes, e),
35089
35089
  i
35090
35090
  ] : i;
35091
35091
  },
@@ -35988,7 +35988,7 @@ const sH = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, oH = nt.c
35988
35988
  ];
35989
35989
  },
35990
35990
  renderHTML({ HTMLAttributes: t }) {
35991
- return ["img", Fe(this.options.HTMLAttributes, t)];
35991
+ return ["img", $e(this.options.HTMLAttributes, t)];
35992
35992
  },
35993
35993
  addCommands() {
35994
35994
  return {
@@ -36117,7 +36117,7 @@ const sH = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, oH = nt.c
36117
36117
  return ad(dH);
36118
36118
  },
36119
36119
  renderHTML({ HTMLAttributes: t }) {
36120
- return ["img", Fe(this.options.HTMLAttributes, t)];
36120
+ return ["img", $e(this.options.HTMLAttributes, t)];
36121
36121
  }
36122
36122
  }).configure({
36123
36123
  inline: !1,
@@ -36282,7 +36282,7 @@ const sH = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, oH = nt.c
36282
36282
  },
36283
36283
  "aria-label": a.actions.edit,
36284
36284
  children: /* @__PURE__ */ p(
36285
- je,
36285
+ Fe,
36286
36286
  {
36287
36287
  icon: Lm[s],
36288
36288
  color: Fm[s],
@@ -36358,7 +36358,7 @@ const hH = ({
36358
36358
  {
36359
36359
  className: "-ml-1.5 flex items-center justify-center rounded-full bg-f1-background",
36360
36360
  children: /* @__PURE__ */ p(
36361
- je,
36361
+ Fe,
36362
36362
  {
36363
36363
  icon: Lm[d.mood],
36364
36364
  size: "lg",
@@ -36388,7 +36388,7 @@ const hH = ({
36388
36388
  ] }),
36389
36389
  r && /* @__PURE__ */ p("div", { className: "text-f1-text-primary flex flex-col gap-2", children: o.days.map((d, f) => /* @__PURE__ */ E("div", { className: "flex flex-row items-center gap-2", children: [
36390
36390
  /* @__PURE__ */ p("div", { className: "flex items-center justify-center rounded-full", children: /* @__PURE__ */ p(
36391
- je,
36391
+ Fe,
36392
36392
  {
36393
36393
  icon: Lm[d.mood],
36394
36394
  size: "lg",
@@ -36589,7 +36589,7 @@ const _H = ({
36589
36589
  renderHTML({ HTMLAttributes: t }) {
36590
36590
  return [
36591
36591
  "div",
36592
- Fe(t, { "data-video-embed": "" }),
36592
+ $e(t, { "data-video-embed": "" }),
36593
36593
  [
36594
36594
  "iframe",
36595
36595
  {
@@ -36855,7 +36855,7 @@ const _H = ({
36855
36855
  onMouseEnter: () => s(w),
36856
36856
  children: [
36857
36857
  b.emoji ? /* @__PURE__ */ p("span", { className: "text-base", children: b.emoji }) : b.icon ? /* @__PURE__ */ p(
36858
- je,
36858
+ Fe,
36859
36859
  {
36860
36860
  icon: b.icon,
36861
36861
  className: "text-f1-foreground-secondary"
@@ -38366,7 +38366,7 @@ function Xh({
38366
38366
  return /* @__PURE__ */ p("span", { children: n.formattedDate });
38367
38367
  const { icon: i, iconColor: r, textColor: s } = oV[n.icon];
38368
38368
  return /* @__PURE__ */ E("div", { className: "flex items-center justify-center gap-0.5 font-medium", children: [
38369
- /* @__PURE__ */ p(je, { icon: i, color: r }),
38369
+ /* @__PURE__ */ p(Fe, { icon: i, color: r }),
38370
38370
  /* @__PURE__ */ p("span", { className: s, children: n.formattedDate })
38371
38371
  ] });
38372
38372
  }
@@ -38422,6 +38422,7 @@ function dV({ item: t }) {
38422
38422
  }
38423
38423
  };
38424
38424
  return /* @__PURE__ */ E("div", { className: "flex h-8 items-center gap-2", children: [
38425
+ t.icon && /* @__PURE__ */ p("span", { className: "flex shrink-0 items-center text-f1-foreground-secondary", children: /* @__PURE__ */ p(Fe, { icon: t.icon, size: "md" }) }),
38425
38426
  /* @__PURE__ */ E(
38426
38427
  "div",
38427
38428
  {
@@ -38436,7 +38437,7 @@ function dV({ item: t }) {
38436
38437
  {
38437
38438
  label: t.info.title,
38438
38439
  description: t.info.description,
38439
- children: /* @__PURE__ */ p(je, { icon: Ix, size: "sm" })
38440
+ children: /* @__PURE__ */ p(Fe, { icon: Ix, size: "sm" })
38440
38441
  }
38441
38442
  ) })
38442
38443
  ]
@@ -38560,7 +38561,7 @@ const fV = Bw(function({ items: e }) {
38560
38561
  }
38561
38562
  ), uV = ({ text: t, isCompleted: e }) => /* @__PURE__ */ E("div", { className: "flex flex-row items-center gap-2", children: [
38562
38563
  /* @__PURE__ */ p(
38563
- je,
38564
+ Fe,
38564
38565
  {
38565
38566
  className: e ? "text-f1-icon-positive" : "text-f1-icon-secondary",
38566
38567
  icon: e ? g9 : y9,
@@ -46245,9 +46246,10 @@ function ZU({
46245
46246
  secondaryActions: s = [],
46246
46247
  otherActions: o = [],
46247
46248
  status: a,
46248
- metadata: l = []
46249
+ metadata: l = [],
46250
+ showBottomBorder: d = !1
46249
46251
  }) {
46250
- const d = [
46252
+ const f = [
46251
46253
  a && {
46252
46254
  label: a.label,
46253
46255
  value: {
@@ -46259,164 +46261,173 @@ function ZU({
46259
46261
  hideLabel: !0
46260
46262
  },
46261
46263
  ...l
46262
- ], f = s.filter(dp), c = o.filter(dp), u = r && dp(r), h = f.length > 0, m = c.length > 0, g = (b) => !!b && "items" in b, y = (b) => !!b && "label" in b && !("items" in b), v = (b, k) => `${uf(b) ? `${b.value ?? "default"}-${b.items.map((_) => _.value).join("-")}` : b.label}-${k}`;
46263
- return /* @__PURE__ */ E("div", { className: "resource-header px-page flex flex-col gap-3 pb-5 pt-3", children: [
46264
- /* @__PURE__ */ E(
46265
- "div",
46266
- {
46267
- className: P(
46268
- "flex flex-col items-start justify-start gap-4 md:flex-row",
46269
- !i && "md:items-center"
46270
- ),
46271
- children: [
46272
- /* @__PURE__ */ E(
46273
- "div",
46274
- {
46275
- className: P(
46276
- "flex grow flex-col items-start justify-start gap-3 md:flex-row md:items-start",
46277
- !i && "md:items-center"
46264
+ ], c = s.filter(dp), u = o.filter(dp), h = r && dp(r), m = c.length > 0, g = u.length > 0, y = (k) => !!k && "items" in k, v = (k) => !!k && "label" in k && !("items" in k), b = (k, w) => `${uf(k) ? `${k.value ?? "default"}-${k.items.map((x) => x.value).join("-")}` : k.label}-${w}`;
46265
+ return /* @__PURE__ */ E(
46266
+ "div",
46267
+ {
46268
+ className: P(
46269
+ "resource-header px-page flex flex-col gap-3 pb-5 pt-3",
46270
+ d && "border-b border-solid border-f1-border"
46271
+ ),
46272
+ children: [
46273
+ /* @__PURE__ */ E(
46274
+ "div",
46275
+ {
46276
+ className: P(
46277
+ "flex flex-col items-start justify-start gap-4 md:flex-row",
46278
+ !i && "md:items-center"
46279
+ ),
46280
+ children: [
46281
+ /* @__PURE__ */ E(
46282
+ "div",
46283
+ {
46284
+ className: P(
46285
+ "flex grow flex-col items-start justify-start gap-3 md:flex-row md:items-start",
46286
+ !i && "md:items-center"
46287
+ ),
46288
+ children: [
46289
+ e && /* @__PURE__ */ p("div", { className: "flex items-start", children: /* @__PURE__ */ p(
46290
+ Jc,
46291
+ {
46292
+ avatar: {
46293
+ ...e.type === "generic" ? { ...e, type: "company" } : e
46294
+ },
46295
+ size: "xl"
46296
+ }
46297
+ ) }),
46298
+ /* @__PURE__ */ E("div", { className: "flex flex-col gap-1", children: [
46299
+ /* @__PURE__ */ p(
46300
+ "span",
46301
+ {
46302
+ className: P(
46303
+ "text-2xl font-semibold",
46304
+ n ? "text-f1-foreground/[0.61]" : "text-f1-foreground"
46305
+ ),
46306
+ children: t
46307
+ }
46308
+ ),
46309
+ i && /* @__PURE__ */ p(QU, { description: i })
46310
+ ] })
46311
+ ]
46312
+ }
46278
46313
  ),
46279
- children: [
46280
- e && /* @__PURE__ */ p("div", { className: "flex items-start", children: /* @__PURE__ */ p(
46281
- Jc,
46314
+ f.length > 0 && /* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 md:hidden", children: /* @__PURE__ */ p(jm, { items: f }) }),
46315
+ /* @__PURE__ */ E("div", { className: "flex w-full shrink-0 flex-col gap-x-2 gap-y-3 md:hidden", children: [
46316
+ h && v(r) && /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full", children: /* @__PURE__ */ p(
46317
+ fe,
46282
46318
  {
46283
- avatar: {
46284
- ...e.type === "generic" ? { ...e, type: "company" } : e
46285
- },
46286
- size: "xl"
46319
+ label: r.label,
46320
+ onClick: r.onClick,
46321
+ variant: "default",
46322
+ icon: r.icon,
46323
+ size: "lg",
46324
+ disabled: r.disabled,
46325
+ tooltip: r.tooltip,
46326
+ loading: r.loading
46287
46327
  }
46288
46328
  ) }),
46289
- /* @__PURE__ */ E("div", { className: "flex flex-col gap-1", children: [
46290
- /* @__PURE__ */ p(
46291
- "span",
46292
- {
46293
- className: P(
46294
- "text-2xl font-semibold",
46295
- n ? "text-f1-foreground/[0.61]" : "text-f1-foreground"
46296
- ),
46297
- children: t
46298
- }
46299
- ),
46300
- i && /* @__PURE__ */ p(QU, { description: i })
46301
- ] })
46302
- ]
46303
- }
46304
- ),
46305
- d.length > 0 && /* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 md:hidden", children: /* @__PURE__ */ p(jm, { items: d }) }),
46306
- /* @__PURE__ */ E("div", { className: "flex w-full shrink-0 flex-col gap-x-2 gap-y-3 md:hidden", children: [
46307
- u && y(r) && /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full", children: /* @__PURE__ */ p(
46308
- fe,
46309
- {
46310
- label: r.label,
46311
- onClick: r.onClick,
46312
- variant: "default",
46313
- icon: r.icon,
46314
- size: "lg",
46315
- disabled: r.disabled,
46316
- tooltip: r.tooltip,
46317
- loading: r.loading
46318
- }
46319
- ) }),
46320
- u && g(r) && /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full", children: /* @__PURE__ */ p(
46321
- Jt,
46322
- {
46323
- items: r.items,
46324
- onClick: r.onClick,
46325
- variant: "default",
46326
- value: r.value,
46327
- size: "lg",
46328
- disabled: r.disabled,
46329
- tooltip: r.tooltip,
46330
- loading: r.loading
46331
- }
46332
- ) }),
46333
- f.map((b, k) => /* @__PURE__ */ p(Tr, { children: /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full [&>span]:block [&>span_div]:w-full", children: uf(b) ? /* @__PURE__ */ p(
46334
- Jt,
46335
- {
46336
- items: b.items,
46337
- onClick: b.onClick,
46338
- variant: b.variant ?? "outline",
46339
- value: b.value,
46340
- size: "lg",
46341
- disabled: b.disabled,
46342
- tooltip: b.tooltip,
46343
- loading: b.loading
46344
- }
46345
- ) : /* @__PURE__ */ p(
46346
- fe,
46347
- {
46348
- label: b.label,
46349
- onClick: b.onClick,
46350
- variant: b.variant ?? "outline",
46351
- icon: b.icon,
46352
- size: "lg",
46353
- hideLabel: b.hideLabel,
46354
- disabled: b.disabled,
46355
- tooltip: b.tooltip,
46356
- loading: b.loading
46357
- }
46358
- ) }) }, v(b, k))),
46359
- c.length > 0 && /* @__PURE__ */ p("div", { className: "w-full [&>*]:w-full [&_button]:w-full", children: /* @__PURE__ */ p(x1, { items: c }) })
46360
- ] }),
46361
- /* @__PURE__ */ E("div", { className: "-m-1 hidden w-fit shrink-0 flex-wrap items-center gap-x-2 gap-y-2 p-1 md:flex md:overflow-x-auto", children: [
46362
- c.length > 0 && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(Rs, { items: c }) }),
46363
- f.map((b, k) => /* @__PURE__ */ p(Tr, { children: /* @__PURE__ */ p("div", { className: "hidden md:block", children: uf(b) ? /* @__PURE__ */ p(
46364
- Jt,
46365
- {
46366
- items: b.items,
46367
- onClick: b.onClick,
46368
- variant: b.variant ?? "outline",
46369
- value: b.value,
46370
- size: "md",
46371
- disabled: b.disabled,
46372
- tooltip: b.tooltip,
46373
- loading: b.loading
46374
- }
46375
- ) : /* @__PURE__ */ p(
46376
- fe,
46377
- {
46378
- label: b.label,
46379
- onClick: b.onClick,
46380
- variant: b.variant ?? "outline",
46381
- icon: b.icon,
46382
- hideLabel: b.hideLabel,
46383
- disabled: b.disabled,
46384
- tooltip: b.tooltip,
46385
- loading: b.loading
46386
- }
46387
- ) }) }, v(b, k))),
46388
- u && (h || m) && /* @__PURE__ */ p("div", { className: "mx-1 h-4 w-px bg-f1-background-secondary-hover" }),
46389
- u && y(r) && /* @__PURE__ */ p("div", { className: "hidden md:block", children: /* @__PURE__ */ p(
46390
- fe,
46391
- {
46392
- label: r.label,
46393
- onClick: r.onClick,
46394
- variant: "default",
46395
- icon: r.icon,
46396
- disabled: r.disabled,
46397
- tooltip: r.tooltip,
46398
- loading: r.loading
46399
- }
46400
- ) }),
46401
- u && g(r) && /* @__PURE__ */ p("div", { className: "hidden md:block", children: /* @__PURE__ */ p(
46402
- Jt,
46403
- {
46404
- items: r.items,
46405
- onClick: r.onClick,
46406
- variant: "default",
46407
- value: r.value,
46408
- size: "md",
46409
- disabled: r.disabled,
46410
- tooltip: r.tooltip,
46411
- loading: r.loading
46412
- }
46413
- ) })
46414
- ] })
46415
- ]
46416
- }
46417
- ),
46418
- d.length > 0 && /* @__PURE__ */ p("div", { className: "hidden flex-wrap items-center gap-x-3 gap-y-1 md:block", children: /* @__PURE__ */ p(jm, { items: d }) })
46419
- ] });
46329
+ h && y(r) && /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full", children: /* @__PURE__ */ p(
46330
+ Jt,
46331
+ {
46332
+ items: r.items,
46333
+ onClick: r.onClick,
46334
+ variant: "default",
46335
+ value: r.value,
46336
+ size: "lg",
46337
+ disabled: r.disabled,
46338
+ tooltip: r.tooltip,
46339
+ loading: r.loading
46340
+ }
46341
+ ) }),
46342
+ c.map((k, w) => /* @__PURE__ */ p(Tr, { children: /* @__PURE__ */ p("div", { className: "w-full md:hidden [&>*]:w-full [&>span]:block [&>span_div]:w-full", children: uf(k) ? /* @__PURE__ */ p(
46343
+ Jt,
46344
+ {
46345
+ items: k.items,
46346
+ onClick: k.onClick,
46347
+ variant: k.variant ?? "outline",
46348
+ value: k.value,
46349
+ size: "lg",
46350
+ disabled: k.disabled,
46351
+ tooltip: k.tooltip,
46352
+ loading: k.loading
46353
+ }
46354
+ ) : /* @__PURE__ */ p(
46355
+ fe,
46356
+ {
46357
+ label: k.label,
46358
+ onClick: k.onClick,
46359
+ variant: k.variant ?? "outline",
46360
+ icon: k.icon,
46361
+ size: "lg",
46362
+ hideLabel: k.hideLabel,
46363
+ disabled: k.disabled,
46364
+ tooltip: k.tooltip,
46365
+ loading: k.loading
46366
+ }
46367
+ ) }) }, b(k, w))),
46368
+ u.length > 0 && /* @__PURE__ */ p("div", { className: "w-full [&>*]:w-full [&_button]:w-full", children: /* @__PURE__ */ p(x1, { items: u }) })
46369
+ ] }),
46370
+ /* @__PURE__ */ E("div", { className: "-m-1 hidden w-fit shrink-0 flex-wrap items-center gap-x-2 gap-y-2 p-1 md:flex md:overflow-x-auto", children: [
46371
+ u.length > 0 && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(Rs, { items: u }) }),
46372
+ c.map((k, w) => /* @__PURE__ */ p(Tr, { children: /* @__PURE__ */ p("div", { className: "hidden md:block", children: uf(k) ? /* @__PURE__ */ p(
46373
+ Jt,
46374
+ {
46375
+ items: k.items,
46376
+ onClick: k.onClick,
46377
+ variant: k.variant ?? "outline",
46378
+ value: k.value,
46379
+ size: "md",
46380
+ disabled: k.disabled,
46381
+ tooltip: k.tooltip,
46382
+ loading: k.loading
46383
+ }
46384
+ ) : /* @__PURE__ */ p(
46385
+ fe,
46386
+ {
46387
+ label: k.label,
46388
+ onClick: k.onClick,
46389
+ variant: k.variant ?? "outline",
46390
+ icon: k.icon,
46391
+ hideLabel: k.hideLabel,
46392
+ disabled: k.disabled,
46393
+ tooltip: k.tooltip,
46394
+ loading: k.loading
46395
+ }
46396
+ ) }) }, b(k, w))),
46397
+ h && (m || g) && /* @__PURE__ */ p("div", { className: "mx-1 h-4 w-px bg-f1-background-secondary-hover" }),
46398
+ h && v(r) && /* @__PURE__ */ p("div", { className: "hidden md:block", children: /* @__PURE__ */ p(
46399
+ fe,
46400
+ {
46401
+ label: r.label,
46402
+ onClick: r.onClick,
46403
+ variant: "default",
46404
+ icon: r.icon,
46405
+ disabled: r.disabled,
46406
+ tooltip: r.tooltip,
46407
+ loading: r.loading
46408
+ }
46409
+ ) }),
46410
+ h && y(r) && /* @__PURE__ */ p("div", { className: "hidden md:block", children: /* @__PURE__ */ p(
46411
+ Jt,
46412
+ {
46413
+ items: r.items,
46414
+ onClick: r.onClick,
46415
+ variant: "default",
46416
+ value: r.value,
46417
+ size: "md",
46418
+ disabled: r.disabled,
46419
+ tooltip: r.tooltip,
46420
+ loading: r.loading
46421
+ }
46422
+ ) })
46423
+ ] })
46424
+ ]
46425
+ }
46426
+ ),
46427
+ f.length > 0 && /* @__PURE__ */ p("div", { className: "hidden flex-wrap items-center gap-x-3 gap-y-1 md:block", children: /* @__PURE__ */ p(jm, { items: f }) })
46428
+ ]
46429
+ }
46430
+ );
46420
46431
  }
46421
46432
  const uf = (t) => "items" in t, eK = f1({
46422
46433
  base: "flex flex-row items-center justify-center gap-2 p-3",
@@ -46500,7 +46511,7 @@ const uf = (t) => "items" in t, eK = f1({
46500
46511
  ] })
46501
46512
  ] }),
46502
46513
  r && /* @__PURE__ */ E("div", { className: eK({ variant: r.variant }), children: [
46503
- /* @__PURE__ */ p(je, { icon: r.icon }),
46514
+ /* @__PURE__ */ p(Fe, { icon: r.icon }),
46504
46515
  /* @__PURE__ */ p(Gi, { children: r.title })
46505
46516
  ] })
46506
46517
  ] });
@@ -46749,7 +46760,7 @@ const uf = (t) => "items" in t, eK = f1({
46749
46760
  className: "flex cursor-move items-center justify-center p-0.5 text-f1-icon-secondary",
46750
46761
  draggable: !0,
46751
46762
  "data-drag-handle": !0,
46752
- children: /* @__PURE__ */ p(je, { icon: T1, size: "xs" })
46763
+ children: /* @__PURE__ */ p(Fe, { icon: T1, size: "xs" })
46753
46764
  }
46754
46765
  )
46755
46766
  ] })
@@ -46900,7 +46911,8 @@ const HY = st(
46900
46911
  otherActions: s,
46901
46912
  status: o,
46902
46913
  metadata: a,
46903
- deactivated: l
46914
+ deactivated: l,
46915
+ showBottomBorder: d
46904
46916
  }) => /* @__PURE__ */ p(
46905
46917
  ZU,
46906
46918
  {
@@ -46912,7 +46924,8 @@ const HY = st(
46912
46924
  otherActions: s,
46913
46925
  status: o,
46914
46926
  metadata: a,
46915
- deactivated: l
46927
+ deactivated: l,
46928
+ showBottomBorder: d
46916
46929
  }
46917
46930
  ), VY = Si(
46918
46931
  "ResourceHeader",
@@ -47512,7 +47525,7 @@ const _K = ({
47512
47525
  }
47513
47526
  )
47514
47527
  ] });
47515
- }, gw = ({ loading: t }) => t ? /* @__PURE__ */ p(je, { icon: C9, className: "animate-spin" }) : /* @__PURE__ */ p(je, { icon: E9, className: "text" }), SK = ({ value: t, onChange: e, loading: n = !1 }) => {
47528
+ }, gw = ({ loading: t }) => t ? /* @__PURE__ */ p(Fe, { icon: C9, className: "animate-spin" }) : /* @__PURE__ */ p(Fe, { icon: E9, className: "text" }), SK = ({ value: t, onChange: e, loading: n = !1 }) => {
47516
47529
  const [i, r] = j(!1), s = jc(), o = G(null), a = G(null), l = Ne(), d = () => {
47517
47530
  e(void 0), r(!1), a?.current && (a.current.value = "");
47518
47531
  };
@@ -47593,7 +47606,7 @@ const _K = ({
47593
47606
  },
47594
47607
  role: "button",
47595
47608
  "aria-label": l.actions.clear,
47596
- children: /* @__PURE__ */ p(je, { icon: vp, size: "md", color: "secondary" })
47609
+ children: /* @__PURE__ */ p(Fe, { icon: vp, size: "md", color: "secondary" })
47597
47610
  }
47598
47611
  )
47599
47612
  ]
@@ -47656,7 +47669,7 @@ const _K = ({
47656
47669
  role: "button",
47657
47670
  "aria-label": l.actions.clear,
47658
47671
  children: /* @__PURE__ */ p(
47659
- je,
47672
+ Fe,
47660
47673
  {
47661
47674
  icon: vp,
47662
47675
  size: "md",
@@ -47915,7 +47928,7 @@ const $6 = ({
47915
47928
  t
47916
47929
  ),
47917
47930
  ...e,
47918
- children: /* @__PURE__ */ p(je, { icon: Bc })
47931
+ children: /* @__PURE__ */ p(Fe, { icon: Bc })
47919
47932
  }
47920
47933
  );
47921
47934
  $6.displayName = "PaginationPrevious";
@@ -47932,7 +47945,7 @@ const j6 = ({
47932
47945
  t
47933
47946
  ),
47934
47947
  ...e,
47935
- children: /* @__PURE__ */ p(je, { icon: zc })
47948
+ children: /* @__PURE__ */ p(Fe, { icon: zc })
47936
47949
  }
47937
47950
  );
47938
47951
  j6.displayName = "PaginationNext";
@@ -47946,7 +47959,7 @@ const B6 = ({
47946
47959
  "aria-hidden": !0,
47947
47960
  className: P("flex h-9 w-9 items-center justify-center", t),
47948
47961
  ...e,
47949
- children: /* @__PURE__ */ p(je, { icon: O9 })
47962
+ children: /* @__PURE__ */ p(Fe, { icon: O9 })
47950
47963
  }
47951
47964
  );
47952
47965
  B6.displayName = "PaginationEllipsis";
@@ -48823,7 +48836,7 @@ function ui({
48823
48836
  hn()
48824
48837
  ),
48825
48838
  tabIndex: 0,
48826
- children: /* @__PURE__ */ p(je, { icon: o, size: "sm" })
48839
+ children: /* @__PURE__ */ p(Fe, { icon: o, size: "sm" })
48827
48840
  }
48828
48841
  ) }) }),
48829
48842
  r && /* @__PURE__ */ p(
@@ -48852,7 +48865,7 @@ function ui({
48852
48865
  duration: 0.2,
48853
48866
  ease: [0.175, 0.885, 0.32, 1.275]
48854
48867
  },
48855
- children: /* @__PURE__ */ p(je, { icon: kp, size: "xs" })
48868
+ children: /* @__PURE__ */ p(Fe, { icon: kp, size: "xs" })
48856
48869
  },
48857
48870
  "sort-arrow"
48858
48871
  ),
@@ -48867,7 +48880,7 @@ function ui({
48867
48880
  duration: 0.2,
48868
48881
  ease: [0.175, 0.885, 0.32, 1.275]
48869
48882
  },
48870
- children: /* @__PURE__ */ p(je, { icon: kp, size: "xs" })
48883
+ children: /* @__PURE__ */ p(Fe, { icon: kp, size: "xs" })
48871
48884
  },
48872
48885
  "sort-arrow-secondary"
48873
48886
  )
@@ -50109,7 +50122,7 @@ const pG = (t, e) => /* @__PURE__ */ p(
50109
50122
  onPointerDown: (a) => {
50110
50123
  t.sortable && s.start(a);
50111
50124
  },
50112
- children: t.sortable ? /* @__PURE__ */ p(je, { icon: T1, size: "xs" }) : /* @__PURE__ */ p(je, { icon: V9, size: "sm" })
50125
+ children: t.sortable ? /* @__PURE__ */ p(Fe, { icon: T1, size: "xs" }) : /* @__PURE__ */ p(Fe, { icon: V9, size: "sm" })
50113
50126
  }
50114
50127
  ),
50115
50128
  /* @__PURE__ */ p(
@@ -50876,7 +50889,7 @@ function RG({ message: t, children: e }) {
50876
50889
  side: "top",
50877
50890
  className: "border-black/10 flex items-center gap-1 bg-[#fff] shadow-md",
50878
50891
  children: [
50879
- /* @__PURE__ */ p(je, { icon: _1, color: "critical", size: "sm" }),
50892
+ /* @__PURE__ */ p(Fe, { icon: _1, color: "critical", size: "sm" }),
50880
50893
  /* @__PURE__ */ p("span", { className: "text-sm font-medium text-f1-foreground-critical", children: t })
50881
50894
  ]
50882
50895
  }
@@ -50921,7 +50934,7 @@ function Ns({
50921
50934
  "pointer-events-auto flex shrink-0 cursor-pointer items-center rounded px-1",
50922
50935
  hn()
50923
50936
  ),
50924
- children: /* @__PURE__ */ p(je, { icon: o.icon, size: "md", color: o.iconColor })
50937
+ children: /* @__PURE__ */ p(Fe, { icon: o.icon, size: "md", color: o.iconColor })
50925
50938
  }
50926
50939
  ) }),
50927
50940
  /* @__PURE__ */ p(
@@ -53854,7 +53867,7 @@ const d1 = (t) => typeof t == "object" && t !== null && !Array.isArray(t), dr =
53854
53867
  ),
53855
53868
  onClick: () => r(a),
53856
53869
  children: [
53857
- /* @__PURE__ */ p(je, { icon: l }),
53870
+ /* @__PURE__ */ p(Fe, { icon: l }),
53858
53871
  d
53859
53872
  ]
53860
53873
  },